@azure/arm-deviceprovisioningservices 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/LICENSE.txt +21 -0
- package/README.md +106 -0
- package/dist/arm-deviceprovisioningservices.js +2869 -0
- package/dist/arm-deviceprovisioningservices.js.map +1 -0
- package/dist/arm-deviceprovisioningservices.min.js +1 -0
- package/dist/arm-deviceprovisioningservices.min.js.map +1 -0
- package/esm/iotDpsClient.d.ts +26 -0
- package/esm/iotDpsClient.d.ts.map +1 -0
- package/esm/iotDpsClient.js +39 -0
- package/esm/iotDpsClient.js.map +1 -0
- package/esm/iotDpsClientContext.d.ts +22 -0
- package/esm/iotDpsClientContext.d.ts.map +1 -0
- package/esm/iotDpsClientContext.js +60 -0
- package/esm/iotDpsClientContext.js.map +1 -0
- package/esm/models/dpsCertificateMappers.d.ts +2 -0
- package/esm/models/dpsCertificateMappers.d.ts.map +1 -0
- package/esm/models/dpsCertificateMappers.js +9 -0
- package/esm/models/dpsCertificateMappers.js.map +1 -0
- package/esm/models/index.d.ts +1433 -0
- package/esm/models/index.d.ts.map +1 -0
- package/esm/models/index.js +8 -0
- package/esm/models/index.js.map +1 -0
- package/esm/models/iotDpsResourceMappers.d.ts +2 -0
- package/esm/models/iotDpsResourceMappers.d.ts.map +1 -0
- package/esm/models/iotDpsResourceMappers.js +9 -0
- package/esm/models/iotDpsResourceMappers.js.map +1 -0
- package/esm/models/mappers.d.ts +38 -0
- package/esm/models/mappers.d.ts.map +1 -0
- package/esm/models/mappers.js +1141 -0
- package/esm/models/mappers.js.map +1 -0
- package/esm/models/operationsMappers.d.ts +2 -0
- package/esm/models/operationsMappers.d.ts.map +1 -0
- package/esm/models/operationsMappers.js +9 -0
- package/esm/models/operationsMappers.js.map +1 -0
- package/esm/models/parameters.d.ts +26 -0
- package/esm/models/parameters.d.ts.map +1 -0
- package/esm/models/parameters.js +272 -0
- package/esm/models/parameters.js.map +1 -0
- package/esm/operations/dpsCertificate.d.ts +188 -0
- package/esm/operations/dpsCertificate.d.ts.map +1 -0
- package/esm/operations/dpsCertificate.js +264 -0
- package/esm/operations/dpsCertificate.js.map +1 -0
- package/esm/operations/index.d.ts +4 -0
- package/esm/operations/index.d.ts.map +1 -0
- package/esm/operations/index.js +12 -0
- package/esm/operations/index.js.map +1 -0
- package/esm/operations/iotDpsResource.d.ts +473 -0
- package/esm/operations/iotDpsResource.d.ts.map +1 -0
- package/esm/operations/iotDpsResource.js +834 -0
- package/esm/operations/iotDpsResource.js.map +1 -0
- package/esm/operations/operations.d.ts +46 -0
- package/esm/operations/operations.d.ts.map +1 -0
- package/esm/operations/operations.js +79 -0
- package/esm/operations/operations.js.map +1 -0
- package/package.json +59 -0
- package/rollup.config.js +37 -0
- package/src/iotDpsClient.ts +51 -0
- package/src/iotDpsClientContext.ts +67 -0
- package/src/models/dpsCertificateMappers.ts +30 -0
- package/src/models/index.ts +1549 -0
- package/src/models/iotDpsResourceMappers.ts +40 -0
- package/src/models/mappers.ts +1181 -0
- package/src/models/operationsMappers.ts +14 -0
- package/src/models/parameters.ts +274 -0
- package/src/operations/dpsCertificate.ts +477 -0
- package/src/operations/index.ts +12 -0
- package/src/operations/iotDpsResource.ts +1310 -0
- package/src/operations/operations.ts +125 -0
- package/tsconfig.json +19 -0
|
@@ -0,0 +1,2869 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
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.ArmDeviceprovisioningservices = {}), 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.
|
|
56
|
+
* Licensed under the MIT License.
|
|
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.
|
|
68
|
+
* Licensed under the MIT License.
|
|
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 ErrorMesssage = {
|
|
76
|
+
serializedName: "ErrorMesssage",
|
|
77
|
+
type: {
|
|
78
|
+
name: "Composite",
|
|
79
|
+
className: "ErrorMesssage",
|
|
80
|
+
modelProperties: {
|
|
81
|
+
code: {
|
|
82
|
+
serializedName: "code",
|
|
83
|
+
type: {
|
|
84
|
+
name: "String"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
message: {
|
|
88
|
+
serializedName: "message",
|
|
89
|
+
type: {
|
|
90
|
+
name: "String"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
details: {
|
|
94
|
+
serializedName: "details",
|
|
95
|
+
type: {
|
|
96
|
+
name: "String"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
var AsyncOperationResult = {
|
|
103
|
+
serializedName: "AsyncOperationResult",
|
|
104
|
+
type: {
|
|
105
|
+
name: "Composite",
|
|
106
|
+
className: "AsyncOperationResult",
|
|
107
|
+
modelProperties: {
|
|
108
|
+
status: {
|
|
109
|
+
serializedName: "status",
|
|
110
|
+
type: {
|
|
111
|
+
name: "String"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
error: {
|
|
115
|
+
serializedName: "error",
|
|
116
|
+
type: {
|
|
117
|
+
name: "Composite",
|
|
118
|
+
className: "ErrorMesssage"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
var CertificateProperties = {
|
|
125
|
+
serializedName: "CertificateProperties",
|
|
126
|
+
type: {
|
|
127
|
+
name: "Composite",
|
|
128
|
+
className: "CertificateProperties",
|
|
129
|
+
modelProperties: {
|
|
130
|
+
subject: {
|
|
131
|
+
readOnly: true,
|
|
132
|
+
serializedName: "subject",
|
|
133
|
+
type: {
|
|
134
|
+
name: "String"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
expiry: {
|
|
138
|
+
readOnly: true,
|
|
139
|
+
serializedName: "expiry",
|
|
140
|
+
type: {
|
|
141
|
+
name: "DateTimeRfc1123"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
thumbprint: {
|
|
145
|
+
readOnly: true,
|
|
146
|
+
serializedName: "thumbprint",
|
|
147
|
+
type: {
|
|
148
|
+
name: "String"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
isVerified: {
|
|
152
|
+
readOnly: true,
|
|
153
|
+
serializedName: "isVerified",
|
|
154
|
+
type: {
|
|
155
|
+
name: "Boolean"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
certificate: {
|
|
159
|
+
readOnly: true,
|
|
160
|
+
serializedName: "certificate",
|
|
161
|
+
type: {
|
|
162
|
+
name: "ByteArray"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
created: {
|
|
166
|
+
readOnly: true,
|
|
167
|
+
serializedName: "created",
|
|
168
|
+
type: {
|
|
169
|
+
name: "DateTimeRfc1123"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
updated: {
|
|
173
|
+
readOnly: true,
|
|
174
|
+
serializedName: "updated",
|
|
175
|
+
type: {
|
|
176
|
+
name: "DateTimeRfc1123"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
var CertificateResponse = {
|
|
183
|
+
serializedName: "CertificateResponse",
|
|
184
|
+
type: {
|
|
185
|
+
name: "Composite",
|
|
186
|
+
className: "CertificateResponse",
|
|
187
|
+
modelProperties: {
|
|
188
|
+
properties: {
|
|
189
|
+
serializedName: "properties",
|
|
190
|
+
type: {
|
|
191
|
+
name: "Composite",
|
|
192
|
+
className: "CertificateProperties"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
id: {
|
|
196
|
+
readOnly: true,
|
|
197
|
+
serializedName: "id",
|
|
198
|
+
type: {
|
|
199
|
+
name: "String"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
name: {
|
|
203
|
+
readOnly: true,
|
|
204
|
+
serializedName: "name",
|
|
205
|
+
type: {
|
|
206
|
+
name: "String"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
etag: {
|
|
210
|
+
readOnly: true,
|
|
211
|
+
serializedName: "etag",
|
|
212
|
+
type: {
|
|
213
|
+
name: "String"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
type: {
|
|
217
|
+
readOnly: true,
|
|
218
|
+
serializedName: "type",
|
|
219
|
+
type: {
|
|
220
|
+
name: "String"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
var CertificateListDescription = {
|
|
227
|
+
serializedName: "CertificateListDescription",
|
|
228
|
+
type: {
|
|
229
|
+
name: "Composite",
|
|
230
|
+
className: "CertificateListDescription",
|
|
231
|
+
modelProperties: {
|
|
232
|
+
value: {
|
|
233
|
+
serializedName: "value",
|
|
234
|
+
type: {
|
|
235
|
+
name: "Sequence",
|
|
236
|
+
element: {
|
|
237
|
+
type: {
|
|
238
|
+
name: "Composite",
|
|
239
|
+
className: "CertificateResponse"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
var CertificateBodyDescription = {
|
|
248
|
+
serializedName: "CertificateBodyDescription",
|
|
249
|
+
type: {
|
|
250
|
+
name: "Composite",
|
|
251
|
+
className: "CertificateBodyDescription",
|
|
252
|
+
modelProperties: {
|
|
253
|
+
certificate: {
|
|
254
|
+
serializedName: "certificate",
|
|
255
|
+
type: {
|
|
256
|
+
name: "String"
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
isVerified: {
|
|
260
|
+
serializedName: "isVerified",
|
|
261
|
+
type: {
|
|
262
|
+
name: "Boolean"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
var IotDpsSkuInfo = {
|
|
269
|
+
serializedName: "IotDpsSkuInfo",
|
|
270
|
+
type: {
|
|
271
|
+
name: "Composite",
|
|
272
|
+
className: "IotDpsSkuInfo",
|
|
273
|
+
modelProperties: {
|
|
274
|
+
name: {
|
|
275
|
+
serializedName: "name",
|
|
276
|
+
type: {
|
|
277
|
+
name: "String"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
tier: {
|
|
281
|
+
readOnly: true,
|
|
282
|
+
serializedName: "tier",
|
|
283
|
+
type: {
|
|
284
|
+
name: "String"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
capacity: {
|
|
288
|
+
serializedName: "capacity",
|
|
289
|
+
type: {
|
|
290
|
+
name: "Number"
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
var IpFilterRule = {
|
|
297
|
+
serializedName: "IpFilterRule",
|
|
298
|
+
type: {
|
|
299
|
+
name: "Composite",
|
|
300
|
+
className: "IpFilterRule",
|
|
301
|
+
modelProperties: {
|
|
302
|
+
filterName: {
|
|
303
|
+
required: true,
|
|
304
|
+
serializedName: "filterName",
|
|
305
|
+
type: {
|
|
306
|
+
name: "String"
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
action: {
|
|
310
|
+
required: true,
|
|
311
|
+
serializedName: "action",
|
|
312
|
+
type: {
|
|
313
|
+
name: "Enum",
|
|
314
|
+
allowedValues: [
|
|
315
|
+
"Accept",
|
|
316
|
+
"Reject"
|
|
317
|
+
]
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
ipMask: {
|
|
321
|
+
required: true,
|
|
322
|
+
serializedName: "ipMask",
|
|
323
|
+
type: {
|
|
324
|
+
name: "String"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
target: {
|
|
328
|
+
serializedName: "target",
|
|
329
|
+
type: {
|
|
330
|
+
name: "Enum",
|
|
331
|
+
allowedValues: [
|
|
332
|
+
"all",
|
|
333
|
+
"serviceApi",
|
|
334
|
+
"deviceApi"
|
|
335
|
+
]
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
var PrivateEndpoint = {
|
|
342
|
+
serializedName: "PrivateEndpoint",
|
|
343
|
+
type: {
|
|
344
|
+
name: "Composite",
|
|
345
|
+
className: "PrivateEndpoint",
|
|
346
|
+
modelProperties: {
|
|
347
|
+
id: {
|
|
348
|
+
readOnly: true,
|
|
349
|
+
serializedName: "id",
|
|
350
|
+
type: {
|
|
351
|
+
name: "String"
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
var PrivateLinkServiceConnectionState = {
|
|
358
|
+
serializedName: "PrivateLinkServiceConnectionState",
|
|
359
|
+
type: {
|
|
360
|
+
name: "Composite",
|
|
361
|
+
className: "PrivateLinkServiceConnectionState",
|
|
362
|
+
modelProperties: {
|
|
363
|
+
status: {
|
|
364
|
+
required: true,
|
|
365
|
+
serializedName: "status",
|
|
366
|
+
type: {
|
|
367
|
+
name: "String"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
description: {
|
|
371
|
+
required: true,
|
|
372
|
+
serializedName: "description",
|
|
373
|
+
type: {
|
|
374
|
+
name: "String"
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
actionsRequired: {
|
|
378
|
+
serializedName: "actionsRequired",
|
|
379
|
+
type: {
|
|
380
|
+
name: "String"
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
var PrivateEndpointConnectionProperties = {
|
|
387
|
+
serializedName: "PrivateEndpointConnectionProperties",
|
|
388
|
+
type: {
|
|
389
|
+
name: "Composite",
|
|
390
|
+
className: "PrivateEndpointConnectionProperties",
|
|
391
|
+
modelProperties: {
|
|
392
|
+
privateEndpoint: {
|
|
393
|
+
serializedName: "privateEndpoint",
|
|
394
|
+
type: {
|
|
395
|
+
name: "Composite",
|
|
396
|
+
className: "PrivateEndpoint"
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
privateLinkServiceConnectionState: {
|
|
400
|
+
required: true,
|
|
401
|
+
serializedName: "privateLinkServiceConnectionState",
|
|
402
|
+
type: {
|
|
403
|
+
name: "Composite",
|
|
404
|
+
className: "PrivateLinkServiceConnectionState"
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
};
|
|
410
|
+
var PrivateEndpointConnection = {
|
|
411
|
+
serializedName: "PrivateEndpointConnection",
|
|
412
|
+
type: {
|
|
413
|
+
name: "Composite",
|
|
414
|
+
className: "PrivateEndpointConnection",
|
|
415
|
+
modelProperties: {
|
|
416
|
+
id: {
|
|
417
|
+
readOnly: true,
|
|
418
|
+
serializedName: "id",
|
|
419
|
+
type: {
|
|
420
|
+
name: "String"
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
name: {
|
|
424
|
+
readOnly: true,
|
|
425
|
+
serializedName: "name",
|
|
426
|
+
constraints: {
|
|
427
|
+
Pattern: /^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$/
|
|
428
|
+
},
|
|
429
|
+
type: {
|
|
430
|
+
name: "String"
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
type: {
|
|
434
|
+
readOnly: true,
|
|
435
|
+
serializedName: "type",
|
|
436
|
+
type: {
|
|
437
|
+
name: "String"
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
properties: {
|
|
441
|
+
required: true,
|
|
442
|
+
serializedName: "properties",
|
|
443
|
+
type: {
|
|
444
|
+
name: "Composite",
|
|
445
|
+
className: "PrivateEndpointConnectionProperties"
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
};
|
|
451
|
+
var IotHubDefinitionDescription = {
|
|
452
|
+
serializedName: "IotHubDefinitionDescription",
|
|
453
|
+
type: {
|
|
454
|
+
name: "Composite",
|
|
455
|
+
className: "IotHubDefinitionDescription",
|
|
456
|
+
modelProperties: {
|
|
457
|
+
applyAllocationPolicy: {
|
|
458
|
+
serializedName: "applyAllocationPolicy",
|
|
459
|
+
type: {
|
|
460
|
+
name: "Boolean"
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
allocationWeight: {
|
|
464
|
+
serializedName: "allocationWeight",
|
|
465
|
+
type: {
|
|
466
|
+
name: "Number"
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
name: {
|
|
470
|
+
readOnly: true,
|
|
471
|
+
serializedName: "name",
|
|
472
|
+
type: {
|
|
473
|
+
name: "String"
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
connectionString: {
|
|
477
|
+
required: true,
|
|
478
|
+
serializedName: "connectionString",
|
|
479
|
+
type: {
|
|
480
|
+
name: "String"
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
location: {
|
|
484
|
+
required: true,
|
|
485
|
+
serializedName: "location",
|
|
486
|
+
type: {
|
|
487
|
+
name: "String"
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
};
|
|
493
|
+
var SharedAccessSignatureAuthorizationRuleAccessRightsDescription = {
|
|
494
|
+
serializedName: "SharedAccessSignatureAuthorizationRule_AccessRightsDescription_",
|
|
495
|
+
type: {
|
|
496
|
+
name: "Composite",
|
|
497
|
+
className: "SharedAccessSignatureAuthorizationRuleAccessRightsDescription",
|
|
498
|
+
modelProperties: {
|
|
499
|
+
keyName: {
|
|
500
|
+
required: true,
|
|
501
|
+
serializedName: "keyName",
|
|
502
|
+
type: {
|
|
503
|
+
name: "String"
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
primaryKey: {
|
|
507
|
+
serializedName: "primaryKey",
|
|
508
|
+
type: {
|
|
509
|
+
name: "String"
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
secondaryKey: {
|
|
513
|
+
serializedName: "secondaryKey",
|
|
514
|
+
type: {
|
|
515
|
+
name: "String"
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
rights: {
|
|
519
|
+
required: true,
|
|
520
|
+
serializedName: "rights",
|
|
521
|
+
type: {
|
|
522
|
+
name: "String"
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
};
|
|
528
|
+
var IotDpsPropertiesDescription = {
|
|
529
|
+
serializedName: "IotDpsPropertiesDescription",
|
|
530
|
+
type: {
|
|
531
|
+
name: "Composite",
|
|
532
|
+
className: "IotDpsPropertiesDescription",
|
|
533
|
+
modelProperties: {
|
|
534
|
+
state: {
|
|
535
|
+
serializedName: "state",
|
|
536
|
+
type: {
|
|
537
|
+
name: "String"
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
publicNetworkAccess: {
|
|
541
|
+
serializedName: "publicNetworkAccess",
|
|
542
|
+
type: {
|
|
543
|
+
name: "String"
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
ipFilterRules: {
|
|
547
|
+
serializedName: "ipFilterRules",
|
|
548
|
+
type: {
|
|
549
|
+
name: "Sequence",
|
|
550
|
+
element: {
|
|
551
|
+
type: {
|
|
552
|
+
name: "Composite",
|
|
553
|
+
className: "IpFilterRule"
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
privateEndpointConnections: {
|
|
559
|
+
serializedName: "privateEndpointConnections",
|
|
560
|
+
type: {
|
|
561
|
+
name: "Sequence",
|
|
562
|
+
element: {
|
|
563
|
+
type: {
|
|
564
|
+
name: "Composite",
|
|
565
|
+
className: "PrivateEndpointConnection"
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
provisioningState: {
|
|
571
|
+
serializedName: "provisioningState",
|
|
572
|
+
type: {
|
|
573
|
+
name: "String"
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
iotHubs: {
|
|
577
|
+
serializedName: "iotHubs",
|
|
578
|
+
type: {
|
|
579
|
+
name: "Sequence",
|
|
580
|
+
element: {
|
|
581
|
+
type: {
|
|
582
|
+
name: "Composite",
|
|
583
|
+
className: "IotHubDefinitionDescription"
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
allocationPolicy: {
|
|
589
|
+
serializedName: "allocationPolicy",
|
|
590
|
+
type: {
|
|
591
|
+
name: "String"
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
serviceOperationsHostName: {
|
|
595
|
+
readOnly: true,
|
|
596
|
+
serializedName: "serviceOperationsHostName",
|
|
597
|
+
type: {
|
|
598
|
+
name: "String"
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
deviceProvisioningHostName: {
|
|
602
|
+
readOnly: true,
|
|
603
|
+
serializedName: "deviceProvisioningHostName",
|
|
604
|
+
type: {
|
|
605
|
+
name: "String"
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
idScope: {
|
|
609
|
+
readOnly: true,
|
|
610
|
+
serializedName: "idScope",
|
|
611
|
+
type: {
|
|
612
|
+
name: "String"
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
authorizationPolicies: {
|
|
616
|
+
serializedName: "authorizationPolicies",
|
|
617
|
+
type: {
|
|
618
|
+
name: "Sequence",
|
|
619
|
+
element: {
|
|
620
|
+
type: {
|
|
621
|
+
name: "Composite",
|
|
622
|
+
className: "SharedAccessSignatureAuthorizationRuleAccessRightsDescription"
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
};
|
|
630
|
+
var Resource = {
|
|
631
|
+
serializedName: "Resource",
|
|
632
|
+
type: {
|
|
633
|
+
name: "Composite",
|
|
634
|
+
className: "Resource",
|
|
635
|
+
modelProperties: {
|
|
636
|
+
id: {
|
|
637
|
+
readOnly: true,
|
|
638
|
+
serializedName: "id",
|
|
639
|
+
type: {
|
|
640
|
+
name: "String"
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
name: {
|
|
644
|
+
readOnly: true,
|
|
645
|
+
serializedName: "name",
|
|
646
|
+
constraints: {
|
|
647
|
+
Pattern: /^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$/
|
|
648
|
+
},
|
|
649
|
+
type: {
|
|
650
|
+
name: "String"
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
type: {
|
|
654
|
+
readOnly: true,
|
|
655
|
+
serializedName: "type",
|
|
656
|
+
type: {
|
|
657
|
+
name: "String"
|
|
658
|
+
}
|
|
659
|
+
},
|
|
660
|
+
location: {
|
|
661
|
+
required: true,
|
|
662
|
+
serializedName: "location",
|
|
663
|
+
type: {
|
|
664
|
+
name: "String"
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
tags: {
|
|
668
|
+
serializedName: "tags",
|
|
669
|
+
type: {
|
|
670
|
+
name: "Dictionary",
|
|
671
|
+
value: {
|
|
672
|
+
type: {
|
|
673
|
+
name: "String"
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
};
|
|
681
|
+
var ProvisioningServiceDescription = {
|
|
682
|
+
serializedName: "ProvisioningServiceDescription",
|
|
683
|
+
type: {
|
|
684
|
+
name: "Composite",
|
|
685
|
+
className: "ProvisioningServiceDescription",
|
|
686
|
+
modelProperties: __assign(__assign({}, Resource.type.modelProperties), { etag: {
|
|
687
|
+
serializedName: "etag",
|
|
688
|
+
type: {
|
|
689
|
+
name: "String"
|
|
690
|
+
}
|
|
691
|
+
}, properties: {
|
|
692
|
+
required: true,
|
|
693
|
+
serializedName: "properties",
|
|
694
|
+
type: {
|
|
695
|
+
name: "Composite",
|
|
696
|
+
className: "IotDpsPropertiesDescription"
|
|
697
|
+
}
|
|
698
|
+
}, sku: {
|
|
699
|
+
required: true,
|
|
700
|
+
serializedName: "sku",
|
|
701
|
+
type: {
|
|
702
|
+
name: "Composite",
|
|
703
|
+
className: "IotDpsSkuInfo"
|
|
704
|
+
}
|
|
705
|
+
} })
|
|
706
|
+
}
|
|
707
|
+
};
|
|
708
|
+
var GroupIdInformationProperties = {
|
|
709
|
+
serializedName: "GroupIdInformationProperties",
|
|
710
|
+
type: {
|
|
711
|
+
name: "Composite",
|
|
712
|
+
className: "GroupIdInformationProperties",
|
|
713
|
+
modelProperties: {
|
|
714
|
+
groupId: {
|
|
715
|
+
serializedName: "groupId",
|
|
716
|
+
type: {
|
|
717
|
+
name: "String"
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
requiredMembers: {
|
|
721
|
+
serializedName: "requiredMembers",
|
|
722
|
+
type: {
|
|
723
|
+
name: "Sequence",
|
|
724
|
+
element: {
|
|
725
|
+
type: {
|
|
726
|
+
name: "String"
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
},
|
|
731
|
+
requiredZoneNames: {
|
|
732
|
+
serializedName: "requiredZoneNames",
|
|
733
|
+
type: {
|
|
734
|
+
name: "Sequence",
|
|
735
|
+
element: {
|
|
736
|
+
type: {
|
|
737
|
+
name: "String"
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
};
|
|
745
|
+
var GroupIdInformation = {
|
|
746
|
+
serializedName: "GroupIdInformation",
|
|
747
|
+
type: {
|
|
748
|
+
name: "Composite",
|
|
749
|
+
className: "GroupIdInformation",
|
|
750
|
+
modelProperties: {
|
|
751
|
+
id: {
|
|
752
|
+
readOnly: true,
|
|
753
|
+
serializedName: "id",
|
|
754
|
+
type: {
|
|
755
|
+
name: "String"
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
name: {
|
|
759
|
+
readOnly: true,
|
|
760
|
+
serializedName: "name",
|
|
761
|
+
constraints: {
|
|
762
|
+
Pattern: /^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$/
|
|
763
|
+
},
|
|
764
|
+
type: {
|
|
765
|
+
name: "String"
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
type: {
|
|
769
|
+
readOnly: true,
|
|
770
|
+
serializedName: "type",
|
|
771
|
+
type: {
|
|
772
|
+
name: "String"
|
|
773
|
+
}
|
|
774
|
+
},
|
|
775
|
+
properties: {
|
|
776
|
+
required: true,
|
|
777
|
+
serializedName: "properties",
|
|
778
|
+
type: {
|
|
779
|
+
name: "Composite",
|
|
780
|
+
className: "GroupIdInformationProperties"
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
};
|
|
786
|
+
var PrivateLinkResources = {
|
|
787
|
+
serializedName: "PrivateLinkResources",
|
|
788
|
+
type: {
|
|
789
|
+
name: "Composite",
|
|
790
|
+
className: "PrivateLinkResources",
|
|
791
|
+
modelProperties: {
|
|
792
|
+
value: {
|
|
793
|
+
serializedName: "value",
|
|
794
|
+
type: {
|
|
795
|
+
name: "Sequence",
|
|
796
|
+
element: {
|
|
797
|
+
type: {
|
|
798
|
+
name: "Composite",
|
|
799
|
+
className: "GroupIdInformation"
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
};
|
|
807
|
+
var OperationDisplay = {
|
|
808
|
+
serializedName: "Operation_display",
|
|
809
|
+
type: {
|
|
810
|
+
name: "Composite",
|
|
811
|
+
className: "OperationDisplay",
|
|
812
|
+
modelProperties: {
|
|
813
|
+
provider: {
|
|
814
|
+
readOnly: true,
|
|
815
|
+
serializedName: "provider",
|
|
816
|
+
type: {
|
|
817
|
+
name: "String"
|
|
818
|
+
}
|
|
819
|
+
},
|
|
820
|
+
resource: {
|
|
821
|
+
readOnly: true,
|
|
822
|
+
serializedName: "resource",
|
|
823
|
+
type: {
|
|
824
|
+
name: "String"
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
operation: {
|
|
828
|
+
readOnly: true,
|
|
829
|
+
serializedName: "operation",
|
|
830
|
+
type: {
|
|
831
|
+
name: "String"
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
};
|
|
837
|
+
var Operation = {
|
|
838
|
+
serializedName: "Operation",
|
|
839
|
+
type: {
|
|
840
|
+
name: "Composite",
|
|
841
|
+
className: "Operation",
|
|
842
|
+
modelProperties: {
|
|
843
|
+
name: {
|
|
844
|
+
readOnly: true,
|
|
845
|
+
serializedName: "name",
|
|
846
|
+
type: {
|
|
847
|
+
name: "String"
|
|
848
|
+
}
|
|
849
|
+
},
|
|
850
|
+
display: {
|
|
851
|
+
serializedName: "display",
|
|
852
|
+
type: {
|
|
853
|
+
name: "Composite",
|
|
854
|
+
className: "OperationDisplay"
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
};
|
|
860
|
+
var ErrorDetails = {
|
|
861
|
+
serializedName: "ErrorDetails",
|
|
862
|
+
type: {
|
|
863
|
+
name: "Composite",
|
|
864
|
+
className: "ErrorDetails",
|
|
865
|
+
modelProperties: {
|
|
866
|
+
code: {
|
|
867
|
+
readOnly: true,
|
|
868
|
+
serializedName: "code",
|
|
869
|
+
type: {
|
|
870
|
+
name: "String"
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
httpStatusCode: {
|
|
874
|
+
readOnly: true,
|
|
875
|
+
serializedName: "httpStatusCode",
|
|
876
|
+
type: {
|
|
877
|
+
name: "String"
|
|
878
|
+
}
|
|
879
|
+
},
|
|
880
|
+
message: {
|
|
881
|
+
readOnly: true,
|
|
882
|
+
serializedName: "message",
|
|
883
|
+
type: {
|
|
884
|
+
name: "String"
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
details: {
|
|
888
|
+
readOnly: true,
|
|
889
|
+
serializedName: "details",
|
|
890
|
+
type: {
|
|
891
|
+
name: "String"
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
};
|
|
897
|
+
var IotDpsSkuDefinition = {
|
|
898
|
+
serializedName: "IotDpsSkuDefinition",
|
|
899
|
+
type: {
|
|
900
|
+
name: "Composite",
|
|
901
|
+
className: "IotDpsSkuDefinition",
|
|
902
|
+
modelProperties: {
|
|
903
|
+
name: {
|
|
904
|
+
serializedName: "name",
|
|
905
|
+
type: {
|
|
906
|
+
name: "String"
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
};
|
|
912
|
+
var OperationInputs = {
|
|
913
|
+
serializedName: "OperationInputs",
|
|
914
|
+
type: {
|
|
915
|
+
name: "Composite",
|
|
916
|
+
className: "OperationInputs",
|
|
917
|
+
modelProperties: {
|
|
918
|
+
name: {
|
|
919
|
+
required: true,
|
|
920
|
+
serializedName: "name",
|
|
921
|
+
type: {
|
|
922
|
+
name: "String"
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
};
|
|
928
|
+
var NameAvailabilityInfo = {
|
|
929
|
+
serializedName: "NameAvailabilityInfo",
|
|
930
|
+
type: {
|
|
931
|
+
name: "Composite",
|
|
932
|
+
className: "NameAvailabilityInfo",
|
|
933
|
+
modelProperties: {
|
|
934
|
+
nameAvailable: {
|
|
935
|
+
serializedName: "nameAvailable",
|
|
936
|
+
type: {
|
|
937
|
+
name: "Boolean"
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
reason: {
|
|
941
|
+
serializedName: "reason",
|
|
942
|
+
type: {
|
|
943
|
+
name: "String"
|
|
944
|
+
}
|
|
945
|
+
},
|
|
946
|
+
message: {
|
|
947
|
+
serializedName: "message",
|
|
948
|
+
type: {
|
|
949
|
+
name: "String"
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
};
|
|
955
|
+
var TagsResource = {
|
|
956
|
+
serializedName: "TagsResource",
|
|
957
|
+
type: {
|
|
958
|
+
name: "Composite",
|
|
959
|
+
className: "TagsResource",
|
|
960
|
+
modelProperties: {
|
|
961
|
+
tags: {
|
|
962
|
+
serializedName: "tags",
|
|
963
|
+
type: {
|
|
964
|
+
name: "Dictionary",
|
|
965
|
+
value: {
|
|
966
|
+
type: {
|
|
967
|
+
name: "String"
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
};
|
|
975
|
+
var VerificationCodeResponseProperties = {
|
|
976
|
+
serializedName: "VerificationCodeResponse_properties",
|
|
977
|
+
type: {
|
|
978
|
+
name: "Composite",
|
|
979
|
+
className: "VerificationCodeResponseProperties",
|
|
980
|
+
modelProperties: {
|
|
981
|
+
verificationCode: {
|
|
982
|
+
serializedName: "verificationCode",
|
|
983
|
+
type: {
|
|
984
|
+
name: "String"
|
|
985
|
+
}
|
|
986
|
+
},
|
|
987
|
+
subject: {
|
|
988
|
+
serializedName: "subject",
|
|
989
|
+
type: {
|
|
990
|
+
name: "String"
|
|
991
|
+
}
|
|
992
|
+
},
|
|
993
|
+
expiry: {
|
|
994
|
+
serializedName: "expiry",
|
|
995
|
+
type: {
|
|
996
|
+
name: "String"
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
thumbprint: {
|
|
1000
|
+
serializedName: "thumbprint",
|
|
1001
|
+
type: {
|
|
1002
|
+
name: "String"
|
|
1003
|
+
}
|
|
1004
|
+
},
|
|
1005
|
+
isVerified: {
|
|
1006
|
+
serializedName: "isVerified",
|
|
1007
|
+
type: {
|
|
1008
|
+
name: "Boolean"
|
|
1009
|
+
}
|
|
1010
|
+
},
|
|
1011
|
+
certificate: {
|
|
1012
|
+
serializedName: "certificate",
|
|
1013
|
+
type: {
|
|
1014
|
+
name: "ByteArray"
|
|
1015
|
+
}
|
|
1016
|
+
},
|
|
1017
|
+
created: {
|
|
1018
|
+
serializedName: "created",
|
|
1019
|
+
type: {
|
|
1020
|
+
name: "String"
|
|
1021
|
+
}
|
|
1022
|
+
},
|
|
1023
|
+
updated: {
|
|
1024
|
+
serializedName: "updated",
|
|
1025
|
+
type: {
|
|
1026
|
+
name: "String"
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
};
|
|
1032
|
+
var VerificationCodeResponse = {
|
|
1033
|
+
serializedName: "VerificationCodeResponse",
|
|
1034
|
+
type: {
|
|
1035
|
+
name: "Composite",
|
|
1036
|
+
className: "VerificationCodeResponse",
|
|
1037
|
+
modelProperties: {
|
|
1038
|
+
name: {
|
|
1039
|
+
readOnly: true,
|
|
1040
|
+
serializedName: "name",
|
|
1041
|
+
type: {
|
|
1042
|
+
name: "String"
|
|
1043
|
+
}
|
|
1044
|
+
},
|
|
1045
|
+
etag: {
|
|
1046
|
+
readOnly: true,
|
|
1047
|
+
serializedName: "etag",
|
|
1048
|
+
type: {
|
|
1049
|
+
name: "String"
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1052
|
+
id: {
|
|
1053
|
+
readOnly: true,
|
|
1054
|
+
serializedName: "id",
|
|
1055
|
+
type: {
|
|
1056
|
+
name: "String"
|
|
1057
|
+
}
|
|
1058
|
+
},
|
|
1059
|
+
type: {
|
|
1060
|
+
readOnly: true,
|
|
1061
|
+
serializedName: "type",
|
|
1062
|
+
type: {
|
|
1063
|
+
name: "String"
|
|
1064
|
+
}
|
|
1065
|
+
},
|
|
1066
|
+
properties: {
|
|
1067
|
+
serializedName: "properties",
|
|
1068
|
+
type: {
|
|
1069
|
+
name: "Composite",
|
|
1070
|
+
className: "VerificationCodeResponseProperties"
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
};
|
|
1076
|
+
var VerificationCodeRequest = {
|
|
1077
|
+
serializedName: "VerificationCodeRequest",
|
|
1078
|
+
type: {
|
|
1079
|
+
name: "Composite",
|
|
1080
|
+
className: "VerificationCodeRequest",
|
|
1081
|
+
modelProperties: {
|
|
1082
|
+
certificate: {
|
|
1083
|
+
serializedName: "certificate",
|
|
1084
|
+
type: {
|
|
1085
|
+
name: "String"
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
};
|
|
1091
|
+
var OperationListResult = {
|
|
1092
|
+
serializedName: "OperationListResult",
|
|
1093
|
+
type: {
|
|
1094
|
+
name: "Composite",
|
|
1095
|
+
className: "OperationListResult",
|
|
1096
|
+
modelProperties: {
|
|
1097
|
+
value: {
|
|
1098
|
+
readOnly: true,
|
|
1099
|
+
serializedName: "",
|
|
1100
|
+
type: {
|
|
1101
|
+
name: "Sequence",
|
|
1102
|
+
element: {
|
|
1103
|
+
type: {
|
|
1104
|
+
name: "Composite",
|
|
1105
|
+
className: "Operation"
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
},
|
|
1110
|
+
nextLink: {
|
|
1111
|
+
readOnly: true,
|
|
1112
|
+
serializedName: "nextLink",
|
|
1113
|
+
type: {
|
|
1114
|
+
name: "String"
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
};
|
|
1120
|
+
var ProvisioningServiceDescriptionListResult = {
|
|
1121
|
+
serializedName: "ProvisioningServiceDescriptionListResult",
|
|
1122
|
+
type: {
|
|
1123
|
+
name: "Composite",
|
|
1124
|
+
className: "ProvisioningServiceDescriptionListResult",
|
|
1125
|
+
modelProperties: {
|
|
1126
|
+
value: {
|
|
1127
|
+
serializedName: "",
|
|
1128
|
+
type: {
|
|
1129
|
+
name: "Sequence",
|
|
1130
|
+
element: {
|
|
1131
|
+
type: {
|
|
1132
|
+
name: "Composite",
|
|
1133
|
+
className: "ProvisioningServiceDescription"
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
},
|
|
1138
|
+
nextLink: {
|
|
1139
|
+
readOnly: true,
|
|
1140
|
+
serializedName: "nextLink",
|
|
1141
|
+
type: {
|
|
1142
|
+
name: "String"
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
};
|
|
1148
|
+
var IotDpsSkuDefinitionListResult = {
|
|
1149
|
+
serializedName: "IotDpsSkuDefinitionListResult",
|
|
1150
|
+
type: {
|
|
1151
|
+
name: "Composite",
|
|
1152
|
+
className: "IotDpsSkuDefinitionListResult",
|
|
1153
|
+
modelProperties: {
|
|
1154
|
+
value: {
|
|
1155
|
+
serializedName: "",
|
|
1156
|
+
type: {
|
|
1157
|
+
name: "Sequence",
|
|
1158
|
+
element: {
|
|
1159
|
+
type: {
|
|
1160
|
+
name: "Composite",
|
|
1161
|
+
className: "IotDpsSkuDefinition"
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
},
|
|
1166
|
+
nextLink: {
|
|
1167
|
+
readOnly: true,
|
|
1168
|
+
serializedName: "nextLink",
|
|
1169
|
+
type: {
|
|
1170
|
+
name: "String"
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
};
|
|
1176
|
+
var SharedAccessSignatureAuthorizationRuleListResult = {
|
|
1177
|
+
serializedName: "SharedAccessSignatureAuthorizationRuleListResult",
|
|
1178
|
+
type: {
|
|
1179
|
+
name: "Composite",
|
|
1180
|
+
className: "SharedAccessSignatureAuthorizationRuleListResult",
|
|
1181
|
+
modelProperties: {
|
|
1182
|
+
value: {
|
|
1183
|
+
serializedName: "",
|
|
1184
|
+
type: {
|
|
1185
|
+
name: "Sequence",
|
|
1186
|
+
element: {
|
|
1187
|
+
type: {
|
|
1188
|
+
name: "Composite",
|
|
1189
|
+
className: "SharedAccessSignatureAuthorizationRuleAccessRightsDescription"
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
},
|
|
1194
|
+
nextLink: {
|
|
1195
|
+
readOnly: true,
|
|
1196
|
+
serializedName: "nextLink",
|
|
1197
|
+
type: {
|
|
1198
|
+
name: "String"
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
};
|
|
1204
|
+
|
|
1205
|
+
var mappers = /*#__PURE__*/Object.freeze({
|
|
1206
|
+
__proto__: null,
|
|
1207
|
+
CloudError: CloudError,
|
|
1208
|
+
BaseResource: BaseResource,
|
|
1209
|
+
ErrorMesssage: ErrorMesssage,
|
|
1210
|
+
AsyncOperationResult: AsyncOperationResult,
|
|
1211
|
+
CertificateProperties: CertificateProperties,
|
|
1212
|
+
CertificateResponse: CertificateResponse,
|
|
1213
|
+
CertificateListDescription: CertificateListDescription,
|
|
1214
|
+
CertificateBodyDescription: CertificateBodyDescription,
|
|
1215
|
+
IotDpsSkuInfo: IotDpsSkuInfo,
|
|
1216
|
+
IpFilterRule: IpFilterRule,
|
|
1217
|
+
PrivateEndpoint: PrivateEndpoint,
|
|
1218
|
+
PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
|
|
1219
|
+
PrivateEndpointConnectionProperties: PrivateEndpointConnectionProperties,
|
|
1220
|
+
PrivateEndpointConnection: PrivateEndpointConnection,
|
|
1221
|
+
IotHubDefinitionDescription: IotHubDefinitionDescription,
|
|
1222
|
+
SharedAccessSignatureAuthorizationRuleAccessRightsDescription: SharedAccessSignatureAuthorizationRuleAccessRightsDescription,
|
|
1223
|
+
IotDpsPropertiesDescription: IotDpsPropertiesDescription,
|
|
1224
|
+
Resource: Resource,
|
|
1225
|
+
ProvisioningServiceDescription: ProvisioningServiceDescription,
|
|
1226
|
+
GroupIdInformationProperties: GroupIdInformationProperties,
|
|
1227
|
+
GroupIdInformation: GroupIdInformation,
|
|
1228
|
+
PrivateLinkResources: PrivateLinkResources,
|
|
1229
|
+
OperationDisplay: OperationDisplay,
|
|
1230
|
+
Operation: Operation,
|
|
1231
|
+
ErrorDetails: ErrorDetails,
|
|
1232
|
+
IotDpsSkuDefinition: IotDpsSkuDefinition,
|
|
1233
|
+
OperationInputs: OperationInputs,
|
|
1234
|
+
NameAvailabilityInfo: NameAvailabilityInfo,
|
|
1235
|
+
TagsResource: TagsResource,
|
|
1236
|
+
VerificationCodeResponseProperties: VerificationCodeResponseProperties,
|
|
1237
|
+
VerificationCodeResponse: VerificationCodeResponse,
|
|
1238
|
+
VerificationCodeRequest: VerificationCodeRequest,
|
|
1239
|
+
OperationListResult: OperationListResult,
|
|
1240
|
+
ProvisioningServiceDescriptionListResult: ProvisioningServiceDescriptionListResult,
|
|
1241
|
+
IotDpsSkuDefinitionListResult: IotDpsSkuDefinitionListResult,
|
|
1242
|
+
SharedAccessSignatureAuthorizationRuleListResult: SharedAccessSignatureAuthorizationRuleListResult
|
|
1243
|
+
});
|
|
1244
|
+
|
|
1245
|
+
/*
|
|
1246
|
+
* Copyright (c) Microsoft Corporation.
|
|
1247
|
+
* Licensed under the MIT License.
|
|
1248
|
+
*
|
|
1249
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1250
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1251
|
+
*/
|
|
1252
|
+
|
|
1253
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1254
|
+
__proto__: null,
|
|
1255
|
+
ErrorDetails: ErrorDetails,
|
|
1256
|
+
Operation: Operation,
|
|
1257
|
+
OperationDisplay: OperationDisplay,
|
|
1258
|
+
OperationListResult: OperationListResult
|
|
1259
|
+
});
|
|
1260
|
+
|
|
1261
|
+
/*
|
|
1262
|
+
* Copyright (c) Microsoft Corporation.
|
|
1263
|
+
* Licensed under the MIT License.
|
|
1264
|
+
*
|
|
1265
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1266
|
+
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1267
|
+
* regenerated.
|
|
1268
|
+
*/
|
|
1269
|
+
var acceptLanguage = {
|
|
1270
|
+
parameterPath: "acceptLanguage",
|
|
1271
|
+
mapper: {
|
|
1272
|
+
serializedName: "accept-language",
|
|
1273
|
+
defaultValue: 'en-US',
|
|
1274
|
+
type: {
|
|
1275
|
+
name: "String"
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
};
|
|
1279
|
+
var apiVersion = {
|
|
1280
|
+
parameterPath: "apiVersion",
|
|
1281
|
+
mapper: {
|
|
1282
|
+
required: true,
|
|
1283
|
+
serializedName: "api-version",
|
|
1284
|
+
type: {
|
|
1285
|
+
name: "String"
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
};
|
|
1289
|
+
var asyncinfo = {
|
|
1290
|
+
parameterPath: "asyncinfo",
|
|
1291
|
+
mapper: {
|
|
1292
|
+
required: true,
|
|
1293
|
+
serializedName: "asyncinfo",
|
|
1294
|
+
defaultValue: 'true',
|
|
1295
|
+
type: {
|
|
1296
|
+
name: "String"
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
};
|
|
1300
|
+
var certificatecreated = {
|
|
1301
|
+
parameterPath: [
|
|
1302
|
+
"options",
|
|
1303
|
+
"certificatecreated"
|
|
1304
|
+
],
|
|
1305
|
+
mapper: {
|
|
1306
|
+
serializedName: "certificate.created",
|
|
1307
|
+
type: {
|
|
1308
|
+
name: "DateTime"
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
};
|
|
1312
|
+
var certificatehasPrivateKey = {
|
|
1313
|
+
parameterPath: [
|
|
1314
|
+
"options",
|
|
1315
|
+
"certificatehasPrivateKey"
|
|
1316
|
+
],
|
|
1317
|
+
mapper: {
|
|
1318
|
+
serializedName: "certificate.hasPrivateKey",
|
|
1319
|
+
type: {
|
|
1320
|
+
name: "Boolean"
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
};
|
|
1324
|
+
var certificateisVerified = {
|
|
1325
|
+
parameterPath: [
|
|
1326
|
+
"options",
|
|
1327
|
+
"certificateisVerified"
|
|
1328
|
+
],
|
|
1329
|
+
mapper: {
|
|
1330
|
+
serializedName: "certificate.isVerified",
|
|
1331
|
+
type: {
|
|
1332
|
+
name: "Boolean"
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
};
|
|
1336
|
+
var certificatelastUpdated = {
|
|
1337
|
+
parameterPath: [
|
|
1338
|
+
"options",
|
|
1339
|
+
"certificatelastUpdated"
|
|
1340
|
+
],
|
|
1341
|
+
mapper: {
|
|
1342
|
+
serializedName: "certificate.lastUpdated",
|
|
1343
|
+
type: {
|
|
1344
|
+
name: "DateTime"
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
};
|
|
1348
|
+
var certificatename = {
|
|
1349
|
+
parameterPath: [
|
|
1350
|
+
"options",
|
|
1351
|
+
"certificatename"
|
|
1352
|
+
],
|
|
1353
|
+
mapper: {
|
|
1354
|
+
serializedName: "certificate.name",
|
|
1355
|
+
type: {
|
|
1356
|
+
name: "String"
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
};
|
|
1360
|
+
var certificateName0 = {
|
|
1361
|
+
parameterPath: "certificateName",
|
|
1362
|
+
mapper: {
|
|
1363
|
+
required: true,
|
|
1364
|
+
serializedName: "certificateName",
|
|
1365
|
+
type: {
|
|
1366
|
+
name: "String"
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
};
|
|
1370
|
+
var certificateName1 = {
|
|
1371
|
+
parameterPath: "certificateName",
|
|
1372
|
+
mapper: {
|
|
1373
|
+
required: true,
|
|
1374
|
+
serializedName: "certificateName",
|
|
1375
|
+
constraints: {
|
|
1376
|
+
MaxLength: 256
|
|
1377
|
+
},
|
|
1378
|
+
type: {
|
|
1379
|
+
name: "String"
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
};
|
|
1383
|
+
var certificatenonce = {
|
|
1384
|
+
parameterPath: [
|
|
1385
|
+
"options",
|
|
1386
|
+
"certificatenonce"
|
|
1387
|
+
],
|
|
1388
|
+
mapper: {
|
|
1389
|
+
serializedName: "certificate.nonce",
|
|
1390
|
+
type: {
|
|
1391
|
+
name: "String"
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
};
|
|
1395
|
+
var certificatepurpose = {
|
|
1396
|
+
parameterPath: [
|
|
1397
|
+
"options",
|
|
1398
|
+
"certificatepurpose"
|
|
1399
|
+
],
|
|
1400
|
+
mapper: {
|
|
1401
|
+
serializedName: "certificate.purpose",
|
|
1402
|
+
type: {
|
|
1403
|
+
name: "String"
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
};
|
|
1407
|
+
var certificaterawBytes = {
|
|
1408
|
+
parameterPath: [
|
|
1409
|
+
"options",
|
|
1410
|
+
"certificaterawBytes"
|
|
1411
|
+
],
|
|
1412
|
+
mapper: {
|
|
1413
|
+
serializedName: "certificate.rawBytes",
|
|
1414
|
+
type: {
|
|
1415
|
+
name: "ByteArray"
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
};
|
|
1419
|
+
var groupId = {
|
|
1420
|
+
parameterPath: "groupId",
|
|
1421
|
+
mapper: {
|
|
1422
|
+
required: true,
|
|
1423
|
+
serializedName: "groupId",
|
|
1424
|
+
type: {
|
|
1425
|
+
name: "String"
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
};
|
|
1429
|
+
var ifMatch0 = {
|
|
1430
|
+
parameterPath: [
|
|
1431
|
+
"options",
|
|
1432
|
+
"ifMatch"
|
|
1433
|
+
],
|
|
1434
|
+
mapper: {
|
|
1435
|
+
serializedName: "If-Match",
|
|
1436
|
+
type: {
|
|
1437
|
+
name: "String"
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
};
|
|
1441
|
+
var ifMatch1 = {
|
|
1442
|
+
parameterPath: "ifMatch",
|
|
1443
|
+
mapper: {
|
|
1444
|
+
required: true,
|
|
1445
|
+
serializedName: "If-Match",
|
|
1446
|
+
type: {
|
|
1447
|
+
name: "String"
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
};
|
|
1451
|
+
var keyName = {
|
|
1452
|
+
parameterPath: "keyName",
|
|
1453
|
+
mapper: {
|
|
1454
|
+
required: true,
|
|
1455
|
+
serializedName: "keyName",
|
|
1456
|
+
type: {
|
|
1457
|
+
name: "String"
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
};
|
|
1461
|
+
var nextPageLink = {
|
|
1462
|
+
parameterPath: "nextPageLink",
|
|
1463
|
+
mapper: {
|
|
1464
|
+
required: true,
|
|
1465
|
+
serializedName: "nextLink",
|
|
1466
|
+
type: {
|
|
1467
|
+
name: "String"
|
|
1468
|
+
}
|
|
1469
|
+
},
|
|
1470
|
+
skipEncoding: true
|
|
1471
|
+
};
|
|
1472
|
+
var operationId = {
|
|
1473
|
+
parameterPath: "operationId",
|
|
1474
|
+
mapper: {
|
|
1475
|
+
required: true,
|
|
1476
|
+
serializedName: "operationId",
|
|
1477
|
+
type: {
|
|
1478
|
+
name: "String"
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
};
|
|
1482
|
+
var privateEndpointConnectionName = {
|
|
1483
|
+
parameterPath: "privateEndpointConnectionName",
|
|
1484
|
+
mapper: {
|
|
1485
|
+
required: true,
|
|
1486
|
+
serializedName: "privateEndpointConnectionName",
|
|
1487
|
+
type: {
|
|
1488
|
+
name: "String"
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
};
|
|
1492
|
+
var provisioningServiceName = {
|
|
1493
|
+
parameterPath: "provisioningServiceName",
|
|
1494
|
+
mapper: {
|
|
1495
|
+
required: true,
|
|
1496
|
+
serializedName: "provisioningServiceName",
|
|
1497
|
+
type: {
|
|
1498
|
+
name: "String"
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
};
|
|
1502
|
+
var resourceGroupName = {
|
|
1503
|
+
parameterPath: "resourceGroupName",
|
|
1504
|
+
mapper: {
|
|
1505
|
+
required: true,
|
|
1506
|
+
serializedName: "resourceGroupName",
|
|
1507
|
+
type: {
|
|
1508
|
+
name: "String"
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
};
|
|
1512
|
+
var resourceName = {
|
|
1513
|
+
parameterPath: "resourceName",
|
|
1514
|
+
mapper: {
|
|
1515
|
+
required: true,
|
|
1516
|
+
serializedName: "resourceName",
|
|
1517
|
+
type: {
|
|
1518
|
+
name: "String"
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
};
|
|
1522
|
+
var subscriptionId = {
|
|
1523
|
+
parameterPath: "subscriptionId",
|
|
1524
|
+
mapper: {
|
|
1525
|
+
required: true,
|
|
1526
|
+
serializedName: "subscriptionId",
|
|
1527
|
+
type: {
|
|
1528
|
+
name: "String"
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
};
|
|
1532
|
+
|
|
1533
|
+
/*
|
|
1534
|
+
* Copyright (c) Microsoft Corporation.
|
|
1535
|
+
* Licensed under the MIT License.
|
|
1536
|
+
*
|
|
1537
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1538
|
+
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1539
|
+
* regenerated.
|
|
1540
|
+
*/
|
|
1541
|
+
/** Class representing a Operations. */
|
|
1542
|
+
var Operations = /** @class */ (function () {
|
|
1543
|
+
/**
|
|
1544
|
+
* Create a Operations.
|
|
1545
|
+
* @param {IotDpsClientContext} client Reference to the service client.
|
|
1546
|
+
*/
|
|
1547
|
+
function Operations(client) {
|
|
1548
|
+
this.client = client;
|
|
1549
|
+
}
|
|
1550
|
+
Operations.prototype.list = function (options, callback) {
|
|
1551
|
+
return this.client.sendOperationRequest({
|
|
1552
|
+
options: options
|
|
1553
|
+
}, listOperationSpec, callback);
|
|
1554
|
+
};
|
|
1555
|
+
Operations.prototype.listNext = function (nextPageLink, options, callback) {
|
|
1556
|
+
return this.client.sendOperationRequest({
|
|
1557
|
+
nextPageLink: nextPageLink,
|
|
1558
|
+
options: options
|
|
1559
|
+
}, listNextOperationSpec, callback);
|
|
1560
|
+
};
|
|
1561
|
+
return Operations;
|
|
1562
|
+
}());
|
|
1563
|
+
// Operation Specifications
|
|
1564
|
+
var serializer = new msRest.Serializer(Mappers);
|
|
1565
|
+
var listOperationSpec = {
|
|
1566
|
+
httpMethod: "GET",
|
|
1567
|
+
path: "providers/Microsoft.Devices/operations",
|
|
1568
|
+
queryParameters: [
|
|
1569
|
+
apiVersion
|
|
1570
|
+
],
|
|
1571
|
+
headerParameters: [
|
|
1572
|
+
acceptLanguage
|
|
1573
|
+
],
|
|
1574
|
+
responses: {
|
|
1575
|
+
200: {
|
|
1576
|
+
bodyMapper: OperationListResult
|
|
1577
|
+
},
|
|
1578
|
+
default: {
|
|
1579
|
+
bodyMapper: ErrorDetails
|
|
1580
|
+
}
|
|
1581
|
+
},
|
|
1582
|
+
serializer: serializer
|
|
1583
|
+
};
|
|
1584
|
+
var listNextOperationSpec = {
|
|
1585
|
+
httpMethod: "GET",
|
|
1586
|
+
baseUrl: "https://management.azure.com",
|
|
1587
|
+
path: "{nextLink}",
|
|
1588
|
+
urlParameters: [
|
|
1589
|
+
nextPageLink
|
|
1590
|
+
],
|
|
1591
|
+
queryParameters: [
|
|
1592
|
+
apiVersion
|
|
1593
|
+
],
|
|
1594
|
+
headerParameters: [
|
|
1595
|
+
acceptLanguage
|
|
1596
|
+
],
|
|
1597
|
+
responses: {
|
|
1598
|
+
200: {
|
|
1599
|
+
bodyMapper: OperationListResult
|
|
1600
|
+
},
|
|
1601
|
+
default: {
|
|
1602
|
+
bodyMapper: ErrorDetails
|
|
1603
|
+
}
|
|
1604
|
+
},
|
|
1605
|
+
serializer: serializer
|
|
1606
|
+
};
|
|
1607
|
+
|
|
1608
|
+
/*
|
|
1609
|
+
* Copyright (c) Microsoft Corporation.
|
|
1610
|
+
* Licensed under the MIT License.
|
|
1611
|
+
*
|
|
1612
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1613
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1614
|
+
*/
|
|
1615
|
+
|
|
1616
|
+
var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
1617
|
+
__proto__: null,
|
|
1618
|
+
BaseResource: BaseResource,
|
|
1619
|
+
CertificateBodyDescription: CertificateBodyDescription,
|
|
1620
|
+
CertificateListDescription: CertificateListDescription,
|
|
1621
|
+
CertificateProperties: CertificateProperties,
|
|
1622
|
+
CertificateResponse: CertificateResponse,
|
|
1623
|
+
ErrorDetails: ErrorDetails,
|
|
1624
|
+
IotDpsPropertiesDescription: IotDpsPropertiesDescription,
|
|
1625
|
+
IotDpsSkuInfo: IotDpsSkuInfo,
|
|
1626
|
+
IotHubDefinitionDescription: IotHubDefinitionDescription,
|
|
1627
|
+
IpFilterRule: IpFilterRule,
|
|
1628
|
+
PrivateEndpoint: PrivateEndpoint,
|
|
1629
|
+
PrivateEndpointConnection: PrivateEndpointConnection,
|
|
1630
|
+
PrivateEndpointConnectionProperties: PrivateEndpointConnectionProperties,
|
|
1631
|
+
PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
|
|
1632
|
+
ProvisioningServiceDescription: ProvisioningServiceDescription,
|
|
1633
|
+
Resource: Resource,
|
|
1634
|
+
SharedAccessSignatureAuthorizationRuleAccessRightsDescription: SharedAccessSignatureAuthorizationRuleAccessRightsDescription,
|
|
1635
|
+
VerificationCodeRequest: VerificationCodeRequest,
|
|
1636
|
+
VerificationCodeResponse: VerificationCodeResponse,
|
|
1637
|
+
VerificationCodeResponseProperties: VerificationCodeResponseProperties
|
|
1638
|
+
});
|
|
1639
|
+
|
|
1640
|
+
/*
|
|
1641
|
+
* Copyright (c) Microsoft Corporation.
|
|
1642
|
+
* Licensed under the MIT License.
|
|
1643
|
+
*
|
|
1644
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1645
|
+
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1646
|
+
* regenerated.
|
|
1647
|
+
*/
|
|
1648
|
+
/** Class representing a DpsCertificate. */
|
|
1649
|
+
var DpsCertificate = /** @class */ (function () {
|
|
1650
|
+
/**
|
|
1651
|
+
* Create a DpsCertificate.
|
|
1652
|
+
* @param {IotDpsClientContext} client Reference to the service client.
|
|
1653
|
+
*/
|
|
1654
|
+
function DpsCertificate(client) {
|
|
1655
|
+
this.client = client;
|
|
1656
|
+
}
|
|
1657
|
+
DpsCertificate.prototype.get = function (certificateName, resourceGroupName, provisioningServiceName, options, callback) {
|
|
1658
|
+
return this.client.sendOperationRequest({
|
|
1659
|
+
certificateName: certificateName,
|
|
1660
|
+
resourceGroupName: resourceGroupName,
|
|
1661
|
+
provisioningServiceName: provisioningServiceName,
|
|
1662
|
+
options: options
|
|
1663
|
+
}, getOperationSpec, callback);
|
|
1664
|
+
};
|
|
1665
|
+
DpsCertificate.prototype.createOrUpdate = function (resourceGroupName, provisioningServiceName, certificateName, certificateDescription, options, callback) {
|
|
1666
|
+
return this.client.sendOperationRequest({
|
|
1667
|
+
resourceGroupName: resourceGroupName,
|
|
1668
|
+
provisioningServiceName: provisioningServiceName,
|
|
1669
|
+
certificateName: certificateName,
|
|
1670
|
+
certificateDescription: certificateDescription,
|
|
1671
|
+
options: options
|
|
1672
|
+
}, createOrUpdateOperationSpec, callback);
|
|
1673
|
+
};
|
|
1674
|
+
DpsCertificate.prototype.deleteMethod = function (resourceGroupName, ifMatch, provisioningServiceName, certificateName, options, callback) {
|
|
1675
|
+
return this.client.sendOperationRequest({
|
|
1676
|
+
resourceGroupName: resourceGroupName,
|
|
1677
|
+
ifMatch: ifMatch,
|
|
1678
|
+
provisioningServiceName: provisioningServiceName,
|
|
1679
|
+
certificateName: certificateName,
|
|
1680
|
+
options: options
|
|
1681
|
+
}, deleteMethodOperationSpec, callback);
|
|
1682
|
+
};
|
|
1683
|
+
DpsCertificate.prototype.list = function (resourceGroupName, provisioningServiceName, options, callback) {
|
|
1684
|
+
return this.client.sendOperationRequest({
|
|
1685
|
+
resourceGroupName: resourceGroupName,
|
|
1686
|
+
provisioningServiceName: provisioningServiceName,
|
|
1687
|
+
options: options
|
|
1688
|
+
}, listOperationSpec$1, callback);
|
|
1689
|
+
};
|
|
1690
|
+
DpsCertificate.prototype.generateVerificationCode = function (certificateName, ifMatch, resourceGroupName, provisioningServiceName, options, callback) {
|
|
1691
|
+
return this.client.sendOperationRequest({
|
|
1692
|
+
certificateName: certificateName,
|
|
1693
|
+
ifMatch: ifMatch,
|
|
1694
|
+
resourceGroupName: resourceGroupName,
|
|
1695
|
+
provisioningServiceName: provisioningServiceName,
|
|
1696
|
+
options: options
|
|
1697
|
+
}, generateVerificationCodeOperationSpec, callback);
|
|
1698
|
+
};
|
|
1699
|
+
DpsCertificate.prototype.verifyCertificate = function (certificateName, ifMatch, request, resourceGroupName, provisioningServiceName, options, callback) {
|
|
1700
|
+
return this.client.sendOperationRequest({
|
|
1701
|
+
certificateName: certificateName,
|
|
1702
|
+
ifMatch: ifMatch,
|
|
1703
|
+
request: request,
|
|
1704
|
+
resourceGroupName: resourceGroupName,
|
|
1705
|
+
provisioningServiceName: provisioningServiceName,
|
|
1706
|
+
options: options
|
|
1707
|
+
}, verifyCertificateOperationSpec, callback);
|
|
1708
|
+
};
|
|
1709
|
+
return DpsCertificate;
|
|
1710
|
+
}());
|
|
1711
|
+
// Operation Specifications
|
|
1712
|
+
var serializer$1 = new msRest.Serializer(Mappers$1);
|
|
1713
|
+
var getOperationSpec = {
|
|
1714
|
+
httpMethod: "GET",
|
|
1715
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}",
|
|
1716
|
+
urlParameters: [
|
|
1717
|
+
certificateName0,
|
|
1718
|
+
subscriptionId,
|
|
1719
|
+
resourceGroupName,
|
|
1720
|
+
provisioningServiceName
|
|
1721
|
+
],
|
|
1722
|
+
queryParameters: [
|
|
1723
|
+
apiVersion
|
|
1724
|
+
],
|
|
1725
|
+
headerParameters: [
|
|
1726
|
+
ifMatch0,
|
|
1727
|
+
acceptLanguage
|
|
1728
|
+
],
|
|
1729
|
+
responses: {
|
|
1730
|
+
200: {
|
|
1731
|
+
bodyMapper: CertificateResponse
|
|
1732
|
+
},
|
|
1733
|
+
default: {
|
|
1734
|
+
bodyMapper: ErrorDetails
|
|
1735
|
+
}
|
|
1736
|
+
},
|
|
1737
|
+
serializer: serializer$1
|
|
1738
|
+
};
|
|
1739
|
+
var createOrUpdateOperationSpec = {
|
|
1740
|
+
httpMethod: "PUT",
|
|
1741
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}",
|
|
1742
|
+
urlParameters: [
|
|
1743
|
+
subscriptionId,
|
|
1744
|
+
resourceGroupName,
|
|
1745
|
+
provisioningServiceName,
|
|
1746
|
+
certificateName1
|
|
1747
|
+
],
|
|
1748
|
+
queryParameters: [
|
|
1749
|
+
apiVersion
|
|
1750
|
+
],
|
|
1751
|
+
headerParameters: [
|
|
1752
|
+
ifMatch0,
|
|
1753
|
+
acceptLanguage
|
|
1754
|
+
],
|
|
1755
|
+
requestBody: {
|
|
1756
|
+
parameterPath: "certificateDescription",
|
|
1757
|
+
mapper: __assign(__assign({}, CertificateBodyDescription), { required: true })
|
|
1758
|
+
},
|
|
1759
|
+
responses: {
|
|
1760
|
+
200: {
|
|
1761
|
+
bodyMapper: CertificateResponse
|
|
1762
|
+
},
|
|
1763
|
+
default: {
|
|
1764
|
+
bodyMapper: ErrorDetails
|
|
1765
|
+
}
|
|
1766
|
+
},
|
|
1767
|
+
serializer: serializer$1
|
|
1768
|
+
};
|
|
1769
|
+
var deleteMethodOperationSpec = {
|
|
1770
|
+
httpMethod: "DELETE",
|
|
1771
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}",
|
|
1772
|
+
urlParameters: [
|
|
1773
|
+
subscriptionId,
|
|
1774
|
+
resourceGroupName,
|
|
1775
|
+
provisioningServiceName,
|
|
1776
|
+
certificateName0
|
|
1777
|
+
],
|
|
1778
|
+
queryParameters: [
|
|
1779
|
+
certificatename,
|
|
1780
|
+
certificaterawBytes,
|
|
1781
|
+
certificateisVerified,
|
|
1782
|
+
certificatepurpose,
|
|
1783
|
+
certificatecreated,
|
|
1784
|
+
certificatelastUpdated,
|
|
1785
|
+
certificatehasPrivateKey,
|
|
1786
|
+
certificatenonce,
|
|
1787
|
+
apiVersion
|
|
1788
|
+
],
|
|
1789
|
+
headerParameters: [
|
|
1790
|
+
ifMatch1,
|
|
1791
|
+
acceptLanguage
|
|
1792
|
+
],
|
|
1793
|
+
responses: {
|
|
1794
|
+
200: {},
|
|
1795
|
+
204: {},
|
|
1796
|
+
default: {
|
|
1797
|
+
bodyMapper: ErrorDetails
|
|
1798
|
+
}
|
|
1799
|
+
},
|
|
1800
|
+
serializer: serializer$1
|
|
1801
|
+
};
|
|
1802
|
+
var listOperationSpec$1 = {
|
|
1803
|
+
httpMethod: "GET",
|
|
1804
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates",
|
|
1805
|
+
urlParameters: [
|
|
1806
|
+
subscriptionId,
|
|
1807
|
+
resourceGroupName,
|
|
1808
|
+
provisioningServiceName
|
|
1809
|
+
],
|
|
1810
|
+
queryParameters: [
|
|
1811
|
+
apiVersion
|
|
1812
|
+
],
|
|
1813
|
+
headerParameters: [
|
|
1814
|
+
acceptLanguage
|
|
1815
|
+
],
|
|
1816
|
+
responses: {
|
|
1817
|
+
200: {
|
|
1818
|
+
bodyMapper: CertificateListDescription
|
|
1819
|
+
},
|
|
1820
|
+
default: {
|
|
1821
|
+
bodyMapper: ErrorDetails
|
|
1822
|
+
}
|
|
1823
|
+
},
|
|
1824
|
+
serializer: serializer$1
|
|
1825
|
+
};
|
|
1826
|
+
var generateVerificationCodeOperationSpec = {
|
|
1827
|
+
httpMethod: "POST",
|
|
1828
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/generateVerificationCode",
|
|
1829
|
+
urlParameters: [
|
|
1830
|
+
certificateName0,
|
|
1831
|
+
subscriptionId,
|
|
1832
|
+
resourceGroupName,
|
|
1833
|
+
provisioningServiceName
|
|
1834
|
+
],
|
|
1835
|
+
queryParameters: [
|
|
1836
|
+
certificatename,
|
|
1837
|
+
certificaterawBytes,
|
|
1838
|
+
certificateisVerified,
|
|
1839
|
+
certificatepurpose,
|
|
1840
|
+
certificatecreated,
|
|
1841
|
+
certificatelastUpdated,
|
|
1842
|
+
certificatehasPrivateKey,
|
|
1843
|
+
certificatenonce,
|
|
1844
|
+
apiVersion
|
|
1845
|
+
],
|
|
1846
|
+
headerParameters: [
|
|
1847
|
+
ifMatch1,
|
|
1848
|
+
acceptLanguage
|
|
1849
|
+
],
|
|
1850
|
+
responses: {
|
|
1851
|
+
200: {
|
|
1852
|
+
bodyMapper: VerificationCodeResponse
|
|
1853
|
+
},
|
|
1854
|
+
default: {
|
|
1855
|
+
bodyMapper: ErrorDetails
|
|
1856
|
+
}
|
|
1857
|
+
},
|
|
1858
|
+
serializer: serializer$1
|
|
1859
|
+
};
|
|
1860
|
+
var verifyCertificateOperationSpec = {
|
|
1861
|
+
httpMethod: "POST",
|
|
1862
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/verify",
|
|
1863
|
+
urlParameters: [
|
|
1864
|
+
certificateName0,
|
|
1865
|
+
subscriptionId,
|
|
1866
|
+
resourceGroupName,
|
|
1867
|
+
provisioningServiceName
|
|
1868
|
+
],
|
|
1869
|
+
queryParameters: [
|
|
1870
|
+
certificatename,
|
|
1871
|
+
certificaterawBytes,
|
|
1872
|
+
certificateisVerified,
|
|
1873
|
+
certificatepurpose,
|
|
1874
|
+
certificatecreated,
|
|
1875
|
+
certificatelastUpdated,
|
|
1876
|
+
certificatehasPrivateKey,
|
|
1877
|
+
certificatenonce,
|
|
1878
|
+
apiVersion
|
|
1879
|
+
],
|
|
1880
|
+
headerParameters: [
|
|
1881
|
+
ifMatch1,
|
|
1882
|
+
acceptLanguage
|
|
1883
|
+
],
|
|
1884
|
+
requestBody: {
|
|
1885
|
+
parameterPath: "request",
|
|
1886
|
+
mapper: __assign(__assign({}, VerificationCodeRequest), { required: true })
|
|
1887
|
+
},
|
|
1888
|
+
responses: {
|
|
1889
|
+
200: {
|
|
1890
|
+
bodyMapper: CertificateResponse
|
|
1891
|
+
},
|
|
1892
|
+
default: {
|
|
1893
|
+
bodyMapper: ErrorDetails
|
|
1894
|
+
}
|
|
1895
|
+
},
|
|
1896
|
+
serializer: serializer$1
|
|
1897
|
+
};
|
|
1898
|
+
|
|
1899
|
+
/*
|
|
1900
|
+
* Copyright (c) Microsoft Corporation.
|
|
1901
|
+
* Licensed under the MIT License.
|
|
1902
|
+
*
|
|
1903
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1904
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1905
|
+
*/
|
|
1906
|
+
|
|
1907
|
+
var Mappers$2 = /*#__PURE__*/Object.freeze({
|
|
1908
|
+
__proto__: null,
|
|
1909
|
+
AsyncOperationResult: AsyncOperationResult,
|
|
1910
|
+
BaseResource: BaseResource,
|
|
1911
|
+
CertificateProperties: CertificateProperties,
|
|
1912
|
+
CertificateResponse: CertificateResponse,
|
|
1913
|
+
CloudError: CloudError,
|
|
1914
|
+
ErrorDetails: ErrorDetails,
|
|
1915
|
+
ErrorMesssage: ErrorMesssage,
|
|
1916
|
+
GroupIdInformation: GroupIdInformation,
|
|
1917
|
+
GroupIdInformationProperties: GroupIdInformationProperties,
|
|
1918
|
+
IotDpsPropertiesDescription: IotDpsPropertiesDescription,
|
|
1919
|
+
IotDpsSkuDefinition: IotDpsSkuDefinition,
|
|
1920
|
+
IotDpsSkuDefinitionListResult: IotDpsSkuDefinitionListResult,
|
|
1921
|
+
IotDpsSkuInfo: IotDpsSkuInfo,
|
|
1922
|
+
IotHubDefinitionDescription: IotHubDefinitionDescription,
|
|
1923
|
+
IpFilterRule: IpFilterRule,
|
|
1924
|
+
NameAvailabilityInfo: NameAvailabilityInfo,
|
|
1925
|
+
OperationInputs: OperationInputs,
|
|
1926
|
+
PrivateEndpoint: PrivateEndpoint,
|
|
1927
|
+
PrivateEndpointConnection: PrivateEndpointConnection,
|
|
1928
|
+
PrivateEndpointConnectionProperties: PrivateEndpointConnectionProperties,
|
|
1929
|
+
PrivateLinkResources: PrivateLinkResources,
|
|
1930
|
+
PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
|
|
1931
|
+
ProvisioningServiceDescription: ProvisioningServiceDescription,
|
|
1932
|
+
ProvisioningServiceDescriptionListResult: ProvisioningServiceDescriptionListResult,
|
|
1933
|
+
Resource: Resource,
|
|
1934
|
+
SharedAccessSignatureAuthorizationRuleAccessRightsDescription: SharedAccessSignatureAuthorizationRuleAccessRightsDescription,
|
|
1935
|
+
SharedAccessSignatureAuthorizationRuleListResult: SharedAccessSignatureAuthorizationRuleListResult,
|
|
1936
|
+
TagsResource: TagsResource,
|
|
1937
|
+
VerificationCodeResponse: VerificationCodeResponse,
|
|
1938
|
+
VerificationCodeResponseProperties: VerificationCodeResponseProperties
|
|
1939
|
+
});
|
|
1940
|
+
|
|
1941
|
+
/*
|
|
1942
|
+
* Copyright (c) Microsoft Corporation.
|
|
1943
|
+
* Licensed under the MIT License.
|
|
1944
|
+
*
|
|
1945
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1946
|
+
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1947
|
+
* regenerated.
|
|
1948
|
+
*/
|
|
1949
|
+
/** Class representing a IotDpsResource. */
|
|
1950
|
+
var IotDpsResource = /** @class */ (function () {
|
|
1951
|
+
/**
|
|
1952
|
+
* Create a IotDpsResource.
|
|
1953
|
+
* @param {IotDpsClientContext} client Reference to the service client.
|
|
1954
|
+
*/
|
|
1955
|
+
function IotDpsResource(client) {
|
|
1956
|
+
this.client = client;
|
|
1957
|
+
}
|
|
1958
|
+
IotDpsResource.prototype.get = function (provisioningServiceName, resourceGroupName, options, callback) {
|
|
1959
|
+
return this.client.sendOperationRequest({
|
|
1960
|
+
provisioningServiceName: provisioningServiceName,
|
|
1961
|
+
resourceGroupName: resourceGroupName,
|
|
1962
|
+
options: options
|
|
1963
|
+
}, getOperationSpec$1, callback);
|
|
1964
|
+
};
|
|
1965
|
+
/**
|
|
1966
|
+
* Create or update the metadata of the provisioning service. The usual pattern to modify a
|
|
1967
|
+
* property is to retrieve the provisioning service metadata and security metadata, and then
|
|
1968
|
+
* combine them with the modified values in a new body to update the provisioning service.
|
|
1969
|
+
* @summary Create or update the metadata of the provisioning service.
|
|
1970
|
+
* @param resourceGroupName Resource group identifier.
|
|
1971
|
+
* @param provisioningServiceName Name of provisioning service to create or update.
|
|
1972
|
+
* @param iotDpsDescription Description of the provisioning service to create or update.
|
|
1973
|
+
* @param [options] The optional parameters
|
|
1974
|
+
* @returns Promise<Models.IotDpsResourceCreateOrUpdateResponse>
|
|
1975
|
+
*/
|
|
1976
|
+
IotDpsResource.prototype.createOrUpdate = function (resourceGroupName, provisioningServiceName, iotDpsDescription, options) {
|
|
1977
|
+
return this.beginCreateOrUpdate(resourceGroupName, provisioningServiceName, iotDpsDescription, options)
|
|
1978
|
+
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
1979
|
+
};
|
|
1980
|
+
/**
|
|
1981
|
+
* Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate
|
|
1982
|
+
* method
|
|
1983
|
+
* @summary Update an existing provisioning service's tags.
|
|
1984
|
+
* @param resourceGroupName Resource group identifier.
|
|
1985
|
+
* @param provisioningServiceName Name of provisioning service to create or update.
|
|
1986
|
+
* @param provisioningServiceTags Updated tag information to set into the provisioning service
|
|
1987
|
+
* instance.
|
|
1988
|
+
* @param [options] The optional parameters
|
|
1989
|
+
* @returns Promise<Models.IotDpsResourceUpdateResponse>
|
|
1990
|
+
*/
|
|
1991
|
+
IotDpsResource.prototype.update = function (resourceGroupName, provisioningServiceName, provisioningServiceTags, options) {
|
|
1992
|
+
return this.beginUpdate(resourceGroupName, provisioningServiceName, provisioningServiceTags, options)
|
|
1993
|
+
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
1994
|
+
};
|
|
1995
|
+
/**
|
|
1996
|
+
* Deletes the Provisioning Service.
|
|
1997
|
+
* @summary Delete the Provisioning Service
|
|
1998
|
+
* @param provisioningServiceName Name of provisioning service to delete.
|
|
1999
|
+
* @param resourceGroupName Resource group identifier.
|
|
2000
|
+
* @param [options] The optional parameters
|
|
2001
|
+
* @returns Promise<msRest.RestResponse>
|
|
2002
|
+
*/
|
|
2003
|
+
IotDpsResource.prototype.deleteMethod = function (provisioningServiceName, resourceGroupName, options) {
|
|
2004
|
+
return this.beginDeleteMethod(provisioningServiceName, resourceGroupName, options)
|
|
2005
|
+
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
2006
|
+
};
|
|
2007
|
+
IotDpsResource.prototype.listBySubscription = function (options, callback) {
|
|
2008
|
+
return this.client.sendOperationRequest({
|
|
2009
|
+
options: options
|
|
2010
|
+
}, listBySubscriptionOperationSpec, callback);
|
|
2011
|
+
};
|
|
2012
|
+
IotDpsResource.prototype.listByResourceGroup = function (resourceGroupName, options, callback) {
|
|
2013
|
+
return this.client.sendOperationRequest({
|
|
2014
|
+
resourceGroupName: resourceGroupName,
|
|
2015
|
+
options: options
|
|
2016
|
+
}, listByResourceGroupOperationSpec, callback);
|
|
2017
|
+
};
|
|
2018
|
+
IotDpsResource.prototype.getOperationResult = function (operationId, resourceGroupName, provisioningServiceName, asyncinfo, options, callback) {
|
|
2019
|
+
return this.client.sendOperationRequest({
|
|
2020
|
+
operationId: operationId,
|
|
2021
|
+
resourceGroupName: resourceGroupName,
|
|
2022
|
+
provisioningServiceName: provisioningServiceName,
|
|
2023
|
+
asyncinfo: asyncinfo,
|
|
2024
|
+
options: options
|
|
2025
|
+
}, getOperationResultOperationSpec, callback);
|
|
2026
|
+
};
|
|
2027
|
+
IotDpsResource.prototype.listValidSkus = function (provisioningServiceName, resourceGroupName, options, callback) {
|
|
2028
|
+
return this.client.sendOperationRequest({
|
|
2029
|
+
provisioningServiceName: provisioningServiceName,
|
|
2030
|
+
resourceGroupName: resourceGroupName,
|
|
2031
|
+
options: options
|
|
2032
|
+
}, listValidSkusOperationSpec, callback);
|
|
2033
|
+
};
|
|
2034
|
+
IotDpsResource.prototype.checkProvisioningServiceNameAvailability = function (argumentsParameter, options, callback) {
|
|
2035
|
+
return this.client.sendOperationRequest({
|
|
2036
|
+
argumentsParameter: argumentsParameter,
|
|
2037
|
+
options: options
|
|
2038
|
+
}, checkProvisioningServiceNameAvailabilityOperationSpec, callback);
|
|
2039
|
+
};
|
|
2040
|
+
IotDpsResource.prototype.listKeys = function (provisioningServiceName, resourceGroupName, options, callback) {
|
|
2041
|
+
return this.client.sendOperationRequest({
|
|
2042
|
+
provisioningServiceName: provisioningServiceName,
|
|
2043
|
+
resourceGroupName: resourceGroupName,
|
|
2044
|
+
options: options
|
|
2045
|
+
}, listKeysOperationSpec, callback);
|
|
2046
|
+
};
|
|
2047
|
+
IotDpsResource.prototype.listKeysForKeyName = function (provisioningServiceName, keyName, resourceGroupName, options, callback) {
|
|
2048
|
+
return this.client.sendOperationRequest({
|
|
2049
|
+
provisioningServiceName: provisioningServiceName,
|
|
2050
|
+
keyName: keyName,
|
|
2051
|
+
resourceGroupName: resourceGroupName,
|
|
2052
|
+
options: options
|
|
2053
|
+
}, listKeysForKeyNameOperationSpec, callback);
|
|
2054
|
+
};
|
|
2055
|
+
IotDpsResource.prototype.listPrivateLinkResources = function (resourceGroupName, resourceName, options, callback) {
|
|
2056
|
+
return this.client.sendOperationRequest({
|
|
2057
|
+
resourceGroupName: resourceGroupName,
|
|
2058
|
+
resourceName: resourceName,
|
|
2059
|
+
options: options
|
|
2060
|
+
}, listPrivateLinkResourcesOperationSpec, callback);
|
|
2061
|
+
};
|
|
2062
|
+
IotDpsResource.prototype.getPrivateLinkResources = function (resourceGroupName, resourceName, groupId, options, callback) {
|
|
2063
|
+
return this.client.sendOperationRequest({
|
|
2064
|
+
resourceGroupName: resourceGroupName,
|
|
2065
|
+
resourceName: resourceName,
|
|
2066
|
+
groupId: groupId,
|
|
2067
|
+
options: options
|
|
2068
|
+
}, getPrivateLinkResourcesOperationSpec, callback);
|
|
2069
|
+
};
|
|
2070
|
+
IotDpsResource.prototype.listPrivateEndpointConnections = function (resourceGroupName, resourceName, options, callback) {
|
|
2071
|
+
return this.client.sendOperationRequest({
|
|
2072
|
+
resourceGroupName: resourceGroupName,
|
|
2073
|
+
resourceName: resourceName,
|
|
2074
|
+
options: options
|
|
2075
|
+
}, listPrivateEndpointConnectionsOperationSpec, callback);
|
|
2076
|
+
};
|
|
2077
|
+
IotDpsResource.prototype.getPrivateEndpointConnection = function (resourceGroupName, resourceName, privateEndpointConnectionName, options, callback) {
|
|
2078
|
+
return this.client.sendOperationRequest({
|
|
2079
|
+
resourceGroupName: resourceGroupName,
|
|
2080
|
+
resourceName: resourceName,
|
|
2081
|
+
privateEndpointConnectionName: privateEndpointConnectionName,
|
|
2082
|
+
options: options
|
|
2083
|
+
}, getPrivateEndpointConnectionOperationSpec, callback);
|
|
2084
|
+
};
|
|
2085
|
+
/**
|
|
2086
|
+
* Create or update the status of a private endpoint connection with the specified name
|
|
2087
|
+
* @summary Create or update private endpoint connection
|
|
2088
|
+
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
2089
|
+
* @param resourceName The name of the provisioning service.
|
|
2090
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection
|
|
2091
|
+
* @param privateEndpointConnection The private endpoint connection with updated properties
|
|
2092
|
+
* @param [options] The optional parameters
|
|
2093
|
+
* @returns Promise<Models.IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>
|
|
2094
|
+
*/
|
|
2095
|
+
IotDpsResource.prototype.createOrUpdatePrivateEndpointConnection = function (resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options) {
|
|
2096
|
+
return this.beginCreateOrUpdatePrivateEndpointConnection(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options)
|
|
2097
|
+
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
2098
|
+
};
|
|
2099
|
+
/**
|
|
2100
|
+
* Delete private endpoint connection with the specified name
|
|
2101
|
+
* @summary Delete private endpoint connection
|
|
2102
|
+
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
2103
|
+
* @param resourceName The name of the provisioning service.
|
|
2104
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection
|
|
2105
|
+
* @param [options] The optional parameters
|
|
2106
|
+
* @returns Promise<Models.IotDpsResourceDeletePrivateEndpointConnectionResponse>
|
|
2107
|
+
*/
|
|
2108
|
+
IotDpsResource.prototype.deletePrivateEndpointConnection = function (resourceGroupName, resourceName, privateEndpointConnectionName, options) {
|
|
2109
|
+
return this.beginDeletePrivateEndpointConnection(resourceGroupName, resourceName, privateEndpointConnectionName, options)
|
|
2110
|
+
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
2111
|
+
};
|
|
2112
|
+
/**
|
|
2113
|
+
* Create or update the metadata of the provisioning service. The usual pattern to modify a
|
|
2114
|
+
* property is to retrieve the provisioning service metadata and security metadata, and then
|
|
2115
|
+
* combine them with the modified values in a new body to update the provisioning service.
|
|
2116
|
+
* @summary Create or update the metadata of the provisioning service.
|
|
2117
|
+
* @param resourceGroupName Resource group identifier.
|
|
2118
|
+
* @param provisioningServiceName Name of provisioning service to create or update.
|
|
2119
|
+
* @param iotDpsDescription Description of the provisioning service to create or update.
|
|
2120
|
+
* @param [options] The optional parameters
|
|
2121
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
2122
|
+
*/
|
|
2123
|
+
IotDpsResource.prototype.beginCreateOrUpdate = function (resourceGroupName, provisioningServiceName, iotDpsDescription, options) {
|
|
2124
|
+
return this.client.sendLRORequest({
|
|
2125
|
+
resourceGroupName: resourceGroupName,
|
|
2126
|
+
provisioningServiceName: provisioningServiceName,
|
|
2127
|
+
iotDpsDescription: iotDpsDescription,
|
|
2128
|
+
options: options
|
|
2129
|
+
}, beginCreateOrUpdateOperationSpec, options);
|
|
2130
|
+
};
|
|
2131
|
+
/**
|
|
2132
|
+
* Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate
|
|
2133
|
+
* method
|
|
2134
|
+
* @summary Update an existing provisioning service's tags.
|
|
2135
|
+
* @param resourceGroupName Resource group identifier.
|
|
2136
|
+
* @param provisioningServiceName Name of provisioning service to create or update.
|
|
2137
|
+
* @param provisioningServiceTags Updated tag information to set into the provisioning service
|
|
2138
|
+
* instance.
|
|
2139
|
+
* @param [options] The optional parameters
|
|
2140
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
2141
|
+
*/
|
|
2142
|
+
IotDpsResource.prototype.beginUpdate = function (resourceGroupName, provisioningServiceName, provisioningServiceTags, options) {
|
|
2143
|
+
return this.client.sendLRORequest({
|
|
2144
|
+
resourceGroupName: resourceGroupName,
|
|
2145
|
+
provisioningServiceName: provisioningServiceName,
|
|
2146
|
+
provisioningServiceTags: provisioningServiceTags,
|
|
2147
|
+
options: options
|
|
2148
|
+
}, beginUpdateOperationSpec, options);
|
|
2149
|
+
};
|
|
2150
|
+
/**
|
|
2151
|
+
* Deletes the Provisioning Service.
|
|
2152
|
+
* @summary Delete the Provisioning Service
|
|
2153
|
+
* @param provisioningServiceName Name of provisioning service to delete.
|
|
2154
|
+
* @param resourceGroupName Resource group identifier.
|
|
2155
|
+
* @param [options] The optional parameters
|
|
2156
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
2157
|
+
*/
|
|
2158
|
+
IotDpsResource.prototype.beginDeleteMethod = function (provisioningServiceName, resourceGroupName, options) {
|
|
2159
|
+
return this.client.sendLRORequest({
|
|
2160
|
+
provisioningServiceName: provisioningServiceName,
|
|
2161
|
+
resourceGroupName: resourceGroupName,
|
|
2162
|
+
options: options
|
|
2163
|
+
}, beginDeleteMethodOperationSpec, options);
|
|
2164
|
+
};
|
|
2165
|
+
/**
|
|
2166
|
+
* Create or update the status of a private endpoint connection with the specified name
|
|
2167
|
+
* @summary Create or update private endpoint connection
|
|
2168
|
+
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
2169
|
+
* @param resourceName The name of the provisioning service.
|
|
2170
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection
|
|
2171
|
+
* @param privateEndpointConnection The private endpoint connection with updated properties
|
|
2172
|
+
* @param [options] The optional parameters
|
|
2173
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
2174
|
+
*/
|
|
2175
|
+
IotDpsResource.prototype.beginCreateOrUpdatePrivateEndpointConnection = function (resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options) {
|
|
2176
|
+
return this.client.sendLRORequest({
|
|
2177
|
+
resourceGroupName: resourceGroupName,
|
|
2178
|
+
resourceName: resourceName,
|
|
2179
|
+
privateEndpointConnectionName: privateEndpointConnectionName,
|
|
2180
|
+
privateEndpointConnection: privateEndpointConnection,
|
|
2181
|
+
options: options
|
|
2182
|
+
}, beginCreateOrUpdatePrivateEndpointConnectionOperationSpec, options);
|
|
2183
|
+
};
|
|
2184
|
+
/**
|
|
2185
|
+
* Delete private endpoint connection with the specified name
|
|
2186
|
+
* @summary Delete private endpoint connection
|
|
2187
|
+
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
2188
|
+
* @param resourceName The name of the provisioning service.
|
|
2189
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection
|
|
2190
|
+
* @param [options] The optional parameters
|
|
2191
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
2192
|
+
*/
|
|
2193
|
+
IotDpsResource.prototype.beginDeletePrivateEndpointConnection = function (resourceGroupName, resourceName, privateEndpointConnectionName, options) {
|
|
2194
|
+
return this.client.sendLRORequest({
|
|
2195
|
+
resourceGroupName: resourceGroupName,
|
|
2196
|
+
resourceName: resourceName,
|
|
2197
|
+
privateEndpointConnectionName: privateEndpointConnectionName,
|
|
2198
|
+
options: options
|
|
2199
|
+
}, beginDeletePrivateEndpointConnectionOperationSpec, options);
|
|
2200
|
+
};
|
|
2201
|
+
IotDpsResource.prototype.listBySubscriptionNext = function (nextPageLink, options, callback) {
|
|
2202
|
+
return this.client.sendOperationRequest({
|
|
2203
|
+
nextPageLink: nextPageLink,
|
|
2204
|
+
options: options
|
|
2205
|
+
}, listBySubscriptionNextOperationSpec, callback);
|
|
2206
|
+
};
|
|
2207
|
+
IotDpsResource.prototype.listByResourceGroupNext = function (nextPageLink, options, callback) {
|
|
2208
|
+
return this.client.sendOperationRequest({
|
|
2209
|
+
nextPageLink: nextPageLink,
|
|
2210
|
+
options: options
|
|
2211
|
+
}, listByResourceGroupNextOperationSpec, callback);
|
|
2212
|
+
};
|
|
2213
|
+
IotDpsResource.prototype.listValidSkusNext = function (nextPageLink, options, callback) {
|
|
2214
|
+
return this.client.sendOperationRequest({
|
|
2215
|
+
nextPageLink: nextPageLink,
|
|
2216
|
+
options: options
|
|
2217
|
+
}, listValidSkusNextOperationSpec, callback);
|
|
2218
|
+
};
|
|
2219
|
+
IotDpsResource.prototype.listKeysNext = function (nextPageLink, options, callback) {
|
|
2220
|
+
return this.client.sendOperationRequest({
|
|
2221
|
+
nextPageLink: nextPageLink,
|
|
2222
|
+
options: options
|
|
2223
|
+
}, listKeysNextOperationSpec, callback);
|
|
2224
|
+
};
|
|
2225
|
+
return IotDpsResource;
|
|
2226
|
+
}());
|
|
2227
|
+
// Operation Specifications
|
|
2228
|
+
var serializer$2 = new msRest.Serializer(Mappers$2);
|
|
2229
|
+
var getOperationSpec$1 = {
|
|
2230
|
+
httpMethod: "GET",
|
|
2231
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
|
|
2232
|
+
urlParameters: [
|
|
2233
|
+
provisioningServiceName,
|
|
2234
|
+
subscriptionId,
|
|
2235
|
+
resourceGroupName
|
|
2236
|
+
],
|
|
2237
|
+
queryParameters: [
|
|
2238
|
+
apiVersion
|
|
2239
|
+
],
|
|
2240
|
+
headerParameters: [
|
|
2241
|
+
acceptLanguage
|
|
2242
|
+
],
|
|
2243
|
+
responses: {
|
|
2244
|
+
200: {
|
|
2245
|
+
bodyMapper: ProvisioningServiceDescription
|
|
2246
|
+
},
|
|
2247
|
+
default: {
|
|
2248
|
+
bodyMapper: ErrorDetails
|
|
2249
|
+
}
|
|
2250
|
+
},
|
|
2251
|
+
serializer: serializer$2
|
|
2252
|
+
};
|
|
2253
|
+
var listBySubscriptionOperationSpec = {
|
|
2254
|
+
httpMethod: "GET",
|
|
2255
|
+
path: "subscriptions/{subscriptionId}/providers/Microsoft.Devices/provisioningServices",
|
|
2256
|
+
urlParameters: [
|
|
2257
|
+
subscriptionId
|
|
2258
|
+
],
|
|
2259
|
+
queryParameters: [
|
|
2260
|
+
apiVersion
|
|
2261
|
+
],
|
|
2262
|
+
headerParameters: [
|
|
2263
|
+
acceptLanguage
|
|
2264
|
+
],
|
|
2265
|
+
responses: {
|
|
2266
|
+
200: {
|
|
2267
|
+
bodyMapper: ProvisioningServiceDescriptionListResult
|
|
2268
|
+
},
|
|
2269
|
+
default: {
|
|
2270
|
+
bodyMapper: ErrorDetails
|
|
2271
|
+
}
|
|
2272
|
+
},
|
|
2273
|
+
serializer: serializer$2
|
|
2274
|
+
};
|
|
2275
|
+
var listByResourceGroupOperationSpec = {
|
|
2276
|
+
httpMethod: "GET",
|
|
2277
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices",
|
|
2278
|
+
urlParameters: [
|
|
2279
|
+
subscriptionId,
|
|
2280
|
+
resourceGroupName
|
|
2281
|
+
],
|
|
2282
|
+
queryParameters: [
|
|
2283
|
+
apiVersion
|
|
2284
|
+
],
|
|
2285
|
+
headerParameters: [
|
|
2286
|
+
acceptLanguage
|
|
2287
|
+
],
|
|
2288
|
+
responses: {
|
|
2289
|
+
200: {
|
|
2290
|
+
bodyMapper: ProvisioningServiceDescriptionListResult
|
|
2291
|
+
},
|
|
2292
|
+
default: {
|
|
2293
|
+
bodyMapper: ErrorDetails
|
|
2294
|
+
}
|
|
2295
|
+
},
|
|
2296
|
+
serializer: serializer$2
|
|
2297
|
+
};
|
|
2298
|
+
var getOperationResultOperationSpec = {
|
|
2299
|
+
httpMethod: "GET",
|
|
2300
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/operationresults/{operationId}",
|
|
2301
|
+
urlParameters: [
|
|
2302
|
+
operationId,
|
|
2303
|
+
subscriptionId,
|
|
2304
|
+
resourceGroupName,
|
|
2305
|
+
provisioningServiceName
|
|
2306
|
+
],
|
|
2307
|
+
queryParameters: [
|
|
2308
|
+
asyncinfo,
|
|
2309
|
+
apiVersion
|
|
2310
|
+
],
|
|
2311
|
+
headerParameters: [
|
|
2312
|
+
acceptLanguage
|
|
2313
|
+
],
|
|
2314
|
+
responses: {
|
|
2315
|
+
200: {
|
|
2316
|
+
bodyMapper: AsyncOperationResult
|
|
2317
|
+
},
|
|
2318
|
+
default: {
|
|
2319
|
+
bodyMapper: ErrorDetails
|
|
2320
|
+
}
|
|
2321
|
+
},
|
|
2322
|
+
serializer: serializer$2
|
|
2323
|
+
};
|
|
2324
|
+
var listValidSkusOperationSpec = {
|
|
2325
|
+
httpMethod: "GET",
|
|
2326
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/skus",
|
|
2327
|
+
urlParameters: [
|
|
2328
|
+
provisioningServiceName,
|
|
2329
|
+
subscriptionId,
|
|
2330
|
+
resourceGroupName
|
|
2331
|
+
],
|
|
2332
|
+
queryParameters: [
|
|
2333
|
+
apiVersion
|
|
2334
|
+
],
|
|
2335
|
+
headerParameters: [
|
|
2336
|
+
acceptLanguage
|
|
2337
|
+
],
|
|
2338
|
+
responses: {
|
|
2339
|
+
200: {
|
|
2340
|
+
bodyMapper: IotDpsSkuDefinitionListResult
|
|
2341
|
+
},
|
|
2342
|
+
default: {
|
|
2343
|
+
bodyMapper: ErrorDetails
|
|
2344
|
+
}
|
|
2345
|
+
},
|
|
2346
|
+
serializer: serializer$2
|
|
2347
|
+
};
|
|
2348
|
+
var checkProvisioningServiceNameAvailabilityOperationSpec = {
|
|
2349
|
+
httpMethod: "POST",
|
|
2350
|
+
path: "subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability",
|
|
2351
|
+
urlParameters: [
|
|
2352
|
+
subscriptionId
|
|
2353
|
+
],
|
|
2354
|
+
queryParameters: [
|
|
2355
|
+
apiVersion
|
|
2356
|
+
],
|
|
2357
|
+
headerParameters: [
|
|
2358
|
+
acceptLanguage
|
|
2359
|
+
],
|
|
2360
|
+
requestBody: {
|
|
2361
|
+
parameterPath: "argumentsParameter",
|
|
2362
|
+
mapper: __assign(__assign({}, OperationInputs), { required: true })
|
|
2363
|
+
},
|
|
2364
|
+
responses: {
|
|
2365
|
+
200: {
|
|
2366
|
+
bodyMapper: NameAvailabilityInfo
|
|
2367
|
+
},
|
|
2368
|
+
default: {
|
|
2369
|
+
bodyMapper: ErrorDetails
|
|
2370
|
+
}
|
|
2371
|
+
},
|
|
2372
|
+
serializer: serializer$2
|
|
2373
|
+
};
|
|
2374
|
+
var listKeysOperationSpec = {
|
|
2375
|
+
httpMethod: "POST",
|
|
2376
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/listkeys",
|
|
2377
|
+
urlParameters: [
|
|
2378
|
+
provisioningServiceName,
|
|
2379
|
+
subscriptionId,
|
|
2380
|
+
resourceGroupName
|
|
2381
|
+
],
|
|
2382
|
+
queryParameters: [
|
|
2383
|
+
apiVersion
|
|
2384
|
+
],
|
|
2385
|
+
headerParameters: [
|
|
2386
|
+
acceptLanguage
|
|
2387
|
+
],
|
|
2388
|
+
responses: {
|
|
2389
|
+
200: {
|
|
2390
|
+
bodyMapper: SharedAccessSignatureAuthorizationRuleListResult
|
|
2391
|
+
},
|
|
2392
|
+
default: {
|
|
2393
|
+
bodyMapper: ErrorDetails
|
|
2394
|
+
}
|
|
2395
|
+
},
|
|
2396
|
+
serializer: serializer$2
|
|
2397
|
+
};
|
|
2398
|
+
var listKeysForKeyNameOperationSpec = {
|
|
2399
|
+
httpMethod: "POST",
|
|
2400
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/keys/{keyName}/listkeys",
|
|
2401
|
+
urlParameters: [
|
|
2402
|
+
provisioningServiceName,
|
|
2403
|
+
keyName,
|
|
2404
|
+
subscriptionId,
|
|
2405
|
+
resourceGroupName
|
|
2406
|
+
],
|
|
2407
|
+
queryParameters: [
|
|
2408
|
+
apiVersion
|
|
2409
|
+
],
|
|
2410
|
+
headerParameters: [
|
|
2411
|
+
acceptLanguage
|
|
2412
|
+
],
|
|
2413
|
+
responses: {
|
|
2414
|
+
200: {
|
|
2415
|
+
bodyMapper: SharedAccessSignatureAuthorizationRuleAccessRightsDescription
|
|
2416
|
+
},
|
|
2417
|
+
default: {
|
|
2418
|
+
bodyMapper: ErrorDetails
|
|
2419
|
+
}
|
|
2420
|
+
},
|
|
2421
|
+
serializer: serializer$2
|
|
2422
|
+
};
|
|
2423
|
+
var listPrivateLinkResourcesOperationSpec = {
|
|
2424
|
+
httpMethod: "GET",
|
|
2425
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateLinkResources",
|
|
2426
|
+
urlParameters: [
|
|
2427
|
+
subscriptionId,
|
|
2428
|
+
resourceGroupName,
|
|
2429
|
+
resourceName
|
|
2430
|
+
],
|
|
2431
|
+
queryParameters: [
|
|
2432
|
+
apiVersion
|
|
2433
|
+
],
|
|
2434
|
+
headerParameters: [
|
|
2435
|
+
acceptLanguage
|
|
2436
|
+
],
|
|
2437
|
+
responses: {
|
|
2438
|
+
200: {
|
|
2439
|
+
bodyMapper: PrivateLinkResources
|
|
2440
|
+
},
|
|
2441
|
+
default: {
|
|
2442
|
+
bodyMapper: ErrorDetails
|
|
2443
|
+
}
|
|
2444
|
+
},
|
|
2445
|
+
serializer: serializer$2
|
|
2446
|
+
};
|
|
2447
|
+
var getPrivateLinkResourcesOperationSpec = {
|
|
2448
|
+
httpMethod: "GET",
|
|
2449
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateLinkResources/{groupId}",
|
|
2450
|
+
urlParameters: [
|
|
2451
|
+
subscriptionId,
|
|
2452
|
+
resourceGroupName,
|
|
2453
|
+
resourceName,
|
|
2454
|
+
groupId
|
|
2455
|
+
],
|
|
2456
|
+
queryParameters: [
|
|
2457
|
+
apiVersion
|
|
2458
|
+
],
|
|
2459
|
+
headerParameters: [
|
|
2460
|
+
acceptLanguage
|
|
2461
|
+
],
|
|
2462
|
+
responses: {
|
|
2463
|
+
200: {
|
|
2464
|
+
bodyMapper: GroupIdInformation
|
|
2465
|
+
},
|
|
2466
|
+
default: {
|
|
2467
|
+
bodyMapper: ErrorDetails
|
|
2468
|
+
}
|
|
2469
|
+
},
|
|
2470
|
+
serializer: serializer$2
|
|
2471
|
+
};
|
|
2472
|
+
var listPrivateEndpointConnectionsOperationSpec = {
|
|
2473
|
+
httpMethod: "GET",
|
|
2474
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections",
|
|
2475
|
+
urlParameters: [
|
|
2476
|
+
subscriptionId,
|
|
2477
|
+
resourceGroupName,
|
|
2478
|
+
resourceName
|
|
2479
|
+
],
|
|
2480
|
+
queryParameters: [
|
|
2481
|
+
apiVersion
|
|
2482
|
+
],
|
|
2483
|
+
headerParameters: [
|
|
2484
|
+
acceptLanguage
|
|
2485
|
+
],
|
|
2486
|
+
responses: {
|
|
2487
|
+
200: {
|
|
2488
|
+
bodyMapper: {
|
|
2489
|
+
serializedName: "parsedResponse",
|
|
2490
|
+
type: {
|
|
2491
|
+
name: "Sequence",
|
|
2492
|
+
element: {
|
|
2493
|
+
type: {
|
|
2494
|
+
name: "Composite",
|
|
2495
|
+
className: "PrivateEndpointConnection"
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
}
|
|
2499
|
+
}
|
|
2500
|
+
},
|
|
2501
|
+
default: {
|
|
2502
|
+
bodyMapper: ErrorDetails
|
|
2503
|
+
}
|
|
2504
|
+
},
|
|
2505
|
+
serializer: serializer$2
|
|
2506
|
+
};
|
|
2507
|
+
var getPrivateEndpointConnectionOperationSpec = {
|
|
2508
|
+
httpMethod: "GET",
|
|
2509
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2510
|
+
urlParameters: [
|
|
2511
|
+
subscriptionId,
|
|
2512
|
+
resourceGroupName,
|
|
2513
|
+
resourceName,
|
|
2514
|
+
privateEndpointConnectionName
|
|
2515
|
+
],
|
|
2516
|
+
queryParameters: [
|
|
2517
|
+
apiVersion
|
|
2518
|
+
],
|
|
2519
|
+
headerParameters: [
|
|
2520
|
+
acceptLanguage
|
|
2521
|
+
],
|
|
2522
|
+
responses: {
|
|
2523
|
+
200: {
|
|
2524
|
+
bodyMapper: PrivateEndpointConnection
|
|
2525
|
+
},
|
|
2526
|
+
default: {
|
|
2527
|
+
bodyMapper: ErrorDetails
|
|
2528
|
+
}
|
|
2529
|
+
},
|
|
2530
|
+
serializer: serializer$2
|
|
2531
|
+
};
|
|
2532
|
+
var beginCreateOrUpdateOperationSpec = {
|
|
2533
|
+
httpMethod: "PUT",
|
|
2534
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
|
|
2535
|
+
urlParameters: [
|
|
2536
|
+
subscriptionId,
|
|
2537
|
+
resourceGroupName,
|
|
2538
|
+
provisioningServiceName
|
|
2539
|
+
],
|
|
2540
|
+
queryParameters: [
|
|
2541
|
+
apiVersion
|
|
2542
|
+
],
|
|
2543
|
+
headerParameters: [
|
|
2544
|
+
acceptLanguage
|
|
2545
|
+
],
|
|
2546
|
+
requestBody: {
|
|
2547
|
+
parameterPath: "iotDpsDescription",
|
|
2548
|
+
mapper: __assign(__assign({}, ProvisioningServiceDescription), { required: true })
|
|
2549
|
+
},
|
|
2550
|
+
responses: {
|
|
2551
|
+
200: {
|
|
2552
|
+
bodyMapper: ProvisioningServiceDescription
|
|
2553
|
+
},
|
|
2554
|
+
201: {
|
|
2555
|
+
bodyMapper: ProvisioningServiceDescription
|
|
2556
|
+
},
|
|
2557
|
+
default: {
|
|
2558
|
+
bodyMapper: ErrorDetails
|
|
2559
|
+
}
|
|
2560
|
+
},
|
|
2561
|
+
serializer: serializer$2
|
|
2562
|
+
};
|
|
2563
|
+
var beginUpdateOperationSpec = {
|
|
2564
|
+
httpMethod: "PATCH",
|
|
2565
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
|
|
2566
|
+
urlParameters: [
|
|
2567
|
+
subscriptionId,
|
|
2568
|
+
resourceGroupName,
|
|
2569
|
+
provisioningServiceName
|
|
2570
|
+
],
|
|
2571
|
+
queryParameters: [
|
|
2572
|
+
apiVersion
|
|
2573
|
+
],
|
|
2574
|
+
headerParameters: [
|
|
2575
|
+
acceptLanguage
|
|
2576
|
+
],
|
|
2577
|
+
requestBody: {
|
|
2578
|
+
parameterPath: "provisioningServiceTags",
|
|
2579
|
+
mapper: __assign(__assign({}, TagsResource), { required: true })
|
|
2580
|
+
},
|
|
2581
|
+
responses: {
|
|
2582
|
+
200: {
|
|
2583
|
+
bodyMapper: ProvisioningServiceDescription
|
|
2584
|
+
},
|
|
2585
|
+
default: {
|
|
2586
|
+
bodyMapper: CloudError
|
|
2587
|
+
}
|
|
2588
|
+
},
|
|
2589
|
+
serializer: serializer$2
|
|
2590
|
+
};
|
|
2591
|
+
var beginDeleteMethodOperationSpec = {
|
|
2592
|
+
httpMethod: "DELETE",
|
|
2593
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
|
|
2594
|
+
urlParameters: [
|
|
2595
|
+
provisioningServiceName,
|
|
2596
|
+
subscriptionId,
|
|
2597
|
+
resourceGroupName
|
|
2598
|
+
],
|
|
2599
|
+
queryParameters: [
|
|
2600
|
+
apiVersion
|
|
2601
|
+
],
|
|
2602
|
+
headerParameters: [
|
|
2603
|
+
acceptLanguage
|
|
2604
|
+
],
|
|
2605
|
+
responses: {
|
|
2606
|
+
200: {},
|
|
2607
|
+
202: {},
|
|
2608
|
+
204: {},
|
|
2609
|
+
404: {},
|
|
2610
|
+
default: {
|
|
2611
|
+
bodyMapper: ErrorDetails
|
|
2612
|
+
}
|
|
2613
|
+
},
|
|
2614
|
+
serializer: serializer$2
|
|
2615
|
+
};
|
|
2616
|
+
var beginCreateOrUpdatePrivateEndpointConnectionOperationSpec = {
|
|
2617
|
+
httpMethod: "PUT",
|
|
2618
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2619
|
+
urlParameters: [
|
|
2620
|
+
subscriptionId,
|
|
2621
|
+
resourceGroupName,
|
|
2622
|
+
resourceName,
|
|
2623
|
+
privateEndpointConnectionName
|
|
2624
|
+
],
|
|
2625
|
+
queryParameters: [
|
|
2626
|
+
apiVersion
|
|
2627
|
+
],
|
|
2628
|
+
headerParameters: [
|
|
2629
|
+
acceptLanguage
|
|
2630
|
+
],
|
|
2631
|
+
requestBody: {
|
|
2632
|
+
parameterPath: "privateEndpointConnection",
|
|
2633
|
+
mapper: __assign(__assign({}, PrivateEndpointConnection), { required: true })
|
|
2634
|
+
},
|
|
2635
|
+
responses: {
|
|
2636
|
+
200: {
|
|
2637
|
+
bodyMapper: PrivateEndpointConnection
|
|
2638
|
+
},
|
|
2639
|
+
201: {
|
|
2640
|
+
bodyMapper: PrivateEndpointConnection
|
|
2641
|
+
},
|
|
2642
|
+
default: {
|
|
2643
|
+
bodyMapper: ErrorDetails
|
|
2644
|
+
}
|
|
2645
|
+
},
|
|
2646
|
+
serializer: serializer$2
|
|
2647
|
+
};
|
|
2648
|
+
var beginDeletePrivateEndpointConnectionOperationSpec = {
|
|
2649
|
+
httpMethod: "DELETE",
|
|
2650
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2651
|
+
urlParameters: [
|
|
2652
|
+
subscriptionId,
|
|
2653
|
+
resourceGroupName,
|
|
2654
|
+
resourceName,
|
|
2655
|
+
privateEndpointConnectionName
|
|
2656
|
+
],
|
|
2657
|
+
queryParameters: [
|
|
2658
|
+
apiVersion
|
|
2659
|
+
],
|
|
2660
|
+
headerParameters: [
|
|
2661
|
+
acceptLanguage
|
|
2662
|
+
],
|
|
2663
|
+
responses: {
|
|
2664
|
+
200: {
|
|
2665
|
+
bodyMapper: PrivateEndpointConnection
|
|
2666
|
+
},
|
|
2667
|
+
202: {
|
|
2668
|
+
bodyMapper: PrivateEndpointConnection
|
|
2669
|
+
},
|
|
2670
|
+
204: {},
|
|
2671
|
+
default: {
|
|
2672
|
+
bodyMapper: ErrorDetails
|
|
2673
|
+
}
|
|
2674
|
+
},
|
|
2675
|
+
serializer: serializer$2
|
|
2676
|
+
};
|
|
2677
|
+
var listBySubscriptionNextOperationSpec = {
|
|
2678
|
+
httpMethod: "GET",
|
|
2679
|
+
baseUrl: "https://management.azure.com",
|
|
2680
|
+
path: "{nextLink}",
|
|
2681
|
+
urlParameters: [
|
|
2682
|
+
nextPageLink
|
|
2683
|
+
],
|
|
2684
|
+
queryParameters: [
|
|
2685
|
+
apiVersion
|
|
2686
|
+
],
|
|
2687
|
+
headerParameters: [
|
|
2688
|
+
acceptLanguage
|
|
2689
|
+
],
|
|
2690
|
+
responses: {
|
|
2691
|
+
200: {
|
|
2692
|
+
bodyMapper: ProvisioningServiceDescriptionListResult
|
|
2693
|
+
},
|
|
2694
|
+
default: {
|
|
2695
|
+
bodyMapper: ErrorDetails
|
|
2696
|
+
}
|
|
2697
|
+
},
|
|
2698
|
+
serializer: serializer$2
|
|
2699
|
+
};
|
|
2700
|
+
var listByResourceGroupNextOperationSpec = {
|
|
2701
|
+
httpMethod: "GET",
|
|
2702
|
+
baseUrl: "https://management.azure.com",
|
|
2703
|
+
path: "{nextLink}",
|
|
2704
|
+
urlParameters: [
|
|
2705
|
+
nextPageLink
|
|
2706
|
+
],
|
|
2707
|
+
queryParameters: [
|
|
2708
|
+
apiVersion
|
|
2709
|
+
],
|
|
2710
|
+
headerParameters: [
|
|
2711
|
+
acceptLanguage
|
|
2712
|
+
],
|
|
2713
|
+
responses: {
|
|
2714
|
+
200: {
|
|
2715
|
+
bodyMapper: ProvisioningServiceDescriptionListResult
|
|
2716
|
+
},
|
|
2717
|
+
default: {
|
|
2718
|
+
bodyMapper: ErrorDetails
|
|
2719
|
+
}
|
|
2720
|
+
},
|
|
2721
|
+
serializer: serializer$2
|
|
2722
|
+
};
|
|
2723
|
+
var listValidSkusNextOperationSpec = {
|
|
2724
|
+
httpMethod: "GET",
|
|
2725
|
+
baseUrl: "https://management.azure.com",
|
|
2726
|
+
path: "{nextLink}",
|
|
2727
|
+
urlParameters: [
|
|
2728
|
+
nextPageLink
|
|
2729
|
+
],
|
|
2730
|
+
queryParameters: [
|
|
2731
|
+
apiVersion
|
|
2732
|
+
],
|
|
2733
|
+
headerParameters: [
|
|
2734
|
+
acceptLanguage
|
|
2735
|
+
],
|
|
2736
|
+
responses: {
|
|
2737
|
+
200: {
|
|
2738
|
+
bodyMapper: IotDpsSkuDefinitionListResult
|
|
2739
|
+
},
|
|
2740
|
+
default: {
|
|
2741
|
+
bodyMapper: ErrorDetails
|
|
2742
|
+
}
|
|
2743
|
+
},
|
|
2744
|
+
serializer: serializer$2
|
|
2745
|
+
};
|
|
2746
|
+
var listKeysNextOperationSpec = {
|
|
2747
|
+
httpMethod: "POST",
|
|
2748
|
+
baseUrl: "https://management.azure.com",
|
|
2749
|
+
path: "{nextLink}",
|
|
2750
|
+
urlParameters: [
|
|
2751
|
+
nextPageLink
|
|
2752
|
+
],
|
|
2753
|
+
queryParameters: [
|
|
2754
|
+
apiVersion
|
|
2755
|
+
],
|
|
2756
|
+
headerParameters: [
|
|
2757
|
+
acceptLanguage
|
|
2758
|
+
],
|
|
2759
|
+
responses: {
|
|
2760
|
+
200: {
|
|
2761
|
+
bodyMapper: SharedAccessSignatureAuthorizationRuleListResult
|
|
2762
|
+
},
|
|
2763
|
+
default: {
|
|
2764
|
+
bodyMapper: ErrorDetails
|
|
2765
|
+
}
|
|
2766
|
+
},
|
|
2767
|
+
serializer: serializer$2
|
|
2768
|
+
};
|
|
2769
|
+
|
|
2770
|
+
/*
|
|
2771
|
+
* Copyright (c) Microsoft Corporation.
|
|
2772
|
+
* Licensed under the MIT License.
|
|
2773
|
+
*
|
|
2774
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2775
|
+
* Changes may cause incorrect behavior and will be lost if the code is
|
|
2776
|
+
* regenerated.
|
|
2777
|
+
*/
|
|
2778
|
+
var packageName = "@azure/arm-deviceprovisioningservices";
|
|
2779
|
+
var packageVersion = "3.0.0";
|
|
2780
|
+
var IotDpsClientContext = /** @class */ (function (_super) {
|
|
2781
|
+
__extends(IotDpsClientContext, _super);
|
|
2782
|
+
/**
|
|
2783
|
+
* Initializes a new instance of the IotDpsClient class.
|
|
2784
|
+
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
2785
|
+
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
2786
|
+
* more information about these credentials, see
|
|
2787
|
+
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
2788
|
+
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
2789
|
+
* @azure/ms-rest-browserauth are also supported.
|
|
2790
|
+
* @param subscriptionId The subscription identifier.
|
|
2791
|
+
* @param [options] The parameter options
|
|
2792
|
+
*/
|
|
2793
|
+
function IotDpsClientContext(credentials, subscriptionId, options) {
|
|
2794
|
+
var _this = this;
|
|
2795
|
+
if (credentials == undefined) {
|
|
2796
|
+
throw new Error('\'credentials\' cannot be null.');
|
|
2797
|
+
}
|
|
2798
|
+
if (subscriptionId == undefined) {
|
|
2799
|
+
throw new Error('\'subscriptionId\' cannot be null.');
|
|
2800
|
+
}
|
|
2801
|
+
if (!options) {
|
|
2802
|
+
options = {};
|
|
2803
|
+
}
|
|
2804
|
+
if (!options.userAgent) {
|
|
2805
|
+
var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
|
2806
|
+
options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
|
|
2807
|
+
}
|
|
2808
|
+
_this = _super.call(this, credentials, options) || this;
|
|
2809
|
+
_this.apiVersion = '2020-03-01';
|
|
2810
|
+
_this.acceptLanguage = 'en-US';
|
|
2811
|
+
_this.longRunningOperationRetryTimeout = 30;
|
|
2812
|
+
_this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
|
|
2813
|
+
_this.requestContentType = "application/json; charset=utf-8";
|
|
2814
|
+
_this.credentials = credentials;
|
|
2815
|
+
_this.subscriptionId = subscriptionId;
|
|
2816
|
+
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
|
2817
|
+
_this.acceptLanguage = options.acceptLanguage;
|
|
2818
|
+
}
|
|
2819
|
+
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
|
2820
|
+
_this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
|
2821
|
+
}
|
|
2822
|
+
return _this;
|
|
2823
|
+
}
|
|
2824
|
+
return IotDpsClientContext;
|
|
2825
|
+
}(msRestAzure.AzureServiceClient));
|
|
2826
|
+
|
|
2827
|
+
/*
|
|
2828
|
+
* Copyright (c) Microsoft Corporation.
|
|
2829
|
+
* Licensed under the MIT License.
|
|
2830
|
+
*
|
|
2831
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2832
|
+
* Changes may cause incorrect behavior and will be lost if the code is
|
|
2833
|
+
* regenerated.
|
|
2834
|
+
*/
|
|
2835
|
+
var IotDpsClient = /** @class */ (function (_super) {
|
|
2836
|
+
__extends(IotDpsClient, _super);
|
|
2837
|
+
/**
|
|
2838
|
+
* Initializes a new instance of the IotDpsClient class.
|
|
2839
|
+
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
2840
|
+
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
2841
|
+
* more information about these credentials, see
|
|
2842
|
+
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
2843
|
+
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
2844
|
+
* @azure/ms-rest-browserauth are also supported.
|
|
2845
|
+
* @param subscriptionId The subscription identifier.
|
|
2846
|
+
* @param [options] The parameter options
|
|
2847
|
+
*/
|
|
2848
|
+
function IotDpsClient(credentials, subscriptionId, options) {
|
|
2849
|
+
var _this = _super.call(this, credentials, subscriptionId, options) || this;
|
|
2850
|
+
_this.operations = new Operations(_this);
|
|
2851
|
+
_this.dpsCertificate = new DpsCertificate(_this);
|
|
2852
|
+
_this.iotDpsResource = new IotDpsResource(_this);
|
|
2853
|
+
return _this;
|
|
2854
|
+
}
|
|
2855
|
+
return IotDpsClient;
|
|
2856
|
+
}(IotDpsClientContext));
|
|
2857
|
+
|
|
2858
|
+
exports.DpsCertificate = DpsCertificate;
|
|
2859
|
+
exports.IotDpsClient = IotDpsClient;
|
|
2860
|
+
exports.IotDpsClientContext = IotDpsClientContext;
|
|
2861
|
+
exports.IotDpsMappers = mappers;
|
|
2862
|
+
exports.IotDpsModels = index;
|
|
2863
|
+
exports.IotDpsResource = IotDpsResource;
|
|
2864
|
+
exports.Operations = Operations;
|
|
2865
|
+
|
|
2866
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2867
|
+
|
|
2868
|
+
})));
|
|
2869
|
+
//# sourceMappingURL=arm-deviceprovisioningservices.js.map
|