@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
@@ -7,7 +7,7 @@ import { createRestError, operationOptionsToRequestParameters, } from "@azure-re
7
7
  export function _deidServicesGetSend(context, subscriptionId, resourceGroupName, deidServiceName, options = { requestOptions: {} }) {
8
8
  return context
9
9
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}", subscriptionId, resourceGroupName, deidServiceName)
10
- .get(Object.assign({}, operationOptionsToRequestParameters(options)));
10
+ .get({ ...operationOptionsToRequestParameters(options) });
11
11
  }
12
12
  export async function _deidServicesGetDeserialize(result) {
13
13
  const expectedStatuses = ["200"];
@@ -26,7 +26,7 @@ export function _deidServicesListByResourceGroupSend(context, subscriptionId, re
26
26
  }) {
27
27
  return context
28
28
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices", subscriptionId, resourceGroupName)
29
- .get(Object.assign({}, operationOptionsToRequestParameters(options)));
29
+ .get({ ...operationOptionsToRequestParameters(options) });
30
30
  }
31
31
  export async function _deidServicesListByResourceGroupDeserialize(result) {
32
32
  const expectedStatuses = ["200"];
@@ -46,7 +46,7 @@ export function _deidServicesListBySubscriptionSend(context, subscriptionId, opt
46
46
  }) {
47
47
  return context
48
48
  .path("/subscriptions/{subscriptionId}/providers/Microsoft.HealthDataAIServices/deidServices", subscriptionId)
49
- .get(Object.assign({}, operationOptionsToRequestParameters(options)));
49
+ .get({ ...operationOptionsToRequestParameters(options) });
50
50
  }
51
51
  export async function _deidServicesListBySubscriptionDeserialize(result) {
52
52
  const expectedStatuses = ["200"];
@@ -64,7 +64,10 @@ export function deidServicesListBySubscription(context, subscriptionId, options
64
64
  export function _deidServicesCreateSend(context, subscriptionId, resourceGroupName, deidServiceName, resource, options = { requestOptions: {} }) {
65
65
  return context
66
66
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}", subscriptionId, resourceGroupName, deidServiceName)
67
- .put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { body: deidServiceSerializer(resource) }));
67
+ .put({
68
+ ...operationOptionsToRequestParameters(options),
69
+ body: deidServiceSerializer(resource),
70
+ });
68
71
  }
