@azure/arm-healthcareapis 2.2.1-alpha.20231113.1 → 3.0.0-alpha.20231221.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (269) hide show
  1. package/CHANGELOG.md +27 -8
  2. package/LICENSE +1 -1
  3. package/dist/index.js +524 -231
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/dicomServicesCreateOrUpdateSample.js +11 -4
  8. package/dist-esm/samples-dev/dicomServicesCreateOrUpdateSample.js.map +1 -1
  9. package/dist-esm/samples-dev/dicomServicesDeleteSample.js +11 -4
  10. package/dist-esm/samples-dev/dicomServicesDeleteSample.js.map +1 -1
  11. package/dist-esm/samples-dev/dicomServicesGetSample.js +11 -4
  12. package/dist-esm/samples-dev/dicomServicesGetSample.js.map +1 -1
  13. package/dist-esm/samples-dev/dicomServicesListByWorkspaceSample.js +11 -4
  14. package/dist-esm/samples-dev/dicomServicesListByWorkspaceSample.js.map +1 -1
  15. package/dist-esm/samples-dev/dicomServicesUpdateSample.js +11 -4
  16. package/dist-esm/samples-dev/dicomServicesUpdateSample.js.map +1 -1
  17. package/dist-esm/samples-dev/fhirDestinationsListByIotConnectorSample.js +11 -4
  18. package/dist-esm/samples-dev/fhirDestinationsListByIotConnectorSample.js.map +1 -1
  19. package/dist-esm/samples-dev/fhirServicesCreateOrUpdateSample.js +28 -9
  20. package/dist-esm/samples-dev/fhirServicesCreateOrUpdateSample.js.map +1 -1
  21. package/dist-esm/samples-dev/fhirServicesDeleteSample.js +11 -4
  22. package/dist-esm/samples-dev/fhirServicesDeleteSample.js.map +1 -1
  23. package/dist-esm/samples-dev/fhirServicesGetSample.js +11 -4
  24. package/dist-esm/samples-dev/fhirServicesGetSample.js.map +1 -1
  25. package/dist-esm/samples-dev/fhirServicesListByWorkspaceSample.js +11 -4
  26. package/dist-esm/samples-dev/fhirServicesListByWorkspaceSample.js.map +1 -1
  27. package/dist-esm/samples-dev/fhirServicesUpdateSample.js +11 -4
  28. package/dist-esm/samples-dev/fhirServicesUpdateSample.js.map +1 -1
  29. package/dist-esm/samples-dev/iotConnectorFhirDestinationCreateOrUpdateSample.js +11 -4
  30. package/dist-esm/samples-dev/iotConnectorFhirDestinationCreateOrUpdateSample.js.map +1 -1
  31. package/dist-esm/samples-dev/iotConnectorFhirDestinationDeleteSample.js +11 -4
  32. package/dist-esm/samples-dev/iotConnectorFhirDestinationDeleteSample.js.map +1 -1
  33. package/dist-esm/samples-dev/iotConnectorFhirDestinationGetSample.js +11 -4
  34. package/dist-esm/samples-dev/iotConnectorFhirDestinationGetSample.js.map +1 -1
  35. package/dist-esm/samples-dev/iotConnectorsCreateOrUpdateSample.js +11 -4
  36. package/dist-esm/samples-dev/iotConnectorsCreateOrUpdateSample.js.map +1 -1
  37. package/dist-esm/samples-dev/iotConnectorsDeleteSample.js +11 -4
  38. package/dist-esm/samples-dev/iotConnectorsDeleteSample.js.map +1 -1
  39. package/dist-esm/samples-dev/iotConnectorsGetSample.js +11 -4
  40. package/dist-esm/samples-dev/iotConnectorsGetSample.js.map +1 -1
  41. package/dist-esm/samples-dev/iotConnectorsListByWorkspaceSample.js +11 -4
  42. package/dist-esm/samples-dev/iotConnectorsListByWorkspaceSample.js.map +1 -1
  43. package/dist-esm/samples-dev/iotConnectorsUpdateSample.js +11 -4
  44. package/dist-esm/samples-dev/iotConnectorsUpdateSample.js.map +1 -1
  45. package/dist-esm/samples-dev/operationResultsGetSample.js +10 -3
  46. package/dist-esm/samples-dev/operationResultsGetSample.js.map +1 -1
  47. package/dist-esm/samples-dev/operationsListSample.js +11 -3
  48. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  49. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +11 -4
  50. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
  51. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +11 -4
  52. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
  53. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +11 -4
  54. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
  55. package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js +11 -4
  56. package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js.map +1 -1
  57. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +11 -4
  58. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -1
  59. package/dist-esm/samples-dev/privateLinkResourcesListByServiceSample.js +11 -4
  60. package/dist-esm/samples-dev/privateLinkResourcesListByServiceSample.js.map +1 -1
  61. package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js +10 -3
  62. package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js.map +1 -1
  63. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +65 -8
  64. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js.map +1 -1
  65. package/dist-esm/samples-dev/servicesDeleteSample.js +11 -4
  66. package/dist-esm/samples-dev/servicesDeleteSample.js.map +1 -1
  67. package/dist-esm/samples-dev/servicesGetSample.js +29 -4
  68. package/dist-esm/samples-dev/servicesGetSample.js.map +1 -1
  69. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js +11 -4
  70. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js.map +1 -1
  71. package/dist-esm/samples-dev/servicesListSample.js +10 -3
  72. package/dist-esm/samples-dev/servicesListSample.js.map +1 -1
  73. package/dist-esm/samples-dev/servicesUpdateSample.js +11 -4
  74. package/dist-esm/samples-dev/servicesUpdateSample.js.map +1 -1
  75. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsCreateOrUpdateSample.js +11 -4
  76. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
  77. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsDeleteSample.js +11 -4
  78. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsDeleteSample.js.map +1 -1
  79. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsGetSample.js +11 -4
  80. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsGetSample.js.map +1 -1
  81. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsListByWorkspaceSample.js +11 -4
  82. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsListByWorkspaceSample.js.map +1 -1
  83. package/dist-esm/samples-dev/workspacePrivateLinkResourcesGetSample.js +11 -4
  84. package/dist-esm/samples-dev/workspacePrivateLinkResourcesGetSample.js.map +1 -1
  85. package/dist-esm/samples-dev/workspacePrivateLinkResourcesListByWorkspaceSample.js +11 -4
  86. package/dist-esm/samples-dev/workspacePrivateLinkResourcesListByWorkspaceSample.js.map +1 -1
  87. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +11 -4
  88. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +1 -1
  89. package/dist-esm/samples-dev/workspacesDeleteSample.js +11 -4
  90. package/dist-esm/samples-dev/workspacesDeleteSample.js.map +1 -1
  91. package/dist-esm/samples-dev/workspacesGetSample.js +11 -4
  92. package/dist-esm/samples-dev/workspacesGetSample.js.map +1 -1
  93. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +11 -4
  94. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -1
  95. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +10 -3
  96. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -1
  97. package/dist-esm/samples-dev/workspacesUpdateSample.js +11 -4
  98. package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -1
  99. package/dist-esm/src/healthcareApisManagementClient.d.ts +1 -1
  100. package/dist-esm/src/healthcareApisManagementClient.js +3 -3
  101. package/dist-esm/src/lroImpl.d.ts +6 -11
  102. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  103. package/dist-esm/src/lroImpl.js +12 -20
  104. package/dist-esm/src/lroImpl.js.map +1 -1
  105. package/dist-esm/src/models/index.d.ts +95 -27
  106. package/dist-esm/src/models/index.d.ts.map +1 -1
  107. package/dist-esm/src/models/index.js +10 -10
  108. package/dist-esm/src/models/index.js.map +1 -1
  109. package/dist-esm/src/models/mappers.d.ts +6 -1
  110. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  111. package/dist-esm/src/models/mappers.js +237 -29
  112. package/dist-esm/src/models/mappers.js.map +1 -1
  113. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  114. package/dist-esm/src/models/parameters.js +4 -1
  115. package/dist-esm/src/models/parameters.js.map +1 -1
  116. package/dist-esm/src/operations/dicomServices.d.ts +4 -4
  117. package/dist-esm/src/operations/dicomServices.d.ts.map +1 -1
  118. package/dist-esm/src/operations/dicomServices.js +38 -27
  119. package/dist-esm/src/operations/dicomServices.js.map +1 -1
  120. package/dist-esm/src/operations/fhirDestinations.js +0 -1
  121. package/dist-esm/src/operations/fhirDestinations.js.map +1 -1
  122. package/dist-esm/src/operations/fhirServices.d.ts +4 -4
  123. package/dist-esm/src/operations/fhirServices.d.ts.map +1 -1
  124. package/dist-esm/src/operations/fhirServices.js +38 -27
  125. package/dist-esm/src/operations/fhirServices.js.map +1 -1
  126. package/dist-esm/src/operations/iotConnectorFhirDestination.d.ts +3 -3
  127. package/dist-esm/src/operations/iotConnectorFhirDestination.d.ts.map +1 -1
  128. package/dist-esm/src/operations/iotConnectorFhirDestination.js +31 -23
  129. package/dist-esm/src/operations/iotConnectorFhirDestination.js.map +1 -1
  130. package/dist-esm/src/operations/iotConnectors.d.ts +4 -4
  131. package/dist-esm/src/operations/iotConnectors.d.ts.map +1 -1
  132. package/dist-esm/src/operations/iotConnectors.js +38 -27
  133. package/dist-esm/src/operations/iotConnectors.js.map +1 -1
  134. package/dist-esm/src/operations/operations.js +0 -1
  135. package/dist-esm/src/operations/operations.js.map +1 -1
  136. package/dist-esm/src/operations/privateEndpointConnections.d.ts +3 -3
  137. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  138. package/dist-esm/src/operations/privateEndpointConnections.js +29 -21
  139. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  140. package/dist-esm/src/operations/services.d.ts +4 -4
  141. package/dist-esm/src/operations/services.d.ts.map +1 -1
  142. package/dist-esm/src/operations/services.js +31 -16
  143. package/dist-esm/src/operations/services.js.map +1 -1
  144. package/dist-esm/src/operations/workspacePrivateEndpointConnections.d.ts +3 -3
  145. package/dist-esm/src/operations/workspacePrivateEndpointConnections.d.ts.map +1 -1
  146. package/dist-esm/src/operations/workspacePrivateEndpointConnections.js +29 -21
  147. package/dist-esm/src/operations/workspacePrivateEndpointConnections.js.map +1 -1
  148. package/dist-esm/src/operations/workspaces.d.ts +4 -4
  149. package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
  150. package/dist-esm/src/operations/workspaces.js +31 -16
  151. package/dist-esm/src/operations/workspaces.js.map +1 -1
  152. package/dist-esm/src/operationsInterfaces/dicomServices.d.ts +4 -4
  153. package/dist-esm/src/operationsInterfaces/dicomServices.d.ts.map +1 -1
  154. package/dist-esm/src/operationsInterfaces/fhirServices.d.ts +4 -4
  155. package/dist-esm/src/operationsInterfaces/fhirServices.d.ts.map +1 -1
  156. package/dist-esm/src/operationsInterfaces/iotConnectorFhirDestination.d.ts +3 -3
  157. package/dist-esm/src/operationsInterfaces/iotConnectorFhirDestination.d.ts.map +1 -1
  158. package/dist-esm/src/operationsInterfaces/iotConnectors.d.ts +4 -4
  159. package/dist-esm/src/operationsInterfaces/iotConnectors.d.ts.map +1 -1
  160. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +3 -3
  161. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  162. package/dist-esm/src/operationsInterfaces/services.d.ts +4 -4
  163. package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -1
  164. package/dist-esm/src/operationsInterfaces/workspacePrivateEndpointConnections.d.ts +3 -3
  165. package/dist-esm/src/operationsInterfaces/workspacePrivateEndpointConnections.d.ts.map +1 -1
  166. package/dist-esm/src/operationsInterfaces/workspaces.d.ts +4 -4
  167. package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -1
  168. package/dist-esm/src/pagingHelper.d.ts +4 -4
  169. package/dist-esm/src/pagingHelper.js +4 -4
  170. package/dist-esm/test/healthcareapis_operations_test.spec.d.ts +4 -0
  171. package/dist-esm/test/healthcareapis_operations_test.spec.d.ts.map +1 -0
  172. package/dist-esm/test/healthcareapis_operations_test.spec.js +111 -0
  173. package/dist-esm/test/healthcareapis_operations_test.spec.js.map +1 -0
  174. package/package.json +12 -9
  175. package/review/arm-healthcareapis.api.md +74 -29
  176. package/src/healthcareApisManagementClient.ts +3 -3
  177. package/src/lroImpl.ts +31 -23
  178. package/src/models/index.ts +103 -30
  179. package/src/models/mappers.ts +253 -33
  180. package/src/models/parameters.ts +4 -1
  181. package/src/operations/dicomServices.ts +41 -32
  182. package/src/operations/fhirDestinations.ts +0 -1
  183. package/src/operations/fhirServices.ts +41 -32
  184. package/src/operations/iotConnectorFhirDestination.ts +28 -21
  185. package/src/operations/iotConnectors.ts +41 -32
  186. package/src/operations/operations.ts +0 -1
  187. package/src/operations/privateEndpointConnections.ts +28 -21
  188. package/src/operations/services.ts +46 -33
  189. package/src/operations/workspacePrivateEndpointConnections.ts +28 -23
  190. package/src/operations/workspaces.ts +46 -33
  191. package/src/operationsInterfaces/dicomServices.ts +6 -6
  192. package/src/operationsInterfaces/fhirServices.ts +6 -6
  193. package/src/operationsInterfaces/iotConnectorFhirDestination.ts +4 -4
  194. package/src/operationsInterfaces/iotConnectors.ts +6 -6
  195. package/src/operationsInterfaces/privateEndpointConnections.ts +4 -4
  196. package/src/operationsInterfaces/services.ts +6 -6
  197. package/src/operationsInterfaces/workspacePrivateEndpointConnections.ts +4 -6
  198. package/src/operationsInterfaces/workspaces.ts +6 -6
  199. package/src/pagingHelper.ts +4 -4
  200. package/types/arm-healthcareapis.d.ts +110 -37
  201. package/types/tsdoc-metadata.json +1 -1
  202. package/dist-esm/samples-dev/checkNameAvailability.d.ts +0 -2
  203. package/dist-esm/samples-dev/checkNameAvailability.d.ts.map +0 -1
  204. package/dist-esm/samples-dev/checkNameAvailability.js +0 -33
  205. package/dist-esm/samples-dev/checkNameAvailability.js.map +0 -1
  206. package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.d.ts +0 -2
  207. package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.d.ts.map +0 -1
  208. package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.js +0 -62
  209. package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.js.map +0 -1
  210. package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.d.ts +0 -2
  211. package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.d.ts.map +0 -1
  212. package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.js +0 -39
  213. package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.js.map +0 -1
  214. package/dist-esm/samples-dev/deleteService.d.ts +0 -2
  215. package/dist-esm/samples-dev/deleteService.d.ts.map +0 -1
  216. package/dist-esm/samples-dev/deleteService.js +0 -31
  217. package/dist-esm/samples-dev/deleteService.js.map +0 -1
  218. package/dist-esm/samples-dev/getMetadata.d.ts +0 -2
  219. package/dist-esm/samples-dev/getMetadata.d.ts.map +0 -1
  220. package/dist-esm/samples-dev/getMetadata.js +0 -31
  221. package/dist-esm/samples-dev/getMetadata.js.map +0 -1
  222. package/dist-esm/samples-dev/getOperationResult.d.ts +0 -2
  223. package/dist-esm/samples-dev/getOperationResult.d.ts.map +0 -1
  224. package/dist-esm/samples-dev/getOperationResult.js +0 -31
  225. package/dist-esm/samples-dev/getOperationResult.js.map +0 -1
  226. package/dist-esm/samples-dev/listAllServicesInResourceGroup.d.ts +0 -2
  227. package/dist-esm/samples-dev/listAllServicesInResourceGroup.d.ts.map +0 -1
  228. package/dist-esm/samples-dev/listAllServicesInResourceGroup.js +0 -46
  229. package/dist-esm/samples-dev/listAllServicesInResourceGroup.js.map +0 -1
  230. package/dist-esm/samples-dev/listAllServicesInSubscription.d.ts +0 -2
  231. package/dist-esm/samples-dev/listAllServicesInSubscription.d.ts.map +0 -1
  232. package/dist-esm/samples-dev/listAllServicesInSubscription.js +0 -45
  233. package/dist-esm/samples-dev/listAllServicesInSubscription.js.map +0 -1
  234. package/dist-esm/samples-dev/listOperations.d.ts +0 -2
  235. package/dist-esm/samples-dev/listOperations.d.ts.map +0 -1
  236. package/dist-esm/samples-dev/listOperations.js +0 -45
  237. package/dist-esm/samples-dev/listOperations.js.map +0 -1
  238. package/dist-esm/samples-dev/patchService.d.ts +0 -2
  239. package/dist-esm/samples-dev/patchService.d.ts.map +0 -1
  240. package/dist-esm/samples-dev/patchService.js +0 -34
  241. package/dist-esm/samples-dev/patchService.js.map +0 -1
  242. package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.d.ts +0 -2
  243. package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.d.ts.map +0 -1
  244. package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.js +0 -38
  245. package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.js.map +0 -1
  246. package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.d.ts +0 -2
  247. package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.d.ts.map +0 -1
  248. package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.js +0 -32
  249. package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.js.map +0 -1
  250. package/dist-esm/samples-dev/privateEndpointConnectionList.d.ts +0 -2
  251. package/dist-esm/samples-dev/privateEndpointConnectionList.d.ts.map +0 -1
  252. package/dist-esm/samples-dev/privateEndpointConnectionList.js +0 -47
  253. package/dist-esm/samples-dev/privateEndpointConnectionList.js.map +0 -1
  254. package/dist-esm/samples-dev/privateEndpointConnectionsDelete.d.ts +0 -2
  255. package/dist-esm/samples-dev/privateEndpointConnectionsDelete.d.ts.map +0 -1
  256. package/dist-esm/samples-dev/privateEndpointConnectionsDelete.js +0 -32
  257. package/dist-esm/samples-dev/privateEndpointConnectionsDelete.js.map +0 -1
  258. package/dist-esm/samples-dev/privateLinkResourcesGet.d.ts +0 -2
  259. package/dist-esm/samples-dev/privateLinkResourcesGet.d.ts.map +0 -1
  260. package/dist-esm/samples-dev/privateLinkResourcesGet.js +0 -32
  261. package/dist-esm/samples-dev/privateLinkResourcesGet.js.map +0 -1
  262. package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.d.ts +0 -2
  263. package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.d.ts.map +0 -1
  264. package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.js +0 -31
  265. package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.js.map +0 -1
  266. package/dist-esm/test/sampleTest.d.ts +0 -2
  267. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  268. package/dist-esm/test/sampleTest.js +0 -38
  269. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Gets the properties of the specified IoT Connector.
