Interface SnapshotPoliciesClient
public interface SnapshotPoliciesClient
An instance of this class provides access to all the operations defined in SnapshotPoliciesClient.
-
Method Summary
Modifier and TypeMethodDescriptionbeginDelete(String resourceGroupName, String accountName, String snapshotPolicyName) Delete snapshot policy.beginDelete(String resourceGroupName, String accountName, String snapshotPolicyName, com.azure.core.util.Context context) Delete snapshot policy.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SnapshotPolicyInner>, SnapshotPolicyInner> beginUpdate(String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body) Patch a snapshot policy.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SnapshotPolicyInner>, SnapshotPolicyInner> beginUpdate(String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body, com.azure.core.util.Context context) Patch a snapshot policy.create(String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyInner body) Create a snapshot policy.com.azure.core.http.rest.Response<SnapshotPolicyInner> createWithResponse(String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyInner body, com.azure.core.util.Context context) Create a snapshot policy.voidDelete snapshot policy.voiddelete(String resourceGroupName, String accountName, String snapshotPolicyName, com.azure.core.util.Context context) Delete snapshot policy.Get a snapshot Policy.com.azure.core.http.rest.Response<SnapshotPolicyInner> getWithResponse(String resourceGroupName, String accountName, String snapshotPolicyName, com.azure.core.util.Context context) Get a snapshot Policy.com.azure.core.http.rest.PagedIterable<SnapshotPolicyInner> List snapshot policy.com.azure.core.http.rest.PagedIterable<SnapshotPolicyInner> List snapshot policy.listVolumes(String resourceGroupName, String accountName, String snapshotPolicyName) Get volumes for snapshot policy Get volumes associated with snapshot policy.com.azure.core.http.rest.Response<SnapshotPolicyVolumeListInner> listVolumesWithResponse(String resourceGroupName, String accountName, String snapshotPolicyName, com.azure.core.util.Context context) Get volumes for snapshot policy Get volumes associated with snapshot policy.update(String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body) Patch a snapshot policy.update(String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body, com.azure.core.util.Context context) Patch a snapshot policy.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<SnapshotPolicyInner> list(String resourceGroupName, String accountName) List snapshot policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.- Returns:
- list of Snapshot Policies 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.
-
list
com.azure.core.http.rest.PagedIterable<SnapshotPolicyInner> list(String resourceGroupName, String accountName, com.azure.core.util.Context context) List snapshot policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.context- The context to associate with this operation.- Returns:
- list of Snapshot Policies 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.
-
getWithResponse
com.azure.core.http.rest.Response<SnapshotPolicyInner> getWithResponse(String resourceGroupName, String accountName, String snapshotPolicyName, com.azure.core.util.Context context) Get a snapshot Policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.snapshotPolicyName- The name of the snapshot policy.context- The context to associate with this operation.- Returns:
- a snapshot Policy 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.
-
get
Get a snapshot Policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.snapshotPolicyName- The name of the snapshot policy.- Returns:
- a snapshot Policy.
- 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.
-
createWithResponse
com.azure.core.http.rest.Response<SnapshotPolicyInner> createWithResponse(String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyInner body, com.azure.core.util.Context context) Create a snapshot policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.snapshotPolicyName- The name of the snapshot policy.body- Snapshot policy object supplied in the body of the operation.context- The context to associate with this operation.- Returns:
- snapshot policy information 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.
-
create
SnapshotPolicyInner create(String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyInner body) Create a snapshot policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.snapshotPolicyName- The name of the snapshot policy.body- Snapshot policy object supplied in the body of the operation.- Returns:
- snapshot policy information.
- 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<SnapshotPolicyInner>,SnapshotPolicyInner> beginUpdate(String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body) Patch a snapshot policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.snapshotPolicyName- The name of the snapshot policy.body- Snapshot policy object supplied in the body of the operation.- Returns:
- the
SyncPollerfor polling of snapshot policy information. - 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<SnapshotPolicyInner>,SnapshotPolicyInner> beginUpdate(String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body, com.azure.core.util.Context context) Patch a snapshot policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.snapshotPolicyName- The name of the snapshot policy.body- Snapshot policy object supplied in the body of the operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of snapshot policy information. - 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
SnapshotPolicyInner update(String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body) Patch a snapshot policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.snapshotPolicyName- The name of the snapshot policy.body- Snapshot policy object supplied in the body of the operation.- Returns:
- snapshot policy information.
- 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
SnapshotPolicyInner update(String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body, com.azure.core.util.Context context) Patch a snapshot policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.snapshotPolicyName- The name of the snapshot policy.body- Snapshot policy object supplied in the body of the operation.context- The context to associate with this operation.- Returns:
- snapshot policy information.
- 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 accountName, String snapshotPolicyName) Delete snapshot policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.snapshotPolicyName- The name of the snapshot policy.- 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 accountName, String snapshotPolicyName, com.azure.core.util.Context context) Delete snapshot policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.snapshotPolicyName- The name of the snapshot policy.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.
-
delete
Delete snapshot policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.snapshotPolicyName- The name of the snapshot policy.- 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 accountName, String snapshotPolicyName, com.azure.core.util.Context context) Delete snapshot policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.snapshotPolicyName- The name of the snapshot policy.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.
-
listVolumesWithResponse
com.azure.core.http.rest.Response<SnapshotPolicyVolumeListInner> listVolumesWithResponse(String resourceGroupName, String accountName, String snapshotPolicyName, com.azure.core.util.Context context) Get volumes for snapshot policy Get volumes associated with snapshot policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.snapshotPolicyName- The name of the snapshot policy.context- The context to associate with this operation.- Returns:
- volumes associated with snapshot policy 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.
-
listVolumes
SnapshotPolicyVolumeListInner listVolumes(String resourceGroupName, String accountName, String snapshotPolicyName) Get volumes for snapshot policy Get volumes associated with snapshot policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.snapshotPolicyName- The name of the snapshot policy.- Returns:
- volumes associated with snapshot policy.
- 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.
-