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> beginCreate
(String resourceGroupName, String datastoreName, DatastoreInner body) Implements datastore PUT method.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatastoreInner>,
DatastoreInner> beginCreate
(String resourceGroupName, String datastoreName, DatastoreInner body, com.azure.core.util.Context context) Implements datastore PUT method.beginDelete
(String resourceGroupName, String datastoreName, Boolean force) Deletes an datastore.beginDelete
(String resourceGroupName, String datastoreName, Boolean force, com.azure.core.util.Context context) Deletes an datastore.Implements datastore PUT method.create
(String resourceGroupName, String datastoreName, DatastoreInner body) Implements datastore PUT method.create
(String resourceGroupName, String datastoreName, DatastoreInner body, com.azure.core.util.Context context) Implements datastore PUT method.void
Deletes an datastore.void
Deletes an datastore.void
delete
(String resourceGroupName, String datastoreName, Boolean force, com.azure.core.util.Context context) Deletes an datastore.getByResourceGroup
(String resourceGroupName, String datastoreName) Gets a datastore.com.azure.core.http.rest.Response<DatastoreInner>
getByResourceGroupWithResponse
(String resourceGroupName, String datastoreName, com.azure.core.util.Context context) Gets a datastore.com.azure.core.http.rest.PagedIterable<DatastoreInner>
list()
Implements GET datastores in a subscription.com.azure.core.http.rest.PagedIterable<DatastoreInner>
list
(com.azure.core.util.Context context) Implements GET datastores in a subscription.com.azure.core.http.rest.PagedIterable<DatastoreInner>
listByResourceGroup
(String resourceGroupName) Implements GET datastores in a resource group.com.azure.core.http.rest.PagedIterable<DatastoreInner>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Implements GET datastores in a resource group.Updates a datastore.com.azure.core.http.rest.Response<DatastoreInner>
updateWithResponse
(String resourceGroupName, String datastoreName, ResourcePatch body, com.azure.core.util.Context context) Updates a datastore.
-
Method Details
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatastoreInner>,DatastoreInner> beginCreate(String resourceGroupName, String datastoreName, DatastoreInner body) Implements datastore PUT method.Create Or Update datastore.
- Parameters:
resourceGroupName
- The Resource Group Name.datastoreName
- Name of the datastore.body
- Request payload.- Returns:
- the
SyncPoller
for polling of 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatastoreInner>,DatastoreInner> beginCreate(String resourceGroupName, String datastoreName, DatastoreInner body, com.azure.core.util.Context context) Implements datastore PUT method.Create Or Update datastore.
- Parameters:
resourceGroupName
- The Resource Group Name.datastoreName
- Name of the datastore.body
- Request payload.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of 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.
-
create
Implements datastore PUT method.Create Or Update datastore.
- Parameters:
resourceGroupName
- The Resource Group Name.datastoreName
- Name of the datastore.body
- Request payload.- 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.
-
create
Implements datastore PUT method.Create Or Update datastore.
- 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.
-
create
DatastoreInner create(String resourceGroupName, String datastoreName, DatastoreInner body, com.azure.core.util.Context context) Implements datastore PUT method.Create Or Update datastore.
- Parameters:
resourceGroupName
- The Resource Group Name.datastoreName
- Name of the datastore.body
- Request payload.context
- The context to associate with this operation.- 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.
-
getByResourceGroup
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<DatastoreInner> 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.
-
update
Updates a datastore.API to update certain properties of the datastore resource.
- 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.
-
updateWithResponse
com.azure.core.http.rest.Response<DatastoreInner> updateWithResponse(String resourceGroupName, String datastoreName, ResourcePatch body, com.azure.core.util.Context context) Updates a datastore.API to update certain properties of the datastore resource.
- Parameters:
resourceGroupName
- The Resource Group Name.datastoreName
- Name of the datastore.body
- Resource properties to update.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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.- 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 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.- 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
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
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<DatastoreInner> 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
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<DatastoreInner> 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<DatastoreInner> 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.
-