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 Summary
Modifier and TypeMethodDescriptioncom.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.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.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.beginDelete(String resourceGroupName, String snapshotName) Deletes a snapshot.beginDelete(String resourceGroupName, String snapshotName, com.azure.core.util.Context context) Deletes a snapshot.beginDeleteAsync(String resourceGroupName, String snapshotName) Deletes a snapshot.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.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.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.beginRevokeAccess(String resourceGroupName, String snapshotName) Revokes access to a snapshot.beginRevokeAccess(String resourceGroupName, String snapshotName, com.azure.core.util.Context context) Revokes access to a snapshot.beginRevokeAccessAsync(String resourceGroupName, String snapshotName) Revokes access to a snapshot.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.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.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.createOrUpdate(String resourceGroupName, String snapshotName, SnapshotInner snapshot) Creates or updates a snapshot.createOrUpdate(String resourceGroupName, String snapshotName, SnapshotInner snapshot, com.azure.core.util.Context context) Creates or updates a snapshot.createOrUpdateAsync(String resourceGroupName, String snapshotName, SnapshotInner snapshot) Creates or updates a snapshot.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String snapshotName, SnapshotInner snapshot) Creates or updates a snapshot.voidDeletes a snapshot.voidDeletes a snapshot.deleteAsync(String resourceGroupName, String snapshotName) Deletes a snapshot.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String snapshotName) Deletes a snapshot.getByResourceGroup(String resourceGroupName, String snapshotName) Gets information about a snapshot.getByResourceGroupAsync(String resourceGroupName, String snapshotName) Gets information about a snapshot.com.azure.core.http.rest.Response<SnapshotInner> getByResourceGroupWithResponse(String resourceGroupName, String snapshotName, com.azure.core.util.Context context) Gets information about a snapshot.Mono<com.azure.core.http.rest.Response<SnapshotInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String snapshotName) Gets information about a snapshot.grantAccess(String resourceGroupName, String snapshotName, GrantAccessData grantAccessData) Grants access to a snapshot.grantAccess(String resourceGroupName, String snapshotName, GrantAccessData grantAccessData, com.azure.core.util.Context context) Grants access to a snapshot.grantAccessAsync(String resourceGroupName, String snapshotName, GrantAccessData grantAccessData) Grants access to a snapshot.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> grantAccessWithResponseAsync(String resourceGroupName, String snapshotName, GrantAccessData grantAccessData) Grants access to a snapshot.com.azure.core.http.rest.PagedIterable<SnapshotInner> list()Lists snapshots under a subscription.com.azure.core.http.rest.PagedIterable<SnapshotInner> list(com.azure.core.util.Context context) Lists snapshots under a subscription.com.azure.core.http.rest.PagedFlux<SnapshotInner> Lists snapshots under a subscription.com.azure.core.http.rest.PagedIterable<SnapshotInner> listByResourceGroup(String resourceGroupName) Lists snapshots under a resource group.com.azure.core.http.rest.PagedIterable<SnapshotInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists snapshots under a resource group.com.azure.core.http.rest.PagedFlux<SnapshotInner> listByResourceGroupAsync(String resourceGroupName) Lists snapshots under a resource group.voidrevokeAccess(String resourceGroupName, String snapshotName) Revokes access to a snapshot.voidrevokeAccess(String resourceGroupName, String snapshotName, com.azure.core.util.Context context) Revokes access to a snapshot.revokeAccessAsync(String resourceGroupName, String snapshotName) Revokes access to a snapshot.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> revokeAccessWithResponseAsync(String resourceGroupName, String snapshotName) Revokes access to a snapshot.update(String resourceGroupName, String snapshotName, SnapshotUpdate snapshot) Updates (patches) a snapshot.update(String resourceGroupName, String snapshotName, SnapshotUpdate snapshot, com.azure.core.util.Context context) Updates (patches) a snapshot.updateAsync(String resourceGroupName, String snapshotName, SnapshotUpdate snapshot) Updates (patches) a snapshot.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String snapshotName, SnapshotUpdate snapshot) Updates (patches) a snapshot.
-
Method Details
-
listAsync
com.azure.core.http.rest.PagedFlux<SnapshotInner> listAsync()Lists snapshots under a subscription.- Specified by:
listAsyncin interfacecom.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:
listin interfacecom.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
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:
listByResourceGroupAsyncin interfacecom.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
Lists snapshots under a resource group.- Specified by:
listByResourceGroupin interfacecom.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
Responseon successful completion ofMono. - 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
Gets information about a snapshot.- Specified by:
getByResourceGroupAsyncin interfacecom.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
Gets information about a snapshot.- Specified by:
getByResourceGroupin interfacecom.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
Responseon successful completion ofMono. - 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
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
Responseon successful completion ofMono. - 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
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
Responseon successful completion ofMono. - 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
Deletes a snapshot.- Specified by:
deleteAsyncin interfacecom.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
Monothat 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
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
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
Responseon successful completion ofMono. - 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
Responseon successful completion ofMono. - 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
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
Monothat 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
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.
-