@azure/arm-digitaltwins 1.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/LICENSE.txt +1 -1
- package/README.md +72 -77
- package/dist/index.js +2613 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/azureDigitalTwinsManagementClient.d.ts +22 -0
- package/dist-esm/src/azureDigitalTwinsManagementClient.d.ts.map +1 -0
- package/dist-esm/src/azureDigitalTwinsManagementClient.js +55 -0
- package/dist-esm/src/azureDigitalTwinsManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +677 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +85 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +40 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +609 -256
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +19 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +171 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/digitalTwins.d.ts +119 -0
- package/dist-esm/src/operations/digitalTwins.d.ts.map +1 -0
- package/dist-esm/src/operations/digitalTwins.js +549 -0
- package/dist-esm/src/operations/digitalTwins.js.map +1 -0
- package/dist-esm/src/operations/digitalTwinsEndpoint.d.ts +81 -0
- package/dist-esm/src/operations/digitalTwinsEndpoint.d.ts.map +1 -0
- package/dist-esm/src/operations/digitalTwinsEndpoint.js +345 -0
- package/dist-esm/src/operations/digitalTwinsEndpoint.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +6 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +5 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +63 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +264 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +28 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +85 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/digitalTwins.d.ts +83 -0
- package/dist-esm/src/operationsInterfaces/digitalTwins.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/digitalTwins.js +9 -0
- package/dist-esm/src/operationsInterfaces/digitalTwins.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/digitalTwinsEndpoint.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/digitalTwinsEndpoint.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/digitalTwinsEndpoint.js +9 -0
- package/dist-esm/src/operationsInterfaces/digitalTwinsEndpoint.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +13 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +55 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +20 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -31
- package/review/arm-digitaltwins.api.md +620 -0
- package/rollup.config.js +181 -30
- package/src/azureDigitalTwinsManagementClient.ts +82 -33
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +587 -684
- package/src/models/mappers.ts +638 -255
- package/src/models/parameters.ts +128 -44
- package/src/operations/digitalTwins.ts +557 -367
- package/src/operations/digitalTwinsEndpoint.ts +340 -192
- package/src/operations/index.ts +5 -5
- package/src/operations/operations.ts +87 -73
- package/src/operations/privateEndpointConnections.ts +377 -0
- package/src/operations/privateLinkResources.ts +116 -0
- package/src/operationsInterfaces/digitalTwins.ts +164 -0
- package/src/operationsInterfaces/digitalTwinsEndpoint.ts +115 -0
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +108 -0
- package/src/operationsInterfaces/privateLinkResources.ts +42 -0
- package/tsconfig.json +3 -3
- package/types/arm-digitaltwins.d.ts +1009 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-digitaltwins.js +0 -1601
- package/dist/arm-digitaltwins.js.map +0 -1
- package/dist/arm-digitaltwins.min.js +0 -1
- package/dist/arm-digitaltwins.min.js.map +0 -1
- package/esm/azureDigitalTwinsManagementClient.d.ts +0 -20
- package/esm/azureDigitalTwinsManagementClient.d.ts.map +0 -1
- package/esm/azureDigitalTwinsManagementClient.js +0 -35
- package/esm/azureDigitalTwinsManagementClient.js.map +0 -1
- package/esm/azureDigitalTwinsManagementClientContext.d.ts +0 -16
- package/esm/azureDigitalTwinsManagementClientContext.d.ts.map +0 -1
- package/esm/azureDigitalTwinsManagementClientContext.js +0 -56
- package/esm/azureDigitalTwinsManagementClientContext.js.map +0 -1
- package/esm/models/digitalTwinsEndpointMappers.d.ts +0 -2
- package/esm/models/digitalTwinsEndpointMappers.d.ts.map +0 -1
- package/esm/models/digitalTwinsEndpointMappers.js +0 -9
- package/esm/models/digitalTwinsEndpointMappers.js.map +0 -1
- package/esm/models/digitalTwinsMappers.d.ts +0 -2
- package/esm/models/digitalTwinsMappers.d.ts.map +0 -1
- package/esm/models/digitalTwinsMappers.js +0 -9
- package/esm/models/digitalTwinsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -815
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -28
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -10
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -113
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/digitalTwins.d.ts +0 -179
- package/esm/operations/digitalTwins.d.ts.map +0 -1
- package/esm/operations/digitalTwins.js +0 -377
- package/esm/operations/digitalTwins.js.map +0 -1
- package/esm/operations/digitalTwinsEndpoint.d.ts +0 -113
- package/esm/operations/digitalTwinsEndpoint.d.ts.map +0 -1
- package/esm/operations/digitalTwinsEndpoint.js +0 -240
- package/esm/operations/digitalTwinsEndpoint.js.map +0 -1
- package/esm/operations/index.d.ts +0 -4
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/src/azureDigitalTwinsManagementClientContext.ts +0 -62
- package/src/models/digitalTwinsEndpointMappers.ts +0 -23
- package/src/models/digitalTwinsMappers.ts +0 -26
- package/src/models/operationsMappers.ts +0 -16
|
@@ -1,318 +1,524 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
14
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { DigitalTwins } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
15
13
|
import * as Parameters from "../models/parameters";
|
|
16
|
-
import {
|
|
14
|
+
import { AzureDigitalTwinsManagementClient } from "../azureDigitalTwinsManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
DigitalTwinsDescription,
|
|
19
|
+
DigitalTwinsListNextOptionalParams,
|
|
20
|
+
DigitalTwinsListOptionalParams,
|
|
21
|
+
DigitalTwinsListByResourceGroupNextOptionalParams,
|
|
22
|
+
DigitalTwinsListByResourceGroupOptionalParams,
|
|
23
|
+
DigitalTwinsGetOptionalParams,
|
|
24
|
+
DigitalTwinsGetResponse,
|
|
25
|
+
DigitalTwinsCreateOrUpdateOptionalParams,
|
|
26
|
+
DigitalTwinsCreateOrUpdateResponse,
|
|
27
|
+
DigitalTwinsPatchDescription,
|
|
28
|
+
DigitalTwinsUpdateOptionalParams,
|
|
29
|
+
DigitalTwinsUpdateResponse,
|
|
30
|
+
DigitalTwinsDeleteOptionalParams,
|
|
31
|
+
DigitalTwinsDeleteResponse,
|
|
32
|
+
DigitalTwinsListResponse,
|
|
33
|
+
DigitalTwinsListByResourceGroupResponse,
|
|
34
|
+
CheckNameRequest,
|
|
35
|
+
DigitalTwinsCheckNameAvailabilityOptionalParams,
|
|
36
|
+
DigitalTwinsCheckNameAvailabilityResponse,
|
|
37
|
+
DigitalTwinsListNextResponse,
|
|
38
|
+
DigitalTwinsListByResourceGroupNextResponse
|
|
39
|
+
} from "../models";
|
|
17
40
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
41
|
+
/// <reference lib="esnext.asynciterable" />
|
|
42
|
+
/** Class containing DigitalTwins operations. */
|
|
43
|
+
export class DigitalTwinsImpl implements DigitalTwins {
|
|
44
|
+
private readonly client: AzureDigitalTwinsManagementClient;
|
|
21
45
|
|
|
22
46
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
47
|
+
* Initialize a new instance of the class DigitalTwins class.
|
|
48
|
+
* @param client Reference to the service client
|
|
25
49
|
*/
|
|
26
|
-
constructor(client:
|
|
50
|
+
constructor(client: AzureDigitalTwinsManagementClient) {
|
|
27
51
|
this.client = client;
|
|
28
52
|
}
|
|
29
53
|
|
|
30
54
|
/**
|
|
31
|
-
* Get DigitalTwinsInstances
|
|
32
|
-
* @param
|
|
33
|
-
* @param resourceName The name of the DigitalTwinsInstance.
|
|
34
|
-
* @param [options] The optional parameters
|
|
35
|
-
* @returns Promise<Models.DigitalTwinsGetResponse>
|
|
36
|
-
*/
|
|
37
|
-
get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.DigitalTwinsGetResponse>;
|
|
38
|
-
/**
|
|
39
|
-
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
40
|
-
* @param resourceName The name of the DigitalTwinsInstance.
|
|
41
|
-
* @param callback The callback
|
|
42
|
-
*/
|
|
43
|
-
get(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<Models.DigitalTwinsDescription>): void;
|
|
44
|
-
/**
|
|
45
|
-
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
46
|
-
* @param resourceName The name of the DigitalTwinsInstance.
|
|
47
|
-
* @param options The optional parameters
|
|
48
|
-
* @param callback The callback
|
|
55
|
+
* Get all the DigitalTwinsInstances in a subscription.
|
|
56
|
+
* @param options The options parameters.
|
|
49
57
|
*/
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
public list(
|
|
59
|
+
options?: DigitalTwinsListOptionalParams
|
|
60
|
+
): PagedAsyncIterableIterator<DigitalTwinsDescription> {
|
|
61
|
+
const iter = this.listPagingAll(options);
|
|
62
|
+
return {
|
|
63
|
+
next() {
|
|
64
|
+
return iter.next();
|
|
57
65
|
},
|
|
58
|
-
|
|
59
|
-
|
|
66
|
+
[Symbol.asyncIterator]() {
|
|
67
|
+
return this;
|
|
68
|
+
},
|
|
69
|
+
byPage: () => {
|
|
70
|
+
return this.listPagingPage(options);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
60
73
|
}
|
|
61
74
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return this.beginCreateOrUpdate(resourceGroupName,resourceName,digitalTwinsCreate,options)
|
|
74
|
-
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.DigitalTwinsCreateOrUpdateResponse>;
|
|
75
|
+
private async *listPagingPage(
|
|
76
|
+
options?: DigitalTwinsListOptionalParams
|
|
77
|
+
): AsyncIterableIterator<DigitalTwinsDescription[]> {
|
|
78
|
+
let result = await this._list(options);
|
|
79
|
+
yield result.value || [];
|
|
80
|
+
let continuationToken = result.nextLink;
|
|
81
|
+
while (continuationToken) {
|
|
82
|
+
result = await this._listNext(continuationToken, options);
|
|
83
|
+
continuationToken = result.nextLink;
|
|
84
|
+
yield result.value || [];
|
|
85
|
+
}
|
|
75
86
|
}
|
|
76
87
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
*/
|
|
84
|
-
update(resourceGroupName: string, resourceName: string, options?: Models.DigitalTwinsUpdateOptionalParams): Promise<Models.DigitalTwinsUpdateResponse> {
|
|
85
|
-
return this.beginUpdate(resourceGroupName,resourceName,options)
|
|
86
|
-
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.DigitalTwinsUpdateResponse>;
|
|
88
|
+
private async *listPagingAll(
|
|
89
|
+
options?: DigitalTwinsListOptionalParams
|
|
90
|
+
): AsyncIterableIterator<DigitalTwinsDescription> {
|
|
91
|
+
for await (const page of this.listPagingPage(options)) {
|
|
92
|
+
yield* page;
|
|
93
|
+
}
|
|
87
94
|
}
|
|
88
95
|
|
|
89
96
|
/**
|
|
90
|
-
*
|
|
97
|
+
* Get all the DigitalTwinsInstances in a resource group.
|
|
91
98
|
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
92
|
-
* @param
|
|
93
|
-
* @param [options] The optional parameters
|
|
94
|
-
* @returns Promise<Models.DigitalTwinsDeleteMethodResponse>
|
|
99
|
+
* @param options The options parameters.
|
|
95
100
|
*/
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
101
|
+
public listByResourceGroup(
|
|
102
|
+
resourceGroupName: string,
|
|
103
|
+
options?: DigitalTwinsListByResourceGroupOptionalParams
|
|
104
|
+
): PagedAsyncIterableIterator<DigitalTwinsDescription> {
|
|
105
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
106
|
+
return {
|
|
107
|
+
next() {
|
|
108
|
+
return iter.next();
|
|
109
|
+
},
|
|
110
|
+
[Symbol.asyncIterator]() {
|
|
111
|
+
return this;
|
|
112
|
+
},
|
|
113
|
+
byPage: () => {
|
|
114
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
99
117
|
}
|
|
100
118
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
* @param options The optional parameters
|
|
113
|
-
* @param callback The callback
|
|
114
|
-
*/
|
|
115
|
-
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.DigitalTwinsDescriptionListResult>): void;
|
|
116
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.DigitalTwinsDescriptionListResult>, callback?: msRest.ServiceCallback<Models.DigitalTwinsDescriptionListResult>): Promise<Models.DigitalTwinsListResponse> {
|
|
117
|
-
return this.client.sendOperationRequest(
|
|
118
|
-
{
|
|
119
|
+
private async *listByResourceGroupPagingPage(
|
|
120
|
+
resourceGroupName: string,
|
|
121
|
+
options?: DigitalTwinsListByResourceGroupOptionalParams
|
|
122
|
+
): AsyncIterableIterator<DigitalTwinsDescription[]> {
|
|
123
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
124
|
+
yield result.value || [];
|
|
125
|
+
let continuationToken = result.nextLink;
|
|
126
|
+
while (continuationToken) {
|
|
127
|
+
result = await this._listByResourceGroupNext(
|
|
128
|
+
resourceGroupName,
|
|
129
|
+
continuationToken,
|
|
119
130
|
options
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
131
|
+
);
|
|
132
|
+
continuationToken = result.nextLink;
|
|
133
|
+
yield result.value || [];
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
private async *listByResourceGroupPagingAll(
|
|
138
|
+
resourceGroupName: string,
|
|
139
|
+
options?: DigitalTwinsListByResourceGroupOptionalParams
|
|
140
|
+
): AsyncIterableIterator<DigitalTwinsDescription> {
|
|
141
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
142
|
+
resourceGroupName,
|
|
143
|
+
options
|
|
144
|
+
)) {
|
|
145
|
+
yield* page;
|
|
146
|
+
}
|
|
123
147
|
}
|
|
124
148
|
|
|
125
149
|
/**
|
|
126
|
-
* Get
|
|
127
|
-
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
128
|
-
* @param [options] The optional parameters
|
|
129
|
-
* @returns Promise<Models.DigitalTwinsListByResourceGroupResponse>
|
|
130
|
-
*/
|
|
131
|
-
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.DigitalTwinsListByResourceGroupResponse>;
|
|
132
|
-
/**
|
|
133
|
-
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
134
|
-
* @param callback The callback
|
|
135
|
-
*/
|
|
136
|
-
listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.DigitalTwinsDescriptionListResult>): void;
|
|
137
|
-
/**
|
|
150
|
+
* Get DigitalTwinsInstances resource.
|
|
138
151
|
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
139
|
-
* @param
|
|
140
|
-
* @param
|
|
152
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
153
|
+
* @param options The options parameters.
|
|
141
154
|
*/
|
|
142
|
-
|
|
143
|
-
|
|
155
|
+
get(
|
|
156
|
+
resourceGroupName: string,
|
|
157
|
+
resourceName: string,
|
|
158
|
+
options?: DigitalTwinsGetOptionalParams
|
|
159
|
+
): Promise<DigitalTwinsGetResponse> {
|
|
144
160
|
return this.client.sendOperationRequest(
|
|
145
|
-
{
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
},
|
|
149
|
-
listByResourceGroupOperationSpec,
|
|
150
|
-
callback) as Promise<Models.DigitalTwinsListByResourceGroupResponse>;
|
|
161
|
+
{ resourceGroupName, resourceName, options },
|
|
162
|
+
getOperationSpec
|
|
163
|
+
);
|
|
151
164
|
}
|
|
152
165
|
|
|
153
166
|
/**
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
* @param
|
|
158
|
-
* @
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* @param location Location of DigitalTwinsInstance.
|
|
163
|
-
* @param name Resource name.
|
|
164
|
-
* @param callback The callback
|
|
167
|
+
* Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is
|
|
168
|
+
* to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified
|
|
169
|
+
* values in a new body to update the DigitalTwinsInstance.
|
|
170
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
171
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
172
|
+
* @param digitalTwinsCreate The DigitalTwinsInstance and security metadata.
|
|
173
|
+
* @param options The options parameters.
|
|
165
174
|
*/
|
|
166
|
-
|
|
175
|
+
async beginCreateOrUpdate(
|
|
176
|
+
resourceGroupName: string,
|
|
177
|
+
resourceName: string,
|
|
178
|
+
digitalTwinsCreate: DigitalTwinsDescription,
|
|
179
|
+
options?: DigitalTwinsCreateOrUpdateOptionalParams
|
|
180
|
+
): Promise<
|
|
181
|
+
PollerLike<
|
|
182
|
+
PollOperationState<DigitalTwinsCreateOrUpdateResponse>,
|
|
183
|
+
DigitalTwinsCreateOrUpdateResponse
|
|
184
|
+
>
|
|
185
|
+
> {
|
|
186
|
+
const directSendOperation = async (
|
|
187
|
+
args: coreClient.OperationArguments,
|
|
188
|
+
spec: coreClient.OperationSpec
|
|
189
|
+
): Promise<DigitalTwinsCreateOrUpdateResponse> => {
|
|
190
|
+
return this.client.sendOperationRequest(args, spec);
|
|
191
|
+
};
|
|
192
|
+
const sendOperation = async (
|
|
193
|
+
args: coreClient.OperationArguments,
|
|
194
|
+
spec: coreClient.OperationSpec
|
|
195
|
+
) => {
|
|
196
|
+
let currentRawResponse:
|
|
197
|
+
| coreClient.FullOperationResponse
|
|
198
|
+
| undefined = undefined;
|
|
199
|
+
const providedCallback = args.options?.onResponse;
|
|
200
|
+
const callback: coreClient.RawResponseCallback = (
|
|
201
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
202
|
+
flatResponse: unknown
|
|
203
|
+
) => {
|
|
204
|
+
currentRawResponse = rawResponse;
|
|
205
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
206
|
+
};
|
|
207
|
+
const updatedArgs = {
|
|
208
|
+
...args,
|
|
209
|
+
options: {
|
|
210
|
+
...args.options,
|
|
211
|
+
onResponse: callback
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
215
|
+
return {
|
|
216
|
+
flatResponse,
|
|
217
|
+
rawResponse: {
|
|
218
|
+
statusCode: currentRawResponse!.status,
|
|
219
|
+
body: currentRawResponse!.parsedBody,
|
|
220
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
const lro = new LroImpl(
|
|
226
|
+
sendOperation,
|
|
227
|
+
{ resourceGroupName, resourceName, digitalTwinsCreate, options },
|
|
228
|
+
createOrUpdateOperationSpec
|
|
229
|
+
);
|
|
230
|
+
return new LroEngine(lro, {
|
|
231
|
+
resumeFrom: options?.resumeFrom,
|
|
232
|
+
intervalInMs: options?.updateIntervalInMs
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
|
|
167
236
|
/**
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
* @param
|
|
237
|
+
* Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is
|
|
238
|
+
* to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified
|
|
239
|
+
* values in a new body to update the DigitalTwinsInstance.
|
|
240
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
241
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
242
|
+
* @param digitalTwinsCreate The DigitalTwinsInstance and security metadata.
|
|
243
|
+
* @param options The options parameters.
|
|
172
244
|
*/
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
245
|
+
async beginCreateOrUpdateAndWait(
|
|
246
|
+
resourceGroupName: string,
|
|
247
|
+
resourceName: string,
|
|
248
|
+
digitalTwinsCreate: DigitalTwinsDescription,
|
|
249
|
+
options?: DigitalTwinsCreateOrUpdateOptionalParams
|
|
250
|
+
): Promise<DigitalTwinsCreateOrUpdateResponse> {
|
|
251
|
+
const poller = await this.beginCreateOrUpdate(
|
|
252
|
+
resourceGroupName,
|
|
253
|
+
resourceName,
|
|
254
|
+
digitalTwinsCreate,
|
|
255
|
+
options
|
|
256
|
+
);
|
|
257
|
+
return poller.pollUntilDone();
|
|
183
258
|
}
|
|
184
259
|
|
|
185
260
|
/**
|
|
186
|
-
*
|
|
187
|
-
* is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the
|
|
188
|
-
* modified values in a new body to update the DigitalTwinsInstance.
|
|
261
|
+
* Update metadata of DigitalTwinsInstance.
|
|
189
262
|
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
190
263
|
* @param resourceName The name of the DigitalTwinsInstance.
|
|
191
|
-
* @param
|
|
192
|
-
* @param
|
|
193
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
264
|
+
* @param digitalTwinsPatchDescription The DigitalTwinsInstance and security metadata.
|
|
265
|
+
* @param options The options parameters.
|
|
194
266
|
*/
|
|
195
|
-
|
|
196
|
-
|
|
267
|
+
async beginUpdate(
|
|
268
|
+
resourceGroupName: string,
|
|
269
|
+
resourceName: string,
|
|
270
|
+
digitalTwinsPatchDescription: DigitalTwinsPatchDescription,
|
|
271
|
+
options?: DigitalTwinsUpdateOptionalParams
|
|
272
|
+
): Promise<
|
|
273
|
+
PollerLike<
|
|
274
|
+
PollOperationState<DigitalTwinsUpdateResponse>,
|
|
275
|
+
DigitalTwinsUpdateResponse
|
|
276
|
+
>
|
|
277
|
+
> {
|
|
278
|
+
const directSendOperation = async (
|
|
279
|
+
args: coreClient.OperationArguments,
|
|
280
|
+
spec: coreClient.OperationSpec
|
|
281
|
+
): Promise<DigitalTwinsUpdateResponse> => {
|
|
282
|
+
return this.client.sendOperationRequest(args, spec);
|
|
283
|
+
};
|
|
284
|
+
const sendOperation = async (
|
|
285
|
+
args: coreClient.OperationArguments,
|
|
286
|
+
spec: coreClient.OperationSpec
|
|
287
|
+
) => {
|
|
288
|
+
let currentRawResponse:
|
|
289
|
+
| coreClient.FullOperationResponse
|
|
290
|
+
| undefined = undefined;
|
|
291
|
+
const providedCallback = args.options?.onResponse;
|
|
292
|
+
const callback: coreClient.RawResponseCallback = (
|
|
293
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
294
|
+
flatResponse: unknown
|
|
295
|
+
) => {
|
|
296
|
+
currentRawResponse = rawResponse;
|
|
297
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
298
|
+
};
|
|
299
|
+
const updatedArgs = {
|
|
300
|
+
...args,
|
|
301
|
+
options: {
|
|
302
|
+
...args.options,
|
|
303
|
+
onResponse: callback
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
307
|
+
return {
|
|
308
|
+
flatResponse,
|
|
309
|
+
rawResponse: {
|
|
310
|
+
statusCode: currentRawResponse!.status,
|
|
311
|
+
body: currentRawResponse!.parsedBody,
|
|
312
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
const lro = new LroImpl(
|
|
318
|
+
sendOperation,
|
|
197
319
|
{
|
|
198
320
|
resourceGroupName,
|
|
199
321
|
resourceName,
|
|
200
|
-
|
|
322
|
+
digitalTwinsPatchDescription,
|
|
201
323
|
options
|
|
202
324
|
},
|
|
203
|
-
|
|
204
|
-
|
|
325
|
+
updateOperationSpec
|
|
326
|
+
);
|
|
327
|
+
return new LroEngine(lro, {
|
|
328
|
+
resumeFrom: options?.resumeFrom,
|
|
329
|
+
intervalInMs: options?.updateIntervalInMs
|
|
330
|
+
});
|
|
205
331
|
}
|
|
206
332
|
|
|
207
333
|
/**
|
|
208
334
|
* Update metadata of DigitalTwinsInstance.
|
|
209
335
|
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
210
336
|
* @param resourceName The name of the DigitalTwinsInstance.
|
|
211
|
-
* @param
|
|
212
|
-
* @
|
|
337
|
+
* @param digitalTwinsPatchDescription The DigitalTwinsInstance and security metadata.
|
|
338
|
+
* @param options The options parameters.
|
|
213
339
|
*/
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
340
|
+
async beginUpdateAndWait(
|
|
341
|
+
resourceGroupName: string,
|
|
342
|
+
resourceName: string,
|
|
343
|
+
digitalTwinsPatchDescription: DigitalTwinsPatchDescription,
|
|
344
|
+
options?: DigitalTwinsUpdateOptionalParams
|
|
345
|
+
): Promise<DigitalTwinsUpdateResponse> {
|
|
346
|
+
const poller = await this.beginUpdate(
|
|
347
|
+
resourceGroupName,
|
|
348
|
+
resourceName,
|
|
349
|
+
digitalTwinsPatchDescription,
|
|
350
|
+
options
|
|
351
|
+
);
|
|
352
|
+
return poller.pollUntilDone();
|
|
223
353
|
}
|
|
224
354
|
|
|
225
355
|
/**
|
|
226
356
|
* Delete a DigitalTwinsInstance.
|
|
227
357
|
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
228
358
|
* @param resourceName The name of the DigitalTwinsInstance.
|
|
229
|
-
* @param
|
|
230
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
359
|
+
* @param options The options parameters.
|
|
231
360
|
*/
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
361
|
+
async beginDelete(
|
|
362
|
+
resourceGroupName: string,
|
|
363
|
+
resourceName: string,
|
|
364
|
+
options?: DigitalTwinsDeleteOptionalParams
|
|
365
|
+
): Promise<
|
|
366
|
+
PollerLike<
|
|
367
|
+
PollOperationState<DigitalTwinsDeleteResponse>,
|
|
368
|
+
DigitalTwinsDeleteResponse
|
|
369
|
+
>
|
|
370
|
+
> {
|
|
371
|
+
const directSendOperation = async (
|
|
372
|
+
args: coreClient.OperationArguments,
|
|
373
|
+
spec: coreClient.OperationSpec
|
|
374
|
+
): Promise<DigitalTwinsDeleteResponse> => {
|
|
375
|
+
return this.client.sendOperationRequest(args, spec);
|
|
376
|
+
};
|
|
377
|
+
const sendOperation = async (
|
|
378
|
+
args: coreClient.OperationArguments,
|
|
379
|
+
spec: coreClient.OperationSpec
|
|
380
|
+
) => {
|
|
381
|
+
let currentRawResponse:
|
|
382
|
+
| coreClient.FullOperationResponse
|
|
383
|
+
| undefined = undefined;
|
|
384
|
+
const providedCallback = args.options?.onResponse;
|
|
385
|
+
const callback: coreClient.RawResponseCallback = (
|
|
386
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
387
|
+
flatResponse: unknown
|
|
388
|
+
) => {
|
|
389
|
+
currentRawResponse = rawResponse;
|
|
390
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
391
|
+
};
|
|
392
|
+
const updatedArgs = {
|
|
393
|
+
...args,
|
|
394
|
+
options: {
|
|
395
|
+
...args.options,
|
|
396
|
+
onResponse: callback
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
400
|
+
return {
|
|
401
|
+
flatResponse,
|
|
402
|
+
rawResponse: {
|
|
403
|
+
statusCode: currentRawResponse!.status,
|
|
404
|
+
body: currentRawResponse!.parsedBody,
|
|
405
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
const lro = new LroImpl(
|
|
411
|
+
sendOperation,
|
|
412
|
+
{ resourceGroupName, resourceName, options },
|
|
413
|
+
deleteOperationSpec
|
|
414
|
+
);
|
|
415
|
+
return new LroEngine(lro, {
|
|
416
|
+
resumeFrom: options?.resumeFrom,
|
|
417
|
+
intervalInMs: options?.updateIntervalInMs
|
|
418
|
+
});
|
|
241
419
|
}
|
|
242
420
|
|
|
243
421
|
/**
|
|
244
|
-
*
|
|
245
|
-
* @param
|
|
246
|
-
* @param
|
|
247
|
-
* @
|
|
422
|
+
* Delete a DigitalTwinsInstance.
|
|
423
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
424
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
425
|
+
* @param options The options parameters.
|
|
248
426
|
*/
|
|
249
|
-
|
|
427
|
+
async beginDeleteAndWait(
|
|
428
|
+
resourceGroupName: string,
|
|
429
|
+
resourceName: string,
|
|
430
|
+
options?: DigitalTwinsDeleteOptionalParams
|
|
431
|
+
): Promise<DigitalTwinsDeleteResponse> {
|
|
432
|
+
const poller = await this.beginDelete(
|
|
433
|
+
resourceGroupName,
|
|
434
|
+
resourceName,
|
|
435
|
+
options
|
|
436
|
+
);
|
|
437
|
+
return poller.pollUntilDone();
|
|
438
|
+
}
|
|
439
|
+
|
|
250
440
|
/**
|
|
251
|
-
*
|
|
252
|
-
* @param
|
|
441
|
+
* Get all the DigitalTwinsInstances in a subscription.
|
|
442
|
+
* @param options The options parameters.
|
|
253
443
|
*/
|
|
254
|
-
|
|
444
|
+
private _list(
|
|
445
|
+
options?: DigitalTwinsListOptionalParams
|
|
446
|
+
): Promise<DigitalTwinsListResponse> {
|
|
447
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
448
|
+
}
|
|
449
|
+
|
|
255
450
|
/**
|
|
256
|
-
*
|
|
257
|
-
* @param
|
|
258
|
-
* @param
|
|
451
|
+
* Get all the DigitalTwinsInstances in a resource group.
|
|
452
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
453
|
+
* @param options The options parameters.
|
|
259
454
|
*/
|
|
260
|
-
|
|
261
|
-
|
|
455
|
+
private _listByResourceGroup(
|
|
456
|
+
resourceGroupName: string,
|
|
457
|
+
options?: DigitalTwinsListByResourceGroupOptionalParams
|
|
458
|
+
): Promise<DigitalTwinsListByResourceGroupResponse> {
|
|
262
459
|
return this.client.sendOperationRequest(
|
|
263
|
-
{
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
},
|
|
267
|
-
listNextOperationSpec,
|
|
268
|
-
callback) as Promise<Models.DigitalTwinsListNextResponse>;
|
|
460
|
+
{ resourceGroupName, options },
|
|
461
|
+
listByResourceGroupOperationSpec
|
|
462
|
+
);
|
|
269
463
|
}
|
|
270
464
|
|
|
271
465
|
/**
|
|
272
|
-
*
|
|
273
|
-
* @param
|
|
274
|
-
* @param
|
|
275
|
-
*
|
|
466
|
+
* Check if a DigitalTwinsInstance name is available.
|
|
467
|
+
* @param location Location of DigitalTwinsInstance.
|
|
468
|
+
* @param digitalTwinsInstanceCheckName Set the name parameter in the DigitalTwinsInstanceCheckName
|
|
469
|
+
* structure to the name of the DigitalTwinsInstance to check.
|
|
470
|
+
* @param options The options parameters.
|
|
276
471
|
*/
|
|
277
|
-
|
|
472
|
+
checkNameAvailability(
|
|
473
|
+
location: string,
|
|
474
|
+
digitalTwinsInstanceCheckName: CheckNameRequest,
|
|
475
|
+
options?: DigitalTwinsCheckNameAvailabilityOptionalParams
|
|
476
|
+
): Promise<DigitalTwinsCheckNameAvailabilityResponse> {
|
|
477
|
+
return this.client.sendOperationRequest(
|
|
478
|
+
{ location, digitalTwinsInstanceCheckName, options },
|
|
479
|
+
checkNameAvailabilityOperationSpec
|
|
480
|
+
);
|
|
481
|
+
}
|
|
482
|
+
|
|
278
483
|
/**
|
|
279
|
-
*
|
|
280
|
-
* @param
|
|
484
|
+
* ListNext
|
|
485
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
486
|
+
* @param options The options parameters.
|
|
281
487
|
*/
|
|
282
|
-
|
|
488
|
+
private _listNext(
|
|
489
|
+
nextLink: string,
|
|
490
|
+
options?: DigitalTwinsListNextOptionalParams
|
|
491
|
+
): Promise<DigitalTwinsListNextResponse> {
|
|
492
|
+
return this.client.sendOperationRequest(
|
|
493
|
+
{ nextLink, options },
|
|
494
|
+
listNextOperationSpec
|
|
495
|
+
);
|
|
496
|
+
}
|
|
497
|
+
|
|
283
498
|
/**
|
|
284
|
-
*
|
|
285
|
-
* @param
|
|
286
|
-
* @param
|
|
499
|
+
* ListByResourceGroupNext
|
|
500
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
501
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
502
|
+
* @param options The options parameters.
|
|
287
503
|
*/
|
|
288
|
-
|
|
289
|
-
|
|
504
|
+
private _listByResourceGroupNext(
|
|
505
|
+
resourceGroupName: string,
|
|
506
|
+
nextLink: string,
|
|
507
|
+
options?: DigitalTwinsListByResourceGroupNextOptionalParams
|
|
508
|
+
): Promise<DigitalTwinsListByResourceGroupNextResponse> {
|
|
290
509
|
return this.client.sendOperationRequest(
|
|
291
|
-
{
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
},
|
|
295
|
-
listByResourceGroupNextOperationSpec,
|
|
296
|
-
callback) as Promise<Models.DigitalTwinsListByResourceGroupNextResponse>;
|
|
510
|
+
{ resourceGroupName, nextLink, options },
|
|
511
|
+
listByResourceGroupNextOperationSpec
|
|
512
|
+
);
|
|
297
513
|
}
|
|
298
514
|
}
|
|
299
|
-
|
|
300
515
|
// Operation Specifications
|
|
301
|
-
const serializer =
|
|
302
|
-
|
|
516
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
517
|
+
|
|
518
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
519
|
+
path:
|
|
520
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",
|
|
303
521
|
httpMethod: "GET",
|
|
304
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",
|
|
305
|
-
urlParameters: [
|
|
306
|
-
Parameters.subscriptionId,
|
|
307
|
-
Parameters.resourceGroupName,
|
|
308
|
-
Parameters.resourceName
|
|
309
|
-
],
|
|
310
|
-
queryParameters: [
|
|
311
|
-
Parameters.apiVersion
|
|
312
|
-
],
|
|
313
|
-
headerParameters: [
|
|
314
|
-
Parameters.acceptLanguage
|
|
315
|
-
],
|
|
316
522
|
responses: {
|
|
317
523
|
200: {
|
|
318
524
|
bodyMapper: Mappers.DigitalTwinsDescription
|
|
@@ -321,110 +527,86 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
321
527
|
bodyMapper: Mappers.ErrorResponse
|
|
322
528
|
}
|
|
323
529
|
},
|
|
324
|
-
|
|
325
|
-
};
|
|
326
|
-
|
|
327
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
328
|
-
httpMethod: "GET",
|
|
329
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/digitalTwinsInstances",
|
|
530
|
+
queryParameters: [Parameters.apiVersion],
|
|
330
531
|
urlParameters: [
|
|
331
|
-
Parameters
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
Parameters.
|
|
335
|
-
],
|
|
336
|
-
headerParameters: [
|
|
337
|
-
Parameters.acceptLanguage
|
|
532
|
+
Parameters.$host,
|
|
533
|
+
Parameters.subscriptionId,
|
|
534
|
+
Parameters.resourceGroupName,
|
|
535
|
+
Parameters.resourceName
|
|
338
536
|
],
|
|
339
|
-
|
|
340
|
-
200: {
|
|
341
|
-
bodyMapper: Mappers.DigitalTwinsDescriptionListResult
|
|
342
|
-
},
|
|
343
|
-
default: {
|
|
344
|
-
bodyMapper: Mappers.ErrorResponse
|
|
345
|
-
}
|
|
346
|
-
},
|
|
537
|
+
headerParameters: [Parameters.accept],
|
|
347
538
|
serializer
|
|
348
539
|
};
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
urlParameters: [
|
|
354
|
-
Parameters.subscriptionId,
|
|
355
|
-
Parameters.resourceGroupName
|
|
356
|
-
],
|
|
357
|
-
queryParameters: [
|
|
358
|
-
Parameters.apiVersion
|
|
359
|
-
],
|
|
360
|
-
headerParameters: [
|
|
361
|
-
Parameters.acceptLanguage
|
|
362
|
-
],
|
|
540
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
541
|
+
path:
|
|
542
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",
|
|
543
|
+
httpMethod: "PUT",
|
|
363
544
|
responses: {
|
|
364
545
|
200: {
|
|
365
|
-
bodyMapper: Mappers.
|
|
546
|
+
bodyMapper: Mappers.DigitalTwinsDescription
|
|
547
|
+
},
|
|
548
|
+
201: {
|
|
549
|
+
bodyMapper: Mappers.DigitalTwinsDescription
|
|
550
|
+
},
|
|
551
|
+
202: {
|
|
552
|
+
bodyMapper: Mappers.DigitalTwinsDescription
|
|
553
|
+
},
|
|
554
|
+
204: {
|
|
555
|
+
bodyMapper: Mappers.DigitalTwinsDescription
|
|
366
556
|
},
|
|
367
557
|
default: {
|
|
368
558
|
bodyMapper: Mappers.ErrorResponse
|
|
369
559
|
}
|
|
370
560
|
},
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
const checkNameAvailabilityOperationSpec: msRest.OperationSpec = {
|
|
375
|
-
httpMethod: "POST",
|
|
376
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/locations/{location}/checkNameAvailability",
|
|
561
|
+
requestBody: Parameters.digitalTwinsCreate,
|
|
562
|
+
queryParameters: [Parameters.apiVersion],
|
|
377
563
|
urlParameters: [
|
|
564
|
+
Parameters.$host,
|
|
378
565
|
Parameters.subscriptionId,
|
|
379
|
-
Parameters.
|
|
380
|
-
|
|
381
|
-
queryParameters: [
|
|
382
|
-
Parameters.apiVersion
|
|
383
|
-
],
|
|
384
|
-
headerParameters: [
|
|
385
|
-
Parameters.acceptLanguage
|
|
566
|
+
Parameters.resourceGroupName,
|
|
567
|
+
Parameters.resourceName
|
|
386
568
|
],
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
},
|
|
569
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
570
|
+
mediaType: "json",
|
|
571
|
+
serializer
|
|
572
|
+
};
|
|
573
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
574
|
+
path:
|
|
575
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",
|
|
576
|
+
httpMethod: "PATCH",
|
|
396
577
|
responses: {
|
|
397
578
|
200: {
|
|
398
|
-
bodyMapper: Mappers.
|
|
579
|
+
bodyMapper: Mappers.DigitalTwinsDescription
|
|
580
|
+
},
|
|
581
|
+
201: {
|
|
582
|
+
bodyMapper: Mappers.DigitalTwinsDescription
|
|
583
|
+
},
|
|
584
|
+
202: {
|
|
585
|
+
bodyMapper: Mappers.DigitalTwinsDescription
|
|
586
|
+
},
|
|
587
|
+
204: {
|
|
588
|
+
bodyMapper: Mappers.DigitalTwinsDescription
|
|
399
589
|
},
|
|
400
590
|
default: {
|
|
401
591
|
bodyMapper: Mappers.ErrorResponse
|
|
402
592
|
}
|
|
403
593
|
},
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
408
|
-
httpMethod: "PUT",
|
|
409
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",
|
|
594
|
+
requestBody: Parameters.digitalTwinsPatchDescription,
|
|
595
|
+
queryParameters: [Parameters.apiVersion],
|
|
410
596
|
urlParameters: [
|
|
597
|
+
Parameters.$host,
|
|
411
598
|
Parameters.subscriptionId,
|
|
412
599
|
Parameters.resourceGroupName,
|
|
413
600
|
Parameters.resourceName
|
|
414
601
|
],
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
mapper: {
|
|
424
|
-
...Mappers.DigitalTwinsDescription,
|
|
425
|
-
required: true
|
|
426
|
-
}
|
|
427
|
-
},
|
|
602
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
603
|
+
mediaType: "json",
|
|
604
|
+
serializer
|
|
605
|
+
};
|
|
606
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
607
|
+
path:
|
|
608
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",
|
|
609
|
+
httpMethod: "DELETE",
|
|
428
610
|
responses: {
|
|
429
611
|
200: {
|
|
430
612
|
bodyMapper: Mappers.DigitalTwinsDescription
|
|
@@ -432,89 +614,90 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
432
614
|
201: {
|
|
433
615
|
bodyMapper: Mappers.DigitalTwinsDescription
|
|
434
616
|
},
|
|
617
|
+
202: {
|
|
618
|
+
bodyMapper: Mappers.DigitalTwinsDescription
|
|
619
|
+
},
|
|
620
|
+
204: {
|
|
621
|
+
bodyMapper: Mappers.DigitalTwinsDescription
|
|
622
|
+
},
|
|
435
623
|
default: {
|
|
436
624
|
bodyMapper: Mappers.ErrorResponse
|
|
437
625
|
}
|
|
438
626
|
},
|
|
439
|
-
|
|
440
|
-
};
|
|
441
|
-
|
|
442
|
-
const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|
443
|
-
httpMethod: "PATCH",
|
|
444
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",
|
|
627
|
+
queryParameters: [Parameters.apiVersion],
|
|
445
628
|
urlParameters: [
|
|
629
|
+
Parameters.$host,
|
|
446
630
|
Parameters.subscriptionId,
|
|
447
631
|
Parameters.resourceGroupName,
|
|
448
632
|
Parameters.resourceName
|
|
449
633
|
],
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
"tags"
|
|
461
|
-
]
|
|
634
|
+
headerParameters: [Parameters.accept],
|
|
635
|
+
serializer
|
|
636
|
+
};
|
|
637
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
638
|
+
path:
|
|
639
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/digitalTwinsInstances",
|
|
640
|
+
httpMethod: "GET",
|
|
641
|
+
responses: {
|
|
642
|
+
200: {
|
|
643
|
+
bodyMapper: Mappers.DigitalTwinsDescriptionListResult
|
|
462
644
|
},
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
required: true
|
|
645
|
+
default: {
|
|
646
|
+
bodyMapper: Mappers.ErrorResponse
|
|
466
647
|
}
|
|
467
648
|
},
|
|
649
|
+
queryParameters: [Parameters.apiVersion],
|
|
650
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
651
|
+
headerParameters: [Parameters.accept],
|
|
652
|
+
serializer
|
|
653
|
+
};
|
|
654
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
655
|
+
path:
|
|
656
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances",
|
|
657
|
+
httpMethod: "GET",
|
|
468
658
|
responses: {
|
|
469
659
|
200: {
|
|
470
|
-
bodyMapper: Mappers.
|
|
660
|
+
bodyMapper: Mappers.DigitalTwinsDescriptionListResult
|
|
471
661
|
},
|
|
472
662
|
default: {
|
|
473
663
|
bodyMapper: Mappers.ErrorResponse
|
|
474
664
|
}
|
|
475
665
|
},
|
|
476
|
-
|
|
477
|
-
};
|
|
478
|
-
|
|
479
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
480
|
-
httpMethod: "DELETE",
|
|
481
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",
|
|
666
|
+
queryParameters: [Parameters.apiVersion],
|
|
482
667
|
urlParameters: [
|
|
668
|
+
Parameters.$host,
|
|
483
669
|
Parameters.subscriptionId,
|
|
484
|
-
Parameters.resourceGroupName
|
|
485
|
-
Parameters.resourceName
|
|
486
|
-
],
|
|
487
|
-
queryParameters: [
|
|
488
|
-
Parameters.apiVersion
|
|
489
|
-
],
|
|
490
|
-
headerParameters: [
|
|
491
|
-
Parameters.acceptLanguage
|
|
670
|
+
Parameters.resourceGroupName
|
|
492
671
|
],
|
|
672
|
+
headerParameters: [Parameters.accept],
|
|
673
|
+
serializer
|
|
674
|
+
};
|
|
675
|
+
const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
676
|
+
path:
|
|
677
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/locations/{location}/checkNameAvailability",
|
|
678
|
+
httpMethod: "POST",
|
|
493
679
|
responses: {
|
|
494
680
|
200: {
|
|
495
|
-
bodyMapper: Mappers.
|
|
496
|
-
},
|
|
497
|
-
202: {
|
|
498
|
-
bodyMapper: Mappers.DigitalTwinsDescription
|
|
681
|
+
bodyMapper: Mappers.CheckNameResult
|
|
499
682
|
},
|
|
500
|
-
204: {},
|
|
501
683
|
default: {
|
|
502
684
|
bodyMapper: Mappers.ErrorResponse
|
|
503
685
|
}
|
|
504
686
|
},
|
|
687
|
+
requestBody: Parameters.digitalTwinsInstanceCheckName,
|
|
688
|
+
queryParameters: [Parameters.apiVersion],
|
|
689
|
+
urlParameters: [
|
|
690
|
+
Parameters.$host,
|
|
691
|
+
Parameters.subscriptionId,
|
|
692
|
+
Parameters.location
|
|
693
|
+
],
|
|
694
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
695
|
+
mediaType: "json",
|
|
505
696
|
serializer
|
|
506
697
|
};
|
|
507
|
-
|
|
508
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
509
|
-
httpMethod: "GET",
|
|
510
|
-
baseUrl: "https://management.azure.com",
|
|
698
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
511
699
|
path: "{nextLink}",
|
|
512
|
-
|
|
513
|
-
Parameters.nextPageLink
|
|
514
|
-
],
|
|
515
|
-
headerParameters: [
|
|
516
|
-
Parameters.acceptLanguage
|
|
517
|
-
],
|
|
700
|
+
httpMethod: "GET",
|
|
518
701
|
responses: {
|
|
519
702
|
200: {
|
|
520
703
|
bodyMapper: Mappers.DigitalTwinsDescriptionListResult
|
|
@@ -523,19 +706,18 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
523
706
|
bodyMapper: Mappers.ErrorResponse
|
|
524
707
|
}
|
|
525
708
|
},
|
|
709
|
+
queryParameters: [Parameters.apiVersion],
|
|
710
|
+
urlParameters: [
|
|
711
|
+
Parameters.$host,
|
|
712
|
+
Parameters.subscriptionId,
|
|
713
|
+
Parameters.nextLink
|
|
714
|
+
],
|
|
715
|
+
headerParameters: [Parameters.accept],
|
|
526
716
|
serializer
|
|
527
717
|
};
|
|
528
|
-
|
|
529
|
-
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
530
|
-
httpMethod: "GET",
|
|
531
|
-
baseUrl: "https://management.azure.com",
|
|
718
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
532
719
|
path: "{nextLink}",
|
|
533
|
-
|
|
534
|
-
Parameters.nextPageLink
|
|
535
|
-
],
|
|
536
|
-
headerParameters: [
|
|
537
|
-
Parameters.acceptLanguage
|
|
538
|
-
],
|
|
720
|
+
httpMethod: "GET",
|
|
539
721
|
responses: {
|
|
540
722
|
200: {
|
|
541
723
|
bodyMapper: Mappers.DigitalTwinsDescriptionListResult
|
|
@@ -544,5 +726,13 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
|
544
726
|
bodyMapper: Mappers.ErrorResponse
|
|
545
727
|
}
|
|
546
728
|
},
|
|
729
|
+
queryParameters: [Parameters.apiVersion],
|
|
730
|
+
urlParameters: [
|
|
731
|
+
Parameters.$host,
|
|
732
|
+
Parameters.subscriptionId,
|
|
733
|
+
Parameters.resourceGroupName,
|
|
734
|
+
Parameters.nextLink
|
|
735
|
+
],
|
|
736
|
+
headerParameters: [Parameters.accept],
|
|
547
737
|
serializer
|
|
548
738
|
};
|