Interface Accounts


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

      • list

        com.azure.core.http.rest.PagedIterable<NetAppAccount> list()
        List and describe all NetApp accounts in the subscription.
        Returns:
        list of NetApp account resources as paginated response with PagedIterable.
        Throws:
        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<NetAppAccount> list​(com.azure.core.util.Context context)
        List and describe all NetApp accounts in the subscription.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        list of NetApp account 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.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<NetAppAccount> listByResourceGroup​(String resourceGroupName)
        List and describe all NetApp accounts in the resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        Returns:
        list of NetApp account 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.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<NetAppAccount> listByResourceGroup​(String resourceGroupName,
                                                                                  com.azure.core.util.Context context)
        List and describe all NetApp accounts in the resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        context - The context to associate with this operation.
        Returns:
        list of NetApp account 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.
      • getByResourceGroup

        NetAppAccount getByResourceGroup​(String resourceGroupName,
                                         String accountName)
        Get the NetApp account.
        Parameters:
        resourceGroupName - The name of the resource group.
        accountName - The name of the NetApp account.
        Returns:
        the NetApp account.
        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.
      • getByResourceGroupWithResponse

        com.azure.core.http.rest.Response<NetAppAccount> getByResourceGroupWithResponse​(String resourceGroupName,
                                                                                        String accountName,
                                                                                        com.azure.core.util.Context context)
        Get 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:
        the NetApp account 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.
      • deleteByResourceGroup

        void deleteByResourceGroup​(String resourceGroupName,
                                   String accountName)
        Delete the specified NetApp account.
        Parameters:
        resourceGroupName - The name of the resource group.
        accountName - The name of the NetApp account.
        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,
                    com.azure.core.util.Context context)
        Delete the specified 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.
        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

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

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