Interface Datastores


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

    • getByResourceGroup

      Datastore getByResourceGroup(String resourceGroupName, String datastoreName)
      Gets a datastore.

      Implements datastore GET method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      datastoreName - Name of the datastore.
      Returns:
      define the datastore.
      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<Datastore> getByResourceGroupWithResponse(String resourceGroupName, String datastoreName, com.azure.core.util.Context context)
      Gets a datastore.

      Implements datastore GET method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      datastoreName - Name of the datastore.
      context - The context to associate with this operation.
      Returns:
      define the datastore 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 datastoreName, Boolean force)
      Deletes an datastore.

      Implements datastore DELETE method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      datastoreName - Name of the datastore.
      force - Whether force delete was specified.
      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 datastoreName)
      Deletes an datastore.

      Implements datastore DELETE method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      datastoreName - Name of the datastore.
      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 datastoreName, Boolean force, com.azure.core.util.Context context)
      Deletes an datastore.

      Implements datastore DELETE method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      datastoreName - Name of the datastore.
      force - Whether force delete was specified.
      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.
    • list

      com.azure.core.http.rest.PagedIterable<Datastore> list()
      Implements GET datastores in a subscription.

      List of datastores in a subscription.

      Returns:
      list of Datastores 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<Datastore> list(com.azure.core.util.Context context)
      Implements GET datastores in a subscription.

      List of datastores in a subscription.

      Parameters:
      context - The context to associate with this operation.
      Returns:
      list of Datastores 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<Datastore> listByResourceGroup(String resourceGroupName)
      Implements GET datastores in a resource group.

      List of datastores in a resource group.

      Parameters:
      resourceGroupName - The Resource Group Name.
      Returns:
      list of Datastores 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<Datastore> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Implements GET datastores in a resource group.

      List of datastores in a resource group.

      Parameters:
      resourceGroupName - The Resource Group Name.
      context - The context to associate with this operation.
      Returns:
      list of Datastores 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.
    • getById

      Datastore getById(String id)
      Gets a datastore.

      Implements datastore GET method.

      Parameters:
      id - the resource ID.
      Returns:
      define the datastore 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<Datastore> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets a datastore.

      Implements datastore GET method.

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

      Implements datastore DELETE method.

      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, Boolean force, com.azure.core.util.Context context)
      Deletes an datastore.

      Implements datastore DELETE method.

      Parameters:
      id - the resource ID.
      force - Whether force delete was specified.
      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 Datastore resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new Datastore definition.