Package com.microsoft.graph.groups.item
Class GroupItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.groups.item.GroupItemRequestBuilder
@Generated("com.microsoft.kiota")
public class GroupItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the collection of group entities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classGet the properties and relationships of a group object.classConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionGroupItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newGroupItemRequestBuilderand sets the default values.GroupItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newGroupItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionProvides operations to manage the acceptedSenders property of the microsoft.graph.group entity.Provides operations to call the addFavorite method.Provides operations to manage the appRoleAssignments property of the microsoft.graph.group entity.Provides operations to call the assignLicense method.calendar()Provides operations to manage the calendar property of the microsoft.graph.group entity.Provides operations to manage the calendarView property of the microsoft.graph.group entity.Provides operations to call the checkGrantedPermissionsForApp method.Provides operations to call the checkMemberGroups method.Provides operations to call the checkMemberObjects method.Provides operations to manage the conversations property of the microsoft.graph.group entity.Provides operations to manage the createdOnBehalfOf property of the microsoft.graph.group entity.voiddelete()Delete a group.voiddelete(Consumer<GroupItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a group.drive()Provides operations to manage the drive property of the microsoft.graph.group entity.drives()Provides operations to manage the drives property of the microsoft.graph.group entity.events()Provides operations to manage the events property of the microsoft.graph.group entity.Provides operations to manage the extensions property of the microsoft.graph.group entity.get()Get the properties and relationships of a group object.get(Consumer<GroupItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the properties and relationships of a group object.Provides operations to call the getMemberGroups method.Provides operations to call the getMemberObjects method.Provides operations to manage the groupLifecyclePolicies property of the microsoft.graph.group entity.memberOf()Provides operations to manage the memberOf property of the microsoft.graph.group entity.members()Provides operations to manage the members property of the microsoft.graph.group entity.Provides operations to manage the membersWithLicenseErrors property of the microsoft.graph.group entity.onenote()Provides operations to manage the onenote property of the microsoft.graph.group entity.owners()Provides operations to manage the owners property of the microsoft.graph.group entity.Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group.patch(Group body, Consumer<GroupItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group.Provides operations to manage the permissionGrants property of the microsoft.graph.group entity.photo()Provides operations to manage the photo property of the microsoft.graph.group entity.photos()Provides operations to manage the photos property of the microsoft.graph.group entity.planner()Provides operations to manage the planner property of the microsoft.graph.group entity.Provides operations to manage the rejectedSenders property of the microsoft.graph.group entity.Provides operations to call the removeFavorite method.renew()Provides operations to call the renew method.Provides operations to call the resetUnseenCount method.restore()Provides operations to call the restore method.Provides operations to call the retryServiceProvisioning method.The serviceProvisioningErrors propertysettings()Provides operations to manage the settings property of the microsoft.graph.group entity.sites()Provides operations to manage the sites property of the microsoft.graph.group entity.Provides operations to call the subscribeByMail method.team()Provides operations to manage the team property of the microsoft.graph.group entity.threads()Provides operations to manage the threads property of the microsoft.graph.group entity.com.microsoft.kiota.RequestInformationDelete a group.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<GroupItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a group.com.microsoft.kiota.RequestInformationGet the properties and relationships of a group object.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<GroupItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the properties and relationships of a group object.com.microsoft.kiota.RequestInformationCreate a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group.com.microsoft.kiota.RequestInformationtoPatchRequestInformation(Group body, Consumer<GroupItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group.Provides operations to manage the transitiveMemberOf property of the microsoft.graph.group entity.Provides operations to manage the transitiveMembers property of the microsoft.graph.group entity.Provides operations to call the unsubscribeByMail method.Provides operations to call the validateProperties method.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
GroupItemRequestBuilder
public GroupItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newGroupItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
GroupItemRequestBuilder
public GroupItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newGroupItemRequestBuilderand sets the default values.- Parameters:
rawUrl- The raw URL to use for the request builder.requestAdapter- The request adapter to use to execute the requests.
-
-
Method Details
-
acceptedSenders
Provides operations to manage the acceptedSenders property of the microsoft.graph.group entity.- Returns:
- a
AcceptedSendersRequestBuilder
-
addFavorite
Provides operations to call the addFavorite method.- Returns:
- a
AddFavoriteRequestBuilder
-
appRoleAssignments
Provides operations to manage the appRoleAssignments property of the microsoft.graph.group entity.- Returns:
- a
AppRoleAssignmentsRequestBuilder
-
assignLicense
Provides operations to call the assignLicense method.- Returns:
- a
AssignLicenseRequestBuilder
-
calendar
Provides operations to manage the calendar property of the microsoft.graph.group entity.- Returns:
- a
CalendarRequestBuilder
-
calendarView
Provides operations to manage the calendarView property of the microsoft.graph.group entity.- Returns:
- a
CalendarViewRequestBuilder
-
checkGrantedPermissionsForApp
Provides operations to call the checkGrantedPermissionsForApp method.- Returns:
- a
CheckGrantedPermissionsForAppRequestBuilder
-
checkMemberGroups
Provides operations to call the checkMemberGroups method.- Returns:
- a
CheckMemberGroupsRequestBuilder
-
checkMemberObjects
Provides operations to call the checkMemberObjects method.- Returns:
- a
CheckMemberObjectsRequestBuilder
-
conversations
Provides operations to manage the conversations property of the microsoft.graph.group entity.- Returns:
- a
ConversationsRequestBuilder
-
createdOnBehalfOf
Provides operations to manage the createdOnBehalfOf property of the microsoft.graph.group entity.- Returns:
- a
CreatedOnBehalfOfRequestBuilder
-
drive
Provides operations to manage the drive property of the microsoft.graph.group entity.- Returns:
- a
DriveRequestBuilder
-
drives
Provides operations to manage the drives property of the microsoft.graph.group entity.- Returns:
- a
DrivesRequestBuilder
-
events
Provides operations to manage the events property of the microsoft.graph.group entity.- Returns:
- a
EventsRequestBuilder
-
extensions
Provides operations to manage the extensions property of the microsoft.graph.group entity.- Returns:
- a
ExtensionsRequestBuilder
-
getMemberGroups
Provides operations to call the getMemberGroups method.- Returns:
- a
GetMemberGroupsRequestBuilder
-
getMemberObjects
Provides operations to call the getMemberObjects method.- Returns:
- a
GetMemberObjectsRequestBuilder
-
groupLifecyclePolicies
Provides operations to manage the groupLifecyclePolicies property of the microsoft.graph.group entity.- Returns:
- a
GroupLifecyclePoliciesRequestBuilder
-
memberOf
Provides operations to manage the memberOf property of the microsoft.graph.group entity.- Returns:
- a
MemberOfRequestBuilder
-
members
Provides operations to manage the members property of the microsoft.graph.group entity.- Returns:
- a
MembersRequestBuilder
-
membersWithLicenseErrors
Provides operations to manage the membersWithLicenseErrors property of the microsoft.graph.group entity.- Returns:
- a
MembersWithLicenseErrorsRequestBuilder
-
onenote
Provides operations to manage the onenote property of the microsoft.graph.group entity.- Returns:
- a
OnenoteRequestBuilder
-
owners
Provides operations to manage the owners property of the microsoft.graph.group entity.- Returns:
- a
OwnersRequestBuilder
-
permissionGrants
Provides operations to manage the permissionGrants property of the microsoft.graph.group entity.- Returns:
- a
PermissionGrantsRequestBuilder
-
photo
Provides operations to manage the photo property of the microsoft.graph.group entity.- Returns:
- a
PhotoRequestBuilder
-
photos
Provides operations to manage the photos property of the microsoft.graph.group entity.- Returns:
- a
PhotosRequestBuilder
-
planner
Provides operations to manage the planner property of the microsoft.graph.group entity.- Returns:
- a
PlannerRequestBuilder
-
rejectedSenders
Provides operations to manage the rejectedSenders property of the microsoft.graph.group entity.- Returns:
- a
RejectedSendersRequestBuilder
-
removeFavorite
Provides operations to call the removeFavorite method.- Returns:
- a
RemoveFavoriteRequestBuilder
-
renew
Provides operations to call the renew method.- Returns:
- a
RenewRequestBuilder
-
resetUnseenCount
Provides operations to call the resetUnseenCount method.- Returns:
- a
ResetUnseenCountRequestBuilder
-
restore
Provides operations to call the restore method.- Returns:
- a
RestoreRequestBuilder
-
retryServiceProvisioning
Provides operations to call the retryServiceProvisioning method.- Returns:
- a
RetryServiceProvisioningRequestBuilder
-
serviceProvisioningErrors
The serviceProvisioningErrors property- Returns:
- a
ServiceProvisioningErrorsRequestBuilder
-
settings
Provides operations to manage the settings property of the microsoft.graph.group entity.- Returns:
- a
SettingsRequestBuilder
-
sites
Provides operations to manage the sites property of the microsoft.graph.group entity.- Returns:
- a
SitesRequestBuilder
-
subscribeByMail
Provides operations to call the subscribeByMail method.- Returns:
- a
SubscribeByMailRequestBuilder
-
team
Provides operations to manage the team property of the microsoft.graph.group entity.- Returns:
- a
TeamRequestBuilder
-
threads
Provides operations to manage the threads property of the microsoft.graph.group entity.- Returns:
- a
ThreadsRequestBuilder
-
transitiveMemberOf
Provides operations to manage the transitiveMemberOf property of the microsoft.graph.group entity.- Returns:
- a
TransitiveMemberOfRequestBuilder
-
transitiveMembers
Provides operations to manage the transitiveMembers property of the microsoft.graph.group entity.- Returns:
- a
TransitiveMembersRequestBuilder
-
unsubscribeByMail
Provides operations to call the unsubscribeByMail method.- Returns:
- a
UnsubscribeByMailRequestBuilder
-
validateProperties
Provides operations to call the validateProperties method.- Returns:
- a
ValidatePropertiesRequestBuilder
-
delete
public void delete()Delete a group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
delete
public void delete(@Nullable Consumer<GroupItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query.- Returns:
- a
Group - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public Group get(@Nullable Consumer<GroupItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
Group - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option.- Parameters:
body- The request body- Returns:
- a
Group - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
@Nullable public Group patch(@Nonnull Group body, @Nullable Consumer<GroupItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
Group - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete a group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<GroupItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<GroupItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull Group body) Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull Group body, @Nullable Consumer<GroupItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.- Parameters:
rawUrl- The raw URL to use for the request builder.- Returns:
- a
GroupItemRequestBuilder
-