@azure/arm-healthdataaiservices 1.0.0-alpha.20250718.1 → 1.0.0-alpha.20250730.1

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 (108) hide show
  1. package/dist/browser/api/deidServices/index.js +18 -12
  2. package/dist/browser/api/deidServices/index.js.map +1 -1
  3. package/dist/browser/api/healthDataAIServicesContext.js +11 -8
  4. package/dist/browser/api/healthDataAIServicesContext.js.map +1 -1
  5. package/dist/browser/api/operations/index.js +1 -1
  6. package/dist/browser/api/operations/index.js.map +1 -1
  7. package/dist/browser/api/privateEndpointConnections/index.js +11 -8
  8. package/dist/browser/api/privateEndpointConnections/index.js.map +1 -1
  9. package/dist/browser/api/privateLinks/index.js +1 -1
  10. package/dist/browser/api/privateLinks/index.js.map +1 -1
  11. package/dist/browser/classic/deidServices/index.js +3 -1
  12. package/dist/browser/classic/deidServices/index.js.map +1 -1
  13. package/dist/browser/classic/operations/index.js +3 -1
  14. package/dist/browser/classic/operations/index.js.map +1 -1
  15. package/dist/browser/classic/privateEndpointConnections/index.js +3 -1
  16. package/dist/browser/classic/privateEndpointConnections/index.js.map +1 -1
  17. package/dist/browser/classic/privateLinks/index.js +3 -1
  18. package/dist/browser/classic/privateLinks/index.js.map +1 -1
  19. package/dist/browser/healthDataAIServicesClient.js +16 -3
  20. package/dist/browser/healthDataAIServicesClient.js.map +1 -1
  21. package/dist/browser/restorePollerHelpers.js +11 -13
  22. package/dist/browser/restorePollerHelpers.js.map +1 -1
  23. package/dist/browser/static-helpers/pagingHelpers.js +31 -50
  24. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
  25. package/dist/browser/static-helpers/pollingHelpers.js +14 -11
  26. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
  27. package/dist/commonjs/api/deidServices/index.js +18 -12
  28. package/dist/commonjs/api/deidServices/index.js.map +1 -1
  29. package/dist/commonjs/api/healthDataAIServicesContext.js +11 -8
  30. package/dist/commonjs/api/healthDataAIServicesContext.js.map +1 -1
  31. package/dist/commonjs/api/operations/index.js +1 -1
  32. package/dist/commonjs/api/operations/index.js.map +1 -1
  33. package/dist/commonjs/api/privateEndpointConnections/index.js +11 -8
  34. package/dist/commonjs/api/privateEndpointConnections/index.js.map +1 -1
  35. package/dist/commonjs/api/privateLinks/index.js +1 -1
  36. package/dist/commonjs/api/privateLinks/index.js.map +1 -1
  37. package/dist/commonjs/classic/deidServices/index.js +3 -1
  38. package/dist/commonjs/classic/deidServices/index.js.map +1 -1
  39. package/dist/commonjs/classic/operations/index.js +3 -1
  40. package/dist/commonjs/classic/operations/index.js.map +1 -1
  41. package/dist/commonjs/classic/privateEndpointConnections/index.js +3 -1
  42. package/dist/commonjs/classic/privateEndpointConnections/index.js.map +1 -1
  43. package/dist/commonjs/classic/privateLinks/index.js +3 -1
  44. package/dist/commonjs/classic/privateLinks/index.js.map +1 -1
  45. package/dist/commonjs/healthDataAIServicesClient.js +16 -3
  46. package/dist/commonjs/healthDataAIServicesClient.js.map +1 -1
  47. package/dist/commonjs/restorePollerHelpers.js +11 -13
  48. package/dist/commonjs/restorePollerHelpers.js.map +1 -1
  49. package/dist/commonjs/static-helpers/pagingHelpers.js +31 -50
  50. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
  51. package/dist/commonjs/static-helpers/pollingHelpers.js +14 -11
  52. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
  53. package/dist/commonjs/tsdoc-metadata.json +11 -11
  54. package/dist/esm/api/deidServices/index.js +18 -12
  55. package/dist/esm/api/deidServices/index.js.map +1 -1
  56. package/dist/esm/api/healthDataAIServicesContext.js +11 -8
  57. package/dist/esm/api/healthDataAIServicesContext.js.map +1 -1
  58. package/dist/esm/api/operations/index.js +1 -1
  59. package/dist/esm/api/operations/index.js.map +1 -1
  60. package/dist/esm/api/privateEndpointConnections/index.js +11 -8
  61. package/dist/esm/api/privateEndpointConnections/index.js.map +1 -1
  62. package/dist/esm/api/privateLinks/index.js +1 -1
  63. package/dist/esm/api/privateLinks/index.js.map +1 -1
  64. package/dist/esm/classic/deidServices/index.js +3 -1
  65. package/dist/esm/classic/deidServices/index.js.map +1 -1
  66. package/dist/esm/classic/operations/index.js +3 -1
  67. package/dist/esm/classic/operations/index.js.map +1 -1
  68. package/dist/esm/classic/privateEndpointConnections/index.js +3 -1
  69. package/dist/esm/classic/privateEndpointConnections/index.js.map +1 -1
  70. package/dist/esm/classic/privateLinks/index.js +3 -1
  71. package/dist/esm/classic/privateLinks/index.js.map +1 -1
  72. package/dist/esm/healthDataAIServicesClient.js +16 -3
  73. package/dist/esm/healthDataAIServicesClient.js.map +1 -1
  74. package/dist/esm/restorePollerHelpers.js +11 -13
  75. package/dist/esm/restorePollerHelpers.js.map +1 -1
  76. package/dist/esm/static-helpers/pagingHelpers.js +31 -50
  77. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
  78. package/dist/esm/static-helpers/pollingHelpers.js +14 -11
  79. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
  80. package/dist/react-native/api/deidServices/index.js +18 -12
  81. package/dist/react-native/api/deidServices/index.js.map +1 -1
  82. package/dist/react-native/api/healthDataAIServicesContext.js +11 -8
  83. package/dist/react-native/api/healthDataAIServicesContext.js.map +1 -1
  84. package/dist/react-native/api/operations/index.js +1 -1
  85. package/dist/react-native/api/operations/index.js.map +1 -1
  86. package/dist/react-native/api/privateEndpointConnections/index.js +11 -8
  87. package/dist/react-native/api/privateEndpointConnections/index.js.map +1 -1
  88. package/dist/react-native/api/privateLinks/index.js +1 -1
  89. package/dist/react-native/api/privateLinks/index.js.map +1 -1
  90. package/dist/react-native/classic/deidServices/index.js +3 -1
  91. package/dist/react-native/classic/deidServices/index.js.map +1 -1
  92. package/dist/react-native/classic/operations/index.js +3 -1
  93. package/dist/react-native/classic/operations/index.js.map +1 -1
  94. package/dist/react-native/classic/privateEndpointConnections/index.js +3 -1
  95. package/dist/react-native/classic/privateEndpointConnections/index.js.map +1 -1
  96. package/dist/react-native/classic/privateLinks/index.js +3 -1
  97. package/dist/react-native/classic/privateLinks/index.js.map +1 -1
  98. package/dist/react-native/healthDataAIServicesClient.js +16 -3
  99. package/dist/react-native/healthDataAIServicesClient.js.map +1 -1
  100. package/dist/react-native/restorePollerHelpers.js +11 -13
  101. package/dist/react-native/restorePollerHelpers.js.map +1 -1
  102. package/dist/react-native/static-helpers/pagingHelpers.js +31 -50
  103. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
  104. package/dist/react-native/static-helpers/pollingHelpers.js +14 -11
  105. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
  106. package/package.json +2 -2
  107. package/review/arm-healthdataaiservices-models-node.api.md +225 -225
  108. package/review/arm-healthdataaiservices-node.api.md +357 -357
@@ -3,23 +3,26 @@
3
3
  // Licensed under the MIT License.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.createHealthDataAIServices = createHealthDataAIServices;
6
- const tslib_1 = require("tslib");
7
6
  const logger_js_1 = require("../logger.js");
8
7
  const core_client_1 = require("@azure-rest/core-client");
9
8
  function createHealthDataAIServices(credential, options = {}) {
10
- var _a, _b, _c, _d, _e, _f, _g, _h;
11
- const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : `https://management.azure.com`;
12
- const prefixFromOptions = (_c = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _c === void 0 ? void 0 : _c.userAgentPrefix;
9
+ const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;
10
+ const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
13
11
  const userAgentInfo = `azsdk-js-arm-healthdataaiservices/1.0.0-beta.1`;
14
12
  const userAgentPrefix = prefixFromOptions
15
13
  ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
16
14
  : `azsdk-js-api ${userAgentInfo}`;
17
- const _j = Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix }, loggingOptions: { logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger_js_1.logger.info }, credentials: {
18
- scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : [`${endpointUrl}/.default`],
19
- } }), { apiVersion: _ } = _j, updatedOptions = tslib_1.__rest(_j, ["apiVersion"]);
15
+ const { apiVersion: _, ...updatedOptions } = {
16
+ ...options,
17
+ userAgentOptions: { userAgentPrefix },
18
+ loggingOptions: { logger: options.loggingOptions?.logger ?? logger_js_1.logger.info },
19
+ credentials: {
20
+ scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],
21
+ },
22
+ };
20
23
  const clientContext = (0, core_client_1.getClient)(endpointUrl, credential, updatedOptions);
