Interface SnapshotPolicies


  • public interface SnapshotPolicies
    Resource collection API of SnapshotPolicies.
    • Method Detail

      • 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

        SnapshotPolicy 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<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

        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

        SnapshotPolicyVolumeList 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<SnapshotPolicyVolumeList> 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.
      • getById

        SnapshotPolicy getById​(String id)
        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

        void deleteById​(String id)
        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

        void deleteByIdWithResponse​(String id,
                                    com.azure.core.util.Context context)
        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

        SnapshotPolicy.DefinitionStages.Blank define​(String name)
        Begins definition for a new SnapshotPolicy resource.
        Parameters:
        name - resource name.
        Returns:
        the first stage of the new SnapshotPolicy definition.