DigitalTwins interface

Interface representing a DigitalTwins.

Methods

beginCreateOrUpdate(string, string, DigitalTwinsDescription, DigitalTwinsCreateOrUpdateOptionalParams)

Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance.

beginCreateOrUpdateAndWait(string, string, DigitalTwinsDescription, DigitalTwinsCreateOrUpdateOptionalParams)

Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance.

beginDelete(string, string, DigitalTwinsDeleteOptionalParams)

Delete a DigitalTwinsInstance.

beginDeleteAndWait(string, string, DigitalTwinsDeleteOptionalParams)

Delete a DigitalTwinsInstance.

beginUpdate(string, string, DigitalTwinsPatchDescription, DigitalTwinsUpdateOptionalParams)

Update metadata of DigitalTwinsInstance.

beginUpdateAndWait(string, string, DigitalTwinsPatchDescription, DigitalTwinsUpdateOptionalParams)

Update metadata of DigitalTwinsInstance.

checkNameAvailability(string, CheckNameRequest, DigitalTwinsCheckNameAvailabilityOptionalParams)

Check if a DigitalTwinsInstance name is available.

get(string, string, DigitalTwinsGetOptionalParams)

Get DigitalTwinsInstances resource.

list(DigitalTwinsListOptionalParams)

Get all the DigitalTwinsInstances in a subscription.

listByResourceGroup(string, DigitalTwinsListByResourceGroupOptionalParams)

Get all the DigitalTwinsInstances in a resource group.

Method Details

beginCreateOrUpdate(string, string, DigitalTwinsDescription, DigitalTwinsCreateOrUpdateOptionalParams)

Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance.

function beginCreateOrUpdate(resourceGroupName: string, resourceName: string, digitalTwinsCreate: DigitalTwinsDescription, options?: DigitalTwinsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<DigitalTwinsDescription>, DigitalTwinsDescription>>

Parameters

resourceGroupName

string

The name of the resource group that contains the DigitalTwinsInstance.

resourceName

string

The name of the DigitalTwinsInstance.

digitalTwinsCreate
DigitalTwinsDescription

The DigitalTwinsInstance and security metadata.

options
DigitalTwinsCreateOrUpdateOptionalParams

The options parameters.

Returns

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

beginCreateOrUpdateAndWait(string, string, DigitalTwinsDescription, DigitalTwinsCreateOrUpdateOptionalParams)

Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance.

function beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, digitalTwinsCreate: DigitalTwinsDescription, options?: DigitalTwinsCreateOrUpdateOptionalParams): Promise<DigitalTwinsDescription>

Parameters

resourceGroupName

string

The name of the resource group that contains the DigitalTwinsInstance.

resourceName

string

The name of the DigitalTwinsInstance.

digitalTwinsCreate
DigitalTwinsDescription

The DigitalTwinsInstance and security metadata.

options
DigitalTwinsCreateOrUpdateOptionalParams

The options parameters.

Returns

beginDelete(string, string, DigitalTwinsDeleteOptionalParams)

Delete a DigitalTwinsInstance.

function beginDelete(resourceGroupName: string, resourceName: string, options?: DigitalTwinsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<DigitalTwinsDescription>, DigitalTwinsDescription>>

Parameters

resourceGroupName

string

The name of the resource group that contains the DigitalTwinsInstance.

resourceName

string

The name of the DigitalTwinsInstance.

options
DigitalTwinsDeleteOptionalParams

The options parameters.

Returns

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

beginDeleteAndWait(string, string, DigitalTwinsDeleteOptionalParams)

Delete a DigitalTwinsInstance.

function beginDeleteAndWait(resourceGroupName: string, resourceName: string, options?: DigitalTwinsDeleteOptionalParams): Promise<DigitalTwinsDescription>

Parameters

resourceGroupName

string

The name of the resource group that contains the DigitalTwinsInstance.

resourceName

string

The name of the DigitalTwinsInstance.

options
DigitalTwinsDeleteOptionalParams

The options parameters.

Returns

beginUpdate(string, string, DigitalTwinsPatchDescription, DigitalTwinsUpdateOptionalParams)

Update metadata of DigitalTwinsInstance.

function beginUpdate(resourceGroupName: string, resourceName: string, digitalTwinsPatchDescription: DigitalTwinsPatchDescription, options?: DigitalTwinsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<DigitalTwinsDescription>, DigitalTwinsDescription>>

Parameters

resourceGroupName

string

The name of the resource group that contains the DigitalTwinsInstance.

resourceName

string

The name of the DigitalTwinsInstance.

digitalTwinsPatchDescription
DigitalTwinsPatchDescription

The DigitalTwinsInstance and security metadata.

options
DigitalTwinsUpdateOptionalParams

The options parameters.

Returns

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

beginUpdateAndWait(string, string, DigitalTwinsPatchDescription, DigitalTwinsUpdateOptionalParams)

Update metadata of DigitalTwinsInstance.

function beginUpdateAndWait(resourceGroupName: string, resourceName: string, digitalTwinsPatchDescription: DigitalTwinsPatchDescription, options?: DigitalTwinsUpdateOptionalParams): Promise<DigitalTwinsDescription>

Parameters

resourceGroupName

string

The name of the resource group that contains the DigitalTwinsInstance.

resourceName

string

The name of the DigitalTwinsInstance.

digitalTwinsPatchDescription
DigitalTwinsPatchDescription

The DigitalTwinsInstance and security metadata.

options
DigitalTwinsUpdateOptionalParams

The options parameters.

Returns

checkNameAvailability(string, CheckNameRequest, DigitalTwinsCheckNameAvailabilityOptionalParams)

Check if a DigitalTwinsInstance name is available.

function checkNameAvailability(location: string, digitalTwinsInstanceCheckName: CheckNameRequest, options?: DigitalTwinsCheckNameAvailabilityOptionalParams): Promise<CheckNameResult>

Parameters

location

string

Location of DigitalTwinsInstance.

digitalTwinsInstanceCheckName
CheckNameRequest

Set the name parameter in the DigitalTwinsInstanceCheckName structure to the name of the DigitalTwinsInstance to check.

options
DigitalTwinsCheckNameAvailabilityOptionalParams

The options parameters.

Returns

Promise<CheckNameResult>

get(string, string, DigitalTwinsGetOptionalParams)

Get DigitalTwinsInstances resource.

function get(resourceGroupName: string, resourceName: string, options?: DigitalTwinsGetOptionalParams): Promise<DigitalTwinsDescription>

Parameters

resourceGroupName

string

The name of the resource group that contains the DigitalTwinsInstance.

resourceName

string

The name of the DigitalTwinsInstance.

options
DigitalTwinsGetOptionalParams

The options parameters.

Returns

list(DigitalTwinsListOptionalParams)

Get all the DigitalTwinsInstances in a subscription.

function list(options?: DigitalTwinsListOptionalParams): PagedAsyncIterableIterator<DigitalTwinsDescription, DigitalTwinsDescription[], PageSettings>

Parameters

options
DigitalTwinsListOptionalParams

The options parameters.

Returns

listByResourceGroup(string, DigitalTwinsListByResourceGroupOptionalParams)

Get all the DigitalTwinsInstances in a resource group.

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

Parameters

resourceGroupName

string

The name of the resource group that contains the DigitalTwinsInstance.

options
DigitalTwinsListByResourceGroupOptionalParams

The options parameters.

Returns