Interface SnapshotsClient
-
- All Superinterfaces:
InnerSupportsDelete<Void>,InnerSupportsGet<SnapshotInner>,InnerSupportsListing<SnapshotInner>
public interface SnapshotsClient extends InnerSupportsGet<SnapshotInner>, InnerSupportsListing<SnapshotInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in SnapshotsClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>beginDelete(String resourceGroupName, String snapshotName)Deletes a snapshot.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void>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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>beginRevokeAccess(String resourceGroupName, String snapshotName)Revokes access to a snapshot.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void>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.SnapshotInnercreateOrUpdate(String resourceGroupName, String snapshotName, SnapshotInner snapshot)Creates or updates a snapshot.SnapshotInnercreateOrUpdate(String resourceGroupName, String snapshotName, SnapshotInner snapshot, com.azure.core.util.Context context)Creates or updates a snapshot.Mono<SnapshotInner>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.voiddelete(String resourceGroupName, String snapshotName)Deletes a snapshot.voiddelete(String resourceGroupName, String snapshotName, com.azure.core.util.Context context)Deletes a snapshot.Mono<Void>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.SnapshotInnergetByResourceGroup(String resourceGroupName, String snapshotName)Gets information about a snapshot.Mono<SnapshotInner>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.AccessUriInnergrantAccess(String resourceGroupName, String snapshotName, GrantAccessData grantAccessData)Grants access to a snapshot.AccessUriInnergrantAccess(String resourceGroupName, String snapshotName, GrantAccessData grantAccessData, com.azure.core.util.Context context)Grants access to a snapshot.Mono<AccessUriInner>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>listAsync()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.Mono<Void>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.SnapshotInnerupdate(String resourceGroupName, String snapshotName, SnapshotUpdate snapshot)Updates (patches) a snapshot.SnapshotInnerupdate(String resourceGroupName, String snapshotName, SnapshotUpdate snapshot, com.azure.core.util.Context context)Updates (patches) a snapshot.Mono<SnapshotInner>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 Detail
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateAsync
Mono<SnapshotInner> createOrUpdateAsync(String resourceGroupName, String snapshotName, SnapshotInner snapshot)
Creates or updates a snapshot.- Parameters:
resourceGroupName- The name of the resource group.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
SnapshotInner createOrUpdate(String resourceGroupName, String snapshotName, SnapshotInner snapshot)
Creates or updates a snapshot.- Parameters:
resourceGroupName- The name of the resource group.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateAsync
Mono<SnapshotInner> updateAsync(String resourceGroupName, String snapshotName, SnapshotUpdate snapshot)
Updates (patches) a snapshot.- Parameters:
resourceGroupName- The name of the resource group.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
SnapshotInner update(String resourceGroupName, String snapshotName, SnapshotUpdate snapshot)
Updates (patches) a snapshot.- Parameters:
resourceGroupName- The name of the resource group.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupAsync
Mono<SnapshotInner> getByResourceGroupAsync(String resourceGroupName, String snapshotName)
Gets information about a snapshot.- Specified by:
getByResourceGroupAsyncin interfaceInnerSupportsGet<SnapshotInner>- Parameters:
resourceGroupName- The name of the resource group.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroup
SnapshotInner getByResourceGroup(String resourceGroupName, String snapshotName)
Gets information about a snapshot.- Specified by:
getByResourceGroupin interfaceInnerSupportsGet<SnapshotInner>- Parameters:
resourceGroupName- The name of the resource group.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String snapshotName)
Deletes a snapshot.- Parameters:
resourceGroupName- The name of the resource group.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteAsync
Mono<Void> deleteAsync(String resourceGroupName, String snapshotName)
Deletes a snapshot.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<Void>- Parameters:
resourceGroupName- The name of the resource group.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String snapshotName)
Deletes a snapshot.- Parameters:
resourceGroupName- The name of the resource group.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String snapshotName, com.azure.core.util.Context context)
Deletes a snapshot.- Parameters:
resourceGroupName- The name of the resource group.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<SnapshotInner> listByResourceGroupAsync(String resourceGroupName)
Lists snapshots under a resource group.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<SnapshotInner>- Parameters:
resourceGroupName- The name of the resource group.- Returns:
- the List Snapshots operation response as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<SnapshotInner> listByResourceGroup(String resourceGroupName)
Lists snapshots under a resource group.- Specified by:
listByResourceGroupin interfaceInnerSupportsListing<SnapshotInner>- Parameters:
resourceGroupName- The name of the resource group.- Returns:
- the List Snapshots operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<SnapshotInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
Lists snapshots under a resource group.- Parameters:
resourceGroupName- The name of the resource group.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listAsync
com.azure.core.http.rest.PagedFlux<SnapshotInner> listAsync()
Lists snapshots under a subscription.- Specified by:
listAsyncin interfaceInnerSupportsListing<SnapshotInner>- Returns:
- the List Snapshots operation response as paginated response with
PagedFlux. - Throws:
com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<SnapshotInner> list()
Lists snapshots under a subscription.- Specified by:
listin interfaceInnerSupportsListing<SnapshotInner>- Returns:
- the List Snapshots operation response as paginated response with
PagedIterable. - Throws:
com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
grantAccessAsync
Mono<AccessUriInner> grantAccessAsync(String resourceGroupName, String snapshotName, GrantAccessData grantAccessData)
Grants access to a snapshot.- Parameters:
resourceGroupName- The name of the resource group.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
grantAccess
AccessUriInner grantAccess(String resourceGroupName, String snapshotName, GrantAccessData grantAccessData)
Grants access to a snapshot.- Parameters:
resourceGroupName- The name of the resource group.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
revokeAccessAsync
Mono<Void> revokeAccessAsync(String resourceGroupName, String snapshotName)
Revokes access to a snapshot.- Parameters:
resourceGroupName- The name of the resource group.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
revokeAccess
void revokeAccess(String resourceGroupName, String snapshotName)
Revokes access to a snapshot.- Parameters:
resourceGroupName- The name of the resource group.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
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.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.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
-