Datastores Interface

public interface Datastores

Resource collection API of Datastores.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new Datastore resource.

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 void deleteById(String id)

Deletes an datastore.

abstract void deleteByIdWithResponse(String id, Boolean force, Context context)

Deletes an datastore.

abstract Datastore getById(String id)

Gets a datastore.

abstract Response<Datastore> getByIdWithResponse(String id, Context context)

Gets a datastore.

abstract Datastore getByResourceGroup(String resourceGroupName, String datastoreName)

Gets a datastore.

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

Gets a datastore.

abstract PagedIterable<Datastore> list()

Implements GET datastores in a subscription.

abstract PagedIterable<Datastore> list(Context context)

Implements GET datastores in a subscription.

abstract PagedIterable<Datastore> listByResourceGroup(String resourceGroupName)

Implements GET datastores in a resource group.

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

Implements GET datastores in a resource group.

Method Details

define

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

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.

deleteById

public abstract void deleteById(String id)

Deletes an datastore.

Implements datastore DELETE method.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract void deleteByIdWithResponse(String id, Boolean force, 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.

getById

public abstract Datastore getById(String id)

Gets a datastore.

Implements datastore GET method.

Parameters:

id - the resource ID.

Returns:

define the datastore along with Response<T>.

getByIdWithResponse

public abstract Response<Datastore> getByIdWithResponse(String id, 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<T>.

getByResourceGroup

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

getByResourceGroupWithResponse

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

listByResourceGroup

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

Applies to