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
Modifier and TypeMethodDescriptioncreateOrUpdate(String resourceGroupName, String resourceName, SnapshotInner parameters) Creates or updates a snapshot.createOrUpdateAsync(String resourceGroupName, String resourceName, SnapshotInner parameters) Creates or updates a snapshot.com.azure.core.http.rest.Response<SnapshotInner>createOrUpdateWithResponse(String resourceGroupName, String resourceName, SnapshotInner parameters, com.azure.core.util.Context context) Creates or updates a snapshot.Mono<com.azure.core.http.rest.Response<SnapshotInner>>createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName, SnapshotInner parameters) Creates or updates a snapshot.voidDeletes a snapshot.deleteAsync(String resourceGroupName, String resourceName) Deletes a snapshot.com.azure.core.http.rest.Response<Void>deleteWithResponse(String resourceGroupName, String resourceName, com.azure.core.util.Context context) Deletes a snapshot.deleteWithResponseAsync(String resourceGroupName, String resourceName) Deletes a snapshot.getByResourceGroup(String resourceGroupName, String resourceName) Gets a snapshot.getByResourceGroupAsync(String resourceGroupName, String resourceName) Gets a snapshot.com.azure.core.http.rest.Response<SnapshotInner>getByResourceGroupWithResponse(String resourceGroupName, String resourceName, com.azure.core.util.Context context) Gets a snapshot.Mono<com.azure.core.http.rest.Response<SnapshotInner>>getByResourceGroupWithResponseAsync(String resourceGroupName, String resourceName) Gets a snapshot.com.azure.core.http.rest.PagedIterable<SnapshotInner>list()Gets a list of snapshots in the specified subscription.com.azure.core.http.rest.PagedIterable<SnapshotInner>list(com.azure.core.util.Context context) Gets a list of snapshots in the specified subscription.com.azure.core.http.rest.PagedFlux<SnapshotInner>Gets a list of snapshots in the specified subscription.com.azure.core.http.rest.PagedIterable<SnapshotInner>listByResourceGroup(String resourceGroupName) Lists snapshots in the specified subscription and resource group.com.azure.core.http.rest.PagedIterable<SnapshotInner>listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists snapshots in the specified subscription and resource group.com.azure.core.http.rest.PagedFlux<SnapshotInner>listByResourceGroupAsync(String resourceGroupName) Lists snapshots in the specified subscription and resource group.updateTags(String resourceGroupName, String resourceName, TagsObject parameters) Updates tags on a snapshot.updateTagsAsync(String resourceGroupName, String resourceName, TagsObject parameters) Updates tags on a snapshot.com.azure.core.http.rest.Response<SnapshotInner>updateTagsWithResponse(String resourceGroupName, String resourceName, TagsObject parameters, com.azure.core.util.Context context) Updates tags on a snapshot.Mono<com.azure.core.http.rest.Response<SnapshotInner>>updateTagsWithResponseAsync(String resourceGroupName, String resourceName, TagsObject parameters) Updates tags on a snapshot.
-
Method Details
-
listAsync
com.azure.core.http.rest.PagedFlux<SnapshotInner> listAsync()Gets a list of snapshots in the specified subscription.- Specified by:
listAsyncin interfaceInnerSupportsListing<SnapshotInner>- Returns:
- a list of snapshots in the specified subscription as paginated response with
PagedFlux. - Throws:
com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<SnapshotInner> list()Gets a list of snapshots in the specified subscription.- Specified by:
listin interfaceInnerSupportsListing<SnapshotInner>- Returns:
- a list of snapshots in the specified subscription as paginated response with
PagedIterable. - Throws:
com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
Gets a list of snapshots in the specified subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- a list of snapshots in the specified subscription as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<SnapshotInner> listByResourceGroupAsync(String resourceGroupName) Lists snapshots in the specified subscription and resource group.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<SnapshotInner>- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- the response from the List Snapshots operation 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
Lists snapshots in the specified subscription and resource group.- Specified by:
listByResourceGroupin interfaceInnerSupportsListing<SnapshotInner>- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- the response from the List Snapshots operation 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 in the specified subscription and 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 response from the List Snapshots operation 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.
-
getByResourceGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<SnapshotInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String resourceName) Gets a snapshot.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the managed cluster resource.- Returns:
- 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
Gets a snapshot.- Specified by:
getByResourceGroupAsyncin interfaceInnerSupportsGet<SnapshotInner>- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the managed cluster resource.- Returns:
- 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
Gets a snapshot.- Specified by:
getByResourceGroupin interfaceInnerSupportsGet<SnapshotInner>- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the managed cluster resource.- Returns:
- 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 resourceName, com.azure.core.util.Context context) Gets a snapshot.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the managed cluster resource.context- The context to associate with this operation.- Returns:
- 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.
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<SnapshotInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName, SnapshotInner parameters) Creates or updates a snapshot.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the managed cluster resource.parameters- The snapshot to create or update.- Returns:
- a node pool 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.
-
createOrUpdateAsync
Mono<SnapshotInner> createOrUpdateAsync(String resourceGroupName, String resourceName, SnapshotInner parameters) Creates or updates a snapshot.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the managed cluster resource.parameters- The snapshot to create or update.- Returns:
- a node pool 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 resourceName, SnapshotInner parameters) Creates or updates a snapshot.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the managed cluster resource.parameters- The snapshot to create or update.- Returns:
- a node pool 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<SnapshotInner> createOrUpdateWithResponse(String resourceGroupName, String resourceName, SnapshotInner parameters, com.azure.core.util.Context context) Creates or updates a snapshot.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the managed cluster resource.parameters- The snapshot to create or update.context- The context to associate with this operation.- Returns:
- a node pool snapshot resource 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.
-
updateTagsWithResponseAsync
Mono<com.azure.core.http.rest.Response<SnapshotInner>> updateTagsWithResponseAsync(String resourceGroupName, String resourceName, TagsObject parameters) Updates tags on a snapshot.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the managed cluster resource.parameters- Parameters supplied to the Update snapshot Tags operation.- Returns:
- a node pool 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.
-
updateTagsAsync
Mono<SnapshotInner> updateTagsAsync(String resourceGroupName, String resourceName, TagsObject parameters) Updates tags on a snapshot.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the managed cluster resource.parameters- Parameters supplied to the Update snapshot Tags operation.- Returns:
- a node pool 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.
-
updateTags
Updates tags on a snapshot.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the managed cluster resource.parameters- Parameters supplied to the Update snapshot Tags operation.- Returns:
- a node pool 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.
-
updateTagsWithResponse
com.azure.core.http.rest.Response<SnapshotInner> updateTagsWithResponse(String resourceGroupName, String resourceName, TagsObject parameters, com.azure.core.util.Context context) Updates tags on a snapshot.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the managed cluster resource.parameters- Parameters supplied to the Update snapshot Tags operation.context- The context to associate with this operation.- Returns:
- a node pool snapshot resource 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<Void>> deleteWithResponseAsync(String resourceGroupName, String resourceName) Deletes a snapshot.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the managed cluster resource.- 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.
-
deleteAsync
Deletes a snapshot.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<Void>- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the managed cluster resource.- 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
Deletes a snapshot.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the managed cluster 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String resourceName, com.azure.core.util.Context context) Deletes a snapshot.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the managed cluster resource.context- The context to associate with this operation.- Returns:
- the
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.
-