Dela via


RoleDefinitionsClient Interface

Implements

public interface RoleDefinitionsClient
extends InnerSupportsDelete<RoleDefinitionInner>

An instance of this class provides access to all the operations defined in RoleDefinitionsClient.

Method Summary

Modifier and Type Method and Description
abstract RoleDefinitionInner createOrUpdate(String scope, String roleDefinitionId, RoleDefinitionInner roleDefinition)

Creates or updates a role definition.

abstract Mono<RoleDefinitionInner> createOrUpdateAsync(String scope, String roleDefinitionId, RoleDefinitionInner roleDefinition)

Creates or updates a role definition.

abstract Response<RoleDefinitionInner> createOrUpdateWithResponse(String scope, String roleDefinitionId, RoleDefinitionInner roleDefinition, Context context)

Creates or updates a role definition.

abstract Mono<Response<RoleDefinitionInner>> createOrUpdateWithResponseAsync(String scope, String roleDefinitionId, RoleDefinitionInner roleDefinition)

Creates or updates a role definition.

abstract RoleDefinitionInner delete(String scope, String roleDefinitionId)

Deletes a role definition.

abstract Mono<RoleDefinitionInner> deleteAsync(String scope, String roleDefinitionId)

Deletes a role definition.

abstract Response<RoleDefinitionInner> deleteWithResponse(String scope, String roleDefinitionId, Context context)

Deletes a role definition.

abstract Mono<Response<RoleDefinitionInner>> deleteWithResponseAsync(String scope, String roleDefinitionId)

Deletes a role definition.

abstract RoleDefinitionInner get(String scope, String roleDefinitionId)

Get role definition by name (GUID).

abstract Mono<RoleDefinitionInner> getAsync(String scope, String roleDefinitionId)

Get role definition by name (GUID).

abstract RoleDefinitionInner getById(String roleId)

Gets a role definition by ID.

abstract Mono<RoleDefinitionInner> getByIdAsync(String roleId)

Gets a role definition by ID.

abstract Response<RoleDefinitionInner> getByIdWithResponse(String roleId, Context context)

Gets a role definition by ID.

abstract Mono<Response<RoleDefinitionInner>> getByIdWithResponseAsync(String roleId)

Gets a role definition by ID.

abstract Response<RoleDefinitionInner> getWithResponse(String scope, String roleDefinitionId, Context context)

Get role definition by name (GUID).

abstract Mono<Response<RoleDefinitionInner>> getWithResponseAsync(String scope, String roleDefinitionId)

Get role definition by name (GUID).

abstract PagedIterable<RoleDefinitionInner> list(String scope)

Get all role definitions that are applicable at scope and above.

abstract PagedIterable<RoleDefinitionInner> list(String scope, String filter, Context context)

Get all role definitions that are applicable at scope and above.

abstract PagedFlux<RoleDefinitionInner> listAsync(String scope)

Get all role definitions that are applicable at scope and above.

abstract PagedFlux<RoleDefinitionInner> listAsync(String scope, String filter)

Get all role definitions that are applicable at scope and above.

Method Details

createOrUpdate

public abstract RoleDefinitionInner createOrUpdate(String scope, String roleDefinitionId, RoleDefinitionInner roleDefinition)

Creates or updates a role definition.

Parameters:

scope - The scope of the role definition.
roleDefinitionId - The ID of the role definition.
roleDefinition - The values for the role definition.

Returns:

role definition.

createOrUpdateAsync

public abstract Mono createOrUpdateAsync(String scope, String roleDefinitionId, RoleDefinitionInner roleDefinition)

Creates or updates a role definition.

Parameters:

scope - The scope of the role definition.
roleDefinitionId - The ID of the role definition.
roleDefinition - The values for the role definition.

Returns:

role definition on successful completion of Mono.

createOrUpdateWithResponse

public abstract Response createOrUpdateWithResponse(String scope, String roleDefinitionId, RoleDefinitionInner roleDefinition, Context context)

Creates or updates a role definition.

Parameters:

scope - The scope of the role definition.
roleDefinitionId - The ID of the role definition.
roleDefinition - The values for the role definition.
context - The context to associate with this operation.

Returns:

role definition along with Response<T>.

createOrUpdateWithResponseAsync

public abstract Mono> createOrUpdateWithResponseAsync(String scope, String roleDefinitionId, RoleDefinitionInner roleDefinition)

Creates or updates a role definition.

Parameters:

scope - The scope of the role definition.
roleDefinitionId - The ID of the role definition.
roleDefinition - The values for the role definition.

Returns:

role definition along with Response<T> on successful completion of Mono.

delete

public abstract RoleDefinitionInner delete(String scope, String roleDefinitionId)

