Interface Datastores


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

      • list

        com.azure.core.http.rest.PagedIterable<Datastore> list​(String resourceGroupName,
                                                               String privateCloudName,
                                                               String clusterName)
        List datastores in a private cloud cluster.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        privateCloudName - Name of the private cloud.
        clusterName - Name of the cluster in the private cloud.
        Returns:
        a paged list of datastores.
        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​(String resourceGroupName,
                                                               String privateCloudName,
                                                               String clusterName,
                                                               com.azure.core.util.Context context)
        List datastores in a private cloud cluster.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        privateCloudName - Name of the private cloud.
        clusterName - Name of the cluster in the private cloud.
        context - The context to associate with this operation.
        Returns:
        a paged list of datastores.
        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

        Datastore get​(String resourceGroupName,
                      String privateCloudName,
                      String clusterName,
                      String datastoreName)
        Get a datastore in a private cloud cluster.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        privateCloudName - Name of the private cloud.
        clusterName - Name of the cluster in the private cloud.
        datastoreName - Name of the datastore in the private cloud cluster.
        Returns:
        a datastore in a private cloud cluster.
        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<Datastore> getWithResponse​(String resourceGroupName,
                                                                     String privateCloudName,
                                                                     String clusterName,
                                                                     String datastoreName,
                                                                     com.azure.core.util.Context context)
        Get a datastore in a private cloud cluster.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        privateCloudName - Name of the private cloud.
        clusterName - Name of the cluster in the private cloud.
        datastoreName - Name of the datastore in the private cloud cluster.
        context - The context to associate with this operation.
        Returns:
        a datastore in a private cloud cluster.
        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 privateCloudName,
                    String clusterName,
                    String datastoreName)
        Delete a datastore in a private cloud cluster.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        privateCloudName - Name of the private cloud.
        clusterName - Name of the cluster in the private cloud.
        datastoreName - Name of the datastore in the private cloud cluster.
        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 privateCloudName,
                    String clusterName,
                    String datastoreName,
                    com.azure.core.util.Context context)
        Delete a datastore in a private cloud cluster.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        privateCloudName - Name of the private cloud.
        clusterName - Name of the cluster in the private cloud.
        datastoreName - Name of the datastore in the private cloud cluster.
        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

        Datastore getById​(String id)
        Get a datastore in a private cloud cluster.
        Parameters:
        id - the resource ID.
        Returns:
        a datastore in a private cloud cluster.
        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)
        Get a datastore in a private cloud cluster.
        Parameters:
        id - the resource ID.
        context - The context to associate with this operation.
        Returns:
        a datastore in a private cloud cluster.
        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 a datastore in a private cloud cluster.
        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 a datastore in a private cloud cluster.
        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

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