69
72
  export async function _deidServicesCreateDeserialize(result) {
70
73
  const expectedStatuses = ["200", "201"];
@@ -76,8 +79,8 @@ export async function _deidServicesCreateDeserialize(result) {
76
79
  /** Create a DeidService */
77
80
  export function deidServicesCreate(context, subscriptionId, resourceGroupName, deidServiceName, resource, options = { requestOptions: {} }) {
78
81
  return getLongRunningPoller(context, _deidServicesCreateDeserialize, ["200", "201"], {
79
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
80
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
82
+ updateIntervalInMs: options?.updateIntervalInMs,
83
+ abortSignal: options?.abortSignal,
81
84
  getInitialResponse: () => _deidServicesCreateSend(context, subscriptionId, resourceGroupName, deidServiceName, resource, options),
82
85
  resourceLocationConfig: "azure-async-operation",
83
86
  });
@@ -85,7 +88,10 @@ export function deidServicesCreate(context, subscriptionId, resourceGroupName, d
85
88
  export function _deidServicesUpdateSend(context, subscriptionId, resourceGroupName, deidServiceName, properties, options = { requestOptions: {} }) {
86
89
  return context
87
90
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}", subscriptionId, resourceGroupName, deidServiceName)
88
- .patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { body: deidUpdateSerializer(properties) }));
91
+ .patch({
92
+ ...operationOptionsToRequestParameters(options),
93
+ body: deidUpdateSerializer(properties),
94
+ });
89
95
  }
90
96
  export async function _deidServicesUpdateDeserialize(result) {
91
97
  const expectedStatuses = ["200", "202"];
@@ -97,8 +103,8 @@ export async function _deidServicesUpdateDeserialize(result) {
97
103
  /** Update a DeidService */
98
104
  export function deidServicesUpdate(context, subscriptionId, resourceGroupName, deidServiceName, properties, options = { requestOptions: {} }) {
99
105
  return getLongRunningPoller(context, _deidServicesUpdateDeserialize, ["200", "202"], {
100
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
101
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
106
+ updateIntervalInMs: options?.updateIntervalInMs,
107
+ abortSignal: options?.abortSignal,
102
108
  getInitialResponse: () => _deidServicesUpdateSend(context, subscriptionId, resourceGroupName, deidServiceName, properties, options),
103
109
  resourceLocationConfig: "location",
104
110
  });
@@ -106,7 +112,7 @@ export function deidServicesUpdate(context, subscriptionId, resourceGroupName, d
106
112
  export function _deidServicesDeleteSend(context, subscriptionId, resourceGroupName, deidServiceName, options = { requestOptions: {} }) {
107
113
  return context
108
114
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}", subscriptionId, resourceGroupName, deidServiceName)
109
- .delete(Object.assign({}, operationOptionsToRequestParameters(options)));
115
+ .delete({ ...operationOptionsToRequestParameters(options) });
110
116
  }
111
117
  export async function _deidServicesDeleteDeserialize(result) {
112
118
  const expectedStatuses = ["202", "204", "200"];
@@ -118,8 +124,8 @@ export async function _deidServicesDeleteDeserialize(result) {
118
124
  /** Delete a DeidService */
119
125
  export function deidServicesDelete(context, subscriptionId, resourceGroupName, deidServiceName, options = { requestOptions: {} }) {
120
126
  return getLongRunningPoller(context, _deidServicesDeleteDeserialize, ["202", "204", "200"], {
121
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
122
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
127
+ updateIntervalInMs: options?.updateIntervalInMs,
128
+ abortSignal: options?.abortSignal,
123
129
  getInitialResponse: () => _deidServicesDeleteSend(context, subscriptionId, resourceGroupName, deidServiceName, options),
124
130
  resourceLocationConfig: "location",
125
131
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/deidServices/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,OAAO,EAEL,qBAAqB,EACrB,uBAAuB,EAEvB,kCAAkC,EAElC,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,oBAAoB,CAClC,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,UAAyC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE/D,OAAO,OAAO;SACX,IAAI,CACH,4IAA4I,EAC5I,cAAc,EACd,iBAAiB,EACjB,eAAe,CAChB;SACA,GAAG,mBAAM,mCAAmC,CAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAC/C,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QA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EAAG,CAAC;AACjE,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAAC,MAA6B;IAChF,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC/C,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO;AACT,CAAC;AAED,2BAA2B;AAC3B,MAAM,UAAU,kBAAkB,CAChC,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,UAA4C,EAAE,cAAc,EAAE,EAAE,EAAE;IAElE,OAAO,oBAAoB,CAAC,OAAO,EAAE,8BAA8B,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE;QAC1F,kBAAkB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB;QAC/C,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW;QACjC,kBAAkB,EAAE,GAAG,EAAE,CACvB,uBAAuB,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,OAAO,CAAC;QAC/F,sBAAsB,EAAE,UAAU;KACnC,CAA2C,CAAC;AAC/C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n HealthDataAIServicesContext as Client,\n DeidServicesCreateOptionalParams,\n DeidServicesDeleteOptionalParams,\n DeidServicesGetOptionalParams,\n DeidServicesListByResourceGroupOptionalParams,\n DeidServicesListBySubscriptionOptionalParams,\n DeidServicesUpdateOptionalParams,\n} from \"../index.js\";\nimport {\n DeidService,\n deidServiceSerializer,\n deidServiceDeserializer,\n _DeidServiceListResult,\n _deidServiceListResultDeserializer,\n DeidUpdate,\n deidUpdateSerializer,\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 _deidServicesGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n options: DeidServicesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\",\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _deidServicesGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<DeidService> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return deidServiceDeserializer(result.body);\n}\n\n/** Get a DeidService */\nexport async function deidServicesGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n options: DeidServicesGetOptionalParams = { requestOptions: {} },\n): Promise<DeidService> {\n const result = await _deidServicesGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n options,\n );\n return _deidServicesGetDeserialize(result);\n}\n\nexport function _deidServicesListByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: DeidServicesListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices\",\n subscriptionId,\n resourceGroupName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _deidServicesListByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_DeidServiceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _deidServiceListResultDeserializer(result.body);\n}\n\n/** List DeidService resources by resource group */\nexport function deidServicesListByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: DeidServicesListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<DeidService> {\n return buildPagedAsyncIterator(\n context,\n () => _deidServicesListByResourceGroupSend(context, subscriptionId, resourceGroupName, options),\n _deidServicesListByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _deidServicesListBySubscriptionSend(\n context: Client,\n subscriptionId: string,\n options: DeidServicesListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.HealthDataAIServices/deidServices\",\n subscriptionId,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _deidServicesListBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_DeidServiceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _deidServiceListResultDeserializer(result.body);\n}\n\n/** List DeidService resources by subscription ID */\nexport function deidServicesListBySubscription(\n context: Client,\n subscriptionId: string,\n options: DeidServicesListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<DeidService> {\n return buildPagedAsyncIterator(\n context,\n () => _deidServicesListBySubscriptionSend(context, subscriptionId, options),\n _deidServicesListBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _deidServicesCreateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n resource: DeidService,\n options: DeidServicesCreateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\",\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: deidServiceSerializer(resource),\n });\n}\n\nexport async function _deidServicesCreateDeserialize(\n result: PathUncheckedResponse,\n): Promise<DeidService> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return deidServiceDeserializer(result.body);\n}\n\n/** Create a DeidService */\nexport function deidServicesCreate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n resource: DeidService,\n options: DeidServicesCreateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<DeidService>, DeidService> {\n return getLongRunningPoller(context, _deidServicesCreateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _deidServicesCreateSend(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<DeidService>, DeidService>;\n}\n\nexport function _deidServicesUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n properties: DeidUpdate,\n options: DeidServicesUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\",\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n )\n .patch({\n ...operationOptionsToRequestParameters(options),\n body: deidUpdateSerializer(properties),\n });\n}\n\nexport async function _deidServicesUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<DeidService> {\n const expectedStatuses = [\"200\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return deidServiceDeserializer(result.body);\n}\n\n/** Update a DeidService */\nexport function deidServicesUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n properties: DeidUpdate,\n options: DeidServicesUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<DeidService>, DeidService> {\n return getLongRunningPoller(context, _deidServicesUpdateDeserialize, [\"200\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _deidServicesUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n properties,\n options,\n ),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<DeidService>, DeidService>;\n}\n\nexport function _deidServicesDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n options: DeidServicesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\",\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _deidServicesDeleteDeserialize(result: PathUncheckedResponse): 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 a DeidService */\nexport function deidServicesDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n options: DeidServicesDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _deidServicesDeleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _deidServicesDeleteSend(context, subscriptionId, resourceGroupName, deidServiceName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/deidServices/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,OAAO,EAEL,qBAAqB,EACrB,uBAAuB,EAEvB,kCAAkC,EAElC,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,oBAAoB,CAClC,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,UAAyC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE/D,OAAO,OAAO;SACX,IAAI,CACH,4IAA4I,EAC5I,cAAc,EACd,iBAAiB,EACjB,eAAe,CAChB;SACA,GAAG,CAAC,EAAE,GAAG,mCAAmC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAC/C,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,uBAAuB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC9C,CAAC;AAED,wBAAwB;AACxB,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,UAAyC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE/D,MAAM,MAAM,GAAG,MAAM,oBAAoB,CACvC,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR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AAE,EAAE;IAElE,OAAO,oBAAoB,CAAC,OAAO,EAAE,8BAA8B,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE;QAC1F,kBAAkB,EAAE,OAAO,EAAE,kBAAkB;QAC/C,WAAW,EAAE,OAAO,EAAE,WAAW;QACjC,kBAAkB,EAAE,GAAG,EAAE,CACvB,uBAAuB,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,OAAO,CAAC;QAC/F,sBAAsB,EAAE,UAAU;KACnC,CAA2C,CAAC;AAC/C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n HealthDataAIServicesContext as Client,\n DeidServicesCreateOptionalParams,\n DeidServicesDeleteOptionalParams,\n DeidServicesGetOptionalParams,\n DeidServicesListByResourceGroupOptionalParams,\n DeidServicesListBySubscriptionOptionalParams,\n DeidServicesUpdateOptionalParams,\n} from \"../index.js\";\nimport {\n DeidService,\n deidServiceSerializer,\n deidServiceDeserializer,\n _DeidServiceListResult,\n _deidServiceListResultDeserializer,\n DeidUpdate,\n deidUpdateSerializer,\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 _deidServicesGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n options: DeidServicesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\",\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _deidServicesGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<DeidService> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return deidServiceDeserializer(result.body);\n}\n\n/** Get a DeidService */\nexport async function deidServicesGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n options: DeidServicesGetOptionalParams = { requestOptions: {} },\n): Promise<DeidService> {\n const result = await _deidServicesGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n options,\n );\n return _deidServicesGetDeserialize(result);\n}\n\nexport function _deidServicesListByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: DeidServicesListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices\",\n subscriptionId,\n resourceGroupName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _deidServicesListByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_DeidServiceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _deidServiceListResultDeserializer(result.body);\n}\n\n/** List DeidService resources by resource group */\nexport function deidServicesListByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: DeidServicesListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<DeidService> {\n return buildPagedAsyncIterator(\n context,\n () => _deidServicesListByResourceGroupSend(context, subscriptionId, resourceGroupName, options),\n _deidServicesListByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _deidServicesListBySubscriptionSend(\n context: Client,\n subscriptionId: string,\n options: DeidServicesListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.HealthDataAIServices/deidServices\",\n subscriptionId,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _deidServicesListBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_DeidServiceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _deidServiceListResultDeserializer(result.body);\n}\n\n/** List DeidService resources by subscription ID */\nexport function deidServicesListBySubscription(\n context: Client,\n subscriptionId: string,\n options: DeidServicesListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<DeidService> {\n return buildPagedAsyncIterator(\n context,\n () => _deidServicesListBySubscriptionSend(context, subscriptionId, options),\n _deidServicesListBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _deidServicesCreateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n resource: DeidService,\n options: DeidServicesCreateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\",\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: deidServiceSerializer(resource),\n });\n}\n\nexport async function _deidServicesCreateDeserialize(\n result: PathUncheckedResponse,\n): Promise<DeidService> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return deidServiceDeserializer(result.body);\n}\n\n/** Create a DeidService */\nexport function deidServicesCreate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n resource: DeidService,\n options: DeidServicesCreateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<DeidService>, DeidService> {\n return getLongRunningPoller(context, _deidServicesCreateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _deidServicesCreateSend(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<DeidService>, DeidService>;\n}\n\nexport function _deidServicesUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n properties: DeidUpdate,\n options: DeidServicesUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\",\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n )\n .patch({\n ...operationOptionsToRequestParameters(options),\n body: deidUpdateSerializer(properties),\n });\n}\n\nexport async function _deidServicesUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<DeidService> {\n const expectedStatuses = [\"200\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return deidServiceDeserializer(result.body);\n}\n\n/** Update a DeidService */\nexport function deidServicesUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n properties: DeidUpdate,\n options: DeidServicesUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<DeidService>, DeidService> {\n return getLongRunningPoller(context, _deidServicesUpdateDeserialize, [\"200\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _deidServicesUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n properties,\n options,\n ),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<DeidService>, DeidService>;\n}\n\nexport function _deidServicesDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n options: DeidServicesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}\",\n subscriptionId,\n resourceGroupName,\n deidServiceName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _deidServicesDeleteDeserialize(result: PathUncheckedResponse): 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 a DeidService */\nexport function deidServicesDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n deidServiceName: string,\n options: DeidServicesDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _deidServicesDeleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _deidServicesDeleteSend(context, subscriptionId, resourceGroupName, deidServiceName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n"]}
@@ -1,22 +1,25 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
- import { __rest } from "tslib";
4
3
  import { logger } from "../logger.js";
5
4
  import { getClient } from "@azure-rest/core-client";
6
5
  export function createHealthDataAIServices(credential, options = {}) {
7
- var _a, _b, _c, _d, _e, _f, _g, _h;
8
- const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : `https://management.azure.com`;
9
- const prefixFromOptions = (_c = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _c === void 0 ? void 0 : _c.userAgentPrefix;
6
+ const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;
7
+ const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
10
8
  const userAgentInfo = `azsdk-js-arm-healthdataaiservices/1.0.0-beta.1`;
11
9
  const userAgentPrefix = prefixFromOptions
12
10
  ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
13
11
  : `azsdk-js-api ${userAgentInfo}`;
14
- 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.info }, credentials: {
15
- scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : [`${endpointUrl}/.default`],
16
- } }), { apiVersion: _ } = _j, updatedOptions = __rest(_j, ["apiVersion"]);
12
+ const { apiVersion: _, ...updatedOptions } = {
13
+ ...options,
14
+ userAgentOptions: { userAgentPrefix },
15
+ loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },
16
+ credentials: {
17
+ scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],
18
+ },
19
+ };
17
20
  const clientContext = getClient(endpointUrl, credential, updatedOptions);
18
21
  clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
19
- const apiVersion = (_h = options.apiVersion) !== null && _h !== void 0 ? _h : "2024-09-20";
22
+ const apiVersion = options.apiVersion ?? "2024-09-20";
20
23
  clientContext.pipeline.addPolicy({
21
24
  name: "ClientApiVersionPolicy",
22
25
  sendRequest: (req, next) => {
@@ -1 +1 @@
1
- {"version":3,"file":"healthDataAIServicesContext.js","sourceRoot":"","sources":["../../../src/api/healthDataAIServicesContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAY3E,MAAM,UAAU,0BAA0B,CACxC,UAA2B,EAC3B,UAAoD,EAAE;;IAEtD,MAAM,WAAW,GAA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,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"]}
1
+ {"version":3,"file":"healthDataAIServicesContext.js","sourceRoot":"","sources":["../../../src/api/healthDataAIServicesContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAY3E,MAAM,UAAU,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,MAAM,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,SAAS,CAAC,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"]}
@@ -6,7 +6,7 @@ import { createRestError, operationOptionsToRequestParameters, } from "@azure-re
6
6
  export function _operationsListSend(context, options = { requestOptions: {} }) {
7
7
  return context
8
8
  .path("/providers/Microsoft.HealthDataAIServices/operations")
9
- .get(Object.assign({}, operationOptionsToRequestParameters(options)));
9
+ .get({ ...operationOptionsToRequestParameters(options) });
10
10
  }
11
11
  export async function _operationsListDeserialize(result) {
12
12
  const expectedStatuses = ["200"];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAEL,gCAAgC,GAEjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,mBAAmB,CACjC,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,OAAO;SACX,IAAI,CAAC,sDAAsD,CAAC;SAC5D,GAAG,mBAAM,mCAAmC,CAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,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,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,gCAAgC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,cAAc,CAC5B,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,uBAAuB,CAC5B,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;AAGlC,OAAO,EAEL,gCAAgC,GAEjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,mBAAmB,CACjC,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,OAAO;SACX,IAAI,CAAC,sDAAsD,CAAC;SAC5D,GAAG,CAAC,EAAE,GAAG,mCAAmC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,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,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,gCAAgC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,cAAc,CAC5B,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,uBAAuB,CAC5B,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"]}
@@ -7,7 +7,7 @@ import { createRestError, operationOptionsToRequestParameters, } from "@azure-re
7
7
  export function _privateEndpointConnectionsGetSend(context, subscriptionId, resourceGroupName, deidServiceName, privateEndpointConnectionName, options = { requestOptions: {} }) {
8
8
  return context
9
9
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", subscriptionId, resourceGroupName, deidServiceName, privateEndpointConnectionName)
10
- .get(Object.assign({}, operationOptionsToRequestParameters(options)));
10
+ .get({ ...operationOptionsToRequestParameters(options) });
11
11
  }
12
12
  export async function _privateEndpointConnectionsGetDeserialize(result) {
13
13
  const expectedStatuses = ["200"];
@@ -26,7 +26,10 @@ export function _privateEndpointConnectionsCreateSend(context, subscriptionId, r
26
26
  }) {
27
27
  return context
28
28
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", subscriptionId, resourceGroupName, deidServiceName, privateEndpointConnectionName)
29
- .put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { body: privateEndpointConnectionResourceSerializer(resource) }));
29
+ .put({
30
+ ...operationOptionsToRequestParameters(options),
31
+ body: privateEndpointConnectionResourceSerializer(resource),
32
+ });
30
33
  }
31
34
  export async function _privateEndpointConnectionsCreateDeserialize(result) {
32
35
  const expectedStatuses = ["200", "201"];
@@ -40,8 +43,8 @@ export function privateEndpointConnectionsCreate(context, subscriptionId, resour
40
43
  requestOptions: {},
41
44
  }) {
42
45
  return getLongRunningPoller(context, _privateEndpointConnectionsCreateDeserialize, ["200", "201"], {
43
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
44
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
46
+ updateIntervalInMs: options?.updateIntervalInMs,
47
+ abortSignal: options?.abortSignal,
45
48
  getInitialResponse: () => _privateEndpointConnectionsCreateSend(context, subscriptionId, resourceGroupName, deidServiceName, privateEndpointConnectionName, resource, options),
46
49
  resourceLocationConfig: "azure-async-operation",
47
50
  });
@@ -51,7 +54,7 @@ export function _privateEndpointConnectionsDeleteSend(context, subscriptionId, r
51
54
  }) {
52
55
  return context
53
56
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", subscriptionId, resourceGroupName, deidServiceName, privateEndpointConnectionName)
54
- .delete(Object.assign({}, operationOptionsToRequestParameters(options)));
57
+ .delete({ ...operationOptionsToRequestParameters(options) });
55
58
  }
56
59
  export async function _privateEndpointConnectionsDeleteDeserialize(result) {
57
60
  const expectedStatuses = ["202", "204", "200"];
@@ -65,8 +68,8 @@ export function privateEndpointConnectionsDelete(context, subscriptionId, resour
65
68
  requestOptions: {},
66
69
  }) {
67
70
  return getLongRunningPoller(context, _privateEndpointConnectionsDeleteDeserialize, ["202", "204", "200"], {
68
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
69
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
71
+ updateIntervalInMs: options?.updateIntervalInMs,
72
+ abortSignal: options?.abortSignal,
70
73
  getInitialResponse: () => _privateEndpointConnectionsDeleteSend(context, subscriptionId, resourceGroupName, deidServiceName, privateEndpointConnectionName, options),
71
74
  resourceLocationConfig: "location",
72
75
  });
@@ -76,7 +79,7 @@ export function _privateEndpointConnectionsListByDeidServiceSend(context, subscr
76
79
  }) {
77
80
  return context
78
81
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections", subscriptionId, resourceGroupName, deidServiceName)
79
- .get(Object.assign({}, operationOptionsToRequestParameters(options)));
82
+ .get({ ...operationOptionsToRequestParameters(options) });
80
83
  }
81
84
  export async function _privateEndpointConnectionsListByDeidServiceDeserialize(result) {
82
85
  const expectedStatuses = ["200"];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/privateEndpointConnections/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EAEL,2CAA2C,EAC3C,6CAA6C,EAE7C,wDAAwD,GACzD,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,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,mBAAM,mCAAmC,CAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,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,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,6CAA6C,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACpE,CAAC;AAED,wCAAwC;AACxC,MAAM,CAAC,KAAK,UAAU,6BAA6B,CACjD,OAAe,EACf,cA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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;AASlC,OAAO,EAEL,2CAA2C,EAC3C,6CAA6C,EAE7C,wDAAwD,GACzD,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAA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CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,wDAAwD,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC/E,CAAC;AAED,8DAA8D;AAC9D,MAAM,UAAU,2CAA2C,CACzD,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,UAAqE;IACnE,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,uBAAuB,CAC5B,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"]}
@@ -6,7 +6,7 @@ import { createRestError, operationOptionsToRequestParameters, } from "@azure-re
6
6
  export function _privateLinksListByDeidServiceSend(context, subscriptionId, resourceGroupName, deidServiceName, options = { requestOptions: {} }) {
7
7
  return context
8
8
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateLinkResources", subscriptionId, resourceGroupName, deidServiceName)
9
- .get(Object.assign({}, operationOptionsToRequestParameters(options)));
9
+ .get({ ...operationOptionsToRequestParameters(options) });
10
10
  }
11
11
  export async function _privateLinksListByDeidServiceDeserialize(result) {
12
12
  const expectedStatuses = ["200"];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/privateLinks/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAEL,0CAA0C,GAE3C,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,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,mCAAmC,CAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,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,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,0CAA0C,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACjE,CAAC;AAED,+CAA+C;AAC/C,MAAM,UAAU,6BAA6B,CAC3C,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7E,OAAO,uBAAuB,CAC5B,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;AAMlC,OAAO,EAEL,0CAA0C,GAE3C,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,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,mCAAmC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,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,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,0CAA0C,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACjE,CAAC;AAED,+CAA+C;AAC/C,MAAM,UAAU,6BAA6B,CAC3C,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,eAAuB,EACvB,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7E,OAAO,uBAAuB,CAC5B,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"]}
@@ -12,6 +12,8 @@ export function getDeidServices(context, subscriptionId) {
12
12
  };
13
13
  }
14
14
  export function getDeidServicesOperations(context, subscriptionId) {
15
- return Object.assign({}, getDeidServices(context, subscriptionId));
15
+ return {
16
+ ...getDeidServices(context, subscriptionId),
17
+ };
16
18
  }
17
19
  //# 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;AAGlC,OAAO,EACL,eAAe,EACf,+BAA+B,EAC/B,8BAA8B,EAC9B,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AAoDzC,MAAM,UAAU,eAAe,CAAC,OAAoC,EAAE,cAAsB;IAC1F,OAAO;QACL,GAAG,EAAE,CACH,iBAAyB,EACzB,eAAuB,EACvB,OAAuC,EACvC,EAAE,CAAC,eAAe,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,OAAO,CAAC;QAC1F,mBAAmB,EAAE,CACnB,iBAAyB,EACzB,OAAuD,EACvD,EAAE,CAAC,+BAA+B,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,OAAO,CAAC;QACzF,kBAAkB,EAAE,CAAC,OAAsD,EAAE,EAAE,CAC7E,8BAA8B,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC;QAClE,MAAM,EAAE,CACN,iBAAyB,EACzB,eAAuB,EACvB,QAAqB,EACrB,OAA0C,EAC1C,EAAE,CACF,kBAAkB,CAChB,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,kBAAkB,CAChB,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,OAAO,CACR;QACH,MAAM,EAAE,CACN,iBAAyB,EACzB,eAAuB,EACvB,OAA0C,EAC1C,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,OAAO,CAAC;KAC9F,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,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;AAGlC,OAAO,EACL,eAAe,EACf,+BAA+B,EAC/B,8BAA8B,EAC9B,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AAoDzC,MAAM,UAAU,eAAe,CAAC,OAAoC,EAAE,cAAsB;IAC1F,OAAO;QACL,GAAG,EAAE,CACH,iBAAyB,EACzB,eAAuB,EACvB,OAAuC,EACvC,EAAE,CAAC,eAAe,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,OAAO,CAAC;QAC1F,mBAAmB,EAAE,CACnB,iBAAyB,EACzB,OAAuD,EACvD,EAAE,CAAC,+BAA+B,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,OAAO,CAAC;QACzF,kBAAkB,EAAE,CAAC,OAAsD,EAAE,EAAE,CAC7E,8BAA8B,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC;QAClE,MAAM,EAAE,CACN,iBAAyB,EACzB,eAAuB,EACvB,QAAqB,EACrB,OAA0C,EAC1C,EAAE,CACF,kBAAkB,CAChB,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,kBAAkB,CAChB,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,OAAO,CACR;QACH,MAAM,EAAE,CACN,iBAAyB,EACzB,eAAuB,EACvB,OAA0C,EAC1C,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,OAAO,CAAC;KAC9F,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,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"]}
@@ -7,6 +7,8 @@ export function getOperations(context) {
7
7
  };
8
8
  }
9
9
  export function getOperationsOperations(context) {
10
- return Object.assign({}, getOperations(context));
10
+ return {
11
+ ...getOperations(context),
12
+ };
11
13
  }
12
14
  //# 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;AAGlC,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAW/D,MAAM,UAAU,aAAa,CAAC,OAAoC;IAChE,OAAO;QACL,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC;KACnF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,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;AAGlC,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAW/D,MAAM,UAAU,aAAa,CAAC,OAAoC;IAChE,OAAO;QACL,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC;KACnF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,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"]}
@@ -10,6 +10,8 @@ export function getPrivateEndpointConnections(context, subscriptionId) {
10
10
  };
11
11
  }
12
12
  export function getPrivateEndpointConnectionsOperations(context, subscriptionId) {
13
- return Object.assign({}, getPrivateEndpointConnections(context, subscriptionId));
13
+ return {
14
+ ...getPrivateEndpointConnections(context, subscriptionId),
15
+ };
14
16
  }
15
17
  //# 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;AASlC,OAAO,EACL,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EAChC,2CAA2C,GAC5C,MAAM,+CAA+C,CAAC;AAwCvD,MAAM,UAAU,6BAA6B,CAC3C,OAAoC,EACpC,cAAsB;IAEtB,OAAO;QACL,GAAG,EAAE,CACH,iBAAyB,EACzB,eAAuB,EACvB,6BAAqC,EACrC,OAAqD,EACrD,EAAE,CACF,6BAA6B,CAC3B,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,gCAAgC,CAC9B,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,gCAAgC,CAC9B,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,6BAA6B,EAC7B,OAAO,CACR;QACH,iBAAiB,EAAE,CACjB,iBAAyB,EACzB,eAAuB,EACvB,OAAmE,EACnE,EAAE,CACF,2CAA2C,CACzC,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR;KACJ,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,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;AASlC,OAAO,EACL,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EAChC,2CAA2C,GAC5C,MAAM,+CAA+C,CAAC;AAwCvD,MAAM,UAAU,6BAA6B,CAC3C,OAAoC,EACpC,cAAsB;IAEtB,OAAO;QACL,GAAG,EAAE,CACH,iBAAyB,EACzB,eAAuB,EACvB,6BAAqC,EACrC,OAAqD,EACrD,EAAE,CACF,6BAA6B,CAC3B,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,gCAAgC,CAC9B,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,gCAAgC,CAC9B,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,6BAA6B,EAC7B,OAAO,CACR;QACH,iBAAiB,EAAE,CACjB,iBAAyB,EACzB,eAAuB,EACvB,OAAmE,EACnE,EAAE,CACF,2CAA2C,CACzC,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR;KACJ,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,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"]}
@@ -7,6 +7,8 @@ export function getPrivateLinks(context, subscriptionId) {
7
7
  };
8
8
  }
9
9
  export function getPrivateLinksOperations(context, subscriptionId) {
10
- return Object.assign({}, getPrivateLinks(context, subscriptionId));
10
+ return {
11
+ ...getPrivateLinks(context, subscriptionId),
12
+ };
11
13
  }
12
14
  //# 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;AAIlC,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAchF,MAAM,UAAU,eAAe,CAAC,OAAoC,EAAE,cAAsB;IAC1F,OAAO;QACL,iBAAiB,EAAE,CACjB,iBAAyB,EACzB,eAAuB,EACvB,OAAqD,EACrD,EAAE,CACF,6BAA6B,CAC3B,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR;KACJ,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,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;AAIlC,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAchF,MAAM,UAAU,eAAe,CAAC,OAAoC,EAAE,cAAsB;IAC1F,OAAO;QACL,iBAAiB,EAAE,CACjB,iBAAyB,EACzB,eAAuB,EACvB,OAAqD,EACrD,EAAE,CACF,6BAA6B,CAC3B,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR;KACJ,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,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"]}
@@ -6,18 +6,31 @@ import { getPrivateEndpointConnectionsOperations, } from "./classic/privateEndpo
6
6
  import { getPrivateLinksOperations } from "./classic/privateLinks/index.js";
7
7
  import { createHealthDataAIServices, } from "./api/index.js";
8
8
  export class HealthDataAIServicesClient {
9
+ _client;
10
+ /** The pipeline used by this client to make requests */
11
+ pipeline;
9
12
  constructor(credential, subscriptionId, options = {}) {
10
- var _a;
11
- const prefixFromOptions = (_a = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _a === void 0 ? void 0 : _a.userAgentPrefix;
13
+ const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
12
14
  const userAgentPrefix = prefixFromOptions
13
15
  ? `${prefixFromOptions} azsdk-js-client`
14
16
  : `azsdk-js-client`;
15
- this._client = createHealthDataAIServices(credential, Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix } }));
17
+ this._client = createHealthDataAIServices(credential, {
18
+ ...options,
19
+ userAgentOptions: { userAgentPrefix },
20
+ });
16
21
  this.pipeline = this._client.pipeline;
17
22
  this.operations = getOperationsOperations(this._client);
18
23
  this.deidServices = getDeidServicesOperations(this._client, subscriptionId);
19
24
  this.privateEndpointConnections = getPrivateEndpointConnectionsOperations(this._client, subscriptionId);
20
25
  this.privateLinks = getPrivateLinksOperations(this._client, subscriptionId);
21
26
  }
27
+ /** The operation groups for Operations */
28
+ operations;
29
+ /** The operation groups for DeidServices */
30
+ deidServices;
31
+ /** The operation groups for PrivateEndpointConnections */
32
+ privateEndpointConnections;
33
+ /** The operation groups for PrivateLinks */
34
+ privateLinks;
22
35
  }
23
36
  //# sourceMappingURL=healthDataAIServicesClient.js.map