21
24
  clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
22
- const apiVersion = (_h = options.apiVersion) !== null && _h !== void 0 ? _h : "2024-09-20";
25
+ const apiVersion = options.apiVersion ?? "2024-09-20";
23
26
  clientContext.pipeline.addPolicy({
24
27
  name: "ClientApiVersionPolicy",
25
28
  sendRequest: (req, next) => {
@@ -1 +1 @@
1
- {"version":3,"file":"healthDataAIServicesContext.js","sourceRoot":"","sources":["../../../src/api/healthDataAIServicesContext.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAgBlC,gEAqCC;;AAnDD,4CAAsC;AAEtC,yDAA2E;AAY3E,SAAgB,0BAA0B,CACxC,UAA2B,EAC3B,UAAoD,EAAE;;IAEtD,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,CAAC;IAC1F,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,0CAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,gDAAgD,CAAC;IACvE,MAAM,eAAe,GA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D,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport interface HealthDataAIServicesContext extends Client {}\n\n/** Optional parameters for the client. */\nexport interface HealthDataAIServicesClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\nexport function createHealthDataAIServices(\n credential: TokenCredential,\n options: HealthDataAIServicesClientOptionalParams = {},\n): HealthDataAIServicesContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-healthdataaiservices/1.0.0-beta.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2024-09-20\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return clientContext;\n}\n"]}
1
+ {"version":3,"file":"healthDataAIServicesContext.js","sourceRoot":"","sources":["../../../src/api/healthDataAIServicesContext.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAgBlC,gEAqCC;AAnDD,4CAAsC;AAEtC,yDAA2E;AAY3E,SAAgB,0BAA0B,CACxC,UAA2B,EAC3B,UAAoD,EAAE;IAEtD,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,OAAO,IAAI,8BAA8B,CAAC;IAC1F,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,gDAAgD,CAAC;IACvE,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,GAAG;QAC3C,GAAG,OAAO;QACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;QACrC,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,kBAAM,CAAC,IAAI,EAAE;QACzE,WAAW,EAAE;YACX,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,GAAG,WAAW,WAAW,CAAC;SACnE;KACF,CAAC;IACF,MAAM,aAAa,GAAG,IAAA,uBAAS,EAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,aAAa,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAClE,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;IACtD,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC/B,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,qDAAqD;YACrD,yEAAyE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;gBACzC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport interface HealthDataAIServicesContext extends Client {}\n\n/** Optional parameters for the client. */\nexport interface HealthDataAIServicesClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\nexport function createHealthDataAIServices(\n credential: TokenCredential,\n options: HealthDataAIServicesClientOptionalParams = {},\n): HealthDataAIServicesContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-healthdataaiservices/1.0.0-beta.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2024-09-20\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return clientContext;\n}\n"]}
@@ -11,7 +11,7 @@ const core_client_1 = require("@azure-rest/core-client");
11
11
  function _operationsListSend(context, options = { requestOptions: {} }) {
12
12
  return context
13
13
  .path("/providers/Microsoft.HealthDataAIServices/operations")
14
- .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
14
+ .get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
15
15
  }
16
16
  async function _operationsListDeserialize(result) {
17
17
  const expectedStatuses = ["200"];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,kDAOC;AAED,gEASC;AAGD,wCAWC;AAhDD,sDAIgC;AAChC,4EAG+C;AAC/C,yDAKiC;AAEjC,SAAgB,mBAAmB,CACjC,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,OAAO;SACX,IAAI,CAAC,sDAAsD,CAAC;SAC5D,GAAG,mBAAM,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,0BAA0B,CAC9C,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,IAAA,4CAAgC,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,2CAA2C;AAC3C,SAAgB,cAAc,CAC5B,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,EAC3C,0BAA0B,EAC1B,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { HealthDataAIServicesContext as Client, OperationsListOptionalParams } from \"../index.js\";\nimport {\n _OperationListResult,\n _operationListResultDeserializer,\n Operation,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _operationsListSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\"/providers/Microsoft.HealthDataAIServices/operations\")\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _operationsListDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function operationsList(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _operationsListSend(context, options),\n _operationsListDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,kDAOC;AAED,gEASC;AAGD,wCAWC;AAhDD,sDAIgC;AAChC,4EAG+C;AAC/C,yDAKiC;AAEjC,SAAgB,mBAAmB,CACjC,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,OAAO;SACX,IAAI,CAAC,sDAAsD,CAAC;SAC5D,GAAG,CAAC,EAAE,GAAG,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,0BAA0B,CAC9C,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,IAAA,4CAAgC,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,2CAA2C;AAC3C,SAAgB,cAAc,CAC5B,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,EAC3C,0BAA0B,EAC1B,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { HealthDataAIServicesContext as Client, OperationsListOptionalParams } from \"../index.js\";\nimport {\n _OperationListResult,\n _operationListResultDeserializer,\n Operation,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _operationsListSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\"/providers/Microsoft.HealthDataAIServices/operations\")\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _operationsListDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function operationsList(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _operationsListSend(context, options),\n _operationsListDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
@@ -21,7 +21,7 @@ const core_client_1 = require("@azure-rest/core-client");
21
21
  function _privateEndpointConnectionsGetSend(context, subscriptionId, resourceGroupName, deidServiceName, privateEndpointConnectionName, options = { requestOptions: {} }) {
22
22
  return context
23
23
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", subscriptionId, resourceGroupName, deidServiceName, privateEndpointConnectionName)
24
- .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
24
+ .get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
25
25
  }
26
26
  async function _privateEndpointConnectionsGetDeserialize(result) {
27
27
  const expectedStatuses = ["200"];
@@ -40,7 +40,10 @@ function _privateEndpointConnectionsCreateSend(context, subscriptionId, resource
40
40
  }) {
41
41
  return context
42
42
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", subscriptionId, resourceGroupName, deidServiceName, privateEndpointConnectionName)
43
- .put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: (0, models_js_1.privateEndpointConnectionResourceSerializer)(resource) }));
43
+ .put({
44
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
45
+ body: (0, models_js_1.privateEndpointConnectionResourceSerializer)(resource),
46
+ });
44
47
  }
45
48
  async function _privateEndpointConnectionsCreateDeserialize(result) {
46
49
  const expectedStatuses = ["200", "201"];
@@ -54,8 +57,8 @@ function privateEndpointConnectionsCreate(context, subscriptionId, resourceGroup
54
57
  requestOptions: {},
55
58
  }) {
56
59
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _privateEndpointConnectionsCreateDeserialize, ["200", "201"], {
57
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
58
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
60
+ updateIntervalInMs: options?.updateIntervalInMs,
61
+ abortSignal: options?.abortSignal,
59
62
  getInitialResponse: () => _privateEndpointConnectionsCreateSend(context, subscriptionId, resourceGroupName, deidServiceName, privateEndpointConnectionName, resource, options),
60
63
  resourceLocationConfig: "azure-async-operation",
61
64
  });
@@ -65,7 +68,7 @@ function _privateEndpointConnectionsDeleteSend(context, subscriptionId, resource
65
68
  }) {
66
69
  return context
67
70
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", subscriptionId, resourceGroupName, deidServiceName, privateEndpointConnectionName)
68
- .delete(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
71
+ .delete({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
69
72
  }
70
73
  async function _privateEndpointConnectionsDeleteDeserialize(result) {
71
74
  const expectedStatuses = ["202", "204", "200"];
@@ -79,8 +82,8 @@ function privateEndpointConnectionsDelete(context, subscriptionId, resourceGroup
79
82
  requestOptions: {},
80
83
  }) {
81
84
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _privateEndpointConnectionsDeleteDeserialize, ["202", "204", "200"], {
82
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
83
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
85
+ updateIntervalInMs: options?.updateIntervalInMs,
86
+ abortSignal: options?.abortSignal,
84
87
  getInitialResponse: () => _privateEndpointConnectionsDeleteSend(context, subscriptionId, resourceGroupName, deidServiceName, privateEndpointConnectionName, options),
85
88
  resourceLocationConfig: "location",
86
89
  });
@@ -90,7 +93,7 @@ function _privateEndpointConnectionsListByDeidServiceSend(context, subscriptionI
90
93
  }) {
91
94
  return context
92
95
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections", subscriptionId, resourceGroupName, deidServiceName)
93
- .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
96
+ .get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
94
97
  }
95
98
  async function _privateEndpointConnectionsListByDeidServiceDeserialize(result) {
96
99
  const expectedStatuses = ["200"];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/privateEndpointConnections/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;A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AAc,EAAE,EAAE;CACnB;IAED,OAAO,OAAO;SACX,IAAI,CACH,uKAAuK,EACvK,cAAc,EACd,iBAAiB,EACjB,eAAe,CAChB;SACA,GAAG,mBAAM,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,uDAAuD,CAC3E,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,IAAA,oEAAwD,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC/E,CAAC;AAED,8DAA8D;AAC9D,SAAgB,2CAA2C,CACzD,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,UAAqE;IACnE,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CACH,gDAAgD,CAC9C,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR,EACH,uDAAuD,EACvD,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n HealthDataAIServicesContext as Client,\n PrivateEndpointConnectionsCreateOptionalParams,\n PrivateEndpointConnectionsDeleteOptionalParams,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsListByDeidServiceOptionalParams,\n} from \"../index.js\";\nimport {\n PrivateEndpointConnectionResource,\n privateEndpointConnectionResourceSerializer,\n privateEndpointConnectionResourceDeserializer,\n _PrivateEndpointConnectionResourceListResult,\n _privateEndpointConnectionResourceListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _privateEndpointConnectionsGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n options: PrivateEndpointConnectionsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n privateEndpointConnectionName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _privateEndpointConnectionsGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<PrivateEndpointConnectionResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return privateEndpointConnectionResourceDeserializer(result.body);\n}\n\n/** Get a specific private connection */\nexport async function privateEndpointConnectionsGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n options: PrivateEndpointConnectionsGetOptionalParams = { requestOptions: {} },\n): Promise<PrivateEndpointConnectionResource> {\n const result = await _privateEndpointConnectionsGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n privateEndpointConnectionName,\n options,\n );\n return _privateEndpointConnectionsGetDeserialize(result);\n}\n\nexport function _privateEndpointConnectionsCreateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n resource: PrivateEndpointConnectionResource,\n options: PrivateEndpointConnectionsCreateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n privateEndpointConnectionName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: privateEndpointConnectionResourceSerializer(resource),\n });\n}\n\nexport async function _privateEndpointConnectionsCreateDeserialize(\n result: PathUncheckedResponse,\n): Promise<PrivateEndpointConnectionResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return privateEndpointConnectionResourceDeserializer(result.body);\n}\n\n/** Create a Private endpoint connection */\nexport function privateEndpointConnectionsCreate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n resource: PrivateEndpointConnectionResource,\n options: PrivateEndpointConnectionsCreateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<\n OperationState<PrivateEndpointConnectionResource>,\n PrivateEndpointConnectionResource\n> {\n return getLongRunningPoller(\n context,\n _privateEndpointConnectionsCreateDeserialize,\n [\"200\", \"201\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _privateEndpointConnectionsCreateSend(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n privateEndpointConnectionName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n },\n ) as PollerLike<\n OperationState<PrivateEndpointConnectionResource>,\n PrivateEndpointConnectionResource\n >;\n}\n\nexport function _privateEndpointConnectionsDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n options: PrivateEndpointConnectionsDeleteOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n privateEndpointConnectionName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _privateEndpointConnectionsDeleteDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Delete the private endpoint connection */\nexport function privateEndpointConnectionsDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n options: PrivateEndpointConnectionsDeleteOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(\n context,\n _privateEndpointConnectionsDeleteDeserialize,\n [\"202\", \"204\", \"200\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _privateEndpointConnectionsDeleteSend(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n privateEndpointConnectionName,\n options,\n ),\n resourceLocationConfig: \"location\",\n },\n ) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _privateEndpointConnectionsListByDeidServiceSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n options: PrivateEndpointConnectionsListByDeidServiceOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections\",\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _privateEndpointConnectionsListByDeidServiceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PrivateEndpointConnectionResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _privateEndpointConnectionResourceListResultDeserializer(result.body);\n}\n\n/** List private endpoint connections on the given resource */\nexport function privateEndpointConnectionsListByDeidService(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n options: PrivateEndpointConnectionsListByDeidServiceOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<PrivateEndpointConnectionResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _privateEndpointConnectionsListByDeidServiceSend(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n options,\n ),\n _privateEndpointConnectionsListByDeidServiceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/privateEndpointConnections/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA6BlC,gFAiBC;AAED,8FASC;AAGD,sEAiBC;AAED,sFAuBC;AAED,oGASC;AAGD,4EAqCC;AAED,sFAmBC;AAED,oGASC;AAGD,4EA6BC;AAED,4GAiBC;AAED,0HASC;AAGD,kGAuBC;AAxQD,sDAMgC;AAChC,4EAG+C;AAC/C,8EAA8E;AAC9E,yDAKiC;AAGjC,SAAgB,kCAAkC,CAChD,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,6BAAqC,EACrC,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7E,OAAO,OAAO;SACX,IAAI,CACH,uMAAuM,EACvM,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,6BAA6B,CAC9B;SACA,GAAG,CAAC,EAAE,GAAG,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,yCAAyC,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CACnB;IAED,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CACH,gDAAgD,CAC9C,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR,EACH,uDAAuD,EACvD,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n HealthDataAIServicesContext as Client,\n PrivateEndpointConnectionsCreateOptionalParams,\n PrivateEndpointConnectionsDeleteOptionalParams,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsListByDeidServiceOptionalParams,\n} from \"../index.js\";\nimport {\n PrivateEndpointConnectionResource,\n privateEndpointConnectionResourceSerializer,\n privateEndpointConnectionResourceDeserializer,\n _PrivateEndpointConnectionResourceListResult,\n _privateEndpointConnectionResourceListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _privateEndpointConnectionsGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n options: PrivateEndpointConnectionsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n privateEndpointConnectionName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _privateEndpointConnectionsGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<PrivateEndpointConnectionResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return privateEndpointConnectionResourceDeserializer(result.body);\n}\n\n/** Get a specific private connection */\nexport async function privateEndpointConnectionsGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n options: PrivateEndpointConnectionsGetOptionalParams = { requestOptions: {} },\n): Promise<PrivateEndpointConnectionResource> {\n const result = await _privateEndpointConnectionsGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n privateEndpointConnectionName,\n options,\n );\n return _privateEndpointConnectionsGetDeserialize(result);\n}\n\nexport function _privateEndpointConnectionsCreateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n resource: PrivateEndpointConnectionResource,\n options: PrivateEndpointConnectionsCreateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n privateEndpointConnectionName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: privateEndpointConnectionResourceSerializer(resource),\n });\n}\n\nexport async function _privateEndpointConnectionsCreateDeserialize(\n result: PathUncheckedResponse,\n): Promise<PrivateEndpointConnectionResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return privateEndpointConnectionResourceDeserializer(result.body);\n}\n\n/** Create a Private endpoint connection */\nexport function privateEndpointConnectionsCreate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n resource: PrivateEndpointConnectionResource,\n options: PrivateEndpointConnectionsCreateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<\n OperationState<PrivateEndpointConnectionResource>,\n PrivateEndpointConnectionResource\n> {\n return getLongRunningPoller(\n context,\n _privateEndpointConnectionsCreateDeserialize,\n [\"200\", \"201\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _privateEndpointConnectionsCreateSend(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n privateEndpointConnectionName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n },\n ) as PollerLike<\n OperationState<PrivateEndpointConnectionResource>,\n PrivateEndpointConnectionResource\n >;\n}\n\nexport function _privateEndpointConnectionsDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n options: PrivateEndpointConnectionsDeleteOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n privateEndpointConnectionName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _privateEndpointConnectionsDeleteDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Delete the private endpoint connection */\nexport function privateEndpointConnectionsDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n options: PrivateEndpointConnectionsDeleteOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(\n context,\n _privateEndpointConnectionsDeleteDeserialize,\n [\"202\", \"204\", \"200\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _privateEndpointConnectionsDeleteSend(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n privateEndpointConnectionName,\n options,\n ),\n resourceLocationConfig: \"location\",\n },\n ) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _privateEndpointConnectionsListByDeidServiceSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n options: PrivateEndpointConnectionsListByDeidServiceOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections\",\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _privateEndpointConnectionsListByDeidServiceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PrivateEndpointConnectionResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _privateEndpointConnectionResourceListResultDeserializer(result.body);\n}\n\n/** List private endpoint connections on the given resource */\nexport function privateEndpointConnectionsListByDeidService(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n options: PrivateEndpointConnectionsListByDeidServiceOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<PrivateEndpointConnectionResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _privateEndpointConnectionsListByDeidServiceSend(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n options,\n ),\n _privateEndpointConnectionsListByDeidServiceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
@@ -11,7 +11,7 @@ const core_client_1 = require("@azure-rest/core-client");
11
11
  function _privateLinksListByDeidServiceSend(context, subscriptionId, resourceGroupName, deidServiceName, options = { requestOptions: {} }) {
12
12
  return context
13
13
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateLinkResources", subscriptionId, resourceGroupName, deidServiceName)
14
- .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
14
+ .get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
15
15
  }
16
16
  async function _privateLinksListByDeidServiceDeserialize(result) {
17
17
  const expectedStatuses = ["200"];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/privateLinks/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAsBlC,gFAeC;AAED,8FASC;AAGD,sEAqBC;AAlED,sDAIgC;AAChC,4EAG+C;AAC/C,yDAKiC;AAEjC,SAAgB,kCAAkC,CAChD,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7E,OAAO,OAAO;SACX,IAAI,CACH,iKAAiK,EACjK,cAAc,EACd,iBAAiB,EACjB,eAAe,CAChB;SACA,GAAG,mBAAM,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,yCAAyC,CAC7D,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,IAAA,sDAA0C,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACjE,CAAC;AAED,+CAA+C;AAC/C,SAAgB,6BAA6B,CAC3C,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7E,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CACH,kCAAkC,CAChC,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR,EACH,yCAAyC,EACzC,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n HealthDataAIServicesContext as Client,\n PrivateLinksListByDeidServiceOptionalParams,\n} from \"../index.js\";\nimport {\n _PrivateLinkResourceListResult,\n _privateLinkResourceListResultDeserializer,\n PrivateLinkResource,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _privateLinksListByDeidServiceSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n options: PrivateLinksListByDeidServiceOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateLinkResources\",\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _privateLinksListByDeidServiceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PrivateLinkResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _privateLinkResourceListResultDeserializer(result.body);\n}\n\n/** List private links on the given resource */\nexport function privateLinksListByDeidService(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n options: PrivateLinksListByDeidServiceOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<PrivateLinkResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _privateLinksListByDeidServiceSend(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n options,\n ),\n _privateLinksListByDeidServiceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/privateLinks/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAsBlC,gFAeC;AAED,8FASC;AAGD,sEAqBC;AAlED,sDAIgC;AAChC,4EAG+C;AAC/C,yDAKiC;AAEjC,SAAgB,kCAAkC,CAChD,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7E,OAAO,OAAO;SACX,IAAI,CACH,iKAAiK,EACjK,cAAc,EACd,iBAAiB,EACjB,eAAe,CAChB;SACA,GAAG,CAAC,EAAE,GAAG,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,yCAAyC,CAC7D,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,IAAA,sDAA0C,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACjE,CAAC;AAED,+CAA+C;AAC/C,SAAgB,6BAA6B,CAC3C,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7E,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CACH,kCAAkC,CAChC,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR,EACH,yCAAyC,EACzC,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n HealthDataAIServicesContext as Client,\n PrivateLinksListByDeidServiceOptionalParams,\n} from \"../index.js\";\nimport {\n _PrivateLinkResourceListResult,\n _privateLinkResourceListResultDeserializer,\n PrivateLinkResource,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _privateLinksListByDeidServiceSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n options: PrivateLinksListByDeidServiceOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateLinkResources\",\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _privateLinksListByDeidServiceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PrivateLinkResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _privateLinkResourceListResultDeserializer(result.body);\n}\n\n/** List private links on the given resource */\nexport function privateLinksListByDeidService(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n options: PrivateLinksListByDeidServiceOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<PrivateLinkResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _privateLinksListByDeidServiceSend(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n options,\n ),\n _privateLinksListByDeidServiceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
@@ -16,6 +16,8 @@ function getDeidServices(context, subscriptionId) {
16
16
  };
17
17
  }
18
18
  function getDeidServicesOperations(context, subscriptionId) {
19
- return Object.assign({}, getDeidServices(context, subscriptionId));
19
+ return {
20
+ ...getDeidServices(context, subscriptionId),
21
+ };
20
22
  }
21
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/deidServices/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA8DlC,0CA+CC;AAED,8DAOC;AAnHD,8DAOyC;AAoDzC,SAAgB,eAAe,CAAC,OAAoC,EAAE,cAAsB;IAC1F,OAAO;QACL,GAAG,EAAE,CACH,iBAAyB,EACzB,eAAuB,EACvB,OAAuC,EACvC,EAAE,CAAC,IAAA,0BAAe,EAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,OAAO,CAAC;QAC1F,mBAAmB,EAAE,CACnB,iBAAyB,EACzB,OAAuD,EACvD,EAAE,CAAC,IAAA,0CAA+B,EAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,OAAO,CAAC;QACzF,kBAAkB,EAAE,CAAC,OAAsD,EAAE,EAAE,CAC7E,IAAA,yCAA8B,EAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC;QAClE,MAAM,EAAE,CACN,iBAAyB,EACzB,eAAuB,EACvB,QAAqB,EACrB,OAA0C,EAC1C,EAAE,CACF,IAAA,6BAAkB,EAChB,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,QAAQ,EACR,OAAO,CACR;QACH,MAAM,EAAE,CACN,iBAAyB,EACzB,eAAuB,EACvB,UAAsB,EACtB,OAA0C,EAC1C,EAAE,CACF,IAAA,6BAAkB,EAChB,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,OAAO,CACR;QACH,MAAM,EAAE,CACN,iBAAyB,EACzB,eAAuB,EACvB,OAA0C,EAC1C,EAAE,CAAC,IAAA,6BAAkB,EAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,OAAO,CAAC;KAC9F,CAAC;AACJ,CAAC;AAED,SAAgB,yBAAyB,CACvC,OAAoC,EACpC,cAAsB;IAEtB,yBACK,eAAe,CAAC,OAAO,EAAE,cAAc,CAAC,EAC3C;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { HealthDataAIServicesContext } from \"../../api/healthDataAIServicesContext.js\";\nimport {\n deidServicesGet,\n deidServicesListByResourceGroup,\n deidServicesListBySubscription,\n deidServicesCreate,\n deidServicesUpdate,\n deidServicesDelete,\n} from \"../../api/deidServices/index.js\";\nimport { DeidService, DeidUpdate } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n DeidServicesGetOptionalParams,\n DeidServicesListByResourceGroupOptionalParams,\n DeidServicesListBySubscriptionOptionalParams,\n DeidServicesCreateOptionalParams,\n DeidServicesUpdateOptionalParams,\n DeidServicesDeleteOptionalParams,\n} from \"../../api/options.js\";\n\n/** Interface representing a DeidServices operations. */\nexport interface DeidServicesOperations {\n /** Get a DeidService */\n get: (\n resourceGroupName: string,\n deidServiceName: string,\n options?: DeidServicesGetOptionalParams,\n ) => Promise<DeidService>;\n /** List DeidService resources by resource group */\n listByResourceGroup: (\n resourceGroupName: string,\n options?: DeidServicesListByResourceGroupOptionalParams,\n ) => PagedAsyncIterableIterator<DeidService>;\n /** List DeidService resources by subscription ID */\n listBySubscription: (\n options?: DeidServicesListBySubscriptionOptionalParams,\n ) => PagedAsyncIterableIterator<DeidService>;\n /** Create a DeidService */\n create: (\n resourceGroupName: string,\n deidServiceName: string,\n resource: DeidService,\n options?: DeidServicesCreateOptionalParams,\n ) => PollerLike<OperationState<DeidService>, DeidService>;\n /** Update a DeidService */\n update: (\n resourceGroupName: string,\n deidServiceName: string,\n properties: DeidUpdate,\n options?: DeidServicesUpdateOptionalParams,\n ) => PollerLike<OperationState<DeidService>, DeidService>;\n /** Delete a DeidService */\n delete: (\n resourceGroupName: string,\n deidServiceName: string,\n options?: DeidServicesDeleteOptionalParams,\n ) => PollerLike<OperationState<void>, void>;\n}\n\nexport function getDeidServices(context: HealthDataAIServicesContext, subscriptionId: string) {\n return {\n get: (\n resourceGroupName: string,\n deidServiceName: string,\n options?: DeidServicesGetOptionalParams,\n ) => deidServicesGet(context, subscriptionId, resourceGroupName, deidServiceName, options),\n listByResourceGroup: (\n resourceGroupName: string,\n options?: DeidServicesListByResourceGroupOptionalParams,\n ) => deidServicesListByResourceGroup(context, subscriptionId, resourceGroupName, options),\n listBySubscription: (options?: DeidServicesListBySubscriptionOptionalParams) =>\n deidServicesListBySubscription(context, subscriptionId, options),\n create: (\n resourceGroupName: string,\n deidServiceName: string,\n resource: DeidService,\n options?: DeidServicesCreateOptionalParams,\n ) =>\n deidServicesCreate(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n resource,\n options,\n ),\n update: (\n resourceGroupName: string,\n deidServiceName: string,\n properties: DeidUpdate,\n options?: DeidServicesUpdateOptionalParams,\n ) =>\n deidServicesUpdate(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n properties,\n options,\n ),\n delete: (\n resourceGroupName: string,\n deidServiceName: string,\n options?: DeidServicesDeleteOptionalParams,\n ) => deidServicesDelete(context, subscriptionId, resourceGroupName, deidServiceName, options),\n };\n}\n\nexport function getDeidServicesOperations(\n context: HealthDataAIServicesContext,\n subscriptionId: string,\n): DeidServicesOperations {\n return {\n ...getDeidServices(context, subscriptionId),\n };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/deidServices/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA8DlC,0CA+CC;AAED,8DAOC;AAnHD,8DAOyC;AAoDzC,SAAgB,eAAe,CAAC,OAAoC,EAAE,cAAsB;IAC1F,OAAO;QACL,GAAG,EAAE,CACH,iBAAyB,EACzB,eAAuB,EACvB,OAAuC,EACvC,EAAE,CAAC,IAAA,0BAAe,EAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,OAAO,CAAC;QAC1F,mBAAmB,EAAE,CACnB,iBAAyB,EACzB,OAAuD,EACvD,EAAE,CAAC,IAAA,0CAA+B,EAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,OAAO,CAAC;QACzF,kBAAkB,EAAE,CAAC,OAAsD,EAAE,EAAE,CAC7E,IAAA,yCAA8B,EAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC;QAClE,MAAM,EAAE,CACN,iBAAyB,EACzB,eAAuB,EACvB,QAAqB,EACrB,OAA0C,EAC1C,EAAE,CACF,IAAA,6BAAkB,EAChB,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,QAAQ,EACR,OAAO,CACR;QACH,MAAM,EAAE,CACN,iBAAyB,EACzB,eAAuB,EACvB,UAAsB,EACtB,OAA0C,EAC1C,EAAE,CACF,IAAA,6BAAkB,EAChB,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,OAAO,CACR;QACH,MAAM,EAAE,CACN,iBAAyB,EACzB,eAAuB,EACvB,OAA0C,EAC1C,EAAE,CAAC,IAAA,6BAAkB,EAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,OAAO,CAAC;KAC9F,CAAC;AACJ,CAAC;AAED,SAAgB,yBAAyB,CACvC,OAAoC,EACpC,cAAsB;IAEtB,OAAO;QACL,GAAG,eAAe,CAAC,OAAO,EAAE,cAAc,CAAC;KAC5C,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { HealthDataAIServicesContext } from \"../../api/healthDataAIServicesContext.js\";\nimport {\n deidServicesGet,\n deidServicesListByResourceGroup,\n deidServicesListBySubscription,\n deidServicesCreate,\n deidServicesUpdate,\n deidServicesDelete,\n} from \"../../api/deidServices/index.js\";\nimport { DeidService, DeidUpdate } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n DeidServicesGetOptionalParams,\n DeidServicesListByResourceGroupOptionalParams,\n DeidServicesListBySubscriptionOptionalParams,\n DeidServicesCreateOptionalParams,\n DeidServicesUpdateOptionalParams,\n DeidServicesDeleteOptionalParams,\n} from \"../../api/options.js\";\n\n/** Interface representing a DeidServices operations. */\nexport interface DeidServicesOperations {\n /** Get a DeidService */\n get: (\n resourceGroupName: string,\n deidServiceName: string,\n options?: DeidServicesGetOptionalParams,\n ) => Promise<DeidService>;\n /** List DeidService resources by resource group */\n listByResourceGroup: (\n resourceGroupName: string,\n options?: DeidServicesListByResourceGroupOptionalParams,\n ) => PagedAsyncIterableIterator<DeidService>;\n /** List DeidService resources by subscription ID */\n listBySubscription: (\n options?: DeidServicesListBySubscriptionOptionalParams,\n ) => PagedAsyncIterableIterator<DeidService>;\n /** Create a DeidService */\n create: (\n resourceGroupName: string,\n deidServiceName: string,\n resource: DeidService,\n options?: DeidServicesCreateOptionalParams,\n ) => PollerLike<OperationState<DeidService>, DeidService>;\n /** Update a DeidService */\n update: (\n resourceGroupName: string,\n deidServiceName: string,\n properties: DeidUpdate,\n options?: DeidServicesUpdateOptionalParams,\n ) => PollerLike<OperationState<DeidService>, DeidService>;\n /** Delete a DeidService */\n delete: (\n resourceGroupName: string,\n deidServiceName: string,\n options?: DeidServicesDeleteOptionalParams,\n ) => PollerLike<OperationState<void>, void>;\n}\n\nexport function getDeidServices(context: HealthDataAIServicesContext, subscriptionId: string) {\n return {\n get: (\n resourceGroupName: string,\n deidServiceName: string,\n options?: DeidServicesGetOptionalParams,\n ) => deidServicesGet(context, subscriptionId, resourceGroupName, deidServiceName, options),\n listByResourceGroup: (\n resourceGroupName: string,\n options?: DeidServicesListByResourceGroupOptionalParams,\n ) => deidServicesListByResourceGroup(context, subscriptionId, resourceGroupName, options),\n listBySubscription: (options?: DeidServicesListBySubscriptionOptionalParams) =>\n deidServicesListBySubscription(context, subscriptionId, options),\n create: (\n resourceGroupName: string,\n deidServiceName: string,\n resource: DeidService,\n options?: DeidServicesCreateOptionalParams,\n ) =>\n deidServicesCreate(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n resource,\n options,\n ),\n update: (\n resourceGroupName: string,\n deidServiceName: string,\n properties: DeidUpdate,\n options?: DeidServicesUpdateOptionalParams,\n ) =>\n deidServicesUpdate(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n properties,\n options,\n ),\n delete: (\n resourceGroupName: string,\n deidServiceName: string,\n options?: DeidServicesDeleteOptionalParams,\n ) => deidServicesDelete(context, subscriptionId, resourceGroupName, deidServiceName, options),\n };\n}\n\nexport function getDeidServicesOperations(\n context: HealthDataAIServicesContext,\n subscriptionId: string,\n): DeidServicesOperations {\n return {\n ...getDeidServices(context, subscriptionId),\n };\n}\n"]}
@@ -11,6 +11,8 @@ function getOperations(context) {
11
11
  };
