@azure/arm-healthcareapis 3.1.1-alpha.20250717.1 → 3.1.1-alpha.20250718.2

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 (139) hide show
  1. package/dist/browser/healthcareApisManagementClient.js +26 -5
  2. package/dist/browser/healthcareApisManagementClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +158 -67
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/dicomServices.js +56 -58
  8. package/dist/browser/operations/dicomServices.js.map +1 -1
  9. package/dist/browser/operations/fhirDestinations.js +23 -40
  10. package/dist/browser/operations/fhirDestinations.js.map +1 -1
  11. package/dist/browser/operations/fhirServices.js +56 -58
  12. package/dist/browser/operations/fhirServices.js.map +1 -1
  13. package/dist/browser/operations/iotConnectorFhirDestination.js +23 -12
  14. package/dist/browser/operations/iotConnectorFhirDestination.js.map +1 -1
  15. package/dist/browser/operations/iotConnectors.js +56 -58
  16. package/dist/browser/operations/iotConnectors.js.map +1 -1
  17. package/dist/browser/operations/operationResults.js +1 -0
  18. package/dist/browser/operations/operationResults.js.map +1 -1
  19. package/dist/browser/operations/operations.js +23 -40
  20. package/dist/browser/operations/operations.js.map +1 -1
  21. package/dist/browser/operations/privateEndpointConnections.js +32 -39
  22. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  23. package/dist/browser/operations/privateLinkResources.js +1 -0
  24. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  25. package/dist/browser/operations/services.js +78 -97
  26. package/dist/browser/operations/services.js.map +1 -1
  27. package/dist/browser/operations/workspacePrivateEndpointConnections.js +32 -39
  28. package/dist/browser/operations/workspacePrivateEndpointConnections.js.map +1 -1
  29. package/dist/browser/operations/workspacePrivateLinkResources.js +10 -27
  30. package/dist/browser/operations/workspacePrivateLinkResources.js.map +1 -1
  31. package/dist/browser/operations/workspaces.js +78 -97
  32. package/dist/browser/operations/workspaces.js.map +1 -1
  33. package/dist/browser/pagingHelper.js +2 -4
  34. package/dist/browser/pagingHelper.js.map +1 -1
  35. package/dist/commonjs/healthcareApisManagementClient.js +26 -5
  36. package/dist/commonjs/healthcareApisManagementClient.js.map +1 -1
  37. package/dist/commonjs/lroImpl.js +7 -3
  38. package/dist/commonjs/lroImpl.js.map +1 -1
  39. package/dist/commonjs/models/mappers.js +158 -67
  40. package/dist/commonjs/models/mappers.js.map +1 -1
  41. package/dist/commonjs/operations/dicomServices.js +56 -57
  42. package/dist/commonjs/operations/dicomServices.js.map +1 -1
  43. package/dist/commonjs/operations/fhirDestinations.js +23 -39
  44. package/dist/commonjs/operations/fhirDestinations.js.map +1 -1
  45. package/dist/commonjs/operations/fhirServices.js +56 -57
  46. package/dist/commonjs/operations/fhirServices.js.map +1 -1
  47. package/dist/commonjs/operations/iotConnectorFhirDestination.js +23 -12
  48. package/dist/commonjs/operations/iotConnectorFhirDestination.js.map +1 -1
  49. package/dist/commonjs/operations/iotConnectors.js +56 -57
  50. package/dist/commonjs/operations/iotConnectors.js.map +1 -1
  51. package/dist/commonjs/operations/operationResults.js +1 -0
  52. package/dist/commonjs/operations/operationResults.js.map +1 -1
  53. package/dist/commonjs/operations/operations.js +23 -39
  54. package/dist/commonjs/operations/operations.js.map +1 -1
  55. package/dist/commonjs/operations/privateEndpointConnections.js +32 -38
  56. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  57. package/dist/commonjs/operations/privateLinkResources.js +1 -0
  58. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  59. package/dist/commonjs/operations/services.js +78 -96
  60. package/dist/commonjs/operations/services.js.map +1 -1
  61. package/dist/commonjs/operations/workspacePrivateEndpointConnections.js +32 -38
  62. package/dist/commonjs/operations/workspacePrivateEndpointConnections.js.map +1 -1
  63. package/dist/commonjs/operations/workspacePrivateLinkResources.js +10 -26
  64. package/dist/commonjs/operations/workspacePrivateLinkResources.js.map +1 -1
  65. package/dist/commonjs/operations/workspaces.js +78 -96
  66. package/dist/commonjs/operations/workspaces.js.map +1 -1
  67. package/dist/commonjs/pagingHelper.js +2 -4
  68. package/dist/commonjs/pagingHelper.js.map +1 -1
  69. package/dist/commonjs/tsdoc-metadata.json +11 -11
  70. package/dist/esm/healthcareApisManagementClient.js +26 -5
  71. package/dist/esm/healthcareApisManagementClient.js.map +1 -1
  72. package/dist/esm/lroImpl.js +7 -3
  73. package/dist/esm/lroImpl.js.map +1 -1
  74. package/dist/esm/models/mappers.js +158 -67
  75. package/dist/esm/models/mappers.js.map +1 -1
  76. package/dist/esm/operations/dicomServices.js +56 -58
  77. package/dist/esm/operations/dicomServices.js.map +1 -1
  78. package/dist/esm/operations/fhirDestinations.js +23 -40
  79. package/dist/esm/operations/fhirDestinations.js.map +1 -1
  80. package/dist/esm/operations/fhirServices.js +56 -58
  81. package/dist/esm/operations/fhirServices.js.map +1 -1
  82. package/dist/esm/operations/iotConnectorFhirDestination.js +23 -12
  83. package/dist/esm/operations/iotConnectorFhirDestination.js.map +1 -1
  84. package/dist/esm/operations/iotConnectors.js +56 -58
  85. package/dist/esm/operations/iotConnectors.js.map +1 -1
  86. package/dist/esm/operations/operationResults.js +1 -0
  87. package/dist/esm/operations/operationResults.js.map +1 -1
  88. package/dist/esm/operations/operations.js +23 -40
  89. package/dist/esm/operations/operations.js.map +1 -1
  90. package/dist/esm/operations/privateEndpointConnections.js +32 -39
  91. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  92. package/dist/esm/operations/privateLinkResources.js +1 -0
  93. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  94. package/dist/esm/operations/services.js +78 -97
  95. package/dist/esm/operations/services.js.map +1 -1
  96. package/dist/esm/operations/workspacePrivateEndpointConnections.js +32 -39
  97. package/dist/esm/operations/workspacePrivateEndpointConnections.js.map +1 -1
  98. package/dist/esm/operations/workspacePrivateLinkResources.js +10 -27
  99. package/dist/esm/operations/workspacePrivateLinkResources.js.map +1 -1
  100. package/dist/esm/operations/workspaces.js +78 -97
  101. package/dist/esm/operations/workspaces.js.map +1 -1
  102. package/dist/esm/pagingHelper.js +2 -4
  103. package/dist/esm/pagingHelper.js.map +1 -1
  104. package/dist/react-native/healthcareApisManagementClient.js +26 -5
  105. package/dist/react-native/healthcareApisManagementClient.js.map +1 -1
  106. package/dist/react-native/lroImpl.js +7 -3
  107. package/dist/react-native/lroImpl.js.map +1 -1
  108. package/dist/react-native/models/mappers.js +158 -67
  109. package/dist/react-native/models/mappers.js.map +1 -1
  110. package/dist/react-native/operations/dicomServices.js +56 -58
  111. package/dist/react-native/operations/dicomServices.js.map +1 -1
  112. package/dist/react-native/operations/fhirDestinations.js +23 -40
  113. package/dist/react-native/operations/fhirDestinations.js.map +1 -1
  114. package/dist/react-native/operations/fhirServices.js +56 -58
  115. package/dist/react-native/operations/fhirServices.js.map +1 -1
  116. package/dist/react-native/operations/iotConnectorFhirDestination.js +23 -12
  117. package/dist/react-native/operations/iotConnectorFhirDestination.js.map +1 -1
  118. package/dist/react-native/operations/iotConnectors.js +56 -58
  119. package/dist/react-native/operations/iotConnectors.js.map +1 -1
  120. package/dist/react-native/operations/operationResults.js +1 -0
  121. package/dist/react-native/operations/operationResults.js.map +1 -1
  122. package/dist/react-native/operations/operations.js +23 -40
  123. package/dist/react-native/operations/operations.js.map +1 -1
  124. package/dist/react-native/operations/privateEndpointConnections.js +32 -39
  125. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  126. package/dist/react-native/operations/privateLinkResources.js +1 -0
  127. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  128. package/dist/react-native/operations/services.js +78 -97
  129. package/dist/react-native/operations/services.js.map +1 -1
  130. package/dist/react-native/operations/workspacePrivateEndpointConnections.js +32 -39
  131. package/dist/react-native/operations/workspacePrivateEndpointConnections.js.map +1 -1
  132. package/dist/react-native/operations/workspacePrivateLinkResources.js +10 -27
  133. package/dist/react-native/operations/workspacePrivateLinkResources.js.map +1 -1
  134. package/dist/react-native/operations/workspaces.js +78 -97
  135. package/dist/react-native/operations/workspaces.js.map +1 -1
  136. package/dist/react-native/pagingHelper.js +2 -4
  137. package/dist/react-native/pagingHelper.js.map +1 -1
  138. package/package.json +2 -2
  139. package/review/arm-healthcareapis-node.api.md +1292 -1292
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import * as coreClient from "@azure/core-client";
10
9
  import * as Mappers from "../models/mappers.js";