15
17
  *
16
18
  * @summary Gets the properties of the specified IoT Connector.
17
- * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_Get.json
19
+ * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/iotconnectors/iotconnector_Get.json
18
20
  */
19
21
  function getAnIoTConnector() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "testRG";
23
+ const subscriptionId = process.env["HEALTHCAREAPIS_SUBSCRIPTION_ID"] || "subid";
24
+ const resourceGroupName = process.env["HEALTHCAREAPIS_RESOURCE_GROUP"] || "testRG";
23
25
  const workspaceName = "workspace1";
24
26
  const iotConnectorName = "blue";
25
27
  const credential = new DefaultAzureCredential();
@@ -28,5 +30,10 @@ function getAnIoTConnector() {
28
30
  console.log(result);
29
31
  });
30
32
  }
31
- getAnIoTConnector().catch(console.error);
33
+ function main() {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ getAnIoTConnector();
36
+ });
37
+ }
38
+ main().catch(console.error);
32
39
  //# sourceMappingURL=iotConnectorsGetSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"iotConnectorsGetSample.js","sourceRoot":"","sources":["../../samples-dev/iotConnectorsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,MAAM,gBAAgB,GAAG,MAAM,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,GAAG,CAC3C,iBAAiB,EACjB,aAAa,EACb,gBAAgB,CACjB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,iBAAiB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"iotConnectorsGetSample.js","sourceRoot":"","sources":["../../samples-dev/iotConnectorsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,OAAO,CAAC;QAC3D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,QAAQ,CAAC;QAC3D,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,MAAM,gBAAgB,GAAG,MAAM,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,GAAG,CAC3C,iBAAiB,EACjB,aAAa,EACb,gBAAgB,CACjB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,iBAAiB,EAAE,CAAC;IACtB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,17 +10,19 @@ import { __asyncValues, __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Lists all IoT Connectors for the given workspace