12
12
  }
13
13
  function getOperationsOperations(context) {
14
- return Object.assign({}, getOperations(context));
14
+ return {
15
+ ...getOperations(context),
16
+ };
15
17
  }
16
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/operations/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAclC,sCAIC;AAED,0DAMC;AAvBD,4DAA+D;AAW/D,SAAgB,aAAa,CAAC,OAAoC;IAChE,OAAO;QACL,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,IAAA,yBAAc,EAAC,OAAO,EAAE,OAAO,CAAC;KACnF,CAAC;AACJ,CAAC;AAED,SAAgB,uBAAuB,CACrC,OAAoC;IAEpC,yBACK,aAAa,CAAC,OAAO,CAAC,EACzB;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { HealthDataAIServicesContext } from \"../../api/healthDataAIServicesContext.js\";\nimport { operationsList } from \"../../api/operations/index.js\";\nimport { OperationsListOptionalParams } from \"../../api/options.js\";\nimport { Operation } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a Operations operations. */\nexport interface OperationsOperations {\n /** List the operations for the provider */\n list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator<Operation>;\n}\n\nexport function getOperations(context: HealthDataAIServicesContext) {\n return {\n list: (options?: OperationsListOptionalParams) => operationsList(context, options),\n };\n}\n\nexport function getOperationsOperations(\n context: HealthDataAIServicesContext,\n): OperationsOperations {\n return {\n ...getOperations(context),\n };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/operations/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAclC,sCAIC;AAED,0DAMC;AAvBD,4DAA+D;AAW/D,SAAgB,aAAa,CAAC,OAAoC;IAChE,OAAO;QACL,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,IAAA,yBAAc,EAAC,OAAO,EAAE,OAAO,CAAC;KACnF,CAAC;AACJ,CAAC;AAED,SAAgB,uBAAuB,CACrC,OAAoC;IAEpC,OAAO;QACL,GAAG,aAAa,CAAC,OAAO,CAAC;KAC1B,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { HealthDataAIServicesContext } from \"../../api/healthDataAIServicesContext.js\";\nimport { operationsList } from \"../../api/operations/index.js\";\nimport { OperationsListOptionalParams } from \"../../api/options.js\";\nimport { Operation } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a Operations operations. */\nexport interface OperationsOperations {\n /** List the operations for the provider */\n list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator<Operation>;\n}\n\nexport function getOperations(context: HealthDataAIServicesContext) {\n return {\n list: (options?: OperationsListOptionalParams) => operationsList(context, options),\n };\n}\n\nexport function getOperationsOperations(\n context: HealthDataAIServicesContext,\n): OperationsOperations {\n return {\n ...getOperations(context),\n };\n}\n"]}
@@ -14,6 +14,8 @@ function getPrivateEndpointConnections(context, subscriptionId) {
14
14
  };
