@azure/arm-deviceprovisioningservices 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/LICENSE.txt +21 -0
  2. package/README.md +106 -0
  3. package/dist/arm-deviceprovisioningservices.js +2869 -0
  4. package/dist/arm-deviceprovisioningservices.js.map +1 -0
  5. package/dist/arm-deviceprovisioningservices.min.js +1 -0
  6. package/dist/arm-deviceprovisioningservices.min.js.map +1 -0
  7. package/esm/iotDpsClient.d.ts +26 -0
  8. package/esm/iotDpsClient.d.ts.map +1 -0
  9. package/esm/iotDpsClient.js +39 -0
  10. package/esm/iotDpsClient.js.map +1 -0
  11. package/esm/iotDpsClientContext.d.ts +22 -0
  12. package/esm/iotDpsClientContext.d.ts.map +1 -0
  13. package/esm/iotDpsClientContext.js +60 -0
  14. package/esm/iotDpsClientContext.js.map +1 -0
  15. package/esm/models/dpsCertificateMappers.d.ts +2 -0
  16. package/esm/models/dpsCertificateMappers.d.ts.map +1 -0
  17. package/esm/models/dpsCertificateMappers.js +9 -0
  18. package/esm/models/dpsCertificateMappers.js.map +1 -0
  19. package/esm/models/index.d.ts +1433 -0
  20. package/esm/models/index.d.ts.map +1 -0
  21. package/esm/models/index.js +8 -0
  22. package/esm/models/index.js.map +1 -0
  23. package/esm/models/iotDpsResourceMappers.d.ts +2 -0
  24. package/esm/models/iotDpsResourceMappers.d.ts.map +1 -0
  25. package/esm/models/iotDpsResourceMappers.js +9 -0
  26. package/esm/models/iotDpsResourceMappers.js.map +1 -0
  27. package/esm/models/mappers.d.ts +38 -0
  28. package/esm/models/mappers.d.ts.map +1 -0
  29. package/esm/models/mappers.js +1141 -0
  30. package/esm/models/mappers.js.map +1 -0
  31. package/esm/models/operationsMappers.d.ts +2 -0
  32. package/esm/models/operationsMappers.d.ts.map +1 -0
  33. package/esm/models/operationsMappers.js +9 -0
  34. package/esm/models/operationsMappers.js.map +1 -0
  35. package/esm/models/parameters.d.ts +26 -0
  36. package/esm/models/parameters.d.ts.map +1 -0
  37. package/esm/models/parameters.js +272 -0
  38. package/esm/models/parameters.js.map +1 -0
  39. package/esm/operations/dpsCertificate.d.ts +188 -0
  40. package/esm/operations/dpsCertificate.d.ts.map +1 -0
  41. package/esm/operations/dpsCertificate.js +264 -0
  42. package/esm/operations/dpsCertificate.js.map +1 -0
  43. package/esm/operations/index.d.ts +4 -0
  44. package/esm/operations/index.d.ts.map +1 -0
  45. package/esm/operations/index.js +12 -0
  46. package/esm/operations/index.js.map +1 -0
  47. package/esm/operations/iotDpsResource.d.ts +473 -0
  48. package/esm/operations/iotDpsResource.d.ts.map +1 -0
  49. package/esm/operations/iotDpsResource.js +834 -0
  50. package/esm/operations/iotDpsResource.js.map +1 -0
  51. package/esm/operations/operations.d.ts +46 -0
  52. package/esm/operations/operations.d.ts.map +1 -0
  53. package/esm/operations/operations.js +79 -0
  54. package/esm/operations/operations.js.map +1 -0
  55. package/package.json +59 -0
  56. package/rollup.config.js +37 -0
  57. package/src/iotDpsClient.ts +51 -0
  58. package/src/iotDpsClientContext.ts +67 -0
  59. package/src/models/dpsCertificateMappers.ts +30 -0
  60. package/src/models/index.ts +1549 -0
  61. package/src/models/iotDpsResourceMappers.ts +40 -0
  62. package/src/models/mappers.ts +1181 -0
  63. package/src/models/operationsMappers.ts +14 -0
  64. package/src/models/parameters.ts +274 -0
  65. package/src/operations/dpsCertificate.ts +477 -0
  66. package/src/operations/index.ts +12 -0
  67. package/src/operations/iotDpsResource.ts +1310 -0
  68. package/src/operations/operations.ts +125 -0
  69. package/tsconfig.json +19 -0
