Class DirectoryRoleItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.directoryroles.item.DirectoryRoleItemRequestBuilder
@Generated("com.microsoft.kiota")
public class DirectoryRoleItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the collection of directoryRole entities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classRetrieve the properties of a directoryRole 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
ConstructorsConstructorDescriptionDirectoryRoleItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDirectoryRoleItemRequestBuilderand sets the default values.DirectoryRoleItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDirectoryRoleItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionProvides operations to call the checkMemberGroups method.Provides operations to call the checkMemberObjects method.voiddelete()Delete entity from directoryRolesvoiddelete(Consumer<DirectoryRoleItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete entity from directoryRolesget()Retrieve the properties of a directoryRole object.get(Consumer<DirectoryRoleItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties of a directoryRole object.Provides operations to call the getMemberGroups method.Provides operations to call the getMemberObjects method.members()Provides operations to manage the members property of the microsoft.graph.directoryRole entity.patch(DirectoryRole body) Update entity in directoryRolespatch(DirectoryRole body, Consumer<DirectoryRoleItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update entity in directoryRolesrestore()Provides operations to call the restore method.Provides operations to manage the scopedMembers property of the microsoft.graph.directoryRole entity.com.microsoft.kiota.RequestInformationDelete entity from directoryRolescom.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<DirectoryRoleItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete entity from directoryRolescom.microsoft.kiota.RequestInformationRetrieve the properties of a directoryRole object.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<DirectoryRoleItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties of a directoryRole object.com.microsoft.kiota.RequestInformationUpdate entity in directoryRolescom.microsoft.kiota.RequestInformationtoPatchRequestInformation(DirectoryRole body, Consumer<DirectoryRoleItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update entity in directoryRolesReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
DirectoryRoleItemRequestBuilder
public DirectoryRoleItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDirectoryRoleItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
DirectoryRoleItemRequestBuilder
public DirectoryRoleItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDirectoryRoleItemRequestBuilderand 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
-
checkMemberGroups
Provides operations to call the checkMemberGroups method.- Returns:
- a
CheckMemberGroupsRequestBuilder
-
checkMemberObjects
Provides operations to call the checkMemberObjects method.- Returns:
- a
CheckMemberObjectsRequestBuilder
-
getMemberGroups
Provides operations to call the getMemberGroups method.- Returns:
- a
GetMemberGroupsRequestBuilder
-
getMemberObjects
Provides operations to call the getMemberObjects method.- Returns:
- a
GetMemberObjectsRequestBuilder
-
members
Provides operations to manage the members property of the microsoft.graph.directoryRole entity.- Returns:
- a
MembersRequestBuilder
-
restore
Provides operations to call the restore method.- Returns:
- a
RestoreRequestBuilder
-
scopedMembers
Provides operations to manage the scopedMembers property of the microsoft.graph.directoryRole entity.- Returns:
- a
ScopedMembersRequestBuilder
-
delete
public void delete()Delete entity from directoryRoles- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
delete
public void delete(@Nullable Consumer<DirectoryRoleItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete entity from directoryRoles- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs.- Returns:
- a
DirectoryRole - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public DirectoryRole get(@Nullable Consumer<DirectoryRoleItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
DirectoryRole - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
Update entity in directoryRoles- Parameters:
body- The request body- Returns:
- a
DirectoryRole - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
@Nullable public DirectoryRole patch(@Nonnull DirectoryRole body, @Nullable Consumer<DirectoryRoleItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update entity in directoryRoles- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
DirectoryRole - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete entity from directoryRoles- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<DirectoryRoleItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete entity from directoryRoles- 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()Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<DirectoryRoleItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs.- 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 DirectoryRole body) Update entity in directoryRoles- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull DirectoryRole body, @Nullable Consumer<DirectoryRoleItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update entity in directoryRoles- 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
DirectoryRoleItemRequestBuilder
-