@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
@@ -0,0 +1,1154 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing IotDpsResource operations. */
16
+ export class IotDpsResourceImpl {
17
+ /**
18
+ * Initialize a new instance of the class IotDpsResource class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * List all the provisioning services for a given subscription id.
26
+ * @param options The options parameters.
27
+ */
28
+ listBySubscription(options) {
29
+ const iter = this.listBySubscriptionPagingAll(options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: () => {
38
+ return this.listBySubscriptionPagingPage(options);
39
+ }
40
+ };
41
+ }
42
+ listBySubscriptionPagingPage(options) {
43
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
44
+ let result = yield __await(this._listBySubscription(options));
45
+ yield yield __await(result.value || []);
46
+ let continuationToken = result.nextLink;
47
+ while (continuationToken) {
48
+ result = yield __await(this._listBySubscriptionNext(continuationToken, options));
49
+ continuationToken = result.nextLink;
50
+ yield yield __await(result.value || []);
51
+ }
52
+ });
53
+ }
54
+ listBySubscriptionPagingAll(options) {
55
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
56
+ var e_1, _a;
57
+ try {
58
+ for (var _b = __asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
59
+ const page = _c.value;
60
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
61
+ }
62
+ }
63
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
64
+ finally {
65
+ try {
66
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
67
+ }
68
+ finally { if (e_1) throw e_1.error; }
69
+ }
70
+ });
71
+ }
72
+ /**
73
+ * Get a list of all provisioning services in the given resource group.
74
+ * @param resourceGroupName Resource group identifier.
75
+ * @param options The options parameters.
76
+ */
77
+ listByResourceGroup(resourceGroupName, options) {
78
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
79
+ return {
80
+ next() {
81
+ return iter.next();
82
+ },
83
+ [Symbol.asyncIterator]() {
84
+ return this;
85
+ },
86
+ byPage: () => {
87
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
88
+ }
89
+ };
90
+ }
91
+ listByResourceGroupPagingPage(resourceGroupName, options) {
92
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
93
+ let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
94
+ yield yield __await(result.value || []);
95
+ let continuationToken = result.nextLink;
96
+ while (continuationToken) {
97
+ result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
98
+ continuationToken = result.nextLink;
99
+ yield yield __await(result.value || []);
100
+ }
101
+ });
102
+ }
103
+ listByResourceGroupPagingAll(resourceGroupName, options) {
104
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
105
+ var e_2, _a;
106
+ try {
107
+ for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
108
+ const page = _c.value;
109
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
110
+ }
111
+ }
112
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
113
+ finally {
114
+ try {
115
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
116
+ }
117
+ finally { if (e_2) throw e_2.error; }
118
+ }
119
+ });
120
+ }
121
+ /**
122
+ * Gets the list of valid SKUs and tiers for a provisioning service.
123
+ * @param provisioningServiceName Name of provisioning service.
124
+ * @param resourceGroupName Name of resource group.
125
+ * @param options The options parameters.
126
+ */
127
+ listValidSkus(provisioningServiceName, resourceGroupName, options) {
128
+ const iter = this.listValidSkusPagingAll(provisioningServiceName, resourceGroupName, options);
129
+ return {
130
+ next() {
131
+ return iter.next();
132
+ },
133
+ [Symbol.asyncIterator]() {
134
+ return this;
135
+ },
136
+ byPage: () => {
137
+ return this.listValidSkusPagingPage(provisioningServiceName, resourceGroupName, options);
138
+ }
139
+ };
140
+ }
141
+ listValidSkusPagingPage(provisioningServiceName, resourceGroupName, options) {
142
+ return __asyncGenerator(this, arguments, function* listValidSkusPagingPage_1() {
143
+ let result = yield __await(this._listValidSkus(provisioningServiceName, resourceGroupName, options));
144
+ yield yield __await(result.value || []);
145
+ let continuationToken = result.nextLink;
146
+ while (continuationToken) {
147
+ result = yield __await(this._listValidSkusNext(provisioningServiceName, resourceGroupName, continuationToken, options));
148
+ continuationToken = result.nextLink;
149
+ yield yield __await(result.value || []);
150
+ }
151
+ });
152
+ }
153
+ listValidSkusPagingAll(provisioningServiceName, resourceGroupName, options) {
154
+ return __asyncGenerator(this, arguments, function* listValidSkusPagingAll_1() {
155
+ var e_3, _a;
156
+ try {
157
+ for (var _b = __asyncValues(this.listValidSkusPagingPage(provisioningServiceName, resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
158
+ const page = _c.value;
159
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
160
+ }
161
+ }
162
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
163
+ finally {
164
+ try {
165
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
166
+ }
167
+ finally { if (e_3) throw e_3.error; }
168
+ }
169
+ });
170
+ }
171
+ /**
172
+ * List the primary and secondary keys for a provisioning service.
173
+ * @param provisioningServiceName The provisioning service name to get the shared access keys for.
174
+ * @param resourceGroupName resource group name
175
+ * @param options The options parameters.
176
+ */
177
+ listKeys(provisioningServiceName, resourceGroupName, options) {
178
+ const iter = this.listKeysPagingAll(provisioningServiceName, resourceGroupName, options);
179
+ return {
180
+ next() {
181
+ return iter.next();
182
+ },
183
+ [Symbol.asyncIterator]() {
184
+ return this;
185
+ },
186
+ byPage: () => {
187
+ return this.listKeysPagingPage(provisioningServiceName, resourceGroupName, options);
188
+ }
189
+ };
190
+ }
191
+ listKeysPagingPage(provisioningServiceName, resourceGroupName, options) {
192
+ return __asyncGenerator(this, arguments, function* listKeysPagingPage_1() {
193
+ let result = yield __await(this._listKeys(provisioningServiceName, resourceGroupName, options));
194
+ yield yield __await(result.value || []);
195
+ let continuationToken = result.nextLink;
196
+ while (continuationToken) {
197
+ result = yield __await(this._listKeysNext(provisioningServiceName, resourceGroupName, continuationToken, options));
198
+ continuationToken = result.nextLink;
199
+ yield yield __await(result.value || []);
200
+ }
201
+ });
202
+ }
203
+ listKeysPagingAll(provisioningServiceName, resourceGroupName, options) {
204
+ return __asyncGenerator(this, arguments, function* listKeysPagingAll_1() {
205
+ var e_4, _a;
206
+ try {
207
+ for (var _b = __asyncValues(this.listKeysPagingPage(provisioningServiceName, resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
208
+ const page = _c.value;
209
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
210
+ }
211
+ }
212
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
213
+ finally {
214
+ try {
215
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
216
+ }
217
+ finally { if (e_4) throw e_4.error; }
218
+ }
219
+ });
220
+ }
221
+ /**
222
+ * Get the metadata of the provisioning service without SAS keys.
223
+ * @param provisioningServiceName Name of the provisioning service to retrieve.
224
+ * @param resourceGroupName Resource group name.
225
+ * @param options The options parameters.
226
+ */
227
+ get(provisioningServiceName, resourceGroupName, options) {
228
+ return this.client.sendOperationRequest({ provisioningServiceName, resourceGroupName, options }, getOperationSpec);
229
+ }
230
+ /**
231
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is
232
+ * to retrieve the provisioning service metadata and security metadata, and then combine them with the
233
+ * modified values in a new body to update the provisioning service.
234
+ * @param resourceGroupName Resource group identifier.
235
+ * @param provisioningServiceName Name of provisioning service to create or update.
236
+ * @param iotDpsDescription Description of the provisioning service to create or update.
237
+ * @param options The options parameters.
238
+ */
239
+ beginCreateOrUpdate(resourceGroupName, provisioningServiceName, iotDpsDescription, options) {
240
+ return __awaiter(this, void 0, void 0, function* () {
241
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
242
+ return this.client.sendOperationRequest(args, spec);
243
+ });
244
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
245
+ var _a;
246
+ let currentRawResponse = undefined;
247
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
248
+ const callback = (rawResponse, flatResponse) => {
249
+ currentRawResponse = rawResponse;
250
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
251
+ };
252
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
253
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
254
+ return {
255
+ flatResponse,
256
+ rawResponse: {
257
+ statusCode: currentRawResponse.status,
258
+ body: currentRawResponse.parsedBody,
259
+ headers: currentRawResponse.headers.toJSON()
260
+ }
261
+ };
262
+ });
263
+ const lro = new LroImpl(sendOperation, {
264
+ resourceGroupName,
265
+ provisioningServiceName,
266
+ iotDpsDescription,
267
+ options
268
+ }, createOrUpdateOperationSpec);
269
+ return new LroEngine(lro, {
270
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
271
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
272
+ });
273
+ });
274
+ }
275
+ /**
276
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is
277
+ * to retrieve the provisioning service metadata and security metadata, and then combine them with the
278
+ * modified values in a new body to update the provisioning service.
279
+ * @param resourceGroupName Resource group identifier.
280
+ * @param provisioningServiceName Name of provisioning service to create or update.
281
+ * @param iotDpsDescription Description of the provisioning service to create or update.
282
+ * @param options The options parameters.
283
+ */
284
+ beginCreateOrUpdateAndWait(resourceGroupName, provisioningServiceName, iotDpsDescription, options) {
285
+ return __awaiter(this, void 0, void 0, function* () {
286
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, provisioningServiceName, iotDpsDescription, options);
287
+ return poller.pollUntilDone();
288
+ });
289
+ }
290
+ /**
291
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
292
+ * @param resourceGroupName Resource group identifier.
293
+ * @param provisioningServiceName Name of provisioning service to create or update.
294
+ * @param provisioningServiceTags Updated tag information to set into the provisioning service
295
+ * instance.
296
+ * @param options The options parameters.
297
+ */
298
+ beginUpdate(resourceGroupName, provisioningServiceName, provisioningServiceTags, options) {
299
+ return __awaiter(this, void 0, void 0, function* () {
300
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
301
+ return this.client.sendOperationRequest(args, spec);
302
+ });
303
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
304
+ var _a;
305
+ let currentRawResponse = undefined;
306
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
307
+ const callback = (rawResponse, flatResponse) => {
308
+ currentRawResponse = rawResponse;
309
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
310
+ };
311
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
312
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
313
+ return {
314
+ flatResponse,
315
+ rawResponse: {
316
+ statusCode: currentRawResponse.status,
317
+ body: currentRawResponse.parsedBody,
318
+ headers: currentRawResponse.headers.toJSON()
319
+ }
320
+ };
321
+ });
322
+ const lro = new LroImpl(sendOperation, {
323
+ resourceGroupName,
324
+ provisioningServiceName,
325
+ provisioningServiceTags,
326
+ options
327
+ }, updateOperationSpec);
328
+ return new LroEngine(lro, {
329
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
330
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
331
+ });
332
+ });
333
+ }
334
+ /**
335
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
336
+ * @param resourceGroupName Resource group identifier.
337
+ * @param provisioningServiceName Name of provisioning service to create or update.
338
+ * @param provisioningServiceTags Updated tag information to set into the provisioning service
339
+ * instance.
340
+ * @param options The options parameters.
341
+ */
342
+ beginUpdateAndWait(resourceGroupName, provisioningServiceName, provisioningServiceTags, options) {
343
+ return __awaiter(this, void 0, void 0, function* () {
344
+ const poller = yield this.beginUpdate(resourceGroupName, provisioningServiceName, provisioningServiceTags, options);
345
+ return poller.pollUntilDone();
346
+ });
347
+ }
348
+ /**
349
+ * Deletes the Provisioning Service.
350
+ * @param provisioningServiceName Name of provisioning service to delete.
351
+ * @param resourceGroupName Resource group identifier.
352
+ * @param options The options parameters.
353
+ */
354
+ beginDelete(provisioningServiceName, resourceGroupName, options) {
355
+ return __awaiter(this, void 0, void 0, function* () {
356
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
357
+ return this.client.sendOperationRequest(args, spec);
358
+ });
359
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
360
+ var _a;
361
+ let currentRawResponse = undefined;
362
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
363
+ const callback = (rawResponse, flatResponse) => {
364
+ currentRawResponse = rawResponse;
365
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
366
+ };
367
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
368
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
369
+ return {
370
+ flatResponse,
371
+ rawResponse: {
372
+ statusCode: currentRawResponse.status,
373
+ body: currentRawResponse.parsedBody,
374
+ headers: currentRawResponse.headers.toJSON()
375
+ }
376
+ };
377
+ });
378
+ const lro = new LroImpl(sendOperation, { provisioningServiceName, resourceGroupName, options }, deleteOperationSpec);
379
+ return new LroEngine(lro, {
380
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
381
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
382
+ });
383
+ });
384
+ }
385
+ /**
386
+ * Deletes the Provisioning Service.
387
+ * @param provisioningServiceName Name of provisioning service to delete.
388
+ * @param resourceGroupName Resource group identifier.
389
+ * @param options The options parameters.
390
+ */
391
+ beginDeleteAndWait(provisioningServiceName, resourceGroupName, options) {
392
+ return __awaiter(this, void 0, void 0, function* () {
393
+ const poller = yield this.beginDelete(provisioningServiceName, resourceGroupName, options);
394
+ return poller.pollUntilDone();
395
+ });
396
+ }
397
+ /**
398
+ * List all the provisioning services for a given subscription id.
399
+ * @param options The options parameters.
400
+ */
401
+ _listBySubscription(options) {
402
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
403
+ }
404
+ /**
405
+ * Get a list of all provisioning services in the given resource group.
406
+ * @param resourceGroupName Resource group identifier.
407
+ * @param options The options parameters.
408
+ */
409
+ _listByResourceGroup(resourceGroupName, options) {
410
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
411
+ }
412
+ /**
413
+ * Gets the status of a long running operation, such as create, update or delete a provisioning
414
+ * service.
415
+ * @param operationId Operation id corresponding to long running operation. Use this to poll for the
416
+ * status.
417
+ * @param resourceGroupName Resource group identifier.
418
+ * @param provisioningServiceName Name of provisioning service that the operation is running on.
419
+ * @param asyncinfo Async header used to poll on the status of the operation, obtained while creating
420
+ * the long running operation.
421
+ * @param options The options parameters.
422
+ */
423
+ getOperationResult(operationId, resourceGroupName, provisioningServiceName, asyncinfo, options) {
424
+ return this.client.sendOperationRequest({
425
+ operationId,
426
+ resourceGroupName,
427
+ provisioningServiceName,
428
+ asyncinfo,
429
+ options
430
+ }, getOperationResultOperationSpec);
431
+ }
432
+ /**
433
+ * Gets the list of valid SKUs and tiers for a provisioning service.
434
+ * @param provisioningServiceName Name of provisioning service.
435
+ * @param resourceGroupName Name of resource group.
436
+ * @param options The options parameters.
437
+ */
438
+ _listValidSkus(provisioningServiceName, resourceGroupName, options) {
439
+ return this.client.sendOperationRequest({ provisioningServiceName, resourceGroupName, options }, listValidSkusOperationSpec);
440
+ }
441
+ /**
442
+ * Check if a provisioning service name is available. This will validate if the name is syntactically
443
+ * valid and if the name is usable
444
+ * @param argumentsParam Set the name parameter in the OperationInputs structure to the name of the
445
+ * provisioning service to check.
446
+ * @param options The options parameters.
447
+ */
448
+ checkProvisioningServiceNameAvailability(argumentsParam, options) {
449
+ return this.client.sendOperationRequest({ argumentsParam, options }, checkProvisioningServiceNameAvailabilityOperationSpec);
450
+ }
451
+ /**
452
+ * List the primary and secondary keys for a provisioning service.
453
+ * @param provisioningServiceName The provisioning service name to get the shared access keys for.
454
+ * @param resourceGroupName resource group name
455
+ * @param options The options parameters.
456
+ */
457
+ _listKeys(provisioningServiceName, resourceGroupName, options) {
458
+ return this.client.sendOperationRequest({ provisioningServiceName, resourceGroupName, options }, listKeysOperationSpec);
459
+ }
460
+ /**
461
+ * List primary and secondary keys for a specific key name
462
+ * @param provisioningServiceName Name of the provisioning service.
463
+ * @param keyName Logical key name to get key-values for.
464
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
465
+ * @param options The options parameters.
466
+ */
467
+ listKeysForKeyName(provisioningServiceName, keyName, resourceGroupName, options) {
468
+ return this.client.sendOperationRequest({ provisioningServiceName, keyName, resourceGroupName, options }, listKeysForKeyNameOperationSpec);
469
+ }
470
+ /**
471
+ * List private link resources for the given provisioning service
472
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
473
+ * @param resourceName The name of the provisioning service.
474
+ * @param options The options parameters.
475
+ */
476
+ listPrivateLinkResources(resourceGroupName, resourceName, options) {
477
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listPrivateLinkResourcesOperationSpec);
478
+ }
479
+ /**
480
+ * Get the specified private link resource for the given provisioning service
481
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
482
+ * @param resourceName The name of the provisioning service.
483
+ * @param groupId The name of the private link resource
484
+ * @param options The options parameters.
485
+ */
486
+ getPrivateLinkResources(resourceGroupName, resourceName, groupId, options) {
487
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, groupId, options }, getPrivateLinkResourcesOperationSpec);
488
+ }
489
+ /**
490
+ * List private endpoint connection properties
491
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
492
+ * @param resourceName The name of the provisioning service.
493
+ * @param options The options parameters.
494
+ */
495
+ listPrivateEndpointConnections(resourceGroupName, resourceName, options) {
496
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listPrivateEndpointConnectionsOperationSpec);
497
+ }
498
+ /**
499
+ * Get private endpoint connection properties
500
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
501
+ * @param resourceName The name of the provisioning service.
502
+ * @param privateEndpointConnectionName The name of the private endpoint connection
503
+ * @param options The options parameters.
504
+ */
505
+ getPrivateEndpointConnection(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
506
+ return this.client.sendOperationRequest({
507
+ resourceGroupName,
508
+ resourceName,
509
+ privateEndpointConnectionName,
510
+ options
511
+ }, getPrivateEndpointConnectionOperationSpec);
512
+ }
513
+ /**
514
+ * Create or update the status of a private endpoint connection with the specified name
515
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
516
+ * @param resourceName The name of the provisioning service.
517
+ * @param privateEndpointConnectionName The name of the private endpoint connection
518
+ * @param privateEndpointConnection The private endpoint connection with updated properties
519
+ * @param options The options parameters.
520
+ */
521
+ beginCreateOrUpdatePrivateEndpointConnection(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options) {
522
+ return __awaiter(this, void 0, void 0, function* () {
523
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
524
+ return this.client.sendOperationRequest(args, spec);
525
+ });
526
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
527
+ var _a;
528
+ let currentRawResponse = undefined;
529
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
530
+ const callback = (rawResponse, flatResponse) => {
531
+ currentRawResponse = rawResponse;
532
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
533
+ };
534
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
535
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
536
+ return {
537
+ flatResponse,
538
+ rawResponse: {
539
+ statusCode: currentRawResponse.status,
540
+ body: currentRawResponse.parsedBody,
541
+ headers: currentRawResponse.headers.toJSON()
542
+ }
543
+ };
544
+ });
545
+ const lro = new LroImpl(sendOperation, {
546
+ resourceGroupName,
547
+ resourceName,
548
+ privateEndpointConnectionName,
549
+ privateEndpointConnection,
550
+ options
551
+ }, createOrUpdatePrivateEndpointConnectionOperationSpec);
552
+ return new LroEngine(lro, {
553
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
554
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
555
+ });
556
+ });
557
+ }
558
+ /**
559
+ * Create or update the status of a private endpoint connection with the specified name
560
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
561
+ * @param resourceName The name of the provisioning service.
562
+ * @param privateEndpointConnectionName The name of the private endpoint connection
563
+ * @param privateEndpointConnection The private endpoint connection with updated properties
564
+ * @param options The options parameters.
565
+ */
566
+ beginCreateOrUpdatePrivateEndpointConnectionAndWait(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options) {
567
+ return __awaiter(this, void 0, void 0, function* () {
568
+ const poller = yield this.beginCreateOrUpdatePrivateEndpointConnection(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options);
569
+ return poller.pollUntilDone();
570
+ });
571
+ }
572
+ /**
573
+ * Delete private endpoint connection with the specified name
574
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
575
+ * @param resourceName The name of the provisioning service.
576
+ * @param privateEndpointConnectionName The name of the private endpoint connection
577
+ * @param options The options parameters.
578
+ */
579
+ beginDeletePrivateEndpointConnection(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
580
+ return __awaiter(this, void 0, void 0, function* () {
581
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
582
+ return this.client.sendOperationRequest(args, spec);
583
+ });
584
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
585
+ var _a;
586
+ let currentRawResponse = undefined;
587
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
588
+ const callback = (rawResponse, flatResponse) => {
589
+ currentRawResponse = rawResponse;
590
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
591
+ };
592
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
593
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
594
+ return {
595
+ flatResponse,
596
+ rawResponse: {
597
+ statusCode: currentRawResponse.status,
598
+ body: currentRawResponse.parsedBody,
599
+ headers: currentRawResponse.headers.toJSON()
600
+ }
601
+ };
602
+ });
603
+ const lro = new LroImpl(sendOperation, {
604
+ resourceGroupName,
605
+ resourceName,
606
+ privateEndpointConnectionName,
607
+ options
608
+ }, deletePrivateEndpointConnectionOperationSpec);
609
+ return new LroEngine(lro, {
610
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
611
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
612
+ });
613
+ });
614
+ }
615
+ /**
616
+ * Delete private endpoint connection with the specified name
617
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
618
+ * @param resourceName The name of the provisioning service.
619
+ * @param privateEndpointConnectionName The name of the private endpoint connection
620
+ * @param options The options parameters.
621
+ */
622
+ beginDeletePrivateEndpointConnectionAndWait(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
623
+ return __awaiter(this, void 0, void 0, function* () {
624
+ const poller = yield this.beginDeletePrivateEndpointConnection(resourceGroupName, resourceName, privateEndpointConnectionName, options);
625
+ return poller.pollUntilDone();
626
+ });
627
+ }
628
+ /**
629
+ * ListBySubscriptionNext
630
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
631
+ * @param options The options parameters.
632
+ */
633
+ _listBySubscriptionNext(nextLink, options) {
634
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
635
+ }
636
+ /**
637
+ * ListByResourceGroupNext
638
+ * @param resourceGroupName Resource group identifier.
639
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
640
+ * @param options The options parameters.
641
+ */
642
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
643
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
644
+ }
645
+ /**
646
+ * ListValidSkusNext
647
+ * @param provisioningServiceName Name of provisioning service.
648
+ * @param resourceGroupName Name of resource group.
649
+ * @param nextLink The nextLink from the previous successful call to the ListValidSkus method.
650
+ * @param options The options parameters.
651
+ */
652
+ _listValidSkusNext(provisioningServiceName, resourceGroupName, nextLink, options) {
653
+ return this.client.sendOperationRequest({ provisioningServiceName, resourceGroupName, nextLink, options }, listValidSkusNextOperationSpec);
654
+ }
655
+ /**
656
+ * ListKeysNext
657
+ * @param provisioningServiceName The provisioning service name to get the shared access keys for.
658
+ * @param resourceGroupName resource group name
659
+ * @param nextLink The nextLink from the previous successful call to the ListKeys method.
660
+ * @param options The options parameters.
661
+ */
662
+ _listKeysNext(provisioningServiceName, resourceGroupName, nextLink, options) {
663
+ return this.client.sendOperationRequest({ provisioningServiceName, resourceGroupName, nextLink, options }, listKeysNextOperationSpec);
664
+ }
665
+ }
666
+ // Operation Specifications
667
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
668
+ const getOperationSpec = {
669
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
670
+ httpMethod: "GET",
671
+ responses: {
672
+ 200: {
673
+ bodyMapper: Mappers.ProvisioningServiceDescription
674
+ },
675
+ default: {
676
+ bodyMapper: Mappers.ErrorDetails
677
+ }
678
+ },
679
+ queryParameters: [Parameters.apiVersion],
680
+ urlParameters: [
681
+ Parameters.$host,
682
+ Parameters.subscriptionId,
683
+ Parameters.resourceGroupName,
684
+ Parameters.provisioningServiceName
685
+ ],
686
+ headerParameters: [Parameters.accept],
687
+ serializer
688
+ };
689
+ const createOrUpdateOperationSpec = {
690
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
691
+ httpMethod: "PUT",
692
+ responses: {
693
+ 200: {
694
+ bodyMapper: Mappers.ProvisioningServiceDescription
695
+ },
696
+ 201: {
697
+ bodyMapper: Mappers.ProvisioningServiceDescription
698
+ },
699
+ 202: {
700
+ bodyMapper: Mappers.ProvisioningServiceDescription
701
+ },
702
+ 204: {
703
+ bodyMapper: Mappers.ProvisioningServiceDescription
704
+ },
705
+ default: {
706
+ bodyMapper: Mappers.ErrorDetails
707
+ }
708
+ },
709
+ requestBody: Parameters.iotDpsDescription,
710
+ queryParameters: [Parameters.apiVersion],
711
+ urlParameters: [
712
+ Parameters.$host,
713
+ Parameters.subscriptionId,
714
+ Parameters.resourceGroupName,
715
+ Parameters.provisioningServiceName
716
+ ],
717
+ headerParameters: [Parameters.accept, Parameters.contentType],
718
+ mediaType: "json",
719
+ serializer
720
+ };
721
+ const updateOperationSpec = {
722
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
723
+ httpMethod: "PATCH",
724
+ responses: {
725
+ 200: {
726
+ bodyMapper: Mappers.ProvisioningServiceDescription
727
+ },
728
+ 201: {
729
+ bodyMapper: Mappers.ProvisioningServiceDescription
730
+ },
731
+ 202: {
732
+ bodyMapper: Mappers.ProvisioningServiceDescription
733
+ },
734
+ 204: {
735
+ bodyMapper: Mappers.ProvisioningServiceDescription
736
+ }
737
+ },
738
+ requestBody: Parameters.provisioningServiceTags,
739
+ queryParameters: [Parameters.apiVersion],
740
+ urlParameters: [
741
+ Parameters.$host,
742
+ Parameters.subscriptionId,
743
+ Parameters.resourceGroupName,
744
+ Parameters.provisioningServiceName
745
+ ],
746
+ headerParameters: [Parameters.accept, Parameters.contentType],
747
+ mediaType: "json",
748
+ serializer
749
+ };
750
+ const deleteOperationSpec = {
751
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
752
+ httpMethod: "DELETE",
753
+ responses: {
754
+ 200: {},
755
+ 201: {},
756
+ 202: {},
757
+ 204: {},
758
+ default: {
759
+ bodyMapper: Mappers.ErrorDetails
760
+ }
761
+ },
762
+ queryParameters: [Parameters.apiVersion],
763
+ urlParameters: [
764
+ Parameters.$host,
765
+ Parameters.subscriptionId,
766
+ Parameters.resourceGroupName,
767
+ Parameters.provisioningServiceName
768
+ ],
769
+ headerParameters: [Parameters.accept],
770
+ serializer
771
+ };
772
+ const listBySubscriptionOperationSpec = {
773
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Devices/provisioningServices",
774
+ httpMethod: "GET",
775
+ responses: {
776
+ 200: {
777
+ bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
778
+ },
779
+ default: {
780
+ bodyMapper: Mappers.ErrorDetails
781
+ }
782
+ },
783
+ queryParameters: [Parameters.apiVersion],
784
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
785
+ headerParameters: [Parameters.accept],
786
+ serializer
787
+ };
788
+ const listByResourceGroupOperationSpec = {
789
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices",
790
+ httpMethod: "GET",
791
+ responses: {
792
+ 200: {
793
+ bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
794
+ },
795
+ default: {
796
+ bodyMapper: Mappers.ErrorDetails
797
+ }
798
+ },
799
+ queryParameters: [Parameters.apiVersion],
800
+ urlParameters: [
801
+ Parameters.$host,
802
+ Parameters.subscriptionId,
803
+ Parameters.resourceGroupName
804
+ ],
805
+ headerParameters: [Parameters.accept],
806
+ serializer
807
+ };
808
+ const getOperationResultOperationSpec = {
809
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/operationresults/{operationId}",
810
+ httpMethod: "GET",
811
+ responses: {
812
+ 200: {
813
+ bodyMapper: Mappers.AsyncOperationResult
814
+ },
815
+ default: {
816
+ bodyMapper: Mappers.ErrorDetails
817
+ }
818
+ },
819
+ queryParameters: [Parameters.apiVersion, Parameters.asyncinfo],
820
+ urlParameters: [
821
+ Parameters.$host,
822
+ Parameters.subscriptionId,
823
+ Parameters.resourceGroupName,
824
+ Parameters.provisioningServiceName,
825
+ Parameters.operationId
826
+ ],
827
+ headerParameters: [Parameters.accept],
828
+ serializer
829
+ };
830
+ const listValidSkusOperationSpec = {
831
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/skus",
832
+ httpMethod: "GET",
833
+ responses: {
834
+ 200: {
835
+ bodyMapper: Mappers.IotDpsSkuDefinitionListResult
836
+ },
837
+ default: {
838
+ bodyMapper: Mappers.ErrorDetails
839
+ }
840
+ },
841
+ queryParameters: [Parameters.apiVersion],
842
+ urlParameters: [
843
+ Parameters.$host,
844
+ Parameters.subscriptionId,
845
+ Parameters.resourceGroupName,
846
+ Parameters.provisioningServiceName
847
+ ],
848
+ headerParameters: [Parameters.accept],
849
+ serializer
850
+ };
851
+ const checkProvisioningServiceNameAvailabilityOperationSpec = {
852
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability",
853
+ httpMethod: "POST",
854
+ responses: {
855
+ 200: {
856
+ bodyMapper: Mappers.NameAvailabilityInfo
857
+ },
858
+ default: {
859
+ bodyMapper: Mappers.ErrorDetails
860
+ }
861
+ },
862
+ requestBody: Parameters.argumentsParam,
863
+ queryParameters: [Parameters.apiVersion],
864
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
865
+ headerParameters: [Parameters.accept, Parameters.contentType],
866
+ mediaType: "json",
867
+ serializer
868
+ };
869
+ const listKeysOperationSpec = {
870
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/listkeys",
871
+ httpMethod: "POST",
872
+ responses: {
873
+ 200: {
874
+ bodyMapper: Mappers.SharedAccessSignatureAuthorizationRuleListResult
875
+ },
876
+ default: {
877
+ bodyMapper: Mappers.ErrorDetails
878
+ }
879
+ },
880
+ queryParameters: [Parameters.apiVersion],
881
+ urlParameters: [
882
+ Parameters.$host,
883
+ Parameters.subscriptionId,
884
+ Parameters.resourceGroupName,
885
+ Parameters.provisioningServiceName
886
+ ],
887
+ headerParameters: [Parameters.accept],
888
+ serializer
889
+ };
890
+ const listKeysForKeyNameOperationSpec = {
891
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/keys/{keyName}/listkeys",
892
+ httpMethod: "POST",
893
+ responses: {
894
+ 200: {
895
+ bodyMapper: Mappers.SharedAccessSignatureAuthorizationRuleAccessRightsDescription
896
+ },
897
+ default: {
898
+ bodyMapper: Mappers.ErrorDetails
899
+ }
900
+ },
901
+ queryParameters: [Parameters.apiVersion],
902
+ urlParameters: [
903
+ Parameters.$host,
904
+ Parameters.subscriptionId,
905
+ Parameters.resourceGroupName,
906
+ Parameters.provisioningServiceName,
907
+ Parameters.keyName
908
+ ],
909
+ headerParameters: [Parameters.accept],
910
+ serializer
911
+ };
912
+ const listPrivateLinkResourcesOperationSpec = {
913
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateLinkResources",
914
+ httpMethod: "GET",
915
+ responses: {
916
+ 200: {
917
+ bodyMapper: Mappers.PrivateLinkResources
918
+ },
919
+ default: {
920
+ bodyMapper: Mappers.ErrorDetails
921
+ }
922
+ },
923
+ queryParameters: [Parameters.apiVersion],
924
+ urlParameters: [
925
+ Parameters.$host,
926
+ Parameters.subscriptionId,
927
+ Parameters.resourceGroupName,
928
+ Parameters.resourceName
929
+ ],
930
+ headerParameters: [Parameters.accept],
931
+ serializer
932
+ };
933
+ const getPrivateLinkResourcesOperationSpec = {
934
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateLinkResources/{groupId}",
935
+ httpMethod: "GET",
936
+ responses: {
937
+ 200: {
938
+ bodyMapper: Mappers.GroupIdInformation
939
+ },
940
+ default: {
941
+ bodyMapper: Mappers.ErrorDetails
942
+ }
943
+ },
944
+ queryParameters: [Parameters.apiVersion],
945
+ urlParameters: [
946
+ Parameters.$host,
947
+ Parameters.subscriptionId,
948
+ Parameters.resourceGroupName,
949
+ Parameters.resourceName,
950
+ Parameters.groupId
951
+ ],
952
+ headerParameters: [Parameters.accept],
953
+ serializer
954
+ };
955
+ const listPrivateEndpointConnectionsOperationSpec = {
956
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections",
957
+ httpMethod: "GET",
958
+ responses: {
959
+ 200: {
960
+ bodyMapper: {
961
+ type: {
962
+ name: "Sequence",
963
+ element: {
964
+ type: { name: "Composite", className: "PrivateEndpointConnection" }
965
+ }
966
+ }
967
+ }
968
+ },
969
+ default: {
970
+ bodyMapper: Mappers.ErrorDetails
971
+ }
972
+ },
973
+ queryParameters: [Parameters.apiVersion],
974
+ urlParameters: [
975
+ Parameters.$host,
976
+ Parameters.subscriptionId,
977
+ Parameters.resourceGroupName,
978
+ Parameters.resourceName
979
+ ],
980
+ headerParameters: [Parameters.accept],
981
+ serializer
982
+ };
983
+ const getPrivateEndpointConnectionOperationSpec = {
984
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
985
+ httpMethod: "GET",
986
+ responses: {
987
+ 200: {
988
+ bodyMapper: Mappers.PrivateEndpointConnection
989
+ },
990
+ default: {
991
+ bodyMapper: Mappers.ErrorDetails
992
+ }
993
+ },
994
+ queryParameters: [Parameters.apiVersion],
995
+ urlParameters: [
996
+ Parameters.$host,
997
+ Parameters.subscriptionId,
998
+ Parameters.resourceGroupName,
999
+ Parameters.resourceName,
1000
+ Parameters.privateEndpointConnectionName
1001
+ ],
1002
+ headerParameters: [Parameters.accept],
1003
+ serializer
1004
+ };
1005
+ const createOrUpdatePrivateEndpointConnectionOperationSpec = {
1006
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
1007
+ httpMethod: "PUT",
1008
+ responses: {
1009
+ 200: {
1010
+ bodyMapper: Mappers.PrivateEndpointConnection
1011
+ },
1012
+ 201: {
1013
+ bodyMapper: Mappers.PrivateEndpointConnection
1014
+ },
1015
+ 202: {
1016
+ bodyMapper: Mappers.PrivateEndpointConnection
1017
+ },
1018
+ 204: {
1019
+ bodyMapper: Mappers.PrivateEndpointConnection
1020
+ },
1021
+ default: {
1022
+ bodyMapper: Mappers.ErrorDetails
1023
+ }
1024
+ },
1025
+ requestBody: Parameters.privateEndpointConnection,
1026
+ queryParameters: [Parameters.apiVersion],
1027
+ urlParameters: [
1028
+ Parameters.$host,
1029
+ Parameters.subscriptionId,
1030
+ Parameters.resourceGroupName,
1031
+ Parameters.resourceName,
1032
+ Parameters.privateEndpointConnectionName
1033
+ ],
1034
+ headerParameters: [Parameters.accept, Parameters.contentType],
1035
+ mediaType: "json",
1036
+ serializer
1037
+ };
1038
+ const deletePrivateEndpointConnectionOperationSpec = {
1039
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
1040
+ httpMethod: "DELETE",
1041
+ responses: {
1042
+ 200: {
1043
+ bodyMapper: Mappers.PrivateEndpointConnection
1044
+ },
1045
+ 201: {
1046
+ bodyMapper: Mappers.PrivateEndpointConnection
1047
+ },
1048
+ 202: {
1049
+ bodyMapper: Mappers.PrivateEndpointConnection
1050
+ },
1051
+ 204: {
1052
+ bodyMapper: Mappers.PrivateEndpointConnection
1053
+ },
1054
+ default: {
1055
+ bodyMapper: Mappers.ErrorDetails
1056
+ }
1057
+ },
1058
+ queryParameters: [Parameters.apiVersion],
1059
+ urlParameters: [
1060
+ Parameters.$host,
1061
+ Parameters.subscriptionId,
1062
+ Parameters.resourceGroupName,
1063
+ Parameters.resourceName,
1064
+ Parameters.privateEndpointConnectionName
1065
+ ],
1066
+ headerParameters: [Parameters.accept],
1067
+ serializer
1068
+ };
1069
+ const listBySubscriptionNextOperationSpec = {
1070
+ path: "{nextLink}",
1071
+ httpMethod: "GET",
1072
+ responses: {
1073
+ 200: {
1074
+ bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
1075
+ },
1076
+ default: {
1077
+ bodyMapper: Mappers.ErrorDetails
1078
+ }
1079
+ },
1080
+ queryParameters: [Parameters.apiVersion],
1081
+ urlParameters: [
1082
+ Parameters.$host,
1083
+ Parameters.nextLink,
1084
+ Parameters.subscriptionId
1085
+ ],
1086
+ headerParameters: [Parameters.accept],
1087
+ serializer
1088
+ };
1089
+ const listByResourceGroupNextOperationSpec = {
1090
+ path: "{nextLink}",
1091
+ httpMethod: "GET",
1092
+ responses: {
1093
+ 200: {
1094
+ bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
1095
+ },
1096
+ default: {
1097
+ bodyMapper: Mappers.ErrorDetails
1098
+ }
1099
+ },
1100
+ queryParameters: [Parameters.apiVersion],
1101
+ urlParameters: [
1102
+ Parameters.$host,
1103
+ Parameters.nextLink,
1104
+ Parameters.subscriptionId,
1105
+ Parameters.resourceGroupName
1106
+ ],
1107
+ headerParameters: [Parameters.accept],
1108
+ serializer
1109
+ };
1110
+ const listValidSkusNextOperationSpec = {
1111
+ path: "{nextLink}",
1112
+ httpMethod: "GET",
1113
+ responses: {
1114
+ 200: {
1115
+ bodyMapper: Mappers.IotDpsSkuDefinitionListResult
1116
+ },
1117
+ default: {
1118
+ bodyMapper: Mappers.ErrorDetails
1119
+ }
1120
+ },
1121
+ queryParameters: [Parameters.apiVersion],
1122
+ urlParameters: [
1123
+ Parameters.$host,
1124
+ Parameters.nextLink,
1125
+ Parameters.subscriptionId,
1126
+ Parameters.resourceGroupName,
1127
+ Parameters.provisioningServiceName
1128
+ ],
1129
+ headerParameters: [Parameters.accept],
1130
+ serializer
1131
+ };
1132
+ const listKeysNextOperationSpec = {
1133
+ path: "{nextLink}",
1134
+ httpMethod: "GET",
1135
+ responses: {
1136
+ 200: {
1137
+ bodyMapper: Mappers.SharedAccessSignatureAuthorizationRuleListResult
1138
+ },
1139
+ default: {
1140
+ bodyMapper: Mappers.ErrorDetails
1141
+ }
1142
+ },
1143
+ queryParameters: [Parameters.apiVersion],
1144
+ urlParameters: [
1145
+ Parameters.$host,
1146
+ Parameters.nextLink,
1147
+ Parameters.subscriptionId,
1148
+ Parameters.resourceGroupName,
1149
+ Parameters.provisioningServiceName
1150
+ ],
1151
+ headerParameters: [Parameters.accept],
1152
+ serializer
1153
+ };
1154
+ //# sourceMappingURL=iotDpsResource.js.map