@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,1342 +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
-
11
- import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
12
- import * as msRest from "@azure/ms-rest-js";
13
-
14
- export { BaseResource, CloudError };
15
-
16
-
17
- /**
18
- * @interface
19
- * An interface representing ErrorMesssage.
20
- * Error response containing message and code.
21
- *
22
- */
23
- export interface ErrorMesssage {
24
- /**
25
- * @member {string} [code] standard error code
26
- */
27
- code?: string;
28
- /**
29
- * @member {string} [message] standard error description
30
- */
31
- message?: string;
32
- /**
33
- * @member {string} [details] detailed summary of error
34
- */
35
- details?: string;
36
- }
37
-
38
- /**
39
- * @interface
40
- * An interface representing AsyncOperationResult.
41
- * Result of a long running operation.
42
- *
43
- */
44
- export interface AsyncOperationResult {
45
- /**
46
- * @member {string} [status] current status of a long running operation.
47
- */
48
- status?: string;
49
- /**
50
- * @member {ErrorMesssage} [error] Error message containing code, description
51
- * and details
52
- */
53
- error?: ErrorMesssage;
54
- }
55
-
56
- /**
57
- * @interface
58
- * An interface representing CertificateProperties.
59
- * The description of an X509 CA Certificate.
60
- *
61
- */
62
- export interface CertificateProperties {
63
- /**
64
- * @member {string} [subject] The certificate's subject name.
65
- * **NOTE: This property will not be serialized. It can only be populated by
66
- * the server.**
67
- */
68
- readonly subject?: string;
69
- /**
70
- * @member {Date} [expiry] The certificate's expiration date and time.
71
- * **NOTE: This property will not be serialized. It can only be populated by
72
- * the server.**
73
- */
74
- readonly expiry?: Date;
75
- /**
76
- * @member {string} [thumbprint] The certificate's thumbprint.
77
- * **NOTE: This property will not be serialized. It can only be populated by
78
- * the server.**
79
- */
80
- readonly thumbprint?: string;
81
- /**
82
- * @member {boolean} [isVerified] Determines whether certificate has been
83
- * verified.
84
- * **NOTE: This property will not be serialized. It can only be populated by
85
- * the server.**
86
- */
87
- readonly isVerified?: boolean;
88
- /**
89
- * @member {Date} [created] The certificate's creation date and time.
90
- * **NOTE: This property will not be serialized. It can only be populated by
91
- * the server.**
92
- */
93
- readonly created?: Date;
94
- /**
95
- * @member {Date} [updated] The certificate's last update date and time.
96
- * **NOTE: This property will not be serialized. It can only be populated by
97
- * the server.**
98
- */
99
- readonly updated?: Date;
100
- }
101
-
102
- /**
103
- * @interface
104
- * An interface representing CertificateResponse.
105
- * The X509 Certificate.
106
- *
107
- * @extends BaseResource
108
- */
109
- export interface CertificateResponse extends BaseResource {
110
- /**
111
- * @member {CertificateProperties} [properties] properties of a certificate
112
- */
113
- properties?: CertificateProperties;
114
- /**
115
- * @member {string} [id] The resource identifier.
116
- * **NOTE: This property will not be serialized. It can only be populated by
117
- * the server.**
118
- */
119
- readonly id?: string;
120
- /**
121
- * @member {string} [name] The name of the certificate.
122
- * **NOTE: This property will not be serialized. It can only be populated by
123
- * the server.**
124
- */
125
- readonly name?: string;
126
- /**
127
- * @member {string} [etag] The entity tag.
128
- * **NOTE: This property will not be serialized. It can only be populated by
129
- * the server.**
130
- */
131
- readonly etag?: string;
132
- /**
133
- * @member {string} [type] The resource type.
134
- * **NOTE: This property will not be serialized. It can only be populated by
135
- * the server.**
136
- */
137
- readonly type?: string;
138
- }
139
-
140
- /**
141
- * @interface
142
- * An interface representing CertificateListDescription.
143
- * The JSON-serialized array of Certificate objects.
144
- *
145
- */
146
- export interface CertificateListDescription {
147
- /**
148
- * @member {CertificateResponse[]} [value] The array of Certificate objects.
149
- */
150
- value?: CertificateResponse[];
151
- }
152
-
153
- /**
154
- * @interface
155
- * An interface representing CertificateBodyDescription.
156
- * The JSON-serialized X509 Certificate.
157
- *
158
- */
159
- export interface CertificateBodyDescription {
160
- /**
161
- * @member {string} [certificate] Base-64 representation of the X509 leaf
162
- * certificate .cer file or just .pem file content.
163
- */
164
- certificate?: string;
165
- }
166
-
167
- /**
168
- * @interface
169
- * An interface representing IotDpsSkuInfo.
170
- * List of possible provisoning service SKUs.
171
- *
172
- */
173
- export interface IotDpsSkuInfo {
174
- /**
175
- * @member {IotDpsSku} [name] Sku name. Possible values include: 'S1'
176
- */
177
- name?: IotDpsSku;
178
- /**
179
- * @member {string} [tier] Pricing tier name of the provisioning service.
180
- * **NOTE: This property will not be serialized. It can only be populated by
181
- * the server.**
182
- */
183
- readonly tier?: string;
184
- /**
185
- * @member {number} [capacity] The number of units to provision
186
- */
187
- capacity?: number;
188
- }
189
-
190
- /**
191
- * @interface
192
- * An interface representing IotHubDefinitionDescription.
193
- * Description of the IoT hub.
194
- *
195
- */
196
- export interface IotHubDefinitionDescription {
197
- /**
198
- * @member {boolean} [applyAllocationPolicy] flag for applying
199
- * allocationPolicy or not for a given iot hub.
200
- */
201
- applyAllocationPolicy?: boolean;
202
- /**
203
- * @member {number} [allocationWeight] weight to apply for a given iot h.
204
- */
205
- allocationWeight?: number;
206
- /**
207
- * @member {string} [name] Host name of the IoT hub.
208
- * **NOTE: This property will not be serialized. It can only be populated by
209
- * the server.**
210
- */
211
- readonly name?: string;
212
- /**
213
- * @member {string} connectionString Connection string og the IoT hub.
214
- */
215
- connectionString: string;
216
- /**
217
- * @member {string} location ARM region of the IoT hub.
218
- */
219
- location: string;
220
- }
221
-
222
- /**
223
- * @interface
224
- * An interface representing SharedAccessSignatureAuthorizationRuleAccessRightsDescription.
225
- * Description of the shared access key.
226
- *
227
- */
228
- export interface SharedAccessSignatureAuthorizationRuleAccessRightsDescription {
229
- /**
230
- * @member {string} keyName Name of the key.
231
- */
232
- keyName: string;
233
- /**
234
- * @member {string} [primaryKey] Primary SAS key value.
235
- */
236
- primaryKey?: string;
237
- /**
238
- * @member {string} [secondaryKey] Secondary SAS key value.
239
- */
240
- secondaryKey?: string;
241
- /**
242
- * @member {AccessRightsDescription} rights Rights that this key has.
243
- * Possible values include: 'ServiceConfig', 'EnrollmentRead',
244
- * 'EnrollmentWrite', 'DeviceConnect', 'RegistrationStatusRead',
245
- * 'RegistrationStatusWrite'
246
- */
247
- rights: AccessRightsDescription;
248
- }
249
-
250
- /**
251
- * @interface
252
- * An interface representing IotDpsPropertiesDescription.
253
- * the service specific properties of a provisoning service, including keys,
254
- * linked iot hubs, current state, and system generated properties such as
255
- * hostname and idScope
256
- *
257
- */
258
- export interface IotDpsPropertiesDescription {
259
- /**
260
- * @member {State} [state] Current state of the provisioning service.
261
- * Possible values include: 'Activating', 'Active', 'Deleting', 'Deleted',
262
- * 'ActivationFailed', 'DeletionFailed', 'Transitioning', 'Suspending',
263
- * 'Suspended', 'Resuming', 'FailingOver', 'FailoverFailed'
264
- */
265
- state?: State;
266
- /**
267
- * @member {string} [provisioningState] The ARM provisioning state of the
268
- * provisioning service.
269
- */
270
- provisioningState?: string;
271
- /**
272
- * @member {IotHubDefinitionDescription[]} [iotHubs] List of IoT hubs
273
- * assosciated with this provisioning service.
274
- */
275
- iotHubs?: IotHubDefinitionDescription[];
276
- /**
277
- * @member {AllocationPolicy} [allocationPolicy] Allocation policy to be used
278
- * by this provisioning service. Possible values include: 'Hashed',
279
- * 'GeoLatency', 'Static'
280
- */
281
- allocationPolicy?: AllocationPolicy;
282
- /**
283
- * @member {string} [serviceOperationsHostName] Service endpoint for
284
- * provisioning service.
285
- * **NOTE: This property will not be serialized. It can only be populated by
286
- * the server.**
287
- */
288
- readonly serviceOperationsHostName?: string;
289
- /**
290
- * @member {string} [deviceProvisioningHostName] Device endpoint for this
291
- * provisioning service.
292
- * **NOTE: This property will not be serialized. It can only be populated by
293
- * the server.**
294
- */
295
- readonly deviceProvisioningHostName?: string;
296
- /**
297
- * @member {string} [idScope] Unique identifier of this provisioning service.
298
- * **NOTE: This property will not be serialized. It can only be populated by
299
- * the server.**
300
- */
301
- readonly idScope?: string;
302
- /**
303
- * @member {SharedAccessSignatureAuthorizationRuleAccessRightsDescription[]}
304
- * [authorizationPolicies] List of authorization keys for a provisioning
305
- * service.
306
- */
307
- authorizationPolicies?: SharedAccessSignatureAuthorizationRuleAccessRightsDescription[];
308
- }
309
-
310
- /**
311
- * @interface
312
- * An interface representing Resource.
313
- * The common properties of an Azure resource.
314
- *
315
- * @extends BaseResource
316
- */
317
- export interface Resource extends BaseResource {
318
- /**
319
- * @member {string} [id] The resource identifier.
320
- * **NOTE: This property will not be serialized. It can only be populated by
321
- * the server.**
322
- */
323
- readonly id?: string;
324
- /**
325
- * @member {string} [name] The resource name.
326
- * **NOTE: This property will not be serialized. It can only be populated by
327
- * the server.**
328
- */
329
- readonly name?: string;
330
- /**
331
- * @member {string} [type] The resource type.
332
- * **NOTE: This property will not be serialized. It can only be populated by
333
- * the server.**
334
- */
335
- readonly type?: string;
336
- /**
337
- * @member {string} location The resource location.
338
- */
339
- location: string;
340
- /**
341
- * @member {{ [propertyName: string]: string }} [tags] The resource tags.
342
- */
343
- tags?: { [propertyName: string]: string };
344
- }
345
-
346
- /**
347
- * @interface
348
- * An interface representing ProvisioningServiceDescription.
349
- * The description of the provisioning service.
350
- *
351
- * @extends Resource
352
- */
353
- export interface ProvisioningServiceDescription extends Resource {
354
- /**
355
- * @member {string} [etag] The Etag field is *not* required. If it is
356
- * provided in the response body, it must also be provided as a header per
357
- * the normal ETag convention.
358
- */
359
- etag?: string;
360
- /**
361
- * @member {IotDpsPropertiesDescription} properties Service specific
362
- * properties for a provisioning service
363
- */
364
- properties: IotDpsPropertiesDescription;
365
- /**
366
- * @member {IotDpsSkuInfo} sku Sku info for a provisioning Service.
367
- */
368
- sku: IotDpsSkuInfo;
369
- }
370
-
371
- /**
372
- * @interface
373
- * An interface representing OperationDisplay.
374
- * The object that represents the operation.
375
- *
376
- */
377
- export interface OperationDisplay {
378
- /**
379
- * @member {string} [provider] Service provider: Microsoft Devices.
380
- * **NOTE: This property will not be serialized. It can only be populated by
381
- * the server.**
382
- */
383
- readonly provider?: string;
384
- /**
385
- * @member {string} [resource] Resource Type: ProvisioningServices.
386
- * **NOTE: This property will not be serialized. It can only be populated by
387
- * the server.**
388
- */
389
- readonly resource?: string;
390
- /**
391
- * @member {string} [operation] Name of the operation.
392
- * **NOTE: This property will not be serialized. It can only be populated by
393
- * the server.**
394
- */
395
- readonly operation?: string;
396
- }
397
-
398
- /**
399
- * @interface
400
- * An interface representing Operation.
401
- * IoT Hub REST API operation.
402
- *
403
- */
404
- export interface Operation {
405
- /**
406
- * @member {string} [name] Operation name: {provider}/{resource}/{read |
407
- * write | action | delete}
408
- * **NOTE: This property will not be serialized. It can only be populated by
409
- * the server.**
410
- */
411
- readonly name?: string;
412
- /**
413
- * @member {OperationDisplay} [display] The object that represents the
414
- * operation.
415
- */
416
- display?: OperationDisplay;
417
- }
418
-
419
- /**
420
- * @interface
421
- * An interface representing ErrorDetails.
422
- * Error details.
423
- *
424
- */
425
- export interface ErrorDetails {
426
- /**
427
- * @member {string} [code] The error code.
428
- * **NOTE: This property will not be serialized. It can only be populated by
429
- * the server.**
430
- */
431
- readonly code?: string;
432
- /**
433
- * @member {string} [httpStatusCode] The HTTP status code.
434
- * **NOTE: This property will not be serialized. It can only be populated by
435
- * the server.**
436
- */
437
- readonly httpStatusCode?: string;
438
- /**
439
- * @member {string} [message] The error message.
440
- * **NOTE: This property will not be serialized. It can only be populated by
441
- * the server.**
442
- */
443
- readonly message?: string;
444
- /**
445
- * @member {string} [details] The error details.
446
- * **NOTE: This property will not be serialized. It can only be populated by
447
- * the server.**
448
- */
449
- readonly details?: string;
450
- }
451
-
452
- /**
453
- * @interface
454
- * An interface representing IotDpsSkuDefinition.
455
- * Available Sku's of tier and units.
456
- *
457
- */
458
- export interface IotDpsSkuDefinition {
459
- /**
460
- * @member {IotDpsSku} [name] Sku name. Possible values include: 'S1'
461
- */
462
- name?: IotDpsSku;
463
- }
464
-
465
- /**
466
- * @interface
467
- * An interface representing OperationInputs.
468
- * Input values for operation results call.
469
- *
470
- */
471
- export interface OperationInputs {
472
- /**
473
- * @member {string} name The name of the Provisioning Service to check.
474
- */
475
- name: string;
476
- }
477
-
478
- /**
479
- * @interface
480
- * An interface representing NameAvailabilityInfo.
481
- * Description of name availability.
482
- *
483
- */
484
- export interface NameAvailabilityInfo {
485
- /**
486
- * @member {boolean} [nameAvailable] specifies if a name is available or not
487
- */
488
- nameAvailable?: boolean;
489
- /**
490
- * @member {NameUnavailabilityReason} [reason] specifies the reason a name is
491
- * unavailable. Possible values include: 'Invalid', 'AlreadyExists'
492
- */
493
- reason?: NameUnavailabilityReason;
494
- /**
495
- * @member {string} [message] message containing a etailed reason name is
496
- * unavailable
497
- */
498
- message?: string;
499
- }
500
-
501
- /**
502
- * @interface
503
- * An interface representing TagsResource.
504
- * A container holding only the Tags for a resource, allowing the user to
505
- * update the tags on a Provisioning Service instance.
506
- *
507
- */
508
- export interface TagsResource {
509
- /**
510
- * @member {{ [propertyName: string]: string }} [tags] Resource tags
511
- */
512
- tags?: { [propertyName: string]: string };
513
- }
514
-
515
- /**
516
- * @interface
517
- * An interface representing VerificationCodeResponseProperties.
518
- */
519
- export interface VerificationCodeResponseProperties {
520
- /**
521
- * @member {string} [verificationCode] Verification code.
522
- */
523
- verificationCode?: string;
524
- /**
525
- * @member {string} [subject] Certificate subject.
526
- */
527
- subject?: string;
528
- /**
529
- * @member {string} [expiry] Code expiry.
530
- */
531
- expiry?: string;
532
- /**
533
- * @member {string} [thumbprint] Certificate thumbprint.
534
- */
535
- thumbprint?: string;
536
- /**
537
- * @member {boolean} [isVerified] Indicate if the certificate is verified by
538
- * owner of private key.
539
- */
540
- isVerified?: boolean;
541
- /**
542
- * @member {string} [created] Certificate created time.
543
- */
544
- created?: string;
545
- /**
546
- * @member {string} [updated] Certificate updated time.
547
- */
548
- updated?: string;
549
- }
550
-
551
- /**
552
- * @interface
553
- * An interface representing VerificationCodeResponse.
554
- * Description of the response of the verification code.
555
- *
556
- * @extends BaseResource
557
- */
558
- export interface VerificationCodeResponse extends BaseResource {
559
- /**
560
- * @member {string} [name] Name of certificate.
561
- * **NOTE: This property will not be serialized. It can only be populated by
562
- * the server.**
563
- */
564
- readonly name?: string;
565
- /**
566
- * @member {string} [etag] Request etag.
567
- * **NOTE: This property will not be serialized. It can only be populated by
568
- * the server.**
569
- */
570
- readonly etag?: string;
571
- /**
572
- * @member {string} [id] The resource identifier.
573
- * **NOTE: This property will not be serialized. It can only be populated by
574
- * the server.**
575
- */
576
- readonly id?: string;
577
- /**
578
- * @member {string} [type] The resource type.
579
- * **NOTE: This property will not be serialized. It can only be populated by
580
- * the server.**
581
- */
582
- readonly type?: string;
583
- /**
584
- * @member {VerificationCodeResponseProperties} [properties]
585
- */
586
- properties?: VerificationCodeResponseProperties;
587
- }
588
-
589
- /**
590
- * @interface
591
- * An interface representing VerificationCodeRequest.
592
- * The JSON-serialized leaf certificate
593
- *
594
- */
595
- export interface VerificationCodeRequest {
596
- /**
597
- * @member {string} [certificate] base-64 representation of X509 certificate
598
- * .cer file or just .pem file content.
599
- */
600
- certificate?: string;
601
- }
602
-
603
- /**
604
- * @interface
605
- * An interface representing DpsCertificateGetOptionalParams.
606
- * Optional Parameters.
607
- *
608
- * @extends RequestOptionsBase
609
- */
610
- export interface DpsCertificateGetOptionalParams extends msRest.RequestOptionsBase {
611
- /**
612
- * @member {string} [ifMatch] ETag of the certificate.
613
- */
614
- ifMatch?: string;
615
- }
616
-
617
- /**
618
- * @interface
619
- * An interface representing DpsCertificateCreateOrUpdateOptionalParams.
620
- * Optional Parameters.
621
- *
622
- * @extends RequestOptionsBase
623
- */
624
- export interface DpsCertificateCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase {
625
- /**
626
- * @member {string} [ifMatch] ETag of the certificate. This is required to
627
- * update an existing certificate, and ignored while creating a brand new
628
- * certificate.
629
- */
630
- ifMatch?: string;
631
- }
632
-
633
- /**
634
- * @interface
635
- * An interface representing DpsCertificateDeleteMethodOptionalParams.
636
- * Optional Parameters.
637
- *
638
- * @extends RequestOptionsBase
639
- */
640
- export interface DpsCertificateDeleteMethodOptionalParams extends msRest.RequestOptionsBase {
641
- /**
642
- * @member {string} [certificatename] This is optional, and it is the Common
643
- * Name of the certificate.
644
- */
645
- certificatename?: string;
646
- /**
647
- * @member {Uint8Array} [certificaterawBytes] Raw data within the
648
- * certificate.
649
- */
650
- certificaterawBytes?: Uint8Array;
651
- /**
652
- * @member {boolean} [certificateisVerified] Indicates if certificate has
653
- * been verified by owner of the private key.
654
- */
655
- certificateisVerified?: boolean;
656
- /**
657
- * @member {CertificatePurpose} [certificatepurpose] A description that
658
- * mentions the purpose of the certificate. Possible values include:
659
- * 'clientAuthentication', 'serverAuthentication'
660
- */
661
- certificatepurpose?: CertificatePurpose;
662
- /**
663
- * @member {Date} [certificatecreated] Time the certificate is created.
664
- */
665
- certificatecreated?: Date;
666
- /**
667
- * @member {Date} [certificatelastUpdated] Time the certificate is last
668
- * updated.
669
- */
670
- certificatelastUpdated?: Date;
671
- /**
672
- * @member {boolean} [certificatehasPrivateKey] Indicates if the certificate
673
- * contains a private key.
674
- */
675
- certificatehasPrivateKey?: boolean;
676
- /**
677
- * @member {string} [certificatenonce] Random number generated to indicate
678
- * Proof of Possession.
679
- */
680
- certificatenonce?: string;
681
- }
682
-
683
- /**
684
- * @interface
685
- * An interface representing DpsCertificateGenerateVerificationCodeOptionalParams.
686
- * Optional Parameters.
687
- *
688
- * @extends RequestOptionsBase
689
- */
690
- export interface DpsCertificateGenerateVerificationCodeOptionalParams extends msRest.RequestOptionsBase {
691
- /**
692
- * @member {string} [certificatename] Common Name for the certificate.
693
- */
694
- certificatename?: string;
695
- /**
696
- * @member {Uint8Array} [certificaterawBytes] Raw data of certificate.
697
- */
698
- certificaterawBytes?: Uint8Array;
699
- /**
700
- * @member {boolean} [certificateisVerified] Indicates if the certificate has
701
- * been verified by owner of the private key.
702
- */
703
- certificateisVerified?: boolean;
704
- /**
705
- * @member {CertificatePurpose} [certificatepurpose] Description mentioning
706
- * the purpose of the certificate. Possible values include:
707
- * 'clientAuthentication', 'serverAuthentication'
708
- */
709
- certificatepurpose?: CertificatePurpose;
710
- /**
711
- * @member {Date} [certificatecreated] Certificate creation time.
712
- */
713
- certificatecreated?: Date;
714
- /**
715
- * @member {Date} [certificatelastUpdated] Certificate last updated time.
716
- */
717
- certificatelastUpdated?: Date;
718
- /**
719
- * @member {boolean} [certificatehasPrivateKey] Indicates if the certificate
720
- * contains private key.
721
- */
722
- certificatehasPrivateKey?: boolean;
723
- /**
724
- * @member {string} [certificatenonce] Random number generated to indicate
725
- * Proof of Possession.
726
- */
727
- certificatenonce?: string;
728
- }
729
-
730
- /**
731
- * @interface
732
- * An interface representing DpsCertificateVerifyCertificateOptionalParams.
733
- * Optional Parameters.
734
- *
735
- * @extends RequestOptionsBase
736
- */
737
- export interface DpsCertificateVerifyCertificateOptionalParams extends msRest.RequestOptionsBase {
738
- /**
739
- * @member {string} [certificatename] Common Name for the certificate.
740
- */
741
- certificatename?: string;
742
- /**
743
- * @member {Uint8Array} [certificaterawBytes] Raw data of certificate.
744
- */
745
- certificaterawBytes?: Uint8Array;
746
- /**
747
- * @member {boolean} [certificateisVerified] Indicates if the certificate has
748
- * been verified by owner of the private key.
749
- */
750
- certificateisVerified?: boolean;
751
- /**
752
- * @member {CertificatePurpose} [certificatepurpose] Describe the purpose of
753
- * the certificate. Possible values include: 'clientAuthentication',
754
- * 'serverAuthentication'
755
- */
756
- certificatepurpose?: CertificatePurpose;
757
- /**
758
- * @member {Date} [certificatecreated] Certificate creation time.
759
- */
760
- certificatecreated?: Date;
761
- /**
762
- * @member {Date} [certificatelastUpdated] Certificate last updated time.
763
- */
764
- certificatelastUpdated?: Date;
765
- /**
766
- * @member {boolean} [certificatehasPrivateKey] Indicates if the certificate
767
- * contains private key.
768
- */
769
- certificatehasPrivateKey?: boolean;
770
- /**
771
- * @member {string} [certificatenonce] Random number generated to indicate
772
- * Proof of Possession.
773
- */
774
- certificatenonce?: string;
775
- }
776
-
777
- /**
778
- * @interface
779
- * An interface representing IotDpsClientOptions.
780
- * @extends AzureServiceClientOptions
781
- */
782
- export interface IotDpsClientOptions extends AzureServiceClientOptions {
783
- /**
784
- * @member {string} [baseUri]
785
- */
786
- baseUri?: string;
787
- }
788
-
789
-
790
- /**
791
- * @interface
792
- * An interface representing the OperationListResult.
793
- * Result of the request to list IoT Hub operations. It contains a list of
794
- * operations and a URL link to get the next set of results.
795
- *
796
- * @extends Array<Operation>
797
- */
798
- export interface OperationListResult extends Array<Operation> {
799
- /**
800
- * @member {string} [nextLink] URL to get the next set of operation list
801
- * results if there are any.
802
- * **NOTE: This property will not be serialized. It can only be populated by
803
- * the server.**
804
- */
805
- readonly nextLink?: string;
806
- }
807
-
808
- /**
809
- * @interface
810
- * An interface representing the ProvisioningServiceDescriptionListResult.
811
- * List of provisioning service descriptions.
812
- *
813
- * @extends Array<ProvisioningServiceDescription>
814
- */
815
- export interface ProvisioningServiceDescriptionListResult extends Array<ProvisioningServiceDescription> {
816
- /**
817
- * @member {string} [nextLink] the next link
818
- * **NOTE: This property will not be serialized. It can only be populated by
819
- * the server.**
820
- */
821
- readonly nextLink?: string;
822
- }
823
-
824
- /**
825
- * @interface
826
- * An interface representing the IotDpsSkuDefinitionListResult.
827
- * List of available SKUs.
828
- *
829
- * @extends Array<IotDpsSkuDefinition>
830
- */
831
- export interface IotDpsSkuDefinitionListResult extends Array<IotDpsSkuDefinition> {
832
- /**
833
- * @member {string} [nextLink] The next link.
834
- * **NOTE: This property will not be serialized. It can only be populated by
835
- * the server.**
836
- */
837
- readonly nextLink?: string;
838
- }
839
-
840
- /**
841
- * @interface
842
- * An interface representing the SharedAccessSignatureAuthorizationRuleListResult.
843
- * List of shared access keys.
844
- *
845
- * @extends Array<SharedAccessSignatureAuthorizationRuleAccessRightsDescription>
846
- */
847
- export interface SharedAccessSignatureAuthorizationRuleListResult extends Array<SharedAccessSignatureAuthorizationRuleAccessRightsDescription> {
848
- /**
849
- * @member {string} [nextLink] The next link.
850
- * **NOTE: This property will not be serialized. It can only be populated by
851
- * the server.**
852
- */
853
- readonly nextLink?: string;
854
- }
855
-
856
- /**
857
- * Defines values for IotDpsSku.
858
- * Possible values include: 'S1'
859
- * @readonly
860
- * @enum {string}
861
- */
862
- export type IotDpsSku = 'S1';
863
-
864
- /**
865
- * Defines values for State.
866
- * Possible values include: 'Activating', 'Active', 'Deleting', 'Deleted', 'ActivationFailed',
867
- * 'DeletionFailed', 'Transitioning', 'Suspending', 'Suspended', 'Resuming', 'FailingOver',
868
- * 'FailoverFailed'
869
- * @readonly
870
- * @enum {string}
871
- */
872
- export type State = 'Activating' | 'Active' | 'Deleting' | 'Deleted' | 'ActivationFailed' | 'DeletionFailed' | 'Transitioning' | 'Suspending' | 'Suspended' | 'Resuming' | 'FailingOver' | 'FailoverFailed';
873
-
874
- /**
875
- * Defines values for AllocationPolicy.
876
- * Possible values include: 'Hashed', 'GeoLatency', 'Static'
877
- * @readonly
878
- * @enum {string}
879
- */
880
- export type AllocationPolicy = 'Hashed' | 'GeoLatency' | 'Static';
881
-
882
- /**
883
- * Defines values for AccessRightsDescription.
884
- * Possible values include: 'ServiceConfig', 'EnrollmentRead', 'EnrollmentWrite', 'DeviceConnect',
885
- * 'RegistrationStatusRead', 'RegistrationStatusWrite'
886
- * @readonly
887
- * @enum {string}
888
- */
889
- export type AccessRightsDescription = 'ServiceConfig' | 'EnrollmentRead' | 'EnrollmentWrite' | 'DeviceConnect' | 'RegistrationStatusRead' | 'RegistrationStatusWrite';
890
-
891
- /**
892
- * Defines values for NameUnavailabilityReason.
893
- * Possible values include: 'Invalid', 'AlreadyExists'
894
- * @readonly
895
- * @enum {string}
896
- */
897
- export type NameUnavailabilityReason = 'Invalid' | 'AlreadyExists';
898
-
899
- /**
900
- * Defines values for CertificatePurpose.
901
- * Possible values include: 'clientAuthentication', 'serverAuthentication'
902
- * @readonly
903
- * @enum {string}
904
- */
905
- export type CertificatePurpose = 'clientAuthentication' | 'serverAuthentication';
906
-
907
- /**
908
- * Contains response data for the list operation.
909
- */
910
- export type OperationsListResponse = OperationListResult & {
911
- /**
912
- * The underlying HTTP response.
913
- */
914
- _response: msRest.HttpResponse & {
915
- /**
916
- * The response body as text (string format)
917
- */
918
- bodyAsText: string;
919
- /**
920
- * The response body as parsed JSON or XML
921
- */
922
- parsedBody: OperationListResult;
923
- };
924
- };
925
-
926
- /**
927
- * Contains response data for the listNext operation.
928
- */
929
- export type OperationsListNextResponse = OperationListResult & {
930
- /**
931
- * The underlying HTTP response.
932
- */
933
- _response: msRest.HttpResponse & {
934
- /**
935
- * The response body as text (string format)
936
- */
937
- bodyAsText: string;
938
- /**
939
- * The response body as parsed JSON or XML
940
- */
941
- parsedBody: OperationListResult;
942
- };
943
- };
944
-
945
- /**
946
- * Contains response data for the get operation.
947
- */
948
- export type DpsCertificateGetResponse = CertificateResponse & {
949
- /**
950
- * The underlying HTTP response.
951
- */
952
- _response: msRest.HttpResponse & {
953
- /**
954
- * The response body as text (string format)
955
- */
956
- bodyAsText: string;
957
- /**
958
- * The response body as parsed JSON or XML
959
- */
960
- parsedBody: CertificateResponse;
961
- };
962
- };
963
-
964
- /**
965
- * Contains response data for the createOrUpdate operation.
966
- */
967
- export type DpsCertificateCreateOrUpdateResponse = CertificateResponse & {
968
- /**
969
- * The underlying HTTP response.
970
- */
971
- _response: msRest.HttpResponse & {
972
- /**
973
- * The response body as text (string format)
974
- */
975
- bodyAsText: string;
976
- /**
977
- * The response body as parsed JSON or XML
978
- */
979
- parsedBody: CertificateResponse;
980
- };
981
- };
982
-
983
- /**
984
- * Contains response data for the list operation.
985
- */
986
- export type DpsCertificateListResponse = CertificateListDescription & {
987
- /**
988
- * The underlying HTTP response.
989
- */
990
- _response: msRest.HttpResponse & {
991
- /**
992
- * The response body as text (string format)
993
- */
994
- bodyAsText: string;
995
- /**
996
- * The response body as parsed JSON or XML
997
- */
998
- parsedBody: CertificateListDescription;
999
- };
1000
- };
1001
-
1002
- /**
1003
- * Contains response data for the generateVerificationCode operation.
1004
- */
1005
- export type DpsCertificateGenerateVerificationCodeResponse = VerificationCodeResponse & {
1006
- /**
1007
- * The underlying HTTP response.
1008
- */
1009
- _response: msRest.HttpResponse & {
1010
- /**
1011
- * The response body as text (string format)
1012
- */
1013
- bodyAsText: string;
1014
- /**
1015
- * The response body as parsed JSON or XML
1016
- */
1017
- parsedBody: VerificationCodeResponse;
1018
- };
1019
- };
1020
-
1021
- /**
1022
- * Contains response data for the verifyCertificate operation.
1023
- */
1024
- export type DpsCertificateVerifyCertificateResponse = CertificateResponse & {
1025
- /**
1026
- * The underlying HTTP response.
1027
- */
1028
- _response: msRest.HttpResponse & {
1029
- /**
1030
- * The response body as text (string format)
1031
- */
1032
- bodyAsText: string;
1033
- /**
1034
- * The response body as parsed JSON or XML
1035
- */
1036
- parsedBody: CertificateResponse;
1037
- };
1038
- };
1039
-
1040
- /**
1041
- * Contains response data for the get operation.
1042
- */
1043
- export type IotDpsResourceGetResponse = ProvisioningServiceDescription & {
1044
- /**
1045
- * The underlying HTTP response.
1046
- */
1047
- _response: msRest.HttpResponse & {
1048
- /**
1049
- * The response body as text (string format)
1050
- */
1051
- bodyAsText: string;
1052
- /**
1053
- * The response body as parsed JSON or XML
1054
- */
1055
- parsedBody: ProvisioningServiceDescription;
1056
- };
1057
- };
1058
-
1059
- /**
1060
- * Contains response data for the createOrUpdate operation.
1061
- */
1062
- export type IotDpsResourceCreateOrUpdateResponse = ProvisioningServiceDescription & {
1063
- /**
1064
- * The underlying HTTP response.
1065
- */
1066
- _response: msRest.HttpResponse & {
1067
- /**
1068
- * The response body as text (string format)
1069
- */
1070
- bodyAsText: string;
1071
- /**
1072
- * The response body as parsed JSON or XML
1073
- */
1074
- parsedBody: ProvisioningServiceDescription;
1075
- };
1076
- };
1077
-
1078
- /**
1079
- * Contains response data for the update operation.
1080
- */
1081
- export type IotDpsResourceUpdateResponse = ProvisioningServiceDescription & {
1082
- /**
1083
- * The underlying HTTP response.
1084
- */
1085
- _response: msRest.HttpResponse & {
1086
- /**
1087
- * The response body as text (string format)
1088
- */
1089
- bodyAsText: string;
1090
- /**
1091
- * The response body as parsed JSON or XML
1092
- */
1093
- parsedBody: ProvisioningServiceDescription;
1094
- };
1095
- };
1096
-
1097
- /**
1098
- * Contains response data for the listBySubscription operation.
1099
- */
1100
- export type IotDpsResourceListBySubscriptionResponse = ProvisioningServiceDescriptionListResult & {
1101
- /**
1102
- * The underlying HTTP response.
1103
- */
1104
- _response: msRest.HttpResponse & {
1105
- /**
1106
- * The response body as text (string format)
1107
- */
1108
- bodyAsText: string;
1109
- /**
1110
- * The response body as parsed JSON or XML
1111
- */
1112
- parsedBody: ProvisioningServiceDescriptionListResult;
1113
- };
1114
- };
1115
-
1116
- /**
1117
- * Contains response data for the listByResourceGroup operation.
1118
- */
1119
- export type IotDpsResourceListByResourceGroupResponse = ProvisioningServiceDescriptionListResult & {
1120
- /**
1121
- * The underlying HTTP response.
1122
- */
1123
- _response: msRest.HttpResponse & {
1124
- /**
1125
- * The response body as text (string format)
1126
- */
1127
- bodyAsText: string;
1128
- /**
1129
- * The response body as parsed JSON or XML
1130
- */
1131
- parsedBody: ProvisioningServiceDescriptionListResult;
1132
- };
1133
- };
1134
-
1135
- /**
1136
- * Contains response data for the getOperationResult operation.
1137
- */
1138
- export type IotDpsResourceGetOperationResultResponse = AsyncOperationResult & {
1139
- /**
1140
- * The underlying HTTP response.
1141
- */
1142
- _response: msRest.HttpResponse & {
1143
- /**
1144
- * The response body as text (string format)
1145
- */
1146
- bodyAsText: string;
1147
- /**
1148
- * The response body as parsed JSON or XML
1149
- */
1150
- parsedBody: AsyncOperationResult;
1151
- };
1152
- };
1153
-
1154
- /**
1155
- * Contains response data for the listValidSkus operation.
1156
- */
1157
- export type IotDpsResourceListValidSkusResponse = IotDpsSkuDefinitionListResult & {
1158
- /**
1159
- * The underlying HTTP response.
1160
- */
1161
- _response: msRest.HttpResponse & {
1162
- /**
1163
- * The response body as text (string format)
1164
- */
1165
- bodyAsText: string;
1166
- /**
1167
- * The response body as parsed JSON or XML
1168
- */
1169
- parsedBody: IotDpsSkuDefinitionListResult;
1170
- };
1171
- };
1172
-
1173
- /**
1174
- * Contains response data for the checkProvisioningServiceNameAvailability operation.
1175
- */
1176
- export type IotDpsResourceCheckProvisioningServiceNameAvailabilityResponse = NameAvailabilityInfo & {
1177
- /**
1178
- * The underlying HTTP response.
1179
- */
1180
- _response: msRest.HttpResponse & {
1181
- /**
1182
- * The response body as text (string format)
1183
- */
1184
- bodyAsText: string;
1185
- /**
1186
- * The response body as parsed JSON or XML
1187
- */
1188
- parsedBody: NameAvailabilityInfo;
1189
- };
1190
- };
1191
-
1192
- /**
1193
- * Contains response data for the listKeys operation.
1194
- */
1195
- export type IotDpsResourceListKeysResponse = SharedAccessSignatureAuthorizationRuleListResult & {
1196
- /**
1197
- * The underlying HTTP response.
1198
- */
1199
- _response: msRest.HttpResponse & {
1200
- /**
1201
- * The response body as text (string format)
1202
- */
1203
- bodyAsText: string;
1204
- /**
1205
- * The response body as parsed JSON or XML
1206
- */
1207
- parsedBody: SharedAccessSignatureAuthorizationRuleListResult;
1208
- };
1209
- };
1210
-
1211
- /**
1212
- * Contains response data for the listKeysForKeyName operation.
1213
- */
1214
- export type IotDpsResourceListKeysForKeyNameResponse = SharedAccessSignatureAuthorizationRuleAccessRightsDescription & {
1215
- /**
1216
- * The underlying HTTP response.
1217
- */
1218
- _response: msRest.HttpResponse & {
1219
- /**
1220
- * The response body as text (string format)
1221
- */
1222
- bodyAsText: string;
1223
- /**
1224
- * The response body as parsed JSON or XML
1225
- */
1226
- parsedBody: SharedAccessSignatureAuthorizationRuleAccessRightsDescription;
1227
- };
1228
- };
1229
-
1230
- /**
1231
- * Contains response data for the beginCreateOrUpdate operation.
1232
- */
1233
- export type IotDpsResourceBeginCreateOrUpdateResponse = ProvisioningServiceDescription & {
1234
- /**
1235
- * The underlying HTTP response.
1236
- */
1237
- _response: msRest.HttpResponse & {
1238
- /**
1239
- * The response body as text (string format)
1240
- */
1241
- bodyAsText: string;
1242
- /**
1243
- * The response body as parsed JSON or XML
1244
- */
1245
- parsedBody: ProvisioningServiceDescription;
1246
- };
1247
- };
1248
-
1249
- /**
1250
- * Contains response data for the beginUpdate operation.
1251
- */
1252
- export type IotDpsResourceBeginUpdateResponse = ProvisioningServiceDescription & {
1253
- /**
1254
- * The underlying HTTP response.
1255
- */
1256
- _response: msRest.HttpResponse & {
1257
- /**
1258
- * The response body as text (string format)
1259
- */
1260
- bodyAsText: string;
1261
- /**
1262
- * The response body as parsed JSON or XML
1263
- */
1264
- parsedBody: ProvisioningServiceDescription;
1265
- };
1266
- };
1267
-
1268
- /**
1269
- * Contains response data for the listBySubscriptionNext operation.
1270
- */
1271
- export type IotDpsResourceListBySubscriptionNextResponse = ProvisioningServiceDescriptionListResult & {
1272
- /**
1273
- * The underlying HTTP response.
1274
- */
1275
- _response: msRest.HttpResponse & {
1276
- /**
1277
- * The response body as text (string format)
1278
- */
1279
- bodyAsText: string;
1280
- /**
1281
- * The response body as parsed JSON or XML
1282
- */
1283
- parsedBody: ProvisioningServiceDescriptionListResult;
1284
- };
1285
- };
1286
-
1287
- /**
1288
- * Contains response data for the listByResourceGroupNext operation.
1289
- */
1290
- export type IotDpsResourceListByResourceGroupNextResponse = ProvisioningServiceDescriptionListResult & {
1291
- /**
1292
- * The underlying HTTP response.
1293
- */
1294
- _response: msRest.HttpResponse & {
1295
- /**
1296
- * The response body as text (string format)
1297
- */
1298
- bodyAsText: string;
1299
- /**
1300
- * The response body as parsed JSON or XML
1301
- */
1302
- parsedBody: ProvisioningServiceDescriptionListResult;
1303
- };
1304
- };
1305
-
1306
- /**
1307
- * Contains response data for the listValidSkusNext operation.
1308
- */
1309
- export type IotDpsResourceListValidSkusNextResponse = IotDpsSkuDefinitionListResult & {
1310
- /**
1311
- * The underlying HTTP response.
1312
- */
1313
- _response: msRest.HttpResponse & {
1314
- /**
1315
- * The response body as text (string format)
1316
- */
1317
- bodyAsText: string;
1318
- /**
1319
- * The response body as parsed JSON or XML
1320
- */
1321
- parsedBody: IotDpsSkuDefinitionListResult;
1322
- };
1323
- };
1324
-
1325
- /**
1326
- * Contains response data for the listKeysNext operation.
1327
- */
1328
- export type IotDpsResourceListKeysNextResponse = SharedAccessSignatureAuthorizationRuleListResult & {
1329
- /**
1330
- * The underlying HTTP response.
1331
- */
1332
- _response: msRest.HttpResponse & {
1333
- /**
1334
- * The response body as text (string format)
1335
- */
1336
- bodyAsText: string;
1337
- /**
1338
- * The response body as parsed JSON or XML
1339
- */
1340
- parsedBody: SharedAccessSignatureAuthorizationRuleListResult;
1341
- };
1342
- };