Interface SnapshotsClient

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

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

    • listAsync

      com.azure.core.http.rest.PagedFlux<SnapshotInner> listAsync()
      Lists snapshots under a subscription.
      Specified by:
      listAsync in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<SnapshotInner>
      Returns:
      the List Snapshots 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<SnapshotInner> list()
      Lists snapshots under a subscription.
      Specified by:
      list in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<SnapshotInner>
      Returns:
      the List Snapshots 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<SnapshotInner> list(com.azure.core.util.Context context)
      Lists snapshots under a subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the List Snapshots 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<SnapshotInner> listByResourceGroupAsync(String resourceGroupName)
      Lists snapshots under a resource group.
      Specified by:
      listByResourceGroupAsync in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<SnapshotInner>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      the List Snapshots 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<SnapshotInner> listByResourceGroup(String resourceGroupName)
      Lists snapshots under a resource group.
      Specified by:
      listByResourceGroup in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing<SnapshotInner>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      the List Snapshots 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<SnapshotInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Lists snapshots 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 Snapshots 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<SnapshotInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String snapshotName)
      Gets information about a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      Returns:
      information about a snapshot 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<SnapshotInner> getByResourceGroupAsync(String resourceGroupName, String snapshotName)
      Gets information about a snapshot.
      Specified by:
      getByResourceGroupAsync in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet<SnapshotInner>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      Returns:
      information about a snapshot 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<SnapshotInner> getByResourceGroupWithResponse(String resourceGroupName, String snapshotName, com.azure.core.util.Context context)
      Gets information about a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      context - The context to associate with this operation.
      Returns:
      information about a snapshot 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

      SnapshotInner getByResourceGroup(String resourceGroupName, String snapshotName)
      Gets information about a snapshot.
      Specified by:
      getByResourceGroup in interface com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet<SnapshotInner>
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      Returns:
      information about a snapshot.
      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 snapshotName, SnapshotInner snapshot)
      Creates or updates a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      snapshot - Snapshot object supplied in the body of the Put disk operation.
      Returns:
      snapshot 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<SnapshotInner>, SnapshotInner> beginCreateOrUpdateAsync(String resourceGroupName, String snapshotName, SnapshotInner snapshot)
      Creates or updates a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      snapshot - Snapshot object supplied in the body of the Put disk operation.
      Returns:
      the PollerFlux for polling of snapshot 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<SnapshotInner>, SnapshotInner> beginCreateOrUpdate(String resourceGroupName, String snapshotName, SnapshotInner snapshot)
      Creates or updates a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      snapshot - Snapshot object supplied in the body of the Put disk operation.
      Returns:
      the SyncPoller for polling of snapshot 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<SnapshotInner>, SnapshotInner> beginCreateOrUpdate(String resourceGroupName, String snapshotName, SnapshotInner snapshot, com.azure.core.util.Context context)
      Creates or updates a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      snapshot - Snapshot object supplied in the body of the Put disk operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of snapshot 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<SnapshotInner> createOrUpdateAsync(String resourceGroupName, String snapshotName, SnapshotInner snapshot)
      Creates or updates a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      snapshot - Snapshot object supplied in the body of the Put disk operation.
      Returns:
      snapshot 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

      SnapshotInner createOrUpdate(String resourceGroupName, String snapshotName, SnapshotInner snapshot)
      Creates or updates a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      snapshot - Snapshot object supplied in the body of the Put disk operation.
      Returns:
      snapshot 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

      SnapshotInner createOrUpdate(String resourceGroupName, String snapshotName, SnapshotInner snapshot, com.azure.core.util.Context context)
      Creates or updates a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      snapshot - Snapshot object supplied in the body of the Put disk operation.
      context - The context to associate with this operation.
      Returns:
      snapshot 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 snapshotName, SnapshotUpdate snapshot)
      Updates (patches) a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      snapshot - Snapshot object supplied in the body of the Patch snapshot operation.
      Returns:
      snapshot 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<SnapshotInner>, SnapshotInner> beginUpdateAsync(String resourceGroupName, String snapshotName, SnapshotUpdate snapshot)
      Updates (patches) a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      snapshot - Snapshot object supplied in the body of the Patch snapshot operation.
      Returns:
      the PollerFlux for polling of snapshot 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<SnapshotInner>, SnapshotInner> beginUpdate(String resourceGroupName, String snapshotName, SnapshotUpdate snapshot)
      Updates (patches) a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      snapshot - Snapshot object supplied in the body of the Patch snapshot operation.
      Returns:
      the SyncPoller for polling of snapshot 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<SnapshotInner>, SnapshotInner> beginUpdate(String resourceGroupName, String snapshotName, SnapshotUpdate snapshot, com.azure.core.util.Context context)
      Updates (patches) a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      snapshot - Snapshot object supplied in the body of the Patch snapshot operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of snapshot 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<SnapshotInner> updateAsync(String resourceGroupName, String snapshotName, SnapshotUpdate snapshot)
      Updates (patches) a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      snapshot - Snapshot object supplied in the body of the Patch snapshot operation.
      Returns:
      snapshot 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

      SnapshotInner update(String resourceGroupName, String snapshotName, SnapshotUpdate snapshot)
      Updates (patches) a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      snapshot - Snapshot object supplied in the body of the Patch snapshot operation.
      Returns:
      snapshot 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

      SnapshotInner update(String resourceGroupName, String snapshotName, SnapshotUpdate snapshot, com.azure.core.util.Context context)
      Updates (patches) a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      snapshot - Snapshot object supplied in the body of the Patch snapshot operation.
      context - The context to associate with this operation.
      Returns:
      snapshot 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 snapshotName)
      Deletes a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max 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 snapshotName)
      Deletes a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max 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 snapshotName)
      Deletes a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max 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 snapshotName, com.azure.core.util.Context context)
      Deletes a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max 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 snapshotName)
      Deletes a snapshot.
      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.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max 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 snapshotName)
      Deletes a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max 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 snapshotName, com.azure.core.util.Context context)
      Deletes a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max 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 snapshotName, GrantAccessData grantAccessData)
      Grants access to a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      grantAccessData - Access data object supplied in the body of the get snapshot 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 snapshotName, GrantAccessData grantAccessData)
      Grants access to a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      grantAccessData - Access data object supplied in the body of the get snapshot 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 snapshotName, GrantAccessData grantAccessData)
      Grants access to a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      grantAccessData - Access data object supplied in the body of the get snapshot 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 snapshotName, GrantAccessData grantAccessData, com.azure.core.util.Context context)
      Grants access to a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      grantAccessData - Access data object supplied in the body of the get snapshot 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 snapshotName, GrantAccessData grantAccessData)
      Grants access to a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      grantAccessData - Access data object supplied in the body of the get snapshot 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 snapshotName, GrantAccessData grantAccessData)
      Grants access to a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      grantAccessData - Access data object supplied in the body of the get snapshot 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 snapshotName, GrantAccessData grantAccessData, com.azure.core.util.Context context)
      Grants access to a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.
      grantAccessData - Access data object supplied in the body of the get snapshot 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 snapshotName)
      Revokes access to a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max 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 snapshotName)
      Revokes access to a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max 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 snapshotName)
      Revokes access to a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max 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 snapshotName, com.azure.core.util.Context context)
      Revokes access to a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max 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 snapshotName)
      Revokes access to a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max 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 snapshotName)
      Revokes access to a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max 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 snapshotName, com.azure.core.util.Context context)
      Revokes access to a snapshot.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      snapshotName - The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max 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.