15
15
  }
16
16
  function getPrivateEndpointConnectionsOperations(context, subscriptionId) {
17
- return Object.assign({}, getPrivateEndpointConnections(context, subscriptionId));
17
+ return {
18
+ ...getPrivateEndpointConnections(context, subscriptionId),
19
+ };
18
20
  }
19
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/privateEndpointConnections/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAsDlC,sEA8DC;AAED,0FAOC;AApHD,4EAKuD;AAwCvD,SAAgB,6BAA6B,CAC3C,OAAoC,EACpC,cAAsB;IAEtB,OAAO;QACL,GAAG,EAAE,CACH,iBAAyB,EACzB,eAAuB,EACvB,6BAAqC,EACrC,OAAqD,EACrD,EAAE,CACF,IAAA,wCAA6B,EAC3B,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,6BAA6B,EAC7B,OAAO,CACR;QACH,MAAM,EAAE,CACN,iBAAyB,EACzB,eAAuB,EACvB,6BAAqC,EACrC,QAA2C,EAC3C,OAAwD,EACxD,EAAE,CACF,IAAA,2CAAgC,EAC9B,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,6BAA6B,EAC7B,QAAQ,EACR,OAAO,CACR;QACH,MAAM,EAAE,CACN,iBAAyB,EACzB,eAAuB,EACvB,6BAAqC,EACrC,OAAwD,EACxD,EAAE,CACF,IAAA,2CAAgC,EAC9B,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,6BAA6B,EAC7B,OAAO,CACR;QACH,iBAAiB,EAAE,CACjB,iBAAyB,EACzB,eAAuB,EACvB,OAAmE,EACnE,EAAE,CACF,IAAA,sDAA2C,EACzC,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR;KACJ,CAAC;AACJ,CAAC;AAED,SAAgB,uCAAuC,CACrD,OAAoC,EACpC,cAAsB;IAEtB,yBACK,6BAA6B,CAAC,OAAO,EAAE,cAAc,CAAC,EACzD;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { HealthDataAIServicesContext } from \"../../api/healthDataAIServicesContext.js\";\nimport {\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsCreateOptionalParams,\n PrivateEndpointConnectionsDeleteOptionalParams,\n PrivateEndpointConnectionsListByDeidServiceOptionalParams,\n} from \"../../api/options.js\";\nimport {\n privateEndpointConnectionsGet,\n privateEndpointConnectionsCreate,\n privateEndpointConnectionsDelete,\n privateEndpointConnectionsListByDeidService,\n} from \"../../api/privateEndpointConnections/index.js\";\nimport { PrivateEndpointConnectionResource } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a PrivateEndpointConnections operations. */\nexport interface PrivateEndpointConnectionsOperations {\n /** Get a specific private connection */\n get: (\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ) => Promise<PrivateEndpointConnectionResource>;\n /** Create a Private endpoint connection */\n create: (\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n resource: PrivateEndpointConnectionResource,\n options?: PrivateEndpointConnectionsCreateOptionalParams,\n ) => PollerLike<\n OperationState<PrivateEndpointConnectionResource>,\n PrivateEndpointConnectionResource\n >;\n /** Delete the private endpoint connection */\n delete: (\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ) => PollerLike<OperationState<void>, void>;\n /** List private endpoint connections on the given resource */\n listByDeidService: (\n resourceGroupName: string,\n deidServiceName: string,\n options?: PrivateEndpointConnectionsListByDeidServiceOptionalParams,\n ) => PagedAsyncIterableIterator<PrivateEndpointConnectionResource>;\n}\n\nexport function getPrivateEndpointConnections(\n context: HealthDataAIServicesContext,\n subscriptionId: string,\n) {\n return {\n get: (\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ) =>\n privateEndpointConnectionsGet(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n privateEndpointConnectionName,\n options,\n ),\n create: (\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n resource: PrivateEndpointConnectionResource,\n options?: PrivateEndpointConnectionsCreateOptionalParams,\n ) =>\n privateEndpointConnectionsCreate(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n privateEndpointConnectionName,\n resource,\n options,\n ),\n delete: (\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ) =>\n privateEndpointConnectionsDelete(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n privateEndpointConnectionName,\n options,\n ),\n listByDeidService: (\n resourceGroupName: string,\n deidServiceName: string,\n options?: PrivateEndpointConnectionsListByDeidServiceOptionalParams,\n ) =>\n privateEndpointConnectionsListByDeidService(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n options,\n ),\n };\n}\n\nexport function getPrivateEndpointConnectionsOperations(\n context: HealthDataAIServicesContext,\n subscriptionId: string,\n): PrivateEndpointConnectionsOperations {\n return {\n ...getPrivateEndpointConnections(context, subscriptionId),\n };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/privateEndpointConnections/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAsDlC,sEA8DC;AAED,0FAOC;AApHD,4EAKuD;AAwCvD,SAAgB,6BAA6B,CAC3C,OAAoC,EACpC,cAAsB;IAEtB,OAAO;QACL,GAAG,EAAE,CACH,iBAAyB,EACzB,eAAuB,EACvB,6BAAqC,EACrC,OAAqD,EACrD,EAAE,CACF,IAAA,wCAA6B,EAC3B,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,6BAA6B,EAC7B,OAAO,CACR;QACH,MAAM,EAAE,CACN,iBAAyB,EACzB,eAAuB,EACvB,6BAAqC,EACrC,QAA2C,EAC3C,OAAwD,EACxD,EAAE,CACF,IAAA,2CAAgC,EAC9B,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,6BAA6B,EAC7B,QAAQ,EACR,OAAO,CACR;QACH,MAAM,EAAE,CACN,iBAAyB,EACzB,eAAuB,EACvB,6BAAqC,EACrC,OAAwD,EACxD,EAAE,CACF,IAAA,2CAAgC,EAC9B,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,6BAA6B,EAC7B,OAAO,CACR;QACH,iBAAiB,EAAE,CACjB,iBAAyB,EACzB,eAAuB,EACvB,OAAmE,EACnE,EAAE,CACF,IAAA,sDAA2C,EACzC,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR;KACJ,CAAC;AACJ,CAAC;AAED,SAAgB,uCAAuC,CACrD,OAAoC,EACpC,cAAsB;IAEtB,OAAO;QACL,GAAG,6BAA6B,CAAC,OAAO,EAAE,cAAc,CAAC;KAC1D,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { HealthDataAIServicesContext } from \"../../api/healthDataAIServicesContext.js\";\nimport {\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsCreateOptionalParams,\n PrivateEndpointConnectionsDeleteOptionalParams,\n PrivateEndpointConnectionsListByDeidServiceOptionalParams,\n} from \"../../api/options.js\";\nimport {\n privateEndpointConnectionsGet,\n privateEndpointConnectionsCreate,\n privateEndpointConnectionsDelete,\n privateEndpointConnectionsListByDeidService,\n} from \"../../api/privateEndpointConnections/index.js\";\nimport { PrivateEndpointConnectionResource } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a PrivateEndpointConnections operations. */\nexport interface PrivateEndpointConnectionsOperations {\n /** Get a specific private connection */\n get: (\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ) => Promise<PrivateEndpointConnectionResource>;\n /** Create a Private endpoint connection */\n create: (\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n resource: PrivateEndpointConnectionResource,\n options?: PrivateEndpointConnectionsCreateOptionalParams,\n ) => PollerLike<\n OperationState<PrivateEndpointConnectionResource>,\n PrivateEndpointConnectionResource\n >;\n /** Delete the private endpoint connection */\n delete: (\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ) => PollerLike<OperationState<void>, void>;\n /** List private endpoint connections on the given resource */\n listByDeidService: (\n resourceGroupName: string,\n deidServiceName: string,\n options?: PrivateEndpointConnectionsListByDeidServiceOptionalParams,\n ) => PagedAsyncIterableIterator<PrivateEndpointConnectionResource>;\n}\n\nexport function getPrivateEndpointConnections(\n context: HealthDataAIServicesContext,\n subscriptionId: string,\n) {\n return {\n get: (\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ) =>\n privateEndpointConnectionsGet(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n privateEndpointConnectionName,\n options,\n ),\n create: (\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n resource: PrivateEndpointConnectionResource,\n options?: PrivateEndpointConnectionsCreateOptionalParams,\n ) =>\n privateEndpointConnectionsCreate(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n privateEndpointConnectionName,\n resource,\n options,\n ),\n delete: (\n resourceGroupName: string,\n deidServiceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ) =>\n privateEndpointConnectionsDelete(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n privateEndpointConnectionName,\n options,\n ),\n listByDeidService: (\n resourceGroupName: string,\n deidServiceName: string,\n options?: PrivateEndpointConnectionsListByDeidServiceOptionalParams,\n ) =>\n privateEndpointConnectionsListByDeidService(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n options,\n ),\n };\n}\n\nexport function getPrivateEndpointConnectionsOperations(\n context: HealthDataAIServicesContext,\n subscriptionId: string,\n): PrivateEndpointConnectionsOperations {\n return {\n ...getPrivateEndpointConnections(context, subscriptionId),\n };\n}\n"]}
@@ -11,6 +11,8 @@ function getPrivateLinks(context, subscriptionId) {
11
11
  };