@@ -0,0 +1,834 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is
7
+ * regenerated.
8
+ */
9
+ import { __assign } from "tslib";
10
+ import * as msRest from "@azure/ms-rest-js";
11
+ import * as Mappers from "../models/iotDpsResourceMappers";
12
+ import * as Parameters from "../models/parameters";
13
+ /** Class representing a IotDpsResource. */
14
+ var IotDpsResource = /** @class */ (function () {
15
+ /**
16
+ * Create a IotDpsResource.
17
+ * @param {IotDpsClientContext} client Reference to the service client.
18
+ */
19
+ function IotDpsResource(client) {
20
+ this.client = client;
21
+ }
22
+ IotDpsResource.prototype.get = function (provisioningServiceName, resourceGroupName, options, callback) {
23
+ return this.client.sendOperationRequest({
24
+ provisioningServiceName: provisioningServiceName,
25
+ resourceGroupName: resourceGroupName,
26
+ options: options
27
+ }, getOperationSpec, callback);
28
+ };
29
+ /**
30
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a
31
+ * property is to retrieve the provisioning service metadata and security metadata, and then
32
+ * combine them with the modified values in a new body to update the provisioning service.
33
+ * @summary Create or update the metadata of the provisioning service.
34
+ * @param resourceGroupName Resource group identifier.
35
+ * @param provisioningServiceName Name of provisioning service to create or update.
36
+ * @param iotDpsDescription Description of the provisioning service to create or update.
37
+ * @param [options] The optional parameters
38
+ * @returns Promise<Models.IotDpsResourceCreateOrUpdateResponse>
39
+ */
40
+ IotDpsResource.prototype.createOrUpdate = function (resourceGroupName, provisioningServiceName, iotDpsDescription, options) {
41
+ return this.beginCreateOrUpdate(resourceGroupName, provisioningServiceName, iotDpsDescription, options)
42
+ .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
43
+ };
44
+ /**
45
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate
46
+ * method
47
+ * @summary Update an existing provisioning service's tags.
48
+ * @param resourceGroupName Resource group identifier.
49
+ * @param provisioningServiceName Name of provisioning service to create or update.
50
+ * @param provisioningServiceTags Updated tag information to set into the provisioning service
51
+ * instance.
52
+ * @param [options] The optional parameters
53
+ * @returns Promise<Models.IotDpsResourceUpdateResponse>
54
+ */
55
+ IotDpsResource.prototype.update = function (resourceGroupName, provisioningServiceName, provisioningServiceTags, options) {
56
+ return this.beginUpdate(resourceGroupName, provisioningServiceName, provisioningServiceTags, options)
57
+ .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
58
+ };
59
+ /**
60
+ * Deletes the Provisioning Service.
61
+ * @summary Delete the Provisioning Service
62
+ * @param provisioningServiceName Name of provisioning service to delete.
63
+ * @param resourceGroupName Resource group identifier.
64
+ * @param [options] The optional parameters
65
+ * @returns Promise<msRest.RestResponse>
66
+ */
67
+ IotDpsResource.prototype.deleteMethod = function (provisioningServiceName, resourceGroupName, options) {
68
+ return this.beginDeleteMethod(provisioningServiceName, resourceGroupName, options)
69
+ .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
70
+ };
71
+ IotDpsResource.prototype.listBySubscription = function (options, callback) {
72
+ return this.client.sendOperationRequest({
73
+ options: options
74
+ }, listBySubscriptionOperationSpec, callback);
75
+ };
76
+ IotDpsResource.prototype.listByResourceGroup = function (resourceGroupName, options, callback) {
77
+ return this.client.sendOperationRequest({
78
+ resourceGroupName: resourceGroupName,
79
+ options: options
80
+ }, listByResourceGroupOperationSpec, callback);
81
+ };
82
+ IotDpsResource.prototype.getOperationResult = function (operationId, resourceGroupName, provisioningServiceName, asyncinfo, options, callback) {
83
+ return this.client.sendOperationRequest({
84
+ operationId: operationId,
85
+ resourceGroupName: resourceGroupName,
86
+ provisioningServiceName: provisioningServiceName,
87
+ asyncinfo: asyncinfo,
88
+ options: options
89
+ }, getOperationResultOperationSpec, callback);
90
+ };
91
+ IotDpsResource.prototype.listValidSkus = function (provisioningServiceName, resourceGroupName, options, callback) {
92
+ return this.client.sendOperationRequest({
93
+ provisioningServiceName: provisioningServiceName,
94
+ resourceGroupName: resourceGroupName,
95
+ options: options
96
+ }, listValidSkusOperationSpec, callback);
97
+ };
98
+ IotDpsResource.prototype.checkProvisioningServiceNameAvailability = function (argumentsParameter, options, callback) {
99
+ return this.client.sendOperationRequest({
100
+ argumentsParameter: argumentsParameter,
101
+ options: options
102
+ }, checkProvisioningServiceNameAvailabilityOperationSpec, callback);
103
+ };
104
+ IotDpsResource.prototype.listKeys = function (provisioningServiceName, resourceGroupName, options, callback) {
105
+ return this.client.sendOperationRequest({
106
+ provisioningServiceName: provisioningServiceName,
107
+ resourceGroupName: resourceGroupName,
108
+ options: options
109
+ }, listKeysOperationSpec, callback);
110
+ };
111
+ IotDpsResource.prototype.listKeysForKeyName = function (provisioningServiceName, keyName, resourceGroupName, options, callback) {
112
+ return this.client.sendOperationRequest({
113
+ provisioningServiceName: provisioningServiceName,
114
+ keyName: keyName,
115
+ resourceGroupName: resourceGroupName,
116
+ options: options
117
+ }, listKeysForKeyNameOperationSpec, callback);
118
+ };
119
+ IotDpsResource.prototype.listPrivateLinkResources = function (resourceGroupName, resourceName, options, callback) {
120
+ return this.client.sendOperationRequest({
121
+ resourceGroupName: resourceGroupName,
122
+ resourceName: resourceName,
123
+ options: options
124
+ }, listPrivateLinkResourcesOperationSpec, callback);
125
+ };
126
+ IotDpsResource.prototype.getPrivateLinkResources = function (resourceGroupName, resourceName, groupId, options, callback) {
127
+ return this.client.sendOperationRequest({
128
+ resourceGroupName: resourceGroupName,
129
+ resourceName: resourceName,
130
+ groupId: groupId,
131
+ options: options
132
+ }, getPrivateLinkResourcesOperationSpec, callback);
133
+ };
134
+ IotDpsResource.prototype.listPrivateEndpointConnections = function (resourceGroupName, resourceName, options, callback) {
135
+ return this.client.sendOperationRequest({
136
+ resourceGroupName: resourceGroupName,
137
+ resourceName: resourceName,
138
+ options: options
139
+ }, listPrivateEndpointConnectionsOperationSpec, callback);
140
+ };
141
+ IotDpsResource.prototype.getPrivateEndpointConnection = function (resourceGroupName, resourceName, privateEndpointConnectionName, options, callback) {
142
+ return this.client.sendOperationRequest({
143
+ resourceGroupName: resourceGroupName,
144
+ resourceName: resourceName,
145
+ privateEndpointConnectionName: privateEndpointConnectionName,
146
+ options: options
147
+ }, getPrivateEndpointConnectionOperationSpec, callback);
148
+ };
149
+ /**
150
+ * Create or update the status of a private endpoint connection with the specified name
151
+ * @summary Create or update private endpoint connection
152
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
153
+ * @param resourceName The name of the provisioning service.
154
+ * @param privateEndpointConnectionName The name of the private endpoint connection
155
+ * @param privateEndpointConnection The private endpoint connection with updated properties
156
+ * @param [options] The optional parameters
157
+ * @returns Promise<Models.IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>
158
+ */
159
+ IotDpsResource.prototype.createOrUpdatePrivateEndpointConnection = function (resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options) {
160
+ return this.beginCreateOrUpdatePrivateEndpointConnection(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options)
161
+ .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
162
+ };
163
+ /**
164
+ * Delete private endpoint connection with the specified name
165
+ * @summary Delete private endpoint connection
166
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
167
+ * @param resourceName The name of the provisioning service.
168
+ * @param privateEndpointConnectionName The name of the private endpoint connection
169
+ * @param [options] The optional parameters
170
+ * @returns Promise<Models.IotDpsResourceDeletePrivateEndpointConnectionResponse>
171
+ */
172
+ IotDpsResource.prototype.deletePrivateEndpointConnection = function (resourceGroupName, resourceName, privateEndpointConnectionName, options) {
173
+ return this.beginDeletePrivateEndpointConnection(resourceGroupName, resourceName, privateEndpointConnectionName, options)
174
+ .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
175
+ };
176
+ /**
177
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a
178
+ * property is to retrieve the provisioning service metadata and security metadata, and then
179
+ * combine them with the modified values in a new body to update the provisioning service.
180
+ * @summary Create or update the metadata of the provisioning service.
181
+ * @param resourceGroupName Resource group identifier.
182
+ * @param provisioningServiceName Name of provisioning service to create or update.
183
+ * @param iotDpsDescription Description of the provisioning service to create or update.
184
+ * @param [options] The optional parameters
185
+ * @returns Promise<msRestAzure.LROPoller>
186
+ */
187
+ IotDpsResource.prototype.beginCreateOrUpdate = function (resourceGroupName, provisioningServiceName, iotDpsDescription, options) {
188
+ return this.client.sendLRORequest({
189
+ resourceGroupName: resourceGroupName,
190
+ provisioningServiceName: provisioningServiceName,
191
+ iotDpsDescription: iotDpsDescription,
192
+ options: options
193
+ }, beginCreateOrUpdateOperationSpec, options);
194
+ };
195
+ /**
196
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate
197
+ * method
198
+ * @summary Update an existing provisioning service's tags.
199
+ * @param resourceGroupName Resource group identifier.
200
+ * @param provisioningServiceName Name of provisioning service to create or update.
201
+ * @param provisioningServiceTags Updated tag information to set into the provisioning service
202
+ * instance.
203
+ * @param [options] The optional parameters
204
+ * @returns Promise<msRestAzure.LROPoller>
205
+ */
206
+ IotDpsResource.prototype.beginUpdate = function (resourceGroupName, provisioningServiceName, provisioningServiceTags, options) {
207
+ return this.client.sendLRORequest({
208
+ resourceGroupName: resourceGroupName,
209
+ provisioningServiceName: provisioningServiceName,
210
+ provisioningServiceTags: provisioningServiceTags,
211
+ options: options
212
+ }, beginUpdateOperationSpec, options);
213
+ };
214
+ /**
215
+ * Deletes the Provisioning Service.
216
+ * @summary Delete the Provisioning Service
217
+ * @param provisioningServiceName Name of provisioning service to delete.
218
+ * @param resourceGroupName Resource group identifier.
219
+ * @param [options] The optional parameters
220
+ * @returns Promise<msRestAzure.LROPoller>
221
+ */
222
+ IotDpsResource.prototype.beginDeleteMethod = function (provisioningServiceName, resourceGroupName, options) {
223
+ return this.client.sendLRORequest({
224
+ provisioningServiceName: provisioningServiceName,
225
+ resourceGroupName: resourceGroupName,
226
+ options: options
227
+ }, beginDeleteMethodOperationSpec, options);
228
+ };
229
+ /**
230
+ * Create or update the status of a private endpoint connection with the specified name
231
+ * @summary Create or update private endpoint connection
232
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
233
+ * @param resourceName The name of the provisioning service.
234
+ * @param privateEndpointConnectionName The name of the private endpoint connection
235
+ * @param privateEndpointConnection The private endpoint connection with updated properties
236
+ * @param [options] The optional parameters
237
+ * @returns Promise<msRestAzure.LROPoller>
238
+ */
239
+ IotDpsResource.prototype.beginCreateOrUpdatePrivateEndpointConnection = function (resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options) {
240
+ return this.client.sendLRORequest({
241
+ resourceGroupName: resourceGroupName,
242
+ resourceName: resourceName,
243
+ privateEndpointConnectionName: privateEndpointConnectionName,
244
+ privateEndpointConnection: privateEndpointConnection,
245
+ options: options
246
+ }, beginCreateOrUpdatePrivateEndpointConnectionOperationSpec, options);
247
+ };
248
+ /**
249
+ * Delete private endpoint connection with the specified name
250
+ * @summary Delete private endpoint connection
251
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
252
+ * @param resourceName The name of the provisioning service.
253
+ * @param privateEndpointConnectionName The name of the private endpoint connection
254
+ * @param [options] The optional parameters
255
+ * @returns Promise<msRestAzure.LROPoller>
256
+ */
257
+ IotDpsResource.prototype.beginDeletePrivateEndpointConnection = function (resourceGroupName, resourceName, privateEndpointConnectionName, options) {
258
+ return this.client.sendLRORequest({
259
+ resourceGroupName: resourceGroupName,
260
+ resourceName: resourceName,
261
+ privateEndpointConnectionName: privateEndpointConnectionName,
262
+ options: options
263
+ }, beginDeletePrivateEndpointConnectionOperationSpec, options);
264
+ };
265
+ IotDpsResource.prototype.listBySubscriptionNext = function (nextPageLink, options, callback) {
266
+ return this.client.sendOperationRequest({
267
+ nextPageLink: nextPageLink,
268
+ options: options
269
+ }, listBySubscriptionNextOperationSpec, callback);
270
+ };
271
+ IotDpsResource.prototype.listByResourceGroupNext = function (nextPageLink, options, callback) {
272
+ return this.client.sendOperationRequest({
273
+ nextPageLink: nextPageLink,
274
+ options: options
275
+ }, listByResourceGroupNextOperationSpec, callback);
276
+ };
277
+ IotDpsResource.prototype.listValidSkusNext = function (nextPageLink, options, callback) {
278
+ return this.client.sendOperationRequest({
279
+ nextPageLink: nextPageLink,
280
+ options: options
281
+ }, listValidSkusNextOperationSpec, callback);
282
+ };
283
+ IotDpsResource.prototype.listKeysNext = function (nextPageLink, options, callback) {
284
+ return this.client.sendOperationRequest({
285
+ nextPageLink: nextPageLink,
286
+ options: options
287
+ }, listKeysNextOperationSpec, callback);
288
+ };
289
+ return IotDpsResource;
290
+ }());
291
+ export { IotDpsResource };
292
+ // Operation Specifications
293
+ var serializer = new msRest.Serializer(Mappers);
294
+ var getOperationSpec = {
295
+ httpMethod: "GET",
296
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
297
+ urlParameters: [
298
+ Parameters.provisioningServiceName,
299
+ Parameters.subscriptionId,
300
+ Parameters.resourceGroupName
301
+ ],
302
+ queryParameters: [
303
+ Parameters.apiVersion
304
+ ],
305
+ headerParameters: [
306
+ Parameters.acceptLanguage
307
+ ],
308
+ responses: {
309
+ 200: {
310
+ bodyMapper: Mappers.ProvisioningServiceDescription
311
+ },
312
+ default: {
313
+ bodyMapper: Mappers.ErrorDetails
314
+ }
315
+ },
316
+ serializer: serializer
317
+ };
318
+ var listBySubscriptionOperationSpec = {
319
+ httpMethod: "GET",
320
+ path: "subscriptions/{subscriptionId}/providers/Microsoft.Devices/provisioningServices",
321
+ urlParameters: [
322
+ Parameters.subscriptionId
323
+ ],
324
+ queryParameters: [
325
+ Parameters.apiVersion
326
+ ],
327
+ headerParameters: [
328
+ Parameters.acceptLanguage
329
+ ],
330
+ responses: {
331
+ 200: {
332
+ bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
333
+ },
334
+ default: {
335
+ bodyMapper: Mappers.ErrorDetails
336
+ }
337
+ },
338
+ serializer: serializer
339
+ };
340
+ var listByResourceGroupOperationSpec = {
341
+ httpMethod: "GET",
342
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices",
343
+ urlParameters: [
344
+ Parameters.subscriptionId,
345
+ Parameters.resourceGroupName
346
+ ],
347
+ queryParameters: [
348
+ Parameters.apiVersion
349
+ ],
350
+ headerParameters: [
351
+ Parameters.acceptLanguage
352
+ ],
353
+ responses: {
354
+ 200: {
355
+ bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
356
+ },
357
+ default: {
358
+ bodyMapper: Mappers.ErrorDetails
359
+ }
360
+ },
361
+ serializer: serializer
362
+ };
363
+ var getOperationResultOperationSpec = {
364
+ httpMethod: "GET",
365
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/operationresults/{operationId}",
366
+ urlParameters: [
367
+ Parameters.operationId,
368
+ Parameters.subscriptionId,
369
+ Parameters.resourceGroupName,
370
+ Parameters.provisioningServiceName
371
+ ],
372
+ queryParameters: [
373
+ Parameters.asyncinfo,
374
+ Parameters.apiVersion
375
+ ],
376
+ headerParameters: [
377
+ Parameters.acceptLanguage
378
+ ],
379
+ responses: {
380
+ 200: {
381
+ bodyMapper: Mappers.AsyncOperationResult
382
+ },
383
+ default: {
384
+ bodyMapper: Mappers.ErrorDetails
385
+ }
386
+ },
387
+ serializer: serializer
388
+ };
389
+ var listValidSkusOperationSpec = {
390
+ httpMethod: "GET",
391
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/skus",
392
+ urlParameters: [
393
+ Parameters.provisioningServiceName,
394
+ Parameters.subscriptionId,
395
+ Parameters.resourceGroupName
396
+ ],
397
+ queryParameters: [
398
+ Parameters.apiVersion
399
+ ],
400
+ headerParameters: [
401
+ Parameters.acceptLanguage
402
+ ],
403
+ responses: {
404
+ 200: {
405
+ bodyMapper: Mappers.IotDpsSkuDefinitionListResult
406
+ },
407
+ default: {
408
+ bodyMapper: Mappers.ErrorDetails
409
+ }
410
+ },
411
+ serializer: serializer
412
+ };
413
+ var checkProvisioningServiceNameAvailabilityOperationSpec = {
414
+ httpMethod: "POST",
415
+ path: "subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability",
416
+ urlParameters: [
417
+ Parameters.subscriptionId
418
+ ],
419
+ queryParameters: [
420
+ Parameters.apiVersion
421
+ ],
422
+ headerParameters: [
423
+ Parameters.acceptLanguage
424
+ ],
425
+ requestBody: {
426
+ parameterPath: "argumentsParameter",
427
+ mapper: __assign(__assign({}, Mappers.OperationInputs), { required: true })
428
+ },
429
+ responses: {
430
+ 200: {
431
+ bodyMapper: Mappers.NameAvailabilityInfo
432
+ },
433
+ default: {
434
+ bodyMapper: Mappers.ErrorDetails
435
+ }
436
+ },
437
+ serializer: serializer
438
+ };
439
+ var listKeysOperationSpec = {
440
+ httpMethod: "POST",
441
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/listkeys",
442
+ urlParameters: [
443
+ Parameters.provisioningServiceName,
444
+ Parameters.subscriptionId,
445
+ Parameters.resourceGroupName
446
+ ],
447
+ queryParameters: [
448
+ Parameters.apiVersion
449
+ ],
450
+ headerParameters: [
451
+ Parameters.acceptLanguage
452
+ ],
453
+ responses: {
454
+ 200: {
455
+ bodyMapper: Mappers.SharedAccessSignatureAuthorizationRuleListResult
456
+ },
457
+ default: {
458
+ bodyMapper: Mappers.ErrorDetails
459
+ }
460
+ },
461
+ serializer: serializer
462
+ };
463
+ var listKeysForKeyNameOperationSpec = {
464
+ httpMethod: "POST",
465
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/keys/{keyName}/listkeys",
466
+ urlParameters: [
467
+ Parameters.provisioningServiceName,
468
+ Parameters.keyName,
469
+ Parameters.subscriptionId,
470
+ Parameters.resourceGroupName
471
+ ],
472
+ queryParameters: [
473
+ Parameters.apiVersion
474
+ ],
475
+ headerParameters: [
476
+ Parameters.acceptLanguage
477
+ ],
478
+ responses: {
479
+ 200: {
480
+ bodyMapper: Mappers.SharedAccessSignatureAuthorizationRuleAccessRightsDescription
481
+ },
482
+ default: {
483
+ bodyMapper: Mappers.ErrorDetails
484
+ }
485
+ },
486
+ serializer: serializer
487
+ };
488
+ var listPrivateLinkResourcesOperationSpec = {
489
+ httpMethod: "GET",
490
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateLinkResources",
491
+ urlParameters: [
492
+ Parameters.subscriptionId,
493
+ Parameters.resourceGroupName,
494
+ Parameters.resourceName
495
+ ],
496
+ queryParameters: [
497
+ Parameters.apiVersion
498
+ ],
499
+ headerParameters: [
500
+ Parameters.acceptLanguage
501
+ ],
502
+ responses: {
503
+ 200: {
504
+ bodyMapper: Mappers.PrivateLinkResources
505
+ },
506
+ default: {
507
+ bodyMapper: Mappers.ErrorDetails
508
+ }
509
+ },
510
+ serializer: serializer
511
+ };
512
+ var getPrivateLinkResourcesOperationSpec = {
513
+ httpMethod: "GET",
514
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateLinkResources/{groupId}",
515
+ urlParameters: [
516
+ Parameters.subscriptionId,
517
+ Parameters.resourceGroupName,
518
+ Parameters.resourceName,
519
+ Parameters.groupId
520
+ ],
521
+ queryParameters: [
522
+ Parameters.apiVersion
523
+ ],
524
+ headerParameters: [
525
+ Parameters.acceptLanguage
526
+ ],
527
+ responses: {
528
+ 200: {
529
+ bodyMapper: Mappers.GroupIdInformation
530
+ },
531
+ default: {
532
+ bodyMapper: Mappers.ErrorDetails
533
+ }
534
+ },
535
+ serializer: serializer
536
+ };
537
+ var listPrivateEndpointConnectionsOperationSpec = {
538
+ httpMethod: "GET",
539
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections",
540
+ urlParameters: [
541
+ Parameters.subscriptionId,
542
+ Parameters.resourceGroupName,
543
+ Parameters.resourceName
544
+ ],
545
+ queryParameters: [
546
+ Parameters.apiVersion
547
+ ],
548
+ headerParameters: [
549
+ Parameters.acceptLanguage
550
+ ],
551
+ responses: {
552
+ 200: {
553
+ bodyMapper: {
554
+ serializedName: "parsedResponse",
555
+ type: {
556
+ name: "Sequence",
557
+ element: {
558
+ type: {
559
+ name: "Composite",
560
+ className: "PrivateEndpointConnection"
561
+ }
562
+ }
563
+ }
564
+ }
565
+ },
566
+ default: {
567
+ bodyMapper: Mappers.ErrorDetails
568
+ }
569
+ },
570
+ serializer: serializer
571
+ };
572
+ var getPrivateEndpointConnectionOperationSpec = {
573
+ httpMethod: "GET",
574
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
575
+ urlParameters: [
576
+ Parameters.subscriptionId,
577
+ Parameters.resourceGroupName,
578
+ Parameters.resourceName,
579
+ Parameters.privateEndpointConnectionName
580
+ ],
581
+ queryParameters: [
582
+ Parameters.apiVersion
583
+ ],
584
+ headerParameters: [
585
+ Parameters.acceptLanguage
586
+ ],
587
+ responses: {
588
+ 200: {
589
+ bodyMapper: Mappers.PrivateEndpointConnection
590
+ },
591
+ default: {
592
+ bodyMapper: Mappers.ErrorDetails
593
+ }
594
+ },
595
+ serializer: serializer
596
+ };
597
+ var beginCreateOrUpdateOperationSpec = {
598
+ httpMethod: "PUT",
599
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
600
+ urlParameters: [
601
+ Parameters.subscriptionId,
602
+ Parameters.resourceGroupName,
603
+ Parameters.provisioningServiceName
604
+ ],
605
+ queryParameters: [
606
+ Parameters.apiVersion
607
+ ],
608
+ headerParameters: [
609
+ Parameters.acceptLanguage
610
+ ],
611
+ requestBody: {
612
+ parameterPath: "iotDpsDescription",
613
+ mapper: __assign(__assign({}, Mappers.ProvisioningServiceDescription), { required: true })
614
+ },
615
+ responses: {
616
+ 200: {
617
+ bodyMapper: Mappers.ProvisioningServiceDescription
618
+ },
619
+ 201: {
620
+ bodyMapper: Mappers.ProvisioningServiceDescription
621
+ },
622
+ default: {
623
+ bodyMapper: Mappers.ErrorDetails
624
+ }
625
+ },
626
+ serializer: serializer
627
+ };
628
+ var beginUpdateOperationSpec = {
629
+ httpMethod: "PATCH",
630
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
631
+ urlParameters: [
632
+ Parameters.subscriptionId,
633
+ Parameters.resourceGroupName,
634
+ Parameters.provisioningServiceName
635
+ ],
636
+ queryParameters: [
637
+ Parameters.apiVersion
638
+ ],
639
+ headerParameters: [
640
+ Parameters.acceptLanguage
641
+ ],
642
+ requestBody: {
643
+ parameterPath: "provisioningServiceTags",
644
+ mapper: __assign(__assign({}, Mappers.TagsResource), { required: true })
645
+ },
646
+ responses: {
647
+ 200: {
648
+ bodyMapper: Mappers.ProvisioningServiceDescription
649
+ },
650
+ default: {
651
+ bodyMapper: Mappers.CloudError
652
+ }
653
+ },
654
+ serializer: serializer
655
+ };
656
+ var beginDeleteMethodOperationSpec = {
657
+ httpMethod: "DELETE",
658
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
659
+ urlParameters: [
660
+ Parameters.provisioningServiceName,
661
+ Parameters.subscriptionId,
662
+ Parameters.resourceGroupName
663
+ ],
664
+ queryParameters: [
665
+ Parameters.apiVersion
666
+ ],
667
+ headerParameters: [
668
+ Parameters.acceptLanguage
669
+ ],
670
+ responses: {
671
+ 200: {},
672
+ 202: {},
673
+ 204: {},
674
+ 404: {},
675
+ default: {
676
+ bodyMapper: Mappers.ErrorDetails
677
+ }
678
+ },
679
+ serializer: serializer
680
+ };
681
+ var beginCreateOrUpdatePrivateEndpointConnectionOperationSpec = {
682
+ httpMethod: "PUT",
683
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
684
+ urlParameters: [
685
+ Parameters.subscriptionId,
686
+ Parameters.resourceGroupName,
687
+ Parameters.resourceName,
688
+ Parameters.privateEndpointConnectionName
689
+ ],
690
+ queryParameters: [
691
+ Parameters.apiVersion
692
+ ],
693
+ headerParameters: [
694
+ Parameters.acceptLanguage
695
+ ],
696
+ requestBody: {
697
+ parameterPath: "privateEndpointConnection",
698
+ mapper: __assign(__assign({}, Mappers.PrivateEndpointConnection), { required: true })
699
+ },
700
+ responses: {
701
+ 200: {
702
+ bodyMapper: Mappers.PrivateEndpointConnection
703
+ },
704
+ 201: {
705
+ bodyMapper: Mappers.PrivateEndpointConnection
706
+ },
707
+ default: {
708
+ bodyMapper: Mappers.ErrorDetails
709
+ }
710
+ },
711
+ serializer: serializer
712
+ };
713
+ var beginDeletePrivateEndpointConnectionOperationSpec = {
714
+ httpMethod: "DELETE",
715
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
716
+ urlParameters: [
717
+ Parameters.subscriptionId,
718
+ Parameters.resourceGroupName,
719
+ Parameters.resourceName,
720
+ Parameters.privateEndpointConnectionName
721
+ ],
722
+ queryParameters: [
723
+ Parameters.apiVersion
724
+ ],
725
+ headerParameters: [
726
+ Parameters.acceptLanguage
727
+ ],
728
+ responses: {
729
+ 200: {
730
+ bodyMapper: Mappers.PrivateEndpointConnection
731
+ },
732
+ 202: {
733
+ bodyMapper: Mappers.PrivateEndpointConnection
734
+ },
735
+ 204: {},
736
+ default: {
737
+ bodyMapper: Mappers.ErrorDetails
738
+ }
739
+ },
740
+ serializer: serializer
741
+ };
742
+ var listBySubscriptionNextOperationSpec = {
743
+ httpMethod: "GET",
744
+ baseUrl: "https://management.azure.com",
745
+ path: "{nextLink}",
746
+ urlParameters: [
747
+ Parameters.nextPageLink
748
+ ],
749
+ queryParameters: [
750
+ Parameters.apiVersion
751
+ ],
752
+ headerParameters: [
753
+ Parameters.acceptLanguage
754
+ ],
755
+ responses: {
756
+ 200: {
757
+ bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
758
+ },
759
+ default: {
760
+ bodyMapper: Mappers.ErrorDetails
761
+ }
762
+ },
763
+ serializer: serializer
764
+ };
765
+ var listByResourceGroupNextOperationSpec = {
766
+ httpMethod: "GET",
767
+ baseUrl: "https://management.azure.com",
768
+ path: "{nextLink}",
769
+ urlParameters: [
770
+ Parameters.nextPageLink
771
+ ],
772
+ queryParameters: [
773
+ Parameters.apiVersion
774
+ ],
775
+ headerParameters: [
776
+ Parameters.acceptLanguage
777
+ ],
778
+ responses: {
779
+ 200: {
780
+ bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
781
+ },
782
+ default: {
783
+ bodyMapper: Mappers.ErrorDetails
784
+ }
785
+ },
786
+ serializer: serializer
787
+ };
788
+ var listValidSkusNextOperationSpec = {
789
+ httpMethod: "GET",
790
+ baseUrl: "https://management.azure.com",
791
+ path: "{nextLink}",
792
+ urlParameters: [
793
+ Parameters.nextPageLink
794
+ ],
795
+ queryParameters: [
796
+ Parameters.apiVersion
797
+ ],
798
+ headerParameters: [
799
+ Parameters.acceptLanguage
800
+ ],
801
+ responses: {
802
+ 200: {
803
+ bodyMapper: Mappers.IotDpsSkuDefinitionListResult
804
+ },
805
+ default: {
806
+ bodyMapper: Mappers.ErrorDetails
807
+ }
808
+ },
809
+ serializer: serializer
810
+ };
811
+ var listKeysNextOperationSpec = {
812
+ httpMethod: "POST",
813
+ baseUrl: "https://management.azure.com",
814
+ path: "{nextLink}",
815
+ urlParameters: [
816
+ Parameters.nextPageLink
817
+ ],
818
+ queryParameters: [
819
+ Parameters.apiVersion
820
+ ],
821
+ headerParameters: [
822
+ Parameters.acceptLanguage
823
+ ],
824
+ responses: {
825
+ 200: {
826
+ bodyMapper: Mappers.SharedAccessSignatureAuthorizationRuleListResult
827
+ },
828
+ default: {
829
+ bodyMapper: Mappers.ErrorDetails
830
+ }
831
+ },
832
+ serializer: serializer
833
+ };
834
+ //# sourceMappingURL=iotDpsResource.js.map