15
17
  *
16
18
  * @summary Lists all IoT Connectors for the given workspace
17
- * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_List.json
19
+ * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/iotconnectors/iotconnector_List.json
18
20
  */
19
21
  function listIotconnectors() {
20
22
  var _a, e_1, _b, _c;
21
23
  return __awaiter(this, void 0, void 0, function* () {
22
- const subscriptionId = "subid";
23
- const resourceGroupName = "testRG";
24
+ const subscriptionId = process.env["HEALTHCAREAPIS_SUBSCRIPTION_ID"] || "subid";
25
+ const resourceGroupName = process.env["HEALTHCAREAPIS_RESOURCE_GROUP"] || "testRG";
24
26
  const workspaceName = "workspace1";
25
27
  const credential = new DefaultAzureCredential();
26
28
  const client = new HealthcareApisManagementClient(credential, subscriptionId);
@@ -43,5 +45,10 @@ function listIotconnectors() {
43
45
  console.log(resArray);
44
46
  });
45
47
  }
46
- listIotconnectors().catch(console.error);
48
+ function main() {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ listIotconnectors();
51
+ });
52
+ }
53
+ main().catch(console.error);
47
54
  //# sourceMappingURL=iotConnectorsListByWorkspaceSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"iotConnectorsListByWorkspaceSample.js","sourceRoot":"","sources":["../../samples-dev/iotConnectorsListByWorkspaceSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iBAAiB;;;QAC9B,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,aAAa,CAAC,eAAe,CACzD,iBAAiB,EACjB,aAAa,CACd,CAAA,IAAA,sDAAE;gBAHoB,cAGtB;gBAHsB,WAGtB;gBAHU,IAAI,IAAI,KAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,iBAAiB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"iotConnectorsListByWorkspaceSample.js","sourceRoot":"","sources":["../../samples-dev/iotConnectorsListByWorkspaceSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iBAAiB;;;QAC9B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,OAAO,CAAC;QAC3D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,QAAQ,CAAC;QAC3D,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,aAAa,CAAC,eAAe,CACzD,iBAAiB,EACjB,aAAa,CACd,CAAA,IAAA,sDAAE;gBAHoB,cAGtB;gBAHsB,WAGtB;gBAHU,IAAI,IAAI,KAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,iBAAiB,EAAE,CAAC;IACtB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Patch an IoT Connector.
