@azure/arm-healthcareapis 3.0.1-alpha.20240424.1 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. package/CHANGELOG.md +14 -10
  2. package/LICENSE +1 -1
  3. package/dist/index.js +1345 -1235
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/dicomServicesCreateOrUpdateSample.js +10 -3
  8. package/dist-esm/samples-dev/dicomServicesCreateOrUpdateSample.js.map +1 -1
  9. package/dist-esm/samples-dev/dicomServicesDeleteSample.js +1 -1
  10. package/dist-esm/samples-dev/dicomServicesGetSample.js +1 -1
  11. package/dist-esm/samples-dev/dicomServicesListByWorkspaceSample.js +1 -1
  12. package/dist-esm/samples-dev/dicomServicesUpdateSample.js +3 -3
  13. package/dist-esm/samples-dev/dicomServicesUpdateSample.js.map +1 -1
  14. package/dist-esm/samples-dev/fhirDestinationsListByIotConnectorSample.js +1 -1
  15. package/dist-esm/samples-dev/fhirServicesCreateOrUpdateSample.js +23 -11
  16. package/dist-esm/samples-dev/fhirServicesCreateOrUpdateSample.js.map +1 -1
  17. package/dist-esm/samples-dev/fhirServicesDeleteSample.js +1 -1
  18. package/dist-esm/samples-dev/fhirServicesGetSample.js +1 -1
  19. package/dist-esm/samples-dev/fhirServicesListByWorkspaceSample.js +1 -1
  20. package/dist-esm/samples-dev/fhirServicesUpdateSample.js +3 -3
  21. package/dist-esm/samples-dev/fhirServicesUpdateSample.js.map +1 -1
  22. package/dist-esm/samples-dev/iotConnectorFhirDestinationCreateOrUpdateSample.js +11 -11
  23. package/dist-esm/samples-dev/iotConnectorFhirDestinationCreateOrUpdateSample.js.map +1 -1
  24. package/dist-esm/samples-dev/iotConnectorFhirDestinationDeleteSample.js +1 -1
  25. package/dist-esm/samples-dev/iotConnectorFhirDestinationGetSample.js +1 -1
  26. package/dist-esm/samples-dev/iotConnectorsCreateOrUpdateSample.js +12 -12
  27. package/dist-esm/samples-dev/iotConnectorsCreateOrUpdateSample.js.map +1 -1
  28. package/dist-esm/samples-dev/iotConnectorsDeleteSample.js +1 -1
  29. package/dist-esm/samples-dev/iotConnectorsGetSample.js +1 -1
  30. package/dist-esm/samples-dev/iotConnectorsListByWorkspaceSample.js +1 -1
  31. package/dist-esm/samples-dev/iotConnectorsUpdateSample.js +4 -4
  32. package/dist-esm/samples-dev/iotConnectorsUpdateSample.js.map +1 -1
  33. package/dist-esm/samples-dev/operationResultsGetSample.js +1 -1
  34. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  35. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +4 -4
  36. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
  37. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  38. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  39. package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js +1 -1
  40. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +1 -1
  41. package/dist-esm/samples-dev/privateLinkResourcesListByServiceSample.js +1 -1
  42. package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js +3 -3
  43. package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js.map +1 -1
  44. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +18 -18
  45. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js.map +1 -1
  46. package/dist-esm/samples-dev/servicesDeleteSample.js +1 -1
  47. package/dist-esm/samples-dev/servicesGetSample.js +2 -2
  48. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js +1 -1
  49. package/dist-esm/samples-dev/servicesListSample.js +1 -1
  50. package/dist-esm/samples-dev/servicesUpdateSample.js +3 -3
  51. package/dist-esm/samples-dev/servicesUpdateSample.js.map +1 -1
  52. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsCreateOrUpdateSample.js +4 -4
  53. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
  54. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsDeleteSample.js +1 -1
  55. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsDeleteSample.js.map +1 -1
  56. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsGetSample.js +1 -1
  57. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsListByWorkspaceSample.js +1 -1
  58. package/dist-esm/samples-dev/workspacePrivateLinkResourcesGetSample.js +1 -1
  59. package/dist-esm/samples-dev/workspacePrivateLinkResourcesListByWorkspaceSample.js +1 -1
  60. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +2 -2
  61. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +1 -1
  62. package/dist-esm/samples-dev/workspacesDeleteSample.js +1 -1
  63. package/dist-esm/samples-dev/workspacesGetSample.js +1 -1
  64. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +1 -1
  65. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +1 -1
  66. package/dist-esm/samples-dev/workspacesUpdateSample.js +3 -3
  67. package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -1
  68. package/dist-esm/src/healthcareApisManagementClient.js +11 -10
  69. package/dist-esm/src/healthcareApisManagementClient.js.map +1 -1
  70. package/dist-esm/src/lroImpl.js +1 -1
  71. package/dist-esm/src/models/index.d.ts +42 -0
  72. package/dist-esm/src/models/index.d.ts.map +1 -1
  73. package/dist-esm/src/models/index.js +6 -0
  74. package/dist-esm/src/models/index.js.map +1 -1
  75. package/dist-esm/src/models/mappers.d.ts +3 -0
  76. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  77. package/dist-esm/src/models/mappers.js +833 -733
  78. package/dist-esm/src/models/mappers.js.map +1 -1
  79. package/dist-esm/src/models/parameters.js +75 -75
  80. package/dist-esm/src/models/parameters.js.map +1 -1
  81. package/dist-esm/src/operations/dicomServices.d.ts.map +1 -1
  82. package/dist-esm/src/operations/dicomServices.js +51 -51
  83. package/dist-esm/src/operations/dicomServices.js.map +1 -1
  84. package/dist-esm/src/operations/fhirDestinations.js +11 -11
  85. package/dist-esm/src/operations/fhirDestinations.js.map +1 -1
  86. package/dist-esm/src/operations/fhirServices.d.ts.map +1 -1
  87. package/dist-esm/src/operations/fhirServices.js +51 -51
  88. package/dist-esm/src/operations/fhirServices.js.map +1 -1
  89. package/dist-esm/src/operations/iotConnectorFhirDestination.d.ts.map +1 -1
  90. package/dist-esm/src/operations/iotConnectorFhirDestination.js +29 -29
  91. package/dist-esm/src/operations/iotConnectorFhirDestination.js.map +1 -1
  92. package/dist-esm/src/operations/iotConnectors.d.ts.map +1 -1
  93. package/dist-esm/src/operations/iotConnectors.js +51 -51
  94. package/dist-esm/src/operations/iotConnectors.js.map +1 -1
  95. package/dist-esm/src/operations/operationResults.js +5 -5
  96. package/dist-esm/src/operations/operationResults.js.map +1 -1
  97. package/dist-esm/src/operations/operations.js +9 -9
  98. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  99. package/dist-esm/src/operations/privateEndpointConnections.js +35 -35
  100. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  101. package/dist-esm/src/operations/privateLinkResources.js +10 -10
  102. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  103. package/dist-esm/src/operations/services.d.ts.map +1 -1
  104. package/dist-esm/src/operations/services.js +64 -64
  105. package/dist-esm/src/operations/services.js.map +1 -1
  106. package/dist-esm/src/operations/workspacePrivateEndpointConnections.d.ts.map +1 -1
  107. package/dist-esm/src/operations/workspacePrivateEndpointConnections.js +35 -35
  108. package/dist-esm/src/operations/workspacePrivateEndpointConnections.js.map +1 -1
  109. package/dist-esm/src/operations/workspacePrivateLinkResources.d.ts.map +1 -1
  110. package/dist-esm/src/operations/workspacePrivateLinkResources.js +11 -11
  111. package/dist-esm/src/operations/workspacePrivateLinkResources.js.map +1 -1
  112. package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
  113. package/dist-esm/src/operations/workspaces.js +60 -60
  114. package/dist-esm/src/operations/workspaces.js.map +1 -1
  115. package/dist-esm/test/healthcareapis_operations_test.spec.js +1 -1
  116. package/dist-esm/test/healthcareapis_operations_test.spec.js.map +1 -1
  117. package/package.json +5 -6
  118. package/review/arm-healthcareapis.api.md +30 -0
  119. package/src/healthcareApisManagementClient.ts +22 -22
  120. package/src/lroImpl.ts +3 -3
  121. package/src/models/index.ts +88 -27
  122. package/src/models/mappers.ts +973 -860
  123. package/src/models/parameters.ts +76 -76
  124. package/src/operations/dicomServices.ts +101 -109
  125. package/src/operations/fhirDestinations.ts +25 -26
  126. package/src/operations/fhirServices.ts +101 -109
  127. package/src/operations/iotConnectorFhirDestination.ts +57 -61
  128. package/src/operations/iotConnectors.ts +101 -109
  129. package/src/operations/operationResults.ts +9 -10
  130. package/src/operations/operations.ts +16 -16
  131. package/src/operations/privateEndpointConnections.ts +73 -78
  132. package/src/operations/privateLinkResources.ts +17 -19
  133. package/src/operations/services.ts +122 -132
  134. package/src/operations/workspacePrivateEndpointConnections.ts +73 -78
  135. package/src/operations/workspacePrivateLinkResources.ts +27 -28
  136. package/src/operations/workspaces.ts +116 -125
  137. package/src/operationsInterfaces/dicomServices.ts +9 -9
  138. package/src/operationsInterfaces/fhirDestinations.ts +2 -2
  139. package/src/operationsInterfaces/fhirServices.ts +9 -9
  140. package/src/operationsInterfaces/iotConnectorFhirDestination.ts +6 -6
  141. package/src/operationsInterfaces/iotConnectors.ts +9 -9
  142. package/src/operationsInterfaces/operationResults.ts +2 -2
  143. package/src/operationsInterfaces/operations.ts +1 -1
  144. package/src/operationsInterfaces/privateEndpointConnections.ts +7 -7
  145. package/src/operationsInterfaces/privateLinkResources.ts +3 -3
  146. package/src/operationsInterfaces/services.ts +11 -11
  147. package/src/operationsInterfaces/workspacePrivateEndpointConnections.ts +7 -7
  148. package/src/operationsInterfaces/workspacePrivateLinkResources.ts +3 -3
  149. package/src/operationsInterfaces/workspaces.ts +10 -10
  150. package/src/pagingHelper.ts +1 -1
  151. package/types/arm-healthcareapis.d.ts +47 -0