12
12
  }
13
13
  function getPrivateLinksOperations(context, subscriptionId) {
14
- return Object.assign({}, getPrivateLinks(context, subscriptionId));
14
+ return {
15
+ ...getPrivateLinks(context, subscriptionId),
16
+ };
15
17
  }
16
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/privateLinks/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,0CAeC;AAED,8DAOC;AAtCD,8DAAgF;AAchF,SAAgB,eAAe,CAAC,OAAoC,EAAE,cAAsB;IAC1F,OAAO;QACL,iBAAiB,EAAE,CACjB,iBAAyB,EACzB,eAAuB,EACvB,OAAqD,EACrD,EAAE,CACF,IAAA,wCAA6B,EAC3B,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR;KACJ,CAAC;AACJ,CAAC;AAED,SAAgB,yBAAyB,CACvC,OAAoC,EACpC,cAAsB;IAEtB,yBACK,eAAe,CAAC,OAAO,EAAE,cAAc,CAAC,EAC3C;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { HealthDataAIServicesContext } from \"../../api/healthDataAIServicesContext.js\";\nimport { PrivateLinksListByDeidServiceOptionalParams } from \"../../api/options.js\";\nimport { privateLinksListByDeidService } from \"../../api/privateLinks/index.js\";\nimport { PrivateLinkResource } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a PrivateLinks operations. */\nexport interface PrivateLinksOperations {\n /** List private links on the given resource */\n listByDeidService: (\n resourceGroupName: string,\n deidServiceName: string,\n options?: PrivateLinksListByDeidServiceOptionalParams,\n ) => PagedAsyncIterableIterator<PrivateLinkResource>;\n}\n\nexport function getPrivateLinks(context: HealthDataAIServicesContext, subscriptionId: string) {\n return {\n listByDeidService: (\n resourceGroupName: string,\n deidServiceName: string,\n options?: PrivateLinksListByDeidServiceOptionalParams,\n ) =>\n privateLinksListByDeidService(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n options,\n ),\n };\n}\n\nexport function getPrivateLinksOperations(\n context: HealthDataAIServicesContext,\n subscriptionId: string,\n): PrivateLinksOperations {\n return {\n ...getPrivateLinks(context, subscriptionId),\n };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/privateLinks/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,0CAeC;AAED,8DAOC;AAtCD,8DAAgF;AAchF,SAAgB,eAAe,CAAC,OAAoC,EAAE,cAAsB;IAC1F,OAAO;QACL,iBAAiB,EAAE,CACjB,iBAAyB,EACzB,eAAuB,EACvB,OAAqD,EACrD,EAAE,CACF,IAAA,wCAA6B,EAC3B,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR;KACJ,CAAC;AACJ,CAAC;AAED,SAAgB,yBAAyB,CACvC,OAAoC,EACpC,cAAsB;IAEtB,OAAO;QACL,GAAG,eAAe,CAAC,OAAO,EAAE,cAAc,CAAC;KAC5C,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { HealthDataAIServicesContext } from \"../../api/healthDataAIServicesContext.js\";\nimport { PrivateLinksListByDeidServiceOptionalParams } from \"../../api/options.js\";\nimport { privateLinksListByDeidService } from \"../../api/privateLinks/index.js\";\nimport { PrivateLinkResource } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a PrivateLinks operations. */\nexport interface PrivateLinksOperations {\n /** List private links on the given resource */\n listByDeidService: (\n resourceGroupName: string,\n deidServiceName: string,\n options?: PrivateLinksListByDeidServiceOptionalParams,\n ) => PagedAsyncIterableIterator<PrivateLinkResource>;\n}\n\nexport function getPrivateLinks(context: HealthDataAIServicesContext, subscriptionId: string) {\n return {\n listByDeidService: (\n resourceGroupName: string,\n deidServiceName: string,\n options?: PrivateLinksListByDeidServiceOptionalParams,\n ) =>\n privateLinksListByDeidService(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n options,\n ),\n };\n}\n\nexport function getPrivateLinksOperations(\n context: HealthDataAIServicesContext,\n subscriptionId: string,\n): PrivateLinksOperations {\n return {\n ...getPrivateLinks(context, subscriptionId),\n };\n}\n"]}
@@ -9,19 +9,32 @@ const index_js_3 = require("./classic/privateEndpointConnections/index.js");
9
9
  const index_js_4 = require("./classic/privateLinks/index.js");