15
17
  *
16
18
  * @summary Patch an IoT Connector.
17
- * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/iotconnectors/iotconnector_Patch.json
19
+ * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/iotconnectors/iotconnector_Patch.json
18
20
  */
19
21
  function patchAnIoTConnector() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "testRG";
23
+ const subscriptionId = process.env["HEALTHCAREAPIS_SUBSCRIPTION_ID"] || "subid";
24
+ const resourceGroupName = process.env["HEALTHCAREAPIS_RESOURCE_GROUP"] || "testRG";
23
25
  const iotConnectorName = "blue";
24
26
  const workspaceName = "workspace1";
25
27
  const iotConnectorPatchResource = {
@@ -36,5 +38,10 @@ function patchAnIoTConnector() {
36
38
  console.log(result);
37
39
  });
38
40
  }
39
- patchAnIoTConnector().catch(console.error);
41
+ function main() {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ patchAnIoTConnector();
44
+ });
45
+ }
46
+ main().catch(console.error);
40
47
  //# sourceMappingURL=iotConnectorsUpdateSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"iotConnectorsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/iotConnectorsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,8BAA8B,EAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,gBAAgB,GAAG,MAAM,CAAC;QAChC,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,MAAM,yBAAyB,GAA8B;YAC3D,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;YACpC,IAAI,EAAE;gBACJ,eAAe,EAAE,QAAQ;gBACzB,eAAe,EAAE,QAAQ;gBACzB,eAAe,EAAE,QAAQ;aAC1B;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAC1D,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,yBAAyB,CAC1B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mBAAmB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"iotConnectorsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/iotConnectorsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,8BAA8B,EAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,OAAO,CAAC;QAC3D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,QAAQ,CAAC;QAC3D,MAAM,gBAAgB,GAAG,MAAM,CAAC;QAChC,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,MAAM,yBAAyB,GAA8B;YAC3D,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;YACpC,IAAI,EAAE;gBACJ,eAAe,EAAE,QAAQ;gBACzB,eAAe,EAAE,QAAQ;gBACzB,eAAe,EAAE,QAAQ;aAC1B;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAC1D,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,yBAAyB,CAC1B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,mBAAmB,EAAE,CAAC;IACxB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,15 +10,17 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Get the operation result for a long running operation.