@@ -16,7 +16,7 @@ import { HealthcareApisManagementClient } from "../healthcareApisManagementClien
16
16
  import {
17
17
  SimplePollerLike,
18
18
  OperationState,
19
- createHttpPoller
19
+ createHttpPoller,
20
20
  } from "@azure/core-lro";
21
21
  import { createLroSpec } from "../lroImpl";
22
22
  import {
@@ -39,7 +39,7 @@ import {
39
39
  ServicesCheckNameAvailabilityOptionalParams,
40
40
  ServicesCheckNameAvailabilityResponse,
41
41
  ServicesListNextResponse,
42
- ServicesListByResourceGroupNextResponse
42
+ ServicesListByResourceGroupNextResponse,
43
43
  } from "../models";
44
44
 
45
45
  /// <reference lib="esnext.asynciterable" />
@@ -60,7 +60,7 @@ export class ServicesImpl implements Services {
60
60
  * @param options The options parameters.
61
61
  */
62
62
  public list(
63
- options?: ServicesListOptionalParams
63
+ options?: ServicesListOptionalParams,
64
64
  ): PagedAsyncIterableIterator<ServicesDescription> {
65
65
  const iter = this.listPagingAll(options);
66
66
  return {
@@ -75,13 +75,13 @@ export class ServicesImpl implements Services {
75
75
  throw new Error("maxPageSize is not supported by this operation.");
76
76
  }
77
77
  return this.listPagingPage(options, settings);
78
- }
78
+ },
79
79
  };
80
80
  }
