Interface DatastoresClient
public interface DatastoresClient
An instance of this class provides access to all the operations defined in DatastoresClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatastoreInner>,
DatastoreInner> beginCreateOrUpdate
(String resourceGroupName, String privateCloudName, String clusterName, String datastoreName, DatastoreInner datastore) Create or update a datastore in a private cloud cluster.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatastoreInner>,
DatastoreInner> beginCreateOrUpdate
(String resourceGroupName, String privateCloudName, String clusterName, String datastoreName, DatastoreInner datastore, com.azure.core.util.Context context) Create or update a datastore in a private cloud cluster.beginDelete
(String resourceGroupName, String privateCloudName, String clusterName, String datastoreName) Delete a datastore in a private cloud cluster.beginDelete
(String resourceGroupName, String privateCloudName, String clusterName, String datastoreName, com.azure.core.util.Context context) Delete a datastore in a private cloud cluster.createOrUpdate
(String resourceGroupName, String privateCloudName, String clusterName, String datastoreName, DatastoreInner datastore) Create or update a datastore in a private cloud cluster.createOrUpdate
(String resourceGroupName, String privateCloudName, String clusterName, String datastoreName, DatastoreInner datastore, com.azure.core.util.Context context) Create or update a datastore in a private cloud cluster.void
Delete a datastore in a private cloud cluster.void
delete
(String resourceGroupName, String privateCloudName, String clusterName, String datastoreName, com.azure.core.util.Context context) Delete a datastore in a private cloud cluster.Get a datastore in a private cloud cluster.com.azure.core.http.rest.Response<DatastoreInner>
getWithResponse
(String resourceGroupName, String privateCloudName, String clusterName, String datastoreName, com.azure.core.util.Context context) Get a datastore in a private cloud cluster.com.azure.core.http.rest.PagedIterable<DatastoreInner>
List datastores in a private cloud cluster.com.azure.core.http.rest.PagedIterable<DatastoreInner>
list
(String resourceGroupName, String privateCloudName, String clusterName, com.azure.core.util.Context context) List datastores in a private cloud cluster.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<DatastoreInner> 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 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<DatastoreInner> 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 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.
-
getWithResponse
com.azure.core.http.rest.Response<DatastoreInner> 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 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.
-
get
DatastoreInner 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatastoreInner>,DatastoreInner> beginCreateOrUpdate(String resourceGroupName, String privateCloudName, String clusterName, String datastoreName, DatastoreInner datastore) Create or update 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.datastore
- A datastore in a private cloud cluster.- Returns:
- the
SyncPoller
for polling of a datastore resource. - 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatastoreInner>,DatastoreInner> beginCreateOrUpdate(String resourceGroupName, String privateCloudName, String clusterName, String datastoreName, DatastoreInner datastore, com.azure.core.util.Context context) Create or update 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.datastore
- A datastore in a private cloud cluster.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of a datastore resource. - 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.
-
createOrUpdate
DatastoreInner createOrUpdate(String resourceGroupName, String privateCloudName, String clusterName, String datastoreName, DatastoreInner datastore) Create or update 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.datastore
- A datastore in a private cloud cluster.- Returns:
- a datastore resource.
- 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.
-
createOrUpdate
DatastoreInner createOrUpdate(String resourceGroupName, String privateCloudName, String clusterName, String datastoreName, DatastoreInner datastore, com.azure.core.util.Context context) Create or update 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.datastore
- A datastore in a private cloud cluster.context
- The context to associate with this operation.- Returns:
- a datastore resource.
- 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
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.
-