DatastoresClient Interface

public interface DatastoresClient

An instance of this class provides access to all the operations defined in DatastoresClient.

Method Summary

Modifier and Type Method and Description
abstract SyncPoller<PollResult<DatastoreInner>,DatastoreInner> beginCreate(String resourceGroupName, String datastoreName, DatastoreInner body)

Implements datastore PUT method.

abstract SyncPoller<PollResult<DatastoreInner>,DatastoreInner> beginCreate(String resourceGroupName, String datastoreName, DatastoreInner body, Context context)

Implements datastore PUT method.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String datastoreName, Boolean force)

Deletes an datastore.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String datastoreName, Boolean force, Context context)

Deletes an datastore.

abstract DatastoreInner create(String resourceGroupName, String datastoreName)

Implements datastore PUT method.

abstract DatastoreInner create(String resourceGroupName, String datastoreName, DatastoreInner body)

Implements datastore PUT method.

abstract DatastoreInner create(String resourceGroupName, String datastoreName, DatastoreInner body, Context context)

Implements datastore PUT method.

abstract void delete(String resourceGroupName, String datastoreName)

Deletes an datastore.

abstract void delete(String resourceGroupName, String datastoreName, Boolean force)

Deletes an datastore.

abstract void delete(String resourceGroupName, String datastoreName, Boolean force, Context context)

Deletes an datastore.

abstract DatastoreInner getByResourceGroup(String resourceGroupName, String datastoreName)

Gets a datastore.

abstract Response<DatastoreInner> getByResourceGroupWithResponse(String resourceGroupName, String datastoreName, Context context)

Gets a datastore.

abstract PagedIterable<DatastoreInner> list()

Implements GET datastores in a subscription.

abstract PagedIterable<DatastoreInner> list(Context context)

Implements GET datastores in a subscription.

abstract PagedIterable<DatastoreInner> listByResourceGroup(String resourceGroupName)

Implements GET datastores in a resource group.

abstract PagedIterable<DatastoreInner> listByResourceGroup(String resourceGroupName, Context context)

Implements GET datastores in a resource group.

abstract DatastoreInner update(String resourceGroupName, String datastoreName)

Updates a datastore.

abstract Response<DatastoreInner> updateWithResponse(String resourceGroupName, String datastoreName, ResourcePatch body, Context context)

Updates a datastore.

Method Details

beginCreate

public abstract SyncPoller<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<T,U> for polling of define the datastore.

beginCreate

public abstract SyncPoller<PollResult<DatastoreInner>,DatastoreInner> beginCreate(String resourceGroupName, String datastoreName, DatastoreInner body, 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<T,U> for polling of define the datastore.

beginDelete

public abstract SyncPoller<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<T,U> for polling of long-running operation.

beginDelete

public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String datastoreName, Boolean force, 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<T,U> for polling of long-running operation.

create

public abstract DatastoreInner create(String resourceGroupName, String datastoreName)

Implements datastore PUT method.

Create Or Update datastore.

Parameters:

resourceGroupName - The Resource Group Name.
datastoreName - Name of the datastore.

Returns:

define the datastore.

create

public abstract DatastoreInner create(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:

define the datastore.

create

public abstract DatastoreInner create(String resourceGroupName, String datastoreName, DatastoreInner body, 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.

delete

public abstract void delete(String resourceGroupName, String datastoreName)

Deletes an datastore.

Implements datastore DELETE method.

Parameters:

resourceGroupName - The Resource Group Name.
datastoreName - Name of the datastore.

delete

public abstract 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.

delete

public abstract void delete(String resourceGroupName, String datastoreName, Boolean force, 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.

getByResourceGroup

public abstract DatastoreInner 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.

getByResourceGroupWithResponse

public abstract Response<DatastoreInner> getByResourceGroupWithResponse(String resourceGroupName, String datastoreName, 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<T>.

list

public abstract PagedIterable<DatastoreInner> list()

Implements GET datastores in a subscription.

List of datastores in a subscription.

Returns:

list of Datastores as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<DatastoreInner> list(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<T>.

listByResourceGroup

public abstract 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<T>.

listByResourceGroup

public abstract PagedIterable<DatastoreInner> listByResourceGroup(String resourceGroupName, 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<T>.

update

public abstract DatastoreInner update(String resourceGroupName, String datastoreName)

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.

updateWithResponse

public abstract Response<DatastoreInner> updateWithResponse(String resourceGroupName, String datastoreName, ResourcePatch body, 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<T>.

Applies to