Interface SnapshotPolicies
public interface SnapshotPolicies
Resource collection API of SnapshotPolicies.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new SnapshotPolicy resource.void
Delete snapshot policy.void
delete
(String resourceGroupName, String accountName, String snapshotPolicyName, com.azure.core.util.Context context) Delete snapshot policy.void
deleteById
(String id) Delete snapshot policy.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete snapshot policy.Get a snapshot Policy.Get a snapshot Policy.com.azure.core.http.rest.Response<SnapshotPolicy>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get a snapshot Policy.com.azure.core.http.rest.Response<SnapshotPolicy>
getWithResponse
(String resourceGroupName, String accountName, String snapshotPolicyName, com.azure.core.util.Context context) Get a snapshot Policy.com.azure.core.http.rest.PagedIterable<SnapshotPolicy>
List snapshot policy.com.azure.core.http.rest.PagedIterable<SnapshotPolicy>
List snapshot policy.listVolumes
(String resourceGroupName, String accountName, String snapshotPolicyName) Get volumes for snapshot policycom.azure.core.http.rest.Response<SnapshotPolicyVolumeList>
listVolumesWithResponse
(String resourceGroupName, String accountName, String snapshotPolicyName, com.azure.core.util.Context context) Get volumes for snapshot policy
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<SnapshotPolicy> 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<SnapshotPolicy> 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
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<SnapshotPolicy> 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.
-
delete
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
SnapshotPolicyVolumeList listVolumes(String resourceGroupName, String accountName, String snapshotPolicyName) Get volumes for snapshot policyGet 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<SnapshotPolicyVolumeList> listVolumesWithResponse(String resourceGroupName, String accountName, String snapshotPolicyName, com.azure.core.util.Context context) Get volumes for snapshot policyGet 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.
-
getById
Get a snapshot Policy.- Parameters:
id
- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<SnapshotPolicy> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a snapshot Policy.- Parameters:
id
- the resource ID.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.
-
deleteById
Delete snapshot policy.- Parameters:
id
- the resource ID.- 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.
-
deleteByIdWithResponse
Delete snapshot policy.- Parameters:
id
- the resource ID.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.
-
define
Begins definition for a new SnapshotPolicy resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new SnapshotPolicy definition.
-