15
17
  *
16
18
  * @summary Get the operation result for a long running operation.
17
- * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/OperationResultsGet.json
19
+ * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/OperationResultsGet.json
18
20
  */
19
21
  function getOperationResult() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
23
+ const subscriptionId = process.env["HEALTHCAREAPIS_SUBSCRIPTION_ID"] || "subid";
22
24
  const locationName = "westus";
23
25
  const operationResultId = "exampleid";
24
26
  const credential = new DefaultAzureCredential();
@@ -27,5 +29,10 @@ function getOperationResult() {
27
29
  console.log(result);
28
30
  });
29
31
  }
30
- getOperationResult().catch(console.error);
32
+ function main() {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ getOperationResult();
35
+ });
36
+ }
37
+ main().catch(console.error);
31
38
  //# sourceMappingURL=operationResultsGetSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"operationResultsGetSample.js","sourceRoot":"","sources":["../../samples-dev/operationResultsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,YAAY,GAAG,QAAQ,CAAC;QAC9B,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAC9C,YAAY,EACZ,iBAAiB,CAClB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"operationResultsGetSample.js","sourceRoot":"","sources":["../../samples-dev/operationResultsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,OAAO,CAAC;QAC3D,MAAM,YAAY,GAAG,QAAQ,CAAC;QAC9B,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAC9C,YAAY,EACZ,iBAAiB,CAClB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,kBAAkB,EAAE,CAAC;IACvB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,19 @@ import { __asyncValues, __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Lists all of the available operations supported by Microsoft Healthcare resource provider.
15
17
  *
16
18
  * @summary Lists all of the available operations supported by Microsoft Healthcare resource provider.
17
- * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/OperationsList.json
19
+ * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/OperationsList.json
18
20
  */
19
21
  function listOperations() {
20
22
  var _a, e_1, _b, _c;
21
23
  return __awaiter(this, void 0, void 0, function* () {
22
- const subscriptionId = "00000000-0000-0000-0000-000000000000";
24
+ const subscriptionId = process.env["HEALTHCAREAPIS_SUBSCRIPTION_ID"] ||
25
+ "00000000-0000-0000-0000-000000000000";
23
26
  const credential = new DefaultAzureCredential();
24
27
  const client = new HealthcareApisManagementClient(credential, subscriptionId);
25
28
  const resArray = new Array();
@@ -41,5 +44,10 @@ function listOperations() {
41
44
  console.log(resArray);
42
45
  });
43
46
  }
44
- listOperations().catch(console.error);
47
+ function main() {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ listOperations();
50
+ });
51
+ }
52
+ main().catch(console.error);
45
53
  //# sourceMappingURL=operationsListSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,cAAc;;;QAC3B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA,sDAAE;gBAA1B,cAAwB;gBAAxB,WAAwB;gBAApC,IAAI,IAAI,KAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,cAAc,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,cAAc;;;QAC3B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC;YAC7C,sCAAsC,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA,sDAAE;gBAA1B,cAAwB;gBAAxB,WAAwB;gBAApC,IAAI,IAAI,KAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,cAAc,EAAE,CAAC;IACnB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Update the state of the specified private endpoint connection associated with the service.
15
17
  *
16
18
  * @summary Update the state of the specified private endpoint connection associated with the service.
17
- * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceCreatePrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServiceCreatePrivateEndpointConnection.json
18
20
  */
19
21
  function privateEndpointConnectionCreateOrUpdate() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rgname";
23
+ const subscriptionId = process.env["HEALTHCAREAPIS_SUBSCRIPTION_ID"] || "subid";
24
+ const resourceGroupName = process.env["HEALTHCAREAPIS_RESOURCE_GROUP"] || "rgname";
23
25
  const resourceName = "service1";