11
10
  import * as Parameters from "../models/parameters.js";
@@ -14,6 +13,7 @@ import { createLroSpec } from "../lroImpl.js";
14
13
  /// <reference lib="esnext.asynciterable" />
15
14
  /** Class containing PrivateEndpointConnections operations. */
16
15
  export class PrivateEndpointConnectionsImpl {
16
+ client;
17
17
  /**
18
18
  * Initialize a new instance of the class PrivateEndpointConnections class.
19
19
  * @param client Reference to the service client
@@ -37,39 +37,22 @@ export class PrivateEndpointConnectionsImpl {
37
37
  return this;
38
38
  },
39
39
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ if (settings?.maxPageSize) {
41
41
  throw new Error("maxPageSize is not supported by this operation.");
42
42
  }
43
43
  return this.listByServicePagingPage(resourceGroupName, resourceName, options, settings);
44
44
  },
45
45
  };
46
46
  }
47
- listByServicePagingPage(resourceGroupName, resourceName, options, _settings) {
48
- return __asyncGenerator(this, arguments, function* listByServicePagingPage_1() {
49
- let result;
50
- result = yield __await(this._listByService(resourceGroupName, resourceName, options));
51
- yield yield __await(result.value || []);
52
- });
47
+ async *listByServicePagingPage(resourceGroupName, resourceName, options, _settings) {
48
+ let result;
49
+ result = await this._listByService(resourceGroupName, resourceName, options);
50
+ yield result.value || [];
53
51
  }
54
- listByServicePagingAll(resourceGroupName, resourceName, options) {
55
- return __asyncGenerator(this, arguments, function* listByServicePagingAll_1() {
56
- var _a, e_1, _b, _c;
57
- try {
58
- for (var _d = true, _e = __asyncValues(this.listByServicePagingPage(resourceGroupName, resourceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
59
- _c = _f.value;
60
- _d = false;
61
- const page = _c;
62
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
63
- }
64
- }
65
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
66
- finally {
67
- try {
68
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
69
- }
70
- finally { if (e_1) throw e_1.error; }
71
- }
72
- });
52
+ async *listByServicePagingAll(resourceGroupName, resourceName, options) {
53
+ for await (const page of this.listByServicePagingPage(resourceGroupName, resourceName, options)) {
54
+ yield* page;
55
+ }
73
56
  }
74
57
  /**
75
58
  * Lists all private endpoint connections for a service.
@@ -110,14 +93,19 @@ export class PrivateEndpointConnectionsImpl {
110
93
  return this.client.sendOperationRequest(args, spec);
111
94
  };
112
95
  const sendOperationFn = async (args, spec) => {
113
- var _a;
114
96
  let currentRawResponse = undefined;
115
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
97
+ const providedCallback = args.options?.onResponse;
116
98
  const callback = (rawResponse, flatResponse) => {
117
99
  currentRawResponse = rawResponse;
118
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
100
+ providedCallback?.(rawResponse, flatResponse);
101
+ };
102
+ const updatedArgs = {
103
+ ...args,
104
+ options: {
105
+ ...args.options,
106
+ onResponse: callback,
107
+ },
119
108
  };
120
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
121
109
  const flatResponse = await directSendOperation(updatedArgs, spec);
122
110
  return {
123
111
  flatResponse,
@@ -140,8 +128,8 @@ export class PrivateEndpointConnectionsImpl {
140
128
  spec: createOrUpdateOperationSpec,
141
129
  });
142
130
  const poller = await createHttpPoller(lro, {
143
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
144
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
131
+ restoreFrom: options?.resumeFrom,
132
+ intervalInMs: options?.updateIntervalInMs,
145
133
  });
146
134
  await poller.poll();
147
135
  return poller;
@@ -172,14 +160,19 @@ export class PrivateEndpointConnectionsImpl {
172
160
  return this.client.sendOperationRequest(args, spec);
173
161
  };
174
162
  const sendOperationFn = async (args, spec) => {
175
- var _a;
176
163
  let currentRawResponse = undefined;
177
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
164
+ const providedCallback = args.options?.onResponse;
178
165
  const callback = (rawResponse, flatResponse) => {
179
166
  currentRawResponse = rawResponse;
180
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
167
+ providedCallback?.(rawResponse, flatResponse);
168
+ };
169
+ const updatedArgs = {
170
+ ...args,
171
+ options: {
172
+ ...args.options,
173
+ onResponse: callback,
174
+ },
181
175
  };
182
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
183
176
  const flatResponse = await directSendOperation(updatedArgs, spec);
184
177
  return {
185
178
  flatResponse,
@@ -201,8 +194,8 @@ export class PrivateEndpointConnectionsImpl {
201
194
  spec: deleteOperationSpec,
202
195
  });
203
196
  const poller = await createHttpPoller(lro, {
204
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
205
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
197
+ restoreFrom: options?.resumeFrom,
198
+ intervalInMs: options?.updateIntervalInMs,
206
199
  });
207
200
  await poller.poll();
208
201
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK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M,mBAAmB,GAA6B;IACpD,IAAI,EAAE,0LAA0L;IAChM,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { PrivateEndpointConnections } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { HealthcareApisManagementClient } from \"../healthcareApisManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrivateEndpointConnectionDescription,\n PrivateEndpointConnectionsListByServiceOptionalParams,\n PrivateEndpointConnectionsListByServiceResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnection,\n PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n PrivateEndpointConnectionsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl\n implements PrivateEndpointConnections\n{\n private readonly client: HealthcareApisManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: HealthcareApisManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all private endpoint connections for a service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param options The options parameters.\n */\n public listByService(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n ): PagedAsyncIterableIterator<PrivateEndpointConnectionDescription> {\n const iter = this.listByServicePagingAll(\n resourceGroupName,\n resourceName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByServicePagingPage(\n resourceGroupName,\n resourceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByServicePagingPage(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<PrivateEndpointConnectionDescription[]> {\n let result: PrivateEndpointConnectionsListByServiceResponse;\n result = await this._listByService(\n resourceGroupName,\n resourceName,\n options,\n );\n yield result.value || [];\n }\n\n private async *listByServicePagingAll(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n ): AsyncIterableIterator<PrivateEndpointConnectionDescription> {\n for await (const page of this.listByServicePagingPage(\n resourceGroupName,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all private endpoint connections for a service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param options The options parameters.\n */\n private _listByService(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n ): Promise<PrivateEndpointConnectionsListByServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listByServiceOperationSpec,\n );\n }\n\n /**\n * Gets the specified private endpoint connection associated with the service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of the specified private endpoint connection associated with the service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,\n PrivateEndpointConnectionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n properties,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update the state of the specified private endpoint connection associated with the service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n properties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a private endpoint connection.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a private endpoint connection.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByServiceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResultDescription,\n },\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n 204: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAa9C,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAGxB,MAAM,CAAiC;IAExD;;;OAGG;IACH,YAAY,MAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAClB,iBAAyB,EACzB,YAAoB,EACpB,OAA+D;QAE/D,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,YAAY,EACZ,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAA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O,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,UAAU;IAClC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,0LAA0L;IAChM,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { PrivateEndpointConnections } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { HealthcareApisManagementClient } from \"../healthcareApisManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrivateEndpointConnectionDescription,\n PrivateEndpointConnectionsListByServiceOptionalParams,\n PrivateEndpointConnectionsListByServiceResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnection,\n PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n PrivateEndpointConnectionsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl\n implements PrivateEndpointConnections\n{\n private readonly client: HealthcareApisManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: HealthcareApisManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all private endpoint connections for a service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param options The options parameters.\n */\n public listByService(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n ): PagedAsyncIterableIterator<PrivateEndpointConnectionDescription> {\n const iter = this.listByServicePagingAll(\n resourceGroupName,\n resourceName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByServicePagingPage(\n resourceGroupName,\n resourceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByServicePagingPage(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<PrivateEndpointConnectionDescription[]> {\n let result: PrivateEndpointConnectionsListByServiceResponse;\n result = await this._listByService(\n resourceGroupName,\n resourceName,\n options,\n );\n yield result.value || [];\n }\n\n private async *listByServicePagingAll(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n ): AsyncIterableIterator<PrivateEndpointConnectionDescription> {\n for await (const page of this.listByServicePagingPage(\n resourceGroupName,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all private endpoint connections for a service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param options The options parameters.\n */\n private _listByService(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n ): Promise<PrivateEndpointConnectionsListByServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listByServiceOperationSpec,\n );\n }\n\n /**\n * Gets the specified private endpoint connection associated with the service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of the specified private endpoint connection associated with the service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,\n PrivateEndpointConnectionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n properties,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update the state of the specified private endpoint connection associated with the service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n properties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a private endpoint connection.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a private endpoint connection.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByServiceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResultDescription,\n },\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n 204: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing PrivateLinkResources operations. */
12
12
  export class PrivateLinkResourcesImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class PrivateLinkResources class.
15
16
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAA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,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,gKAAgK;IACtK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PrivateLinkResources } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { HealthcareApisManagementClient } from \"../healthcareApisManagementClient.js\";\nimport {\n PrivateLinkResourcesListByServiceOptionalParams,\n PrivateLinkResourcesListByServiceResponse,\n PrivateLinkResourcesGetOptionalParams,\n PrivateLinkResourcesGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing PrivateLinkResources operations. */\nexport class PrivateLinkResourcesImpl implements PrivateLinkResources {\n private readonly client: HealthcareApisManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateLinkResources class.\n * @param client Reference to the service client\n */\n constructor(client: HealthcareApisManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the private link resources that need to be created for a service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param options The options parameters.\n */\n listByService(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateLinkResourcesListByServiceOptionalParams,\n ): Promise<PrivateLinkResourcesListByServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listByServiceOperationSpec,\n );\n }\n\n /**\n * Gets a private link resource that need to be created for a service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param groupName The name of the private link resource group.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n groupName: string,\n options?: PrivateLinkResourcesGetOptionalParams,\n ): Promise<PrivateLinkResourcesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, groupName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByServiceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourceListResultDescription,\n },\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources/{groupName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourceDescription,\n },\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.groupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAClB,MAAM,CAAiC;IAExD;;;OAGG;IACH,YAAY,MAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,aAAa,CACX,iBAAyB,EACzB,YAAoB,EACpB,OAAyD;QAEzD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,SAAiB,EACjB,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,EACvD,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EAAE,oJAAoJ;IAC1J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wCAAwC;SAC7D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,gKAAgK;IACtK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PrivateLinkResources } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { HealthcareApisManagementClient } from \"../healthcareApisManagementClient.js\";\nimport {\n PrivateLinkResourcesListByServiceOptionalParams,\n PrivateLinkResourcesListByServiceResponse,\n PrivateLinkResourcesGetOptionalParams,\n PrivateLinkResourcesGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing PrivateLinkResources operations. */\nexport class PrivateLinkResourcesImpl implements PrivateLinkResources {\n private readonly client: HealthcareApisManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateLinkResources class.\n * @param client Reference to the service client\n */\n constructor(client: HealthcareApisManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the private link resources that need to be created for a service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param options The options parameters.\n */\n listByService(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateLinkResourcesListByServiceOptionalParams,\n ): Promise<PrivateLinkResourcesListByServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listByServiceOperationSpec,\n );\n }\n\n /**\n * Gets a private link resource that need to be created for a service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param groupName The name of the private link resource group.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n groupName: string,\n options?: PrivateLinkResourcesGetOptionalParams,\n ): Promise<PrivateLinkResourcesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, groupName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByServiceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourceListResultDescription,\n },\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources/{groupName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourceDescription,\n },\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.groupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing Services operations. */
17
16
  export class ServicesImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class Services class.
20
20
  * @param client Reference to the service client
@@ -36,52 +36,35 @@ export class ServicesImpl {
36
36
  return this;
37
37
  },
38
38
  byPage: (settings) => {
39
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ if (settings?.maxPageSize) {
40
40
  throw new Error("maxPageSize is not supported by this operation.");
41
41
  }
42
42
  return this.listPagingPage(options, settings);
43
43
  },
44
44
  };
45
45
  }
46
- listPagingPage(options, settings) {
47
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
48
- let result;
49
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
- if (!continuationToken) {
51
- result = yield __await(this._list(options));
52
- let page = result.value || [];
53
- continuationToken = result.nextLink;
54
- setContinuationToken(page, continuationToken);
55
- yield yield __await(page);
56
- }
57
- while (continuationToken) {
58
- result = yield __await(this._listNext(continuationToken, options));
59
- continuationToken = result.nextLink;
60
- let page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
63
- }
64
- });
46
+ async *listPagingPage(options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._list(options);
51
+ let page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield page;
55
+ }
56
+ while (continuationToken) {
57
+ result = await this._listNext(continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
65
63
  }
66
- listPagingAll(options) {
67
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
68
- var _a, e_1, _b, _c;
69
- try {
70
- for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
71
- _c = _f.value;
72
- _d = false;
73
- const page = _c;
74
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
75
- }
76
- }
77
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
78
- finally {
79
- try {
80
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
81
- }
82
- finally { if (e_1) throw e_1.error; }
83
- }
84
- });
64
+ async *listPagingAll(options) {
65
+ for await (const page of this.listPagingPage(options)) {
66
+ yield* page;
67
+ }
85
68
  }
86
69
  /**
87
70
  * Get all the service instances in a resource group.
@@ -98,52 +81,35 @@ export class ServicesImpl {
98
81
  return this;
99
82
  },
100
83
  byPage: (settings) => {
101
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
84
+ if (settings?.maxPageSize) {
102
85
  throw new Error("maxPageSize is not supported by this operation.");
103
86
  }
104
87
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
105
88
  },
106
89
  };
107
90
  }
108
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
109
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
110
- let result;
111
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
112
- if (!continuationToken) {
113
- result = yield __await(this._listByResourceGroup(resourceGroupName, options));
114
- let page = result.value || [];
115
- continuationToken = result.nextLink;
116
- setContinuationToken(page, continuationToken);
117
- yield yield __await(page);
118
- }
119
- while (continuationToken) {
120
- result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
121
- continuationToken = result.nextLink;
122
- let page = result.value || [];
123
- setContinuationToken(page, continuationToken);
124
- yield yield __await(page);
125
- }
126
- });
91
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
92
+ let result;
93
+ let continuationToken = settings?.continuationToken;
94
+ if (!continuationToken) {
95
+ result = await this._listByResourceGroup(resourceGroupName, options);
96
+ let page = result.value || [];
97
+ continuationToken = result.nextLink;
98
+ setContinuationToken(page, continuationToken);
99
+ yield page;
100
+ }
101
+ while (continuationToken) {
102
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
103
+ continuationToken = result.nextLink;
104
+ let page = result.value || [];
105
+ setContinuationToken(page, continuationToken);
106
+ yield page;
107
+ }
127
108
  }
128
- listByResourceGroupPagingAll(resourceGroupName, options) {
129
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
130
- var _a, e_2, _b, _c;
131
- try {
132
- for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
133
- _c = _f.value;
134
- _d = false;
135
- const page = _c;
136
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
137
- }
138
- }
139
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
140
- finally {
141
- try {
142
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
143
- }
144
- finally { if (e_2) throw e_2.error; }
145
- }
146
- });
109
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
110
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
111
+ yield* page;
112
+ }
147
113
  }
148
114
  /**
149
115
  * Get the metadata of a service instance.
@@ -166,14 +132,19 @@ export class ServicesImpl {
166
132
  return this.client.sendOperationRequest(args, spec);
167
133
  };
168
134
  const sendOperationFn = async (args, spec) => {
169
- var _a;
170
135
  let currentRawResponse = undefined;
171
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
136
+ const providedCallback = args.options?.onResponse;
172
137
  const callback = (rawResponse, flatResponse) => {
173
138
  currentRawResponse = rawResponse;
174
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
139
+ providedCallback?.(rawResponse, flatResponse);
140
+ };
141
+ const updatedArgs = {
142
+ ...args,
143
+ options: {
144
+ ...args.options,
145
+ onResponse: callback,
146
+ },
175
147
  };
176
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
177
148
  const flatResponse = await directSendOperation(updatedArgs, spec);
178
149
  return {
179
150
  flatResponse,
@@ -190,8 +161,8 @@ export class ServicesImpl {
190
161
  spec: createOrUpdateOperationSpec,
191
162
  });
192
163
  const poller = await createHttpPoller(lro, {
193
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
194
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
164
+ restoreFrom: options?.resumeFrom,
165
+ intervalInMs: options?.updateIntervalInMs,
195
166
  });
196
167
  await poller.poll();
197
168
  return poller;
@@ -219,14 +190,19 @@ export class ServicesImpl {
219
190
  return this.client.sendOperationRequest(args, spec);
220
191
  };
221
192
  const sendOperationFn = async (args, spec) => {
222
- var _a;
223
193
  let currentRawResponse = undefined;
224
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
194
+ const providedCallback = args.options?.onResponse;
225
195
  const callback = (rawResponse, flatResponse) => {
226
196
  currentRawResponse = rawResponse;
227
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
197
+ providedCallback?.(rawResponse, flatResponse);
198
+ };
199
+ const updatedArgs = {
200
+ ...args,
201
+ options: {
202
+ ...args.options,
203
+ onResponse: callback,
204
+ },
228
205
  };
229
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
230
206
  const flatResponse = await directSendOperation(updatedArgs, spec);
231
207
  return {
232
208
  flatResponse,
@@ -248,8 +224,8 @@ export class ServicesImpl {
248
224
  spec: updateOperationSpec,
249
225
  });
250
226
  const poller = await createHttpPoller(lro, {
251
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
252
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
227
+ restoreFrom: options?.resumeFrom,
228
+ intervalInMs: options?.updateIntervalInMs,
253
229
  });
254
230
  await poller.poll();
255
231
  return poller;
@@ -276,14 +252,19 @@ export class ServicesImpl {
276
252
  return this.client.sendOperationRequest(args, spec);
277
253
  };
278
254
  const sendOperationFn = async (args, spec) => {
279
- var _a;
280
255
  let currentRawResponse = undefined;
281
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
256
+ const providedCallback = args.options?.onResponse;
282
257
  const callback = (rawResponse, flatResponse) => {
283
258
  currentRawResponse = rawResponse;
284
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
259
+ providedCallback?.(rawResponse, flatResponse);
260
+ };
261
+ const updatedArgs = {
262
+ ...args,
263
+ options: {
264
+ ...args.options,
265
+ onResponse: callback,
266
+ },
285
267
  };
286
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
287
268
  const flatResponse = await directSendOperation(updatedArgs, spec);
288
269
  return {
289
270
  flatResponse,
@@ -300,8 +281,8 @@ export class ServicesImpl {
300
281
  spec: deleteOperationSpec,
301
282
  });
302
283
  const poller = await createHttpPoller(lro, {
303
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
304
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
284
+ restoreFrom: options?.resumeFrom,
285
+ intervalInMs: options?.updateIntervalInMs,
305
286
  });
306
287
  await poller.poll();
307
288
  return poller;