81
81
 
82
82
  private async *listPagingPage(
83
83
  options?: ServicesListOptionalParams,
84
- settings?: PageSettings
84
+ settings?: PageSettings,
85
85
  ): AsyncIterableIterator<ServicesDescription[]> {
86
86
  let result: ServicesListResponse;
87
87
  let continuationToken = settings?.continuationToken;
@@ -102,7 +102,7 @@ export class ServicesImpl implements Services {
102
102
  }
103
103
 
104
104
  private async *listPagingAll(
105
- options?: ServicesListOptionalParams
105
+ options?: ServicesListOptionalParams,
106
106
  ): AsyncIterableIterator<ServicesDescription> {
107
107
  for await (const page of this.listPagingPage(options)) {
108
108
  yield* page;
@@ -116,7 +116,7 @@ export class ServicesImpl implements Services {
116
116
  */
117
117
  public listByResourceGroup(
118
118
  resourceGroupName: string,
119
- options?: ServicesListByResourceGroupOptionalParams
119
+ options?: ServicesListByResourceGroupOptionalParams,
120
120
  ): PagedAsyncIterableIterator<ServicesDescription> {
121
121
  const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
122
122
  return {
@@ -133,16 +133,16 @@ export class ServicesImpl implements Services {
133
133
  return this.listByResourceGroupPagingPage(
134
134
  resourceGroupName,
135
135
  options,
136
- settings
136
+ settings,
137
137
  );
138
- }
138
+ },
139
139
  };
140
140
  }
141
141
 
142
142
  private async *listByResourceGroupPagingPage(
143
143
  resourceGroupName: string,
144
144
  options?: ServicesListByResourceGroupOptionalParams,
145
- settings?: PageSettings
145
+ settings?: PageSettings,
146
146
  ): AsyncIterableIterator<ServicesDescription[]> {
147
147
  let result: ServicesListByResourceGroupResponse;
148
148
  let continuationToken = settings?.continuationToken;
@@ -157,7 +157,7 @@ export class ServicesImpl implements Services {
157
157
  result = await this._listByResourceGroupNext(
158
158
  resourceGroupName,
159
159
  continuationToken,
160
- options
160
+ options,
161
161
  );
162
162
  continuationToken = result.nextLink;
163
163
  let page = result.value || [];
@@ -168,11 +168,11 @@ export class ServicesImpl implements Services {
168
168
 
169
169
  private async *listByResourceGroupPagingAll(
170
170
  resourceGroupName: string,
171
- options?: ServicesListByResourceGroupOptionalParams
171
+ options?: ServicesListByResourceGroupOptionalParams,
172
172
  ): AsyncIterableIterator<ServicesDescription> {
173
173
  for await (const page of this.listByResourceGroupPagingPage(
174
174
  resourceGroupName,
175
- options
175
+ options,
176
176
  )) {
177
177
  yield* page;
178
178
  }
@@ -187,11 +187,11 @@ export class ServicesImpl implements Services {
187
187
  get(
188
188
  resourceGroupName: string,
189
189
  resourceName: string,
190
- options?: ServicesGetOptionalParams
190
+ options?: ServicesGetOptionalParams,
191
191
  ): Promise<ServicesGetResponse> {
192
192
  return this.client.sendOperationRequest(
193
193
  { resourceGroupName, resourceName, options },
194
- getOperationSpec
194
+ getOperationSpec,
195
195
  );
196
196
  }
197
197
 
@@ -206,7 +206,7 @@ export class ServicesImpl implements Services {
206
206
  resourceGroupName: string,
207
207
  resourceName: string,
208
208
  serviceDescription: ServicesDescription,
209
- options?: ServicesCreateOrUpdateOptionalParams
209
+ options?: ServicesCreateOrUpdateOptionalParams,
210
210
  ): Promise<
211
211
  SimplePollerLike<
212
212
  OperationState<ServicesCreateOrUpdateResponse>,
@@ -215,21 +215,20 @@ export class ServicesImpl implements Services {
215
215
  > {
216
216
  const directSendOperation = async (
217
217
  args: coreClient.OperationArguments,
218
- spec: coreClient.OperationSpec
218
+ spec: coreClient.OperationSpec,
219
219
  ): Promise<ServicesCreateOrUpdateResponse> => {
220
220
  return this.client.sendOperationRequest(args, spec);
221
221
  };
222
222
  const sendOperationFn = async (
223
223
  args: coreClient.OperationArguments,
224
- spec: coreClient.OperationSpec
224
+ spec: coreClient.OperationSpec,
225
225
  ) => {
226
- let currentRawResponse:
227
- | coreClient.FullOperationResponse
228
- | undefined = undefined;
226
+ let currentRawResponse: coreClient.FullOperationResponse | undefined =
227
+ undefined;
229
228
  const providedCallback = args.options?.onResponse;
230
229
  const callback: coreClient.RawResponseCallback = (
231
230
  rawResponse: coreClient.FullOperationResponse,
232
- flatResponse: unknown
231
+ flatResponse: unknown,
233
232
  ) => {
234
233
  currentRawResponse = rawResponse;
235
234
  providedCallback?.(rawResponse, flatResponse);
@@ -238,8 +237,8 @@ export class ServicesImpl implements Services {
238
237
  ...args,
239
238
  options: {
240
239
  ...args.options,
241
- onResponse: callback
242
- }
240
+ onResponse: callback,
241
+ },
243
242
  };
244
243
  const flatResponse = await directSendOperation(updatedArgs, spec);
245
244
  return {
@@ -247,22 +246,22 @@ export class ServicesImpl implements Services {
247
246
  rawResponse: {
248
247
  statusCode: currentRawResponse!.status,
249
248
  body: currentRawResponse!.parsedBody,
250
- headers: currentRawResponse!.headers.toJSON()
251
- }
249
+ headers: currentRawResponse!.headers.toJSON(),
250
+ },
252
251
  };
253
252
  };
254
253
 
255
254
  const lro = createLroSpec({
256
255
  sendOperationFn,
257
256
  args: { resourceGroupName, resourceName, serviceDescription, options },
258
- spec: createOrUpdateOperationSpec
257
+ spec: createOrUpdateOperationSpec,
259
258
  });
260
259
  const poller = await createHttpPoller<
261
260
  ServicesCreateOrUpdateResponse,
262
261
  OperationState<ServicesCreateOrUpdateResponse>
263
262
  >(lro, {
264
263
  restoreFrom: options?.resumeFrom,
265
- intervalInMs: options?.updateIntervalInMs
264
+ intervalInMs: options?.updateIntervalInMs,
266
265
  });
267
266
  await poller.poll();
268
267
  return poller;
@@ -279,13 +278,13 @@ export class ServicesImpl implements Services {
279
278
  resourceGroupName: string,
280
279
  resourceName: string,
281
280
  serviceDescription: ServicesDescription,
282
- options?: ServicesCreateOrUpdateOptionalParams
281
+ options?: ServicesCreateOrUpdateOptionalParams,
283
282
  ): Promise<ServicesCreateOrUpdateResponse> {
284
283
  const poller = await this.beginCreateOrUpdate(
285
284
  resourceGroupName,
286
285
  resourceName,
287
286
  serviceDescription,
288
- options
287
+ options,
289
288
  );
290
289
  return poller.pollUntilDone();
291
290
  }
@@ -301,7 +300,7 @@ export class ServicesImpl implements Services {
301
300
  resourceGroupName: string,
302
301
  resourceName: string,
303
302
  servicePatchDescription: ServicesPatchDescription,
304
- options?: ServicesUpdateOptionalParams
303
+ options?: ServicesUpdateOptionalParams,
305
304
  ): Promise<
306
305
  SimplePollerLike<
307
306
  OperationState<ServicesUpdateResponse>,
@@ -310,21 +309,20 @@ export class ServicesImpl implements Services {
310
309
  > {
311
310
  const directSendOperation = async (
312
311
  args: coreClient.OperationArguments,
313
- spec: coreClient.OperationSpec
312
+ spec: coreClient.OperationSpec,
314
313
  ): Promise<ServicesUpdateResponse> => {
315
314
  return this.client.sendOperationRequest(args, spec);
316
315
  };
317
316
  const sendOperationFn = async (
318
317
  args: coreClient.OperationArguments,
319
- spec: coreClient.OperationSpec
318
+ spec: coreClient.OperationSpec,
320
319
  ) => {
321
- let currentRawResponse:
322
- | coreClient.FullOperationResponse
323
- | undefined = undefined;
320
+ let currentRawResponse: coreClient.FullOperationResponse | undefined =
321
+ undefined;
324
322
  const providedCallback = args.options?.onResponse;
325
323
  const callback: coreClient.RawResponseCallback = (
326
324
  rawResponse: coreClient.FullOperationResponse,
327
- flatResponse: unknown
325
+ flatResponse: unknown,
328
326
  ) => {
329
327
  currentRawResponse = rawResponse;
330
328
  providedCallback?.(rawResponse, flatResponse);
@@ -333,8 +331,8 @@ export class ServicesImpl implements Services {
333
331
  ...args,
334
332
  options: {
335
333
  ...args.options,
336
- onResponse: callback
337
- }
334
+ onResponse: callback,
335
+ },
338
336
  };
339
337
  const flatResponse = await directSendOperation(updatedArgs, spec);
340
338
  return {
@@ -342,8 +340,8 @@ export class ServicesImpl implements Services {
342
340
  rawResponse: {
343
341
  statusCode: currentRawResponse!.status,
344
342
  body: currentRawResponse!.parsedBody,
345
- headers: currentRawResponse!.headers.toJSON()
346
- }
343
+ headers: currentRawResponse!.headers.toJSON(),
344
+ },
347
345
  };
348
346
  };
349
347
 
@@ -353,16 +351,16 @@ export class ServicesImpl implements Services {
353
351
  resourceGroupName,
354
352
  resourceName,
355
353
  servicePatchDescription,
356
- options
354
+ options,
357
355
  },
358
- spec: updateOperationSpec
356
+ spec: updateOperationSpec,
359
357
  });
360
358
  const poller = await createHttpPoller<
361
359
  ServicesUpdateResponse,
362
360
  OperationState<ServicesUpdateResponse>
363
361
  >(lro, {
364
362
  restoreFrom: options?.resumeFrom,
365
- intervalInMs: options?.updateIntervalInMs
363
+ intervalInMs: options?.updateIntervalInMs,
366
364
  });
367
365
  await poller.poll();
368
366
  return poller;
@@ -379,13 +377,13 @@ export class ServicesImpl implements Services {
379
377
  resourceGroupName: string,
380
378
  resourceName: string,
381
379
  servicePatchDescription: ServicesPatchDescription,
382
- options?: ServicesUpdateOptionalParams
380
+ options?: ServicesUpdateOptionalParams,
383
381
  ): Promise<ServicesUpdateResponse> {
384
382
  const poller = await this.beginUpdate(
385
383
  resourceGroupName,
386
384
  resourceName,
387
385
  servicePatchDescription,
388
- options
386
+ options,
389
387
  );
390
388
  return poller.pollUntilDone();
391
389
  }
@@ -399,25 +397,24 @@ export class ServicesImpl implements Services {
399
397
  async beginDelete(
400
398
  resourceGroupName: string,
401
399
  resourceName: string,
402
- options?: ServicesDeleteOptionalParams
400
+ options?: ServicesDeleteOptionalParams,
403
401
  ): Promise<SimplePollerLike<OperationState<void>, void>> {
404
402
  const directSendOperation = async (
405
403
  args: coreClient.OperationArguments,
406
- spec: coreClient.OperationSpec
404
+ spec: coreClient.OperationSpec,
407
405
  ): Promise<void> => {
408
406
  return this.client.sendOperationRequest(args, spec);
409
407
  };
410
408
  const sendOperationFn = async (
411
409
  args: coreClient.OperationArguments,
412
- spec: coreClient.OperationSpec
410
+ spec: coreClient.OperationSpec,
413
411
  ) => {
414
- let currentRawResponse:
415
- | coreClient.FullOperationResponse
416
- | undefined = undefined;
412
+ let currentRawResponse: coreClient.FullOperationResponse | undefined =
413
+ undefined;
417
414
  const providedCallback = args.options?.onResponse;
418
415
  const callback: coreClient.RawResponseCallback = (
419
416
  rawResponse: coreClient.FullOperationResponse,
420
- flatResponse: unknown
417
+ flatResponse: unknown,
421
418
  ) => {
422
419
  currentRawResponse = rawResponse;
423
420
  providedCallback?.(rawResponse, flatResponse);
@@ -426,8 +423,8 @@ export class ServicesImpl implements Services {
426
423
  ...args,
427
424
  options: {
428
425
  ...args.options,
429
- onResponse: callback
430
- }
426
+ onResponse: callback,
427
+ },
431
428
  };
432
429
  const flatResponse = await directSendOperation(updatedArgs, spec);
433
430
  return {
@@ -435,19 +432,19 @@ export class ServicesImpl implements Services {
435
432
  rawResponse: {
436
433
  statusCode: currentRawResponse!.status,
437
434
  body: currentRawResponse!.parsedBody,
438
- headers: currentRawResponse!.headers.toJSON()
439
- }
435
+ headers: currentRawResponse!.headers.toJSON(),
436
+ },
440
437
  };
441
438
  };
442
439
 
443
440
  const lro = createLroSpec({
444
441
  sendOperationFn,
445
442
  args: { resourceGroupName, resourceName, options },
446
- spec: deleteOperationSpec
443
+ spec: deleteOperationSpec,
447
444
  });
448
445
  const poller = await createHttpPoller<void, OperationState<void>>(lro, {
449
446
  restoreFrom: options?.resumeFrom,
450
- intervalInMs: options?.updateIntervalInMs
447
+ intervalInMs: options?.updateIntervalInMs,
451
448
  });
452
449
  await poller.poll();
453
450
  return poller;
@@ -462,12 +459,12 @@ export class ServicesImpl implements Services {
462
459
  async beginDeleteAndWait(
463
460
  resourceGroupName: string,
464
461
  resourceName: string,
465
- options?: ServicesDeleteOptionalParams
462
+ options?: ServicesDeleteOptionalParams,
466
463
  ): Promise<void> {
467
464
  const poller = await this.beginDelete(
468
465
  resourceGroupName,
469
466
  resourceName,
470
- options
467
+ options,
471
468
  );
472
469
  return poller.pollUntilDone();
473
470
  }
@@ -477,7 +474,7 @@ export class ServicesImpl implements Services {
477
474
  * @param options The options parameters.
478
475
  */
479
476
  private _list(
480
- options?: ServicesListOptionalParams
477
+ options?: ServicesListOptionalParams,
481
478
  ): Promise<ServicesListResponse> {
482
479
  return this.client.sendOperationRequest({ options }, listOperationSpec);
483
480
  }
@@ -489,11 +486,11 @@ export class ServicesImpl implements Services {
489
486
  */
490
487
  private _listByResourceGroup(
491
488
  resourceGroupName: string,
492
- options?: ServicesListByResourceGroupOptionalParams
489
+ options?: ServicesListByResourceGroupOptionalParams,
493
490
  ): Promise<ServicesListByResourceGroupResponse> {
494
491
  return this.client.sendOperationRequest(
495
492
  { resourceGroupName, options },
496
- listByResourceGroupOperationSpec
493
+ listByResourceGroupOperationSpec,
497
494
  );
498
495
  }
499
496
 
@@ -505,11 +502,11 @@ export class ServicesImpl implements Services {
505
502
  */
506
503
  checkNameAvailability(
507
504
  checkNameAvailabilityInputs: CheckNameAvailabilityParameters,
508
- options?: ServicesCheckNameAvailabilityOptionalParams
505
+ options?: ServicesCheckNameAvailabilityOptionalParams,
509
506
  ): Promise<ServicesCheckNameAvailabilityResponse> {
510
507
  return this.client.sendOperationRequest(
511
508
  { checkNameAvailabilityInputs, options },
512
- checkNameAvailabilityOperationSpec
509
+ checkNameAvailabilityOperationSpec,
513
510
  );
514
511
  }
515
512
 
@@ -520,11 +517,11 @@ export class ServicesImpl implements Services {
520
517
  */
521
518
  private _listNext(
522
519
  nextLink: string,
523
- options?: ServicesListNextOptionalParams
520
+ options?: ServicesListNextOptionalParams,
524
521
  ): Promise<ServicesListNextResponse> {
525
522
  return this.client.sendOperationRequest(
526
523
  { nextLink, options },
527
- listNextOperationSpec
524
+ listNextOperationSpec,
528
525
  );
529
526
  }
530
527
 
@@ -537,11 +534,11 @@ export class ServicesImpl implements Services {
537
534
  private _listByResourceGroupNext(
538
535
  resourceGroupName: string,
539
536
  nextLink: string,
540
- options?: ServicesListByResourceGroupNextOptionalParams
537
+ options?: ServicesListByResourceGroupNextOptionalParams,
541
538
  ): Promise<ServicesListByResourceGroupNextResponse> {
542
539
  return this.client.sendOperationRequest(
543
540
  { resourceGroupName, nextLink, options },
544
- listByResourceGroupNextOperationSpec
541
+ listByResourceGroupNextOperationSpec,
545
542
  );
546
543
  }
547
544
  }
@@ -549,47 +546,45 @@ export class ServicesImpl implements Services {
549
546
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
550
547
 
551
548
  const getOperationSpec: coreClient.OperationSpec = {
552
- path:
553
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",
549
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",
554
550
  httpMethod: "GET",
555
551
  responses: {
556
552
  200: {
557
- bodyMapper: Mappers.ServicesDescription
553
+ bodyMapper: Mappers.ServicesDescription,
558
554
  },
559
555
  default: {
560
- bodyMapper: Mappers.ErrorDetails
561
- }
556
+ bodyMapper: Mappers.ErrorDetails,
557
+ },
562
558
  },
563
559
  queryParameters: [Parameters.apiVersion],
564
560
  urlParameters: [
565
561
  Parameters.$host,
566
562
  Parameters.subscriptionId,
567
563
  Parameters.resourceGroupName,
568
- Parameters.resourceName
564
+ Parameters.resourceName,
569
565
  ],
570
566
  headerParameters: [Parameters.accept],
571
- serializer
567
+ serializer,
572
568
  };
573
569
  const createOrUpdateOperationSpec: coreClient.OperationSpec = {
574
- path:
575
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",
570
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",
576
571
  httpMethod: "PUT",
577
572
  responses: {
578
573
  200: {
579
- bodyMapper: Mappers.ServicesDescription
574
+ bodyMapper: Mappers.ServicesDescription,
580
575
  },
581
576
  201: {
582
- bodyMapper: Mappers.ServicesDescription
577
+ bodyMapper: Mappers.ServicesDescription,
583
578
  },
584
579
  202: {
585
- bodyMapper: Mappers.ServicesDescription
580
+ bodyMapper: Mappers.ServicesDescription,
586
581
  },
587
582
  204: {
588
- bodyMapper: Mappers.ServicesDescription
583
+ bodyMapper: Mappers.ServicesDescription,
589
584
  },
590
585
  default: {
591
- bodyMapper: Mappers.ErrorDetails
592
- }
586
+ bodyMapper: Mappers.ErrorDetails,
587
+ },
593
588
  },
594
589
  requestBody: Parameters.serviceDescription,
595
590
  queryParameters: [Parameters.apiVersion],
@@ -597,32 +592,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
597
592
  Parameters.$host,
598
593
  Parameters.subscriptionId,
599
594
  Parameters.resourceGroupName,
600
- Parameters.resourceName
595
+ Parameters.resourceName,
601
596
  ],
602
597
  headerParameters: [Parameters.accept, Parameters.contentType],
603
598
  mediaType: "json",
604
- serializer
599
+ serializer,
605
600
  };
606
601
  const updateOperationSpec: coreClient.OperationSpec = {
607
- path:
608
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",
602
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",
609
603
  httpMethod: "PATCH",
610
604
  responses: {
611
605
  200: {
612
- bodyMapper: Mappers.ServicesDescription
606
+ bodyMapper: Mappers.ServicesDescription,
613
607
  },
614
608
  201: {
615
- bodyMapper: Mappers.ServicesDescription
609
+ bodyMapper: Mappers.ServicesDescription,
616
610
  },
617
611
  202: {
618
- bodyMapper: Mappers.ServicesDescription
612
+ bodyMapper: Mappers.ServicesDescription,
619
613
  },
620
614
  204: {
621
- bodyMapper: Mappers.ServicesDescription
615
+ bodyMapper: Mappers.ServicesDescription,
622
616
  },
623
617
  default: {
624
- bodyMapper: Mappers.ErrorDetails
625
- }
618
+ bodyMapper: Mappers.ErrorDetails,
619
+ },
626
620
  },
627
621
  requestBody: Parameters.servicePatchDescription,
628
622
  queryParameters: [Parameters.apiVersion],
@@ -630,15 +624,14 @@ const updateOperationSpec: coreClient.OperationSpec = {
630
624
  Parameters.$host,
631
625
  Parameters.subscriptionId,
632
626
  Parameters.resourceGroupName,
633
- Parameters.resourceName
627
+ Parameters.resourceName,
634
628
  ],
635
629
  headerParameters: [Parameters.accept, Parameters.contentType],
636
630
  mediaType: "json",
637
- serializer
631
+ serializer,
638
632
  };
639
633
  const deleteOperationSpec: coreClient.OperationSpec = {
640
- path:
641
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",
634
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",
642
635
  httpMethod: "DELETE",
643
636
  responses: {
644
637
  200: {},
@@ -646,112 +639,109 @@ const deleteOperationSpec: coreClient.OperationSpec = {
646
639
  202: {},
647
640
  204: {},
648
641
  default: {
649
- bodyMapper: Mappers.ErrorDetails
650
- }
642
+ bodyMapper: Mappers.ErrorDetails,
643
+ },
651
644
  },
652
645
  queryParameters: [Parameters.apiVersion],
653
646
  urlParameters: [
654
647
  Parameters.$host,
655
648
  Parameters.subscriptionId,
656
649
  Parameters.resourceGroupName,
657
- Parameters.resourceName
650
+ Parameters.resourceName,
658
651
  ],
659
652
  headerParameters: [Parameters.accept],
660
- serializer
653
+ serializer,
661
654
  };
662
655
  const listOperationSpec: coreClient.OperationSpec = {
663
- path:
664
- "/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/services",
656
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/services",
665
657
  httpMethod: "GET",
666
658
  responses: {
667
659
  200: {
668
- bodyMapper: Mappers.ServicesDescriptionListResult
660
+ bodyMapper: Mappers.ServicesDescriptionListResult,
669
661
  },
670
662
  default: {
671
- bodyMapper: Mappers.ErrorDetails
672
- }
663
+ bodyMapper: Mappers.ErrorDetails,
664
+ },
673
665
  },
674
666
  queryParameters: [Parameters.apiVersion],
675
667
  urlParameters: [Parameters.$host, Parameters.subscriptionId],
676
668
  headerParameters: [Parameters.accept],
677
- serializer
669
+ serializer,
678
670
  };
679
671
  const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
680
- path:
681
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services",
672
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services",
682
673
  httpMethod: "GET",
683
674
  responses: {
684
675
  200: {
685
- bodyMapper: Mappers.ServicesDescriptionListResult
676
+ bodyMapper: Mappers.ServicesDescriptionListResult,
686
677
  },
687
678
  default: {
688
- bodyMapper: Mappers.ErrorDetails
689
- }
679
+ bodyMapper: Mappers.ErrorDetails,
680
+ },
690
681
  },
691
682
  queryParameters: [Parameters.apiVersion],
692
683
  urlParameters: [
693
684
  Parameters.$host,
694
685
  Parameters.subscriptionId,
695
- Parameters.resourceGroupName
686
+ Parameters.resourceGroupName,
696
687
  ],
697
688
  headerParameters: [Parameters.accept],
698
- serializer
689
+ serializer,
699
690
  };
700
691
  const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
701
- path:
702
- "/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/checkNameAvailability",
692
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/checkNameAvailability",
703
693
  httpMethod: "POST",
704
694
  responses: {
705
695
  200: {
706
- bodyMapper: Mappers.ServicesNameAvailabilityInfo
696
+ bodyMapper: Mappers.ServicesNameAvailabilityInfo,
707
697
  },
708
698
  default: {
709
- bodyMapper: Mappers.ErrorDetails
710
- }
699
+ bodyMapper: Mappers.ErrorDetails,
700
+ },
711
701
  },
712
702
  requestBody: Parameters.checkNameAvailabilityInputs,
713
703
  queryParameters: [Parameters.apiVersion],
714
704
  urlParameters: [Parameters.$host, Parameters.subscriptionId],
715
705
  headerParameters: [Parameters.accept, Parameters.contentType],
716
706
  mediaType: "json",
717
- serializer
707
+ serializer,
718
708
  };
719
709
  const listNextOperationSpec: coreClient.OperationSpec = {
720
710
  path: "{nextLink}",
721
711
  httpMethod: "GET",
722
712
  responses: {
723
713
  200: {
724
- bodyMapper: Mappers.ServicesDescriptionListResult
714
+ bodyMapper: Mappers.ServicesDescriptionListResult,
725
715
  },
726
716
  default: {
727
- bodyMapper: Mappers.ErrorDetails
728
- }
717
+ bodyMapper: Mappers.ErrorDetails,
718
+ },
729
719
  },
730
720
  urlParameters: [
731
721
  Parameters.$host,
732
722
  Parameters.subscriptionId,
733
- Parameters.nextLink
723
+ Parameters.nextLink,
734
724
  ],
735
725
  headerParameters: [Parameters.accept],
736
- serializer
726
+ serializer,
737
727
  };
738
728
  const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
739
729
  path: "{nextLink}",
740
730
  httpMethod: "GET",
741
731
  responses: {
742
732
  200: {
743
- bodyMapper: Mappers.ServicesDescriptionListResult
733
+ bodyMapper: Mappers.ServicesDescriptionListResult,
744
734
  },
745
735
  default: {
746
- bodyMapper: Mappers.ErrorDetails
747
- }
736
+ bodyMapper: Mappers.ErrorDetails,
737
+ },
748
738
  },
749
739
  urlParameters: [
750
740
  Parameters.$host,
751
741
  Parameters.subscriptionId,
752
742
  Parameters.resourceGroupName,
753
- Parameters.nextLink
743
+ Parameters.nextLink,
754
744
  ],
755
745
  headerParameters: [Parameters.accept],
756
- serializer
746
+ serializer,
757
747
  };