Datastores interface

Interface representing a Datastores.

Methods

beginCreate(string, string, DatastoresCreateOptionalParams)

Create Or Update datastore.

beginCreateAndWait(string, string, DatastoresCreateOptionalParams)

Create Or Update datastore.

beginDelete(string, string, DatastoresDeleteOptionalParams)

Implements datastore DELETE method.

beginDeleteAndWait(string, string, DatastoresDeleteOptionalParams)

Implements datastore DELETE method.

get(string, string, DatastoresGetOptionalParams)

Implements datastore GET method.

list(DatastoresListOptionalParams)

List of datastores in a subscription.

listByResourceGroup(string, DatastoresListByResourceGroupOptionalParams)

List of datastores in a resource group.

update(string, string, DatastoresUpdateOptionalParams)

API to update certain properties of the datastore resource.

Method Details

beginCreate(string, string, DatastoresCreateOptionalParams)

Create Or Update datastore.

function beginCreate(resourceGroupName: string, datastoreName: string, options?: DatastoresCreateOptionalParams): Promise<SimplePollerLike<OperationState<Datastore>, Datastore>>

Parameters

resourceGroupName

string

The Resource Group Name.

datastoreName

string

Name of the datastore.

options
DatastoresCreateOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<Datastore>, Datastore>>

beginCreateAndWait(string, string, DatastoresCreateOptionalParams)

Create Or Update datastore.

function beginCreateAndWait(resourceGroupName: string, datastoreName: string, options?: DatastoresCreateOptionalParams): Promise<Datastore>

Parameters

resourceGroupName

string

The Resource Group Name.

datastoreName

string

Name of the datastore.

options
DatastoresCreateOptionalParams

The options parameters.

Returns

Promise<Datastore>

beginDelete(string, string, DatastoresDeleteOptionalParams)

Implements datastore DELETE method.

function beginDelete(resourceGroupName: string, datastoreName: string, options?: DatastoresDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

Parameters

resourceGroupName

string

The Resource Group Name.

datastoreName

string

Name of the datastore.

options
DatastoresDeleteOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait(string, string, DatastoresDeleteOptionalParams)

Implements datastore DELETE method.

function beginDeleteAndWait(resourceGroupName: string, datastoreName: string, options?: DatastoresDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The Resource Group Name.

datastoreName

string

Name of the datastore.

options
DatastoresDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, DatastoresGetOptionalParams)

Implements datastore GET method.

function get(resourceGroupName: string, datastoreName: string, options?: DatastoresGetOptionalParams): Promise<Datastore>

Parameters

resourceGroupName

string

The Resource Group Name.

datastoreName

string

Name of the datastore.

options
DatastoresGetOptionalParams

The options parameters.

Returns

Promise<Datastore>

list(DatastoresListOptionalParams)

List of datastores in a subscription.

function list(options?: DatastoresListOptionalParams): PagedAsyncIterableIterator<Datastore, Datastore[], PageSettings>

Parameters

options
DatastoresListOptionalParams

The options parameters.

Returns

listByResourceGroup(string, DatastoresListByResourceGroupOptionalParams)

List of datastores in a resource group.

function listByResourceGroup(resourceGroupName: string, options?: DatastoresListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Datastore, Datastore[], PageSettings>

Parameters

resourceGroupName

string

The Resource Group Name.

options
DatastoresListByResourceGroupOptionalParams

The options parameters.

Returns

update(string, string, DatastoresUpdateOptionalParams)

API to update certain properties of the datastore resource.

function update(resourceGroupName: string, datastoreName: string, options?: DatastoresUpdateOptionalParams): Promise<Datastore>

Parameters

resourceGroupName

string

The Resource Group Name.

datastoreName

string

Name of the datastore.

options
DatastoresUpdateOptionalParams

The options parameters.

Returns

Promise<Datastore>