Interface RoleManagementPoliciesClient
- All Superinterfaces:
InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in RoleManagementPoliciesClient.
-
Method Summary
Modifier and TypeMethodDescriptionvoidDelete a role management policy.deleteAsync(String scope, String roleManagementPolicyName) Delete a role management policy.com.azure.core.http.rest.Response<Void>deleteWithResponse(String scope, String roleManagementPolicyName, com.azure.core.util.Context context) Delete a role management policy.deleteWithResponseAsync(String scope, String roleManagementPolicyName) Delete a role management policy.Get the specified role management policy for a resource scope.Get the specified role management policy for a resource scope.com.azure.core.http.rest.Response<RoleManagementPolicyInner>getWithResponse(String scope, String roleManagementPolicyName, com.azure.core.util.Context context) Get the specified role management policy for a resource scope.Mono<com.azure.core.http.rest.Response<RoleManagementPolicyInner>>getWithResponseAsync(String scope, String roleManagementPolicyName) Get the specified role management policy for a resource scope.com.azure.core.http.rest.PagedIterable<RoleManagementPolicyInner>listForScope(String scope) Gets role management policies for a resource scope.com.azure.core.http.rest.PagedIterable<RoleManagementPolicyInner>listForScope(String scope, com.azure.core.util.Context context) Gets role management policies for a resource scope.com.azure.core.http.rest.PagedFlux<RoleManagementPolicyInner>listForScopeAsync(String scope) Gets role management policies for a resource scope.update(String scope, String roleManagementPolicyName, RoleManagementPolicyInner parameters) Update a role management policy.updateAsync(String scope, String roleManagementPolicyName, RoleManagementPolicyInner parameters) Update a role management policy.com.azure.core.http.rest.Response<RoleManagementPolicyInner>updateWithResponse(String scope, String roleManagementPolicyName, RoleManagementPolicyInner parameters, com.azure.core.util.Context context) Update a role management policy.Mono<com.azure.core.http.rest.Response<RoleManagementPolicyInner>>updateWithResponseAsync(String scope, String roleManagementPolicyName, RoleManagementPolicyInner parameters) Update a role management policy.
-
Method Details
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<RoleManagementPolicyInner>> getWithResponseAsync(String scope, String roleManagementPolicyName) Get the specified role management policy for a resource scope.- Parameters:
scope- The scope of the role management policy.roleManagementPolicyName- The name (guid) of the role management policy to get.- Returns:
- the specified role management policy for a resource scope along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getAsync
Get the specified role management policy for a resource scope.- Parameters:
scope- The scope of the role management policy.roleManagementPolicyName- The name (guid) of the role management policy to get.- Returns:
- the specified role management policy for a resource scope on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<RoleManagementPolicyInner> getWithResponse(String scope, String roleManagementPolicyName, com.azure.core.util.Context context) Get the specified role management policy for a resource scope.- Parameters:
scope- The scope of the role management policy.roleManagementPolicyName- The name (guid) of the role management policy to get.context- The context to associate with this operation.- Returns:
- the specified role management policy for a resource scope along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
get
Get the specified role management policy for a resource scope.- Parameters:
scope- The scope of the role management policy.roleManagementPolicyName- The name (guid) of the role management policy to get.- Returns:
- the specified role management policy for a resource scope.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateWithResponseAsync
Mono<com.azure.core.http.rest.Response<RoleManagementPolicyInner>> updateWithResponseAsync(String scope, String roleManagementPolicyName, RoleManagementPolicyInner parameters) Update a role management policy.- Parameters:
scope- The scope of the role management policy to upsert.roleManagementPolicyName- The name (guid) of the role management policy to upsert.parameters- Parameters for the role management policy.- Returns:
- role management policy along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateAsync
Mono<RoleManagementPolicyInner> updateAsync(String scope, String roleManagementPolicyName, RoleManagementPolicyInner parameters) Update a role management policy.- Parameters:
scope- The scope of the role management policy to upsert.roleManagementPolicyName- The name (guid) of the role management policy to upsert.parameters- Parameters for the role management policy.- Returns:
- role management policy on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateWithResponse
com.azure.core.http.rest.Response<RoleManagementPolicyInner> updateWithResponse(String scope, String roleManagementPolicyName, RoleManagementPolicyInner parameters, com.azure.core.util.Context context) Update a role management policy.- Parameters:
scope- The scope of the role management policy to upsert.roleManagementPolicyName- The name (guid) of the role management policy to upsert.parameters- Parameters for the role management policy.context- The context to associate with this operation.- Returns:
- role management policy along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
RoleManagementPolicyInner update(String scope, String roleManagementPolicyName, RoleManagementPolicyInner parameters) Update a role management policy.- Parameters:
scope- The scope of the role management policy to upsert.roleManagementPolicyName- The name (guid) of the role management policy to upsert.parameters- Parameters for the role management policy.- Returns:
- role management policy.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String scope, String roleManagementPolicyName) Delete a role management policy.- Parameters:
scope- The scope of the role management policy to upsert.roleManagementPolicyName- The name (guid) of the role management policy to upsert.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteAsync
Delete a role management policy.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<Void>- Parameters:
scope- The scope of the role management policy to upsert.roleManagementPolicyName- The name (guid) of the role management policy to upsert.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String scope, String roleManagementPolicyName, com.azure.core.util.Context context) Delete a role management policy.- Parameters:
scope- The scope of the role management policy to upsert.roleManagementPolicyName- The name (guid) of the role management policy to upsert.context- The context to associate with this operation.- Returns:
- the
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Delete a role management policy.- Parameters:
scope- The scope of the role management policy to upsert.roleManagementPolicyName- The name (guid) of the role management policy to upsert.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listForScopeAsync
Gets role management policies for a resource scope.- Parameters:
scope- The scope of the role management policy.- Returns:
- role management policies for a resource scope as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listForScope
Gets role management policies for a resource scope.- Parameters:
scope- The scope of the role management policy.- Returns:
- role management policies for a resource scope as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listForScope
com.azure.core.http.rest.PagedIterable<RoleManagementPolicyInner> listForScope(String scope, com.azure.core.util.Context context) Gets role management policies for a resource scope.- Parameters:
scope- The scope of the role management policy.context- The context to associate with this operation.- Returns:
- role management policies for a resource scope as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-