Interface RoleAssignmentsClient

    • Method Detail

      • listAsync

        com.azure.core.http.rest.PagedFlux<RoleAssignmentInner> listAsync​(String filter,
                                                                          String tenantId)
        List all role assignments that apply to a subscription.
        Parameters:
        filter - The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.
        tenantId - Tenant ID for cross-tenant request.
        Returns:
        role assignment list operation result.
        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.
      • listAsync

        com.azure.core.http.rest.PagedFlux<RoleAssignmentInner> listAsync()
        List all role assignments that apply to a subscription.
        Specified by:
        listAsync in interface InnerSupportsListing<RoleAssignmentInner>
        Returns:
        role assignment list operation result.
        Throws:
        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.
      • list

        com.azure.core.http.rest.PagedIterable<RoleAssignmentInner> list()
        List all role assignments that apply to a subscription.
        Specified by:
        list in interface InnerSupportsListing<RoleAssignmentInner>
        Returns:
        role assignment list operation result.
        Throws:
        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.
      • list

        com.azure.core.http.rest.PagedIterable<RoleAssignmentInner> list​(String filter,
                                                                         String tenantId,
                                                                         com.azure.core.util.Context context)
        List all role assignments that apply to a subscription.
        Parameters:
        filter - The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.
        tenantId - Tenant ID for cross-tenant request.
        context - The context to associate with this operation.
        Returns:
        role assignment list operation result.
        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.
      • listByResourceGroupAsync

        com.azure.core.http.rest.PagedFlux<RoleAssignmentInner> listByResourceGroupAsync​(String resourceGroupName,
                                                                                         String filter,
                                                                                         String tenantId)
        List all role assignments that apply to a resource group.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        filter - The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.
        tenantId - Tenant ID for cross-tenant request.
        Returns:
        role assignment list operation result.
        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.
      • listByResourceGroupAsync

        com.azure.core.http.rest.PagedFlux<RoleAssignmentInner> listByResourceGroupAsync​(String resourceGroupName)
        List all role assignments that apply to a resource group.
        Specified by:
        listByResourceGroupAsync in interface InnerSupportsListing<RoleAssignmentInner>
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        Returns:
        role assignment list operation result.
        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.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<RoleAssignmentInner> listByResourceGroup​(String resourceGroupName)
        List all role assignments that apply to a resource group.
        Specified by:
        listByResourceGroup in interface InnerSupportsListing<RoleAssignmentInner>
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        Returns:
        role assignment list operation result.
        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.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<RoleAssignmentInner> listByResourceGroup​(String resourceGroupName,
                                                                                        String filter,
                                                                                        String tenantId,
                                                                                        com.azure.core.util.Context context)
        List all role assignments that apply to a resource group.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        filter - The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.
        tenantId - Tenant ID for cross-tenant request.
        context - The context to associate with this operation.
        Returns:
        role assignment list operation result.
        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.
      • listForResourceAsync

        com.azure.core.http.rest.PagedFlux<RoleAssignmentInner> listForResourceAsync​(String resourceGroupName,
                                                                                     String resourceProviderNamespace,
                                                                                     String resourceType,
                                                                                     String resourceName,
                                                                                     String filter,
                                                                                     String tenantId)
        List all role assignments that apply to a resource.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        resourceProviderNamespace - The namespace of the resource provider.
        resourceType - The resource type name. For example the type name of a web app is 'sites' (from Microsoft.Web/sites).
        resourceName - The resource name.
        filter - The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.
        tenantId - Tenant ID for cross-tenant request.
        Returns:
        role assignment list operation result.
        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.
      • listForResourceAsync

        com.azure.core.http.rest.PagedFlux<RoleAssignmentInner> listForResourceAsync​(String resourceGroupName,
                                                                                     String resourceProviderNamespace,
                                                                                     String resourceType,
                                                                                     String resourceName)
        List all role assignments that apply to a resource.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        resourceProviderNamespace - The namespace of the resource provider.
        resourceType - The resource type name. For example the type name of a web app is 'sites' (from Microsoft.Web/sites).
        resourceName - The resource name.
        Returns:
        role assignment list operation result.
        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.
      • listForResource

        com.azure.core.http.rest.PagedIterable<RoleAssignmentInner> listForResource​(String resourceGroupName,
                                                                                    String resourceProviderNamespace,
                                                                                    String resourceType,
                                                                                    String resourceName)
        List all role assignments that apply to a resource.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        resourceProviderNamespace - The namespace of the resource provider.
        resourceType - The resource type name. For example the type name of a web app is 'sites' (from Microsoft.Web/sites).
        resourceName - The resource name.
        Returns:
        role assignment list operation result.
        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.
      • listForResource

        com.azure.core.http.rest.PagedIterable<RoleAssignmentInner> listForResource​(String resourceGroupName,
                                                                                    String resourceProviderNamespace,
                                                                                    String resourceType,
                                                                                    String resourceName,
                                                                                    String filter,
                                                                                    String tenantId,
                                                                                    com.azure.core.util.Context context)
        List all role assignments that apply to a resource.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        resourceProviderNamespace - The namespace of the resource provider.
        resourceType - The resource type name. For example the type name of a web app is 'sites' (from Microsoft.Web/sites).
        resourceName - The resource name.
        filter - The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.
        tenantId - Tenant ID for cross-tenant request.
        context - The context to associate with this operation.
        Returns:
        role assignment list operation result.
        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.
      • getWithResponseAsync

        Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>> getWithResponseAsync​(String scope,
                                                                                          String roleAssignmentName,
                                                                                          String tenantId)
        Get a role assignment by scope and name.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        roleAssignmentName - The name of the role assignment. It can be any valid GUID.
        tenantId - Tenant ID for cross-tenant request.
        Returns:
        a role assignment by scope and name.
        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

        Mono<RoleAssignmentInner> getAsync​(String scope,
                                           String roleAssignmentName,
                                           String tenantId)
        Get a role assignment by scope and name.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        roleAssignmentName - The name of the role assignment. It can be any valid GUID.
        tenantId - Tenant ID for cross-tenant request.
        Returns:
        a role assignment by scope and name.
        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

        Mono<RoleAssignmentInner> getAsync​(String scope,
                                           String roleAssignmentName)
        Get a role assignment by scope and name.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        roleAssignmentName - The name of the role assignment. It can be any valid GUID.
        Returns:
        a role assignment by scope and name.
        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

        RoleAssignmentInner get​(String scope,
                                String roleAssignmentName)
        Get a role assignment by scope and name.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        roleAssignmentName - The name of the role assignment. It can be any valid GUID.
        Returns:
        a role assignment by scope and name.
        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<RoleAssignmentInner> getWithResponse​(String scope,
                                                                               String roleAssignmentName,
                                                                               String tenantId,
                                                                               com.azure.core.util.Context context)
        Get a role assignment by scope and name.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        roleAssignmentName - The name of the role assignment. It can be any valid GUID.
        tenantId - Tenant ID for cross-tenant request.
        context - The context to associate with this operation.
        Returns:
        a role assignment by scope and name.
        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.
      • createWithResponseAsync

        Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>> createWithResponseAsync​(String scope,
                                                                                             String roleAssignmentName,
                                                                                             RoleAssignmentCreateParameters parameters)
        Create or update a role assignment by scope and name.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        roleAssignmentName - The name of the role assignment. It can be any valid GUID.
        parameters - Parameters for the role assignment.
        Returns:
        role Assignments.
        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.
      • createAsync

        Mono<RoleAssignmentInner> createAsync​(String scope,
                                              String roleAssignmentName,
                                              RoleAssignmentCreateParameters parameters)
        Create or update a role assignment by scope and name.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        roleAssignmentName - The name of the role assignment. It can be any valid GUID.
        parameters - Parameters for the role assignment.
        Returns:
        role Assignments.
        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.
      • create

        RoleAssignmentInner create​(String scope,
                                   String roleAssignmentName,
                                   RoleAssignmentCreateParameters parameters)
        Create or update a role assignment by scope and name.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        roleAssignmentName - The name of the role assignment. It can be any valid GUID.
        parameters - Parameters for the role assignment.
        Returns:
        role Assignments.
        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.
      • createWithResponse

        com.azure.core.http.rest.Response<RoleAssignmentInner> createWithResponse​(String scope,
                                                                                  String roleAssignmentName,
                                                                                  RoleAssignmentCreateParameters parameters,
                                                                                  com.azure.core.util.Context context)
        Create or update a role assignment by scope and name.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        roleAssignmentName - The name of the role assignment. It can be any valid GUID.
        parameters - Parameters for the role assignment.
        context - The context to associate with this operation.
        Returns:
        role Assignments.
        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<RoleAssignmentInner>> deleteWithResponseAsync​(String scope,
                                                                                             String roleAssignmentName,
                                                                                             String tenantId)
        Delete a role assignment by scope and name.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        roleAssignmentName - The name of the role assignment. It can be any valid GUID.
        tenantId - Tenant ID for cross-tenant request.
        Returns:
        role Assignments.
        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

        Mono<RoleAssignmentInner> deleteAsync​(String scope,
                                              String roleAssignmentName,
                                              String tenantId)
        Delete a role assignment by scope and name.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        roleAssignmentName - The name of the role assignment. It can be any valid GUID.
        tenantId - Tenant ID for cross-tenant request.
        Returns:
        role Assignments.
        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

        Mono<RoleAssignmentInner> deleteAsync​(String scope,
                                              String roleAssignmentName)
        Delete a role assignment by scope and name.
        Specified by:
        deleteAsync in interface InnerSupportsDelete<RoleAssignmentInner>
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        roleAssignmentName - The name of the role assignment. It can be any valid GUID.
        Returns:
        role Assignments.
        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

        RoleAssignmentInner delete​(String scope,
                                   String roleAssignmentName)
        Delete a role assignment by scope and name.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        roleAssignmentName - The name of the role assignment. It can be any valid GUID.
        Returns:
        role Assignments.
        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<RoleAssignmentInner> deleteWithResponse​(String scope,
                                                                                  String roleAssignmentName,
                                                                                  String tenantId,
                                                                                  com.azure.core.util.Context context)
        Delete a role assignment by scope and name.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        roleAssignmentName - The name of the role assignment. It can be any valid GUID.
        tenantId - Tenant ID for cross-tenant request.
        context - The context to associate with this operation.
        Returns:
        role Assignments.
        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.
      • validateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<ValidationResponseInner>> validateWithResponseAsync​(String scope,
                                                                                                   String roleAssignmentName,
                                                                                                   RoleAssignmentCreateParameters parameters)
        Validate a role assignment create or update operation by scope and name.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        roleAssignmentName - The name of the role assignment. It can be any valid GUID.
        parameters - Parameters for the role assignment.
        Returns:
        validation 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.
      • validateAsync

        Mono<ValidationResponseInner> validateAsync​(String scope,
                                                    String roleAssignmentName,
                                                    RoleAssignmentCreateParameters parameters)
        Validate a role assignment create or update operation by scope and name.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        roleAssignmentName - The name of the role assignment. It can be any valid GUID.
        parameters - Parameters for the role assignment.
        Returns:
        validation 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.
      • validate

        ValidationResponseInner validate​(String scope,
                                         String roleAssignmentName,
                                         RoleAssignmentCreateParameters parameters)
        Validate a role assignment create or update operation by scope and name.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        roleAssignmentName - The name of the role assignment. It can be any valid GUID.
        parameters - Parameters for the role assignment.
        Returns:
        validation 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.
      • validateWithResponse

        com.azure.core.http.rest.Response<ValidationResponseInner> validateWithResponse​(String scope,
                                                                                        String roleAssignmentName,
                                                                                        RoleAssignmentCreateParameters parameters,
                                                                                        com.azure.core.util.Context context)
        Validate a role assignment create or update operation by scope and name.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        roleAssignmentName - The name of the role assignment. It can be any valid GUID.
        parameters - Parameters for the role assignment.
        context - The context to associate with this operation.
        Returns:
        validation 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.
      • listForScopeAsync

        com.azure.core.http.rest.PagedFlux<RoleAssignmentInner> listForScopeAsync​(String scope,
                                                                                  String filter,
                                                                                  String tenantId)
        List all role assignments that apply to a scope.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        filter - The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.
        tenantId - Tenant ID for cross-tenant request.
        Returns:
        role assignment list operation result.
        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

        com.azure.core.http.rest.PagedFlux<RoleAssignmentInner> listForScopeAsync​(String scope)
        List all role assignments that apply to a scope.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        Returns:
        role assignment list operation result.
        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<RoleAssignmentInner> listForScope​(String scope)
        List all role assignments that apply to a scope.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        Returns:
        role assignment list operation result.
        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<RoleAssignmentInner> listForScope​(String scope,
                                                                                 String filter,
                                                                                 String tenantId,
                                                                                 com.azure.core.util.Context context)
        List all role assignments that apply to a scope.
        Parameters:
        scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
        filter - The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.
        tenantId - Tenant ID for cross-tenant request.
        context - The context to associate with this operation.
        Returns:
        role assignment list operation result.
        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.
      • getByIdWithResponseAsync

        Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>> getByIdWithResponseAsync​(String roleAssignmentId,
                                                                                              String tenantId)
        Get a role assignment by ID.
        Parameters:
        roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.
        tenantId - Tenant ID for cross-tenant request.
        Returns:
        a role assignment by ID.
        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.
      • getByIdAsync

        Mono<RoleAssignmentInner> getByIdAsync​(String roleAssignmentId,
                                               String tenantId)
        Get a role assignment by ID.
        Parameters:
        roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.
        tenantId - Tenant ID for cross-tenant request.
        Returns:
        a role assignment by ID.
        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.
      • getByIdAsync

        Mono<RoleAssignmentInner> getByIdAsync​(String roleAssignmentId)
        Get a role assignment by ID.
        Parameters:
        roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.
        Returns:
        a role assignment by ID.
        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.
      • getById

        RoleAssignmentInner getById​(String roleAssignmentId)
        Get a role assignment by ID.
        Parameters:
        roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.
        Returns:
        a role assignment by ID.
        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.
      • getByIdWithResponse

        com.azure.core.http.rest.Response<RoleAssignmentInner> getByIdWithResponse​(String roleAssignmentId,
                                                                                   String tenantId,
                                                                                   com.azure.core.util.Context context)
        Get a role assignment by ID.
        Parameters:
        roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.
        tenantId - Tenant ID for cross-tenant request.
        context - The context to associate with this operation.
        Returns:
        a role assignment by ID.
        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.
      • createByIdWithResponseAsync

        Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>> createByIdWithResponseAsync​(String roleAssignmentId,
                                                                                                 RoleAssignmentCreateParameters parameters)
        Create or update a role assignment by ID.
        Parameters:
        roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.
        parameters - Parameters for the role assignment.
        Returns:
        role Assignments.
        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.
      • createByIdAsync

        Mono<RoleAssignmentInner> createByIdAsync​(String roleAssignmentId,
                                                  RoleAssignmentCreateParameters parameters)
        Create or update a role assignment by ID.
        Parameters:
        roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.
        parameters - Parameters for the role assignment.
        Returns:
        role Assignments.
        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.
      • createById

        RoleAssignmentInner createById​(String roleAssignmentId,
                                       RoleAssignmentCreateParameters parameters)
        Create or update a role assignment by ID.
        Parameters:
        roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.
        parameters - Parameters for the role assignment.
        Returns:
        role Assignments.
        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.
      • createByIdWithResponse

        com.azure.core.http.rest.Response<RoleAssignmentInner> createByIdWithResponse​(String roleAssignmentId,
                                                                                      RoleAssignmentCreateParameters parameters,
                                                                                      com.azure.core.util.Context context)
        Create or update a role assignment by ID.
        Parameters:
        roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.
        parameters - Parameters for the role assignment.
        context - The context to associate with this operation.
        Returns:
        role Assignments.
        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.
      • deleteByIdWithResponseAsync

        Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>> deleteByIdWithResponseAsync​(String roleAssignmentId,
                                                                                                 String tenantId)
        Delete a role assignment by ID.
        Parameters:
        roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.
        tenantId - Tenant ID for cross-tenant request.
        Returns:
        role Assignments.
        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.
      • deleteByIdAsync

        Mono<RoleAssignmentInner> deleteByIdAsync​(String roleAssignmentId,
                                                  String tenantId)
        Delete a role assignment by ID.
        Parameters:
        roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.
        tenantId - Tenant ID for cross-tenant request.
        Returns:
        role Assignments.
        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.
      • deleteByIdAsync

        Mono<RoleAssignmentInner> deleteByIdAsync​(String roleAssignmentId)
        Delete a role assignment by ID.
        Parameters:
        roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.
        Returns:
        role Assignments.
        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.
      • deleteById

        RoleAssignmentInner deleteById​(String roleAssignmentId)
        Delete a role assignment by ID.
        Parameters:
        roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.
        Returns:
        role Assignments.
        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.
      • deleteByIdWithResponse

        com.azure.core.http.rest.Response<RoleAssignmentInner> deleteByIdWithResponse​(String roleAssignmentId,
                                                                                      String tenantId,
                                                                                      com.azure.core.util.Context context)
        Delete a role assignment by ID.
        Parameters:
        roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.
        tenantId - Tenant ID for cross-tenant request.
        context - The context to associate with this operation.
        Returns:
        role Assignments.
        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.
      • validateByIdWithResponseAsync

        Mono<com.azure.core.http.rest.Response<ValidationResponseInner>> validateByIdWithResponseAsync​(String roleAssignmentId,
                                                                                                       RoleAssignmentCreateParameters parameters)
        Validate a role assignment create or update operation by ID.
        Parameters:
        roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.
        parameters - Parameters for the role assignment.
        Returns:
        validation 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.
      • validateByIdAsync

        Mono<ValidationResponseInner> validateByIdAsync​(String roleAssignmentId,
                                                        RoleAssignmentCreateParameters parameters)
        Validate a role assignment create or update operation by ID.
        Parameters:
        roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.
        parameters - Parameters for the role assignment.
        Returns:
        validation 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.
      • validateById

        ValidationResponseInner validateById​(String roleAssignmentId,
                                             RoleAssignmentCreateParameters parameters)
        Validate a role assignment create or update operation by ID.
        Parameters:
        roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.
        parameters - Parameters for the role assignment.
        Returns:
        validation 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.
      • validateByIdWithResponse

        com.azure.core.http.rest.Response<ValidationResponseInner> validateByIdWithResponse​(String roleAssignmentId,
                                                                                            RoleAssignmentCreateParameters parameters,
                                                                                            com.azure.core.util.Context context)
        Validate a role assignment create or update operation by ID.
        Parameters:
        roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.
        parameters - Parameters for the role assignment.
        context - The context to associate with this operation.
        Returns:
        validation 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.