@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
package/dist/arm-digitaltwins.js
DELETED
|
@@ -1,1601 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
(function (global, factory) {
|
|
9
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
|
|
10
|
-
typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
|
|
11
|
-
(global = global || self, factory((global.Azure = global.Azure || {}, global.Azure.ArmDigitaltwins = {}), global.msRestAzure, global.msRest));
|
|
12
|
-
}(this, (function (exports, msRestAzure, msRest) { 'use strict';
|
|
13
|
-
|
|
14
|
-
/*! *****************************************************************************
|
|
15
|
-
Copyright (c) Microsoft Corporation.
|
|
16
|
-
|
|
17
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
18
|
-
purpose with or without fee is hereby granted.
|
|
19
|
-
|
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
21
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
22
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
23
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
24
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
25
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
26
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
27
|
-
***************************************************************************** */
|
|
28
|
-
/* global Reflect, Promise */
|
|
29
|
-
|
|
30
|
-
var extendStatics = function(d, b) {
|
|
31
|
-
extendStatics = Object.setPrototypeOf ||
|
|
32
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
33
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
34
|
-
return extendStatics(d, b);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
function __extends(d, b) {
|
|
38
|
-
extendStatics(d, b);
|
|
39
|
-
function __() { this.constructor = d; }
|
|
40
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
var __assign = function() {
|
|
44
|
-
__assign = Object.assign || function __assign(t) {
|
|
45
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
46
|
-
s = arguments[i];
|
|
47
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
48
|
-
}
|
|
49
|
-
return t;
|
|
50
|
-
};
|
|
51
|
-
return __assign.apply(this, arguments);
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
/*
|
|
55
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
56
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
57
|
-
*
|
|
58
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
59
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
60
|
-
*/
|
|
61
|
-
|
|
62
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
63
|
-
__proto__: null
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
/*
|
|
67
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
68
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
69
|
-
*
|
|
70
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
71
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
72
|
-
*/
|
|
73
|
-
var CloudError = msRestAzure.CloudErrorMapper;
|
|
74
|
-
var BaseResource = msRestAzure.BaseResourceMapper;
|
|
75
|
-
var DigitalTwinsResource = {
|
|
76
|
-
serializedName: "DigitalTwinsResource",
|
|
77
|
-
type: {
|
|
78
|
-
name: "Composite",
|
|
79
|
-
className: "DigitalTwinsResource",
|
|
80
|
-
modelProperties: {
|
|
81
|
-
id: {
|
|
82
|
-
readOnly: true,
|
|
83
|
-
serializedName: "id",
|
|
84
|
-
type: {
|
|
85
|
-
name: "String"
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
name: {
|
|
89
|
-
readOnly: true,
|
|
90
|
-
serializedName: "name",
|
|
91
|
-
constraints: {
|
|
92
|
-
Pattern: /^(?!-)[A-Za-z0-9-]{3,63}(?<!-)$/
|
|
93
|
-
},
|
|
94
|
-
type: {
|
|
95
|
-
name: "String"
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
type: {
|
|
99
|
-
readOnly: true,
|
|
100
|
-
serializedName: "type",
|
|
101
|
-
type: {
|
|
102
|
-
name: "String"
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
location: {
|
|
106
|
-
required: true,
|
|
107
|
-
serializedName: "location",
|
|
108
|
-
type: {
|
|
109
|
-
name: "String"
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
tags: {
|
|
113
|
-
nullable: true,
|
|
114
|
-
serializedName: "tags",
|
|
115
|
-
type: {
|
|
116
|
-
name: "Dictionary",
|
|
117
|
-
value: {
|
|
118
|
-
type: {
|
|
119
|
-
name: "String"
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
var DigitalTwinsDescription = {
|
|
128
|
-
serializedName: "DigitalTwinsDescription",
|
|
129
|
-
type: {
|
|
130
|
-
name: "Composite",
|
|
131
|
-
className: "DigitalTwinsDescription",
|
|
132
|
-
modelProperties: __assign(__assign({}, DigitalTwinsResource.type.modelProperties), { createdTime: {
|
|
133
|
-
readOnly: true,
|
|
134
|
-
serializedName: "properties.createdTime",
|
|
135
|
-
type: {
|
|
136
|
-
name: "DateTime"
|
|
137
|
-
}
|
|
138
|
-
}, lastUpdatedTime: {
|
|
139
|
-
readOnly: true,
|
|
140
|
-
serializedName: "properties.lastUpdatedTime",
|
|
141
|
-
type: {
|
|
142
|
-
name: "DateTime"
|
|
143
|
-
}
|
|
144
|
-
}, provisioningState: {
|
|
145
|
-
readOnly: true,
|
|
146
|
-
serializedName: "properties.provisioningState",
|
|
147
|
-
type: {
|
|
148
|
-
name: "String"
|
|
149
|
-
}
|
|
150
|
-
}, hostName: {
|
|
151
|
-
nullable: true,
|
|
152
|
-
readOnly: true,
|
|
153
|
-
serializedName: "properties.hostName",
|
|
154
|
-
type: {
|
|
155
|
-
name: "String"
|
|
156
|
-
}
|
|
157
|
-
} })
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
var DigitalTwinsPatchDescription = {
|
|
161
|
-
serializedName: "DigitalTwinsPatchDescription",
|
|
162
|
-
type: {
|
|
163
|
-
name: "Composite",
|
|
164
|
-
className: "DigitalTwinsPatchDescription",
|
|
165
|
-
modelProperties: {
|
|
166
|
-
tags: {
|
|
167
|
-
nullable: true,
|
|
168
|
-
serializedName: "tags",
|
|
169
|
-
type: {
|
|
170
|
-
name: "Dictionary",
|
|
171
|
-
value: {
|
|
172
|
-
type: {
|
|
173
|
-
name: "String"
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
var ErrorDefinition = {
|
|
182
|
-
serializedName: "ErrorDefinition",
|
|
183
|
-
type: {
|
|
184
|
-
name: "Composite",
|
|
185
|
-
className: "ErrorDefinition",
|
|
186
|
-
modelProperties: {
|
|
187
|
-
code: {
|
|
188
|
-
readOnly: true,
|
|
189
|
-
serializedName: "code",
|
|
190
|
-
type: {
|
|
191
|
-
name: "String"
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
message: {
|
|
195
|
-
readOnly: true,
|
|
196
|
-
serializedName: "message",
|
|
197
|
-
type: {
|
|
198
|
-
name: "String"
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
details: {
|
|
202
|
-
nullable: true,
|
|
203
|
-
readOnly: true,
|
|
204
|
-
serializedName: "details",
|
|
205
|
-
type: {
|
|
206
|
-
name: "Sequence",
|
|
207
|
-
element: {
|
|
208
|
-
type: {
|
|
209
|
-
name: "Composite",
|
|
210
|
-
className: "ErrorDefinition"
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
var ErrorResponse = {
|
|
219
|
-
serializedName: "ErrorResponse",
|
|
220
|
-
type: {
|
|
221
|
-
name: "Composite",
|
|
222
|
-
className: "ErrorResponse",
|
|
223
|
-
modelProperties: {
|
|
224
|
-
error: {
|
|
225
|
-
serializedName: "error",
|
|
226
|
-
type: {
|
|
227
|
-
name: "Composite",
|
|
228
|
-
className: "ErrorDefinition"
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
var OperationDisplay = {
|
|
235
|
-
serializedName: "OperationDisplay",
|
|
236
|
-
type: {
|
|
237
|
-
name: "Composite",
|
|
238
|
-
className: "OperationDisplay",
|
|
239
|
-
modelProperties: {
|
|
240
|
-
provider: {
|
|
241
|
-
readOnly: true,
|
|
242
|
-
serializedName: "provider",
|
|
243
|
-
type: {
|
|
244
|
-
name: "String"
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
resource: {
|
|
248
|
-
readOnly: true,
|
|
249
|
-
serializedName: "resource",
|
|
250
|
-
type: {
|
|
251
|
-
name: "String"
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
operation: {
|
|
255
|
-
readOnly: true,
|
|
256
|
-
serializedName: "operation",
|
|
257
|
-
type: {
|
|
258
|
-
name: "String"
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
description: {
|
|
262
|
-
readOnly: true,
|
|
263
|
-
serializedName: "description",
|
|
264
|
-
type: {
|
|
265
|
-
name: "String"
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
var Operation = {
|
|
272
|
-
serializedName: "Operation",
|
|
273
|
-
type: {
|
|
274
|
-
name: "Composite",
|
|
275
|
-
className: "Operation",
|
|
276
|
-
modelProperties: {
|
|
277
|
-
name: {
|
|
278
|
-
readOnly: true,
|
|
279
|
-
serializedName: "name",
|
|
280
|
-
type: {
|
|
281
|
-
name: "String"
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
display: {
|
|
285
|
-
serializedName: "display",
|
|
286
|
-
type: {
|
|
287
|
-
name: "Composite",
|
|
288
|
-
className: "OperationDisplay"
|
|
289
|
-
}
|
|
290
|
-
},
|
|
291
|
-
origin: {
|
|
292
|
-
nullable: true,
|
|
293
|
-
readOnly: true,
|
|
294
|
-
serializedName: "origin",
|
|
295
|
-
type: {
|
|
296
|
-
name: "String"
|
|
297
|
-
}
|
|
298
|
-
},
|
|
299
|
-
isDataAction: {
|
|
300
|
-
readOnly: true,
|
|
301
|
-
serializedName: "isDataAction",
|
|
302
|
-
type: {
|
|
303
|
-
name: "Boolean"
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
|
-
var CheckNameRequest = {
|
|
310
|
-
serializedName: "CheckNameRequest",
|
|
311
|
-
type: {
|
|
312
|
-
name: "Composite",
|
|
313
|
-
className: "CheckNameRequest",
|
|
314
|
-
modelProperties: {
|
|
315
|
-
name: {
|
|
316
|
-
required: true,
|
|
317
|
-
serializedName: "name",
|
|
318
|
-
type: {
|
|
319
|
-
name: "String"
|
|
320
|
-
}
|
|
321
|
-
},
|
|
322
|
-
type: {
|
|
323
|
-
required: true,
|
|
324
|
-
isConstant: true,
|
|
325
|
-
serializedName: "type",
|
|
326
|
-
defaultValue: 'Microsoft.DigitalTwins/digitalTwinsInstances',
|
|
327
|
-
type: {
|
|
328
|
-
name: "String"
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
|
-
var CheckNameResult = {
|
|
335
|
-
serializedName: "CheckNameResult",
|
|
336
|
-
type: {
|
|
337
|
-
name: "Composite",
|
|
338
|
-
className: "CheckNameResult",
|
|
339
|
-
modelProperties: {
|
|
340
|
-
nameAvailable: {
|
|
341
|
-
serializedName: "nameAvailable",
|
|
342
|
-
type: {
|
|
343
|
-
name: "Boolean"
|
|
344
|
-
}
|
|
345
|
-
},
|
|
346
|
-
message: {
|
|
347
|
-
nullable: true,
|
|
348
|
-
serializedName: "message",
|
|
349
|
-
type: {
|
|
350
|
-
name: "String"
|
|
351
|
-
}
|
|
352
|
-
},
|
|
353
|
-
reason: {
|
|
354
|
-
nullable: true,
|
|
355
|
-
serializedName: "reason",
|
|
356
|
-
type: {
|
|
357
|
-
name: "String"
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
};
|
|
363
|
-
var ExternalResource = {
|
|
364
|
-
serializedName: "ExternalResource",
|
|
365
|
-
type: {
|
|
366
|
-
name: "Composite",
|
|
367
|
-
className: "ExternalResource",
|
|
368
|
-
modelProperties: {
|
|
369
|
-
id: {
|
|
370
|
-
readOnly: true,
|
|
371
|
-
serializedName: "id",
|
|
372
|
-
type: {
|
|
373
|
-
name: "String"
|
|
374
|
-
}
|
|
375
|
-
},
|
|
376
|
-
name: {
|
|
377
|
-
readOnly: true,
|
|
378
|
-
serializedName: "name",
|
|
379
|
-
constraints: {
|
|
380
|
-
Pattern: /^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$/
|
|
381
|
-
},
|
|
382
|
-
type: {
|
|
383
|
-
name: "String"
|
|
384
|
-
}
|
|
385
|
-
},
|
|
386
|
-
type: {
|
|
387
|
-
readOnly: true,
|
|
388
|
-
serializedName: "type",
|
|
389
|
-
type: {
|
|
390
|
-
name: "String"
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
var DigitalTwinsEndpointResourceProperties = {
|
|
397
|
-
serializedName: "DigitalTwinsEndpointResourceProperties",
|
|
398
|
-
type: {
|
|
399
|
-
name: "Composite",
|
|
400
|
-
polymorphicDiscriminator: {
|
|
401
|
-
serializedName: "endpointType",
|
|
402
|
-
clientName: "endpointType"
|
|
403
|
-
},
|
|
404
|
-
uberParent: "DigitalTwinsEndpointResourceProperties",
|
|
405
|
-
className: "DigitalTwinsEndpointResourceProperties",
|
|
406
|
-
modelProperties: {
|
|
407
|
-
provisioningState: {
|
|
408
|
-
nullable: true,
|
|
409
|
-
readOnly: true,
|
|
410
|
-
serializedName: "provisioningState",
|
|
411
|
-
type: {
|
|
412
|
-
name: "String"
|
|
413
|
-
}
|
|
414
|
-
},
|
|
415
|
-
createdTime: {
|
|
416
|
-
nullable: true,
|
|
417
|
-
readOnly: true,
|
|
418
|
-
serializedName: "createdTime",
|
|
419
|
-
type: {
|
|
420
|
-
name: "DateTime"
|
|
421
|
-
}
|
|
422
|
-
},
|
|
423
|
-
deadLetterSecret: {
|
|
424
|
-
nullable: true,
|
|
425
|
-
serializedName: "deadLetterSecret",
|
|
426
|
-
type: {
|
|
427
|
-
name: "String"
|
|
428
|
-
}
|
|
429
|
-
},
|
|
430
|
-
endpointType: {
|
|
431
|
-
required: true,
|
|
432
|
-
serializedName: "endpointType",
|
|
433
|
-
type: {
|
|
434
|
-
name: "String"
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
};
|
|
440
|
-
var DigitalTwinsEndpointResource = {
|
|
441
|
-
serializedName: "DigitalTwinsEndpointResource",
|
|
442
|
-
type: {
|
|
443
|
-
name: "Composite",
|
|
444
|
-
className: "DigitalTwinsEndpointResource",
|
|
445
|
-
modelProperties: __assign(__assign({}, ExternalResource.type.modelProperties), { properties: {
|
|
446
|
-
serializedName: "properties",
|
|
447
|
-
type: {
|
|
448
|
-
name: "Composite",
|
|
449
|
-
className: "DigitalTwinsEndpointResourceProperties"
|
|
450
|
-
}
|
|
451
|
-
} })
|
|
452
|
-
}
|
|
453
|
-
};
|
|
454
|
-
var ServiceBus = {
|
|
455
|
-
serializedName: "ServiceBus",
|
|
456
|
-
type: {
|
|
457
|
-
name: "Composite",
|
|
458
|
-
polymorphicDiscriminator: DigitalTwinsEndpointResourceProperties.type.polymorphicDiscriminator,
|
|
459
|
-
uberParent: "DigitalTwinsEndpointResourceProperties",
|
|
460
|
-
className: "ServiceBus",
|
|
461
|
-
modelProperties: __assign(__assign({}, DigitalTwinsEndpointResourceProperties.type.modelProperties), { primaryConnectionString: {
|
|
462
|
-
required: true,
|
|
463
|
-
nullable: true,
|
|
464
|
-
serializedName: "primaryConnectionString",
|
|
465
|
-
type: {
|
|
466
|
-
name: "String"
|
|
467
|
-
}
|
|
468
|
-
}, secondaryConnectionString: {
|
|
469
|
-
nullable: true,
|
|
470
|
-
serializedName: "secondaryConnectionString",
|
|
471
|
-
type: {
|
|
472
|
-
name: "String"
|
|
473
|
-
}
|
|
474
|
-
} })
|
|
475
|
-
}
|
|
476
|
-
};
|
|
477
|
-
var EventHub = {
|
|
478
|
-
serializedName: "EventHub",
|
|
479
|
-
type: {
|
|
480
|
-
name: "Composite",
|
|
481
|
-
polymorphicDiscriminator: DigitalTwinsEndpointResourceProperties.type.polymorphicDiscriminator,
|
|
482
|
-
uberParent: "DigitalTwinsEndpointResourceProperties",
|
|
483
|
-
className: "EventHub",
|
|
484
|
-
modelProperties: __assign(__assign({}, DigitalTwinsEndpointResourceProperties.type.modelProperties), { connectionStringPrimaryKey: {
|
|
485
|
-
required: true,
|
|
486
|
-
nullable: true,
|
|
487
|
-
serializedName: "connectionStringPrimaryKey",
|
|
488
|
-
type: {
|
|
489
|
-
name: "String"
|
|
490
|
-
}
|
|
491
|
-
}, connectionStringSecondaryKey: {
|
|
492
|
-
nullable: true,
|
|
493
|
-
serializedName: "connectionStringSecondaryKey",
|
|
494
|
-
type: {
|
|
495
|
-
name: "String"
|
|
496
|
-
}
|
|
497
|
-
} })
|
|
498
|
-
}
|
|
499
|
-
};
|
|
500
|
-
var EventGrid = {
|
|
501
|
-
serializedName: "EventGrid",
|
|
502
|
-
type: {
|
|
503
|
-
name: "Composite",
|
|
504
|
-
polymorphicDiscriminator: DigitalTwinsEndpointResourceProperties.type.polymorphicDiscriminator,
|
|
505
|
-
uberParent: "DigitalTwinsEndpointResourceProperties",
|
|
506
|
-
className: "EventGrid",
|
|
507
|
-
modelProperties: __assign(__assign({}, DigitalTwinsEndpointResourceProperties.type.modelProperties), { topicEndpoint: {
|
|
508
|
-
required: true,
|
|
509
|
-
serializedName: "TopicEndpoint",
|
|
510
|
-
type: {
|
|
511
|
-
name: "String"
|
|
512
|
-
}
|
|
513
|
-
}, accessKey1: {
|
|
514
|
-
required: true,
|
|
515
|
-
nullable: true,
|
|
516
|
-
serializedName: "accessKey1",
|
|
517
|
-
type: {
|
|
518
|
-
name: "String"
|
|
519
|
-
}
|
|
520
|
-
}, accessKey2: {
|
|
521
|
-
nullable: true,
|
|
522
|
-
serializedName: "accessKey2",
|
|
523
|
-
type: {
|
|
524
|
-
name: "String"
|
|
525
|
-
}
|
|
526
|
-
} })
|
|
527
|
-
}
|
|
528
|
-
};
|
|
529
|
-
var DigitalTwinsDescriptionListResult = {
|
|
530
|
-
serializedName: "DigitalTwinsDescriptionListResult",
|
|
531
|
-
type: {
|
|
532
|
-
name: "Composite",
|
|
533
|
-
className: "DigitalTwinsDescriptionListResult",
|
|
534
|
-
modelProperties: {
|
|
535
|
-
nextLink: {
|
|
536
|
-
nullable: true,
|
|
537
|
-
serializedName: "nextLink",
|
|
538
|
-
type: {
|
|
539
|
-
name: "String"
|
|
540
|
-
}
|
|
541
|
-
},
|
|
542
|
-
value: {
|
|
543
|
-
serializedName: "",
|
|
544
|
-
type: {
|
|
545
|
-
name: "Sequence",
|
|
546
|
-
element: {
|
|
547
|
-
type: {
|
|
548
|
-
name: "Composite",
|
|
549
|
-
className: "DigitalTwinsDescription"
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
};
|
|
557
|
-
var DigitalTwinsEndpointResourceListResult = {
|
|
558
|
-
serializedName: "DigitalTwinsEndpointResourceListResult",
|
|
559
|
-
type: {
|
|
560
|
-
name: "Composite",
|
|
561
|
-
className: "DigitalTwinsEndpointResourceListResult",
|
|
562
|
-
modelProperties: {
|
|
563
|
-
nextLink: {
|
|
564
|
-
nullable: true,
|
|
565
|
-
serializedName: "nextLink",
|
|
566
|
-
type: {
|
|
567
|
-
name: "String"
|
|
568
|
-
}
|
|
569
|
-
},
|
|
570
|
-
value: {
|
|
571
|
-
serializedName: "",
|
|
572
|
-
type: {
|
|
573
|
-
name: "Sequence",
|
|
574
|
-
element: {
|
|
575
|
-
type: {
|
|
576
|
-
name: "Composite",
|
|
577
|
-
className: "DigitalTwinsEndpointResource"
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
};
|
|
585
|
-
var OperationListResult = {
|
|
586
|
-
serializedName: "OperationListResult",
|
|
587
|
-
type: {
|
|
588
|
-
name: "Composite",
|
|
589
|
-
className: "OperationListResult",
|
|
590
|
-
modelProperties: {
|
|
591
|
-
nextLink: {
|
|
592
|
-
nullable: true,
|
|
593
|
-
serializedName: "nextLink",
|
|
594
|
-
type: {
|
|
595
|
-
name: "String"
|
|
596
|
-
}
|
|
597
|
-
},
|
|
598
|
-
value: {
|
|
599
|
-
readOnly: true,
|
|
600
|
-
serializedName: "",
|
|
601
|
-
type: {
|
|
602
|
-
name: "Sequence",
|
|
603
|
-
element: {
|
|
604
|
-
type: {
|
|
605
|
-
name: "Composite",
|
|
606
|
-
className: "Operation"
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
};
|
|
614
|
-
var discriminators = {
|
|
615
|
-
'DigitalTwinsEndpointResourceProperties': DigitalTwinsEndpointResourceProperties,
|
|
616
|
-
'DigitalTwinsEndpointResourceProperties.ServiceBus': ServiceBus,
|
|
617
|
-
'DigitalTwinsEndpointResourceProperties.EventHub': EventHub,
|
|
618
|
-
'DigitalTwinsEndpointResourceProperties.EventGrid': EventGrid
|
|
619
|
-
};
|
|
620
|
-
|
|
621
|
-
var mappers = /*#__PURE__*/Object.freeze({
|
|
622
|
-
__proto__: null,
|
|
623
|
-
CloudError: CloudError,
|
|
624
|
-
BaseResource: BaseResource,
|
|
625
|
-
DigitalTwinsResource: DigitalTwinsResource,
|
|
626
|
-
DigitalTwinsDescription: DigitalTwinsDescription,
|
|
627
|
-
DigitalTwinsPatchDescription: DigitalTwinsPatchDescription,
|
|
628
|
-
ErrorDefinition: ErrorDefinition,
|
|
629
|
-
ErrorResponse: ErrorResponse,
|
|
630
|
-
OperationDisplay: OperationDisplay,
|
|
631
|
-
Operation: Operation,
|
|
632
|
-
CheckNameRequest: CheckNameRequest,
|
|
633
|
-
CheckNameResult: CheckNameResult,
|
|
634
|
-
ExternalResource: ExternalResource,
|
|
635
|
-
DigitalTwinsEndpointResourceProperties: DigitalTwinsEndpointResourceProperties,
|
|
636
|
-
DigitalTwinsEndpointResource: DigitalTwinsEndpointResource,
|
|
637
|
-
ServiceBus: ServiceBus,
|
|
638
|
-
EventHub: EventHub,
|
|
639
|
-
EventGrid: EventGrid,
|
|
640
|
-
DigitalTwinsDescriptionListResult: DigitalTwinsDescriptionListResult,
|
|
641
|
-
DigitalTwinsEndpointResourceListResult: DigitalTwinsEndpointResourceListResult,
|
|
642
|
-
OperationListResult: OperationListResult,
|
|
643
|
-
discriminators: discriminators
|
|
644
|
-
});
|
|
645
|
-
|
|
646
|
-
/*
|
|
647
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
648
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
649
|
-
*
|
|
650
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
651
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
652
|
-
*/
|
|
653
|
-
|
|
654
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
655
|
-
__proto__: null,
|
|
656
|
-
discriminators: discriminators,
|
|
657
|
-
BaseResource: BaseResource,
|
|
658
|
-
CheckNameRequest: CheckNameRequest,
|
|
659
|
-
CheckNameResult: CheckNameResult,
|
|
660
|
-
DigitalTwinsDescription: DigitalTwinsDescription,
|
|
661
|
-
DigitalTwinsDescriptionListResult: DigitalTwinsDescriptionListResult,
|
|
662
|
-
DigitalTwinsEndpointResource: DigitalTwinsEndpointResource,
|
|
663
|
-
DigitalTwinsEndpointResourceProperties: DigitalTwinsEndpointResourceProperties,
|
|
664
|
-
DigitalTwinsPatchDescription: DigitalTwinsPatchDescription,
|
|
665
|
-
DigitalTwinsResource: DigitalTwinsResource,
|
|
666
|
-
ErrorDefinition: ErrorDefinition,
|
|
667
|
-
ErrorResponse: ErrorResponse,
|
|
668
|
-
EventGrid: EventGrid,
|
|
669
|
-
EventHub: EventHub,
|
|
670
|
-
ExternalResource: ExternalResource,
|
|
671
|
-
ServiceBus: ServiceBus
|
|
672
|
-
});
|
|
673
|
-
|
|
674
|
-
/*
|
|
675
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
676
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
677
|
-
* license information.
|
|
678
|
-
*
|
|
679
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
680
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
681
|
-
* regenerated.
|
|
682
|
-
*/
|
|
683
|
-
var acceptLanguage = {
|
|
684
|
-
parameterPath: "acceptLanguage",
|
|
685
|
-
mapper: {
|
|
686
|
-
serializedName: "accept-language",
|
|
687
|
-
defaultValue: 'en-US',
|
|
688
|
-
type: {
|
|
689
|
-
name: "String"
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
};
|
|
693
|
-
var apiVersion = {
|
|
694
|
-
parameterPath: "apiVersion",
|
|
695
|
-
mapper: {
|
|
696
|
-
required: true,
|
|
697
|
-
isConstant: true,
|
|
698
|
-
serializedName: "api-version",
|
|
699
|
-
defaultValue: '2020-10-31',
|
|
700
|
-
constraints: {
|
|
701
|
-
MinLength: 10
|
|
702
|
-
},
|
|
703
|
-
type: {
|
|
704
|
-
name: "String"
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
};
|
|
708
|
-
var endpointName = {
|
|
709
|
-
parameterPath: "endpointName",
|
|
710
|
-
mapper: {
|
|
711
|
-
required: true,
|
|
712
|
-
serializedName: "endpointName",
|
|
713
|
-
constraints: {
|
|
714
|
-
MaxLength: 49,
|
|
715
|
-
MinLength: 2,
|
|
716
|
-
Pattern: /^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$/
|
|
717
|
-
},
|
|
718
|
-
type: {
|
|
719
|
-
name: "String"
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
};
|
|
723
|
-
var location = {
|
|
724
|
-
parameterPath: "location",
|
|
725
|
-
mapper: {
|
|
726
|
-
required: true,
|
|
727
|
-
serializedName: "location",
|
|
728
|
-
constraints: {
|
|
729
|
-
MinLength: 3
|
|
730
|
-
},
|
|
731
|
-
type: {
|
|
732
|
-
name: "String"
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
};
|
|
736
|
-
var nextPageLink = {
|
|
737
|
-
parameterPath: "nextPageLink",
|
|
738
|
-
mapper: {
|
|
739
|
-
required: true,
|
|
740
|
-
serializedName: "nextLink",
|
|
741
|
-
type: {
|
|
742
|
-
name: "String"
|
|
743
|
-
}
|
|
744
|
-
},
|
|
745
|
-
skipEncoding: true
|
|
746
|
-
};
|
|
747
|
-
var resourceGroupName = {
|
|
748
|
-
parameterPath: "resourceGroupName",
|
|
749
|
-
mapper: {
|
|
750
|
-
required: true,
|
|
751
|
-
serializedName: "resourceGroupName",
|
|
752
|
-
constraints: {
|
|
753
|
-
MaxLength: 64,
|
|
754
|
-
MinLength: 1
|
|
755
|
-
},
|
|
756
|
-
type: {
|
|
757
|
-
name: "String"
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
};
|
|
761
|
-
var resourceName = {
|
|
762
|
-
parameterPath: "resourceName",
|
|
763
|
-
mapper: {
|
|
764
|
-
required: true,
|
|
765
|
-
serializedName: "resourceName",
|
|
766
|
-
constraints: {
|
|
767
|
-
MaxLength: 63,
|
|
768
|
-
MinLength: 3,
|
|
769
|
-
Pattern: /^(?!-)[A-Za-z0-9-]{3,63}(?<!-)$/
|
|
770
|
-
},
|
|
771
|
-
type: {
|
|
772
|
-
name: "String"
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
};
|
|
776
|
-
var subscriptionId = {
|
|
777
|
-
parameterPath: "subscriptionId",
|
|
778
|
-
mapper: {
|
|
779
|
-
required: true,
|
|
780
|
-
serializedName: "subscriptionId",
|
|
781
|
-
type: {
|
|
782
|
-
name: "String"
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
};
|
|
786
|
-
|
|
787
|
-
/*
|
|
788
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
789
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
790
|
-
* license information.
|
|
791
|
-
*
|
|
792
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
793
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
794
|
-
* regenerated.
|
|
795
|
-
*/
|
|
796
|
-
/** Class representing a DigitalTwins. */
|
|
797
|
-
var DigitalTwins = /** @class */ (function () {
|
|
798
|
-
/**
|
|
799
|
-
* Create a DigitalTwins.
|
|
800
|
-
* @param {AzureDigitalTwinsManagementClientContext} client Reference to the service client.
|
|
801
|
-
*/
|
|
802
|
-
function DigitalTwins(client) {
|
|
803
|
-
this.client = client;
|
|
804
|
-
}
|
|
805
|
-
DigitalTwins.prototype.get = function (resourceGroupName, resourceName, options, callback) {
|
|
806
|
-
return this.client.sendOperationRequest({
|
|
807
|
-
resourceGroupName: resourceGroupName,
|
|
808
|
-
resourceName: resourceName,
|
|
809
|
-
options: options
|
|
810
|
-
}, getOperationSpec, callback);
|
|
811
|
-
};
|
|
812
|
-
/**
|
|
813
|
-
* Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property
|
|
814
|
-
* is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the
|
|
815
|
-
* modified values in a new body to update the DigitalTwinsInstance.
|
|
816
|
-
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
817
|
-
* @param resourceName The name of the DigitalTwinsInstance.
|
|
818
|
-
* @param digitalTwinsCreate The DigitalTwinsInstance and security metadata.
|
|
819
|
-
* @param [options] The optional parameters
|
|
820
|
-
* @returns Promise<Models.DigitalTwinsCreateOrUpdateResponse>
|
|
821
|
-
*/
|
|
822
|
-
DigitalTwins.prototype.createOrUpdate = function (resourceGroupName, resourceName, digitalTwinsCreate, options) {
|
|
823
|
-
return this.beginCreateOrUpdate(resourceGroupName, resourceName, digitalTwinsCreate, options)
|
|
824
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
825
|
-
};
|
|
826
|
-
/**
|
|
827
|
-
* Update metadata of DigitalTwinsInstance.
|
|
828
|
-
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
829
|
-
* @param resourceName The name of the DigitalTwinsInstance.
|
|
830
|
-
* @param [options] The optional parameters
|
|
831
|
-
* @returns Promise<Models.DigitalTwinsUpdateResponse>
|
|
832
|
-
*/
|
|
833
|
-
DigitalTwins.prototype.update = function (resourceGroupName, resourceName, options) {
|
|
834
|
-
return this.beginUpdate(resourceGroupName, resourceName, options)
|
|
835
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
836
|
-
};
|
|
837
|
-
/**
|
|
838
|
-
* Delete a DigitalTwinsInstance.
|
|
839
|
-
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
840
|
-
* @param resourceName The name of the DigitalTwinsInstance.
|
|
841
|
-
* @param [options] The optional parameters
|
|
842
|
-
* @returns Promise<Models.DigitalTwinsDeleteMethodResponse>
|
|
843
|
-
*/
|
|
844
|
-
DigitalTwins.prototype.deleteMethod = function (resourceGroupName, resourceName, options) {
|
|
845
|
-
return this.beginDeleteMethod(resourceGroupName, resourceName, options)
|
|
846
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
847
|
-
};
|
|
848
|
-
DigitalTwins.prototype.list = function (options, callback) {
|
|
849
|
-
return this.client.sendOperationRequest({
|
|
850
|
-
options: options
|
|
851
|
-
}, listOperationSpec, callback);
|
|
852
|
-
};
|
|
853
|
-
DigitalTwins.prototype.listByResourceGroup = function (resourceGroupName, options, callback) {
|
|
854
|
-
return this.client.sendOperationRequest({
|
|
855
|
-
resourceGroupName: resourceGroupName,
|
|
856
|
-
options: options
|
|
857
|
-
}, listByResourceGroupOperationSpec, callback);
|
|
858
|
-
};
|
|
859
|
-
DigitalTwins.prototype.checkNameAvailability = function (location, name, options, callback) {
|
|
860
|
-
return this.client.sendOperationRequest({
|
|
861
|
-
location: location,
|
|
862
|
-
name: name,
|
|
863
|
-
options: options
|
|
864
|
-
}, checkNameAvailabilityOperationSpec, callback);
|
|
865
|
-
};
|
|
866
|
-
/**
|
|
867
|
-
* Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property
|
|
868
|
-
* is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the
|
|
869
|
-
* modified values in a new body to update the DigitalTwinsInstance.
|
|
870
|
-
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
871
|
-
* @param resourceName The name of the DigitalTwinsInstance.
|
|
872
|
-
* @param digitalTwinsCreate The DigitalTwinsInstance and security metadata.
|
|
873
|
-
* @param [options] The optional parameters
|
|
874
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
875
|
-
*/
|
|
876
|
-
DigitalTwins.prototype.beginCreateOrUpdate = function (resourceGroupName, resourceName, digitalTwinsCreate, options) {
|
|
877
|
-
return this.client.sendLRORequest({
|
|
878
|
-
resourceGroupName: resourceGroupName,
|
|
879
|
-
resourceName: resourceName,
|
|
880
|
-
digitalTwinsCreate: digitalTwinsCreate,
|
|
881
|
-
options: options
|
|
882
|
-
}, beginCreateOrUpdateOperationSpec, options);
|
|
883
|
-
};
|
|
884
|
-
/**
|
|
885
|
-
* Update metadata of DigitalTwinsInstance.
|
|
886
|
-
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
887
|
-
* @param resourceName The name of the DigitalTwinsInstance.
|
|
888
|
-
* @param [options] The optional parameters
|
|
889
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
890
|
-
*/
|
|
891
|
-
DigitalTwins.prototype.beginUpdate = function (resourceGroupName, resourceName, options) {
|
|
892
|
-
return this.client.sendLRORequest({
|
|
893
|
-
resourceGroupName: resourceGroupName,
|
|
894
|
-
resourceName: resourceName,
|
|
895
|
-
options: options
|
|
896
|
-
}, beginUpdateOperationSpec, options);
|
|
897
|
-
};
|
|
898
|
-
/**
|
|
899
|
-
* Delete a DigitalTwinsInstance.
|
|
900
|
-
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
901
|
-
* @param resourceName The name of the DigitalTwinsInstance.
|
|
902
|
-
* @param [options] The optional parameters
|
|
903
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
904
|
-
*/
|
|
905
|
-
DigitalTwins.prototype.beginDeleteMethod = function (resourceGroupName, resourceName, options) {
|
|
906
|
-
return this.client.sendLRORequest({
|
|
907
|
-
resourceGroupName: resourceGroupName,
|
|
908
|
-
resourceName: resourceName,
|
|
909
|
-
options: options
|
|
910
|
-
}, beginDeleteMethodOperationSpec, options);
|
|
911
|
-
};
|
|
912
|
-
DigitalTwins.prototype.listNext = function (nextPageLink, options, callback) {
|
|
913
|
-
return this.client.sendOperationRequest({
|
|
914
|
-
nextPageLink: nextPageLink,
|
|
915
|
-
options: options
|
|
916
|
-
}, listNextOperationSpec, callback);
|
|
917
|
-
};
|
|
918
|
-
DigitalTwins.prototype.listByResourceGroupNext = function (nextPageLink, options, callback) {
|
|
919
|
-
return this.client.sendOperationRequest({
|
|
920
|
-
nextPageLink: nextPageLink,
|
|
921
|
-
options: options
|
|
922
|
-
}, listByResourceGroupNextOperationSpec, callback);
|
|
923
|
-
};
|
|
924
|
-
return DigitalTwins;
|
|
925
|
-
}());
|
|
926
|
-
// Operation Specifications
|
|
927
|
-
var serializer = new msRest.Serializer(Mappers);
|
|
928
|
-
var getOperationSpec = {
|
|
929
|
-
httpMethod: "GET",
|
|
930
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",
|
|
931
|
-
urlParameters: [
|
|
932
|
-
subscriptionId,
|
|
933
|
-
resourceGroupName,
|
|
934
|
-
resourceName
|
|
935
|
-
],
|
|
936
|
-
queryParameters: [
|
|
937
|
-
apiVersion
|
|
938
|
-
],
|
|
939
|
-
headerParameters: [
|
|
940
|
-
acceptLanguage
|
|
941
|
-
],
|
|
942
|
-
responses: {
|
|
943
|
-
200: {
|
|
944
|
-
bodyMapper: DigitalTwinsDescription
|
|
945
|
-
},
|
|
946
|
-
default: {
|
|
947
|
-
bodyMapper: ErrorResponse
|
|
948
|
-
}
|
|
949
|
-
},
|
|
950
|
-
serializer: serializer
|
|
951
|
-
};
|
|
952
|
-
var listOperationSpec = {
|
|
953
|
-
httpMethod: "GET",
|
|
954
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/digitalTwinsInstances",
|
|
955
|
-
urlParameters: [
|
|
956
|
-
subscriptionId
|
|
957
|
-
],
|
|
958
|
-
queryParameters: [
|
|
959
|
-
apiVersion
|
|
960
|
-
],
|
|
961
|
-
headerParameters: [
|
|
962
|
-
acceptLanguage
|
|
963
|
-
],
|
|
964
|
-
responses: {
|
|
965
|
-
200: {
|
|
966
|
-
bodyMapper: DigitalTwinsDescriptionListResult
|
|
967
|
-
},
|
|
968
|
-
default: {
|
|
969
|
-
bodyMapper: ErrorResponse
|
|
970
|
-
}
|
|
971
|
-
},
|
|
972
|
-
serializer: serializer
|
|
973
|
-
};
|
|
974
|
-
var listByResourceGroupOperationSpec = {
|
|
975
|
-
httpMethod: "GET",
|
|
976
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances",
|
|
977
|
-
urlParameters: [
|
|
978
|
-
subscriptionId,
|
|
979
|
-
resourceGroupName
|
|
980
|
-
],
|
|
981
|
-
queryParameters: [
|
|
982
|
-
apiVersion
|
|
983
|
-
],
|
|
984
|
-
headerParameters: [
|
|
985
|
-
acceptLanguage
|
|
986
|
-
],
|
|
987
|
-
responses: {
|
|
988
|
-
200: {
|
|
989
|
-
bodyMapper: DigitalTwinsDescriptionListResult
|
|
990
|
-
},
|
|
991
|
-
default: {
|
|
992
|
-
bodyMapper: ErrorResponse
|
|
993
|
-
}
|
|
994
|
-
},
|
|
995
|
-
serializer: serializer
|
|
996
|
-
};
|
|
997
|
-
var checkNameAvailabilityOperationSpec = {
|
|
998
|
-
httpMethod: "POST",
|
|
999
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/locations/{location}/checkNameAvailability",
|
|
1000
|
-
urlParameters: [
|
|
1001
|
-
subscriptionId,
|
|
1002
|
-
location
|
|
1003
|
-
],
|
|
1004
|
-
queryParameters: [
|
|
1005
|
-
apiVersion
|
|
1006
|
-
],
|
|
1007
|
-
headerParameters: [
|
|
1008
|
-
acceptLanguage
|
|
1009
|
-
],
|
|
1010
|
-
requestBody: {
|
|
1011
|
-
parameterPath: {
|
|
1012
|
-
name: "name"
|
|
1013
|
-
},
|
|
1014
|
-
mapper: __assign(__assign({}, CheckNameRequest), { required: true })
|
|
1015
|
-
},
|
|
1016
|
-
responses: {
|
|
1017
|
-
200: {
|
|
1018
|
-
bodyMapper: CheckNameResult
|
|
1019
|
-
},
|
|
1020
|
-
default: {
|
|
1021
|
-
bodyMapper: ErrorResponse
|
|
1022
|
-
}
|
|
1023
|
-
},
|
|
1024
|
-
serializer: serializer
|
|
1025
|
-
};
|
|
1026
|
-
var beginCreateOrUpdateOperationSpec = {
|
|
1027
|
-
httpMethod: "PUT",
|
|
1028
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",
|
|
1029
|
-
urlParameters: [
|
|
1030
|
-
subscriptionId,
|
|
1031
|
-
resourceGroupName,
|
|
1032
|
-
resourceName
|
|
1033
|
-
],
|
|
1034
|
-
queryParameters: [
|
|
1035
|
-
apiVersion
|
|
1036
|
-
],
|
|
1037
|
-
headerParameters: [
|
|
1038
|
-
acceptLanguage
|
|
1039
|
-
],
|
|
1040
|
-
requestBody: {
|
|
1041
|
-
parameterPath: "digitalTwinsCreate",
|
|
1042
|
-
mapper: __assign(__assign({}, DigitalTwinsDescription), { required: true })
|
|
1043
|
-
},
|
|
1044
|
-
responses: {
|
|
1045
|
-
200: {
|
|
1046
|
-
bodyMapper: DigitalTwinsDescription
|
|
1047
|
-
},
|
|
1048
|
-
201: {
|
|
1049
|
-
bodyMapper: DigitalTwinsDescription
|
|
1050
|
-
},
|
|
1051
|
-
default: {
|
|
1052
|
-
bodyMapper: ErrorResponse
|
|
1053
|
-
}
|
|
1054
|
-
},
|
|
1055
|
-
serializer: serializer
|
|
1056
|
-
};
|
|
1057
|
-
var beginUpdateOperationSpec = {
|
|
1058
|
-
httpMethod: "PATCH",
|
|
1059
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",
|
|
1060
|
-
urlParameters: [
|
|
1061
|
-
subscriptionId,
|
|
1062
|
-
resourceGroupName,
|
|
1063
|
-
resourceName
|
|
1064
|
-
],
|
|
1065
|
-
queryParameters: [
|
|
1066
|
-
apiVersion
|
|
1067
|
-
],
|
|
1068
|
-
headerParameters: [
|
|
1069
|
-
acceptLanguage
|
|
1070
|
-
],
|
|
1071
|
-
requestBody: {
|
|
1072
|
-
parameterPath: {
|
|
1073
|
-
tags: [
|
|
1074
|
-
"options",
|
|
1075
|
-
"tags"
|
|
1076
|
-
]
|
|
1077
|
-
},
|
|
1078
|
-
mapper: __assign(__assign({}, DigitalTwinsPatchDescription), { required: true })
|
|
1079
|
-
},
|
|
1080
|
-
responses: {
|
|
1081
|
-
200: {
|
|
1082
|
-
bodyMapper: DigitalTwinsDescription
|
|
1083
|
-
},
|
|
1084
|
-
default: {
|
|
1085
|
-
bodyMapper: ErrorResponse
|
|
1086
|
-
}
|
|
1087
|
-
},
|
|
1088
|
-
serializer: serializer
|
|
1089
|
-
};
|
|
1090
|
-
var beginDeleteMethodOperationSpec = {
|
|
1091
|
-
httpMethod: "DELETE",
|
|
1092
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",
|
|
1093
|
-
urlParameters: [
|
|
1094
|
-
subscriptionId,
|
|
1095
|
-
resourceGroupName,
|
|
1096
|
-
resourceName
|
|
1097
|
-
],
|
|
1098
|
-
queryParameters: [
|
|
1099
|
-
apiVersion
|
|
1100
|
-
],
|
|
1101
|
-
headerParameters: [
|
|
1102
|
-
acceptLanguage
|
|
1103
|
-
],
|
|
1104
|
-
responses: {
|
|
1105
|
-
200: {
|
|
1106
|
-
bodyMapper: DigitalTwinsDescription
|
|
1107
|
-
},
|
|
1108
|
-
202: {
|
|
1109
|
-
bodyMapper: DigitalTwinsDescription
|
|
1110
|
-
},
|
|
1111
|
-
204: {},
|
|
1112
|
-
default: {
|
|
1113
|
-
bodyMapper: ErrorResponse
|
|
1114
|
-
}
|
|
1115
|
-
},
|
|
1116
|
-
serializer: serializer
|
|
1117
|
-
};
|
|
1118
|
-
var listNextOperationSpec = {
|
|
1119
|
-
httpMethod: "GET",
|
|
1120
|
-
baseUrl: "https://management.azure.com",
|
|
1121
|
-
path: "{nextLink}",
|
|
1122
|
-
urlParameters: [
|
|
1123
|
-
nextPageLink
|
|
1124
|
-
],
|
|
1125
|
-
headerParameters: [
|
|
1126
|
-
acceptLanguage
|
|
1127
|
-
],
|
|
1128
|
-
responses: {
|
|
1129
|
-
200: {
|
|
1130
|
-
bodyMapper: DigitalTwinsDescriptionListResult
|
|
1131
|
-
},
|
|
1132
|
-
default: {
|
|
1133
|
-
bodyMapper: ErrorResponse
|
|
1134
|
-
}
|
|
1135
|
-
},
|
|
1136
|
-
serializer: serializer
|
|
1137
|
-
};
|
|
1138
|
-
var listByResourceGroupNextOperationSpec = {
|
|
1139
|
-
httpMethod: "GET",
|
|
1140
|
-
baseUrl: "https://management.azure.com",
|
|
1141
|
-
path: "{nextLink}",
|
|
1142
|
-
urlParameters: [
|
|
1143
|
-
nextPageLink
|
|
1144
|
-
],
|
|
1145
|
-
headerParameters: [
|
|
1146
|
-
acceptLanguage
|
|
1147
|
-
],
|
|
1148
|
-
responses: {
|
|
1149
|
-
200: {
|
|
1150
|
-
bodyMapper: DigitalTwinsDescriptionListResult
|
|
1151
|
-
},
|
|
1152
|
-
default: {
|
|
1153
|
-
bodyMapper: ErrorResponse
|
|
1154
|
-
}
|
|
1155
|
-
},
|
|
1156
|
-
serializer: serializer
|
|
1157
|
-
};
|
|
1158
|
-
|
|
1159
|
-
/*
|
|
1160
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1161
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
1162
|
-
*
|
|
1163
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1164
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1165
|
-
*/
|
|
1166
|
-
|
|
1167
|
-
var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
1168
|
-
__proto__: null,
|
|
1169
|
-
discriminators: discriminators,
|
|
1170
|
-
BaseResource: BaseResource,
|
|
1171
|
-
DigitalTwinsDescription: DigitalTwinsDescription,
|
|
1172
|
-
DigitalTwinsEndpointResource: DigitalTwinsEndpointResource,
|
|
1173
|
-
DigitalTwinsEndpointResourceListResult: DigitalTwinsEndpointResourceListResult,
|
|
1174
|
-
DigitalTwinsEndpointResourceProperties: DigitalTwinsEndpointResourceProperties,
|
|
1175
|
-
DigitalTwinsResource: DigitalTwinsResource,
|
|
1176
|
-
ErrorDefinition: ErrorDefinition,
|
|
1177
|
-
ErrorResponse: ErrorResponse,
|
|
1178
|
-
EventGrid: EventGrid,
|
|
1179
|
-
EventHub: EventHub,
|
|
1180
|
-
ExternalResource: ExternalResource,
|
|
1181
|
-
ServiceBus: ServiceBus
|
|
1182
|
-
});
|
|
1183
|
-
|
|
1184
|
-
/*
|
|
1185
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1186
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1187
|
-
* license information.
|
|
1188
|
-
*
|
|
1189
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1190
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1191
|
-
* regenerated.
|
|
1192
|
-
*/
|
|
1193
|
-
/** Class representing a DigitalTwinsEndpoint. */
|
|
1194
|
-
var DigitalTwinsEndpoint = /** @class */ (function () {
|
|
1195
|
-
/**
|
|
1196
|
-
* Create a DigitalTwinsEndpoint.
|
|
1197
|
-
* @param {AzureDigitalTwinsManagementClientContext} client Reference to the service client.
|
|
1198
|
-
*/
|
|
1199
|
-
function DigitalTwinsEndpoint(client) {
|
|
1200
|
-
this.client = client;
|
|
1201
|
-
}
|
|
1202
|
-
DigitalTwinsEndpoint.prototype.list = function (resourceGroupName, resourceName, options, callback) {
|
|
1203
|
-
return this.client.sendOperationRequest({
|
|
1204
|
-
resourceGroupName: resourceGroupName,
|
|
1205
|
-
resourceName: resourceName,
|
|
1206
|
-
options: options
|
|
1207
|
-
}, listOperationSpec$1, callback);
|
|
1208
|
-
};
|
|
1209
|
-
DigitalTwinsEndpoint.prototype.get = function (resourceGroupName, resourceName, endpointName, options, callback) {
|
|
1210
|
-
return this.client.sendOperationRequest({
|
|
1211
|
-
resourceGroupName: resourceGroupName,
|
|
1212
|
-
resourceName: resourceName,
|
|
1213
|
-
endpointName: endpointName,
|
|
1214
|
-
options: options
|
|
1215
|
-
}, getOperationSpec$1, callback);
|
|
1216
|
-
};
|
|
1217
|
-
/**
|
|
1218
|
-
* Create or update DigitalTwinsInstance endpoint.
|
|
1219
|
-
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
1220
|
-
* @param resourceName The name of the DigitalTwinsInstance.
|
|
1221
|
-
* @param endpointName Name of Endpoint Resource.
|
|
1222
|
-
* @param [options] The optional parameters
|
|
1223
|
-
* @returns Promise<Models.DigitalTwinsEndpointCreateOrUpdateResponse>
|
|
1224
|
-
*/
|
|
1225
|
-
DigitalTwinsEndpoint.prototype.createOrUpdate = function (resourceGroupName, resourceName, endpointName, options) {
|
|
1226
|
-
return this.beginCreateOrUpdate(resourceGroupName, resourceName, endpointName, options)
|
|
1227
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
1228
|
-
};
|
|
1229
|
-
/**
|
|
1230
|
-
* Delete a DigitalTwinsInstance endpoint.
|
|
1231
|
-
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
1232
|
-
* @param resourceName The name of the DigitalTwinsInstance.
|
|
1233
|
-
* @param endpointName Name of Endpoint Resource.
|
|
1234
|
-
* @param [options] The optional parameters
|
|
1235
|
-
* @returns Promise<Models.DigitalTwinsEndpointDeleteMethodResponse>
|
|
1236
|
-
*/
|
|
1237
|
-
DigitalTwinsEndpoint.prototype.deleteMethod = function (resourceGroupName, resourceName, endpointName, options) {
|
|
1238
|
-
return this.beginDeleteMethod(resourceGroupName, resourceName, endpointName, options)
|
|
1239
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
1240
|
-
};
|
|
1241
|
-
/**
|
|
1242
|
-
* Create or update DigitalTwinsInstance endpoint.
|
|
1243
|
-
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
1244
|
-
* @param resourceName The name of the DigitalTwinsInstance.
|
|
1245
|
-
* @param endpointName Name of Endpoint Resource.
|
|
1246
|
-
* @param [options] The optional parameters
|
|
1247
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
1248
|
-
*/
|
|
1249
|
-
DigitalTwinsEndpoint.prototype.beginCreateOrUpdate = function (resourceGroupName, resourceName, endpointName, options) {
|
|
1250
|
-
return this.client.sendLRORequest({
|
|
1251
|
-
resourceGroupName: resourceGroupName,
|
|
1252
|
-
resourceName: resourceName,
|
|
1253
|
-
endpointName: endpointName,
|
|
1254
|
-
options: options
|
|
1255
|
-
}, beginCreateOrUpdateOperationSpec$1, options);
|
|
1256
|
-
};
|
|
1257
|
-
/**
|
|
1258
|
-
* Delete a DigitalTwinsInstance endpoint.
|
|
1259
|
-
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
1260
|
-
* @param resourceName The name of the DigitalTwinsInstance.
|
|
1261
|
-
* @param endpointName Name of Endpoint Resource.
|
|
1262
|
-
* @param [options] The optional parameters
|
|
1263
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
1264
|
-
*/
|
|
1265
|
-
DigitalTwinsEndpoint.prototype.beginDeleteMethod = function (resourceGroupName, resourceName, endpointName, options) {
|
|
1266
|
-
return this.client.sendLRORequest({
|
|
1267
|
-
resourceGroupName: resourceGroupName,
|
|
1268
|
-
resourceName: resourceName,
|
|
1269
|
-
endpointName: endpointName,
|
|
1270
|
-
options: options
|
|
1271
|
-
}, beginDeleteMethodOperationSpec$1, options);
|
|
1272
|
-
};
|
|
1273
|
-
DigitalTwinsEndpoint.prototype.listNext = function (nextPageLink, options, callback) {
|
|
1274
|
-
return this.client.sendOperationRequest({
|
|
1275
|
-
nextPageLink: nextPageLink,
|
|
1276
|
-
options: options
|
|
1277
|
-
}, listNextOperationSpec$1, callback);
|
|
1278
|
-
};
|
|
1279
|
-
return DigitalTwinsEndpoint;
|
|
1280
|
-
}());
|
|
1281
|
-
// Operation Specifications
|
|
1282
|
-
var serializer$1 = new msRest.Serializer(Mappers$1);
|
|
1283
|
-
var listOperationSpec$1 = {
|
|
1284
|
-
httpMethod: "GET",
|
|
1285
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints",
|
|
1286
|
-
urlParameters: [
|
|
1287
|
-
subscriptionId,
|
|
1288
|
-
resourceGroupName,
|
|
1289
|
-
resourceName
|
|
1290
|
-
],
|
|
1291
|
-
queryParameters: [
|
|
1292
|
-
apiVersion
|
|
1293
|
-
],
|
|
1294
|
-
headerParameters: [
|
|
1295
|
-
acceptLanguage
|
|
1296
|
-
],
|
|
1297
|
-
responses: {
|
|
1298
|
-
200: {
|
|
1299
|
-
bodyMapper: DigitalTwinsEndpointResourceListResult
|
|
1300
|
-
},
|
|
1301
|
-
default: {
|
|
1302
|
-
bodyMapper: ErrorResponse
|
|
1303
|
-
}
|
|
1304
|
-
},
|
|
1305
|
-
serializer: serializer$1
|
|
1306
|
-
};
|
|
1307
|
-
var getOperationSpec$1 = {
|
|
1308
|
-
httpMethod: "GET",
|
|
1309
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}",
|
|
1310
|
-
urlParameters: [
|
|
1311
|
-
subscriptionId,
|
|
1312
|
-
resourceGroupName,
|
|
1313
|
-
resourceName,
|
|
1314
|
-
endpointName
|
|
1315
|
-
],
|
|
1316
|
-
queryParameters: [
|
|
1317
|
-
apiVersion
|
|
1318
|
-
],
|
|
1319
|
-
headerParameters: [
|
|
1320
|
-
acceptLanguage
|
|
1321
|
-
],
|
|
1322
|
-
responses: {
|
|
1323
|
-
200: {
|
|
1324
|
-
bodyMapper: DigitalTwinsEndpointResource
|
|
1325
|
-
},
|
|
1326
|
-
default: {
|
|
1327
|
-
bodyMapper: ErrorResponse
|
|
1328
|
-
}
|
|
1329
|
-
},
|
|
1330
|
-
serializer: serializer$1
|
|
1331
|
-
};
|
|
1332
|
-
var beginCreateOrUpdateOperationSpec$1 = {
|
|
1333
|
-
httpMethod: "PUT",
|
|
1334
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}",
|
|
1335
|
-
urlParameters: [
|
|
1336
|
-
subscriptionId,
|
|
1337
|
-
resourceGroupName,
|
|
1338
|
-
resourceName,
|
|
1339
|
-
endpointName
|
|
1340
|
-
],
|
|
1341
|
-
queryParameters: [
|
|
1342
|
-
apiVersion
|
|
1343
|
-
],
|
|
1344
|
-
headerParameters: [
|
|
1345
|
-
acceptLanguage
|
|
1346
|
-
],
|
|
1347
|
-
requestBody: {
|
|
1348
|
-
parameterPath: {
|
|
1349
|
-
properties: [
|
|
1350
|
-
"options",
|
|
1351
|
-
"properties"
|
|
1352
|
-
]
|
|
1353
|
-
},
|
|
1354
|
-
mapper: __assign(__assign({}, DigitalTwinsEndpointResource), { required: true })
|
|
1355
|
-
},
|
|
1356
|
-
responses: {
|
|
1357
|
-
200: {
|
|
1358
|
-
bodyMapper: DigitalTwinsEndpointResource
|
|
1359
|
-
},
|
|
1360
|
-
201: {
|
|
1361
|
-
bodyMapper: DigitalTwinsEndpointResource
|
|
1362
|
-
},
|
|
1363
|
-
default: {
|
|
1364
|
-
bodyMapper: ErrorResponse
|
|
1365
|
-
}
|
|
1366
|
-
},
|
|
1367
|
-
serializer: serializer$1
|
|
1368
|
-
};
|
|
1369
|
-
var beginDeleteMethodOperationSpec$1 = {
|
|
1370
|
-
httpMethod: "DELETE",
|
|
1371
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}",
|
|
1372
|
-
urlParameters: [
|
|
1373
|
-
subscriptionId,
|
|
1374
|
-
resourceGroupName,
|
|
1375
|
-
resourceName,
|
|
1376
|
-
endpointName
|
|
1377
|
-
],
|
|
1378
|
-
queryParameters: [
|
|
1379
|
-
apiVersion
|
|
1380
|
-
],
|
|
1381
|
-
headerParameters: [
|
|
1382
|
-
acceptLanguage
|
|
1383
|
-
],
|
|
1384
|
-
responses: {
|
|
1385
|
-
200: {
|
|
1386
|
-
bodyMapper: DigitalTwinsEndpointResource
|
|
1387
|
-
},
|
|
1388
|
-
202: {
|
|
1389
|
-
bodyMapper: DigitalTwinsEndpointResource
|
|
1390
|
-
},
|
|
1391
|
-
204: {},
|
|
1392
|
-
default: {
|
|
1393
|
-
bodyMapper: ErrorResponse
|
|
1394
|
-
}
|
|
1395
|
-
},
|
|
1396
|
-
serializer: serializer$1
|
|
1397
|
-
};
|
|
1398
|
-
var listNextOperationSpec$1 = {
|
|
1399
|
-
httpMethod: "GET",
|
|
1400
|
-
baseUrl: "https://management.azure.com",
|
|
1401
|
-
path: "{nextLink}",
|
|
1402
|
-
urlParameters: [
|
|
1403
|
-
nextPageLink
|
|
1404
|
-
],
|
|
1405
|
-
headerParameters: [
|
|
1406
|
-
acceptLanguage
|
|
1407
|
-
],
|
|
1408
|
-
responses: {
|
|
1409
|
-
200: {
|
|
1410
|
-
bodyMapper: DigitalTwinsEndpointResourceListResult
|
|
1411
|
-
},
|
|
1412
|
-
default: {
|
|
1413
|
-
bodyMapper: ErrorResponse
|
|
1414
|
-
}
|
|
1415
|
-
},
|
|
1416
|
-
serializer: serializer$1
|
|
1417
|
-
};
|
|
1418
|
-
|
|
1419
|
-
/*
|
|
1420
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1421
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
1422
|
-
*
|
|
1423
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1424
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1425
|
-
*/
|
|
1426
|
-
|
|
1427
|
-
var Mappers$2 = /*#__PURE__*/Object.freeze({
|
|
1428
|
-
__proto__: null,
|
|
1429
|
-
discriminators: discriminators,
|
|
1430
|
-
ErrorDefinition: ErrorDefinition,
|
|
1431
|
-
ErrorResponse: ErrorResponse,
|
|
1432
|
-
Operation: Operation,
|
|
1433
|
-
OperationDisplay: OperationDisplay,
|
|
1434
|
-
OperationListResult: OperationListResult
|
|
1435
|
-
});
|
|
1436
|
-
|
|
1437
|
-
/*
|
|
1438
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1439
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1440
|
-
* license information.
|
|
1441
|
-
*
|
|
1442
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1443
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1444
|
-
* regenerated.
|
|
1445
|
-
*/
|
|
1446
|
-
/** Class representing a Operations. */
|
|
1447
|
-
var Operations = /** @class */ (function () {
|
|
1448
|
-
/**
|
|
1449
|
-
* Create a Operations.
|
|
1450
|
-
* @param {AzureDigitalTwinsManagementClientContext} client Reference to the service client.
|
|
1451
|
-
*/
|
|
1452
|
-
function Operations(client) {
|
|
1453
|
-
this.client = client;
|
|
1454
|
-
}
|
|
1455
|
-
Operations.prototype.list = function (options, callback) {
|
|
1456
|
-
return this.client.sendOperationRequest({
|
|
1457
|
-
options: options
|
|
1458
|
-
}, listOperationSpec$2, callback);
|
|
1459
|
-
};
|
|
1460
|
-
Operations.prototype.listNext = function (nextPageLink, options, callback) {
|
|
1461
|
-
return this.client.sendOperationRequest({
|
|
1462
|
-
nextPageLink: nextPageLink,
|
|
1463
|
-
options: options
|
|
1464
|
-
}, listNextOperationSpec$2, callback);
|
|
1465
|
-
};
|
|
1466
|
-
return Operations;
|
|
1467
|
-
}());
|
|
1468
|
-
// Operation Specifications
|
|
1469
|
-
var serializer$2 = new msRest.Serializer(Mappers$2);
|
|
1470
|
-
var listOperationSpec$2 = {
|
|
1471
|
-
httpMethod: "GET",
|
|
1472
|
-
path: "providers/Microsoft.DigitalTwins/operations",
|
|
1473
|
-
queryParameters: [
|
|
1474
|
-
apiVersion
|
|
1475
|
-
],
|
|
1476
|
-
headerParameters: [
|
|
1477
|
-
acceptLanguage
|
|
1478
|
-
],
|
|
1479
|
-
responses: {
|
|
1480
|
-
200: {
|
|
1481
|
-
bodyMapper: OperationListResult
|
|
1482
|
-
},
|
|
1483
|
-
default: {
|
|
1484
|
-
bodyMapper: ErrorResponse
|
|
1485
|
-
}
|
|
1486
|
-
},
|
|
1487
|
-
serializer: serializer$2
|
|
1488
|
-
};
|
|
1489
|
-
var listNextOperationSpec$2 = {
|
|
1490
|
-
httpMethod: "GET",
|
|
1491
|
-
baseUrl: "https://management.azure.com",
|
|
1492
|
-
path: "{nextLink}",
|
|
1493
|
-
urlParameters: [
|
|
1494
|
-
nextPageLink
|
|
1495
|
-
],
|
|
1496
|
-
headerParameters: [
|
|
1497
|
-
acceptLanguage
|
|
1498
|
-
],
|
|
1499
|
-
responses: {
|
|
1500
|
-
200: {
|
|
1501
|
-
bodyMapper: OperationListResult
|
|
1502
|
-
},
|
|
1503
|
-
default: {
|
|
1504
|
-
bodyMapper: ErrorResponse
|
|
1505
|
-
}
|
|
1506
|
-
},
|
|
1507
|
-
serializer: serializer$2
|
|
1508
|
-
};
|
|
1509
|
-
|
|
1510
|
-
/*
|
|
1511
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1512
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1513
|
-
* license information.
|
|
1514
|
-
*
|
|
1515
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1516
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1517
|
-
* regenerated.
|
|
1518
|
-
*/
|
|
1519
|
-
var packageName = "@azure/arm-digitaltwins";
|
|
1520
|
-
var packageVersion = "1.0.0";
|
|
1521
|
-
var AzureDigitalTwinsManagementClientContext = /** @class */ (function (_super) {
|
|
1522
|
-
__extends(AzureDigitalTwinsManagementClientContext, _super);
|
|
1523
|
-
/**
|
|
1524
|
-
* Initializes a new instance of the AzureDigitalTwinsManagementClient class.
|
|
1525
|
-
* @param credentials Credentials needed for the client to connect to Azure.
|
|
1526
|
-
* @param subscriptionId The subscription identifier.
|
|
1527
|
-
* @param [options] The parameter options
|
|
1528
|
-
*/
|
|
1529
|
-
function AzureDigitalTwinsManagementClientContext(credentials, subscriptionId, options) {
|
|
1530
|
-
var _this = this;
|
|
1531
|
-
if (credentials == undefined) {
|
|
1532
|
-
throw new Error('\'credentials\' cannot be null.');
|
|
1533
|
-
}
|
|
1534
|
-
if (subscriptionId == undefined) {
|
|
1535
|
-
throw new Error('\'subscriptionId\' cannot be null.');
|
|
1536
|
-
}
|
|
1537
|
-
if (!options) {
|
|
1538
|
-
options = {};
|
|
1539
|
-
}
|
|
1540
|
-
if (!options.userAgent) {
|
|
1541
|
-
var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
|
1542
|
-
options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
|
|
1543
|
-
}
|
|
1544
|
-
_this = _super.call(this, credentials, options) || this;
|
|
1545
|
-
_this.apiVersion = '2020-10-31';
|
|
1546
|
-
_this.acceptLanguage = 'en-US';
|
|
1547
|
-
_this.longRunningOperationRetryTimeout = 30;
|
|
1548
|
-
_this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
|
|
1549
|
-
_this.requestContentType = "application/json; charset=utf-8";
|
|
1550
|
-
_this.credentials = credentials;
|
|
1551
|
-
_this.subscriptionId = subscriptionId;
|
|
1552
|
-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
|
1553
|
-
_this.acceptLanguage = options.acceptLanguage;
|
|
1554
|
-
}
|
|
1555
|
-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
|
1556
|
-
_this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
|
1557
|
-
}
|
|
1558
|
-
return _this;
|
|
1559
|
-
}
|
|
1560
|
-
return AzureDigitalTwinsManagementClientContext;
|
|
1561
|
-
}(msRestAzure.AzureServiceClient));
|
|
1562
|
-
|
|
1563
|
-
/*
|
|
1564
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1565
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
1566
|
-
* license information.
|
|
1567
|
-
*
|
|
1568
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1569
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1570
|
-
* regenerated.
|
|
1571
|
-
*/
|
|
1572
|
-
var AzureDigitalTwinsManagementClient = /** @class */ (function (_super) {
|
|
1573
|
-
__extends(AzureDigitalTwinsManagementClient, _super);
|
|
1574
|
-
/**
|
|
1575
|
-
* Initializes a new instance of the AzureDigitalTwinsManagementClient class.
|
|
1576
|
-
* @param credentials Credentials needed for the client to connect to Azure.
|
|
1577
|
-
* @param subscriptionId The subscription identifier.
|
|
1578
|
-
* @param [options] The parameter options
|
|
1579
|
-
*/
|
|
1580
|
-
function AzureDigitalTwinsManagementClient(credentials, subscriptionId, options) {
|
|
1581
|
-
var _this = _super.call(this, credentials, subscriptionId, options) || this;
|
|
1582
|
-
_this.digitalTwins = new DigitalTwins(_this);
|
|
1583
|
-
_this.digitalTwinsEndpoint = new DigitalTwinsEndpoint(_this);
|
|
1584
|
-
_this.operations = new Operations(_this);
|
|
1585
|
-
return _this;
|
|
1586
|
-
}
|
|
1587
|
-
return AzureDigitalTwinsManagementClient;
|
|
1588
|
-
}(AzureDigitalTwinsManagementClientContext));
|
|
1589
|
-
|
|
1590
|
-
exports.AzureDigitalTwinsManagementClient = AzureDigitalTwinsManagementClient;
|
|
1591
|
-
exports.AzureDigitalTwinsManagementClientContext = AzureDigitalTwinsManagementClientContext;
|
|
1592
|
-
exports.AzureDigitalTwinsManagementMappers = mappers;
|
|
1593
|
-
exports.AzureDigitalTwinsManagementModels = index;
|
|
1594
|
-
exports.DigitalTwins = DigitalTwins;
|
|
1595
|
-
exports.DigitalTwinsEndpoint = DigitalTwinsEndpoint;
|
|
1596
|
-
exports.Operations = Operations;
|
|
1597
|
-
|
|
1598
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1599
|
-
|
|
1600
|
-
})));
|
|
1601
|
-
//# sourceMappingURL=arm-digitaltwins.js.map
|