10
10
  const index_js_5 = require("./api/index.js");
11
11
  class HealthDataAIServicesClient {
12
+ _client;
13
+ /** The pipeline used by this client to make requests */
14
+ pipeline;
12
15
  constructor(credential, subscriptionId, options = {}) {
13
- var _a;
14
- const prefixFromOptions = (_a = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _a === void 0 ? void 0 : _a.userAgentPrefix;
16
+ const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
15
17
  const userAgentPrefix = prefixFromOptions
16
18
  ? `${prefixFromOptions} azsdk-js-client`
17
19
  : `azsdk-js-client`;
18
- this._client = (0, index_js_5.createHealthDataAIServices)(credential, Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix } }));
20
+ this._client = (0, index_js_5.createHealthDataAIServices)(credential, {
21
+ ...options,
22
+ userAgentOptions: { userAgentPrefix },
23
+ });
19
24
  this.pipeline = this._client.pipeline;
20
25
  this.operations = (0, index_js_1.getOperationsOperations)(this._client);
21
26
  this.deidServices = (0, index_js_2.getDeidServicesOperations)(this._client, subscriptionId);
22
27
  this.privateEndpointConnections = (0, index_js_3.getPrivateEndpointConnectionsOperations)(this._client, subscriptionId);
23
28
  this.privateLinks = (0, index_js_4.getPrivateLinksOperations)(this._client, subscriptionId);