24
26
  const privateEndpointConnectionName = "myConnection";
25
27
  const properties = {
@@ -34,5 +36,10 @@ function privateEndpointConnectionCreateOrUpdate() {
34
36
  console.log(result);
35
37
  });
36
38
  }
37
- privateEndpointConnectionCreateOrUpdate().catch(console.error);
39
+ function main() {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ privateEndpointConnectionCreateOrUpdate();
42
+ });
43
+ }
44
+ main().catch(console.error);
38
45
  //# sourceMappingURL=privateEndpointConnectionsCreateOrUpdateSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpointConnectionsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,8BAA8B,EAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uCAAuC;;QACpD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,6BAA6B,GAAG,cAAc,CAAC;QACrD,MAAM,UAAU,GAA8B;YAC5C,iCAAiC,EAAE;gBACjC,WAAW,EAAE,eAAe;gBAC5B,MAAM,EAAE,UAAU;aACnB;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,0BAA0B,CAC/E,iBAAiB,EACjB,YAAY,EACZ,6BAA6B,EAC7B,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uCAAuC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"privateEndpointConnectionsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,8BAA8B,EAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,uCAAuC;;QACpD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,OAAO,CAAC;QAC3D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,QAAQ,CAAC;QAC3D,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,6BAA6B,GAAG,cAAc,CAAC;QACrD,MAAM,UAAU,GAA8B;YAC5C,iCAAiC,EAAE;gBACjC,WAAW,EAAE,eAAe;gBAC5B,MAAM,EAAE,UAAU;aACnB;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,0BAA0B,CAC/E,iBAAiB,EACjB,YAAY,EACZ,6BAA6B,EAC7B,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,uCAAuC,EAAE,CAAC;IAC5C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Deletes a private endpoint connection.
15
17
  *
16
18
  * @summary Deletes a private endpoint connection.
17
- * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceDeletePrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServiceDeletePrivateEndpointConnection.json
18
20
  */
19
21
  function privateEndpointConnectionsDelete() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rgname";
23
+ const subscriptionId = process.env["HEALTHCAREAPIS_SUBSCRIPTION_ID"] || "subid";
24
+ const resourceGroupName = process.env["HEALTHCAREAPIS_RESOURCE_GROUP"] || "rgname";
23
25
  const resourceName = "service1";
24
26
  const privateEndpointConnectionName = "myConnection";
25
27
  const credential = new DefaultAzureCredential();
@@ -28,5 +30,10 @@ function privateEndpointConnectionsDelete() {
28
30
  console.log(result);
29
31
  });
30
32
  }
31
- privateEndpointConnectionsDelete().catch(console.error);
33
+ function main() {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ privateEndpointConnectionsDelete();
36
+ });
37
+ }
38
+ main().catch(console.error);
32
39
  //# sourceMappingURL=privateEndpointConnectionsDeleteSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpointConnectionsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,gCAAgC;;QAC7C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,6BAA6B,GAAG,cAAc,CAAC;QACrD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,kBAAkB,CACvE,iBAAiB,EACjB,YAAY,EACZ,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gCAAgC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"privateEndpointConnectionsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gCAAgC;;QAC7C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,OAAO,CAAC;QAC3D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,QAAQ,CAAC;QAC3D,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,6BAA6B,GAAG,cAAc,CAAC;QACrD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,kBAAkB,CACvE,iBAAiB,EACjB,YAAY,EACZ,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,gCAAgC,EAAE,CAAC;IACrC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Gets the specified private endpoint connection associated with the service.
15
17
  *
16
18
  * @summary Gets the specified private endpoint connection associated with the service.
17
- * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceGetPrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServiceGetPrivateEndpointConnection.json
18
20
  */
19
21
  function privateEndpointConnectionGetConnection() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rgname";
23
+ const subscriptionId = process.env["HEALTHCAREAPIS_SUBSCRIPTION_ID"] || "subid";
24
+ const resourceGroupName = process.env["HEALTHCAREAPIS_RESOURCE_GROUP"] || "rgname";
23
25
  const resourceName = "service1";
24
26
  const privateEndpointConnectionName = "myConnection";
25
27
  const credential = new DefaultAzureCredential();
@@ -28,5 +30,10 @@ function privateEndpointConnectionGetConnection() {
28
30
  console.log(result);
29
31
  });
30
32
  }
31
- privateEndpointConnectionGetConnection().catch(console.error);
33
+ function main() {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ privateEndpointConnectionGetConnection();
36
+ });
37
+ }
38
+ main().catch(console.error);
32
39
  //# sourceMappingURL=privateEndpointConnectionsGetSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpointConnectionsGetSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,sCAAsC;;QACnD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,6BAA6B,GAAG,cAAc,CAAC;QACrD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,GAAG,CACxD,iBAAiB,EACjB,YAAY,EACZ,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sCAAsC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"privateEndpointConnectionsGetSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,sCAAsC;;QACnD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,OAAO,CAAC;QAC3D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,QAAQ,CAAC;QAC3D,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,6BAA6B,GAAG,cAAc,CAAC;QACrD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,GAAG,CACxD,iBAAiB,EACjB,YAAY,EACZ,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,sCAAsC,EAAE,CAAC;IAC3C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,17 +10,19 @@ import { __asyncValues, __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Lists all private endpoint connections for a service.
15
17
  *
16
18
  * @summary Lists all private endpoint connections for a service.
17
- * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceListPrivateEndpointConnections.json
19
+ * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServiceListPrivateEndpointConnections.json
18
20
  */
