Interface SnapshotPoliciesClient
-
public interface SnapshotPoliciesClient
An instance of this class provides access to all the operations defined in SnapshotPoliciesClient.
-
-
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<Void>,Void>
beginDelete(String resourceGroupName, String accountName, String snapshotPolicyName)
Delete snapshot policy.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.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.SnapshotPolicyInner
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.void
delete(String resourceGroupName, String accountName, String snapshotPolicyName)
Delete snapshot policy.void
delete(String resourceGroupName, String accountName, String snapshotPolicyName, com.azure.core.util.Context context)
Delete snapshot policy.SnapshotPolicyInner
get(String resourceGroupName, String accountName, String snapshotPolicyName)
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(String resourceGroupName, String accountName)
List snapshot policy.com.azure.core.http.rest.PagedIterable<SnapshotPolicyInner>
list(String resourceGroupName, String accountName, com.azure.core.util.Context context)
List snapshot policy.SnapshotPolicyVolumeListInner
listVolumes(String resourceGroupName, String accountName, String snapshotPolicyName)
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 associated with snapshot policy.SnapshotPolicyInner
update(String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body)
Patch a snapshot policy.SnapshotPolicyInner
update(String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyPatch body, com.azure.core.util.Context context)
Patch a snapshot policy.
-
-
-
Method Detail
-
list
com.azure.core.http.rest.PagedIterable<SnapshotPolicyInner> list(String resourceGroupName, String accountName)
List snapshot policy.- Parameters:
resourceGroupName
- The name of the resource group.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.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.
-
get
SnapshotPolicyInner get(String resourceGroupName, String accountName, String snapshotPolicyName)
Get a snapshot Policy.- Parameters:
resourceGroupName
- The name of the resource group.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.
-
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.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.
-
create
SnapshotPolicyInner create(String resourceGroupName, String accountName, String snapshotPolicyName, SnapshotPolicyInner body)
Create a snapshot policy.- Parameters:
resourceGroupName
- The name of the resource group.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.
-
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.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.
-
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.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
SyncPoller
for 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.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
SyncPoller
for 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.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.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.accountName
- The name of the NetApp account.snapshotPolicyName
- The name of the snapshot policy.- Returns:
- the
SyncPoller
for 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.accountName
- The name of the NetApp account.snapshotPolicyName
- The name of the snapshot policy.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.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)
Delete snapshot policy.- Parameters:
resourceGroupName
- The name of the resource group.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.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.
-
listVolumes
SnapshotPolicyVolumeListInner listVolumes(String resourceGroupName, String accountName, String snapshotPolicyName)
Get volumes associated with snapshot policy.- Parameters:
resourceGroupName
- The name of the resource group.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.
-
listVolumesWithResponse
com.azure.core.http.rest.Response<SnapshotPolicyVolumeListInner> listVolumesWithResponse(String resourceGroupName, String accountName, String snapshotPolicyName, com.azure.core.util.Context context)
Get volumes associated with snapshot policy.- Parameters:
resourceGroupName
- The name of the resource group.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.
-
-