24
29
  }
30
+ /** The operation groups for Operations */
31
+ operations;
32
+ /** The operation groups for DeidServices */
33
+ deidServices;
34
+ /** The operation groups for PrivateEndpointConnections */
35
+ privateEndpointConnections;
36
+ /** The operation groups for PrivateLinks */
37
+ privateLinks;
25
38
  }
26
39
  exports.HealthDataAIServicesClient = HealthDataAIServicesClient;
27
40
  //# sourceMappingURL=healthDataAIServicesClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"healthDataAIServicesClient.js","sourceRoot":"","sources":["../../src/healthDataAIServicesClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,4DAA8F;AAC9F,8DAAoG;AACpG,4EAGuD;AACvD,8DAAoG;AACpG,6CAIwB;AAMxB,MAAa,0BAA0B;IAKrC,YACE,UAA2B,EAC3B,cAAsB,EACtB,UAAoD,EAAE;;QAEtD,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,0CAAE,eAAe,CAAC;QACrE,MAAM,eAAe,GAAG,iBAAiB;YACvC,CAAC,CAAC,GAAG,iBAAiB,kBAAkB;YACxC,CAAC,CAAC,iBAAiB,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,IAAA,qCAA0B,EAAC,UAAU,kCAC/C,OAAO,KACV,gBAAgB,EAAE,EAAE,eAAe,EAAE,IACrC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,IAAA,kCAAuB,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxD,IAAI,CAAC,YAAY,GAAG,IAAA,oCAAyB,EAAC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;QAC5E,IAAI,CAAC,0BAA0B,GAAG,IAAA,kDAAuC,EACvE,IAAI,CAAC,OAAO,EACZ,cAAc,CACf,CAAC;QACF,IAAI,CAAC,YAAY,GAAG,IAAA,oCAAyB,EAAC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;IAC9E,CAAC;CAUF;AApCD,gEAoCC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { getOperationsOperations, OperationsOperations } from \"./classic/operations/index.js\";\nimport { getDeidServicesOperations, DeidServicesOperations } from \"./classic/deidServices/index.js\";\nimport {\n getPrivateEndpointConnectionsOperations,\n PrivateEndpointConnectionsOperations,\n} from \"./classic/privateEndpointConnections/index.js\";\nimport { getPrivateLinksOperations, PrivateLinksOperations } from \"./classic/privateLinks/index.js\";\nimport {\n createHealthDataAIServices,\n HealthDataAIServicesContext,\n HealthDataAIServicesClientOptionalParams,\n} from \"./api/index.js\";\nimport { Pipeline } from \"@azure/core-rest-pipeline\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport { HealthDataAIServicesClientOptionalParams } from \"./api/healthDataAIServicesContext.js\";\n\nexport class HealthDataAIServicesClient {\n private _client: HealthDataAIServicesContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options: HealthDataAIServicesClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createHealthDataAIServices(credential, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n this.operations = getOperationsOperations(this._client);\n this.deidServices = getDeidServicesOperations(this._client, subscriptionId);\n this.privateEndpointConnections = getPrivateEndpointConnectionsOperations(\n this._client,\n subscriptionId,\n );\n this.privateLinks = getPrivateLinksOperations(this._client, subscriptionId);\n }\n\n /** The operation groups for Operations */\n public readonly operations: OperationsOperations;\n /** The operation groups for DeidServices */\n public readonly deidServices: DeidServicesOperations;\n /** The operation groups for PrivateEndpointConnections */\n public readonly privateEndpointConnections: PrivateEndpointConnectionsOperations;\n /** The operation groups for PrivateLinks */\n public readonly privateLinks: PrivateLinksOperations;\n}\n"]}