Deletes a role definition.

Parameters:

scope - The scope of the role definition.
roleDefinitionId - The ID of the role definition to delete.

Returns:

role definition.

deleteAsync

public abstract Mono deleteAsync(String scope, String roleDefinitionId)

Deletes a role definition.

Parameters:

scope - The scope of the role definition.
roleDefinitionId - The ID of the role definition to delete.

Returns:

role definition on successful completion of Mono.

deleteWithResponse

public abstract Response deleteWithResponse(String scope, String roleDefinitionId, Context context)

Deletes a role definition.

Parameters:

scope - The scope of the role definition.
roleDefinitionId - The ID of the role definition to delete.
context - The context to associate with this operation.

Returns:

role definition along with Response<T>.

deleteWithResponseAsync

public abstract Mono> deleteWithResponseAsync(String scope, String roleDefinitionId)

Deletes a role definition.

Parameters:

scope - The scope of the role definition.
roleDefinitionId - The ID of the role definition to delete.

Returns:

role definition along with Response<T> on successful completion of Mono.

get

public abstract RoleDefinitionInner get(String scope, String roleDefinitionId)

Get role definition by name (GUID).

Parameters:

scope - The scope of the role definition.
roleDefinitionId - The ID of the role definition.

Returns:

role definition by name (GUID).

getAsync

public abstract Mono getAsync(String scope, String roleDefinitionId)

Get role definition by name (GUID).

Parameters:

scope - The scope of the role definition.
roleDefinitionId - The ID of the role definition.

Returns:

role definition by name (GUID) on successful completion of Mono.

getById

public abstract RoleDefinitionInner getById(String roleId)

Gets a role definition by ID.

Parameters:

roleId - The fully qualified role definition ID. Use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for subscription level role definitions, or /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for tenant level role definitions.

Returns:

a role definition by ID.

getByIdAsync

public abstract Mono getByIdAsync(String roleId)

Gets a role definition by ID.

Parameters:

roleId - The fully qualified role definition ID. Use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for subscription level role definitions, or /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for tenant level role definitions.

Returns:

a role definition by ID on successful completion of Mono.

getByIdWithResponse

public abstract Response getByIdWithResponse(String roleId, Context context)

Gets a role definition by ID.

Parameters:

roleId - The fully qualified role definition ID. Use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for subscription level role definitions, or /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for tenant level role definitions.
context - The context to associate with this operation.

Returns:

a role definition by ID along with Response<T>.

getByIdWithResponseAsync

public abstract Mono> getByIdWithResponseAsync(String roleId)

Gets a role definition by ID.

Parameters:

roleId - The fully qualified role definition ID. Use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for subscription level role definitions, or /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for tenant level role definitions.

Returns:

a role definition by ID along with Response<T> on successful completion of Mono.

getWithResponse

public abstract Response getWithResponse(String scope, String roleDefinitionId, Context context)

Get role definition by name (GUID).

Parameters:

scope - The scope of the role definition.
roleDefinitionId - The ID of the role definition.
context - The context to associate with this operation.

Returns:

role definition by name (GUID) along with Response<T>.

getWithResponseAsync

public abstract Mono> getWithResponseAsync(String scope, String roleDefinitionId)

Get role definition by name (GUID).

Parameters:

scope - The scope of the role definition.
roleDefinitionId - The ID of the role definition.

Returns:

role definition by name (GUID) along with Response<T> on successful completion of Mono.

list

public abstract PagedIterable list(String scope)

Get all role definitions that are applicable at scope and above.

Parameters:

scope - The scope of the role definition.

Returns:

all role definitions that are applicable at scope and above as paginated response with PagedIterable<T>.

list

public abstract PagedIterable list(String scope, String filter, Context context)

Get all role definitions that are applicable at scope and above.

Parameters:

scope - The scope of the role definition.
filter - The filter to apply on the operation. Use atScopeAndBelow filter to search below the given scope as well.
context - The context to associate with this operation.

Returns:

all role definitions that are applicable at scope and above as paginated response with PagedIterable<T>.

listAsync

public abstract PagedFlux listAsync(String scope)

Get all role definitions that are applicable at scope and above.

Parameters:

scope - The scope of the role definition.

Returns:

all role definitions that are applicable at scope and above as paginated response with PagedFlux<T>.

listAsync

public abstract PagedFlux listAsync(String scope, String filter)

Get all role definitions that are applicable at scope and above.

Parameters:

scope - The scope of the role definition.
filter - The filter to apply on the operation. Use atScopeAndBelow filter to search below the given scope as well.

Returns:

all role definitions that are applicable at scope and above as paginated response with PagedFlux<T>.

Applies to