@azure/arm-deviceprovisioningservices 2.1.0 → 4.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.
Files changed (147) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE.txt +21 -21
  4. package/README.md +98 -96
  5. package/dist/index.js +3108 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.min.js +1 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/dist-esm/src/index.d.ts +5 -0
  10. package/dist-esm/src/index.d.ts.map +1 -0
  11. package/dist-esm/src/index.js +12 -0
  12. package/dist-esm/src/index.js.map +1 -0
  13. package/dist-esm/src/iotDpsClient.d.ts +20 -0
  14. package/dist-esm/src/iotDpsClient.d.ts.map +1 -0
  15. package/dist-esm/src/iotDpsClient.js +53 -0
  16. package/dist-esm/src/iotDpsClient.js.map +1 -0
  17. package/dist-esm/src/lroImpl.d.ts +16 -0
  18. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  19. package/dist-esm/src/lroImpl.js +29 -0
  20. package/dist-esm/src/lroImpl.js.map +1 -0
  21. package/dist-esm/src/models/index.d.ts +825 -0
  22. package/dist-esm/src/models/index.d.ts.map +1 -0
  23. package/dist-esm/src/models/index.js +72 -0
  24. package/dist-esm/src/models/index.js.map +1 -0
  25. package/dist-esm/src/models/mappers.d.ts +36 -0
  26. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  27. package/{esm → dist-esm/src}/models/mappers.js +565 -322
  28. package/dist-esm/src/models/mappers.js.map +1 -0
  29. package/dist-esm/src/models/parameters.d.ts +34 -0
  30. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  31. package/dist-esm/src/models/parameters.js +293 -0
  32. package/dist-esm/src/models/parameters.js.map +1 -0
  33. package/dist-esm/src/operations/dpsCertificate.d.ts +70 -0
  34. package/dist-esm/src/operations/dpsCertificate.d.ts.map +1 -0
  35. package/dist-esm/src/operations/dpsCertificate.js +289 -0
  36. package/dist-esm/src/operations/dpsCertificate.js.map +1 -0
  37. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  38. package/dist-esm/src/operations/index.d.ts.map +1 -0
  39. package/{esm → dist-esm/src}/operations/index.js +3 -5
  40. package/dist-esm/src/operations/index.js.map +1 -0
  41. package/dist-esm/src/operations/iotDpsResource.d.ts +253 -0
  42. package/dist-esm/src/operations/iotDpsResource.d.ts.map +1 -0
  43. package/dist-esm/src/operations/iotDpsResource.js +1154 -0
  44. package/dist-esm/src/operations/iotDpsResource.js.map +1 -0
  45. package/dist-esm/src/operations/operations.d.ts +32 -0
  46. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  47. package/dist-esm/src/operations/operations.js +120 -0
  48. package/dist-esm/src/operations/operations.js.map +1 -0
  49. package/dist-esm/src/operationsInterfaces/dpsCertificate.d.ts +62 -0
  50. package/dist-esm/src/operationsInterfaces/dpsCertificate.d.ts.map +1 -0
  51. package/dist-esm/src/operationsInterfaces/dpsCertificate.js +9 -0
  52. package/dist-esm/src/operationsInterfaces/dpsCertificate.js.map +1 -0
  53. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  54. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  55. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  56. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  57. package/dist-esm/src/operationsInterfaces/iotDpsResource.d.ts +183 -0
  58. package/dist-esm/src/operationsInterfaces/iotDpsResource.d.ts.map +1 -0
  59. package/dist-esm/src/operationsInterfaces/iotDpsResource.js +9 -0
  60. package/dist-esm/src/operationsInterfaces/iotDpsResource.js.map +1 -0
  61. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  62. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  63. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  64. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  65. package/dist-esm/test/sampleTest.d.ts +2 -0
  66. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  67. package/dist-esm/test/sampleTest.js +40 -0
  68. package/dist-esm/test/sampleTest.js.map +1 -0
  69. package/package.json +70 -34
  70. package/review/arm-deviceprovisioningservices.api.md +690 -0
  71. package/rollup.config.js +184 -27
  72. package/src/index.ts +12 -0
  73. package/src/iotDpsClient.ts +87 -0
  74. package/src/lroImpl.ts +34 -0
  75. package/src/models/index.ts +946 -0
  76. package/{lib → src}/models/mappers.ts +576 -323
  77. package/src/models/parameters.ts +337 -0
  78. package/src/operations/dpsCertificate.ts +374 -0
  79. package/{lib → src}/operations/index.ts +3 -5
  80. package/src/operations/iotDpsResource.ts +1595 -0
  81. package/src/operations/operations.ts +137 -0
  82. package/src/operationsInterfaces/dpsCertificate.ts +118 -0
  83. package/src/operationsInterfaces/index.ts +11 -0
  84. package/src/operationsInterfaces/iotDpsResource.ts +351 -0
  85. package/src/operationsInterfaces/operations.ts +22 -0
  86. package/tsconfig.json +4 -4
  87. package/types/arm-deviceprovisioningservices.d.ts +1205 -0
  88. package/types/tsdoc-metadata.json +11 -0
  89. package/dist/arm-deviceprovisioningservices.js +0 -2251
  90. package/dist/arm-deviceprovisioningservices.js.map +0 -1
  91. package/dist/arm-deviceprovisioningservices.min.js +0 -1
  92. package/dist/arm-deviceprovisioningservices.min.js.map +0 -1
  93. package/esm/iotDpsClient.d.ts +0 -20
  94. package/esm/iotDpsClient.d.ts.map +0 -1
  95. package/esm/iotDpsClient.js +0 -35
  96. package/esm/iotDpsClient.js.map +0 -1
  97. package/esm/iotDpsClientContext.d.ts +0 -16
  98. package/esm/iotDpsClientContext.d.ts.map +0 -1
  99. package/esm/iotDpsClientContext.js +0 -56
  100. package/esm/iotDpsClientContext.js.map +0 -1
  101. package/esm/models/dpsCertificateMappers.d.ts +0 -2
  102. package/esm/models/dpsCertificateMappers.d.ts.map +0 -1
  103. package/esm/models/dpsCertificateMappers.js +0 -11
  104. package/esm/models/dpsCertificateMappers.js.map +0 -1
  105. package/esm/models/index.d.ts +0 -1273
  106. package/esm/models/index.d.ts.map +0 -1
  107. package/esm/models/index.js +0 -10
  108. package/esm/models/index.js.map +0 -1
  109. package/esm/models/iotDpsResourceMappers.d.ts +0 -2
  110. package/esm/models/iotDpsResourceMappers.d.ts.map +0 -1
  111. package/esm/models/iotDpsResourceMappers.js +0 -11
  112. package/esm/models/iotDpsResourceMappers.js.map +0 -1
  113. package/esm/models/mappers.d.ts +0 -30
  114. package/esm/models/mappers.d.ts.map +0 -1
  115. package/esm/models/mappers.js.map +0 -1
  116. package/esm/models/operationsMappers.d.ts +0 -2
  117. package/esm/models/operationsMappers.d.ts.map +0 -1
  118. package/esm/models/operationsMappers.js +0 -11
  119. package/esm/models/operationsMappers.js.map +0 -1
  120. package/esm/models/parameters.d.ts +0 -23
  121. package/esm/models/parameters.d.ts.map +0 -1
  122. package/esm/models/parameters.js +0 -243
  123. package/esm/models/parameters.js.map +0 -1
  124. package/esm/operations/dpsCertificate.d.ts +0 -188
  125. package/esm/operations/dpsCertificate.d.ts.map +0 -1
  126. package/esm/operations/dpsCertificate.js +0 -265
  127. package/esm/operations/dpsCertificate.js.map +0 -1
  128. package/esm/operations/index.d.ts.map +0 -1
  129. package/esm/operations/index.js.map +0 -1
  130. package/esm/operations/iotDpsResource.d.ts +0 -337
  131. package/esm/operations/iotDpsResource.d.ts.map +0 -1
  132. package/esm/operations/iotDpsResource.js +0 -560
  133. package/esm/operations/iotDpsResource.js.map +0 -1
  134. package/esm/operations/operations.d.ts +0 -46
  135. package/esm/operations/operations.d.ts.map +0 -1
  136. package/esm/operations/operations.js +0 -77
  137. package/esm/operations/operations.js.map +0 -1
  138. package/lib/iotDpsClient.ts +0 -46
  139. package/lib/iotDpsClientContext.ts +0 -62
  140. package/lib/models/dpsCertificateMappers.ts +0 -28
  141. package/lib/models/index.ts +0 -1342
  142. package/lib/models/iotDpsResourceMappers.ts +0 -35
  143. package/lib/models/operationsMappers.ts +0 -17
  144. package/lib/models/parameters.ts +0 -245
  145. package/lib/operations/dpsCertificate.ts +0 -478
  146. package/lib/operations/iotDpsResource.ts +0 -907
  147. package/lib/operations/operations.ts +0 -123
