Interface Pools


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

      • list

        com.azure.core.http.rest.PagedIterable<CapacityPool> list​(String resourceGroupName,
                                                                  String accountName)
        List all capacity pools in the NetApp Account.
        Parameters:
        resourceGroupName - The name of the resource group.
        accountName - The name of the NetApp account.
        Returns:
        list of capacity pool resources 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<CapacityPool> list​(String resourceGroupName,
                                                                  String accountName,
                                                                  com.azure.core.util.Context context)
        List all capacity pools in the NetApp Account.
        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 capacity pool resources 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

        CapacityPool get​(String resourceGroupName,
                         String accountName,
                         String poolName)
        Get details of the specified capacity pool.
        Parameters:
        resourceGroupName - The name of the resource group.
        accountName - The name of the NetApp account.
        poolName - The name of the capacity pool.
        Returns:
        details of the specified capacity pool.
        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<CapacityPool> getWithResponse​(String resourceGroupName,
                                                                        String accountName,
                                                                        String poolName,
                                                                        com.azure.core.util.Context context)
        Get details of the specified capacity pool.
        Parameters:
        resourceGroupName - The name of the resource group.
        accountName - The name of the NetApp account.
        poolName - The name of the capacity pool.
        context - The context to associate with this operation.
        Returns:
        details of the specified capacity pool 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 poolName)
        Delete the specified capacity pool.
        Parameters:
        resourceGroupName - The name of the resource group.
        accountName - The name of the NetApp account.
        poolName - The name of the capacity pool.
        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 poolName,
                    com.azure.core.util.Context context)
        Delete the specified capacity pool.
        Parameters:
        resourceGroupName - The name of the resource group.
        accountName - The name of the NetApp account.
        poolName - The name of the capacity pool.
        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.
      • getById

        CapacityPool getById​(String id)
        Get details of the specified capacity pool.
        Parameters:
        id - the resource ID.
        Returns:
        details of the specified capacity pool 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<CapacityPool> getByIdWithResponse​(String id,
                                                                            com.azure.core.util.Context context)
        Get details of the specified capacity pool.
        Parameters:
        id - the resource ID.
        context - The context to associate with this operation.
        Returns:
        details of the specified capacity pool 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 the specified capacity pool.
        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 the specified capacity pool.
        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

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