19
21
  function privateEndpointConnectionList() {
20
22
  var _a, e_1, _b, _c;
21
23
  return __awaiter(this, void 0, void 0, function* () {
22
- const subscriptionId = "subid";
23
- const resourceGroupName = "rgname";
24
+ const subscriptionId = process.env["HEALTHCAREAPIS_SUBSCRIPTION_ID"] || "subid";
25
+ const resourceGroupName = process.env["HEALTHCAREAPIS_RESOURCE_GROUP"] || "rgname";
24
26
  const resourceName = "service1";
25
27
  const credential = new DefaultAzureCredential();
26
28
  const client = new HealthcareApisManagementClient(credential, subscriptionId);
@@ -43,5 +45,10 @@ function privateEndpointConnectionList() {
43
45
  console.log(resArray);
44
46
  });
45
47
  }
46
- privateEndpointConnectionList().catch(console.error);
48
+ function main() {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ privateEndpointConnectionList();
51
+ });
52
+ }
53
+ main().catch(console.error);
47
54
  //# sourceMappingURL=privateEndpointConnectionsListByServiceSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpointConnectionsListByServiceSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListByServiceSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,6BAA6B;;;QAC1C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,0BAA0B,CAAC,aAAa,CACpE,iBAAiB,EACjB,YAAY,CACb,CAAA,IAAA,sDAAE;gBAHoB,cAGtB;gBAHsB,WAGtB;gBAHU,IAAI,IAAI,KAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"privateEndpointConnectionsListByServiceSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListByServiceSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,6BAA6B;;;QAC1C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,OAAO,CAAC;QAC3D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,QAAQ,CAAC;QAC3D,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,0BAA0B,CAAC,aAAa,CACpE,iBAAiB,EACjB,YAAY,CACb,CAAA,IAAA,sDAAE;gBAHoB,cAGtB;gBAHsB,WAGtB;gBAHU,IAAI,IAAI,KAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,6BAA6B,EAAE,CAAC;IAClC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Gets a private link resource that need to be created for a service.
15
17
  *
16
18
  * @summary Gets a private link resource that need to be created for a service.
17
- * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/PrivateLinkResourceGet.json
19
+ * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/PrivateLinkResourceGet.json
18
20
  */
19
21
  function privateLinkResourcesGet() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rgname";
23
+ const subscriptionId = process.env["HEALTHCAREAPIS_SUBSCRIPTION_ID"] || "subid";
24
+ const resourceGroupName = process.env["HEALTHCAREAPIS_RESOURCE_GROUP"] || "rgname";
23
25
  const resourceName = "service1";
24
26
  const groupName = "fhir";
25
27
  const credential = new DefaultAzureCredential();
@@ -28,5 +30,10 @@ function privateLinkResourcesGet() {
28
30
  console.log(result);
29
31
  });
30
32
  }
31
- privateLinkResourcesGet().catch(console.error);
33
+ function main() {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ privateLinkResourcesGet();
36
+ });
37
+ }
38
+ main().catch(console.error);
32
39
  //# sourceMappingURL=privateLinkResourcesGetSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"privateLinkResourcesGetSample.js","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uBAAuB;;QACpC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,SAAS,GAAG,MAAM,CAAC;QACzB,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,GAAG,CAClD,iBAAiB,EACjB,YAAY,EACZ,SAAS,CACV,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uBAAuB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"privateLinkResourcesGetSample.js","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,uBAAuB;;QACpC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,OAAO,CAAC;QAC3D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,QAAQ,CAAC;QAC3D,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,SAAS,GAAG,MAAM,CAAC;QACzB,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,GAAG,CAClD,iBAAiB,EACjB,YAAY,EACZ,SAAS,CACV,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,uBAAuB,EAAE,CAAC;IAC5B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Gets the private link resources that need to be created for a service.
15
17
  *
16
18
  * @summary Gets the private link resources that need to be created for a service.
17
- * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/PrivateLinkResourcesListByService.json
19
+ * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/PrivateLinkResourcesListByService.json
18
20
  */
19
21
  function privateLinkResourcesListGroupIds() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rgname";
23
+ const subscriptionId = process.env["HEALTHCAREAPIS_SUBSCRIPTION_ID"] || "subid";
24
+ const resourceGroupName = process.env["HEALTHCAREAPIS_RESOURCE_GROUP"] || "rgname";
23
25
  const resourceName = "service1";
24
26
  const credential = new DefaultAzureCredential();
25
27
  const client = new HealthcareApisManagementClient(credential, subscriptionId);
@@ -27,5 +29,10 @@ function privateLinkResourcesListGroupIds() {
27
29
  console.log(result);
28
30
  });
29
31
  }
30
- privateLinkResourcesListGroupIds().catch(console.error);
32
+ function main() {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ privateLinkResourcesListGroupIds();
35
+ });
36
+ }
37
+ main().catch(console.error);
31
38
  //# sourceMappingURL=privateLinkResourcesListByServiceSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"privateLinkResourcesListByServiceSample.js","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesListByServiceSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,gCAAgC;;QAC7C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,aAAa,CAC5D,iBAAiB,EACjB,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gCAAgC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"privateLinkResourcesListByServiceSample.js","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesListByServiceSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gCAAgC;;QAC7C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,OAAO,CAAC;QAC3D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,QAAQ,CAAC;QAC3D,MAAM,YAAY,GAAG,UAAU,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,aAAa,CAC5D,iBAAiB,EACjB,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,gCAAgC,EAAE,CAAC;IACrC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,15 +10,17 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Check if a service instance name is available.
15
17
  *
16
18
  * @summary Check if a service instance name is available.
17
- * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/CheckNameAvailabilityPost.json
19
+ * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/CheckNameAvailabilityPost.json
18
20
  */
19
21
  function checkNameAvailability() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
23
+ const subscriptionId = process.env["HEALTHCAREAPIS_SUBSCRIPTION_ID"] || "subid";
22
24
  const checkNameAvailabilityInputs = {
23
25
  name: "serviceName",
24
26
  type: "Microsoft.HealthcareApis/services"
@@ -29,5 +31,10 @@ function checkNameAvailability() {
29
31
  console.log(result);
30
32
  });
31
33
  }
