@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,1595 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { IotDpsResource } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { IotDpsClient } from "../iotDpsClient";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ ProvisioningServiceDescription,
19
+ IotDpsResourceListBySubscriptionNextOptionalParams,
20
+ IotDpsResourceListBySubscriptionOptionalParams,
21
+ IotDpsResourceListByResourceGroupNextOptionalParams,
22
+ IotDpsResourceListByResourceGroupOptionalParams,
23
+ IotDpsSkuDefinition,
24
+ IotDpsResourceListValidSkusNextOptionalParams,
25
+ IotDpsResourceListValidSkusOptionalParams,
26
+ SharedAccessSignatureAuthorizationRuleAccessRightsDescription,
27
+ IotDpsResourceListKeysNextOptionalParams,
28
+ IotDpsResourceListKeysOptionalParams,
29
+ IotDpsResourceGetOptionalParams,
30
+ IotDpsResourceGetResponse,
31
+ IotDpsResourceCreateOrUpdateOptionalParams,
32
+ IotDpsResourceCreateOrUpdateResponse,
33
+ TagsResource,
34
+ IotDpsResourceUpdateOptionalParams,
35
+ IotDpsResourceUpdateResponse,
36
+ IotDpsResourceDeleteOptionalParams,
37
+ IotDpsResourceListBySubscriptionResponse,
38
+ IotDpsResourceListByResourceGroupResponse,
39
+ IotDpsResourceGetOperationResultOptionalParams,
40
+ IotDpsResourceGetOperationResultResponse,
41
+ IotDpsResourceListValidSkusResponse,
42
+ OperationInputs,
43
+ IotDpsResourceCheckProvisioningServiceNameAvailabilityOptionalParams,
44
+ IotDpsResourceCheckProvisioningServiceNameAvailabilityResponse,
45
+ IotDpsResourceListKeysResponse,
46
+ IotDpsResourceListKeysForKeyNameOptionalParams,
47
+ IotDpsResourceListKeysForKeyNameResponse,
48
+ IotDpsResourceListPrivateLinkResourcesOptionalParams,
49
+ IotDpsResourceListPrivateLinkResourcesResponse,
50
+ IotDpsResourceGetPrivateLinkResourcesOptionalParams,
51
+ IotDpsResourceGetPrivateLinkResourcesResponse,
52
+ IotDpsResourceListPrivateEndpointConnectionsOptionalParams,
53
+ IotDpsResourceListPrivateEndpointConnectionsResponse,
54
+ IotDpsResourceGetPrivateEndpointConnectionOptionalParams,
55
+ IotDpsResourceGetPrivateEndpointConnectionResponse,
56
+ PrivateEndpointConnection,
57
+ IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams,
58
+ IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse,
59
+ IotDpsResourceDeletePrivateEndpointConnectionOptionalParams,
60
+ IotDpsResourceDeletePrivateEndpointConnectionResponse,
61
+ IotDpsResourceListBySubscriptionNextResponse,
62
+ IotDpsResourceListByResourceGroupNextResponse,
63
+ IotDpsResourceListValidSkusNextResponse,
64
+ IotDpsResourceListKeysNextResponse
65
+ } from "../models";
66
+
67
+ /// <reference lib="esnext.asynciterable" />
68
+ /** Class containing IotDpsResource operations. */
69
+ export class IotDpsResourceImpl implements IotDpsResource {
70
+ private readonly client: IotDpsClient;
71
+
72
+ /**
73
+ * Initialize a new instance of the class IotDpsResource class.
74
+ * @param client Reference to the service client
75
+ */
76
+ constructor(client: IotDpsClient) {
77
+ this.client = client;
78
+ }
79
+
80
+ /**
81
+ * List all the provisioning services for a given subscription id.
82
+ * @param options The options parameters.
83
+ */
84
+ public listBySubscription(
85
+ options?: IotDpsResourceListBySubscriptionOptionalParams
86
+ ): PagedAsyncIterableIterator<ProvisioningServiceDescription> {
87
+ const iter = this.listBySubscriptionPagingAll(options);
88
+ return {
89
+ next() {
90
+ return iter.next();
91
+ },
92
+ [Symbol.asyncIterator]() {
93
+ return this;
94
+ },
95
+ byPage: () => {
96
+ return this.listBySubscriptionPagingPage(options);
97
+ }
98
+ };
99
+ }
100
+
101
+ private async *listBySubscriptionPagingPage(
102
+ options?: IotDpsResourceListBySubscriptionOptionalParams
103
+ ): AsyncIterableIterator<ProvisioningServiceDescription[]> {
104
+ let result = await this._listBySubscription(options);
105
+ yield result.value || [];
106
+ let continuationToken = result.nextLink;
107
+ while (continuationToken) {
108
+ result = await this._listBySubscriptionNext(continuationToken, options);
109
+ continuationToken = result.nextLink;
110
+ yield result.value || [];
111
+ }
112
+ }
113
+
114
+ private async *listBySubscriptionPagingAll(
115
+ options?: IotDpsResourceListBySubscriptionOptionalParams
116
+ ): AsyncIterableIterator<ProvisioningServiceDescription> {
117
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
118
+ yield* page;
119
+ }
120
+ }
121
+
122
+ /**
123
+ * Get a list of all provisioning services in the given resource group.
124
+ * @param resourceGroupName Resource group identifier.
125
+ * @param options The options parameters.
126
+ */
127
+ public listByResourceGroup(
128
+ resourceGroupName: string,
129
+ options?: IotDpsResourceListByResourceGroupOptionalParams
130
+ ): PagedAsyncIterableIterator<ProvisioningServiceDescription> {
131
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
132
+ return {
133
+ next() {
134
+ return iter.next();
135
+ },
136
+ [Symbol.asyncIterator]() {
137
+ return this;
138
+ },
139
+ byPage: () => {
140
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
141
+ }
142
+ };
143
+ }
144
+
145
+ private async *listByResourceGroupPagingPage(
146
+ resourceGroupName: string,
147
+ options?: IotDpsResourceListByResourceGroupOptionalParams
148
+ ): AsyncIterableIterator<ProvisioningServiceDescription[]> {
149
+ let result = await this._listByResourceGroup(resourceGroupName, options);
150
+ yield result.value || [];
151
+ let continuationToken = result.nextLink;
152
+ while (continuationToken) {
153
+ result = await this._listByResourceGroupNext(
154
+ resourceGroupName,
155
+ continuationToken,
156
+ options
157
+ );
158
+ continuationToken = result.nextLink;
159
+ yield result.value || [];
160
+ }
161
+ }
162
+
163
+ private async *listByResourceGroupPagingAll(
164
+ resourceGroupName: string,
165
+ options?: IotDpsResourceListByResourceGroupOptionalParams
166
+ ): AsyncIterableIterator<ProvisioningServiceDescription> {
167
+ for await (const page of this.listByResourceGroupPagingPage(
168
+ resourceGroupName,
169
+ options
170
+ )) {
171
+ yield* page;
172
+ }
173
+ }
174
+
175
+ /**
176
+ * Gets the list of valid SKUs and tiers for a provisioning service.
177
+ * @param provisioningServiceName Name of provisioning service.
178
+ * @param resourceGroupName Name of resource group.
179
+ * @param options The options parameters.
180
+ */
181
+ public listValidSkus(
182
+ provisioningServiceName: string,
183
+ resourceGroupName: string,
184
+ options?: IotDpsResourceListValidSkusOptionalParams
185
+ ): PagedAsyncIterableIterator<IotDpsSkuDefinition> {
186
+ const iter = this.listValidSkusPagingAll(
187
+ provisioningServiceName,
188
+ resourceGroupName,
189
+ options
190
+ );
191
+ return {
192
+ next() {
193
+ return iter.next();
194
+ },
195
+ [Symbol.asyncIterator]() {
196
+ return this;
197
+ },
198
+ byPage: () => {
199
+ return this.listValidSkusPagingPage(
200
+ provisioningServiceName,
201
+ resourceGroupName,
202
+ options
203
+ );
204
+ }
205
+ };
206
+ }
207
+
208
+ private async *listValidSkusPagingPage(
209
+ provisioningServiceName: string,
210
+ resourceGroupName: string,
211
+ options?: IotDpsResourceListValidSkusOptionalParams
212
+ ): AsyncIterableIterator<IotDpsSkuDefinition[]> {
213
+ let result = await this._listValidSkus(
214
+ provisioningServiceName,
215
+ resourceGroupName,
216
+ options
217
+ );
218
+ yield result.value || [];
219
+ let continuationToken = result.nextLink;
220
+ while (continuationToken) {
221
+ result = await this._listValidSkusNext(
222
+ provisioningServiceName,
223
+ resourceGroupName,
224
+ continuationToken,
225
+ options
226
+ );
227
+ continuationToken = result.nextLink;
228
+ yield result.value || [];
229
+ }
230
+ }
231
+
232
+ private async *listValidSkusPagingAll(
233
+ provisioningServiceName: string,
234
+ resourceGroupName: string,
235
+ options?: IotDpsResourceListValidSkusOptionalParams
236
+ ): AsyncIterableIterator<IotDpsSkuDefinition> {
237
+ for await (const page of this.listValidSkusPagingPage(
238
+ provisioningServiceName,
239
+ resourceGroupName,
240
+ options
241
+ )) {
242
+ yield* page;
243
+ }
244
+ }
245
+
246
+ /**
247
+ * List the primary and secondary keys for a provisioning service.
248
+ * @param provisioningServiceName The provisioning service name to get the shared access keys for.
249
+ * @param resourceGroupName resource group name
250
+ * @param options The options parameters.
251
+ */
252
+ public listKeys(
253
+ provisioningServiceName: string,
254
+ resourceGroupName: string,
255
+ options?: IotDpsResourceListKeysOptionalParams
256
+ ): PagedAsyncIterableIterator<
257
+ SharedAccessSignatureAuthorizationRuleAccessRightsDescription
258
+ > {
259
+ const iter = this.listKeysPagingAll(
260
+ provisioningServiceName,
261
+ resourceGroupName,
262
+ options
263
+ );
264
+ return {
265
+ next() {
266
+ return iter.next();
267
+ },
268
+ [Symbol.asyncIterator]() {
269
+ return this;
270
+ },
271
+ byPage: () => {
272
+ return this.listKeysPagingPage(
273
+ provisioningServiceName,
274
+ resourceGroupName,
275
+ options
276
+ );
277
+ }
278
+ };
279
+ }
280
+
281
+ private async *listKeysPagingPage(
282
+ provisioningServiceName: string,
283
+ resourceGroupName: string,
284
+ options?: IotDpsResourceListKeysOptionalParams
285
+ ): AsyncIterableIterator<
286
+ SharedAccessSignatureAuthorizationRuleAccessRightsDescription[]
287
+ > {
288
+ let result = await this._listKeys(
289
+ provisioningServiceName,
290
+ resourceGroupName,
291
+ options
292
+ );
293
+ yield result.value || [];
294
+ let continuationToken = result.nextLink;
295
+ while (continuationToken) {
296
+ result = await this._listKeysNext(
297
+ provisioningServiceName,
298
+ resourceGroupName,
299
+ continuationToken,
300
+ options
301
+ );
302
+ continuationToken = result.nextLink;
303
+ yield result.value || [];
304
+ }
305
+ }
306
+
307
+ private async *listKeysPagingAll(
308
+ provisioningServiceName: string,
309
+ resourceGroupName: string,
310
+ options?: IotDpsResourceListKeysOptionalParams
311
+ ): AsyncIterableIterator<
312
+ SharedAccessSignatureAuthorizationRuleAccessRightsDescription
313
+ > {
314
+ for await (const page of this.listKeysPagingPage(
315
+ provisioningServiceName,
316
+ resourceGroupName,
317
+ options
318
+ )) {
319
+ yield* page;
320
+ }
321
+ }
322
+
323
+ /**
324
+ * Get the metadata of the provisioning service without SAS keys.
325
+ * @param provisioningServiceName Name of the provisioning service to retrieve.
326
+ * @param resourceGroupName Resource group name.
327
+ * @param options The options parameters.
328
+ */
329
+ get(
330
+ provisioningServiceName: string,
331
+ resourceGroupName: string,
332
+ options?: IotDpsResourceGetOptionalParams
333
+ ): Promise<IotDpsResourceGetResponse> {
334
+ return this.client.sendOperationRequest(
335
+ { provisioningServiceName, resourceGroupName, options },
336
+ getOperationSpec
337
+ );
338
+ }
339
+
340
+ /**
341
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is
342
+ * to retrieve the provisioning service metadata and security metadata, and then combine them with the
343
+ * modified values in a new body to update the provisioning service.
344
+ * @param resourceGroupName Resource group identifier.
345
+ * @param provisioningServiceName Name of provisioning service to create or update.
346
+ * @param iotDpsDescription Description of the provisioning service to create or update.
347
+ * @param options The options parameters.
348
+ */
349
+ async beginCreateOrUpdate(
350
+ resourceGroupName: string,
351
+ provisioningServiceName: string,
352
+ iotDpsDescription: ProvisioningServiceDescription,
353
+ options?: IotDpsResourceCreateOrUpdateOptionalParams
354
+ ): Promise<
355
+ PollerLike<
356
+ PollOperationState<IotDpsResourceCreateOrUpdateResponse>,
357
+ IotDpsResourceCreateOrUpdateResponse
358
+ >
359
+ > {
360
+ const directSendOperation = async (
361
+ args: coreClient.OperationArguments,
362
+ spec: coreClient.OperationSpec
363
+ ): Promise<IotDpsResourceCreateOrUpdateResponse> => {
364
+ return this.client.sendOperationRequest(args, spec);
365
+ };
366
+ const sendOperation = async (
367
+ args: coreClient.OperationArguments,
368
+ spec: coreClient.OperationSpec
369
+ ) => {
370
+ let currentRawResponse:
371
+ | coreClient.FullOperationResponse
372
+ | undefined = undefined;
373
+ const providedCallback = args.options?.onResponse;
374
+ const callback: coreClient.RawResponseCallback = (
375
+ rawResponse: coreClient.FullOperationResponse,
376
+ flatResponse: unknown
377
+ ) => {
378
+ currentRawResponse = rawResponse;
379
+ providedCallback?.(rawResponse, flatResponse);
380
+ };
381
+ const updatedArgs = {
382
+ ...args,
383
+ options: {
384
+ ...args.options,
385
+ onResponse: callback
386
+ }
387
+ };
388
+ const flatResponse = await directSendOperation(updatedArgs, spec);
389
+ return {
390
+ flatResponse,
391
+ rawResponse: {
392
+ statusCode: currentRawResponse!.status,
393
+ body: currentRawResponse!.parsedBody,
394
+ headers: currentRawResponse!.headers.toJSON()
395
+ }
396
+ };
397
+ };
398
+
399
+ const lro = new LroImpl(
400
+ sendOperation,
401
+ {
402
+ resourceGroupName,
403
+ provisioningServiceName,
404
+ iotDpsDescription,
405
+ options
406
+ },
407
+ createOrUpdateOperationSpec
408
+ );
409
+ return new LroEngine(lro, {
410
+ resumeFrom: options?.resumeFrom,
411
+ intervalInMs: options?.updateIntervalInMs
412
+ });
413
+ }
414
+
415
+ /**
416
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is
417
+ * to retrieve the provisioning service metadata and security metadata, and then combine them with the
418
+ * modified values in a new body to update the provisioning service.
419
+ * @param resourceGroupName Resource group identifier.
420
+ * @param provisioningServiceName Name of provisioning service to create or update.
421
+ * @param iotDpsDescription Description of the provisioning service to create or update.
422
+ * @param options The options parameters.
423
+ */
424
+ async beginCreateOrUpdateAndWait(
425
+ resourceGroupName: string,
426
+ provisioningServiceName: string,
427
+ iotDpsDescription: ProvisioningServiceDescription,
428
+ options?: IotDpsResourceCreateOrUpdateOptionalParams
429
+ ): Promise<IotDpsResourceCreateOrUpdateResponse> {
430
+ const poller = await this.beginCreateOrUpdate(
431
+ resourceGroupName,
432
+ provisioningServiceName,
433
+ iotDpsDescription,
434
+ options
435
+ );
436
+ return poller.pollUntilDone();
437
+ }
438
+
439
+ /**
440
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
441
+ * @param resourceGroupName Resource group identifier.
442
+ * @param provisioningServiceName Name of provisioning service to create or update.
443
+ * @param provisioningServiceTags Updated tag information to set into the provisioning service
444
+ * instance.
445
+ * @param options The options parameters.
446
+ */
447
+ async beginUpdate(
448
+ resourceGroupName: string,
449
+ provisioningServiceName: string,
450
+ provisioningServiceTags: TagsResource,
451
+ options?: IotDpsResourceUpdateOptionalParams
452
+ ): Promise<
453
+ PollerLike<
454
+ PollOperationState<IotDpsResourceUpdateResponse>,
455
+ IotDpsResourceUpdateResponse
456
+ >
457
+ > {
458
+ const directSendOperation = async (
459
+ args: coreClient.OperationArguments,
460
+ spec: coreClient.OperationSpec
461
+ ): Promise<IotDpsResourceUpdateResponse> => {
462
+ return this.client.sendOperationRequest(args, spec);
463
+ };
464
+ const sendOperation = async (
465
+ args: coreClient.OperationArguments,
466
+ spec: coreClient.OperationSpec
467
+ ) => {
468
+ let currentRawResponse:
469
+ | coreClient.FullOperationResponse
470
+ | undefined = undefined;
471
+ const providedCallback = args.options?.onResponse;
472
+ const callback: coreClient.RawResponseCallback = (
473
+ rawResponse: coreClient.FullOperationResponse,
474
+ flatResponse: unknown
475
+ ) => {
476
+ currentRawResponse = rawResponse;
477
+ providedCallback?.(rawResponse, flatResponse);
478
+ };
479
+ const updatedArgs = {
480
+ ...args,
481
+ options: {
482
+ ...args.options,
483
+ onResponse: callback
484
+ }
485
+ };
486
+ const flatResponse = await directSendOperation(updatedArgs, spec);
487
+ return {
488
+ flatResponse,
489
+ rawResponse: {
490
+ statusCode: currentRawResponse!.status,
491
+ body: currentRawResponse!.parsedBody,
492
+ headers: currentRawResponse!.headers.toJSON()
493
+ }
494
+ };
495
+ };
496
+
497
+ const lro = new LroImpl(
498
+ sendOperation,
499
+ {
500
+ resourceGroupName,
501
+ provisioningServiceName,
502
+ provisioningServiceTags,
503
+ options
504
+ },
505
+ updateOperationSpec
506
+ );
507
+ return new LroEngine(lro, {
508
+ resumeFrom: options?.resumeFrom,
509
+ intervalInMs: options?.updateIntervalInMs
510
+ });
511
+ }
512
+
513
+ /**
514
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
515
+ * @param resourceGroupName Resource group identifier.
516
+ * @param provisioningServiceName Name of provisioning service to create or update.
517
+ * @param provisioningServiceTags Updated tag information to set into the provisioning service
518
+ * instance.
519
+ * @param options The options parameters.
520
+ */
521
+ async beginUpdateAndWait(
522
+ resourceGroupName: string,
523
+ provisioningServiceName: string,
524
+ provisioningServiceTags: TagsResource,
525
+ options?: IotDpsResourceUpdateOptionalParams
526
+ ): Promise<IotDpsResourceUpdateResponse> {
527
+ const poller = await this.beginUpdate(
528
+ resourceGroupName,
529
+ provisioningServiceName,
530
+ provisioningServiceTags,
531
+ options
532
+ );
533
+ return poller.pollUntilDone();
534
+ }
535
+
536
+ /**
537
+ * Deletes the Provisioning Service.
538
+ * @param provisioningServiceName Name of provisioning service to delete.
539
+ * @param resourceGroupName Resource group identifier.
540
+ * @param options The options parameters.
541
+ */
542
+ async beginDelete(
543
+ provisioningServiceName: string,
544
+ resourceGroupName: string,
545
+ options?: IotDpsResourceDeleteOptionalParams
546
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
547
+ const directSendOperation = async (
548
+ args: coreClient.OperationArguments,
549
+ spec: coreClient.OperationSpec
550
+ ): Promise<void> => {
551
+ return this.client.sendOperationRequest(args, spec);
552
+ };
553
+ const sendOperation = async (
554
+ args: coreClient.OperationArguments,
555
+ spec: coreClient.OperationSpec
556
+ ) => {
557
+ let currentRawResponse:
558
+ | coreClient.FullOperationResponse
559
+ | undefined = undefined;
560
+ const providedCallback = args.options?.onResponse;
561
+ const callback: coreClient.RawResponseCallback = (
562
+ rawResponse: coreClient.FullOperationResponse,
563
+ flatResponse: unknown
564
+ ) => {
565
+ currentRawResponse = rawResponse;
566
+ providedCallback?.(rawResponse, flatResponse);
567
+ };
568
+ const updatedArgs = {
569
+ ...args,
570
+ options: {
571
+ ...args.options,
572
+ onResponse: callback
573
+ }
574
+ };
575
+ const flatResponse = await directSendOperation(updatedArgs, spec);
576
+ return {
577
+ flatResponse,
578
+ rawResponse: {
579
+ statusCode: currentRawResponse!.status,
580
+ body: currentRawResponse!.parsedBody,
581
+ headers: currentRawResponse!.headers.toJSON()
582
+ }
583
+ };
584
+ };
585
+
586
+ const lro = new LroImpl(
587
+ sendOperation,
588
+ { provisioningServiceName, resourceGroupName, options },
589
+ deleteOperationSpec
590
+ );
591
+ return new LroEngine(lro, {
592
+ resumeFrom: options?.resumeFrom,
593
+ intervalInMs: options?.updateIntervalInMs
594
+ });
595
+ }
596
+
597
+ /**
598
+ * Deletes the Provisioning Service.
599
+ * @param provisioningServiceName Name of provisioning service to delete.
600
+ * @param resourceGroupName Resource group identifier.
601
+ * @param options The options parameters.
602
+ */
603
+ async beginDeleteAndWait(
604
+ provisioningServiceName: string,
605
+ resourceGroupName: string,
606
+ options?: IotDpsResourceDeleteOptionalParams
607
+ ): Promise<void> {
608
+ const poller = await this.beginDelete(
609
+ provisioningServiceName,
610
+ resourceGroupName,
611
+ options
612
+ );
613
+ return poller.pollUntilDone();
614
+ }
615
+
616
+ /**
617
+ * List all the provisioning services for a given subscription id.
618
+ * @param options The options parameters.
619
+ */
620
+ private _listBySubscription(
621
+ options?: IotDpsResourceListBySubscriptionOptionalParams
622
+ ): Promise<IotDpsResourceListBySubscriptionResponse> {
623
+ return this.client.sendOperationRequest(
624
+ { options },
625
+ listBySubscriptionOperationSpec
626
+ );
627
+ }
628
+
629
+ /**
630
+ * Get a list of all provisioning services in the given resource group.
631
+ * @param resourceGroupName Resource group identifier.
632
+ * @param options The options parameters.
633
+ */
634
+ private _listByResourceGroup(
635
+ resourceGroupName: string,
636
+ options?: IotDpsResourceListByResourceGroupOptionalParams
637
+ ): Promise<IotDpsResourceListByResourceGroupResponse> {
638
+ return this.client.sendOperationRequest(
639
+ { resourceGroupName, options },
640
+ listByResourceGroupOperationSpec
641
+ );
642
+ }
643
+
644
+ /**
645
+ * Gets the status of a long running operation, such as create, update or delete a provisioning
646
+ * service.
647
+ * @param operationId Operation id corresponding to long running operation. Use this to poll for the
648
+ * status.
649
+ * @param resourceGroupName Resource group identifier.
650
+ * @param provisioningServiceName Name of provisioning service that the operation is running on.
651
+ * @param asyncinfo Async header used to poll on the status of the operation, obtained while creating
652
+ * the long running operation.
653
+ * @param options The options parameters.
654
+ */
655
+ getOperationResult(
656
+ operationId: string,
657
+ resourceGroupName: string,
658
+ provisioningServiceName: string,
659
+ asyncinfo: string,
660
+ options?: IotDpsResourceGetOperationResultOptionalParams
661
+ ): Promise<IotDpsResourceGetOperationResultResponse> {
662
+ return this.client.sendOperationRequest(
663
+ {
664
+ operationId,
665
+ resourceGroupName,
666
+ provisioningServiceName,
667
+ asyncinfo,
668
+ options
669
+ },
670
+ getOperationResultOperationSpec
671
+ );
672
+ }
673
+
674
+ /**
675
+ * Gets the list of valid SKUs and tiers for a provisioning service.
676
+ * @param provisioningServiceName Name of provisioning service.
677
+ * @param resourceGroupName Name of resource group.
678
+ * @param options The options parameters.
679
+ */
680
+ private _listValidSkus(
681
+ provisioningServiceName: string,
682
+ resourceGroupName: string,
683
+ options?: IotDpsResourceListValidSkusOptionalParams
684
+ ): Promise<IotDpsResourceListValidSkusResponse> {
685
+ return this.client.sendOperationRequest(
686
+ { provisioningServiceName, resourceGroupName, options },
687
+ listValidSkusOperationSpec
688
+ );
689
+ }
690
+
691
+ /**
692
+ * Check if a provisioning service name is available. This will validate if the name is syntactically
693
+ * valid and if the name is usable
694
+ * @param argumentsParam Set the name parameter in the OperationInputs structure to the name of the
695
+ * provisioning service to check.
696
+ * @param options The options parameters.
697
+ */
698
+ checkProvisioningServiceNameAvailability(
699
+ argumentsParam: OperationInputs,
700
+ options?: IotDpsResourceCheckProvisioningServiceNameAvailabilityOptionalParams
701
+ ): Promise<IotDpsResourceCheckProvisioningServiceNameAvailabilityResponse> {
702
+ return this.client.sendOperationRequest(
703
+ { argumentsParam, options },
704
+ checkProvisioningServiceNameAvailabilityOperationSpec
705
+ );
706
+ }
707
+
708
+ /**
709
+ * List the primary and secondary keys for a provisioning service.
710
+ * @param provisioningServiceName The provisioning service name to get the shared access keys for.
711
+ * @param resourceGroupName resource group name
712
+ * @param options The options parameters.
713
+ */
714
+ private _listKeys(
715
+ provisioningServiceName: string,
716
+ resourceGroupName: string,
717
+ options?: IotDpsResourceListKeysOptionalParams
718
+ ): Promise<IotDpsResourceListKeysResponse> {
719
+ return this.client.sendOperationRequest(
720
+ { provisioningServiceName, resourceGroupName, options },
721
+ listKeysOperationSpec
722
+ );
723
+ }
724
+
725
+ /**
726
+ * List primary and secondary keys for a specific key name
727
+ * @param provisioningServiceName Name of the provisioning service.
728
+ * @param keyName Logical key name to get key-values for.
729
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
730
+ * @param options The options parameters.
731
+ */
732
+ listKeysForKeyName(
733
+ provisioningServiceName: string,
734
+ keyName: string,
735
+ resourceGroupName: string,
736
+ options?: IotDpsResourceListKeysForKeyNameOptionalParams
737
+ ): Promise<IotDpsResourceListKeysForKeyNameResponse> {
738
+ return this.client.sendOperationRequest(
739
+ { provisioningServiceName, keyName, resourceGroupName, options },
740
+ listKeysForKeyNameOperationSpec
741
+ );
742
+ }
743
+
744
+ /**
745
+ * List private link resources for the given provisioning service
746
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
747
+ * @param resourceName The name of the provisioning service.
748
+ * @param options The options parameters.
749
+ */
750
+ listPrivateLinkResources(
751
+ resourceGroupName: string,
752
+ resourceName: string,
753
+ options?: IotDpsResourceListPrivateLinkResourcesOptionalParams
754
+ ): Promise<IotDpsResourceListPrivateLinkResourcesResponse> {
755
+ return this.client.sendOperationRequest(
756
+ { resourceGroupName, resourceName, options },
757
+ listPrivateLinkResourcesOperationSpec
758
+ );
759
+ }
760
+
761
+ /**
762
+ * Get the specified private link resource for the given provisioning service
763
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
764
+ * @param resourceName The name of the provisioning service.
765
+ * @param groupId The name of the private link resource
766
+ * @param options The options parameters.
767
+ */
768
+ getPrivateLinkResources(
769
+ resourceGroupName: string,
770
+ resourceName: string,
771
+ groupId: string,
772
+ options?: IotDpsResourceGetPrivateLinkResourcesOptionalParams
773
+ ): Promise<IotDpsResourceGetPrivateLinkResourcesResponse> {
774
+ return this.client.sendOperationRequest(
775
+ { resourceGroupName, resourceName, groupId, options },
776
+ getPrivateLinkResourcesOperationSpec
777
+ );
778
+ }
779
+
780
+ /**
781
+ * List private endpoint connection properties
782
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
783
+ * @param resourceName The name of the provisioning service.
784
+ * @param options The options parameters.
785
+ */
786
+ listPrivateEndpointConnections(
787
+ resourceGroupName: string,
788
+ resourceName: string,
789
+ options?: IotDpsResourceListPrivateEndpointConnectionsOptionalParams
790
+ ): Promise<IotDpsResourceListPrivateEndpointConnectionsResponse> {
791
+ return this.client.sendOperationRequest(
792
+ { resourceGroupName, resourceName, options },
793
+ listPrivateEndpointConnectionsOperationSpec
794
+ );
795
+ }
796
+
797
+ /**
798
+ * Get private endpoint connection properties
799
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
800
+ * @param resourceName The name of the provisioning service.
801
+ * @param privateEndpointConnectionName The name of the private endpoint connection
802
+ * @param options The options parameters.
803
+ */
804
+ getPrivateEndpointConnection(
805
+ resourceGroupName: string,
806
+ resourceName: string,
807
+ privateEndpointConnectionName: string,
808
+ options?: IotDpsResourceGetPrivateEndpointConnectionOptionalParams
809
+ ): Promise<IotDpsResourceGetPrivateEndpointConnectionResponse> {
810
+ return this.client.sendOperationRequest(
811
+ {
812
+ resourceGroupName,
813
+ resourceName,
814
+ privateEndpointConnectionName,
815
+ options
816
+ },
817
+ getPrivateEndpointConnectionOperationSpec
818
+ );
819
+ }
820
+
821
+ /**
822
+ * Create or update the status of a private endpoint connection with the specified name
823
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
824
+ * @param resourceName The name of the provisioning service.
825
+ * @param privateEndpointConnectionName The name of the private endpoint connection
826
+ * @param privateEndpointConnection The private endpoint connection with updated properties
827
+ * @param options The options parameters.
828
+ */
829
+ async beginCreateOrUpdatePrivateEndpointConnection(
830
+ resourceGroupName: string,
831
+ resourceName: string,
832
+ privateEndpointConnectionName: string,
833
+ privateEndpointConnection: PrivateEndpointConnection,
834
+ options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams
835
+ ): Promise<
836
+ PollerLike<
837
+ PollOperationState<
838
+ IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse
839
+ >,
840
+ IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse
841
+ >
842
+ > {
843
+ const directSendOperation = async (
844
+ args: coreClient.OperationArguments,
845
+ spec: coreClient.OperationSpec
846
+ ): Promise<IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse> => {
847
+ return this.client.sendOperationRequest(args, spec);
848
+ };
849
+ const sendOperation = async (
850
+ args: coreClient.OperationArguments,
851
+ spec: coreClient.OperationSpec
852
+ ) => {
853
+ let currentRawResponse:
854
+ | coreClient.FullOperationResponse
855
+ | undefined = undefined;
856
+ const providedCallback = args.options?.onResponse;
857
+ const callback: coreClient.RawResponseCallback = (
858
+ rawResponse: coreClient.FullOperationResponse,
859
+ flatResponse: unknown
860
+ ) => {
861
+ currentRawResponse = rawResponse;
862
+ providedCallback?.(rawResponse, flatResponse);
863
+ };
864
+ const updatedArgs = {
865
+ ...args,
866
+ options: {
867
+ ...args.options,
868
+ onResponse: callback
869
+ }
870
+ };
871
+ const flatResponse = await directSendOperation(updatedArgs, spec);
872
+ return {
873
+ flatResponse,
874
+ rawResponse: {
875
+ statusCode: currentRawResponse!.status,
876
+ body: currentRawResponse!.parsedBody,
877
+ headers: currentRawResponse!.headers.toJSON()
878
+ }
879
+ };
880
+ };
881
+
882
+ const lro = new LroImpl(
883
+ sendOperation,
884
+ {
885
+ resourceGroupName,
886
+ resourceName,
887
+ privateEndpointConnectionName,
888
+ privateEndpointConnection,
889
+ options
890
+ },
891
+ createOrUpdatePrivateEndpointConnectionOperationSpec
892
+ );
893
+ return new LroEngine(lro, {
894
+ resumeFrom: options?.resumeFrom,
895
+ intervalInMs: options?.updateIntervalInMs
896
+ });
897
+ }
898
+
899
+ /**
900
+ * Create or update the status of a private endpoint connection with the specified name
901
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
902
+ * @param resourceName The name of the provisioning service.
903
+ * @param privateEndpointConnectionName The name of the private endpoint connection
904
+ * @param privateEndpointConnection The private endpoint connection with updated properties
905
+ * @param options The options parameters.
906
+ */
907
+ async beginCreateOrUpdatePrivateEndpointConnectionAndWait(
908
+ resourceGroupName: string,
909
+ resourceName: string,
910
+ privateEndpointConnectionName: string,
911
+ privateEndpointConnection: PrivateEndpointConnection,
912
+ options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams
913
+ ): Promise<IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse> {
914
+ const poller = await this.beginCreateOrUpdatePrivateEndpointConnection(
915
+ resourceGroupName,
916
+ resourceName,
917
+ privateEndpointConnectionName,
918
+ privateEndpointConnection,
919
+ options
920
+ );
921
+ return poller.pollUntilDone();
922
+ }
923
+
924
+ /**
925
+ * Delete private endpoint connection with the specified name
926
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
927
+ * @param resourceName The name of the provisioning service.
928
+ * @param privateEndpointConnectionName The name of the private endpoint connection
929
+ * @param options The options parameters.
930
+ */
931
+ async beginDeletePrivateEndpointConnection(
932
+ resourceGroupName: string,
933
+ resourceName: string,
934
+ privateEndpointConnectionName: string,
935
+ options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams
936
+ ): Promise<
937
+ PollerLike<
938
+ PollOperationState<IotDpsResourceDeletePrivateEndpointConnectionResponse>,
939
+ IotDpsResourceDeletePrivateEndpointConnectionResponse
940
+ >
941
+ > {
942
+ const directSendOperation = async (
943
+ args: coreClient.OperationArguments,
944
+ spec: coreClient.OperationSpec
945
+ ): Promise<IotDpsResourceDeletePrivateEndpointConnectionResponse> => {
946
+ return this.client.sendOperationRequest(args, spec);
947
+ };
948
+ const sendOperation = async (
949
+ args: coreClient.OperationArguments,
950
+ spec: coreClient.OperationSpec
951
+ ) => {
952
+ let currentRawResponse:
953
+ | coreClient.FullOperationResponse
954
+ | undefined = undefined;
955
+ const providedCallback = args.options?.onResponse;
956
+ const callback: coreClient.RawResponseCallback = (
957
+ rawResponse: coreClient.FullOperationResponse,
958
+ flatResponse: unknown
959
+ ) => {
960
+ currentRawResponse = rawResponse;
961
+ providedCallback?.(rawResponse, flatResponse);
962
+ };
963
+ const updatedArgs = {
964
+ ...args,
965
+ options: {
966
+ ...args.options,
967
+ onResponse: callback
968
+ }
969
+ };
970
+ const flatResponse = await directSendOperation(updatedArgs, spec);
971
+ return {
972
+ flatResponse,
973
+ rawResponse: {
974
+ statusCode: currentRawResponse!.status,
975
+ body: currentRawResponse!.parsedBody,
976
+ headers: currentRawResponse!.headers.toJSON()
977
+ }
978
+ };
979
+ };
980
+
981
+ const lro = new LroImpl(
982
+ sendOperation,
983
+ {
984
+ resourceGroupName,
985
+ resourceName,
986
+ privateEndpointConnectionName,
987
+ options
988
+ },
989
+ deletePrivateEndpointConnectionOperationSpec
990
+ );
991
+ return new LroEngine(lro, {
992
+ resumeFrom: options?.resumeFrom,
993
+ intervalInMs: options?.updateIntervalInMs
994
+ });
995
+ }
996
+
997
+ /**
998
+ * Delete private endpoint connection with the specified name
999
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
1000
+ * @param resourceName The name of the provisioning service.
1001
+ * @param privateEndpointConnectionName The name of the private endpoint connection
1002
+ * @param options The options parameters.
1003
+ */
1004
+ async beginDeletePrivateEndpointConnectionAndWait(
1005
+ resourceGroupName: string,
1006
+ resourceName: string,
1007
+ privateEndpointConnectionName: string,
1008
+ options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams
1009
+ ): Promise<IotDpsResourceDeletePrivateEndpointConnectionResponse> {
1010
+ const poller = await this.beginDeletePrivateEndpointConnection(
1011
+ resourceGroupName,
1012
+ resourceName,
1013
+ privateEndpointConnectionName,
1014
+ options
1015
+ );
1016
+ return poller.pollUntilDone();
1017
+ }
1018
+
1019
+ /**
1020
+ * ListBySubscriptionNext
1021
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1022
+ * @param options The options parameters.
1023
+ */
1024
+ private _listBySubscriptionNext(
1025
+ nextLink: string,
1026
+ options?: IotDpsResourceListBySubscriptionNextOptionalParams
1027
+ ): Promise<IotDpsResourceListBySubscriptionNextResponse> {
1028
+ return this.client.sendOperationRequest(
1029
+ { nextLink, options },
1030
+ listBySubscriptionNextOperationSpec
1031
+ );
1032
+ }
1033
+
1034
+ /**
1035
+ * ListByResourceGroupNext
1036
+ * @param resourceGroupName Resource group identifier.
1037
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1038
+ * @param options The options parameters.
1039
+ */
1040
+ private _listByResourceGroupNext(
1041
+ resourceGroupName: string,
1042
+ nextLink: string,
1043
+ options?: IotDpsResourceListByResourceGroupNextOptionalParams
1044
+ ): Promise<IotDpsResourceListByResourceGroupNextResponse> {
1045
+ return this.client.sendOperationRequest(
1046
+ { resourceGroupName, nextLink, options },
1047
+ listByResourceGroupNextOperationSpec
1048
+ );
1049
+ }
1050
+
1051
+ /**
1052
+ * ListValidSkusNext
1053
+ * @param provisioningServiceName Name of provisioning service.
1054
+ * @param resourceGroupName Name of resource group.
1055
+ * @param nextLink The nextLink from the previous successful call to the ListValidSkus method.
1056
+ * @param options The options parameters.
1057
+ */
1058
+ private _listValidSkusNext(
1059
+ provisioningServiceName: string,
1060
+ resourceGroupName: string,
1061
+ nextLink: string,
1062
+ options?: IotDpsResourceListValidSkusNextOptionalParams
1063
+ ): Promise<IotDpsResourceListValidSkusNextResponse> {
1064
+ return this.client.sendOperationRequest(
1065
+ { provisioningServiceName, resourceGroupName, nextLink, options },
1066
+ listValidSkusNextOperationSpec
1067
+ );
1068
+ }
1069
+
1070
+ /**
1071
+ * ListKeysNext
1072
+ * @param provisioningServiceName The provisioning service name to get the shared access keys for.
1073
+ * @param resourceGroupName resource group name
1074
+ * @param nextLink The nextLink from the previous successful call to the ListKeys method.
1075
+ * @param options The options parameters.
1076
+ */
1077
+ private _listKeysNext(
1078
+ provisioningServiceName: string,
1079
+ resourceGroupName: string,
1080
+ nextLink: string,
1081
+ options?: IotDpsResourceListKeysNextOptionalParams
1082
+ ): Promise<IotDpsResourceListKeysNextResponse> {
1083
+ return this.client.sendOperationRequest(
1084
+ { provisioningServiceName, resourceGroupName, nextLink, options },
1085
+ listKeysNextOperationSpec
1086
+ );
1087
+ }
1088
+ }
1089
+ // Operation Specifications
1090
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1091
+
1092
+ const getOperationSpec: coreClient.OperationSpec = {
1093
+ path:
1094
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
1095
+ httpMethod: "GET",
1096
+ responses: {
1097
+ 200: {
1098
+ bodyMapper: Mappers.ProvisioningServiceDescription
1099
+ },
1100
+ default: {
1101
+ bodyMapper: Mappers.ErrorDetails
1102
+ }
1103
+ },
1104
+ queryParameters: [Parameters.apiVersion],
1105
+ urlParameters: [
1106
+ Parameters.$host,
1107
+ Parameters.subscriptionId,
1108
+ Parameters.resourceGroupName,
1109
+ Parameters.provisioningServiceName
1110
+ ],
1111
+ headerParameters: [Parameters.accept],
1112
+ serializer
1113
+ };
1114
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
1115
+ path:
1116
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
1117
+ httpMethod: "PUT",
1118
+ responses: {
1119
+ 200: {
1120
+ bodyMapper: Mappers.ProvisioningServiceDescription
1121
+ },
1122
+ 201: {
1123
+ bodyMapper: Mappers.ProvisioningServiceDescription
1124
+ },
1125
+ 202: {
1126
+ bodyMapper: Mappers.ProvisioningServiceDescription
1127
+ },
1128
+ 204: {
1129
+ bodyMapper: Mappers.ProvisioningServiceDescription
1130
+ },
1131
+ default: {
1132
+ bodyMapper: Mappers.ErrorDetails
1133
+ }
1134
+ },
1135
+ requestBody: Parameters.iotDpsDescription,
1136
+ queryParameters: [Parameters.apiVersion],
1137
+ urlParameters: [
1138
+ Parameters.$host,
1139
+ Parameters.subscriptionId,
1140
+ Parameters.resourceGroupName,
1141
+ Parameters.provisioningServiceName
1142
+ ],
1143
+ headerParameters: [Parameters.accept, Parameters.contentType],
1144
+ mediaType: "json",
1145
+ serializer
1146
+ };
1147
+ const updateOperationSpec: coreClient.OperationSpec = {
1148
+ path:
1149
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
1150
+ httpMethod: "PATCH",
1151
+ responses: {
1152
+ 200: {
1153
+ bodyMapper: Mappers.ProvisioningServiceDescription
1154
+ },
1155
+ 201: {
1156
+ bodyMapper: Mappers.ProvisioningServiceDescription
1157
+ },
1158
+ 202: {
1159
+ bodyMapper: Mappers.ProvisioningServiceDescription
1160
+ },
1161
+ 204: {
1162
+ bodyMapper: Mappers.ProvisioningServiceDescription
1163
+ }
1164
+ },
1165
+ requestBody: Parameters.provisioningServiceTags,
1166
+ queryParameters: [Parameters.apiVersion],
1167
+ urlParameters: [
1168
+ Parameters.$host,
1169
+ Parameters.subscriptionId,
1170
+ Parameters.resourceGroupName,
1171
+ Parameters.provisioningServiceName
1172
+ ],
1173
+ headerParameters: [Parameters.accept, Parameters.contentType],
1174
+ mediaType: "json",
1175
+ serializer
1176
+ };
1177
+ const deleteOperationSpec: coreClient.OperationSpec = {
1178
+ path:
1179
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
1180
+ httpMethod: "DELETE",
1181
+ responses: {
1182
+ 200: {},
1183
+ 201: {},
1184
+ 202: {},
1185
+ 204: {},
1186
+ default: {
1187
+ bodyMapper: Mappers.ErrorDetails
1188
+ }
1189
+ },
1190
+ queryParameters: [Parameters.apiVersion],
1191
+ urlParameters: [
1192
+ Parameters.$host,
1193
+ Parameters.subscriptionId,
1194
+ Parameters.resourceGroupName,
1195
+ Parameters.provisioningServiceName
1196
+ ],
1197
+ headerParameters: [Parameters.accept],
1198
+ serializer
1199
+ };
1200
+ const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
1201
+ path:
1202
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Devices/provisioningServices",
1203
+ httpMethod: "GET",
1204
+ responses: {
1205
+ 200: {
1206
+ bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
1207
+ },
1208
+ default: {
1209
+ bodyMapper: Mappers.ErrorDetails
1210
+ }
1211
+ },
1212
+ queryParameters: [Parameters.apiVersion],
1213
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
1214
+ headerParameters: [Parameters.accept],
1215
+ serializer
1216
+ };
1217
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
1218
+ path:
1219
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices",
1220
+ httpMethod: "GET",
1221
+ responses: {
1222
+ 200: {
1223
+ bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
1224
+ },
1225
+ default: {
1226
+ bodyMapper: Mappers.ErrorDetails
1227
+ }
1228
+ },
1229
+ queryParameters: [Parameters.apiVersion],
1230
+ urlParameters: [
1231
+ Parameters.$host,
1232
+ Parameters.subscriptionId,
1233
+ Parameters.resourceGroupName
1234
+ ],
1235
+ headerParameters: [Parameters.accept],
1236
+ serializer
1237
+ };
1238
+ const getOperationResultOperationSpec: coreClient.OperationSpec = {
1239
+ path:
1240
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/operationresults/{operationId}",
1241
+ httpMethod: "GET",
1242
+ responses: {
1243
+ 200: {
1244
+ bodyMapper: Mappers.AsyncOperationResult
1245
+ },
1246
+ default: {
1247
+ bodyMapper: Mappers.ErrorDetails
1248
+ }
1249
+ },
1250
+ queryParameters: [Parameters.apiVersion, Parameters.asyncinfo],
1251
+ urlParameters: [
1252
+ Parameters.$host,
1253
+ Parameters.subscriptionId,
1254
+ Parameters.resourceGroupName,
1255
+ Parameters.provisioningServiceName,
1256
+ Parameters.operationId
1257
+ ],
1258
+ headerParameters: [Parameters.accept],
1259
+ serializer
1260
+ };
1261
+ const listValidSkusOperationSpec: coreClient.OperationSpec = {
1262
+ path:
1263
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/skus",
1264
+ httpMethod: "GET",
1265
+ responses: {
1266
+ 200: {
1267
+ bodyMapper: Mappers.IotDpsSkuDefinitionListResult
1268
+ },
1269
+ default: {
1270
+ bodyMapper: Mappers.ErrorDetails
1271
+ }
1272
+ },
1273
+ queryParameters: [Parameters.apiVersion],
1274
+ urlParameters: [
1275
+ Parameters.$host,
1276
+ Parameters.subscriptionId,
1277
+ Parameters.resourceGroupName,
1278
+ Parameters.provisioningServiceName
1279
+ ],
1280
+ headerParameters: [Parameters.accept],
1281
+ serializer
1282
+ };
1283
+ const checkProvisioningServiceNameAvailabilityOperationSpec: coreClient.OperationSpec = {
1284
+ path:
1285
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability",
1286
+ httpMethod: "POST",
1287
+ responses: {
1288
+ 200: {
1289
+ bodyMapper: Mappers.NameAvailabilityInfo
1290
+ },
1291
+ default: {
1292
+ bodyMapper: Mappers.ErrorDetails
1293
+ }
1294
+ },
1295
+ requestBody: Parameters.argumentsParam,
1296
+ queryParameters: [Parameters.apiVersion],
1297
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
1298
+ headerParameters: [Parameters.accept, Parameters.contentType],
1299
+ mediaType: "json",
1300
+ serializer
1301
+ };
1302
+ const listKeysOperationSpec: coreClient.OperationSpec = {
1303
+ path:
1304
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/listkeys",
1305
+ httpMethod: "POST",
1306
+ responses: {
1307
+ 200: {
1308
+ bodyMapper: Mappers.SharedAccessSignatureAuthorizationRuleListResult
1309
+ },
1310
+ default: {
1311
+ bodyMapper: Mappers.ErrorDetails
1312
+ }
1313
+ },
1314
+ queryParameters: [Parameters.apiVersion],
1315
+ urlParameters: [
1316
+ Parameters.$host,
1317
+ Parameters.subscriptionId,
1318
+ Parameters.resourceGroupName,
1319
+ Parameters.provisioningServiceName
1320
+ ],
1321
+ headerParameters: [Parameters.accept],
1322
+ serializer
1323
+ };
1324
+ const listKeysForKeyNameOperationSpec: coreClient.OperationSpec = {
1325
+ path:
1326
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/keys/{keyName}/listkeys",
1327
+ httpMethod: "POST",
1328
+ responses: {
1329
+ 200: {
1330
+ bodyMapper:
1331
+ Mappers.SharedAccessSignatureAuthorizationRuleAccessRightsDescription
1332
+ },
1333
+ default: {
1334
+ bodyMapper: Mappers.ErrorDetails
1335
+ }
1336
+ },
1337
+ queryParameters: [Parameters.apiVersion],
1338
+ urlParameters: [
1339
+ Parameters.$host,
1340
+ Parameters.subscriptionId,
1341
+ Parameters.resourceGroupName,
1342
+ Parameters.provisioningServiceName,
1343
+ Parameters.keyName
1344
+ ],
1345
+ headerParameters: [Parameters.accept],
1346
+ serializer
1347
+ };
1348
+ const listPrivateLinkResourcesOperationSpec: coreClient.OperationSpec = {
1349
+ path:
1350
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateLinkResources",
1351
+ httpMethod: "GET",
1352
+ responses: {
1353
+ 200: {
1354
+ bodyMapper: Mappers.PrivateLinkResources
1355
+ },
1356
+ default: {
1357
+ bodyMapper: Mappers.ErrorDetails
1358
+ }
1359
+ },
1360
+ queryParameters: [Parameters.apiVersion],
1361
+ urlParameters: [
1362
+ Parameters.$host,
1363
+ Parameters.subscriptionId,
1364
+ Parameters.resourceGroupName,
1365
+ Parameters.resourceName
1366
+ ],
1367
+ headerParameters: [Parameters.accept],
1368
+ serializer
1369
+ };
1370
+ const getPrivateLinkResourcesOperationSpec: coreClient.OperationSpec = {
1371
+ path:
1372
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateLinkResources/{groupId}",
1373
+ httpMethod: "GET",
1374
+ responses: {
1375
+ 200: {
1376
+ bodyMapper: Mappers.GroupIdInformation
1377
+ },
1378
+ default: {
1379
+ bodyMapper: Mappers.ErrorDetails
1380
+ }
1381
+ },
1382
+ queryParameters: [Parameters.apiVersion],
1383
+ urlParameters: [
1384
+ Parameters.$host,
1385
+ Parameters.subscriptionId,
1386
+ Parameters.resourceGroupName,
1387
+ Parameters.resourceName,
1388
+ Parameters.groupId
1389
+ ],
1390
+ headerParameters: [Parameters.accept],
1391
+ serializer
1392
+ };
1393
+ const listPrivateEndpointConnectionsOperationSpec: coreClient.OperationSpec = {
1394
+ path:
1395
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections",
1396
+ httpMethod: "GET",
1397
+ responses: {
1398
+ 200: {
1399
+ bodyMapper: {
1400
+ type: {
1401
+ name: "Sequence",
1402
+ element: {
1403
+ type: { name: "Composite", className: "PrivateEndpointConnection" }
1404
+ }
1405
+ }
1406
+ }
1407
+ },
1408
+ default: {
1409
+ bodyMapper: Mappers.ErrorDetails
1410
+ }
1411
+ },
1412
+ queryParameters: [Parameters.apiVersion],
1413
+ urlParameters: [
1414
+ Parameters.$host,
1415
+ Parameters.subscriptionId,
1416
+ Parameters.resourceGroupName,
1417
+ Parameters.resourceName
1418
+ ],
1419
+ headerParameters: [Parameters.accept],
1420
+ serializer
1421
+ };
1422
+ const getPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = {
1423
+ path:
1424
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
1425
+ httpMethod: "GET",
1426
+ responses: {
1427
+ 200: {
1428
+ bodyMapper: Mappers.PrivateEndpointConnection
1429
+ },
1430
+ default: {
1431
+ bodyMapper: Mappers.ErrorDetails
1432
+ }
1433
+ },
1434
+ queryParameters: [Parameters.apiVersion],
1435
+ urlParameters: [
1436
+ Parameters.$host,
1437
+ Parameters.subscriptionId,
1438
+ Parameters.resourceGroupName,
1439
+ Parameters.resourceName,
1440
+ Parameters.privateEndpointConnectionName
1441
+ ],
1442
+ headerParameters: [Parameters.accept],
1443
+ serializer
1444
+ };
1445
+ const createOrUpdatePrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = {
1446
+ path:
1447
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
1448
+ httpMethod: "PUT",
1449
+ responses: {
1450
+ 200: {
1451
+ bodyMapper: Mappers.PrivateEndpointConnection
1452
+ },
1453
+ 201: {
1454
+ bodyMapper: Mappers.PrivateEndpointConnection
1455
+ },
1456
+ 202: {
1457
+ bodyMapper: Mappers.PrivateEndpointConnection
1458
+ },
1459
+ 204: {
1460
+ bodyMapper: Mappers.PrivateEndpointConnection
1461
+ },
1462
+ default: {
1463
+ bodyMapper: Mappers.ErrorDetails
1464
+ }
1465
+ },
1466
+ requestBody: Parameters.privateEndpointConnection,
1467
+ queryParameters: [Parameters.apiVersion],
1468
+ urlParameters: [
1469
+ Parameters.$host,
1470
+ Parameters.subscriptionId,
1471
+ Parameters.resourceGroupName,
1472
+ Parameters.resourceName,
1473
+ Parameters.privateEndpointConnectionName
1474
+ ],
1475
+ headerParameters: [Parameters.accept, Parameters.contentType],
1476
+ mediaType: "json",
1477
+ serializer
1478
+ };
1479
+ const deletePrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = {
1480
+ path:
1481
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
1482
+ httpMethod: "DELETE",
1483
+ responses: {
1484
+ 200: {
1485
+ bodyMapper: Mappers.PrivateEndpointConnection
1486
+ },
1487
+ 201: {
1488
+ bodyMapper: Mappers.PrivateEndpointConnection
1489
+ },
1490
+ 202: {
1491
+ bodyMapper: Mappers.PrivateEndpointConnection
1492
+ },
1493
+ 204: {
1494
+ bodyMapper: Mappers.PrivateEndpointConnection
1495
+ },
1496
+ default: {
1497
+ bodyMapper: Mappers.ErrorDetails
1498
+ }
1499
+ },
1500
+ queryParameters: [Parameters.apiVersion],
1501
+ urlParameters: [
1502
+ Parameters.$host,
1503
+ Parameters.subscriptionId,
1504
+ Parameters.resourceGroupName,
1505
+ Parameters.resourceName,
1506
+ Parameters.privateEndpointConnectionName
1507
+ ],
1508
+ headerParameters: [Parameters.accept],
1509
+ serializer
1510
+ };
1511
+ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
1512
+ path: "{nextLink}",
1513
+ httpMethod: "GET",
1514
+ responses: {
1515
+ 200: {
1516
+ bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
1517
+ },
1518
+ default: {
1519
+ bodyMapper: Mappers.ErrorDetails
1520
+ }
1521
+ },
1522
+ queryParameters: [Parameters.apiVersion],
1523
+ urlParameters: [
1524
+ Parameters.$host,
1525
+ Parameters.nextLink,
1526
+ Parameters.subscriptionId
1527
+ ],
1528
+ headerParameters: [Parameters.accept],
1529
+ serializer
1530
+ };
1531
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
1532
+ path: "{nextLink}",
1533
+ httpMethod: "GET",
1534
+ responses: {
1535
+ 200: {
1536
+ bodyMapper: Mappers.ProvisioningServiceDescriptionListResult
1537
+ },
1538
+ default: {
1539
+ bodyMapper: Mappers.ErrorDetails
1540
+ }
1541
+ },
1542
+ queryParameters: [Parameters.apiVersion],
1543
+ urlParameters: [
1544
+ Parameters.$host,
1545
+ Parameters.nextLink,
1546
+ Parameters.subscriptionId,
1547
+ Parameters.resourceGroupName
1548
+ ],
1549
+ headerParameters: [Parameters.accept],
1550
+ serializer
1551
+ };
1552
+ const listValidSkusNextOperationSpec: coreClient.OperationSpec = {
1553
+ path: "{nextLink}",
1554
+ httpMethod: "GET",
1555
+ responses: {
1556
+ 200: {
1557
+ bodyMapper: Mappers.IotDpsSkuDefinitionListResult
1558
+ },
1559
+ default: {
1560
+ bodyMapper: Mappers.ErrorDetails
1561
+ }
1562
+ },
1563
+ queryParameters: [Parameters.apiVersion],
1564
+ urlParameters: [
1565
+ Parameters.$host,
1566
+ Parameters.nextLink,
1567
+ Parameters.subscriptionId,
1568
+ Parameters.resourceGroupName,
1569
+ Parameters.provisioningServiceName
1570
+ ],
1571
+ headerParameters: [Parameters.accept],
1572
+ serializer
1573
+ };
1574
+ const listKeysNextOperationSpec: coreClient.OperationSpec = {
1575
+ path: "{nextLink}",
1576
+ httpMethod: "GET",
1577
+ responses: {
1578
+ 200: {
1579
+ bodyMapper: Mappers.SharedAccessSignatureAuthorizationRuleListResult
1580
+ },
1581
+ default: {
1582
+ bodyMapper: Mappers.ErrorDetails
1583
+ }
1584
+ },
1585
+ queryParameters: [Parameters.apiVersion],
1586
+ urlParameters: [
1587
+ Parameters.$host,
1588
+ Parameters.nextLink,
1589
+ Parameters.subscriptionId,
1590
+ Parameters.resourceGroupName,
1591
+ Parameters.provisioningServiceName
1592
+ ],
1593
+ headerParameters: [Parameters.accept],
1594
+ serializer
1595
+ };