Interface DisksClient

All Superinterfaces:
com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete<Void>, com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet<DiskInner>, com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<DiskInner>

public interface DisksClient extends com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet<DiskInner>, com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<DiskInner>, com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in DisksClient.
  • Method Details

    • listAsync

      com.azure.core.http.rest.PagedFlux<DiskInner> listAsync()
      Lists all the disks under a subscription.
      Specified by:
      listAsync in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<DiskInner>
      Returns:
      the List Disks operation response as paginated response with PagedFlux.
      Throws:
      ApiErrorException - 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<DiskInner> list()
      Lists all the disks under a subscription.
      Specified by:
      list in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<DiskInner>
      Returns:
      the List Disks operation response as paginated response with PagedIterable.
      Throws:
      ApiErrorException - 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<DiskInner> list(com.azure.core.util.Context context)
      Lists all the disks under a subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the List Disks operation response as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - 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<DiskInner> listByResourceGroupAsync(String resourceGroupName)
      Lists all the disks under a resource group.
      Specified by:
      listByResourceGroupAsync in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<DiskInner>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      the List Disks operation response as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - 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<DiskInner> listByResourceGroup(String resourceGroupName)
      Lists all the disks under a resource group.
      Specified by:
      listByResourceGroup in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<DiskInner>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      the List Disks operation response as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - 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<DiskInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Lists all the disks under a resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      context - The context to associate with this operation.
      Returns:
      the List Disks operation response as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByResourceGroupWithResponseAsync

      Mono<com.azure.core.http.rest.Response<DiskInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String diskName)
      Gets information about a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      Returns:
      information about a disk along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByResourceGroupAsync

      Mono<DiskInner> getByResourceGroupAsync(String resourceGroupName, String diskName)
      Gets information about a disk.
      Specified by:
      getByResourceGroupAsync in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet<DiskInner>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      Returns:
      information about a disk on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<DiskInner> getByResourceGroupWithResponse(String resourceGroupName, String diskName, com.azure.core.util.Context context)
      Gets information about a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      context - The context to associate with this operation.
      Returns:
      information about a disk along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByResourceGroup

      DiskInner getByResourceGroup(String resourceGroupName, String diskName)
      Gets information about a disk.
      Specified by:
      getByResourceGroup in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet<DiskInner>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      Returns:
      information about a disk.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String diskName, DiskInner disk)
      Creates or updates a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      disk - Disk object supplied in the body of the Put disk operation.
      Returns:
      disk resource along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreateOrUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DiskInner>, DiskInner> beginCreateOrUpdateAsync(String resourceGroupName, String diskName, DiskInner disk)
      Creates or updates a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      disk - Disk object supplied in the body of the Put disk operation.
      Returns:
      the PollerFlux for polling of disk resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DiskInner>, DiskInner> beginCreateOrUpdate(String resourceGroupName, String diskName, DiskInner disk)
      Creates or updates a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      disk - Disk object supplied in the body of the Put disk operation.
      Returns:
      the SyncPoller for polling of disk resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DiskInner>, DiskInner> beginCreateOrUpdate(String resourceGroupName, String diskName, DiskInner disk, com.azure.core.util.Context context)
      Creates or updates a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      disk - Disk object supplied in the body of the Put disk operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of disk resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateAsync

      Mono<DiskInner> createOrUpdateAsync(String resourceGroupName, String diskName, DiskInner disk)
      Creates or updates a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      disk - Disk object supplied in the body of the Put disk operation.
      Returns:
      disk resource on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      DiskInner createOrUpdate(String resourceGroupName, String diskName, DiskInner disk)
      Creates or updates a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      disk - Disk object supplied in the body of the Put disk operation.
      Returns:
      disk resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      DiskInner createOrUpdate(String resourceGroupName, String diskName, DiskInner disk, com.azure.core.util.Context context)
      Creates or updates a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      disk - Disk object supplied in the body of the Put disk operation.
      context - The context to associate with this operation.
      Returns:
      disk resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String diskName, DiskUpdate disk)
      Updates (patches) a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      disk - Disk object supplied in the body of the Patch disk operation.
      Returns:
      disk resource along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DiskInner>, DiskInner> beginUpdateAsync(String resourceGroupName, String diskName, DiskUpdate disk)
      Updates (patches) a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      disk - Disk object supplied in the body of the Patch disk operation.
      Returns:
      the PollerFlux for polling of disk resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DiskInner>, DiskInner> beginUpdate(String resourceGroupName, String diskName, DiskUpdate disk)
      Updates (patches) a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      disk - Disk object supplied in the body of the Patch disk operation.
      Returns:
      the SyncPoller for polling of disk resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DiskInner>, DiskInner> beginUpdate(String resourceGroupName, String diskName, DiskUpdate disk, com.azure.core.util.Context context)
      Updates (patches) a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      disk - Disk object supplied in the body of the Patch disk operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of disk resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateAsync

      Mono<DiskInner> updateAsync(String resourceGroupName, String diskName, DiskUpdate disk)
      Updates (patches) a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      disk - Disk object supplied in the body of the Patch disk operation.
      Returns:
      disk resource on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      DiskInner update(String resourceGroupName, String diskName, DiskUpdate disk)
      Updates (patches) a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      disk - Disk object supplied in the body of the Patch disk operation.
      Returns:
      disk resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      DiskInner update(String resourceGroupName, String diskName, DiskUpdate disk, com.azure.core.util.Context context)
      Updates (patches) a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      disk - Disk object supplied in the body of the Patch disk operation.
      context - The context to associate with this operation.
      Returns:
      disk resource.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - 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<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String diskName)
      Deletes a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDeleteAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginDeleteAsync(String resourceGroupName, String diskName)
      Deletes a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDelete(String resourceGroupName, String diskName)
      Deletes a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginDelete(String resourceGroupName, String diskName, com.azure.core.util.Context context)
      Deletes a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String diskName)
      Deletes a disk.
      Specified by:
      deleteAsync in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete<Void>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String diskName)
      Deletes a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String diskName, com.azure.core.util.Context context)
      Deletes a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • grantAccessWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> grantAccessWithResponseAsync(String resourceGroupName, String diskName, GrantAccessData grantAccessData)
      Grants access to a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      grantAccessData - Access data object supplied in the body of the get disk access operation.
      Returns:
      a disk access SAS uri along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginGrantAccessAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<AccessUriInner>, AccessUriInner> beginGrantAccessAsync(String resourceGroupName, String diskName, GrantAccessData grantAccessData)
      Grants access to a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      grantAccessData - Access data object supplied in the body of the get disk access operation.
      Returns:
      the PollerFlux for polling of a disk access SAS uri.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginGrantAccess

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccessUriInner>, AccessUriInner> beginGrantAccess(String resourceGroupName, String diskName, GrantAccessData grantAccessData)
      Grants access to a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      grantAccessData - Access data object supplied in the body of the get disk access operation.
      Returns:
      the SyncPoller for polling of a disk access SAS uri.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginGrantAccess

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccessUriInner>, AccessUriInner> beginGrantAccess(String resourceGroupName, String diskName, GrantAccessData grantAccessData, com.azure.core.util.Context context)
      Grants access to a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      grantAccessData - Access data object supplied in the body of the get disk access operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of a disk access SAS uri.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • grantAccessAsync

      Mono<AccessUriInner> grantAccessAsync(String resourceGroupName, String diskName, GrantAccessData grantAccessData)
      Grants access to a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      grantAccessData - Access data object supplied in the body of the get disk access operation.
      Returns:
      a disk access SAS uri on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • grantAccess

      AccessUriInner grantAccess(String resourceGroupName, String diskName, GrantAccessData grantAccessData)
      Grants access to a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      grantAccessData - Access data object supplied in the body of the get disk access operation.
      Returns:
      a disk access SAS uri.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • grantAccess

      AccessUriInner grantAccess(String resourceGroupName, String diskName, GrantAccessData grantAccessData, com.azure.core.util.Context context)
      Grants access to a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      grantAccessData - Access data object supplied in the body of the get disk access operation.
      context - The context to associate with this operation.
      Returns:
      a disk access SAS uri.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • revokeAccessWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> revokeAccessWithResponseAsync(String resourceGroupName, String diskName)
      Revokes access to a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRevokeAccessAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>, Void> beginRevokeAccessAsync(String resourceGroupName, String diskName)
      Revokes access to a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRevokeAccess

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginRevokeAccess(String resourceGroupName, String diskName)
      Revokes access to a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRevokeAccess

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>, Void> beginRevokeAccess(String resourceGroupName, String diskName, com.azure.core.util.Context context)
      Revokes access to a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • revokeAccessAsync

      Mono<Void> revokeAccessAsync(String resourceGroupName, String diskName)
      Revokes access to a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • revokeAccess

      void revokeAccess(String resourceGroupName, String diskName)
      Revokes access to a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • revokeAccess

      void revokeAccess(String resourceGroupName, String diskName, com.azure.core.util.Context context)
      Revokes access to a disk.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.