@@ -1,2251 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
9
- */
10
- (function (global, factory) {
11
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
12
- typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
13
- (factory((global.Azure = global.Azure || {}, global.Azure.ArmDeviceprovisioningservices = {}),global.msRestAzure,global.msRest));
14
- }(this, (function (exports,msRestAzure,msRest) { 'use strict';
15
-
16
- /*! *****************************************************************************
17
- Copyright (c) Microsoft Corporation. All rights reserved.
18
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
19
- this file except in compliance with the License. You may obtain a copy of the
20
- License at http://www.apache.org/licenses/LICENSE-2.0
21
-
22
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
24
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
25
- MERCHANTABLITY OR NON-INFRINGEMENT.
26
-
27
- See the Apache Version 2.0 License for specific language governing permissions
28
- and limitations under the License.
29
- ***************************************************************************** */
30
- /* global Reflect, Promise */
31
-
32
- var extendStatics = function(d, b) {
33
- extendStatics = Object.setPrototypeOf ||
34
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
35
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
36
- return extendStatics(d, b);
37
- };
38
-
39
- function __extends(d, b) {
40
- extendStatics(d, b);
41
- function __() { this.constructor = d; }
42
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43
- }
44
-
45
- var __assign = function() {
46
- __assign = Object.assign || function __assign(t) {
47
- for (var s, i = 1, n = arguments.length; i < n; i++) {
48
- s = arguments[i];
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
50
- }
51
- return t;
52
- };
53
- return __assign.apply(this, arguments);
54
- };
55
-
56
- /*
57
- * Copyright (c) Microsoft Corporation. All rights reserved.
58
- * Licensed under the MIT License. See License.txt in the project root for
59
- * license information.
60
- *
61
- * Code generated by Microsoft (R) AutoRest Code Generator.
62
- * Changes may cause incorrect behavior and will be lost if the code is
63
- * regenerated.
64
- */
65
-
66
- var index = /*#__PURE__*/Object.freeze({
67
-
68
- });
69
-
70
- /*
71
- * Copyright (c) Microsoft Corporation. All rights reserved.
72
- * Licensed under the MIT License. See License.txt in the project root for
73
- * license information.
74
- *
75
- * Code generated by Microsoft (R) AutoRest Code Generator.
76
- * Changes may cause incorrect behavior and will be lost if the code is
77
- * regenerated.
78
- */
79
- var CloudError = msRestAzure.CloudErrorMapper;
80
- var BaseResource = msRestAzure.BaseResourceMapper;
81
- var ErrorMesssage = {
82
- serializedName: "ErrorMesssage",
83
- type: {
84
- name: "Composite",
85
- className: "ErrorMesssage",
86
- modelProperties: {
87
- code: {
88
- serializedName: "code",
89
- type: {
90
- name: "String"
91
- }
92
- },
93
- message: {
94
- serializedName: "message",
95
- type: {
96
- name: "String"
97
- }
98
- },
99
- details: {
100
- serializedName: "details",
101
- type: {
102
- name: "String"
103
- }
104
- }
105
- }
106
- }
107
- };
108
- var AsyncOperationResult = {
109
- serializedName: "AsyncOperationResult",
110
- type: {
111
- name: "Composite",
112
- className: "AsyncOperationResult",
113
- modelProperties: {
114
- status: {
115
- serializedName: "status",
116
- type: {
117
- name: "String"
118
- }
119
- },
120
- error: {
121
- serializedName: "error",
122
- type: {
123
- name: "Composite",
124
- className: "ErrorMesssage"
125
- }
126
- }
127
- }
128
- }
129
- };
130
- var CertificateProperties = {
131
- serializedName: "CertificateProperties",
132
- type: {
133
- name: "Composite",
134
- className: "CertificateProperties",
135
- modelProperties: {
136
- subject: {
137
- readOnly: true,
138
- serializedName: "subject",
139
- type: {
140
- name: "String"
141
- }
142
- },
143
- expiry: {
144
- readOnly: true,
145
- serializedName: "expiry",
146
- type: {
147
- name: "DateTimeRfc1123"
148
- }
149
- },
150
- thumbprint: {
151
- readOnly: true,
152
- serializedName: "thumbprint",
153
- type: {
154
- name: "String"
155
- }
156
- },
157
- isVerified: {
158
- readOnly: true,
159
- serializedName: "isVerified",
160
- type: {
161
- name: "Boolean"
162
- }
163
- },
164
- created: {
165
- readOnly: true,
166
- serializedName: "created",
167
- type: {
168
- name: "DateTimeRfc1123"
169
- }
170
- },
171
- updated: {
172
- readOnly: true,
173
- serializedName: "updated",
174
- type: {
175
- name: "DateTimeRfc1123"
176
- }
177
- }
178
- }
179
- }
180
- };
181
- var CertificateResponse = {
182
- serializedName: "CertificateResponse",
183
- type: {
184
- name: "Composite",
185
- className: "CertificateResponse",
186
- modelProperties: {
187
- properties: {
188
- serializedName: "properties",
189
- type: {
190
- name: "Composite",
191
- className: "CertificateProperties"
192
- }
193
- },
194
- id: {
195
- readOnly: true,
196
- serializedName: "id",
197
- type: {
198
- name: "String"
199
- }
200
- },
201
- name: {
202
- readOnly: true,
203
- serializedName: "name",
204
- type: {
205
- name: "String"
206
- }
207
- },
208
- etag: {
209
- readOnly: true,
210
- serializedName: "etag",
211
- type: {
212
- name: "String"
213
- }
214
- },
215
- type: {
216
- readOnly: true,
217
- serializedName: "type",
218
- type: {
219
- name: "String"
220
- }
221
- }
222
- }
223
- }
224
- };
225
- var CertificateListDescription = {
226
- serializedName: "CertificateListDescription",
227
- type: {
228
- name: "Composite",
229
- className: "CertificateListDescription",
230
- modelProperties: {
231
- value: {
232
- serializedName: "value",
233
- type: {
234
- name: "Sequence",
235
- element: {
236
- type: {
237
- name: "Composite",
238
- className: "CertificateResponse"
239
- }
240
- }
241
- }
242
- }
243
- }
244
- }
245
- };
246
- var CertificateBodyDescription = {
247
- serializedName: "CertificateBodyDescription",
248
- type: {
249
- name: "Composite",
250
- className: "CertificateBodyDescription",
251
- modelProperties: {
252
- certificate: {
253
- serializedName: "certificate",
254
- type: {
255
- name: "String"
256
- }
257
- }
258
- }
259
- }
260
- };
261
- var IotDpsSkuInfo = {
262
- serializedName: "IotDpsSkuInfo",
263
- type: {
264
- name: "Composite",
265
- className: "IotDpsSkuInfo",
266
- modelProperties: {
267
- name: {
268
- serializedName: "name",
269
- type: {
270
- name: "String"
271
- }
272
- },
273
- tier: {
274
- readOnly: true,
275
- serializedName: "tier",
276
- type: {
277
- name: "String"
278
- }
279
- },
280
- capacity: {
281
- serializedName: "capacity",
282
- type: {
283
- name: "Number"
284
- }
285
- }
286
- }
287
- }
288
- };
289
- var IotHubDefinitionDescription = {
290
- serializedName: "IotHubDefinitionDescription",
291
- type: {
292
- name: "Composite",
293
- className: "IotHubDefinitionDescription",
294
- modelProperties: {
295
- applyAllocationPolicy: {
296
- serializedName: "applyAllocationPolicy",
297
- type: {
298
- name: "Boolean"
299
- }
300
- },
301
- allocationWeight: {
302
- serializedName: "allocationWeight",
303
- type: {
304
- name: "Number"
305
- }
306
- },
307
- name: {
308
- readOnly: true,
309
- serializedName: "name",
310
- type: {
311
- name: "String"
312
- }
313
- },
314
- connectionString: {
315
- required: true,
316
- serializedName: "connectionString",
317
- type: {
318
- name: "String"
319
- }
320
- },
321
- location: {
322
- required: true,
323
- serializedName: "location",
324
- type: {
325
- name: "String"
326
- }
327
- }
328
- }
329
- }
330
- };
331
- var SharedAccessSignatureAuthorizationRuleAccessRightsDescription = {
332
- serializedName: "SharedAccessSignatureAuthorizationRule_AccessRightsDescription_",
333
- type: {
334
- name: "Composite",
335
- className: "SharedAccessSignatureAuthorizationRuleAccessRightsDescription",
336
- modelProperties: {
337
- keyName: {
338
- required: true,
339
- serializedName: "keyName",
340
- type: {
341
- name: "String"
342
- }
343
- },
344
- primaryKey: {
345
- serializedName: "primaryKey",
346
- type: {
347
- name: "String"
348
- }
349
- },
350
- secondaryKey: {
351
- serializedName: "secondaryKey",
352
- type: {
353
- name: "String"
354
- }
355
- },
356
- rights: {
357
- required: true,
358
- serializedName: "rights",
359
- type: {
360
- name: "String"
361
- }
362
- }
363
- }
364
- }
365
- };
366
- var IotDpsPropertiesDescription = {
367
- serializedName: "IotDpsPropertiesDescription",
368
- type: {
369
- name: "Composite",
370
- className: "IotDpsPropertiesDescription",
371
- modelProperties: {
372
- state: {
373
- serializedName: "state",
374
- type: {
375
- name: "String"
376
- }
377
- },
378
- provisioningState: {
379
- serializedName: "provisioningState",
380
- type: {
381
- name: "String"
382
- }
383
- },
384
- iotHubs: {
385
- serializedName: "iotHubs",
386
- type: {
387
- name: "Sequence",
388
- element: {
389
- type: {
390
- name: "Composite",
391
- className: "IotHubDefinitionDescription"
392
- }
393
- }
394
- }
395
- },
396
- allocationPolicy: {
397
- serializedName: "allocationPolicy",
398
- type: {
399
- name: "String"
400
- }
401
- },
402
- serviceOperationsHostName: {
403
- readOnly: true,
404
- serializedName: "serviceOperationsHostName",
405
- type: {
406
- name: "String"
407
- }
408
- },
409
- deviceProvisioningHostName: {
410
- readOnly: true,
411
- serializedName: "deviceProvisioningHostName",
412
- type: {
413
- name: "String"
414
- }
415
- },
416
- idScope: {
417
- readOnly: true,
418
- serializedName: "idScope",
419
- type: {
420
- name: "String"
421
- }
422
- },
423
- authorizationPolicies: {
424
- serializedName: "authorizationPolicies",
425
- type: {
426
- name: "Sequence",
427
- element: {
428
- type: {
429
- name: "Composite",
430
- className: "SharedAccessSignatureAuthorizationRuleAccessRightsDescription"
431
- }
432
- }
433
- }
434
- }
435
- }
436
- }
437
- };
438
- var Resource = {
439
- serializedName: "Resource",
440
- type: {
441
- name: "Composite",
442
- className: "Resource",
443
- modelProperties: {
444
- id: {
445
- readOnly: true,
446
- serializedName: "id",
447
- type: {
448
- name: "String"
449
- }
450
- },
451
- name: {
452
- readOnly: true,
453
- serializedName: "name",
454
- constraints: {
455
- Pattern: /^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$/
456
- },
457
- type: {
458
- name: "String"
459
- }
460
- },
461
- type: {
462
- readOnly: true,
463
- serializedName: "type",
464
- type: {
465
- name: "String"
466
- }
467
- },
468
- location: {
469
- required: true,
470
- serializedName: "location",
471
- type: {
472
- name: "String"
473
- }
474
- },
475
- tags: {
476
- serializedName: "tags",
477
- type: {
478
- name: "Dictionary",
479
- value: {
480
- type: {
481
- name: "String"
482
- }
483
- }
484
- }
485
- }
486
- }
487
- }
488
- };
489
- var ProvisioningServiceDescription = {
490
- serializedName: "ProvisioningServiceDescription",
491
- type: {
492
- name: "Composite",
493
- className: "ProvisioningServiceDescription",
494
- modelProperties: __assign({}, Resource.type.modelProperties, { etag: {
495
- serializedName: "etag",
496
- type: {
497
- name: "String"
498
- }
499
- }, properties: {
500
- required: true,
501
- serializedName: "properties",
502
- type: {
503
- name: "Composite",
504
- className: "IotDpsPropertiesDescription"
505
- }
506
- }, sku: {
507
- required: true,
508
- serializedName: "sku",
509
- type: {
510
- name: "Composite",
511
- className: "IotDpsSkuInfo"
512
- }
513
- } })
514
- }
515
- };
516
- var OperationDisplay = {
517
- serializedName: "Operation_display",
518
- type: {
519
- name: "Composite",
520
- className: "OperationDisplay",
521
- modelProperties: {
522
- provider: {
523
- readOnly: true,
524
- serializedName: "provider",
525
- type: {
526
- name: "String"
527
- }
528
- },
529
- resource: {
530
- readOnly: true,
531
- serializedName: "resource",
532
- type: {
533
- name: "String"
534
- }
535
- },
536
- operation: {
537
- readOnly: true,
538
- serializedName: "operation",
539
- type: {
540
- name: "String"
541
- }
542
- }
543
- }
544
- }
545
- };
546
- var Operation = {
547
- serializedName: "Operation",
548
- type: {
549
- name: "Composite",
550
- className: "Operation",
551
- modelProperties: {
552
- name: {
553
- readOnly: true,
554
- serializedName: "name",
555
- type: {
556
- name: "String"
557
- }
558
- },
559
- display: {
560
- serializedName: "display",
561
- type: {
562
- name: "Composite",
563
- className: "OperationDisplay"
564
- }
565
- }
566
- }
567
- }
568
- };
569
- var ErrorDetails = {
570
- serializedName: "ErrorDetails",
571
- type: {
572
- name: "Composite",
573
- className: "ErrorDetails",
574
- modelProperties: {
575
- code: {
576
- readOnly: true,
577
- serializedName: "code",
578
- type: {
579
- name: "String"
580
- }
581
- },
582
- httpStatusCode: {
583
- readOnly: true,
584
- serializedName: "httpStatusCode",
585
- type: {
586
- name: "String"
587
- }
588
- },
589
- message: {
590
- readOnly: true,
591
- serializedName: "message",
592
- type: {
593
- name: "String"
594
- }
595
- },
596
- details: {
597
- readOnly: true,
598
- serializedName: "details",
599
- type: {
600
- name: "String"
601
- }
602
- }
603
- }
604
- }
605
- };
606
- var IotDpsSkuDefinition = {
607
- serializedName: "IotDpsSkuDefinition",
608
- type: {
609
- name: "Composite",
610
- className: "IotDpsSkuDefinition",
611
- modelProperties: {
612
- name: {
613
- serializedName: "name",
614
- type: {
615
- name: "String"
616
- }
617
- }
618
- }
619
- }
620
- };
621
- var OperationInputs = {
622
- serializedName: "OperationInputs",
623
- type: {
624
- name: "Composite",
625
- className: "OperationInputs",
626
- modelProperties: {
627
- name: {
628
- required: true,
629
- serializedName: "name",
630
- type: {
631
- name: "String"
632
- }
633
- }
634
- }
635
- }
636
- };
637
- var NameAvailabilityInfo = {
638
- serializedName: "NameAvailabilityInfo",
639
- type: {
640
- name: "Composite",
641
- className: "NameAvailabilityInfo",
642
- modelProperties: {
643
- nameAvailable: {
644
- serializedName: "nameAvailable",
645
- type: {
646
- name: "Boolean"
647
- }
648
- },
649
- reason: {
650
- serializedName: "reason",
651
- type: {
652
- name: "String"
653
- }
654
- },
655
- message: {
656
- serializedName: "message",
657
- type: {
658
- name: "String"
659
- }
660
- }
661
- }
662
- }
663
- };
664
- var TagsResource = {
665
- serializedName: "TagsResource",
666
- type: {
667
- name: "Composite",
668
- className: "TagsResource",
669
- modelProperties: {
670
- tags: {
671
- serializedName: "tags",
672
- type: {
673
- name: "Dictionary",
674
- value: {
675
- type: {
676
- name: "String"
677
- }
678
- }
679
- }
680
- }
681
- }
682
- }
683
- };
684
- var VerificationCodeResponseProperties = {
685
- serializedName: "VerificationCodeResponse_properties",
686
- type: {
687
- name: "Composite",
688
- className: "VerificationCodeResponseProperties",
689
- modelProperties: {
690
- verificationCode: {
691
- serializedName: "verificationCode",
692
- type: {
693
- name: "String"
694
- }
695
- },
696
- subject: {
697
- serializedName: "subject",
698
- type: {
699
- name: "String"
700
- }
701
- },
702
- expiry: {
703
- serializedName: "expiry",
704
- type: {
705
- name: "String"
706
- }
707
- },
708
- thumbprint: {
709
- serializedName: "thumbprint",
710
- type: {
711
- name: "String"
712
- }
713
- },
714
- isVerified: {
715
- serializedName: "isVerified",
716
- type: {
717
- name: "Boolean"
718
- }
719
- },
720
- created: {
721
- serializedName: "created",
722
- type: {
723
- name: "String"
724
- }
725
- },
726
- updated: {
727
- serializedName: "updated",
728
- type: {
729
- name: "String"
730
- }
731
- }
732
- }
733
- }
734
- };
735
- var VerificationCodeResponse = {
736
- serializedName: "VerificationCodeResponse",
737
- type: {
738
- name: "Composite",
739
- className: "VerificationCodeResponse",
740
- modelProperties: {
741
- name: {
742
- readOnly: true,
743
- serializedName: "name",
744
- type: {
745
- name: "String"
746
- }
747
- },
748
- etag: {
749
- readOnly: true,
750
- serializedName: "etag",
751
- type: {
752
- name: "String"
753
- }
754
- },
755
- id: {
756
- readOnly: true,
757
- serializedName: "id",
758
- type: {
759
- name: "String"
760
- }
761
- },
762
- type: {
763
- readOnly: true,
764
- serializedName: "type",
765
- type: {
766
- name: "String"
767
- }
768
- },
769
- properties: {
770
- serializedName: "properties",
771
- type: {
772
- name: "Composite",
773
- className: "VerificationCodeResponseProperties"
774
- }
775
- }
776
- }
777
- }
778
- };
779
- var VerificationCodeRequest = {
780
- serializedName: "VerificationCodeRequest",
781
- type: {
782
- name: "Composite",
783
- className: "VerificationCodeRequest",
784
- modelProperties: {
785
- certificate: {
786
- serializedName: "certificate",
787
- type: {
788
- name: "String"
789
- }
790
- }
791
- }
792
- }
793
- };
794
- var OperationListResult = {
795
- serializedName: "OperationListResult",
796
- type: {
797
- name: "Composite",
798
- className: "OperationListResult",
799
- modelProperties: {
800
- value: {
801
- readOnly: true,
802
- serializedName: "",
803
- type: {
804
- name: "Sequence",
805
- element: {
806
- type: {
807
- name: "Composite",
808
- className: "Operation"
809
- }
810
- }
811
- }
812
- },
813
- nextLink: {
814
- readOnly: true,
815
- serializedName: "nextLink",
816
- type: {
817
- name: "String"
818
- }
819
- }
820
- }
821
- }
822
- };
823
- var ProvisioningServiceDescriptionListResult = {
824
- serializedName: "ProvisioningServiceDescriptionListResult",
825
- type: {
826
- name: "Composite",
827
- className: "ProvisioningServiceDescriptionListResult",
828
- modelProperties: {
829
- value: {
830
- serializedName: "",
831
- type: {
832
- name: "Sequence",
833
- element: {
834
- type: {
835
- name: "Composite",
836
- className: "ProvisioningServiceDescription"
837
- }
838
- }
839
- }
840
- },
841
- nextLink: {
842
- readOnly: true,
843
- serializedName: "nextLink",
844
- type: {
845
- name: "String"
846
- }
847
- }
848
- }
849
- }
850
- };
851
- var IotDpsSkuDefinitionListResult = {
852
- serializedName: "IotDpsSkuDefinitionListResult",
853
- type: {
854
- name: "Composite",
855
- className: "IotDpsSkuDefinitionListResult",
856
- modelProperties: {
857
- value: {
858
- serializedName: "",
859
- type: {
860
- name: "Sequence",
861
- element: {
862
- type: {
863
- name: "Composite",
864
- className: "IotDpsSkuDefinition"
865
- }
866
- }
867
- }
868
- },
869
- nextLink: {
870
- readOnly: true,
871
- serializedName: "nextLink",
872
- type: {
873
- name: "String"
874
- }
875
- }
876
- }
877
- }
878
- };
879
- var SharedAccessSignatureAuthorizationRuleListResult = {
880
- serializedName: "SharedAccessSignatureAuthorizationRuleListResult",
881
- type: {
882
- name: "Composite",
883
- className: "SharedAccessSignatureAuthorizationRuleListResult",
884
- modelProperties: {
885
- value: {
886
- serializedName: "",
887
- type: {
888
- name: "Sequence",
889
- element: {
890
- type: {
891
- name: "Composite",
892
- className: "SharedAccessSignatureAuthorizationRuleAccessRightsDescription"
893
- }
894
- }
895
- }
896
- },
897
- nextLink: {
898
- readOnly: true,
899
- serializedName: "nextLink",
900
- type: {
901
- name: "String"
902
- }
903
- }
904
- }
905
- }
906
- };
907
-
908
- var mappers = /*#__PURE__*/Object.freeze({
909
- CloudError: CloudError,
910
- BaseResource: BaseResource,
911
- ErrorMesssage: ErrorMesssage,
912
- AsyncOperationResult: AsyncOperationResult,
913
- CertificateProperties: CertificateProperties,
914
- CertificateResponse: CertificateResponse,
915
- CertificateListDescription: CertificateListDescription,
916
- CertificateBodyDescription: CertificateBodyDescription,
917
- IotDpsSkuInfo: IotDpsSkuInfo,
918
- IotHubDefinitionDescription: IotHubDefinitionDescription,
919
- SharedAccessSignatureAuthorizationRuleAccessRightsDescription: SharedAccessSignatureAuthorizationRuleAccessRightsDescription,
920
- IotDpsPropertiesDescription: IotDpsPropertiesDescription,
921
- Resource: Resource,
922
- ProvisioningServiceDescription: ProvisioningServiceDescription,
923
- OperationDisplay: OperationDisplay,
924
- Operation: Operation,
925
- ErrorDetails: ErrorDetails,
926
- IotDpsSkuDefinition: IotDpsSkuDefinition,
927
- OperationInputs: OperationInputs,
928
- NameAvailabilityInfo: NameAvailabilityInfo,
929
- TagsResource: TagsResource,
930
- VerificationCodeResponseProperties: VerificationCodeResponseProperties,
931
- VerificationCodeResponse: VerificationCodeResponse,
932
- VerificationCodeRequest: VerificationCodeRequest,
933
- OperationListResult: OperationListResult,
934
- ProvisioningServiceDescriptionListResult: ProvisioningServiceDescriptionListResult,
935
- IotDpsSkuDefinitionListResult: IotDpsSkuDefinitionListResult,
936
- SharedAccessSignatureAuthorizationRuleListResult: SharedAccessSignatureAuthorizationRuleListResult
937
- });
938
-
939
- /*
940
- * Copyright (c) Microsoft Corporation. All rights reserved.
941
- * Licensed under the MIT License. See License.txt in the project root for
942
- * license information.
943
- *
944
- * Code generated by Microsoft (R) AutoRest Code Generator.
945
- * Changes may cause incorrect behavior and will be lost if the code is
946
- * regenerated.
947
- */
948
-
949
- var Mappers = /*#__PURE__*/Object.freeze({
950
- OperationListResult: OperationListResult,
951
- Operation: Operation,
952
- OperationDisplay: OperationDisplay,
953
- ErrorDetails: ErrorDetails
954
- });
955
-
956
- /*
957
- * Copyright (c) Microsoft Corporation. All rights reserved.
958
- * Licensed under the MIT License. See License.txt in the project root for
959
- * license information.
960
- *
961
- * Code generated by Microsoft (R) AutoRest Code Generator.
962
- * Changes may cause incorrect behavior and will be lost if the code is
963
- * regenerated.
964
- */
965
- var acceptLanguage = {
966
- parameterPath: "acceptLanguage",
967
- mapper: {
968
- serializedName: "accept-language",
969
- defaultValue: 'en-US',
970
- type: {
971
- name: "String"
972
- }
973
- }
974
- };
975
- var apiVersion = {
976
- parameterPath: "apiVersion",
977
- mapper: {
978
- required: true,
979
- serializedName: "api-version",
980
- type: {
981
- name: "String"
982
- }
983
- }
984
- };
985
- var asyncinfo = {
986
- parameterPath: "asyncinfo",
987
- mapper: {
988
- required: true,
989
- serializedName: "asyncinfo",
990
- defaultValue: 'true',
991
- type: {
992
- name: "String"
993
- }
994
- }
995
- };
996
- var certificatecreated = {
997
- parameterPath: [
998
- "options",
999
- "certificatecreated"
1000
- ],
1001
- mapper: {
1002
- serializedName: "certificate.created",
1003
- type: {
1004
- name: "DateTime"
1005
- }
1006
- }
1007
- };
1008
- var certificatehasPrivateKey = {
1009
- parameterPath: [
1010
- "options",
1011
- "certificatehasPrivateKey"
1012
- ],
1013
- mapper: {
1014
- serializedName: "certificate.hasPrivateKey",
1015
- type: {
1016
- name: "Boolean"
1017
- }
1018
- }
1019
- };
1020
- var certificateisVerified = {
1021
- parameterPath: [
1022
- "options",
1023
- "certificateisVerified"
1024
- ],
1025
- mapper: {
1026
- serializedName: "certificate.isVerified",
1027
- type: {
1028
- name: "Boolean"
1029
- }
1030
- }
1031
- };
1032
- var certificatelastUpdated = {
1033
- parameterPath: [
1034
- "options",
1035
- "certificatelastUpdated"
1036
- ],
1037
- mapper: {
1038
- serializedName: "certificate.lastUpdated",
1039
- type: {
1040
- name: "DateTime"
1041
- }
1042
- }
1043
- };
1044
- var certificatename = {
1045
- parameterPath: [
1046
- "options",
1047
- "certificatename"
1048
- ],
1049
- mapper: {
1050
- serializedName: "certificate.name",
1051
- type: {
1052
- name: "String"
1053
- }
1054
- }
1055
- };
1056
- var certificateName0 = {
1057
- parameterPath: "certificateName",
1058
- mapper: {
1059
- required: true,
1060
- serializedName: "certificateName",
1061
- type: {
1062
- name: "String"
1063
- }
1064
- }
1065
- };
1066
- var certificateName1 = {
1067
- parameterPath: "certificateName",
1068
- mapper: {
1069
- required: true,
1070
- serializedName: "certificateName",
1071
- constraints: {
1072
- MaxLength: 256
1073
- },
1074
- type: {
1075
- name: "String"
1076
- }
1077
- }
1078
- };
1079
- var certificatenonce = {
1080
- parameterPath: [
1081
- "options",
1082
- "certificatenonce"
1083
- ],
1084
- mapper: {
1085
- serializedName: "certificate.nonce",
1086
- type: {
1087
- name: "String"
1088
- }
1089
- }
1090
- };
1091
- var certificatepurpose = {
1092
- parameterPath: [
1093
- "options",
1094
- "certificatepurpose"
1095
- ],
1096
- mapper: {
1097
- serializedName: "certificate.purpose",
1098
- type: {
1099
- name: "String"
1100
- }
1101
- }
1102
- };
1103
- var certificaterawBytes = {
1104
- parameterPath: [
1105
- "options",
1106
- "certificaterawBytes"
1107
- ],
1108
- mapper: {
1109
- serializedName: "certificate.rawBytes",
1110
- type: {
1111
- name: "ByteArray"
1112
- }
1113
- }
1114
- };
1115
- var ifMatch0 = {
1116
- parameterPath: [
1117
- "options",
1118
- "ifMatch"
1119
- ],
1120
- mapper: {
1121
- serializedName: "If-Match",
1122
- type: {
1123
- name: "String"
1124
- }
1125
- }
1126
- };
1127
- var ifMatch1 = {
1128
- parameterPath: "ifMatch",
1129
- mapper: {
1130
- required: true,
1131
- serializedName: "If-Match",
1132
- type: {
1133
- name: "String"
1134
- }
1135
- }
1136
- };
1137
- var keyName = {
1138
- parameterPath: "keyName",
1139
- mapper: {
1140
- required: true,
1141
- serializedName: "keyName",
1142
- type: {
1143
- name: "String"
1144
- }
1145
- }
1146
- };
1147
- var nextPageLink = {
1148
- parameterPath: "nextPageLink",
1149
- mapper: {
1150
- required: true,
1151
- serializedName: "nextLink",
1152
- type: {
1153
- name: "String"
1154
- }
1155
- },
1156
- skipEncoding: true
1157
- };
1158
- var operationId = {
1159
- parameterPath: "operationId",
1160
- mapper: {
1161
- required: true,
1162
- serializedName: "operationId",
1163
- type: {
1164
- name: "String"
1165
- }
1166
- }
1167
- };
1168
- var provisioningServiceName = {
1169
- parameterPath: "provisioningServiceName",
1170
- mapper: {
1171
- required: true,
1172
- serializedName: "provisioningServiceName",
1173
- type: {
1174
- name: "String"
1175
- }
1176
- }
1177
- };
1178
- var resourceGroupName = {
1179
- parameterPath: "resourceGroupName",
1180
- mapper: {
1181
- required: true,
1182
- serializedName: "resourceGroupName",
1183
- type: {
1184
- name: "String"
1185
- }
1186
- }
1187
- };
1188
- var subscriptionId = {
1189
- parameterPath: "subscriptionId",
1190
- mapper: {
1191
- required: true,
1192
- serializedName: "subscriptionId",
1193
- type: {
1194
- name: "String"
1195
- }
1196
- }
1197
- };
1198
-
1199
- /*
1200
- * Copyright (c) Microsoft Corporation. All rights reserved.
1201
- * Licensed under the MIT License. See License.txt in the project root for
1202
- * license information.
1203
- *
1204
- * Code generated by Microsoft (R) AutoRest Code Generator.
1205
- * Changes may cause incorrect behavior and will be lost if the code is
1206
- * regenerated.
1207
- */
1208
- /** Class representing a Operations. */
1209
- var Operations = /** @class */ (function () {
1210
- /**
1211
- * Create a Operations.
1212
- * @param {IotDpsClientContext} client Reference to the service client.
1213
- */
1214
- function Operations(client) {
1215
- this.client = client;
1216
- }
1217
- Operations.prototype.list = function (options, callback) {
1218
- return this.client.sendOperationRequest({
1219
- options: options
1220
- }, listOperationSpec, callback);
1221
- };
1222
- Operations.prototype.listNext = function (nextPageLink$$1, options, callback) {
1223
- return this.client.sendOperationRequest({
1224
- nextPageLink: nextPageLink$$1,
1225
- options: options
1226
- }, listNextOperationSpec, callback);
1227
- };
1228
- return Operations;
1229
- }());
1230
- // Operation Specifications
1231
- var serializer = new msRest.Serializer(Mappers);
1232
- var listOperationSpec = {
1233
- httpMethod: "GET",
1234
- path: "providers/Microsoft.Devices/operations",
1235
- queryParameters: [
1236
- apiVersion
1237
- ],
1238
- headerParameters: [
1239
- acceptLanguage
1240
- ],
1241
- responses: {
1242
- 200: {
1243
- bodyMapper: OperationListResult
1244
- },
1245
- default: {
1246
- bodyMapper: ErrorDetails
1247
- }
1248
- },
1249
- serializer: serializer
1250
- };
1251
- var listNextOperationSpec = {
1252
- httpMethod: "GET",
1253
- baseUrl: "https://management.azure.com",
1254
- path: "{nextLink}",
1255
- urlParameters: [
1256
- nextPageLink
1257
- ],
1258
- headerParameters: [
1259
- acceptLanguage
1260
- ],
1261
- responses: {
1262
- 200: {
1263
- bodyMapper: OperationListResult
1264
- },
1265
- default: {
1266
- bodyMapper: ErrorDetails
1267
- }
1268
- },
1269
- serializer: serializer
1270
- };
1271
-
1272
- /*
1273
- * Copyright (c) Microsoft Corporation. All rights reserved.
1274
- * Licensed under the MIT License. See License.txt in the project root for
1275
- * license information.
1276
- *
1277
- * Code generated by Microsoft (R) AutoRest Code Generator.
1278
- * Changes may cause incorrect behavior and will be lost if the code is
1279
- * regenerated.
1280
- */
1281
-
1282
- var Mappers$1 = /*#__PURE__*/Object.freeze({
1283
- CertificateResponse: CertificateResponse,
1284
- BaseResource: BaseResource,
1285
- CertificateProperties: CertificateProperties,
1286
- ErrorDetails: ErrorDetails,
1287
- CertificateBodyDescription: CertificateBodyDescription,
1288
- CertificateListDescription: CertificateListDescription,
1289
- VerificationCodeResponse: VerificationCodeResponse,
1290
- VerificationCodeResponseProperties: VerificationCodeResponseProperties,
1291
- VerificationCodeRequest: VerificationCodeRequest,
1292
- Resource: Resource,
1293
- ProvisioningServiceDescription: ProvisioningServiceDescription,
1294
- IotDpsPropertiesDescription: IotDpsPropertiesDescription,
1295
- IotHubDefinitionDescription: IotHubDefinitionDescription,
1296
- SharedAccessSignatureAuthorizationRuleAccessRightsDescription: SharedAccessSignatureAuthorizationRuleAccessRightsDescription,
1297
- IotDpsSkuInfo: IotDpsSkuInfo
1298
- });
1299
-
1300
- /*
1301
- * Copyright (c) Microsoft Corporation. All rights reserved.
1302
- * Licensed under the MIT License. See License.txt in the project root for
1303
- * license information.
1304
- *
1305
- * Code generated by Microsoft (R) AutoRest Code Generator.
1306
- * Changes may cause incorrect behavior and will be lost if the code is
1307
- * regenerated.
1308
- */
1309
- /** Class representing a DpsCertificate. */
1310
- var DpsCertificate = /** @class */ (function () {
1311
- /**
1312
- * Create a DpsCertificate.
1313
- * @param {IotDpsClientContext} client Reference to the service client.
1314
- */
1315
- function DpsCertificate(client) {
1316
- this.client = client;
1317
- }
1318
- DpsCertificate.prototype.get = function (certificateName, resourceGroupName$$1, provisioningServiceName$$1, options, callback) {
1319
- return this.client.sendOperationRequest({
1320
- certificateName: certificateName,
1321
- resourceGroupName: resourceGroupName$$1,
1322
- provisioningServiceName: provisioningServiceName$$1,
1323
- options: options
1324
- }, getOperationSpec, callback);
1325
- };
1326
- DpsCertificate.prototype.createOrUpdate = function (resourceGroupName$$1, provisioningServiceName$$1, certificateName, certificateDescription, options, callback) {
1327
- return this.client.sendOperationRequest({
1328
- resourceGroupName: resourceGroupName$$1,
1329
- provisioningServiceName: provisioningServiceName$$1,
1330
- certificateName: certificateName,
1331
- certificateDescription: certificateDescription,
1332
- options: options
1333
- }, createOrUpdateOperationSpec, callback);
1334
- };
1335
- DpsCertificate.prototype.deleteMethod = function (resourceGroupName$$1, ifMatch, provisioningServiceName$$1, certificateName, options, callback) {
1336
- return this.client.sendOperationRequest({
1337
- resourceGroupName: resourceGroupName$$1,
1338
- ifMatch: ifMatch,
1339
- provisioningServiceName: provisioningServiceName$$1,
1340
- certificateName: certificateName,
1341
- options: options
1342
- }, deleteMethodOperationSpec, callback);
1343
- };
1344
- DpsCertificate.prototype.list = function (resourceGroupName$$1, provisioningServiceName$$1, options, callback) {
1345
- return this.client.sendOperationRequest({
1346
- resourceGroupName: resourceGroupName$$1,
1347
- provisioningServiceName: provisioningServiceName$$1,
1348
- options: options
1349
- }, listOperationSpec$1, callback);
1350
- };
1351
- DpsCertificate.prototype.generateVerificationCode = function (certificateName, ifMatch, resourceGroupName$$1, provisioningServiceName$$1, options, callback) {
1352
- return this.client.sendOperationRequest({
1353
- certificateName: certificateName,
1354
- ifMatch: ifMatch,
1355
- resourceGroupName: resourceGroupName$$1,
1356
- provisioningServiceName: provisioningServiceName$$1,
1357
- options: options
1358
- }, generateVerificationCodeOperationSpec, callback);
1359
- };
1360
- DpsCertificate.prototype.verifyCertificate = function (certificateName, ifMatch, request, resourceGroupName$$1, provisioningServiceName$$1, options, callback) {
1361
- return this.client.sendOperationRequest({
1362
- certificateName: certificateName,
1363
- ifMatch: ifMatch,
1364
- request: request,
1365
- resourceGroupName: resourceGroupName$$1,
1366
- provisioningServiceName: provisioningServiceName$$1,
1367
- options: options
1368
- }, verifyCertificateOperationSpec, callback);
1369
- };
1370
- return DpsCertificate;
1371
- }());
1372
- // Operation Specifications
1373
- var serializer$1 = new msRest.Serializer(Mappers$1);
1374
- var getOperationSpec = {
1375
- httpMethod: "GET",
1376
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}",
1377
- urlParameters: [
1378
- certificateName0,
1379
- subscriptionId,
1380
- resourceGroupName,
1381
- provisioningServiceName
1382
- ],
1383
- queryParameters: [
1384
- apiVersion
1385
- ],
1386
- headerParameters: [
1387
- ifMatch0,
1388
- acceptLanguage
1389
- ],
1390
- responses: {
1391
- 200: {
1392
- bodyMapper: CertificateResponse
1393
- },
1394
- default: {
1395
- bodyMapper: ErrorDetails
1396
- }
1397
- },
1398
- serializer: serializer$1
1399
- };
1400
- var createOrUpdateOperationSpec = {
1401
- httpMethod: "PUT",
1402
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}",
1403
- urlParameters: [
1404
- subscriptionId,
1405
- resourceGroupName,
1406
- provisioningServiceName,
1407
- certificateName1
1408
- ],
1409
- queryParameters: [
1410
- apiVersion
1411
- ],
1412
- headerParameters: [
1413
- ifMatch0,
1414
- acceptLanguage
1415
- ],
1416
- requestBody: {
1417
- parameterPath: "certificateDescription",
1418
- mapper: __assign({}, CertificateBodyDescription, { required: true })
1419
- },
1420
- responses: {
1421
- 200: {
1422
- bodyMapper: CertificateResponse
1423
- },
1424
- default: {
1425
- bodyMapper: ErrorDetails
1426
- }
1427
- },
1428
- serializer: serializer$1
1429
- };
1430
- var deleteMethodOperationSpec = {
1431
- httpMethod: "DELETE",
1432
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}",
1433
- urlParameters: [
1434
- subscriptionId,
1435
- resourceGroupName,
1436
- provisioningServiceName,
1437
- certificateName0
1438
- ],
1439
- queryParameters: [
1440
- certificatename,
1441
- certificaterawBytes,
1442
- certificateisVerified,
1443
- certificatepurpose,
1444
- certificatecreated,
1445
- certificatelastUpdated,
1446
- certificatehasPrivateKey,
1447
- certificatenonce,
1448
- apiVersion
1449
- ],
1450
- headerParameters: [
1451
- ifMatch1,
1452
- acceptLanguage
1453
- ],
1454
- responses: {
1455
- 200: {},
1456
- 204: {},
1457
- default: {
1458
- bodyMapper: ErrorDetails
1459
- }
1460
- },
1461
- serializer: serializer$1
1462
- };
1463
- var listOperationSpec$1 = {
1464
- httpMethod: "GET",
1465
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates",
1466
- urlParameters: [
1467
- subscriptionId,
1468
- resourceGroupName,
1469
- provisioningServiceName
1470
- ],
1471
- queryParameters: [
1472
- apiVersion
1473
- ],
1474
- headerParameters: [
1475
- acceptLanguage
1476
- ],
1477
- responses: {
1478
- 200: {
1479
- bodyMapper: CertificateListDescription
1480
- },
1481
- default: {
1482
- bodyMapper: ErrorDetails
1483
- }
1484
- },
1485
- serializer: serializer$1
1486
- };
1487
- var generateVerificationCodeOperationSpec = {
1488
- httpMethod: "POST",
1489
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/generateVerificationCode",
1490
- urlParameters: [
1491
- certificateName0,
1492
- subscriptionId,
1493
- resourceGroupName,
1494
- provisioningServiceName
1495
- ],
1496
- queryParameters: [
1497
- certificatename,
1498
- certificaterawBytes,
1499
- certificateisVerified,
1500
- certificatepurpose,
1501
- certificatecreated,
1502
- certificatelastUpdated,
1503
- certificatehasPrivateKey,
1504
- certificatenonce,
1505
- apiVersion
1506
- ],
1507
- headerParameters: [
1508
- ifMatch1,
1509
- acceptLanguage
1510
- ],
1511
- responses: {
1512
- 200: {
1513
- bodyMapper: VerificationCodeResponse
1514
- },
1515
- default: {
1516
- bodyMapper: ErrorDetails
1517
- }
1518
- },
1519
- serializer: serializer$1
1520
- };
1521
- var verifyCertificateOperationSpec = {
1522
- httpMethod: "POST",
1523
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/verify",
1524
- urlParameters: [
1525
- certificateName0,
1526
- subscriptionId,
1527
- resourceGroupName,
1528
- provisioningServiceName
1529
- ],
1530
- queryParameters: [
1531
- certificatename,
1532
- certificaterawBytes,
1533
- certificateisVerified,
1534
- certificatepurpose,
1535
- certificatecreated,
1536
- certificatelastUpdated,
1537
- certificatehasPrivateKey,
1538
- certificatenonce,
1539
- apiVersion
1540
- ],
1541
- headerParameters: [
1542
- ifMatch1,
1543
- acceptLanguage
1544
- ],
1545
- requestBody: {
1546
- parameterPath: "request",
1547
- mapper: __assign({}, VerificationCodeRequest, { required: true })
1548
- },
1549
- responses: {
1550
- 200: {
1551
- bodyMapper: CertificateResponse
1552
- },
1553
- default: {
1554
- bodyMapper: ErrorDetails
1555
- }
1556
- },
1557
- serializer: serializer$1
1558
- };
1559
-
1560
- /*
1561
- * Copyright (c) Microsoft Corporation. All rights reserved.
1562
- * Licensed under the MIT License. See License.txt in the project root for
1563
- * license information.
1564
- *
1565
- * Code generated by Microsoft (R) AutoRest Code Generator.
1566
- * Changes may cause incorrect behavior and will be lost if the code is
1567
- * regenerated.
1568
- */
1569
-
1570
- var Mappers$2 = /*#__PURE__*/Object.freeze({
1571
- ProvisioningServiceDescription: ProvisioningServiceDescription,
1572
- Resource: Resource,
1573
- BaseResource: BaseResource,
1574
- IotDpsPropertiesDescription: IotDpsPropertiesDescription,
1575
- IotHubDefinitionDescription: IotHubDefinitionDescription,
1576
- SharedAccessSignatureAuthorizationRuleAccessRightsDescription: SharedAccessSignatureAuthorizationRuleAccessRightsDescription,
1577
- IotDpsSkuInfo: IotDpsSkuInfo,
1578
- ErrorDetails: ErrorDetails,
1579
- TagsResource: TagsResource,
1580
- CloudError: CloudError,
1581
- ProvisioningServiceDescriptionListResult: ProvisioningServiceDescriptionListResult,
1582
- AsyncOperationResult: AsyncOperationResult,
1583
- ErrorMesssage: ErrorMesssage,
1584
- IotDpsSkuDefinitionListResult: IotDpsSkuDefinitionListResult,
1585
- IotDpsSkuDefinition: IotDpsSkuDefinition,
1586
- OperationInputs: OperationInputs,
1587
- NameAvailabilityInfo: NameAvailabilityInfo,
1588
- SharedAccessSignatureAuthorizationRuleListResult: SharedAccessSignatureAuthorizationRuleListResult,
1589
- CertificateResponse: CertificateResponse,
1590
- CertificateProperties: CertificateProperties,
1591
- VerificationCodeResponse: VerificationCodeResponse,
1592
- VerificationCodeResponseProperties: VerificationCodeResponseProperties
1593
- });
1594
-
1595
- /*
1596
- * Copyright (c) Microsoft Corporation. All rights reserved.
1597
- * Licensed under the MIT License. See License.txt in the project root for
1598
- * license information.
1599
- *
1600
- * Code generated by Microsoft (R) AutoRest Code Generator.
1601
- * Changes may cause incorrect behavior and will be lost if the code is
1602
- * regenerated.
1603
- */
1604
- /** Class representing a IotDpsResource. */
1605
- var IotDpsResource = /** @class */ (function () {
1606
- /**
1607
- * Create a IotDpsResource.
1608
- * @param {IotDpsClientContext} client Reference to the service client.
1609
- */
1610
- function IotDpsResource(client) {
1611
- this.client = client;
1612
- }
1613
- IotDpsResource.prototype.get = function (provisioningServiceName$$1, resourceGroupName$$1, options, callback) {
1614
- return this.client.sendOperationRequest({
1615
- provisioningServiceName: provisioningServiceName$$1,
1616
- resourceGroupName: resourceGroupName$$1,
1617
- options: options
1618
- }, getOperationSpec$1, callback);
1619
- };
1620
- /**
1621
- * Create or update the metadata of the provisioning service. The usual pattern to modify a
1622
- * property is to retrieve the provisioning service metadata and security metadata, and then
1623
- * combine them with the modified values in a new body to update the provisioning service.
1624
- * @summary Create or update the metadata of the provisioning service.
1625
- * @param resourceGroupName Resource group identifier.
1626
- * @param provisioningServiceName Name of provisioning service to create or update.
1627
- * @param iotDpsDescription Description of the provisioning service to create or update.
1628
- * @param [options] The optional parameters
1629
- * @returns Promise<Models.IotDpsResourceCreateOrUpdateResponse>
1630
- */
1631
- IotDpsResource.prototype.createOrUpdate = function (resourceGroupName$$1, provisioningServiceName$$1, iotDpsDescription, options) {
1632
- return this.beginCreateOrUpdate(resourceGroupName$$1, provisioningServiceName$$1, iotDpsDescription, options)
1633
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1634
- };
1635
- /**
1636
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate
1637
- * method
1638
- * @summary Update an existing provisioning service's tags.
1639
- * @param resourceGroupName Resource group identifier.
1640
- * @param provisioningServiceName Name of provisioning service to create or update.
1641
- * @param provisioningServiceTags Updated tag information to set into the provisioning service
1642
- * instance.
1643
- * @param [options] The optional parameters
1644
- * @returns Promise<Models.IotDpsResourceUpdateResponse>
1645
- */
1646
- IotDpsResource.prototype.update = function (resourceGroupName$$1, provisioningServiceName$$1, provisioningServiceTags, options) {
1647
- return this.beginUpdate(resourceGroupName$$1, provisioningServiceName$$1, provisioningServiceTags, options)
1648
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1649
- };
1650
- /**
1651
- * Deletes the Provisioning Service.
1652
- * @summary Delete the Provisioning Service
1653
- * @param provisioningServiceName Name of provisioning service to delete.
1654
- * @param resourceGroupName Resource group identifier.
1655
- * @param [options] The optional parameters
1656
- * @returns Promise<msRest.RestResponse>
1657
- */
1658
- IotDpsResource.prototype.deleteMethod = function (provisioningServiceName$$1, resourceGroupName$$1, options) {
1659
- return this.beginDeleteMethod(provisioningServiceName$$1, resourceGroupName$$1, options)
1660
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1661
- };
1662
- IotDpsResource.prototype.listBySubscription = function (options, callback) {
1663
- return this.client.sendOperationRequest({
1664
- options: options
1665
- }, listBySubscriptionOperationSpec, callback);
1666
- };
1667
- IotDpsResource.prototype.listByResourceGroup = function (resourceGroupName$$1, options, callback) {
1668
- return this.client.sendOperationRequest({
1669
- resourceGroupName: resourceGroupName$$1,
1670
- options: options
1671
- }, listByResourceGroupOperationSpec, callback);
1672
- };
1673
- IotDpsResource.prototype.getOperationResult = function (operationId$$1, resourceGroupName$$1, provisioningServiceName$$1, asyncinfo$$1, options, callback) {
1674
- return this.client.sendOperationRequest({
1675
- operationId: operationId$$1,
1676
- resourceGroupName: resourceGroupName$$1,
1677
- provisioningServiceName: provisioningServiceName$$1,
1678
- asyncinfo: asyncinfo$$1,
1679
- options: options
1680
- }, getOperationResultOperationSpec, callback);
1681
- };
1682
- IotDpsResource.prototype.listValidSkus = function (provisioningServiceName$$1, resourceGroupName$$1, options, callback) {
1683
- return this.client.sendOperationRequest({
1684
- provisioningServiceName: provisioningServiceName$$1,
1685
- resourceGroupName: resourceGroupName$$1,
1686
- options: options
1687
- }, listValidSkusOperationSpec, callback);
1688
- };
1689
- IotDpsResource.prototype.checkProvisioningServiceNameAvailability = function (argumentsParameter, options, callback) {
1690
- return this.client.sendOperationRequest({
1691
- argumentsParameter: argumentsParameter,
1692
- options: options
1693
- }, checkProvisioningServiceNameAvailabilityOperationSpec, callback);
1694
- };
1695
- IotDpsResource.prototype.listKeys = function (provisioningServiceName$$1, resourceGroupName$$1, options, callback) {
1696
- return this.client.sendOperationRequest({
1697
- provisioningServiceName: provisioningServiceName$$1,
1698
- resourceGroupName: resourceGroupName$$1,
1699
- options: options
1700
- }, listKeysOperationSpec, callback);
1701
- };
1702
- IotDpsResource.prototype.listKeysForKeyName = function (provisioningServiceName$$1, keyName$$1, resourceGroupName$$1, options, callback) {
1703
- return this.client.sendOperationRequest({
1704
- provisioningServiceName: provisioningServiceName$$1,
1705
- keyName: keyName$$1,
1706
- resourceGroupName: resourceGroupName$$1,
1707
- options: options
1708
- }, listKeysForKeyNameOperationSpec, callback);
1709
- };
1710
- /**
1711
- * Create or update the metadata of the provisioning service. The usual pattern to modify a
1712
- * property is to retrieve the provisioning service metadata and security metadata, and then
1713
- * combine them with the modified values in a new body to update the provisioning service.
1714
- * @summary Create or update the metadata of the provisioning service.
1715
- * @param resourceGroupName Resource group identifier.
1716
- * @param provisioningServiceName Name of provisioning service to create or update.
1717
- * @param iotDpsDescription Description of the provisioning service to create or update.
1718
- * @param [options] The optional parameters
1719
- * @returns Promise<msRestAzure.LROPoller>
1720
- */
1721
- IotDpsResource.prototype.beginCreateOrUpdate = function (resourceGroupName$$1, provisioningServiceName$$1, iotDpsDescription, options) {
1722
- return this.client.sendLRORequest({
1723
- resourceGroupName: resourceGroupName$$1,
1724
- provisioningServiceName: provisioningServiceName$$1,
1725
- iotDpsDescription: iotDpsDescription,
1726
- options: options
1727
- }, beginCreateOrUpdateOperationSpec, options);
1728
- };
1729
- /**
1730
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate
1731
- * method
1732
- * @summary Update an existing provisioning service's tags.
1733
- * @param resourceGroupName Resource group identifier.
1734
- * @param provisioningServiceName Name of provisioning service to create or update.
1735
- * @param provisioningServiceTags Updated tag information to set into the provisioning service
1736
- * instance.
1737
- * @param [options] The optional parameters
1738
- * @returns Promise<msRestAzure.LROPoller>
1739
- */
1740
- IotDpsResource.prototype.beginUpdate = function (resourceGroupName$$1, provisioningServiceName$$1, provisioningServiceTags, options) {
1741
- return this.client.sendLRORequest({
1742
- resourceGroupName: resourceGroupName$$1,
1743
- provisioningServiceName: provisioningServiceName$$1,
1744
- provisioningServiceTags: provisioningServiceTags,
1745
- options: options
1746
- }, beginUpdateOperationSpec, options);
1747
- };
1748
- /**
1749
- * Deletes the Provisioning Service.
1750
- * @summary Delete the Provisioning Service
1751
- * @param provisioningServiceName Name of provisioning service to delete.
1752
- * @param resourceGroupName Resource group identifier.
1753
- * @param [options] The optional parameters
1754
- * @returns Promise<msRestAzure.LROPoller>
1755
- */
1756
- IotDpsResource.prototype.beginDeleteMethod = function (provisioningServiceName$$1, resourceGroupName$$1, options) {
1757
- return this.client.sendLRORequest({
1758
- provisioningServiceName: provisioningServiceName$$1,
1759
- resourceGroupName: resourceGroupName$$1,
1760
- options: options
1761
- }, beginDeleteMethodOperationSpec, options);
1762
- };
1763
- IotDpsResource.prototype.listBySubscriptionNext = function (nextPageLink$$1, options, callback) {
1764
- return this.client.sendOperationRequest({
1765
- nextPageLink: nextPageLink$$1,
1766
- options: options
1767
- }, listBySubscriptionNextOperationSpec, callback);
1768
- };
1769
- IotDpsResource.prototype.listByResourceGroupNext = function (nextPageLink$$1, options, callback) {
1770
- return this.client.sendOperationRequest({
1771
- nextPageLink: nextPageLink$$1,
1772
- options: options
1773
- }, listByResourceGroupNextOperationSpec, callback);
1774
- };
1775
- IotDpsResource.prototype.listValidSkusNext = function (nextPageLink$$1, options, callback) {
1776
- return this.client.sendOperationRequest({
1777
- nextPageLink: nextPageLink$$1,
1778
- options: options
1779
- }, listValidSkusNextOperationSpec, callback);
1780
- };
1781
- IotDpsResource.prototype.listKeysNext = function (nextPageLink$$1, options, callback) {
1782
- return this.client.sendOperationRequest({
1783
- nextPageLink: nextPageLink$$1,
1784
- options: options
1785
- }, listKeysNextOperationSpec, callback);
1786
- };
1787
- return IotDpsResource;
1788
- }());
1789
- // Operation Specifications
1790
- var serializer$2 = new msRest.Serializer(Mappers$2);
1791
- var getOperationSpec$1 = {
1792
- httpMethod: "GET",
1793
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
1794
- urlParameters: [
1795
- provisioningServiceName,
1796
- subscriptionId,
1797
- resourceGroupName
1798
- ],
1799
- queryParameters: [
1800
- apiVersion
1801
- ],
1802
- headerParameters: [
1803
- acceptLanguage
1804
- ],
1805
- responses: {
1806
- 200: {
1807
- bodyMapper: ProvisioningServiceDescription
1808
- },
1809
- default: {
1810
- bodyMapper: ErrorDetails
1811
- }
1812
- },
1813
- serializer: serializer$2
1814
- };
1815
- var listBySubscriptionOperationSpec = {
1816
- httpMethod: "GET",
1817
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Devices/provisioningServices",
1818
- urlParameters: [
1819
- subscriptionId
1820
- ],
1821
- queryParameters: [
1822
- apiVersion
1823
- ],
1824
- headerParameters: [
1825
- acceptLanguage
1826
- ],
1827
- responses: {
1828
- 200: {
1829
- bodyMapper: ProvisioningServiceDescriptionListResult
1830
- },
1831
- default: {
1832
- bodyMapper: ErrorDetails
1833
- }
1834
- },
1835
- serializer: serializer$2
1836
- };
1837
- var listByResourceGroupOperationSpec = {
1838
- httpMethod: "GET",
1839
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices",
1840
- urlParameters: [
1841
- subscriptionId,
1842
- resourceGroupName
1843
- ],
1844
- queryParameters: [
1845
- apiVersion
1846
- ],
1847
- headerParameters: [
1848
- acceptLanguage
1849
- ],
1850
- responses: {
1851
- 200: {
1852
- bodyMapper: ProvisioningServiceDescriptionListResult
1853
- },
1854
- default: {
1855
- bodyMapper: ErrorDetails
1856
- }
1857
- },
1858
- serializer: serializer$2
1859
- };
1860
- var getOperationResultOperationSpec = {
1861
- httpMethod: "GET",
1862
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/operationresults/{operationId}",
1863
- urlParameters: [
1864
- operationId,
1865
- subscriptionId,
1866
- resourceGroupName,
1867
- provisioningServiceName
1868
- ],
1869
- queryParameters: [
1870
- asyncinfo,
1871
- apiVersion
1872
- ],
1873
- headerParameters: [
1874
- acceptLanguage
1875
- ],
1876
- responses: {
1877
- 200: {
1878
- bodyMapper: AsyncOperationResult
1879
- },
1880
- default: {
1881
- bodyMapper: ErrorDetails
1882
- }
1883
- },
1884
- serializer: serializer$2
1885
- };
1886
- var listValidSkusOperationSpec = {
1887
- httpMethod: "GET",
1888
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/skus",
1889
- urlParameters: [
1890
- provisioningServiceName,
1891
- subscriptionId,
1892
- resourceGroupName
1893
- ],
1894
- queryParameters: [
1895
- apiVersion
1896
- ],
1897
- headerParameters: [
1898
- acceptLanguage
1899
- ],
1900
- responses: {
1901
- 200: {
1902
- bodyMapper: IotDpsSkuDefinitionListResult
1903
- },
1904
- default: {
1905
- bodyMapper: ErrorDetails
1906
- }
1907
- },
1908
- serializer: serializer$2
1909
- };
1910
- var checkProvisioningServiceNameAvailabilityOperationSpec = {
1911
- httpMethod: "POST",
1912
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability",
1913
- urlParameters: [
1914
- subscriptionId
1915
- ],
1916
- queryParameters: [
1917
- apiVersion
1918
- ],
1919
- headerParameters: [
1920
- acceptLanguage
1921
- ],
1922
- requestBody: {
1923
- parameterPath: "argumentsParameter",
1924
- mapper: __assign({}, OperationInputs, { required: true })
1925
- },
1926
- responses: {
1927
- 200: {
1928
- bodyMapper: NameAvailabilityInfo
1929
- },
1930
- default: {
1931
- bodyMapper: ErrorDetails
1932
- }
1933
- },
1934
- serializer: serializer$2
1935
- };
1936
- var listKeysOperationSpec = {
1937
- httpMethod: "POST",
1938
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/listkeys",
1939
- urlParameters: [
1940
- provisioningServiceName,
1941
- subscriptionId,
1942
- resourceGroupName
1943
- ],
1944
- queryParameters: [
1945
- apiVersion
1946
- ],
1947
- headerParameters: [
1948
- acceptLanguage
1949
- ],
1950
- responses: {
1951
- 200: {
1952
- bodyMapper: SharedAccessSignatureAuthorizationRuleListResult
1953
- },
1954
- default: {
1955
- bodyMapper: ErrorDetails
1956
- }
1957
- },
1958
- serializer: serializer$2
1959
- };
1960
- var listKeysForKeyNameOperationSpec = {
1961
- httpMethod: "POST",
1962
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/keys/{keyName}/listkeys",
1963
- urlParameters: [
1964
- provisioningServiceName,
1965
- keyName,
1966
- subscriptionId,
1967
- resourceGroupName
1968
- ],
1969
- queryParameters: [
1970
- apiVersion
1971
- ],
1972
- headerParameters: [
1973
- acceptLanguage
1974
- ],
1975
- responses: {
1976
- 200: {
1977
- bodyMapper: SharedAccessSignatureAuthorizationRuleAccessRightsDescription
1978
- },
1979
- default: {
1980
- bodyMapper: ErrorDetails
1981
- }
1982
- },
1983
- serializer: serializer$2
1984
- };
1985
- var beginCreateOrUpdateOperationSpec = {
1986
- httpMethod: "PUT",
1987
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
1988
- urlParameters: [
1989
- subscriptionId,
1990
- resourceGroupName,
1991
- provisioningServiceName
1992
- ],
1993
- queryParameters: [
1994
- apiVersion
1995
- ],
1996
- headerParameters: [
1997
- acceptLanguage
1998
- ],
1999
- requestBody: {
2000
- parameterPath: "iotDpsDescription",
2001
- mapper: __assign({}, ProvisioningServiceDescription, { required: true })
2002
- },
2003
- responses: {
2004
- 200: {
2005
- bodyMapper: ProvisioningServiceDescription
2006
- },
2007
- 201: {
2008
- bodyMapper: ProvisioningServiceDescription
2009
- },
2010
- default: {
2011
- bodyMapper: ErrorDetails
2012
- }
2013
- },
2014
- serializer: serializer$2
2015
- };
2016
- var beginUpdateOperationSpec = {
2017
- httpMethod: "PATCH",
2018
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
2019
- urlParameters: [
2020
- subscriptionId,
2021
- resourceGroupName,
2022
- provisioningServiceName
2023
- ],
2024
- queryParameters: [
2025
- apiVersion
2026
- ],
2027
- headerParameters: [
2028
- acceptLanguage
2029
- ],
2030
- requestBody: {
2031
- parameterPath: "provisioningServiceTags",
2032
- mapper: __assign({}, TagsResource, { required: true })
2033
- },
2034
- responses: {
2035
- 200: {
2036
- bodyMapper: ProvisioningServiceDescription
2037
- },
2038
- default: {
2039
- bodyMapper: CloudError
2040
- }
2041
- },
2042
- serializer: serializer$2
2043
- };
2044
- var beginDeleteMethodOperationSpec = {
2045
- httpMethod: "DELETE",
2046
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
2047
- urlParameters: [
2048
- provisioningServiceName,
2049
- subscriptionId,
2050
- resourceGroupName
2051
- ],
2052
- queryParameters: [
2053
- apiVersion
2054
- ],
2055
- headerParameters: [
2056
- acceptLanguage
2057
- ],
2058
- responses: {
2059
- 200: {},
2060
- 202: {},
2061
- 204: {},
2062
- 404: {},
2063
- default: {
2064
- bodyMapper: ErrorDetails
2065
- }
2066
- },
2067
- serializer: serializer$2
2068
- };
2069
- var listBySubscriptionNextOperationSpec = {
2070
- httpMethod: "GET",
2071
- baseUrl: "https://management.azure.com",
2072
- path: "{nextLink}",
2073
- urlParameters: [
2074
- nextPageLink
2075
- ],
2076
- headerParameters: [
2077
- acceptLanguage
2078
- ],
2079
- responses: {
2080
- 200: {
2081
- bodyMapper: ProvisioningServiceDescriptionListResult
2082
- },
2083
- default: {
2084
- bodyMapper: ErrorDetails
2085
- }
2086
- },
2087
- serializer: serializer$2
2088
- };
2089
- var listByResourceGroupNextOperationSpec = {
2090
- httpMethod: "GET",
2091
- baseUrl: "https://management.azure.com",
2092
- path: "{nextLink}",
2093
- urlParameters: [
2094
- nextPageLink
2095
- ],
2096
- headerParameters: [
2097
- acceptLanguage
2098
- ],
2099
- responses: {
2100
- 200: {
2101
- bodyMapper: ProvisioningServiceDescriptionListResult
2102
- },
2103
- default: {
2104
- bodyMapper: ErrorDetails
2105
- }
2106
- },
2107
- serializer: serializer$2
2108
- };
2109
- var listValidSkusNextOperationSpec = {
2110
- httpMethod: "GET",
2111
- baseUrl: "https://management.azure.com",
2112
- path: "{nextLink}",
2113
- urlParameters: [
2114
- nextPageLink
2115
- ],
2116
- headerParameters: [
2117
- acceptLanguage
2118
- ],
2119
- responses: {
2120
- 200: {
2121
- bodyMapper: IotDpsSkuDefinitionListResult
2122
- },
2123
- default: {
2124
- bodyMapper: ErrorDetails
2125
- }
2126
- },
2127
- serializer: serializer$2
2128
- };
2129
- var listKeysNextOperationSpec = {
2130
- httpMethod: "POST",
2131
- baseUrl: "https://management.azure.com",
2132
- path: "{nextLink}",
2133
- urlParameters: [
2134
- nextPageLink
2135
- ],
2136
- headerParameters: [
2137
- acceptLanguage
2138
- ],
2139
- responses: {
2140
- 200: {
2141
- bodyMapper: SharedAccessSignatureAuthorizationRuleListResult
2142
- },
2143
- default: {
2144
- bodyMapper: ErrorDetails
2145
- }
2146
- },
2147
- serializer: serializer$2
2148
- };
2149
-
2150
- /*
2151
- * Copyright (c) Microsoft Corporation. All rights reserved.
2152
- * Licensed under the MIT License. See License.txt in the project root for
2153
- * license information.
2154
- *
2155
- * Code generated by Microsoft (R) AutoRest Code Generator.
2156
- * Changes may cause incorrect behavior and will be lost if the code is
2157
- * regenerated.
2158
- */
2159
-
2160
- /*
2161
- * Copyright (c) Microsoft Corporation. All rights reserved.
2162
- * Licensed under the MIT License. See License.txt in the project root for
2163
- * license information.
2164
- *
2165
- * Code generated by Microsoft (R) AutoRest Code Generator.
2166
- * Changes may cause incorrect behavior and will be lost if the code is
2167
- * regenerated.
2168
- */
2169
- var packageName = "@azure/arm-deviceprovisioningservices";
2170
- var packageVersion = "0.1.0";
2171
- var IotDpsClientContext = /** @class */ (function (_super) {
2172
- __extends(IotDpsClientContext, _super);
2173
- /**
2174
- * Initializes a new instance of the IotDpsClient class.
2175
- * @param credentials Credentials needed for the client to connect to Azure.
2176
- * @param subscriptionId The subscription identifier.
2177
- * @param [options] The parameter options
2178
- */
2179
- function IotDpsClientContext(credentials, subscriptionId, options) {
2180
- var _this = this;
2181
- if (credentials == undefined) {
2182
- throw new Error('\'credentials\' cannot be null.');
2183
- }
2184
- if (subscriptionId == undefined) {
2185
- throw new Error('\'subscriptionId\' cannot be null.');
2186
- }
2187
- if (!options) {
2188
- options = {};
2189
- }
2190
- if (!options.userAgent) {
2191
- var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
2192
- options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
2193
- }
2194
- _this = _super.call(this, credentials, options) || this;
2195
- _this.apiVersion = '2018-01-22';
2196
- _this.acceptLanguage = 'en-US';
2197
- _this.longRunningOperationRetryTimeout = 30;
2198
- _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
2199
- _this.requestContentType = "application/json; charset=utf-8";
2200
- _this.credentials = credentials;
2201
- _this.subscriptionId = subscriptionId;
2202
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
2203
- _this.acceptLanguage = options.acceptLanguage;
2204
- }
2205
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
2206
- _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
2207
- }
2208
- return _this;
2209
- }
2210
- return IotDpsClientContext;
2211
- }(msRestAzure.AzureServiceClient));
2212
-
2213
- /*
2214
- * Copyright (c) Microsoft Corporation. All rights reserved.
2215
- * Licensed under the MIT License. See License.txt in the project root for
2216
- * license information.
2217
- *
2218
- * Code generated by Microsoft (R) AutoRest Code Generator.
2219
- * Changes may cause incorrect behavior and will be lost if the code is
2220
- * regenerated.
2221
- */
2222
- var IotDpsClient = /** @class */ (function (_super) {
2223
- __extends(IotDpsClient, _super);
2224
- /**
2225
- * Initializes a new instance of the IotDpsClient class.
2226
- * @param credentials Credentials needed for the client to connect to Azure.
2227
- * @param subscriptionId The subscription identifier.
2228
- * @param [options] The parameter options
2229
- */
2230
- function IotDpsClient(credentials, subscriptionId, options) {
2231
- var _this = _super.call(this, credentials, subscriptionId, options) || this;
2232
- _this.operations = new Operations(_this);
2233
- _this.dpsCertificate = new DpsCertificate(_this);
2234
- _this.iotDpsResource = new IotDpsResource(_this);
2235
- return _this;
2236
- }
2237
- return IotDpsClient;
2238
- }(IotDpsClientContext));
2239
-
2240
- exports.IotDpsClient = IotDpsClient;
2241
- exports.IotDpsClientContext = IotDpsClientContext;
2242
- exports.IotDpsModels = index;
2243
- exports.IotDpsMappers = mappers;
2244
- exports.Operations = Operations;
2245
- exports.DpsCertificate = DpsCertificate;
2246
- exports.IotDpsResource = IotDpsResource;
2247
-
2248
- Object.defineProperty(exports, '__esModule', { value: true });
2249
-
2250
- })));
2251
- //# sourceMappingURL=arm-deviceprovisioningservices.js.map