1
+ {"version":3,"file":"healthDataAIServicesClient.js","sourceRoot":"","sources":["../../src/healthDataAIServicesClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,4DAA8F;AAC9F,8DAAoG;AACpG,4EAGuD;AACvD,8DAAoG;AACpG,6CAIwB;AAMxB,MAAa,0BAA0B;IAC7B,OAAO,CAA8B;IAC7C,wDAAwD;IACxC,QAAQ,CAAW;IAEnC,YACE,UAA2B,EAC3B,cAAsB,EACtB,UAAoD,EAAE;QAEtD,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;QACrE,MAAM,eAAe,GAAG,iBAAiB;YACvC,CAAC,CAAC,GAAG,iBAAiB,kBAAkB;YACxC,CAAC,CAAC,iBAAiB,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,IAAA,qCAA0B,EAAC,UAAU,EAAE;YACpD,GAAG,OAAO;YACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;SACtC,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,IAAA,kCAAuB,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxD,IAAI,CAAC,YAAY,GAAG,IAAA,oCAAyB,EAAC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;QAC5E,IAAI,CAAC,0BAA0B,GAAG,IAAA,kDAAuC,EACvE,IAAI,CAAC,OAAO,EACZ,cAAc,CACf,CAAC;QACF,IAAI,CAAC,YAAY,GAAG,IAAA,oCAAyB,EAAC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;IAC9E,CAAC;IAED,0CAA0C;IAC1B,UAAU,CAAuB;IACjD,4CAA4C;IAC5B,YAAY,CAAyB;IACrD,0DAA0D;IAC1C,0BAA0B,CAAuC;IACjF,4CAA4C;IAC5B,YAAY,CAAyB;CACtD;AApCD,gEAoCC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { getOperationsOperations, OperationsOperations } from \"./classic/operations/index.js\";\nimport { getDeidServicesOperations, DeidServicesOperations } from \"./classic/deidServices/index.js\";\nimport {\n getPrivateEndpointConnectionsOperations,\n PrivateEndpointConnectionsOperations,\n} from \"./classic/privateEndpointConnections/index.js\";\nimport { getPrivateLinksOperations, PrivateLinksOperations } from \"./classic/privateLinks/index.js\";\nimport {\n createHealthDataAIServices,\n HealthDataAIServicesContext,\n HealthDataAIServicesClientOptionalParams,\n} from \"./api/index.js\";\nimport { Pipeline } from \"@azure/core-rest-pipeline\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport { HealthDataAIServicesClientOptionalParams } from \"./api/healthDataAIServicesContext.js\";\n\nexport class HealthDataAIServicesClient {\n private _client: HealthDataAIServicesContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options: HealthDataAIServicesClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createHealthDataAIServices(credential, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n this.operations = getOperationsOperations(this._client);\n this.deidServices = getDeidServicesOperations(this._client, subscriptionId);\n this.privateEndpointConnections = getPrivateEndpointConnectionsOperations(\n this._client,\n subscriptionId,\n );\n this.privateLinks = getPrivateLinksOperations(this._client, subscriptionId);\n }\n\n /** The operation groups for Operations */\n public readonly operations: OperationsOperations;\n /** The operation groups for DeidServices */\n public readonly deidServices: DeidServicesOperations;\n /** The operation groups for PrivateEndpointConnections */\n public readonly privateEndpointConnections: PrivateEndpointConnectionsOperations;\n /** The operation groups for PrivateLinks */\n public readonly privateLinks: PrivateLinksOperations;\n}\n"]}
@@ -13,21 +13,20 @@ const core_lro_1 = require("@azure/core-lro");
13
13
  * needs to be constructed after the original one is not in scope.
14
14
  */
15
15
  function restorePoller(client, serializedState, sourceOperation, options) {
16
- var _a, _b, _c;
17
16
  const pollerConfig = (0, core_lro_1.deserializeState)(serializedState).config;
18
17
  const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
19
18
  if (!initialRequestUrl || !requestMethod) {
20
- throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}`);
19
+ throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`);
21
20
  }
22
- const resourceLocationConfig = metadata === null || metadata === void 0 ? void 0 : metadata["resourceLocationConfig"];
23
- const { deserializer, expectedStatuses = [] } = (_a = getDeserializationHelper(initialRequestUrl, requestMethod)) !== null && _a !== void 0 ? _a : {};
24
- const deserializeHelper = (_b = options === null || options === void 0 ? void 0 : options.processResponseBody) !== null && _b !== void 0 ? _b : deserializer;
21
+ const resourceLocationConfig = metadata?.["resourceLocationConfig"];
22
+ const { deserializer, expectedStatuses = [] } = getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};
23
+ const deserializeHelper = options?.processResponseBody ?? deserializer;
25
24
  if (!deserializeHelper) {
26
- throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}.`);
25
+ throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`);
27
26
  }
28
- return (0, pollingHelpers_js_1.getLongRunningPoller)((_c = client["_client"]) !== null && _c !== void 0 ? _c : client, deserializeHelper, expectedStatuses, {
29
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
30
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
27
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(client["_client"] ?? client, deserializeHelper, expectedStatuses, {
28
+ updateIntervalInMs: options?.updateIntervalInMs,
29
+ abortSignal: options?.abortSignal,
31
30
  resourceLocationConfig,
32
31
  restoreFrom: serializedState,
33
32
  initialRequestUrl,
@@ -56,7 +55,6 @@ const deserializeMap = {
56
55
  },
57
56
  };
58
57
  function getDeserializationHelper(urlStr, method) {
59
- var _a, _b, _c, _d;
60
58
  const path = new URL(urlStr).pathname;
61
59
  const pathParts = path.split("/");
62
60
  // Traverse list to match the longest candidate
@@ -76,13 +74,13 @@ function getDeserializationHelper(urlStr, method) {
76
74
  // track if we have found a match to return the values found.
77
75
  let found = true;
78
76
  for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
79
- if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
80
- const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
77
+ if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
78
+ const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
81
79
  // If the current part of the candidate is a "template" part
82
80
  // Try to use the suffix of pattern to match the path
83
81
  // {guid} ==> $
84
82
  // {guid}:export ==> :export$
85
- const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
83
+ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || "");
86
84
  if (!isMatched) {
87
85
  found = false;
88
86
  break;
@@ -1 +1 @@
1
- {"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAyClC,sCAoCC;AA1ED,0DAIqC;AACrC,wEAGmD;AACnD,0EAA0E;AAG1E,8CAKyB;AAgBzB;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,MAAkC,EAClC,eAAuB,EACvB,eAAiF,EACjF,OAAuC;;IAEvC,MAAM,YAAY,GAAG,IAAA,2BAAgB,EAAC,eAAe,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC;IACpE,IAAI,CAAC,iBAAiB,IAAI,C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AK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { HealthDataAIServicesClient } from \"./healthDataAIServicesClient.js\";\nimport {\n _deidServicesCreateDeserialize,\n _deidServicesUpdateDeserialize,\n _deidServicesDeleteDeserialize,\n} from \"./api/deidServices/index.js\";\nimport {\n _privateEndpointConnectionsCreateDeserialize,\n _privateEndpointConnectionsDeleteDeserialize,\n} from \"./api/privateEndpointConnections/index.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: HealthDataAIServicesClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\":\n {\n deserializer: _deidServicesCreateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\":\n {\n deserializer: _deidServicesUpdateDeserialize,\n expectedStatuses: [\"200\", \"202\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\":\n {\n deserializer: _deidServicesDeleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n {\n deserializer: _privateEndpointConnectionsCreateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n {\n deserializer: _privateEndpointConnectionsDeleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
1
+ {"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mapp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AAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { HealthDataAIServicesClient } from \"./healthDataAIServicesClient.js\";\nimport {\n _deidServicesCreateDeserialize,\n _deidServicesUpdateDeserialize,\n _deidServicesDeleteDeserialize,\n} from \"./api/deidServices/index.js\";\nimport {\n _privateEndpointConnectionsCreateDeserialize,\n _privateEndpointConnectionsDeleteDeserialize,\n} from \"./api/privateEndpointConnections/index.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: HealthDataAIServicesClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\":\n {\n deserializer: _deidServicesCreateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\":\n {\n deserializer: _deidServicesUpdateDeserialize,\n expectedStatuses: [\"200\", \"202\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\":\n {\n deserializer: _deidServicesDeleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n {\n deserializer: _privateEndpointConnectionsCreateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n {\n deserializer: _privateEndpointConnectionsDeleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}