32
- checkNameAvailability().catch(console.error);
34
+ function main() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ checkNameAvailability();
37
+ });
38
+ }
39
+ main().catch(console.error);
33
40
  //# sourceMappingURL=servicesCheckNameAvailabilitySample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"servicesCheckNameAvailabilitySample.js","sourceRoot":"","sources":["../../samples-dev/servicesCheckNameAvailabilitySample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,8BAA8B,EAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,2BAA2B,GAAoC;YACnE,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,mCAAmC;SAC1C,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CACxD,2BAA2B,CAC5B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"servicesCheckNameAvailabilitySample.js","sourceRoot":"","sources":["../../samples-dev/servicesCheckNameAvailabilitySample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,8BAA8B,EAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,OAAO,CAAC;QAC3D,MAAM,2BAA2B,GAAoC;YACnE,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,mCAAmC;SAC1C,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CACxD,2BAA2B,CAC5B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,qBAAqB,EAAE,CAAC;IAC1B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { HealthcareApisManagementClient } from "@azure/arm-healthcareapis";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Create or update the metadata of a service instance.
15
17
  *
16
18
  * @summary Create or update the metadata of a service instance.
17
- * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceCreate.json
19
+ * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServiceCreate.json
18
20
  */
19
21
  function createOrUpdateAServiceWithAllParameters() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rg1";
23
+ const subscriptionId = process.env["HEALTHCAREAPIS_SUBSCRIPTION_ID"] || "subid";
24
+ const resourceGroupName = process.env["HEALTHCAREAPIS_RESOURCE_GROUP"] || "rg1";
23
25
  const resourceName = "service1";
24
26
  const serviceDescription = {
25
27
  identity: { type: "SystemAssigned" },
@@ -58,17 +60,65 @@ function createOrUpdateAServiceWithAllParameters() {
58
60
  console.log(result);
59
61
  });
60
62
  }
61
- createOrUpdateAServiceWithAllParameters().catch(console.error);
62
63
  /**
63
64
  * This sample demonstrates how to Create or update the metadata of a service instance.
64
65
  *
65
66
  * @summary Create or update the metadata of a service instance.
66
- * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2021-11-01/examples/legacy/ServiceCreateMinimum.json
67
+ * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServiceCreateInDataSovereignRegionWithCmkEnabled.json
68
+ */
69
+ function createOrUpdateAServiceWithAllParametersAndCmkEnabledInADataSovereignRegion() {
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ const subscriptionId = process.env["HEALTHCAREAPIS_SUBSCRIPTION_ID"] || "subid";
72
+ const resourceGroupName = process.env["HEALTHCAREAPIS_RESOURCE_GROUP"] || "rg1";
73
+ const resourceName = "service1";
74
+ const serviceDescription = {
75
+ identity: { type: "SystemAssigned" },
76
+ kind: "fhir-R4",
77
+ location: "Southeast Asia",
78
+ properties: {
79
+ accessPolicies: [
80
+ { objectId: "c487e7d1-3210-41a3-8ccc-e9372b78da47" },
81
+ { objectId: "5b307da8-43d4-492b-8b66-b0294ade872f" }
82
+ ],
83
+ authenticationConfiguration: {
84
+ audience: "https://azurehealthcareapis.com",
85
+ authority: "https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc",
86
+ smartProxyEnabled: true
87
+ },
88
+ corsConfiguration: {
89
+ allowCredentials: false,
90
+ headers: ["*"],
91
+ maxAge: 1440,
92
+ methods: ["DELETE", "GET", "OPTIONS", "PATCH", "POST", "PUT"],
93
+ origins: ["*"]
94
+ },
95
+ cosmosDbConfiguration: {
96
+ crossTenantCmkApplicationId: "de3fbeef-8c3a-428e-8b9f-4d229c8a85f4",
97
+ keyVaultKeyUri: "https://my-vault.vault.azure.net/keys/my-key",
98
+ offerThroughput: 1000
99
+ },
100
+ exportConfiguration: { storageAccountName: "existingStorageAccount" },
101
+ privateEndpointConnections: [],
102
+ publicNetworkAccess: "Disabled"
103
+ },
104
+ tags: {}
105
+ };
106
+ const credential = new DefaultAzureCredential();
107
+ const client = new HealthcareApisManagementClient(credential, subscriptionId);
108
+ const result = yield client.services.beginCreateOrUpdateAndWait(resourceGroupName, resourceName, serviceDescription);
109
+ console.log(result);
110
+ });
111
+ }
112
+ /**
113
+ * This sample demonstrates how to Create or update the metadata of a service instance.
114
+ *
115
+ * @summary Create or update the metadata of a service instance.
116
+ * x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2023-11-01/examples/legacy/ServiceCreateMinimum.json
67
117
  */
68
118
  function createOrUpdateAServiceWithMinimumParameters() {
69
119
  return __awaiter(this, void 0, void 0, function* () {
70
- const subscriptionId = "subid";
71
- const resourceGroupName = "rg1";
120
+ const subscriptionId = process.env["HEALTHCAREAPIS_SUBSCRIPTION_ID"] || "subid";
121
+ const resourceGroupName = process.env["HEALTHCAREAPIS_RESOURCE_GROUP"] || "rg1";
72
122
  const resourceName = "service2";
73
123
  const serviceDescription = {
74
124
  kind: "fhir-R4",
@@ -84,5 +134,12 @@ function createOrUpdateAServiceWithMinimumParameters() {
84
134
  console.log(result);
85
135
  });
86
136
  }
87
- createOrUpdateAServiceWithMinimumParameters().catch(console.error);
137
+ function main() {
138
+ return __awaiter(this, void 0, void 0, function* () {
139
+ createOrUpdateAServiceWithAllParameters();
140
+ createOrUpdateAServiceWithAllParametersAndCmkEnabledInADataSovereignRegion();
141
+ createOrUpdateAServiceWithMinimumParameters();
142
+ });
143
+ }
144
+ main().catch(console.error);
88
145
  //# sourceMappingURL=servicesCreateOrUpdateSample.js.map