Interface StorageSpacesOperations


public interface StorageSpacesOperations
Resource collection API of StorageSpacesOperations.
  • Method Details

    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<StorageSpaces> getByResourceGroupWithResponse(String resourceGroupName, String storageSpacesName, com.azure.core.util.Context context)
      Gets the storage space object

      Gets the Hybrid AKS storage space object.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      storageSpacesName - Parameter for the name of the storage object.
      context - The context to associate with this operation.
      Returns:
      the Hybrid AKS storage space object 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.
    • getByResourceGroup

      StorageSpaces getByResourceGroup(String resourceGroupName, String storageSpacesName)
      Gets the storage space object

      Gets the Hybrid AKS storage space object.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      storageSpacesName - Parameter for the name of the storage object.
      Returns:
      the Hybrid AKS storage space object.
      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.
    • deleteByResourceGroupWithResponse

      com.azure.core.http.rest.Response<Void> deleteByResourceGroupWithResponse(String resourceGroupName, String storageSpacesName, com.azure.core.util.Context context)
      Deletes the storage object

      Deletes the Hybrid AKS storage object.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      storageSpacesName - Parameter for the name of the storage object.
      context - The context to associate with this operation.
      Returns:
      the 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 storageSpacesName)
      Deletes the storage object

      Deletes the Hybrid AKS storage object.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      storageSpacesName - Parameter for the name of the storage object.
      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<StorageSpaces> listByResourceGroup(String resourceGroupName)
      List the storage object by resource group

      List the Hybrid AKS storage object by resource group.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      the 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<StorageSpaces> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      List the storage object by resource group

      List the Hybrid AKS storage object by resource group.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      context - The context to associate with this operation.
      Returns:
      the 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<StorageSpaces> list()
      List the storage object by subscription

      List the Hybrid AKS storage object by subscription.

      Returns:
      the 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<StorageSpaces> list(com.azure.core.util.Context context)
      List the storage object by subscription

      List the Hybrid AKS storage object by subscription.

      Parameters:
      context - The context to associate with this operation.
      Returns:
      the 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.
    • getById

      StorageSpaces getById(String id)
      Gets the storage space object

      Gets the Hybrid AKS storage space object.

      Parameters:
      id - the resource ID.
      Returns:
      the Hybrid AKS storage space object 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<StorageSpaces> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets the storage space object

      Gets the Hybrid AKS storage space object.

      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the Hybrid AKS storage space object 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)
      Deletes the storage object

      Deletes the Hybrid AKS storage object.

      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

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Deletes the storage object

      Deletes the Hybrid AKS storage object.

      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • define

      Begins definition for a new StorageSpaces resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new StorageSpaces definition.