Interface DenyAssignmentsClient

All Superinterfaces:
InnerSupportsListing<DenyAssignmentInner>

public interface DenyAssignmentsClient extends InnerSupportsListing<DenyAssignmentInner>
An instance of this class provides access to all the operations defined in DenyAssignmentsClient.
  • Method Details

    • listForResourceAsync

      com.azure.core.http.rest.PagedFlux<DenyAssignmentInner> listForResourceAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String filter)
      Gets deny assignments for a resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      resourceProviderNamespace - The namespace of the resource provider.
      parentResourcePath - The parent resource identity.
      resourceType - The resource type of the resource.
      resourceName - The name of the resource to get deny assignments for.
      filter - The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned.
      Returns:
      deny assignments for a resource 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.
    • listForResourceAsync

      com.azure.core.http.rest.PagedFlux<DenyAssignmentInner> listForResourceAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName)
      Gets deny assignments for a resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      resourceProviderNamespace - The namespace of the resource provider.
      parentResourcePath - The parent resource identity.
      resourceType - The resource type of the resource.
      resourceName - The name of the resource to get deny assignments for.
      Returns:
      deny assignments for a resource 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.
    • listForResource

      com.azure.core.http.rest.PagedIterable<DenyAssignmentInner> listForResource(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName)
      Gets deny assignments for a resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      resourceProviderNamespace - The namespace of the resource provider.
      parentResourcePath - The parent resource identity.
      resourceType - The resource type of the resource.
      resourceName - The name of the resource to get deny assignments for.
      Returns:
      deny assignments for a resource 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.
    • listForResource

      com.azure.core.http.rest.PagedIterable<DenyAssignmentInner> listForResource(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String filter, com.azure.core.util.Context context)
      Gets deny assignments for a resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      resourceProviderNamespace - The namespace of the resource provider.
      parentResourcePath - The parent resource identity.
      resourceType - The resource type of the resource.
      resourceName - The name of the resource to get deny assignments for.
      filter - The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned.
      context - The context to associate with this operation.
      Returns:
      deny assignments for a resource 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.
    • listByResourceGroupAsync

      com.azure.core.http.rest.PagedFlux<DenyAssignmentInner> listByResourceGroupAsync(String resourceGroupName, String filter)
      Gets deny assignments for 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 deny assignments at or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned.
      Returns:
      deny assignments for a resource group 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.
    • listByResourceGroupAsync

      com.azure.core.http.rest.PagedFlux<DenyAssignmentInner> listByResourceGroupAsync(String resourceGroupName)
      Gets deny assignments for a resource group.
      Specified by:
      listByResourceGroupAsync in interface InnerSupportsListing<DenyAssignmentInner>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      deny assignments for a resource group 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<DenyAssignmentInner> listByResourceGroup(String resourceGroupName)
      Gets deny assignments for a resource group.
      Specified by:
      listByResourceGroup in interface InnerSupportsListing<DenyAssignmentInner>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      deny assignments for a resource group 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<DenyAssignmentInner> listByResourceGroup(String resourceGroupName, String filter, com.azure.core.util.Context context)
      Gets deny assignments for 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 deny assignments at or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned.
      context - The context to associate with this operation.
      Returns:
      deny assignments for a resource group 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.
    • listAsync

      com.azure.core.http.rest.PagedFlux<DenyAssignmentInner> listAsync(String filter)
      Gets all deny assignments for the subscription.
      Parameters:
      filter - The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned.
      Returns:
      all deny assignments for the subscription 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.
    • listAsync

      com.azure.core.http.rest.PagedFlux<DenyAssignmentInner> listAsync()
      Gets all deny assignments for the subscription.
      Specified by:
      listAsync in interface InnerSupportsListing<DenyAssignmentInner>
      Returns:
      all deny assignments for the subscription as paginated response with PagedFlux.
      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<DenyAssignmentInner> list()
      Gets all deny assignments for the subscription.
      Specified by:
      list in interface InnerSupportsListing<DenyAssignmentInner>
      Returns:
      all deny assignments for the subscription as paginated response with PagedIterable.
      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<DenyAssignmentInner> list(String filter, com.azure.core.util.Context context)
      Gets all deny assignments for the subscription.
      Parameters:
      filter - The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned.
      context - The context to associate with this operation.
      Returns:
      all deny assignments for the subscription 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.
    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<DenyAssignmentInner>> getWithResponseAsync(String scope, String denyAssignmentId)
      Get the specified deny assignment.
      Parameters:
      scope - The scope of the deny assignment.
      denyAssignmentId - The ID of the deny assignment to get.
      Returns:
      the specified deny assignment along with Response 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.
    • getAsync

      Mono<DenyAssignmentInner> getAsync(String scope, String denyAssignmentId)
      Get the specified deny assignment.
      Parameters:
      scope - The scope of the deny assignment.
      denyAssignmentId - The ID of the deny assignment to get.
      Returns:
      the specified deny assignment 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<DenyAssignmentInner> getWithResponse(String scope, String denyAssignmentId, com.azure.core.util.Context context)
      Get the specified deny assignment.
      Parameters:
      scope - The scope of the deny assignment.
      denyAssignmentId - The ID of the deny assignment to get.
      context - The context to associate with this operation.
      Returns:
      the specified deny assignment 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

      DenyAssignmentInner get(String scope, String denyAssignmentId)
      Get the specified deny assignment.
      Parameters:
      scope - The scope of the deny assignment.
      denyAssignmentId - The ID of the deny assignment to get.
      Returns:
      the specified deny assignment.
      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<DenyAssignmentInner>> getByIdWithResponseAsync(String denyAssignmentId)
      Gets a deny assignment by ID.
      Parameters:
      denyAssignmentId - The fully qualified deny assignment ID. For example, use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for subscription level deny assignments, or /providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for tenant level deny assignments.
      Returns:
      a deny assignment by ID along with Response 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.
    • getByIdAsync

      Mono<DenyAssignmentInner> getByIdAsync(String denyAssignmentId)
      Gets a deny assignment by ID.
      Parameters:
      denyAssignmentId - The fully qualified deny assignment ID. For example, use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for subscription level deny assignments, or /providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for tenant level deny assignments.
      Returns:
      a deny assignment by ID 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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<DenyAssignmentInner> getByIdWithResponse(String denyAssignmentId, com.azure.core.util.Context context)
      Gets a deny assignment by ID.
      Parameters:
      denyAssignmentId - The fully qualified deny assignment ID. For example, use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for subscription level deny assignments, or /providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for tenant level deny assignments.
      context - The context to associate with this operation.
      Returns:
      a deny assignment by ID 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.
    • getById

      DenyAssignmentInner getById(String denyAssignmentId)
      Gets a deny assignment by ID.
      Parameters:
      denyAssignmentId - The fully qualified deny assignment ID. For example, use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for subscription level deny assignments, or /providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for tenant level deny assignments.
      Returns:
      a deny 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.
    • listForScopeAsync

      com.azure.core.http.rest.PagedFlux<DenyAssignmentInner> listForScopeAsync(String scope, String filter)
      Gets deny assignments for a scope.
      Parameters:
      scope - The scope of the deny assignments.
      filter - The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned.
      Returns:
      deny assignments for a 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.
    • listForScopeAsync

      com.azure.core.http.rest.PagedFlux<DenyAssignmentInner> listForScopeAsync(String scope)
      Gets deny assignments for a scope.
      Parameters:
      scope - The scope of the deny assignments.
      Returns:
      deny assignments for a 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

      com.azure.core.http.rest.PagedIterable<DenyAssignmentInner> listForScope(String scope)
      Gets deny assignments for a scope.
      Parameters:
      scope - The scope of the deny assignments.
      Returns:
      deny assignments for a 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<DenyAssignmentInner> listForScope(String scope, String filter, com.azure.core.util.Context context)
      Gets deny assignments for a scope.
      Parameters:
      scope - The scope of the deny assignments.
      filter - The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned.
      context - The context to associate with this operation.
      Returns:
      deny assignments for a 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.