@azure/digital-twins-core 1.1.1-alpha.20221017.1 → 2.0.0-alpha.20230111.2
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/README.md +7 -7
- package/dist/index.js +575 -610
- package/dist/index.js.map +1 -1
- package/dist-esm/src/constants.js +1 -1
- package/dist-esm/src/constants.js.map +1 -1
- package/dist-esm/src/digitalTwinsClient.js +69 -364
- package/dist-esm/src/digitalTwinsClient.js.map +1 -1
- package/dist-esm/src/generated/azureDigitalTwinsAPI.js +52 -13
- package/dist-esm/src/generated/azureDigitalTwinsAPI.js.map +1 -1
- package/dist-esm/src/generated/index.js +13 -0
- package/dist-esm/src/generated/index.js.map +1 -0
- package/dist-esm/src/generated/models/index.js.map +1 -1
- package/dist-esm/src/generated/models/mappers.js +35 -7
- package/dist-esm/src/generated/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/models/parameters.js +45 -30
- package/dist-esm/src/generated/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/operations/digitalTwinModels.js +87 -47
- package/dist-esm/src/generated/operations/digitalTwinModels.js.map +1 -1
- package/dist-esm/src/generated/operations/digitalTwins.js +190 -80
- package/dist-esm/src/generated/operations/digitalTwins.js.map +1 -1
- package/dist-esm/src/generated/operations/eventRoutes.js +79 -35
- package/dist-esm/src/generated/operations/eventRoutes.js.map +1 -1
- package/dist-esm/src/generated/operations/query.js +10 -12
- package/dist-esm/src/generated/operations/query.js.map +1 -1
- package/dist-esm/src/generated/operationsInterfaces/digitalTwinModels.js +9 -0
- package/dist-esm/src/generated/operationsInterfaces/digitalTwinModels.js.map +1 -0
- package/dist-esm/src/generated/operationsInterfaces/digitalTwins.js +9 -0
- package/dist-esm/src/generated/operationsInterfaces/digitalTwins.js.map +1 -0
- package/dist-esm/src/generated/operationsInterfaces/eventRoutes.js +9 -0
- package/dist-esm/src/generated/operationsInterfaces/eventRoutes.js.map +1 -0
- package/dist-esm/src/generated/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/generated/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/generated/operationsInterfaces/query.js +9 -0
- package/dist-esm/src/generated/operationsInterfaces/query.js.map +1 -0
- package/dist-esm/src/generated/pagingHelper.js +32 -0
- package/dist-esm/src/generated/pagingHelper.js.map +1 -0
- package/dist-esm/src/index.js +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/package.json +13 -11
- package/types/digital-twins-core.d.ts +196 -693
- package/dist-esm/src/generated/azureDigitalTwinsAPIContext.js +0 -35
- package/dist-esm/src/generated/azureDigitalTwinsAPIContext.js.map +0 -1
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
9
11
|
import * as Mappers from "../models/mappers";
|
|
10
12
|
import * as Parameters from "../models/parameters";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export class DigitalTwins {
|
|
13
|
+
/// <reference lib="esnext.asynciterable" />
|
|
14
|
+
/** Class containing DigitalTwins operations. */
|
|
15
|
+
export class DigitalTwinsImpl {
|
|
15
16
|
/**
|
|
16
17
|
* Initialize a new instance of the class DigitalTwins class.
|
|
17
18
|
* @param client Reference to the service client
|
|
@@ -19,6 +20,138 @@ export class DigitalTwins {
|
|
|
19
20
|
constructor(client) {
|
|
20
21
|
this.client = client;
|
|
21
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Retrieves the relationships from a digital twin.
|
|
25
|
+
* Status codes:
|
|
26
|
+
* * 200 OK
|
|
27
|
+
* * 400 Bad Request
|
|
28
|
+
* * InvalidArgument - The digital twin id is invalid.
|
|
29
|
+
* * 404 Not Found
|
|
30
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
31
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
32
|
+
* @param options The options parameters.
|
|
33
|
+
*/
|
|
34
|
+
listRelationships(id, options) {
|
|
35
|
+
const iter = this.listRelationshipsPagingAll(id, options);
|
|
36
|
+
return {
|
|
37
|
+
next() {
|
|
38
|
+
return iter.next();
|
|
39
|
+
},
|
|
40
|
+
[Symbol.asyncIterator]() {
|
|
41
|
+
return this;
|
|
42
|
+
},
|
|
43
|
+
byPage: (settings) => {
|
|
44
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
45
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
|
+
}
|
|
47
|
+
return this.listRelationshipsPagingPage(id, options, settings);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
listRelationshipsPagingPage(id, options, settings) {
|
|
52
|
+
return __asyncGenerator(this, arguments, function* listRelationshipsPagingPage_1() {
|
|
53
|
+
let result;
|
|
54
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
55
|
+
if (!continuationToken) {
|
|
56
|
+
result = yield __await(this._listRelationships(id, options));
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
setContinuationToken(page, continuationToken);
|
|
60
|
+
yield yield __await(page);
|
|
61
|
+
}
|
|
62
|
+
while (continuationToken) {
|
|
63
|
+
result = yield __await(this._listRelationshipsNext(id, continuationToken, options));
|
|
64
|
+
continuationToken = result.nextLink;
|
|
65
|
+
let page = result.value || [];
|
|
66
|
+
setContinuationToken(page, continuationToken);
|
|
67
|
+
yield yield __await(page);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
listRelationshipsPagingAll(id, options) {
|
|
72
|
+
return __asyncGenerator(this, arguments, function* listRelationshipsPagingAll_1() {
|
|
73
|
+
var e_1, _a;
|
|
74
|
+
try {
|
|
75
|
+
for (var _b = __asyncValues(this.listRelationshipsPagingPage(id, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
76
|
+
const page = _c.value;
|
|
77
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
+
finally {
|
|
82
|
+
try {
|
|
83
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
84
|
+
}
|
|
85
|
+
finally { if (e_1) throw e_1.error; }
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Retrieves all incoming relationship for a digital twin.
|
|
91
|
+
* Status codes:
|
|
92
|
+
* * 200 OK
|
|
93
|
+
* * 400 Bad Request
|
|
94
|
+
* * InvalidArgument - The digital twin id is invalid.
|
|
95
|
+
* * 404 Not Found
|
|
96
|
+
* * DigitalTwinNotFound - The digital twin was not found.
|
|
97
|
+
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
98
|
+
* @param options The options parameters.
|
|
99
|
+
*/
|
|
100
|
+
listIncomingRelationships(id, options) {
|
|
101
|
+
const iter = this.listIncomingRelationshipsPagingAll(id, options);
|
|
102
|
+
return {
|
|
103
|
+
next() {
|
|
104
|
+
return iter.next();
|
|
105
|
+
},
|
|
106
|
+
[Symbol.asyncIterator]() {
|
|
107
|
+
return this;
|
|
108
|
+
},
|
|
109
|
+
byPage: (settings) => {
|
|
110
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
111
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
112
|
+
}
|
|
113
|
+
return this.listIncomingRelationshipsPagingPage(id, options, settings);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
listIncomingRelationshipsPagingPage(id, options, settings) {
|
|
118
|
+
return __asyncGenerator(this, arguments, function* listIncomingRelationshipsPagingPage_1() {
|
|
119
|
+
let result;
|
|
120
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
121
|
+
if (!continuationToken) {
|
|
122
|
+
result = yield __await(this._listIncomingRelationships(id, options));
|
|
123
|
+
let page = result.value || [];
|
|
124
|
+
continuationToken = result.nextLink;
|
|
125
|
+
setContinuationToken(page, continuationToken);
|
|
126
|
+
yield yield __await(page);
|
|
127
|
+
}
|
|
128
|
+
while (continuationToken) {
|
|
129
|
+
result = yield __await(this._listIncomingRelationshipsNext(id, continuationToken, options));
|
|
130
|
+
continuationToken = result.nextLink;
|
|
131
|
+
let page = result.value || [];
|
|
132
|
+
setContinuationToken(page, continuationToken);
|
|
133
|
+
yield yield __await(page);
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
listIncomingRelationshipsPagingAll(id, options) {
|
|
138
|
+
return __asyncGenerator(this, arguments, function* listIncomingRelationshipsPagingAll_1() {
|
|
139
|
+
var e_2, _a;
|
|
140
|
+
try {
|
|
141
|
+
for (var _b = __asyncValues(this.listIncomingRelationshipsPagingPage(id, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
142
|
+
const page = _c.value;
|
|
143
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
147
|
+
finally {
|
|
148
|
+
try {
|
|
149
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
150
|
+
}
|
|
151
|
+
finally { if (e_2) throw e_2.error; }
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}
|
|
22
155
|
/**
|
|
23
156
|
* Retrieves a digital twin.
|
|
24
157
|
* Status codes:
|
|
@@ -31,8 +164,7 @@ export class DigitalTwins {
|
|
|
31
164
|
* @param options The options parameters.
|
|
32
165
|
*/
|
|
33
166
|
getById(id, options) {
|
|
34
|
-
|
|
35
|
-
return this.client.sendOperationRequest({ id, options: operationOptions }, getByIdOperationSpec);
|
|
167
|
+
return this.client.sendOperationRequest({ id, options }, getByIdOperationSpec);
|
|
36
168
|
}
|
|
37
169
|
/**
|
|
38
170
|
* Adds or replaces a digital twin.
|
|
@@ -50,8 +182,7 @@ export class DigitalTwins {
|
|
|
50
182
|
* @param options The options parameters.
|
|
51
183
|
*/
|
|
52
184
|
add(id, twin, options) {
|
|
53
|
-
|
|
54
|
-
return this.client.sendOperationRequest({ id, twin, options: operationOptions }, addOperationSpec);
|
|
185
|
+
return this.client.sendOperationRequest({ id, twin, options }, addOperationSpec);
|
|
55
186
|
}
|
|
56
187
|
/**
|
|
57
188
|
* Deletes a digital twin. All relationships referencing the digital twin must already be deleted.
|
|
@@ -68,8 +199,7 @@ export class DigitalTwins {
|
|
|
68
199
|
* @param options The options parameters.
|
|
69
200
|
*/
|
|
70
201
|
delete(id, options) {
|
|
71
|
-
|
|
72
|
-
return this.client.sendOperationRequest({ id, options: operationOptions }, deleteOperationSpec);
|
|
202
|
+
return this.client.sendOperationRequest({ id, options }, deleteOperationSpec);
|
|
73
203
|
}
|
|
74
204
|
/**
|
|
75
205
|
* Updates a digital twin.
|
|
@@ -89,8 +219,7 @@ export class DigitalTwins {
|
|
|
89
219
|
* @param options The options parameters.
|
|
90
220
|
*/
|
|
91
221
|
update(id, patchDocument, options) {
|
|
92
|
-
|
|
93
|
-
return this.client.sendOperationRequest({ id, patchDocument, options: operationOptions }, updateOperationSpec);
|
|
222
|
+
return this.client.sendOperationRequest({ id, patchDocument, options }, updateOperationSpec);
|
|
94
223
|
}
|
|
95
224
|
/**
|
|
96
225
|
* Retrieves a relationship between two digital twins.
|
|
@@ -107,8 +236,7 @@ export class DigitalTwins {
|
|
|
107
236
|
* @param options The options parameters.
|
|
108
237
|
*/
|
|
109
238
|
getRelationshipById(id, relationshipId, options) {
|
|
110
|
-
|
|
111
|
-
return this.client.sendOperationRequest({ id, relationshipId, options: operationOptions }, getRelationshipByIdOperationSpec);
|
|
239
|
+
return this.client.sendOperationRequest({ id, relationshipId, options }, getRelationshipByIdOperationSpec);
|
|
112
240
|
}
|
|
113
241
|
/**
|
|
114
242
|
* Adds a relationship between two digital twins.
|
|
@@ -131,8 +259,7 @@ export class DigitalTwins {
|
|
|
131
259
|
* @param options The options parameters.
|
|
132
260
|
*/
|
|
133
261
|
addRelationship(id, relationshipId, relationship, options) {
|
|
134
|
-
|
|
135
|
-
return this.client.sendOperationRequest({ id, relationshipId, relationship, options: operationOptions }, addRelationshipOperationSpec);
|
|
262
|
+
return this.client.sendOperationRequest({ id, relationshipId, relationship, options }, addRelationshipOperationSpec);
|
|
136
263
|
}
|
|
137
264
|
/**
|
|
138
265
|
* Deletes a relationship between two digital twins.
|
|
@@ -151,8 +278,7 @@ export class DigitalTwins {
|
|
|
151
278
|
* @param options The options parameters.
|
|
152
279
|
*/
|
|
153
280
|
deleteRelationship(id, relationshipId, options) {
|
|
154
|
-
|
|
155
|
-
return this.client.sendOperationRequest({ id, relationshipId, options: operationOptions }, deleteRelationshipOperationSpec);
|
|
281
|
+
return this.client.sendOperationRequest({ id, relationshipId, options }, deleteRelationshipOperationSpec);
|
|
156
282
|
}
|
|
157
283
|
/**
|
|
158
284
|
* Updates the properties on a relationship between two digital twins.
|
|
@@ -177,8 +303,7 @@ export class DigitalTwins {
|
|
|
177
303
|
* @param options The options parameters.
|
|
178
304
|
*/
|
|
179
305
|
updateRelationship(id, relationshipId, patchDocument, options) {
|
|
180
|
-
|
|
181
|
-
return this.client.sendOperationRequest({ id, relationshipId, patchDocument, options: operationOptions }, updateRelationshipOperationSpec);
|
|
306
|
+
return this.client.sendOperationRequest({ id, relationshipId, patchDocument, options }, updateRelationshipOperationSpec);
|
|
182
307
|
}
|
|
183
308
|
/**
|
|
184
309
|
* Retrieves the relationships from a digital twin.
|
|
@@ -191,9 +316,8 @@ export class DigitalTwins {
|
|
|
191
316
|
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
192
317
|
* @param options The options parameters.
|
|
193
318
|
*/
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
return this.client.sendOperationRequest({ id, options: operationOptions }, listRelationshipsOperationSpec);
|
|
319
|
+
_listRelationships(id, options) {
|
|
320
|
+
return this.client.sendOperationRequest({ id, options }, listRelationshipsOperationSpec);
|
|
197
321
|
}
|
|
198
322
|
/**
|
|
199
323
|
* Retrieves all incoming relationship for a digital twin.
|
|
@@ -206,9 +330,8 @@ export class DigitalTwins {
|
|
|
206
330
|
* @param id The id of the digital twin. The id is unique within the service and case sensitive.
|
|
207
331
|
* @param options The options parameters.
|
|
208
332
|
*/
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
return this.client.sendOperationRequest({ id, options: operationOptions }, listIncomingRelationshipsOperationSpec);
|
|
333
|
+
_listIncomingRelationships(id, options) {
|
|
334
|
+
return this.client.sendOperationRequest({ id, options }, listIncomingRelationshipsOperationSpec);
|
|
212
335
|
}
|
|
213
336
|
/**
|
|
214
337
|
* Sends telemetry on behalf of a digital twin.
|
|
@@ -226,8 +349,7 @@ export class DigitalTwins {
|
|
|
226
349
|
* @param options The options parameters.
|
|
227
350
|
*/
|
|
228
351
|
sendTelemetry(id, messageId, telemetry, options) {
|
|
229
|
-
|
|
230
|
-
return this.client.sendOperationRequest({ id, messageId, telemetry, options: operationOptions }, sendTelemetryOperationSpec);
|
|
352
|
+
return this.client.sendOperationRequest({ id, messageId, telemetry, options }, sendTelemetryOperationSpec);
|
|
231
353
|
}
|
|
232
354
|
/**
|
|
233
355
|
* Sends telemetry on behalf of a component in a digital twin.
|
|
@@ -247,8 +369,7 @@ export class DigitalTwins {
|
|
|
247
369
|
* @param options The options parameters.
|
|
248
370
|
*/
|
|
249
371
|
sendComponentTelemetry(id, componentPath, messageId, telemetry, options) {
|
|
250
|
-
|
|
251
|
-
return this.client.sendOperationRequest({ id, componentPath, messageId, telemetry, options: operationOptions }, sendComponentTelemetryOperationSpec);
|
|
372
|
+
return this.client.sendOperationRequest({ id, componentPath, messageId, telemetry, options }, sendComponentTelemetryOperationSpec);
|
|
252
373
|
}
|
|
253
374
|
/**
|
|
254
375
|
* Retrieves a component from a digital twin.
|
|
@@ -264,8 +385,7 @@ export class DigitalTwins {
|
|
|
264
385
|
* @param options The options parameters.
|
|
265
386
|
*/
|
|
266
387
|
getComponent(id, componentPath, options) {
|
|
267
|
-
|
|
268
|
-
return this.client.sendOperationRequest({ id, componentPath, options: operationOptions }, getComponentOperationSpec);
|
|
388
|
+
return this.client.sendOperationRequest({ id, componentPath, options }, getComponentOperationSpec);
|
|
269
389
|
}
|
|
270
390
|
/**
|
|
271
391
|
* Updates a component on a digital twin.
|
|
@@ -286,8 +406,7 @@ export class DigitalTwins {
|
|
|
286
406
|
* @param options The options parameters.
|
|
287
407
|
*/
|
|
288
408
|
updateComponent(id, componentPath, patchDocument, options) {
|
|
289
|
-
|
|
290
|
-
return this.client.sendOperationRequest({ id, componentPath, patchDocument, options: operationOptions }, updateComponentOperationSpec);
|
|
409
|
+
return this.client.sendOperationRequest({ id, componentPath, patchDocument, options }, updateComponentOperationSpec);
|
|
291
410
|
}
|
|
292
411
|
/**
|
|
293
412
|
* ListRelationshipsNext
|
|
@@ -295,9 +414,8 @@ export class DigitalTwins {
|
|
|
295
414
|
* @param nextLink The nextLink from the previous successful call to the ListRelationships method.
|
|
296
415
|
* @param options The options parameters.
|
|
297
416
|
*/
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
return this.client.sendOperationRequest({ id, nextLink, options: operationOptions }, listRelationshipsNextOperationSpec);
|
|
417
|
+
_listRelationshipsNext(id, nextLink, options) {
|
|
418
|
+
return this.client.sendOperationRequest({ id, nextLink, options }, listRelationshipsNextOperationSpec);
|
|
301
419
|
}
|
|
302
420
|
/**
|
|
303
421
|
* ListIncomingRelationshipsNext
|
|
@@ -306,19 +424,20 @@ export class DigitalTwins {
|
|
|
306
424
|
* method.
|
|
307
425
|
* @param options The options parameters.
|
|
308
426
|
*/
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
return this.client.sendOperationRequest({ id, nextLink, options: operationOptions }, listIncomingRelationshipsNextOperationSpec);
|
|
427
|
+
_listIncomingRelationshipsNext(id, nextLink, options) {
|
|
428
|
+
return this.client.sendOperationRequest({ id, nextLink, options }, listIncomingRelationshipsNextOperationSpec);
|
|
312
429
|
}
|
|
313
430
|
}
|
|
314
431
|
// Operation Specifications
|
|
315
|
-
const serializer =
|
|
432
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
316
433
|
const getByIdOperationSpec = {
|
|
317
434
|
path: "/digitaltwins/{id}",
|
|
318
435
|
httpMethod: "GET",
|
|
319
436
|
responses: {
|
|
320
437
|
200: {
|
|
321
|
-
bodyMapper: {
|
|
438
|
+
bodyMapper: {
|
|
439
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
440
|
+
},
|
|
322
441
|
headersMapper: Mappers.DigitalTwinsGetByIdHeaders
|
|
323
442
|
},
|
|
324
443
|
default: {
|
|
@@ -327,7 +446,7 @@ const getByIdOperationSpec = {
|
|
|
327
446
|
},
|
|
328
447
|
queryParameters: [Parameters.apiVersion],
|
|
329
448
|
urlParameters: [Parameters.$host, Parameters.id],
|
|
330
|
-
headerParameters: [Parameters.
|
|
449
|
+
headerParameters: [Parameters.accept],
|
|
331
450
|
serializer
|
|
332
451
|
};
|
|
333
452
|
const addOperationSpec = {
|
|
@@ -335,7 +454,9 @@ const addOperationSpec = {
|
|
|
335
454
|
httpMethod: "PUT",
|
|
336
455
|
responses: {
|
|
337
456
|
200: {
|
|
338
|
-
bodyMapper: {
|
|
457
|
+
bodyMapper: {
|
|
458
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
459
|
+
},
|
|
339
460
|
headersMapper: Mappers.DigitalTwinsAddHeaders
|
|
340
461
|
},
|
|
341
462
|
202: {},
|
|
@@ -348,8 +469,7 @@ const addOperationSpec = {
|
|
|
348
469
|
urlParameters: [Parameters.$host, Parameters.id],
|
|
349
470
|
headerParameters: [
|
|
350
471
|
Parameters.contentType,
|
|
351
|
-
Parameters.
|
|
352
|
-
Parameters.tracestate,
|
|
472
|
+
Parameters.accept,
|
|
353
473
|
Parameters.ifNoneMatch
|
|
354
474
|
],
|
|
355
475
|
mediaType: "json",
|
|
@@ -366,11 +486,7 @@ const deleteOperationSpec = {
|
|
|
366
486
|
},
|
|
367
487
|
queryParameters: [Parameters.apiVersion],
|
|
368
488
|
urlParameters: [Parameters.$host, Parameters.id],
|
|
369
|
-
headerParameters: [
|
|
370
|
-
Parameters.traceparent,
|
|
371
|
-
Parameters.tracestate,
|
|
372
|
-
Parameters.ifMatch
|
|
373
|
-
],
|
|
489
|
+
headerParameters: [Parameters.accept, Parameters.ifMatch],
|
|
374
490
|
serializer
|
|
375
491
|
};
|
|
376
492
|
const updateOperationSpec = {
|
|
@@ -389,8 +505,7 @@ const updateOperationSpec = {
|
|
|
389
505
|
queryParameters: [Parameters.apiVersion],
|
|
390
506
|
urlParameters: [Parameters.$host, Parameters.id],
|
|
391
507
|
headerParameters: [
|
|
392
|
-
Parameters.
|
|
393
|
-
Parameters.tracestate,
|
|
508
|
+
Parameters.accept,
|
|
394
509
|
Parameters.contentType1,
|
|
395
510
|
Parameters.ifMatch
|
|
396
511
|
],
|
|
@@ -402,7 +517,9 @@ const getRelationshipByIdOperationSpec = {
|
|
|
402
517
|
httpMethod: "GET",
|
|
403
518
|
responses: {
|
|
404
519
|
200: {
|
|
405
|
-
bodyMapper: {
|
|
520
|
+
bodyMapper: {
|
|
521
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
522
|
+
},
|
|
406
523
|
headersMapper: Mappers.DigitalTwinsGetRelationshipByIdHeaders
|
|
407
524
|
},
|
|
408
525
|
default: {
|
|
@@ -411,7 +528,7 @@ const getRelationshipByIdOperationSpec = {
|
|
|
411
528
|
},
|
|
412
529
|
queryParameters: [Parameters.apiVersion],
|
|
413
530
|
urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],
|
|
414
|
-
headerParameters: [Parameters.
|
|
531
|
+
headerParameters: [Parameters.accept],
|
|
415
532
|
serializer
|
|
416
533
|
};
|
|
417
534
|
const addRelationshipOperationSpec = {
|
|
@@ -419,7 +536,9 @@ const addRelationshipOperationSpec = {
|
|
|
419
536
|
httpMethod: "PUT",
|
|
420
537
|
responses: {
|
|
421
538
|
200: {
|
|
422
|
-
bodyMapper: {
|
|
539
|
+
bodyMapper: {
|
|
540
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
541
|
+
},
|
|
423
542
|
headersMapper: Mappers.DigitalTwinsAddRelationshipHeaders
|
|
424
543
|
},
|
|
425
544
|
default: {
|
|
@@ -431,8 +550,7 @@ const addRelationshipOperationSpec = {
|
|
|
431
550
|
urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],
|
|
432
551
|
headerParameters: [
|
|
433
552
|
Parameters.contentType,
|
|
434
|
-
Parameters.
|
|
435
|
-
Parameters.tracestate,
|
|
553
|
+
Parameters.accept,
|
|
436
554
|
Parameters.ifNoneMatch
|
|
437
555
|
],
|
|
438
556
|
mediaType: "json",
|
|
@@ -449,11 +567,7 @@ const deleteRelationshipOperationSpec = {
|
|
|
449
567
|
},
|
|
450
568
|
queryParameters: [Parameters.apiVersion],
|
|
451
569
|
urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],
|
|
452
|
-
headerParameters: [
|
|
453
|
-
Parameters.traceparent,
|
|
454
|
-
Parameters.tracestate,
|
|
455
|
-
Parameters.ifMatch
|
|
456
|
-
],
|
|
570
|
+
headerParameters: [Parameters.accept, Parameters.ifMatch],
|
|
457
571
|
serializer
|
|
458
572
|
};
|
|
459
573
|
const updateRelationshipOperationSpec = {
|
|
@@ -471,8 +585,7 @@ const updateRelationshipOperationSpec = {
|
|
|
471
585
|
queryParameters: [Parameters.apiVersion],
|
|
472
586
|
urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],
|
|
473
587
|
headerParameters: [
|
|
474
|
-
Parameters.
|
|
475
|
-
Parameters.tracestate,
|
|
588
|
+
Parameters.accept,
|
|
476
589
|
Parameters.contentType1,
|
|
477
590
|
Parameters.ifMatch
|
|
478
591
|
],
|
|
@@ -492,7 +605,7 @@ const listRelationshipsOperationSpec = {
|
|
|
492
605
|
},
|
|
493
606
|
queryParameters: [Parameters.apiVersion, Parameters.relationshipName],
|
|
494
607
|
urlParameters: [Parameters.$host, Parameters.id],
|
|
495
|
-
headerParameters: [Parameters.
|
|
608
|
+
headerParameters: [Parameters.accept],
|
|
496
609
|
serializer
|
|
497
610
|
};
|
|
498
611
|
const listIncomingRelationshipsOperationSpec = {
|
|
@@ -508,7 +621,7 @@ const listIncomingRelationshipsOperationSpec = {
|
|
|
508
621
|
},
|
|
509
622
|
queryParameters: [Parameters.apiVersion],
|
|
510
623
|
urlParameters: [Parameters.$host, Parameters.id],
|
|
511
|
-
headerParameters: [Parameters.
|
|
624
|
+
headerParameters: [Parameters.accept],
|
|
512
625
|
serializer
|
|
513
626
|
};
|
|
514
627
|
const sendTelemetryOperationSpec = {
|
|
@@ -525,8 +638,7 @@ const sendTelemetryOperationSpec = {
|
|
|
525
638
|
urlParameters: [Parameters.$host, Parameters.id],
|
|
526
639
|
headerParameters: [
|
|
527
640
|
Parameters.contentType,
|
|
528
|
-
Parameters.
|
|
529
|
-
Parameters.tracestate,
|
|
641
|
+
Parameters.accept,
|
|
530
642
|
Parameters.messageId,
|
|
531
643
|
Parameters.telemetrySourceTime
|
|
532
644
|
],
|
|
@@ -547,8 +659,7 @@ const sendComponentTelemetryOperationSpec = {
|
|
|
547
659
|
urlParameters: [Parameters.$host, Parameters.id, Parameters.componentPath],
|
|
548
660
|
headerParameters: [
|
|
549
661
|
Parameters.contentType,
|
|
550
|
-
Parameters.
|
|
551
|
-
Parameters.tracestate,
|
|
662
|
+
Parameters.accept,
|
|
552
663
|
Parameters.messageId,
|
|
553
664
|
Parameters.telemetrySourceTime
|
|
554
665
|
],
|
|
@@ -560,7 +671,9 @@ const getComponentOperationSpec = {
|
|
|
560
671
|
httpMethod: "GET",
|
|
561
672
|
responses: {
|
|
562
673
|
200: {
|
|
563
|
-
bodyMapper: {
|
|
674
|
+
bodyMapper: {
|
|
675
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
676
|
+
},
|
|
564
677
|
headersMapper: Mappers.DigitalTwinsGetComponentHeaders
|
|
565
678
|
},
|
|
566
679
|
default: {
|
|
@@ -569,7 +682,7 @@ const getComponentOperationSpec = {
|
|
|
569
682
|
},
|
|
570
683
|
queryParameters: [Parameters.apiVersion],
|
|
571
684
|
urlParameters: [Parameters.$host, Parameters.id, Parameters.componentPath],
|
|
572
|
-
headerParameters: [Parameters.
|
|
685
|
+
headerParameters: [Parameters.accept],
|
|
573
686
|
serializer
|
|
574
687
|
};
|
|
575
688
|
const updateComponentOperationSpec = {
|
|
@@ -588,8 +701,7 @@ const updateComponentOperationSpec = {
|
|
|
588
701
|
queryParameters: [Parameters.apiVersion],
|
|
589
702
|
urlParameters: [Parameters.$host, Parameters.id, Parameters.componentPath],
|
|
590
703
|
headerParameters: [
|
|
591
|
-
Parameters.
|
|
592
|
-
Parameters.tracestate,
|
|
704
|
+
Parameters.accept,
|
|
593
705
|
Parameters.contentType1,
|
|
594
706
|
Parameters.ifMatch
|
|
595
707
|
],
|
|
@@ -607,9 +719,8 @@ const listRelationshipsNextOperationSpec = {
|
|
|
607
719
|
bodyMapper: Mappers.ErrorResponse
|
|
608
720
|
}
|
|
609
721
|
},
|
|
610
|
-
queryParameters: [Parameters.apiVersion, Parameters.relationshipName],
|
|
611
722
|
urlParameters: [Parameters.$host, Parameters.id, Parameters.nextLink],
|
|
612
|
-
headerParameters: [Parameters.
|
|
723
|
+
headerParameters: [Parameters.accept],
|
|
613
724
|
serializer
|
|
614
725
|
};
|
|
615
726
|
const listIncomingRelationshipsNextOperationSpec = {
|
|
@@ -623,9 +734,8 @@ const listIncomingRelationshipsNextOperationSpec = {
|
|
|
623
734
|
bodyMapper: Mappers.ErrorResponse
|
|
624
735
|
}
|
|
625
736
|
},
|
|
626
|
-
queryParameters: [Parameters.apiVersion],
|
|
627
737
|
urlParameters: [Parameters.$host, Parameters.id, Parameters.nextLink],
|
|
628
|
-
headerParameters: [Parameters.
|
|
738
|
+
headerParameters: [Parameters.accept],
|
|
629
739
|
serializer
|
|
630
740
|
};
|
|
631
741
|
//# sourceMappingURL=digitalTwins.js.map
|