@azure/arm-healthcareapis 2.0.0 → 2.1.1-alpha.20220330.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (324) hide show
  1. package/CHANGELOG.md +161 -0
  2. package/README.md +11 -0
  3. package/dist/index.js +4828 -844
  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.d.ts +2 -0
  8. package/dist-esm/samples-dev/dicomServicesCreateOrUpdateSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/dicomServicesCreateOrUpdateSample.js +33 -0
  10. package/dist-esm/samples-dev/dicomServicesCreateOrUpdateSample.js.map +1 -0
  11. package/dist-esm/samples-dev/dicomServicesDeleteSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/dicomServicesDeleteSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/dicomServicesDeleteSample.js +32 -0
  14. package/dist-esm/samples-dev/dicomServicesDeleteSample.js.map +1 -0
  15. package/dist-esm/samples-dev/dicomServicesGetSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/dicomServicesGetSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/dicomServicesGetSample.js +32 -0
  18. package/dist-esm/samples-dev/dicomServicesGetSample.js.map +1 -0
  19. package/dist-esm/samples-dev/dicomServicesListByWorkspaceSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/dicomServicesListByWorkspaceSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/dicomServicesListByWorkspaceSample.js +45 -0
  22. package/dist-esm/samples-dev/dicomServicesListByWorkspaceSample.js.map +1 -0
  23. package/dist-esm/samples-dev/dicomServicesUpdateSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/dicomServicesUpdateSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/dicomServicesUpdateSample.js +35 -0
  26. package/dist-esm/samples-dev/dicomServicesUpdateSample.js.map +1 -0
  27. package/dist-esm/samples-dev/fhirDestinationsListByIotConnectorSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/fhirDestinationsListByIotConnectorSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/fhirDestinationsListByIotConnectorSample.js +46 -0
  30. package/dist-esm/samples-dev/fhirDestinationsListByIotConnectorSample.js.map +1 -0
  31. package/dist-esm/samples-dev/fhirServicesCreateOrUpdateSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/fhirServicesCreateOrUpdateSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/fhirServicesCreateOrUpdateSample.js +60 -0
  34. package/dist-esm/samples-dev/fhirServicesCreateOrUpdateSample.js.map +1 -0
  35. package/dist-esm/samples-dev/fhirServicesDeleteSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/fhirServicesDeleteSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/fhirServicesDeleteSample.js +32 -0
  38. package/dist-esm/samples-dev/fhirServicesDeleteSample.js.map +1 -0
  39. package/dist-esm/samples-dev/fhirServicesGetSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/fhirServicesGetSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/fhirServicesGetSample.js +32 -0
  42. package/dist-esm/samples-dev/fhirServicesGetSample.js.map +1 -0
  43. package/dist-esm/samples-dev/fhirServicesListByWorkspaceSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/fhirServicesListByWorkspaceSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/fhirServicesListByWorkspaceSample.js +45 -0
  46. package/dist-esm/samples-dev/fhirServicesListByWorkspaceSample.js.map +1 -0
  47. package/dist-esm/samples-dev/fhirServicesUpdateSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/fhirServicesUpdateSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/fhirServicesUpdateSample.js +35 -0
  50. package/dist-esm/samples-dev/fhirServicesUpdateSample.js.map +1 -0
  51. package/dist-esm/samples-dev/iotConnectorFhirDestinationCreateOrUpdateSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/iotConnectorFhirDestinationCreateOrUpdateSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/iotConnectorFhirDestinationCreateOrUpdateSample.js +65 -0
  54. package/dist-esm/samples-dev/iotConnectorFhirDestinationCreateOrUpdateSample.js.map +1 -0
  55. package/dist-esm/samples-dev/iotConnectorFhirDestinationDeleteSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/iotConnectorFhirDestinationDeleteSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/iotConnectorFhirDestinationDeleteSample.js +33 -0
  58. package/dist-esm/samples-dev/iotConnectorFhirDestinationDeleteSample.js.map +1 -0
  59. package/dist-esm/samples-dev/iotConnectorFhirDestinationGetSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/iotConnectorFhirDestinationGetSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/iotConnectorFhirDestinationGetSample.js +33 -0
  62. package/dist-esm/samples-dev/iotConnectorFhirDestinationGetSample.js.map +1 -0
  63. package/dist-esm/samples-dev/iotConnectorsCreateOrUpdateSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/iotConnectorsCreateOrUpdateSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/iotConnectorsCreateOrUpdateSample.js +69 -0
  66. package/dist-esm/samples-dev/iotConnectorsCreateOrUpdateSample.js.map +1 -0
  67. package/dist-esm/samples-dev/iotConnectorsDeleteSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/iotConnectorsDeleteSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/iotConnectorsDeleteSample.js +32 -0
  70. package/dist-esm/samples-dev/iotConnectorsDeleteSample.js.map +1 -0
  71. package/dist-esm/samples-dev/iotConnectorsGetSample.d.ts +2 -0
  72. package/dist-esm/samples-dev/iotConnectorsGetSample.d.ts.map +1 -0
  73. package/dist-esm/samples-dev/iotConnectorsGetSample.js +32 -0
  74. package/dist-esm/samples-dev/iotConnectorsGetSample.js.map +1 -0
  75. package/dist-esm/samples-dev/iotConnectorsListByWorkspaceSample.d.ts +2 -0
  76. package/dist-esm/samples-dev/iotConnectorsListByWorkspaceSample.d.ts.map +1 -0
  77. package/dist-esm/samples-dev/iotConnectorsListByWorkspaceSample.js +45 -0
  78. package/dist-esm/samples-dev/iotConnectorsListByWorkspaceSample.js.map +1 -0
  79. package/dist-esm/samples-dev/iotConnectorsUpdateSample.d.ts +2 -0
  80. package/dist-esm/samples-dev/iotConnectorsUpdateSample.d.ts.map +1 -0
  81. package/dist-esm/samples-dev/iotConnectorsUpdateSample.js +40 -0
  82. package/dist-esm/samples-dev/iotConnectorsUpdateSample.js.map +1 -0
  83. package/dist-esm/samples-dev/operationResultsGetSample.d.ts +2 -0
  84. package/dist-esm/samples-dev/operationResultsGetSample.d.ts.map +1 -0
  85. package/dist-esm/samples-dev/operationResultsGetSample.js +31 -0
  86. package/dist-esm/samples-dev/operationResultsGetSample.js.map +1 -0
  87. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  88. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  89. package/dist-esm/samples-dev/operationsListSample.js +43 -0
  90. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  91. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts +2 -0
  92. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts.map +1 -0
  93. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +38 -0
  94. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -0
  95. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
  96. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  97. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +32 -0
  98. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
  99. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  100. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  101. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +32 -0
  102. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  103. package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.d.ts +2 -0
  104. package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.d.ts.map +1 -0
  105. package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js +45 -0
  106. package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js.map +1 -0
  107. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts +2 -0
  108. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts.map +1 -0
  109. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +32 -0
  110. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -0
  111. package/dist-esm/samples-dev/privateLinkResourcesListByServiceSample.d.ts +2 -0
  112. package/dist-esm/samples-dev/privateLinkResourcesListByServiceSample.d.ts.map +1 -0
  113. package/dist-esm/samples-dev/privateLinkResourcesListByServiceSample.js +31 -0
  114. package/dist-esm/samples-dev/privateLinkResourcesListByServiceSample.js.map +1 -0
  115. package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.d.ts +2 -0
  116. package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.d.ts.map +1 -0
  117. package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js +33 -0
  118. package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js.map +1 -0
  119. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.d.ts +2 -0
  120. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.d.ts.map +1 -0
  121. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +88 -0
  122. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js.map +1 -0
  123. package/dist-esm/samples-dev/servicesDeleteSample.d.ts +2 -0
  124. package/dist-esm/samples-dev/servicesDeleteSample.d.ts.map +1 -0
  125. package/dist-esm/samples-dev/servicesDeleteSample.js +31 -0
  126. package/dist-esm/samples-dev/servicesDeleteSample.js.map +1 -0
  127. package/dist-esm/samples-dev/servicesGetSample.d.ts +2 -0
  128. package/dist-esm/samples-dev/servicesGetSample.d.ts.map +1 -0
  129. package/dist-esm/samples-dev/servicesGetSample.js +31 -0
  130. package/dist-esm/samples-dev/servicesGetSample.js.map +1 -0
  131. package/dist-esm/samples-dev/servicesListByResourceGroupSample.d.ts +2 -0
  132. package/dist-esm/samples-dev/servicesListByResourceGroupSample.d.ts.map +1 -0
  133. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js +44 -0
  134. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js.map +1 -0
  135. package/dist-esm/samples-dev/servicesListSample.d.ts +2 -0
  136. package/dist-esm/samples-dev/servicesListSample.d.ts.map +1 -0
  137. package/dist-esm/samples-dev/servicesListSample.js +43 -0
  138. package/dist-esm/samples-dev/servicesListSample.js.map +1 -0
  139. package/dist-esm/samples-dev/servicesUpdateSample.d.ts +2 -0
  140. package/dist-esm/samples-dev/servicesUpdateSample.d.ts.map +1 -0
  141. package/dist-esm/samples-dev/servicesUpdateSample.js +34 -0
  142. package/dist-esm/samples-dev/servicesUpdateSample.js.map +1 -0
  143. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsCreateOrUpdateSample.d.ts +2 -0
  144. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsCreateOrUpdateSample.d.ts.map +1 -0
  145. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsCreateOrUpdateSample.js +38 -0
  146. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsCreateOrUpdateSample.js.map +1 -0
  147. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsDeleteSample.d.ts +2 -0
  148. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  149. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsDeleteSample.js +32 -0
  150. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsDeleteSample.js.map +1 -0
  151. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsGetSample.d.ts +2 -0
  152. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsGetSample.d.ts.map +1 -0
  153. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsGetSample.js +32 -0
  154. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsGetSample.js.map +1 -0
  155. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsListByWorkspaceSample.d.ts +2 -0
  156. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsListByWorkspaceSample.d.ts.map +1 -0
  157. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsListByWorkspaceSample.js +45 -0
  158. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsListByWorkspaceSample.js.map +1 -0
  159. package/dist-esm/samples-dev/workspacePrivateLinkResourcesGetSample.d.ts +2 -0
  160. package/dist-esm/samples-dev/workspacePrivateLinkResourcesGetSample.d.ts.map +1 -0
  161. package/dist-esm/samples-dev/workspacePrivateLinkResourcesGetSample.js +32 -0
  162. package/dist-esm/samples-dev/workspacePrivateLinkResourcesGetSample.js.map +1 -0
  163. package/dist-esm/samples-dev/workspacePrivateLinkResourcesListByWorkspaceSample.d.ts +2 -0
  164. package/dist-esm/samples-dev/workspacePrivateLinkResourcesListByWorkspaceSample.d.ts.map +1 -0
  165. package/dist-esm/samples-dev/workspacePrivateLinkResourcesListByWorkspaceSample.js +45 -0
  166. package/dist-esm/samples-dev/workspacePrivateLinkResourcesListByWorkspaceSample.js.map +1 -0
  167. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts +2 -0
  168. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts.map +1 -0
  169. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +32 -0
  170. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +1 -0
  171. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts +2 -0
  172. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts.map +1 -0
  173. package/dist-esm/samples-dev/workspacesDeleteSample.js +31 -0
  174. package/dist-esm/samples-dev/workspacesDeleteSample.js.map +1 -0
  175. package/dist-esm/samples-dev/workspacesGetSample.d.ts +2 -0
  176. package/dist-esm/samples-dev/workspacesGetSample.d.ts.map +1 -0
  177. package/dist-esm/samples-dev/workspacesGetSample.js +31 -0
  178. package/dist-esm/samples-dev/workspacesGetSample.js.map +1 -0
  179. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts +2 -0
  180. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts.map +1 -0
  181. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +44 -0
  182. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -0
  183. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts +2 -0
  184. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts.map +1 -0
  185. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +43 -0
  186. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -0
  187. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts +2 -0
  188. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts.map +1 -0
  189. package/dist-esm/samples-dev/workspacesUpdateSample.js +34 -0
  190. package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -0
  191. package/dist-esm/src/healthcareApisManagementClient.d.ts +11 -3
  192. package/dist-esm/src/healthcareApisManagementClient.d.ts.map +1 -1
  193. package/dist-esm/src/healthcareApisManagementClient.js +15 -6
  194. package/dist-esm/src/healthcareApisManagementClient.js.map +1 -1
  195. package/dist-esm/src/models/index.d.ts +821 -57
  196. package/dist-esm/src/models/index.d.ts.map +1 -1
  197. package/dist-esm/src/models/index.js +43 -0
  198. package/dist-esm/src/models/index.js.map +1 -1
  199. package/dist-esm/src/models/mappers.d.ts +45 -4
  200. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  201. package/dist-esm/src/models/mappers.js +1241 -110
  202. package/dist-esm/src/models/mappers.js.map +1 -1
  203. package/dist-esm/src/models/parameters.d.ts +17 -2
  204. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  205. package/dist-esm/src/models/parameters.js +126 -16
  206. package/dist-esm/src/models/parameters.js.map +1 -1
  207. package/dist-esm/src/operations/dicomServices.d.ts +99 -0
  208. package/dist-esm/src/operations/dicomServices.d.ts.map +1 -0
  209. package/dist-esm/src/operations/dicomServices.js +435 -0
  210. package/dist-esm/src/operations/dicomServices.js.map +1 -0
  211. package/dist-esm/src/operations/fhirDestinations.d.ts +41 -0
  212. package/dist-esm/src/operations/fhirDestinations.d.ts.map +1 -0
  213. package/dist-esm/src/operations/fhirDestinations.js +142 -0
  214. package/dist-esm/src/operations/fhirDestinations.js.map +1 -0
  215. package/dist-esm/src/operations/fhirServices.d.ts +99 -0
  216. package/dist-esm/src/operations/fhirServices.d.ts.map +1 -0
  217. package/dist-esm/src/operations/fhirServices.js +435 -0
  218. package/dist-esm/src/operations/fhirServices.js.map +1 -0
  219. package/dist-esm/src/operations/index.d.ts +10 -2
  220. package/dist-esm/src/operations/index.d.ts.map +1 -1
  221. package/dist-esm/src/operations/index.js +10 -2
  222. package/dist-esm/src/operations/index.js.map +1 -1
  223. package/dist-esm/src/operations/iotConnectorFhirDestination.d.ts +63 -0
  224. package/dist-esm/src/operations/iotConnectorFhirDestination.d.ts.map +1 -0
  225. package/dist-esm/src/operations/iotConnectorFhirDestination.js +251 -0
  226. package/dist-esm/src/operations/iotConnectorFhirDestination.js.map +1 -0
  227. package/dist-esm/src/operations/iotConnectors.d.ts +99 -0
  228. package/dist-esm/src/operations/iotConnectors.d.ts.map +1 -0
  229. package/dist-esm/src/operations/iotConnectors.js +435 -0
  230. package/dist-esm/src/operations/iotConnectors.js.map +1 -0
  231. package/dist-esm/src/operations/operationResults.js +0 -3
  232. package/dist-esm/src/operations/operationResults.js.map +1 -1
  233. package/dist-esm/src/operations/operations.d.ts +4 -4
  234. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  235. package/dist-esm/src/operations/operations.js +4 -4
  236. package/dist-esm/src/operations/operations.js.map +1 -1
  237. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  238. package/dist-esm/src/operations/privateEndpointConnections.js +6 -2
  239. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  240. package/dist-esm/src/operations/services.d.ts.map +1 -1
  241. package/dist-esm/src/operations/services.js +9 -3
  242. package/dist-esm/src/operations/services.js.map +1 -1
  243. package/dist-esm/src/operations/workspacePrivateEndpointConnections.d.ts +78 -0
  244. package/dist-esm/src/operations/workspacePrivateEndpointConnections.d.ts.map +1 -0
  245. package/dist-esm/src/operations/workspacePrivateEndpointConnections.js +318 -0
  246. package/dist-esm/src/operations/workspacePrivateEndpointConnections.js.map +1 -0
  247. package/dist-esm/src/operations/workspacePrivateLinkResources.d.ts +38 -0
  248. package/dist-esm/src/operations/workspacePrivateLinkResources.d.ts.map +1 -0
  249. package/dist-esm/src/operations/workspacePrivateLinkResources.js +131 -0
  250. package/dist-esm/src/operations/workspacePrivateLinkResources.js.map +1 -0
  251. package/dist-esm/src/operations/workspaces.d.ts +107 -0
  252. package/dist-esm/src/operations/workspaces.d.ts.map +1 -0
  253. package/dist-esm/src/operations/workspaces.js +506 -0
  254. package/dist-esm/src/operations/workspaces.js.map +1 -0
  255. package/dist-esm/src/operationsInterfaces/dicomServices.d.ts +74 -0
  256. package/dist-esm/src/operationsInterfaces/dicomServices.d.ts.map +1 -0
  257. package/dist-esm/src/operationsInterfaces/dicomServices.js +9 -0
  258. package/dist-esm/src/operationsInterfaces/dicomServices.js.map +1 -0
  259. package/dist-esm/src/operationsInterfaces/fhirDestinations.d.ts +14 -0
  260. package/dist-esm/src/operationsInterfaces/fhirDestinations.d.ts.map +1 -0
  261. package/dist-esm/src/operationsInterfaces/fhirDestinations.js +9 -0
  262. package/dist-esm/src/operationsInterfaces/fhirDestinations.js.map +1 -0
  263. package/dist-esm/src/operationsInterfaces/fhirServices.d.ts +74 -0
  264. package/dist-esm/src/operationsInterfaces/fhirServices.d.ts.map +1 -0
  265. package/dist-esm/src/operationsInterfaces/fhirServices.js +9 -0
  266. package/dist-esm/src/operationsInterfaces/fhirServices.js.map +1 -0
  267. package/dist-esm/src/operationsInterfaces/index.d.ts +10 -2
  268. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  269. package/dist-esm/src/operationsInterfaces/index.js +10 -2
  270. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  271. package/dist-esm/src/operationsInterfaces/iotConnectorFhirDestination.d.ts +55 -0
  272. package/dist-esm/src/operationsInterfaces/iotConnectorFhirDestination.d.ts.map +1 -0
  273. package/dist-esm/src/operationsInterfaces/iotConnectorFhirDestination.js +9 -0
  274. package/dist-esm/src/operationsInterfaces/iotConnectorFhirDestination.js.map +1 -0
  275. package/dist-esm/src/operationsInterfaces/iotConnectors.d.ts +74 -0
  276. package/dist-esm/src/operationsInterfaces/iotConnectors.d.ts.map +1 -0
  277. package/dist-esm/src/operationsInterfaces/iotConnectors.js +9 -0
  278. package/dist-esm/src/operationsInterfaces/iotConnectors.js.map +1 -0
  279. package/dist-esm/src/operationsInterfaces/operations.d.ts +3 -3
  280. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -1
  281. package/dist-esm/src/operationsInterfaces/workspacePrivateEndpointConnections.d.ts +61 -0
  282. package/dist-esm/src/operationsInterfaces/workspacePrivateEndpointConnections.d.ts.map +1 -0
  283. package/dist-esm/src/operationsInterfaces/workspacePrivateEndpointConnections.js +9 -0
  284. package/dist-esm/src/operationsInterfaces/workspacePrivateEndpointConnections.js.map +1 -0
  285. package/dist-esm/src/operationsInterfaces/workspacePrivateLinkResources.d.ts +21 -0
  286. package/dist-esm/src/operationsInterfaces/workspacePrivateLinkResources.d.ts.map +1 -0
  287. package/dist-esm/src/operationsInterfaces/workspacePrivateLinkResources.js +9 -0
  288. package/dist-esm/src/operationsInterfaces/workspacePrivateLinkResources.js.map +1 -0
  289. package/dist-esm/src/operationsInterfaces/workspaces.d.ts +71 -0
  290. package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -0
  291. package/dist-esm/src/operationsInterfaces/workspaces.js +9 -0
  292. package/dist-esm/src/operationsInterfaces/workspaces.js.map +1 -0
  293. package/package.json +24 -12
  294. package/review/arm-healthcareapis.api.md +731 -9
  295. package/rollup.config.js +6 -72
  296. package/src/healthcareApisManagementClient.ts +52 -13
  297. package/src/models/index.ts +968 -67
  298. package/src/models/mappers.ts +1374 -134
  299. package/src/models/parameters.ts +151 -16
  300. package/src/operations/dicomServices.ts +626 -0
  301. package/src/operations/fhirDestinations.ts +204 -0
  302. package/src/operations/fhirServices.ts +626 -0
  303. package/src/operations/index.ts +10 -2
  304. package/src/operations/iotConnectorFhirDestination.ts +360 -0
  305. package/src/operations/iotConnectors.ts +626 -0
  306. package/src/operations/operationResults.ts +0 -3
  307. package/src/operations/operations.ts +8 -8
  308. package/src/operations/privateEndpointConnections.ts +6 -2
  309. package/src/operations/services.ts +9 -3
  310. package/src/operations/workspacePrivateEndpointConnections.ts +450 -0
  311. package/src/operations/workspacePrivateLinkResources.ts +180 -0
  312. package/src/operations/workspaces.ts +680 -0
  313. package/src/operationsInterfaces/dicomServices.ts +147 -0
  314. package/src/operationsInterfaces/fhirDestinations.ts +31 -0
  315. package/src/operationsInterfaces/fhirServices.ts +147 -0
  316. package/src/operationsInterfaces/index.ts +10 -2
  317. package/src/operationsInterfaces/iotConnectorFhirDestination.ts +107 -0
  318. package/src/operationsInterfaces/iotConnectors.ts +147 -0
  319. package/src/operationsInterfaces/operations.ts +3 -3
  320. package/src/operationsInterfaces/workspacePrivateEndpointConnections.ts +116 -0
  321. package/src/operationsInterfaces/workspacePrivateLinkResources.ts +44 -0
  322. package/src/operationsInterfaces/workspaces.ts +139 -0
  323. package/tsconfig.json +18 -5
  324. package/types/arm-healthcareapis.d.ts +1346 -30
package/dist/index.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),tslib=require("tslib"),coreLro=require("@azure/core-lro");!function(e){e.Deleting="Deleting",e.Succeeded="Succeeded",e.Creating="Creating",e.Accepted="Accepted",e.Verifying="Verifying",e.Updating="Updating",e.Failed="Failed",e.Canceled="Canceled",e.Deprovisioned="Deprovisioned"}(exports.KnownProvisioningState||(exports.KnownProvisioningState={})),function(e){e.Pending="Pending",e.Approved="Approved",e.Rejected="Rejected"}(exports.KnownPrivateEndpointServiceConnectionStatus||(exports.KnownPrivateEndpointServiceConnectionStatus={})),function(e){e.Succeeded="Succeeded",e.Creating="Creating",e.Deleting="Deleting",e.Failed="Failed"}(exports.KnownPrivateEndpointConnectionProvisioningState||(exports.KnownPrivateEndpointConnectionProvisioningState={})),function(e){e.Enabled="Enabled",e.Disabled="Disabled"}(exports.KnownPublicNetworkAccess||(exports.KnownPublicNetworkAccess={})),function(e){e.User="User",e.Application="Application",e.ManagedIdentity="ManagedIdentity",e.Key="Key"}(exports.KnownCreatedByType||(exports.KnownCreatedByType={})),function(e){e.SystemAssigned="SystemAssigned",e.None="None"}(exports.KnownManagedServiceIdentityType||(exports.KnownManagedServiceIdentityType={})),function(e){e.Canceled="Canceled",e.Succeeded="Succeeded",e.Failed="Failed",e.Requested="Requested",e.Running="Running"}(exports.KnownOperationResultStatus||(exports.KnownOperationResultStatus={}));const ServicesProperties={type:{name:"Composite",className:"ServicesProperties",modelProperties:{provisioningState:{serializedName:"provisioningState",readOnly:!0,type:{name:"String"}},accessPolicies:{serializedName:"accessPolicies",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServiceAccessPolicyEntry"}}}},cosmosDbConfiguration:{serializedName:"cosmosDbConfiguration",type:{name:"Composite",className:"ServiceCosmosDbConfigurationInfo"}},authenticationConfiguration:{serializedName:"authenticationConfiguration",type:{name:"Composite",className:"ServiceAuthenticationConfigurationInfo"}},corsConfiguration:{serializedName:"corsConfiguration",type:{name:"Composite",className:"ServiceCorsConfigurationInfo"}},exportConfiguration:{serializedName:"exportConfiguration",type:{name:"Composite",className:"ServiceExportConfigurationInfo"}},privateEndpointConnections:{serializedName:"privateEndpointConnections",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}},publicNetworkAccess:{serializedName:"publicNetworkAccess",type:{name:"String"}},acrConfiguration:{serializedName:"acrConfiguration",type:{name:"Composite",className:"ServiceAcrConfigurationInfo"}}}}},ServiceAccessPolicyEntry={type:{name:"Composite",className:"ServiceAccessPolicyEntry",modelProperties:{objectId:{constraints:{Pattern:new RegExp("^(([0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}){1})+$")},serializedName:"objectId",required:!0,type:{name:"String"}}}}},ServiceCosmosDbConfigurationInfo={type:{name:"Composite",className:"ServiceCosmosDbConfigurationInfo",modelProperties:{offerThroughput:{constraints:{InclusiveMaximum:1e4,InclusiveMinimum:400},serializedName:"offerThroughput",type:{name:"Number"}},keyVaultKeyUri:{serializedName:"keyVaultKeyUri",type:{name:"String"}}}}},ServiceAuthenticationConfigurationInfo={type:{name:"Composite",className:"ServiceAuthenticationConfigurationInfo",modelProperties:{authority:{serializedName:"authority",type:{name:"String"}},audience:{serializedName:"audience",type:{name:"String"}},smartProxyEnabled:{serializedName:"smartProxyEnabled",type:{name:"Boolean"}}}}},ServiceCorsConfigurationInfo={type:{name:"Composite",className:"ServiceCorsConfigurationInfo",modelProperties:{origins:{serializedName:"origins",type:{name:"Sequence",element:{constraints:{Pattern:new RegExp("^(?:(?:(?:[hH][tT][tT][pP](?:[sS]|))\\:\\/\\/(?:[a-zA-Z0-9-]+[.]?)+(?:\\:[0-9]{1,5})?|[*]))$")},type:{name:"String"}}}},headers:{serializedName:"headers",type:{name:"Sequence",element:{type:{name:"String"}}}},methods:{serializedName:"methods",type:{name:"Sequence",element:{type:{name:"String"}}}},maxAge:{constraints:{InclusiveMaximum:99999,InclusiveMinimum:0},serializedName:"maxAge",type:{name:"Number"}},allowCredentials:{serializedName:"allowCredentials",type:{name:"Boolean"}}}}},ServiceExportConfigurationInfo={type:{name:"Composite",className:"ServiceExportConfigurationInfo",modelProperties:{storageAccountName:{serializedName:"storageAccountName",type:{name:"String"}}}}},PrivateEndpoint={type:{name:"Composite",className:"PrivateEndpoint",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}}}}},PrivateLinkServiceConnectionState={type:{name:"Composite",className:"PrivateLinkServiceConnectionState",modelProperties:{status:{serializedName:"status",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}},actionsRequired:{serializedName:"actionsRequired",type:{name:"String"}}}}},Resource={type:{name:"Composite",className:"Resource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}}}}},ServiceAcrConfigurationInfo={type:{name:"Composite",className:"ServiceAcrConfigurationInfo",modelProperties:{loginServers:{serializedName:"loginServers",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},SystemData={type:{name:"Composite",className:"SystemData",modelProperties:{createdBy:{serializedName:"createdBy",type:{name:"String"}},createdByType:{serializedName:"createdByType",type:{name:"String"}},createdAt:{serializedName:"createdAt",type:{name:"DateTime"}},lastModifiedBy:{serializedName:"lastModifiedBy",type:{name:"String"}},lastModifiedByType:{serializedName:"lastModifiedByType",type:{name:"String"}},lastModifiedAt:{serializedName:"lastModifiedAt",type:{name:"DateTime"}}}}},ServicesResource={type:{name:"Composite",className:"ServicesResource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{constraints:{Pattern:new RegExp("^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$")},serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},kind:{serializedName:"kind",required:!0,type:{name:"Enum",allowedValues:["fhir","fhir-Stu3","fhir-R4"]}},location:{serializedName:"location",required:!0,type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",type:{name:"String"}},identity:{serializedName:"identity",type:{name:"Composite",className:"ServicesResourceIdentity"}}}}},ServicesResourceIdentity={type:{name:"Composite",className:"ServicesResourceIdentity",modelProperties:{principalId:{serializedName:"principalId",readOnly:!0,type:{name:"String"}},tenantId:{serializedName:"tenantId",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",type:{name:"String"}}}}},ErrorDetails={type:{name:"Composite",className:"ErrorDetails",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorDetailsInternal"}}}}},ErrorDetailsInternal={type:{name:"Composite",className:"ErrorDetailsInternal",modelProperties:{code:{serializedName:"code",readOnly:!0,type:{name:"String"}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}},target:{serializedName:"target",readOnly:!0,type:{name:"String"}}}}},ServicesPatchDescription={type:{name:"Composite",className:"ServicesPatchDescription",modelProperties:{tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},publicNetworkAccess:{serializedName:"properties.publicNetworkAccess",type:{name:"String"}}}}},ServicesDescriptionListResult={type:{name:"Composite",className:"ServicesDescriptionListResult",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServicesDescription"}}}}}}},OperationListResult={type:{name:"Composite",className:"OperationListResult",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}}}}},Operation={type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},origin:{serializedName:"origin",readOnly:!0,type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",readOnly:!0,type:{name:"String"}},resource:{serializedName:"resource",readOnly:!0,type:{name:"String"}},operation:{serializedName:"operation",readOnly:!0,type:{name:"String"}},description:{serializedName:"description",readOnly:!0,type:{name:"String"}}}}},CheckNameAvailabilityParameters={type:{name:"Composite",className:"CheckNameAvailabilityParameters",modelProperties:{name:{serializedName:"name",required:!0,type:{name:"String"}},type:{serializedName:"type",required:!0,type:{name:"String"}}}}},ServicesNameAvailabilityInfo={type:{name:"Composite",className:"ServicesNameAvailabilityInfo",modelProperties:{nameAvailable:{serializedName:"nameAvailable",readOnly:!0,type:{name:"Boolean"}},reason:{serializedName:"reason",readOnly:!0,type:{name:"Enum",allowedValues:["Invalid","AlreadyExists"]}},message:{serializedName:"message",type:{name:"String"}}}}},OperationResultsDescription={type:{name:"Composite",className:"OperationResultsDescription",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},status:{serializedName:"status",readOnly:!0,type:{name:"String"}},startTime:{serializedName:"startTime",readOnly:!0,type:{name:"String"}},properties:{serializedName:"properties",type:{name:"any"}}}}},PrivateEndpointConnectionListResultDescription={type:{name:"Composite",className:"PrivateEndpointConnectionListResultDescription",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnectionDescription"}}}}}}},PrivateLinkResourceListResultDescription={type:{name:"Composite",className:"PrivateLinkResourceListResultDescription",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateLinkResourceDescription"}}}}}}},PrivateEndpointConnection={type:{name:"Composite",className:"PrivateEndpointConnection",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{privateEndpoint:{serializedName:"properties.privateEndpoint",type:{name:"Composite",className:"PrivateEndpoint"}},privateLinkServiceConnectionState:{serializedName:"properties.privateLinkServiceConnectionState",type:{name:"Composite",className:"PrivateLinkServiceConnectionState"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}}})}},PrivateLinkResource={type:{name:"Composite",className:"PrivateLinkResource",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{groupId:{serializedName:"properties.groupId",readOnly:!0,type:{name:"String"}},requiredMembers:{serializedName:"properties.requiredMembers",readOnly:!0,type:{name:"Sequence",element:{type:{name:"String"}}}},requiredZoneNames:{serializedName:"properties.requiredZoneNames",type:{name:"Sequence",element:{type:{name:"String"}}}}})}},ServicesDescription={type:{name:"Composite",className:"ServicesDescription",modelProperties:Object.assign(Object.assign({},ServicesResource.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"ServicesProperties"}},systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}}})}},PrivateEndpointConnectionDescription={type:{name:"Composite",className:"PrivateEndpointConnectionDescription",modelProperties:Object.assign(Object.assign({},PrivateEndpointConnection.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}}})}},PrivateLinkResourceDescription={type:{name:"Composite",className:"PrivateLinkResourceDescription",modelProperties:Object.assign(Object.assign({},PrivateLinkResource.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}}})}};var Mappers=Object.freeze({__proto__:null,ServicesProperties:ServicesProperties,ServiceAccessPolicyEntry:ServiceAccessPolicyEntry,ServiceCosmosDbConfigurationInfo:ServiceCosmosDbConfigurationInfo,ServiceAuthenticationConfigurationInfo:ServiceAuthenticationConfigurationInfo,ServiceCorsConfigurationInfo:ServiceCorsConfigurationInfo,ServiceExportConfigurationInfo:ServiceExportConfigurationInfo,PrivateEndpoint:PrivateEndpoint,PrivateLinkServiceConnectionState:PrivateLinkServiceConnectionState,Resource:Resource,ServiceAcrConfigurationInfo:ServiceAcrConfigurationInfo,SystemData:SystemData,ServicesResource:ServicesResource,ServicesResourceIdentity:ServicesResourceIdentity,ErrorDetails:ErrorDetails,ErrorDetailsInternal:ErrorDetailsInternal,ServicesPatchDescription:ServicesPatchDescription,ServicesDescriptionListResult:ServicesDescriptionListResult,OperationListResult:OperationListResult,Operation:Operation,OperationDisplay:OperationDisplay,CheckNameAvailabilityParameters:CheckNameAvailabilityParameters,ServicesNameAvailabilityInfo:ServicesNameAvailabilityInfo,OperationResultsDescription:OperationResultsDescription,PrivateEndpointConnectionListResultDescription:PrivateEndpointConnectionListResultDescription,PrivateLinkResourceListResultDescription:PrivateLinkResourceListResultDescription,PrivateEndpointConnection:PrivateEndpointConnection,PrivateLinkResource:PrivateLinkResource,ServicesDescription:ServicesDescription,PrivateEndpointConnectionDescription:PrivateEndpointConnectionDescription,PrivateLinkResourceDescription:PrivateLinkResourceDescription});const accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2021-01-11",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},resourceGroupName={parameterPath:"resourceGroupName",mapper:{constraints:{Pattern:new RegExp("^[-\\w\\._\\(\\)]+$"),MaxLength:90,MinLength:1},serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},resourceName={parameterPath:"resourceName",mapper:{constraints:{MaxLength:24,MinLength:3},serializedName:"resourceName",required:!0,type:{name:"String"}}},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},serviceDescription={parameterPath:"serviceDescription",mapper:ServicesDescription},servicePatchDescription={parameterPath:"servicePatchDescription",mapper:ServicesPatchDescription},checkNameAvailabilityInputs={parameterPath:"checkNameAvailabilityInputs",mapper:CheckNameAvailabilityParameters},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0},locationName={parameterPath:"locationName",mapper:{serializedName:"locationName",required:!0,type:{name:"String"}}},operationResultId={parameterPath:"operationResultId",mapper:{serializedName:"operationResultId",required:!0,type:{name:"String"}}},privateEndpointConnectionName={parameterPath:"privateEndpointConnectionName",mapper:{serializedName:"privateEndpointConnectionName",required:!0,type:{name:"String"}}},properties={parameterPath:"properties",mapper:PrivateEndpointConnection},groupName={parameterPath:"groupName",mapper:{serializedName:"groupName",required:!0,type:{name:"String"}}};class LroImpl{constructor(e,i,t,r=t.path,a=t.httpMethod){this.sendOperationFn=e,this.args=i,this.spec=t,this.requestPath=r,this.requestMethod=a}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(i){return tslib.__awaiter(this,void 0,void 0,function*(){var e=this.spec,e=tslib.__rest(e,["requestBody"]);return this.sendOperationFn(this.args,Object.assign(Object.assign({},e),{path:i,httpMethod:"GET"}))})}}class ServicesImpl{constructor(e){this.client=e}list(e){const i=this.listPagingAll(e);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t));yield yield tslib.__await(e.value||[]);let i=e.nextLink;for(;i;)e=yield tslib.__await(this._listNext(i,t)),i=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(s){return tslib.__asyncGenerator(this,arguments,function*(){var i,e;try{for(var t,r=tslib.__asyncValues(this.listPagingPage(s));!(t=yield tslib.__await(r.next())).done;){var a=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){i={error:e}}finally{try{t&&!t.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(i)throw i.error}}})}listByResourceGroup(e,i){const t=this.listByResourceGroupPagingAll(e,i);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByResourceGroupPagingPage(e,i)}}listByResourceGroupPagingPage(t,r){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(t,r));yield yield tslib.__await(e.value||[]);let i=e.nextLink;for(;i;)e=yield tslib.__await(this._listByResourceGroupNext(t,i,r)),i=e.nextLink,yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(s,n){return tslib.__asyncGenerator(this,arguments,function*(){var i,e;try{for(var t,r=tslib.__asyncValues(this.listByResourceGroupPagingPage(s,n));!(t=yield tslib.__await(r.next())).done;){var a=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){i={error:e}}finally{try{t&&!t.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(i)throw i.error}}})}get(e,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,options:t},getOperationSpec)}beginCreateOrUpdate(i,t,r,a){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const r=null===(e=i.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{t=e,null!==r&&void 0!==r&&r(e,i)}})});return{flatResponse:yield s(e,a),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,serviceDescription:r,options:a},createOrUpdateOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs})})}beginCreateOrUpdateAndWait(i,t,r,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(i,t,r,a);return e.pollUntilDone()})}beginUpdate(i,t,r,a){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const r=null===(e=i.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{t=e,null!==r&&void 0!==r&&r(e,i)}})});return{flatResponse:yield s(e,a),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,servicePatchDescription:r,options:a},updateOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs})})}beginUpdateAndWait(i,t,r,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(i,t,r,a);return e.pollUntilDone()})}beginDelete(i,t,r){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const r=null===(e=i.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{t=e,null!==r&&void 0!==r&&r(e,i)}})});return{flatResponse:yield s(e,a),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,options:r},deleteOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==r?void 0:r.resumeFrom,intervalInMs:null==r?void 0:r.updateIntervalInMs})})}beginDeleteAndWait(i,t,r){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(i,t,r);return e.pollUntilDone()})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listByResourceGroup(e,i){return this.client.sendOperationRequest({resourceGroupName:e,options:i},listByResourceGroupOperationSpec)}checkNameAvailability(e,i){return this.client.sendOperationRequest({checkNameAvailabilityInputs:e,options:i},checkNameAvailabilityOperationSpec)}_listNext(e,i){return this.client.sendOperationRequest({nextLink:e,options:i},listNextOperationSpec)}_listByResourceGroupNext(e,i,t){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:i,options:t},listByResourceGroupNextOperationSpec)}}const serializer=coreClient.createSerializer(Mappers,!1),getOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer},createOrUpdateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",httpMethod:"PUT",responses:{200:{bodyMapper:ServicesDescription},201:{bodyMapper:ServicesDescription},202:{bodyMapper:ServicesDescription},204:{bodyMapper:ServicesDescription},default:{bodyMapper:ErrorDetails}},requestBody:serviceDescription,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:ServicesDescription},201:{bodyMapper:ServicesDescription},202:{bodyMapper:ServicesDescription},204:{bodyMapper:ServicesDescription},default:{bodyMapper:ErrorDetails}},requestBody:servicePatchDescription,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer},listOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/services",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescriptionListResult},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer},listByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescriptionListResult},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer},checkNameAvailabilityOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/checkNameAvailability",httpMethod:"POST",responses:{200:{bodyMapper:ServicesNameAvailabilityInfo},default:{bodyMapper:ErrorDetails}},requestBody:checkNameAvailabilityInputs,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescriptionListResult},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer},listByResourceGroupNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescriptionListResult},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer};class OperationsImpl{constructor(e){this.client=e}list(e){const i=this.listPagingAll(e);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t));yield yield tslib.__await(e.value||[]);let i=e.nextLink;for(;i;)e=yield tslib.__await(this._listNext(i,t)),i=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(s){return tslib.__asyncGenerator(this,arguments,function*(){var i,e;try{for(var t,r=tslib.__asyncValues(this.listPagingPage(s));!(t=yield tslib.__await(r.next())).done;){var a=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){i={error:e}}finally{try{t&&!t.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(i)throw i.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$1)}_listNext(e,i){return this.client.sendOperationRequest({nextLink:e,options:i},listNextOperationSpec$1)}}const serializer$1=coreClient.createSerializer(Mappers,!1),listOperationSpec$1={path:"/providers/Microsoft.HealthcareApis/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$1};class OperationResultsImpl{constructor(e){this.client=e}get(e,i,t){return this.client.sendOperationRequest({locationName:e,operationResultId:i,options:t},getOperationSpec$1)}}const serializer$2=coreClient.createSerializer(Mappers,!1),getOperationSpec$1={path:"/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/locations/{locationName}/operationresults/{operationResultId}",httpMethod:"GET",responses:{200:{bodyMapper:OperationResultsDescription},404:{bodyMapper:ErrorDetails},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,locationName,operationResultId],headerParameters:[accept],serializer:serializer$2};class PrivateEndpointConnectionsImpl{constructor(e){this.client=e}listByService(e,i,t){const r=this.listByServicePagingAll(e,i,t);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByServicePagingPage(e,i,t)}}listByServicePagingPage(i,t,r){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByService(i,t,r));yield yield tslib.__await(e.value||[])})}listByServicePagingAll(s,n,o){return tslib.__asyncGenerator(this,arguments,function*(){var i,e;try{for(var t,r=tslib.__asyncValues(this.listByServicePagingPage(s,n,o));!(t=yield tslib.__await(r.next())).done;){var a=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){i={error:e}}finally{try{t&&!t.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(i)throw i.error}}})}_listByService(e,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,options:t},listByServiceOperationSpec)}get(e,i,t,r){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,privateEndpointConnectionName:t,options:r},getOperationSpec$2)}beginCreateOrUpdate(i,t,r,a,n){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const r=null===(e=i.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{t=e,null!==r&&void 0!==r&&r(e,i)}})});return{flatResponse:yield s(e,a),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,privateEndpointConnectionName:r,properties:a,options:n},createOrUpdateOperationSpec$1);return new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs})})}beginCreateOrUpdateAndWait(i,t,r,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(i,t,r,a,s);return e.pollUntilDone()})}beginDelete(i,t,r,a){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const r=null===(e=i.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{t=e,null!==r&&void 0!==r&&r(e,i)}})});return{flatResponse:yield s(e,a),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,privateEndpointConnectionName:r,options:a},deleteOperationSpec$1);return new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs})})}beginDeleteAndWait(i,t,r,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(i,t,r,a);return e.pollUntilDone()})}}const serializer$3=coreClient.createSerializer(Mappers,!1),listByServiceOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnectionListResultDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer$3},getOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnectionDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,privateEndpointConnectionName],headerParameters:[accept],serializer:serializer$3},createOrUpdateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"PUT",responses:{200:{bodyMapper:PrivateEndpointConnectionDescription},201:{bodyMapper:PrivateEndpointConnectionDescription},202:{bodyMapper:PrivateEndpointConnectionDescription},204:{bodyMapper:PrivateEndpointConnectionDescription},default:{bodyMapper:ErrorDetails}},requestBody:properties,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,privateEndpointConnectionName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$3},deleteOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,privateEndpointConnectionName],headerParameters:[accept],serializer:serializer$3};class PrivateLinkResourcesImpl{constructor(e){this.client=e}listByService(e,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,options:t},listByServiceOperationSpec$1)}get(e,i,t,r){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,groupName:t,options:r},getOperationSpec$3)}}const serializer$4=coreClient.createSerializer(Mappers,!1),listByServiceOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceListResultDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer$4},getOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources/{groupName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,groupName],headerParameters:[accept],serializer:serializer$4};class HealthcareApisManagementClient extends coreClient.ServiceClient{constructor(e,i,t){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===i)throw new Error("'subscriptionId' cannot be null");var r={requestContentType:"application/json; charset=utf-8",credential:e},e="azsdk-js-arm-healthcareapis/2.0.0",e=(t=t||{}).userAgentOptions&&t.userAgentOptions.userAgentPrefix?t.userAgentOptions.userAgentPrefix+" "+e:e;t.credentialScopes||(t.credentialScopes=["https://management.azure.com/.default"]),super(Object.assign(Object.assign(Object.assign({},r),t),{userAgentOptions:{userAgentPrefix:e},baseUri:t.endpoint||"https://management.azure.com"})),this.subscriptionId=i,this.$host=t.$host||"https://management.azure.com",this.apiVersion=t.apiVersion||"2021-01-11",this.services=new ServicesImpl(this),this.operations=new OperationsImpl(this),this.operationResults=new OperationResultsImpl(this),this.privateEndpointConnections=new PrivateEndpointConnectionsImpl(this),this.privateLinkResources=new PrivateLinkResourcesImpl(this)}}exports.HealthcareApisManagementClient=HealthcareApisManagementClient;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),tslib=require("tslib"),coreLro=require("@azure/core-lro");function _interopNamespace(i){if(i&&i.__esModule)return i;var t=Object.create(null);return i&&Object.keys(i).forEach(function(e){var r;"default"!==e&&(r=Object.getOwnPropertyDescriptor(i,e),Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:function(){return i[e]}}))}),t.default=i,Object.freeze(t)}var coreClient__namespace=_interopNamespace(coreClient);exports.KnownProvisioningState=void 0,function(e){e.Deleting="Deleting",e.Succeeded="Succeeded",e.Creating="Creating",e.Accepted="Accepted",e.Verifying="Verifying",e.Updating="Updating",e.Failed="Failed",e.Canceled="Canceled",e.Deprovisioned="Deprovisioned",e.Moving="Moving",e.Suspended="Suspended",e.Warned="Warned",e.SystemMaintenance="SystemMaintenance"}(exports.KnownProvisioningState||(exports.KnownProvisioningState={})),exports.KnownPrivateEndpointServiceConnectionStatus=void 0,function(e){e.Pending="Pending",e.Approved="Approved",e.Rejected="Rejected"}(exports.KnownPrivateEndpointServiceConnectionStatus||(exports.KnownPrivateEndpointServiceConnectionStatus={})),exports.KnownPrivateEndpointConnectionProvisioningState=void 0,function(e){e.Succeeded="Succeeded",e.Creating="Creating",e.Deleting="Deleting",e.Failed="Failed"}(exports.KnownPrivateEndpointConnectionProvisioningState||(exports.KnownPrivateEndpointConnectionProvisioningState={})),exports.KnownPublicNetworkAccess=void 0,function(e){e.Enabled="Enabled",e.Disabled="Disabled"}(exports.KnownPublicNetworkAccess||(exports.KnownPublicNetworkAccess={})),exports.KnownCreatedByType=void 0,function(e){e.User="User",e.Application="Application",e.ManagedIdentity="ManagedIdentity",e.Key="Key"}(exports.KnownCreatedByType||(exports.KnownCreatedByType={})),exports.KnownManagedServiceIdentityType=void 0,function(e){e.SystemAssigned="SystemAssigned",e.None="None"}(exports.KnownManagedServiceIdentityType||(exports.KnownManagedServiceIdentityType={})),exports.KnownServiceManagedIdentityType=void 0,function(e){e.None="None",e.SystemAssigned="SystemAssigned",e.UserAssigned="UserAssigned",e.SystemAssignedUserAssigned="SystemAssigned,UserAssigned"}(exports.KnownServiceManagedIdentityType||(exports.KnownServiceManagedIdentityType={})),exports.KnownIotIdentityResolutionType=void 0,function(e){e.Create="Create",e.Lookup="Lookup"}(exports.KnownIotIdentityResolutionType||(exports.KnownIotIdentityResolutionType={})),exports.KnownFhirServiceKind=void 0,function(e){e.FhirStu3="fhir-Stu3",e.FhirR4="fhir-R4"}(exports.KnownFhirServiceKind||(exports.KnownFhirServiceKind={})),exports.KnownServiceEventState=void 0,function(e){e.Disabled="Disabled",e.Enabled="Enabled",e.Updating="Updating"}(exports.KnownServiceEventState||(exports.KnownServiceEventState={})),exports.KnownFhirResourceVersionPolicy=void 0,function(e){e.NoVersion="no-version",e.Versioned="versioned",e.VersionedUpdate="versioned-update"}(exports.KnownFhirResourceVersionPolicy||(exports.KnownFhirResourceVersionPolicy={})),exports.KnownActionType=void 0,(exports.KnownActionType||(exports.KnownActionType={})).Internal="Internal",exports.KnownOperationResultStatus=void 0,function(e){e.Canceled="Canceled",e.Succeeded="Succeeded",e.Failed="Failed",e.Requested="Requested",e.Running="Running"}(exports.KnownOperationResultStatus||(exports.KnownOperationResultStatus={}));const ServicesProperties={type:{name:"Composite",className:"ServicesProperties",modelProperties:{provisioningState:{serializedName:"provisioningState",readOnly:!0,type:{name:"String"}},accessPolicies:{serializedName:"accessPolicies",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServiceAccessPolicyEntry"}}}},cosmosDbConfiguration:{serializedName:"cosmosDbConfiguration",type:{name:"Composite",className:"ServiceCosmosDbConfigurationInfo"}},authenticationConfiguration:{serializedName:"authenticationConfiguration",type:{name:"Composite",className:"ServiceAuthenticationConfigurationInfo"}},corsConfiguration:{serializedName:"corsConfiguration",type:{name:"Composite",className:"ServiceCorsConfigurationInfo"}},exportConfiguration:{serializedName:"exportConfiguration",type:{name:"Composite",className:"ServiceExportConfigurationInfo"}},privateEndpointConnections:{serializedName:"privateEndpointConnections",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}},publicNetworkAccess:{serializedName:"publicNetworkAccess",type:{name:"String"}},acrConfiguration:{serializedName:"acrConfiguration",type:{name:"Composite",className:"ServiceAcrConfigurationInfo"}}}}},ServiceAccessPolicyEntry={type:{name:"Composite",className:"ServiceAccessPolicyEntry",modelProperties:{objectId:{constraints:{Pattern:new RegExp("^(([0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}){1})+$")},serializedName:"objectId",required:!0,type:{name:"String"}}}}},ServiceCosmosDbConfigurationInfo={type:{name:"Composite",className:"ServiceCosmosDbConfigurationInfo",modelProperties:{offerThroughput:{constraints:{InclusiveMaximum:1e4,InclusiveMinimum:400},serializedName:"offerThroughput",type:{name:"Number"}},keyVaultKeyUri:{serializedName:"keyVaultKeyUri",type:{name:"String"}}}}},ServiceAuthenticationConfigurationInfo={type:{name:"Composite",className:"ServiceAuthenticationConfigurationInfo",modelProperties:{authority:{serializedName:"authority",type:{name:"String"}},audience:{serializedName:"audience",type:{name:"String"}},smartProxyEnabled:{serializedName:"smartProxyEnabled",type:{name:"Boolean"}}}}},ServiceCorsConfigurationInfo={type:{name:"Composite",className:"ServiceCorsConfigurationInfo",modelProperties:{origins:{serializedName:"origins",type:{name:"Sequence",element:{constraints:{Pattern:new RegExp("^(?:(?:(?:[hH][tT][tT][pP](?:[sS]|))\\:\\/\\/(?:[a-zA-Z0-9-]+[.]?)+(?:\\:[0-9]{1,5})?|[*]))$")},type:{name:"String"}}}},headers:{serializedName:"headers",type:{name:"Sequence",element:{type:{name:"String"}}}},methods:{serializedName:"methods",type:{name:"Sequence",element:{type:{name:"String"}}}},maxAge:{constraints:{InclusiveMaximum:99999,InclusiveMinimum:0},serializedName:"maxAge",type:{name:"Number"}},allowCredentials:{serializedName:"allowCredentials",type:{name:"Boolean"}}}}},ServiceExportConfigurationInfo={type:{name:"Composite",className:"ServiceExportConfigurationInfo",modelProperties:{storageAccountName:{serializedName:"storageAccountName",type:{name:"String"}}}}},PrivateEndpoint={type:{name:"Composite",className:"PrivateEndpoint",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}}}}},PrivateLinkServiceConnectionState={type:{name:"Composite",className:"PrivateLinkServiceConnectionState",modelProperties:{status:{serializedName:"status",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}},actionsRequired:{serializedName:"actionsRequired",type:{name:"String"}}}}},Resource={type:{name:"Composite",className:"Resource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}}}}},ServiceAcrConfigurationInfo={type:{name:"Composite",className:"ServiceAcrConfigurationInfo",modelProperties:{loginServers:{serializedName:"loginServers",type:{name:"Sequence",element:{type:{name:"String"}}}},ociArtifacts:{serializedName:"ociArtifacts",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServiceOciArtifactEntry"}}}}}}},ServiceOciArtifactEntry={type:{name:"Composite",className:"ServiceOciArtifactEntry",modelProperties:{loginServer:{serializedName:"loginServer",type:{name:"String"}},imageName:{serializedName:"imageName",type:{name:"String"}},digest:{serializedName:"digest",type:{name:"String"}}}}},SystemData={type:{name:"Composite",className:"SystemData",modelProperties:{createdBy:{serializedName:"createdBy",type:{name:"String"}},createdByType:{serializedName:"createdByType",type:{name:"String"}},createdAt:{serializedName:"createdAt",type:{name:"DateTime"}},lastModifiedBy:{serializedName:"lastModifiedBy",type:{name:"String"}},lastModifiedByType:{serializedName:"lastModifiedByType",type:{name:"String"}},lastModifiedAt:{serializedName:"lastModifiedAt",type:{name:"DateTime"}}}}},ServicesResource={type:{name:"Composite",className:"ServicesResource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{constraints:{Pattern:new RegExp("^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$")},serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},kind:{serializedName:"kind",required:!0,type:{name:"Enum",allowedValues:["fhir","fhir-Stu3","fhir-R4"]}},location:{serializedName:"location",required:!0,type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",type:{name:"String"}},identity:{serializedName:"identity",type:{name:"Composite",className:"ServicesResourceIdentity"}}}}},ServicesResourceIdentity={type:{name:"Composite",className:"ServicesResourceIdentity",modelProperties:{principalId:{serializedName:"principalId",readOnly:!0,type:{name:"String"}},tenantId:{serializedName:"tenantId",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",type:{name:"String"}}}}},ErrorDetails={type:{name:"Composite",className:"ErrorDetails",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorDetailsInternal"}}}}},ErrorDetailsInternal={type:{name:"Composite",className:"ErrorDetailsInternal",modelProperties:{code:{serializedName:"code",readOnly:!0,type:{name:"String"}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}},target:{serializedName:"target",readOnly:!0,type:{name:"String"}}}}},ServicesPatchDescription={type:{name:"Composite",className:"ServicesPatchDescription",modelProperties:{tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},publicNetworkAccess:{serializedName:"properties.publicNetworkAccess",type:{name:"String"}}}}},ServicesDescriptionListResult={type:{name:"Composite",className:"ServicesDescriptionListResult",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServicesDescription"}}}}}}},CheckNameAvailabilityParameters={type:{name:"Composite",className:"CheckNameAvailabilityParameters",modelProperties:{name:{serializedName:"name",required:!0,type:{name:"String"}},type:{serializedName:"type",required:!0,type:{name:"String"}}}}},ServicesNameAvailabilityInfo={type:{name:"Composite",className:"ServicesNameAvailabilityInfo",modelProperties:{nameAvailable:{serializedName:"nameAvailable",readOnly:!0,type:{name:"Boolean"}},reason:{serializedName:"reason",readOnly:!0,type:{name:"Enum",allowedValues:["Invalid","AlreadyExists"]}},message:{serializedName:"message",type:{name:"String"}}}}},PrivateEndpointConnectionListResultDescription={type:{name:"Composite",className:"PrivateEndpointConnectionListResultDescription",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnectionDescription"}}}}}}},PrivateLinkResourceListResultDescription={type:{name:"Composite",className:"PrivateLinkResourceListResultDescription",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateLinkResourceDescription"}}}}}}},WorkspaceList={type:{name:"Composite",className:"WorkspaceList",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Workspace"}}}}}}},WorkspaceProperties={type:{name:"Composite",className:"WorkspaceProperties",modelProperties:{provisioningState:{serializedName:"provisioningState",readOnly:!0,type:{name:"String"}},privateEndpointConnections:{serializedName:"privateEndpointConnections",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}},publicNetworkAccess:{serializedName:"publicNetworkAccess",type:{name:"String"}}}}},ResourceTags={type:{name:"Composite",className:"ResourceTags",modelProperties:{tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},ResourceCore={type:{name:"Composite",className:"ResourceCore",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{constraints:{Pattern:new RegExp("^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$")},serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},etag:{serializedName:"etag",type:{name:"String"}}}}},ErrorModel={type:{name:"Composite",className:"ErrorModel",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorDetailsInternal"}}}}},DicomServiceCollection={type:{name:"Composite",className:"DicomServiceCollection",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"DicomService"}}}}}}},DicomServiceAuthenticationConfiguration={type:{name:"Composite",className:"DicomServiceAuthenticationConfiguration",modelProperties:{authority:{serializedName:"authority",readOnly:!0,type:{name:"String"}},audiences:{serializedName:"audiences",readOnly:!0,type:{name:"Sequence",element:{type:{name:"String"}}}}}}},ServiceManagedIdentity={type:{name:"Composite",className:"ServiceManagedIdentity",modelProperties:{identity:{serializedName:"identity",type:{name:"Composite",className:"ServiceManagedIdentityIdentity"}}}}},ServiceManagedIdentityIdentity={type:{name:"Composite",className:"ServiceManagedIdentityIdentity",modelProperties:{type:{serializedName:"type",required:!0,type:{name:"String"}},principalId:{serializedName:"principalId",readOnly:!0,type:{name:"Uuid"}},tenantId:{serializedName:"tenantId",readOnly:!0,type:{name:"Uuid"}},userAssignedIdentities:{serializedName:"userAssignedIdentities",type:{name:"Dictionary",value:{type:{name:"Composite",className:"UserAssignedIdentity"}}}}}}},UserAssignedIdentity={type:{name:"Composite",className:"UserAssignedIdentity",modelProperties:{principalId:{serializedName:"principalId",readOnly:!0,type:{name:"Uuid"}},clientId:{serializedName:"clientId",readOnly:!0,type:{name:"Uuid"}}}}},IotConnectorCollection={type:{name:"Composite",className:"IotConnectorCollection",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"IotConnector"}}}}}}},IotEventHubIngestionEndpointConfiguration={type:{name:"Composite",className:"IotEventHubIngestionEndpointConfiguration",modelProperties:{eventHubName:{serializedName:"eventHubName",type:{name:"String"}},consumerGroup:{serializedName:"consumerGroup",type:{name:"String"}},fullyQualifiedEventHubNamespace:{serializedName:"fullyQualifiedEventHubNamespace",type:{name:"String"}}}}},IotMappingProperties={type:{name:"Composite",className:"IotMappingProperties",modelProperties:{content:{serializedName:"content",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},IotFhirDestinationCollection={type:{name:"Composite",className:"IotFhirDestinationCollection",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"IotFhirDestination"}}}}}}},IotDestinationProperties={type:{name:"Composite",className:"IotDestinationProperties",modelProperties:{provisioningState:{serializedName:"provisioningState",readOnly:!0,type:{name:"String"}}}}},FhirServiceCollection={type:{name:"Composite",className:"FhirServiceCollection",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"FhirService"}}}}}}},FhirServiceAccessPolicyEntry={type:{name:"Composite",className:"FhirServiceAccessPolicyEntry",modelProperties:{objectId:{constraints:{Pattern:new RegExp("^(([0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}){1})+$")},serializedName:"objectId",required:!0,type:{name:"String"}}}}},FhirServiceAcrConfiguration={type:{name:"Composite",className:"FhirServiceAcrConfiguration",modelProperties:{loginServers:{serializedName:"loginServers",type:{name:"Sequence",element:{type:{name:"String"}}}},ociArtifacts:{serializedName:"ociArtifacts",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServiceOciArtifactEntry"}}}}}}},FhirServiceAuthenticationConfiguration={type:{name:"Composite",className:"FhirServiceAuthenticationConfiguration",modelProperties:{authority:{serializedName:"authority",type:{name:"String"}},audience:{serializedName:"audience",type:{name:"String"}},smartProxyEnabled:{serializedName:"smartProxyEnabled",type:{name:"Boolean"}}}}},FhirServiceCorsConfiguration={type:{name:"Composite",className:"FhirServiceCorsConfiguration",modelProperties:{origins:{serializedName:"origins",type:{name:"Sequence",element:{constraints:{Pattern:new RegExp("^(?:(?:(?:[hH][tT][tT][pP](?:[sS]|))\\:\\/\\/(?:[a-zA-Z0-9-]+[.]?)+(?:\\:[0-9]{1,5})?|[*]))$")},type:{name:"String"}}}},headers:{serializedName:"headers",type:{name:"Sequence",element:{type:{name:"String"}}}},methods:{serializedName:"methods",type:{name:"Sequence",element:{type:{name:"String"}}}},maxAge:{constraints:{InclusiveMaximum:99999,InclusiveMinimum:0},serializedName:"maxAge",type:{name:"Number"}},allowCredentials:{serializedName:"allowCredentials",type:{name:"Boolean"}}}}},FhirServiceExportConfiguration={type:{name:"Composite",className:"FhirServiceExportConfiguration",modelProperties:{storageAccountName:{serializedName:"storageAccountName",type:{name:"String"}}}}},ResourceVersionPolicyConfiguration={type:{name:"Composite",className:"ResourceVersionPolicyConfiguration",modelProperties:{default:{serializedName:"default",type:{name:"String"}},resourceTypeOverrides:{serializedName:"resourceTypeOverrides",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},ListOperations={type:{name:"Composite",className:"ListOperations",modelProperties:{value:{serializedName:"value",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"OperationDetail"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},OperationDetail={type:{name:"Composite",className:"OperationDetail",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},isDataAction:{serializedName:"isDataAction",readOnly:!0,type:{name:"Boolean"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}},origin:{serializedName:"origin",readOnly:!0,type:{name:"String"}},actionType:{serializedName:"actionType",readOnly:!0,type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Composite",className:"OperationProperties"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",readOnly:!0,type:{name:"String"}},resource:{serializedName:"resource",readOnly:!0,type:{name:"String"}},operation:{serializedName:"operation",readOnly:!0,type:{name:"String"}},description:{serializedName:"description",readOnly:!0,type:{name:"String"}}}}},OperationProperties={type:{name:"Composite",className:"OperationProperties",modelProperties:{serviceSpecification:{serializedName:"serviceSpecification",type:{name:"Composite",className:"ServiceSpecification"}}}}},ServiceSpecification={type:{name:"Composite",className:"ServiceSpecification",modelProperties:{logSpecifications:{serializedName:"logSpecifications",type:{name:"Sequence",element:{type:{name:"Composite",className:"LogSpecification"}}}},metricSpecifications:{serializedName:"metricSpecifications",type:{name:"Sequence",element:{type:{name:"Composite",className:"MetricSpecification"}}}}}}},LogSpecification={type:{name:"Composite",className:"LogSpecification",modelProperties:{name:{serializedName:"name",type:{name:"String"}},displayName:{serializedName:"displayName",type:{name:"String"}},blobDuration:{serializedName:"blobDuration",type:{name:"String"}}}}},MetricSpecification={type:{name:"Composite",className:"MetricSpecification",modelProperties:{name:{serializedName:"name",type:{name:"String"}},displayName:{serializedName:"displayName",type:{name:"String"}},displayDescription:{serializedName:"displayDescription",type:{name:"String"}},unit:{serializedName:"unit",type:{name:"String"}},category:{serializedName:"category",type:{name:"String"}},aggregationType:{serializedName:"aggregationType",type:{name:"String"}},supportedAggregationTypes:{serializedName:"supportedAggregationTypes",type:{name:"Sequence",element:{type:{name:"String"}}}},supportedTimeGrainTypes:{serializedName:"supportedTimeGrainTypes",type:{name:"Sequence",element:{type:{name:"String"}}}},fillGapWithZero:{serializedName:"fillGapWithZero",type:{name:"Boolean"}},dimensions:{serializedName:"dimensions",type:{name:"Sequence",element:{type:{name:"Composite",className:"MetricDimension"}}}},sourceMdmNamespace:{serializedName:"sourceMdmNamespace",type:{name:"String"}}}}},MetricDimension={type:{name:"Composite",className:"MetricDimension",modelProperties:{name:{serializedName:"name",type:{name:"String"}},displayName:{serializedName:"displayName",type:{name:"String"}},toBeExportedForShoebox:{serializedName:"toBeExportedForShoebox",type:{name:"Boolean"}}}}},OperationResultsDescription={type:{name:"Composite",className:"OperationResultsDescription",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},status:{serializedName:"status",readOnly:!0,type:{name:"String"}},startTime:{serializedName:"startTime",readOnly:!0,type:{name:"String"}},endTime:{serializedName:"endTime",readOnly:!0,type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},PrivateEndpointConnectionListResult={type:{name:"Composite",className:"PrivateEndpointConnectionListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}}}}},PrivateEndpointConnection={type:{name:"Composite",className:"PrivateEndpointConnection",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{privateEndpoint:{serializedName:"properties.privateEndpoint",type:{name:"Composite",className:"PrivateEndpoint"}},privateLinkServiceConnectionState:{serializedName:"properties.privateLinkServiceConnectionState",type:{name:"Composite",className:"PrivateLinkServiceConnectionState"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}}})}},PrivateLinkResource={type:{name:"Composite",className:"PrivateLinkResource",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{groupId:{serializedName:"properties.groupId",readOnly:!0,type:{name:"String"}},requiredMembers:{serializedName:"properties.requiredMembers",readOnly:!0,type:{name:"Sequence",element:{type:{name:"String"}}}},requiredZoneNames:{serializedName:"properties.requiredZoneNames",type:{name:"Sequence",element:{type:{name:"String"}}}}})}},ServicesDescription={type:{name:"Composite",className:"ServicesDescription",modelProperties:Object.assign(Object.assign({},ServicesResource.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"ServicesProperties"}},systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}}})}},LocationBasedResource={type:{name:"Composite",className:"LocationBasedResource",modelProperties:Object.assign(Object.assign({},ResourceCore.type.modelProperties),{location:{serializedName:"location",type:{name:"String"}}})}},TaggedResource={type:{name:"Composite",className:"TaggedResource",modelProperties:Object.assign(Object.assign({},ResourceTags.type.modelProperties),LocationBasedResource.type.modelProperties)}},WorkspacePatchResource={type:{name:"Composite",className:"WorkspacePatchResource",modelProperties:Object.assign({},ResourceTags.type.modelProperties)}},DicomServicePatchResource={type:{name:"Composite",className:"DicomServicePatchResource",modelProperties:Object.assign(Object.assign({},ResourceTags.type.modelProperties),ServiceManagedIdentity.type.modelProperties)}},IotConnectorPatchResource={type:{name:"Composite",className:"IotConnectorPatchResource",modelProperties:Object.assign(Object.assign({},ResourceTags.type.modelProperties),ServiceManagedIdentity.type.modelProperties)}},FhirServicePatchResource={type:{name:"Composite",className:"FhirServicePatchResource",modelProperties:Object.assign(Object.assign({},ResourceTags.type.modelProperties),ServiceManagedIdentity.type.modelProperties)}},DicomService={type:{name:"Composite",className:"DicomService",modelProperties:Object.assign(Object.assign(Object.assign({},TaggedResource.type.modelProperties),ServiceManagedIdentity.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},authenticationConfiguration:{serializedName:"properties.authenticationConfiguration",type:{name:"Composite",className:"DicomServiceAuthenticationConfiguration"}},serviceUrl:{serializedName:"properties.serviceUrl",readOnly:!0,type:{name:"String"}},privateEndpointConnections:{serializedName:"properties.privateEndpointConnections",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}},publicNetworkAccess:{serializedName:"properties.publicNetworkAccess",type:{name:"String"}}})}},IotConnector={type:{name:"Composite",className:"IotConnector",modelProperties:Object.assign(Object.assign(Object.assign({},TaggedResource.type.modelProperties),ServiceManagedIdentity.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},ingestionEndpointConfiguration:{serializedName:"properties.ingestionEndpointConfiguration",type:{name:"Composite",className:"IotEventHubIngestionEndpointConfiguration"}},deviceMapping:{serializedName:"properties.deviceMapping",type:{name:"Composite",className:"IotMappingProperties"}}})}},FhirService={type:{name:"Composite",className:"FhirService",modelProperties:Object.assign(Object.assign(Object.assign({},TaggedResource.type.modelProperties),ServiceManagedIdentity.type.modelProperties),{kind:{serializedName:"kind",type:{name:"String"}},systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},accessPolicies:{serializedName:"properties.accessPolicies",type:{name:"Sequence",element:{type:{name:"Composite",className:"FhirServiceAccessPolicyEntry"}}}},acrConfiguration:{serializedName:"properties.acrConfiguration",type:{name:"Composite",className:"FhirServiceAcrConfiguration"}},authenticationConfiguration:{serializedName:"properties.authenticationConfiguration",type:{name:"Composite",className:"FhirServiceAuthenticationConfiguration"}},corsConfiguration:{serializedName:"properties.corsConfiguration",type:{name:"Composite",className:"FhirServiceCorsConfiguration"}},exportConfiguration:{serializedName:"properties.exportConfiguration",type:{name:"Composite",className:"FhirServiceExportConfiguration"}},privateEndpointConnections:{serializedName:"properties.privateEndpointConnections",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}},publicNetworkAccess:{serializedName:"properties.publicNetworkAccess",type:{name:"String"}},eventState:{serializedName:"properties.eventState",readOnly:!0,type:{name:"String"}},resourceVersionPolicyConfiguration:{serializedName:"properties.resourceVersionPolicyConfiguration",type:{name:"Composite",className:"ResourceVersionPolicyConfiguration"}}})}},IotFhirDestinationProperties={type:{name:"Composite",className:"IotFhirDestinationProperties",modelProperties:Object.assign(Object.assign({},IotDestinationProperties.type.modelProperties),{resourceIdentityResolutionType:{serializedName:"resourceIdentityResolutionType",required:!0,type:{name:"String"}},fhirServiceResourceId:{serializedName:"fhirServiceResourceId",required:!0,type:{name:"String"}},fhirMapping:{serializedName:"fhirMapping",type:{name:"Composite",className:"IotMappingProperties"}}})}},PrivateEndpointConnectionDescription={type:{name:"Composite",className:"PrivateEndpointConnectionDescription",modelProperties:Object.assign(Object.assign({},PrivateEndpointConnection.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}}})}},PrivateLinkResourceDescription={type:{name:"Composite",className:"PrivateLinkResourceDescription",modelProperties:Object.assign(Object.assign({},PrivateLinkResource.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}}})}},Workspace={type:{name:"Composite",className:"Workspace",modelProperties:Object.assign(Object.assign({},TaggedResource.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"WorkspaceProperties"}},systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}}})}},IotFhirDestination={type:{name:"Composite",className:"IotFhirDestination",modelProperties:Object.assign(Object.assign({},LocationBasedResource.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},resourceIdentityResolutionType:{serializedName:"properties.resourceIdentityResolutionType",required:!0,type:{name:"String"}},fhirServiceResourceId:{serializedName:"properties.fhirServiceResourceId",required:!0,type:{name:"String"}},fhirMapping:{serializedName:"properties.fhirMapping",type:{name:"Composite",className:"IotMappingProperties"}}})}};var Mappers=Object.freeze({__proto__:null,ServicesProperties:ServicesProperties,ServiceAccessPolicyEntry:ServiceAccessPolicyEntry,ServiceCosmosDbConfigurationInfo:ServiceCosmosDbConfigurationInfo,ServiceAuthenticationConfigurationInfo:ServiceAuthenticationConfigurationInfo,ServiceCorsConfigurationInfo:ServiceCorsConfigurationInfo,ServiceExportConfigurationInfo:ServiceExportConfigurationInfo,PrivateEndpoint:PrivateEndpoint,PrivateLinkServiceConnectionState:PrivateLinkServiceConnectionState,Resource:Resource,ServiceAcrConfigurationInfo:ServiceAcrConfigurationInfo,ServiceOciArtifactEntry:ServiceOciArtifactEntry,SystemData:SystemData,ServicesResource:ServicesResource,ServicesResourceIdentity:ServicesResourceIdentity,ErrorDetails:ErrorDetails,ErrorDetailsInternal:ErrorDetailsInternal,ServicesPatchDescription:ServicesPatchDescription,ServicesDescriptionListResult:ServicesDescriptionListResult,CheckNameAvailabilityParameters:CheckNameAvailabilityParameters,ServicesNameAvailabilityInfo:ServicesNameAvailabilityInfo,PrivateEndpointConnectionListResultDescription:PrivateEndpointConnectionListResultDescription,PrivateLinkResourceListResultDescription:PrivateLinkResourceListResultDescription,WorkspaceList:WorkspaceList,WorkspaceProperties:WorkspaceProperties,ResourceTags:ResourceTags,ResourceCore:ResourceCore,ErrorModel:ErrorModel,DicomServiceCollection:DicomServiceCollection,DicomServiceAuthenticationConfiguration:DicomServiceAuthenticationConfiguration,ServiceManagedIdentity:ServiceManagedIdentity,ServiceManagedIdentityIdentity:ServiceManagedIdentityIdentity,UserAssignedIdentity:UserAssignedIdentity,IotConnectorCollection:IotConnectorCollection,IotEventHubIngestionEndpointConfiguration:IotEventHubIngestionEndpointConfiguration,IotMappingProperties:IotMappingProperties,IotFhirDestinationCollection:IotFhirDestinationCollection,IotDestinationProperties:IotDestinationProperties,FhirServiceCollection:FhirServiceCollection,FhirServiceAccessPolicyEntry:FhirServiceAccessPolicyEntry,FhirServiceAcrConfiguration:FhirServiceAcrConfiguration,FhirServiceAuthenticationConfiguration:FhirServiceAuthenticationConfiguration,FhirServiceCorsConfiguration:FhirServiceCorsConfiguration,FhirServiceExportConfiguration:FhirServiceExportConfiguration,ResourceVersionPolicyConfiguration:ResourceVersionPolicyConfiguration,ListOperations:ListOperations,OperationDetail:OperationDetail,OperationDisplay:OperationDisplay,OperationProperties:OperationProperties,ServiceSpecification:ServiceSpecification,LogSpecification:LogSpecification,MetricSpecification:MetricSpecification,MetricDimension:MetricDimension,OperationResultsDescription:OperationResultsDescription,PrivateEndpointConnectionListResult:PrivateEndpointConnectionListResult,PrivateEndpointConnection:PrivateEndpointConnection,PrivateLinkResource:PrivateLinkResource,ServicesDescription:ServicesDescription,LocationBasedResource:LocationBasedResource,TaggedResource:TaggedResource,WorkspacePatchResource:WorkspacePatchResource,DicomServicePatchResource:DicomServicePatchResource,IotConnectorPatchResource:IotConnectorPatchResource,FhirServicePatchResource:FhirServicePatchResource,DicomService:DicomService,IotConnector:IotConnector,FhirService:FhirService,IotFhirDestinationProperties:IotFhirDestinationProperties,PrivateEndpointConnectionDescription:PrivateEndpointConnectionDescription,PrivateLinkResourceDescription:PrivateLinkResourceDescription,Workspace:Workspace,IotFhirDestination:IotFhirDestination});const accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2021-11-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},resourceGroupName={parameterPath:"resourceGroupName",mapper:{constraints:{Pattern:new RegExp("^[-\\w\\._\\(\\)]+$"),MaxLength:90,MinLength:1},serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},resourceName={parameterPath:"resourceName",mapper:{constraints:{MaxLength:24,MinLength:3},serializedName:"resourceName",required:!0,type:{name:"String"}}},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},serviceDescription={parameterPath:"serviceDescription",mapper:ServicesDescription},servicePatchDescription={parameterPath:"servicePatchDescription",mapper:ServicesPatchDescription},checkNameAvailabilityInputs={parameterPath:"checkNameAvailabilityInputs",mapper:CheckNameAvailabilityParameters},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0},privateEndpointConnectionName={parameterPath:"privateEndpointConnectionName",mapper:{serializedName:"privateEndpointConnectionName",required:!0,type:{name:"String"}}},properties={parameterPath:"properties",mapper:PrivateEndpointConnection},groupName={parameterPath:"groupName",mapper:{serializedName:"groupName",required:!0,type:{name:"String"}}},workspaceName={parameterPath:"workspaceName",mapper:{constraints:{MaxLength:24,MinLength:3},serializedName:"workspaceName",required:!0,type:{name:"String"}}},workspace={parameterPath:"workspace",mapper:Workspace},workspacePatchResource={parameterPath:"workspacePatchResource",mapper:WorkspacePatchResource},dicomServiceName={parameterPath:"dicomServiceName",mapper:{constraints:{MaxLength:24,MinLength:3},serializedName:"dicomServiceName",required:!0,type:{name:"String"}}},dicomservice={parameterPath:"dicomservice",mapper:DicomService},dicomservicePatchResource={parameterPath:"dicomservicePatchResource",mapper:DicomServicePatchResource},iotConnectorName={parameterPath:"iotConnectorName",mapper:{constraints:{MaxLength:24,MinLength:3},serializedName:"iotConnectorName",required:!0,type:{name:"String"}}},iotConnector={parameterPath:"iotConnector",mapper:IotConnector},iotConnectorPatchResource={parameterPath:"iotConnectorPatchResource",mapper:IotConnectorPatchResource},fhirDestinationName={parameterPath:"fhirDestinationName",mapper:{constraints:{MaxLength:24,MinLength:3},serializedName:"fhirDestinationName",required:!0,type:{name:"String"}}},iotFhirDestination={parameterPath:"iotFhirDestination",mapper:IotFhirDestination},fhirServiceName={parameterPath:"fhirServiceName",mapper:{constraints:{MaxLength:24,MinLength:3},serializedName:"fhirServiceName",required:!0,type:{name:"String"}}},fhirservice={parameterPath:"fhirservice",mapper:FhirService},fhirservicePatchResource={parameterPath:"fhirservicePatchResource",mapper:FhirServicePatchResource},properties1={parameterPath:"properties",mapper:PrivateEndpointConnectionDescription},locationName={parameterPath:"locationName",mapper:{serializedName:"locationName",required:!0,type:{name:"String"}}},operationResultId={parameterPath:"operationResultId",mapper:{serializedName:"operationResultId",required:!0,type:{name:"String"}}};class LroImpl{constructor(e,r,i,t=i.path,s=i.httpMethod){this.sendOperationFn=e,this.args=r,this.spec=i,this.requestPath=t,this.requestMethod=s}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(r){return tslib.__awaiter(this,void 0,void 0,function*(){var e=this.spec,e=tslib.__rest(e,["requestBody"]);return this.sendOperationFn(this.args,Object.assign(Object.assign({},e),{path:r,httpMethod:"GET"}))})}}class ServicesImpl{constructor(e){this.client=e}list(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(i));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(r,i)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(a){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listPagingPage(a));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}listByResourceGroup(e,r){const i=this.listByResourceGroupPagingAll(e,r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByResourceGroupPagingPage(e,r)}}listByResourceGroupPagingPage(i,t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(i,t));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByResourceGroupNext(i,r,t)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(a,o){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listByResourceGroupPagingPage(a,o));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}get(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,options:i},getOperationSpec$a)}beginCreateOrUpdate(i,t,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,serviceDescription:s,options:o},createOrUpdateOperationSpec$7);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,i,t,s);return e.pollUntilDone()})}beginUpdate(i,t,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,servicePatchDescription:s,options:o},updateOperationSpec$4);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginUpdateAndWait(r,i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(r,i,t,s);return e.pollUntilDone()})}beginDelete(i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,options:s},deleteOperationSpec$7);const r=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,i,t){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,i,t);return e.pollUntilDone()})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$1)}_listByResourceGroup(e,r){return this.client.sendOperationRequest({resourceGroupName:e,options:r},listByResourceGroupOperationSpec$1)}checkNameAvailability(e,r){return this.client.sendOperationRequest({checkNameAvailabilityInputs:e,options:r},checkNameAvailabilityOperationSpec)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec$1)}_listByResourceGroupNext(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:r,options:i},listByResourceGroupNextOperationSpec$1)}}const serializer$c=coreClient__namespace.createSerializer(Mappers,!1),getOperationSpec$a={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer$c},createOrUpdateOperationSpec$7={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",httpMethod:"PUT",responses:{200:{bodyMapper:ServicesDescription},201:{bodyMapper:ServicesDescription},202:{bodyMapper:ServicesDescription},204:{bodyMapper:ServicesDescription},default:{bodyMapper:ErrorDetails}},requestBody:serviceDescription,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$c},updateOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:ServicesDescription},201:{bodyMapper:ServicesDescription},202:{bodyMapper:ServicesDescription},204:{bodyMapper:ServicesDescription},default:{bodyMapper:ErrorDetails}},requestBody:servicePatchDescription,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$c},deleteOperationSpec$7={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer$c},listOperationSpec$1={path:"/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/services",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescriptionListResult},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$c},listByResourceGroupOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescriptionListResult},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer$c},checkNameAvailabilityOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/checkNameAvailability",httpMethod:"POST",responses:{200:{bodyMapper:ServicesNameAvailabilityInfo},default:{bodyMapper:ErrorDetails}},requestBody:checkNameAvailabilityInputs,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$c},listNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescriptionListResult},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer$c},listByResourceGroupNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ServicesDescriptionListResult},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer$c};class PrivateEndpointConnectionsImpl{constructor(e){this.client=e}listByService(e,r,i){const t=this.listByServicePagingAll(e,r,i);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByServicePagingPage(e,r,i)}}listByServicePagingPage(r,i,t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByService(r,i,t));yield yield tslib.__await(e.value||[])})}listByServicePagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listByServicePagingPage(a,o,n));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}_listByService(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,options:i},listByServiceOperationSpec$1)}get(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,privateEndpointConnectionName:i,options:t},getOperationSpec$9)}beginCreateOrUpdate(i,t,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,privateEndpointConnectionName:s,properties:o,options:n},createOrUpdateOperationSpec$6);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,i,t,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,i,t,s,a);return e.pollUntilDone()})}beginDelete(i,t,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,privateEndpointConnectionName:s,options:o},deleteOperationSpec$6);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,i,t,s);return e.pollUntilDone()})}}const serializer$b=coreClient__namespace.createSerializer(Mappers,!1),listByServiceOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnectionListResultDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer$b},getOperationSpec$9={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnectionDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,privateEndpointConnectionName],headerParameters:[accept],serializer:serializer$b},createOrUpdateOperationSpec$6={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"PUT",responses:{200:{bodyMapper:PrivateEndpointConnectionDescription},201:{bodyMapper:PrivateEndpointConnectionDescription},202:{bodyMapper:PrivateEndpointConnectionDescription},204:{bodyMapper:PrivateEndpointConnectionDescription},default:{bodyMapper:ErrorDetails}},requestBody:properties,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,privateEndpointConnectionName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$b},deleteOperationSpec$6={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,privateEndpointConnectionName],headerParameters:[accept],serializer:serializer$b};class PrivateLinkResourcesImpl{constructor(e){this.client=e}listByService(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,options:i},listByServiceOperationSpec)}get(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,groupName:i,options:t},getOperationSpec$8)}}const serializer$a=coreClient__namespace.createSerializer(Mappers,!1),listByServiceOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceListResultDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer$a},getOperationSpec$8={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources/{groupName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,groupName],headerParameters:[accept],serializer:serializer$a};class WorkspacesImpl{constructor(e){this.client=e}listBySubscription(e){const r=this.listBySubscriptionPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listBySubscriptionPagingPage(e)}}listBySubscriptionPagingPage(i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listBySubscription(i));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listBySubscriptionNext(r,i)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listBySubscriptionPagingAll(a){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listBySubscriptionPagingPage(a));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}listByResourceGroup(e,r){const i=this.listByResourceGroupPagingAll(e,r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByResourceGroupPagingPage(e,r)}}listByResourceGroupPagingPage(i,t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(i,t));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByResourceGroupNext(i,r,t)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(a,o){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listByResourceGroupPagingPage(a,o));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}_listBySubscription(e){return this.client.sendOperationRequest({options:e},listBySubscriptionOperationSpec)}_listByResourceGroup(e,r){return this.client.sendOperationRequest({resourceGroupName:e,options:r},listByResourceGroupOperationSpec)}get(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:i},getOperationSpec$7)}beginCreateOrUpdate(i,t,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,workspace:s,options:o},createOrUpdateOperationSpec$5);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,i,t,s);return e.pollUntilDone()})}beginUpdate(i,t,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,workspacePatchResource:s,options:o},updateOperationSpec$3);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginUpdateAndWait(r,i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(r,i,t,s);return e.pollUntilDone()})}beginDelete(i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,options:s},deleteOperationSpec$5);const r=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,i,t){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,i,t);return e.pollUntilDone()})}_listBySubscriptionNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listBySubscriptionNextOperationSpec)}_listByResourceGroupNext(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:r,options:i},listByResourceGroupNextOperationSpec)}}const serializer$9=coreClient__namespace.createSerializer(Mappers,!1),listBySubscriptionOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/workspaces",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceList},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$9},listByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceList},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer$9},getOperationSpec$7={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",httpMethod:"GET",responses:{200:{bodyMapper:Workspace},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$9},createOrUpdateOperationSpec$5={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",httpMethod:"PUT",responses:{200:{bodyMapper:Workspace},201:{bodyMapper:Workspace},202:{bodyMapper:Workspace},204:{bodyMapper:Workspace},default:{bodyMapper:ErrorDetails}},requestBody:workspace,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$9},updateOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:Workspace},201:{bodyMapper:Workspace},202:{bodyMapper:Workspace},204:{bodyMapper:Workspace},default:{bodyMapper:ErrorDetails}},requestBody:workspacePatchResource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$9},deleteOperationSpec$5={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$9},listBySubscriptionNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceList},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer$9},listByResourceGroupNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceList},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer$9};class DicomServicesImpl{constructor(e){this.client=e}listByWorkspace(e,r,i){const t=this.listByWorkspacePagingAll(e,r,i);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByWorkspacePagingPage(e,r,i)}}listByWorkspacePagingPage(i,t,s){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(i,t,s));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByWorkspaceNext(i,t,r,s)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listByWorkspacePagingPage(a,o,n));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}_listByWorkspace(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:i},listByWorkspaceOperationSpec$4)}get(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,dicomServiceName:i,options:t},getOperationSpec$6)}beginCreateOrUpdate(i,t,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,dicomServiceName:s,dicomservice:o,options:n},createOrUpdateOperationSpec$4);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,i,t,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,i,t,s,a);return e.pollUntilDone()})}beginUpdate(i,t,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,dicomServiceName:t,workspaceName:s,dicomservicePatchResource:o,options:n},updateOperationSpec$2);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginUpdateAndWait(r,i,t,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(r,i,t,s,a);return e.pollUntilDone()})}beginDelete(i,t,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,dicomServiceName:t,workspaceName:s,options:o},deleteOperationSpec$4);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,i,t,s);return e.pollUntilDone()})}_listByWorkspaceNext(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,nextLink:i,options:t},listByWorkspaceNextOperationSpec$2)}}const serializer$8=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices",httpMethod:"GET",responses:{200:{bodyMapper:DicomServiceCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$8},getOperationSpec$6={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"GET",responses:{200:{bodyMapper:DicomService},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept],serializer:serializer$8},createOrUpdateOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"PUT",responses:{200:{bodyMapper:DicomService},201:{bodyMapper:DicomService},202:{bodyMapper:DicomService},204:{bodyMapper:DicomService},default:{bodyMapper:ErrorDetails}},requestBody:dicomservice,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$8},updateOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:DicomService},201:{bodyMapper:DicomService},202:{bodyMapper:DicomService},204:{bodyMapper:DicomService},default:{bodyMapper:ErrorDetails}},requestBody:dicomservicePatchResource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$8},deleteOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,dicomServiceName],headerParameters:[accept],serializer:serializer$8},listByWorkspaceNextOperationSpec$2={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:DicomServiceCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName],headerParameters:[accept],serializer:serializer$8};class IotConnectorsImpl{constructor(e){this.client=e}listByWorkspace(e,r,i){const t=this.listByWorkspacePagingAll(e,r,i);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByWorkspacePagingPage(e,r,i)}}listByWorkspacePagingPage(i,t,s){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(i,t,s));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByWorkspaceNext(i,t,r,s)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listByWorkspacePagingPage(a,o,n));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}_listByWorkspace(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:i},listByWorkspaceOperationSpec$3)}get(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,iotConnectorName:i,options:t},getOperationSpec$5)}beginCreateOrUpdate(i,t,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,iotConnectorName:s,iotConnector:o,options:n},createOrUpdateOperationSpec$3);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,i,t,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,i,t,s,a);return e.pollUntilDone()})}beginUpdate(i,t,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,iotConnectorName:t,workspaceName:s,iotConnectorPatchResource:o,options:n},updateOperationSpec$1);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginUpdateAndWait(r,i,t,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(r,i,t,s,a);return e.pollUntilDone()})}beginDelete(i,t,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,iotConnectorName:t,workspaceName:s,options:o},deleteOperationSpec$3);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,i,t,s);return e.pollUntilDone()})}_listByWorkspaceNext(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,nextLink:i,options:t},listByWorkspaceNextOperationSpec$1)}}const serializer$7=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors",httpMethod:"GET",responses:{200:{bodyMapper:IotConnectorCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$7},getOperationSpec$5={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"GET",responses:{200:{bodyMapper:IotConnector},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept],serializer:serializer$7},createOrUpdateOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"PUT",responses:{200:{bodyMapper:IotConnector},201:{bodyMapper:IotConnector},202:{bodyMapper:IotConnector},204:{bodyMapper:IotConnector},default:{bodyMapper:ErrorDetails}},requestBody:iotConnector,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$7},updateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"PATCH",responses:{200:{bodyMapper:IotConnector},201:{bodyMapper:IotConnector},202:{bodyMapper:IotConnector},204:{bodyMapper:IotConnector},default:{bodyMapper:ErrorDetails}},requestBody:iotConnectorPatchResource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$7},deleteOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept],serializer:serializer$7},listByWorkspaceNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:IotConnectorCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName],headerParameters:[accept],serializer:serializer$7};class FhirDestinationsImpl{constructor(e){this.client=e}listByIotConnector(e,r,i,t){const s=this.listByIotConnectorPagingAll(e,r,i,t);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByIotConnectorPagingPage(e,r,i,t)}}listByIotConnectorPagingPage(i,t,s,a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByIotConnector(i,t,s,a));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByIotConnectorNext(i,t,s,r,a)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByIotConnectorPagingAll(a,o,n,p){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listByIotConnectorPagingPage(a,o,n,p));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}_listByIotConnector(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,iotConnectorName:i,options:t},listByIotConnectorOperationSpec)}_listByIotConnectorNext(e,r,i,t,s){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,iotConnectorName:i,nextLink:t,options:s},listByIotConnectorNextOperationSpec)}}const serializer$6=coreClient__namespace.createSerializer(Mappers,!1),listByIotConnectorOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations",httpMethod:"GET",responses:{200:{bodyMapper:IotFhirDestinationCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName],headerParameters:[accept],serializer:serializer$6},listByIotConnectorNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:IotFhirDestinationCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName,iotConnectorName],headerParameters:[accept],serializer:serializer$6};class IotConnectorFhirDestinationImpl{constructor(e){this.client=e}get(e,r,i,t,s){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,iotConnectorName:i,fhirDestinationName:t,options:s},getOperationSpec$4)}beginCreateOrUpdate(i,t,s,o,n,p){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,iotConnectorName:s,fhirDestinationName:o,iotFhirDestination:n,options:p},createOrUpdateOperationSpec$2);const r=new coreLro.LroEngine(e,{resumeFrom:null==p?void 0:p.resumeFrom,intervalInMs:null==p?void 0:p.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,i,t,s,a,o){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,i,t,s,a,o);return e.pollUntilDone()})}beginDelete(i,t,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,iotConnectorName:s,fhirDestinationName:o,options:n},deleteOperationSpec$2);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,i,t,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,i,t,s,a);return e.pollUntilDone()})}}const serializer$5=coreClient__namespace.createSerializer(Mappers,!1),getOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}",httpMethod:"GET",responses:{200:{bodyMapper:IotFhirDestination},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName,fhirDestinationName],headerParameters:[accept],serializer:serializer$5},createOrUpdateOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}",httpMethod:"PUT",responses:{200:{bodyMapper:IotFhirDestination},201:{bodyMapper:IotFhirDestination},202:{bodyMapper:IotFhirDestination},204:{bodyMapper:IotFhirDestination},default:{bodyMapper:ErrorDetails}},requestBody:iotFhirDestination,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName,fhirDestinationName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$5},deleteOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,iotConnectorName,fhirDestinationName],headerParameters:[accept],serializer:serializer$5};class FhirServicesImpl{constructor(e){this.client=e}listByWorkspace(e,r,i){const t=this.listByWorkspacePagingAll(e,r,i);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByWorkspacePagingPage(e,r,i)}}listByWorkspacePagingPage(i,t,s){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(i,t,s));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByWorkspaceNext(i,t,r,s)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listByWorkspacePagingPage(a,o,n));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}_listByWorkspace(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:i},listByWorkspaceOperationSpec$2)}get(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,fhirServiceName:i,options:t},getOperationSpec$3)}beginCreateOrUpdate(i,t,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,fhirServiceName:s,fhirservice:o,options:n},createOrUpdateOperationSpec$1);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,i,t,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,i,t,s,a);return e.pollUntilDone()})}beginUpdate(i,t,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,fhirServiceName:t,workspaceName:s,fhirservicePatchResource:o,options:n},updateOperationSpec);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginUpdateAndWait(r,i,t,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(r,i,t,s,a);return e.pollUntilDone()})}beginDelete(i,t,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,fhirServiceName:t,workspaceName:s,options:o},deleteOperationSpec$1);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,i,t,s);return e.pollUntilDone()})}_listByWorkspaceNext(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,nextLink:i,options:t},listByWorkspaceNextOperationSpec)}}const serializer$4=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices",httpMethod:"GET",responses:{200:{bodyMapper:FhirServiceCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$4},getOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"GET",responses:{200:{bodyMapper:FhirService},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept],serializer:serializer$4},createOrUpdateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"PUT",responses:{200:{bodyMapper:FhirService},201:{bodyMapper:FhirService},202:{bodyMapper:FhirService},204:{bodyMapper:FhirService},default:{bodyMapper:ErrorDetails}},requestBody:fhirservice,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$4},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:FhirService},201:{bodyMapper:FhirService},202:{bodyMapper:FhirService},204:{bodyMapper:FhirService},default:{bodyMapper:ErrorDetails}},requestBody:fhirservicePatchResource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$4},deleteOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorModel}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName,fhirServiceName],headerParameters:[accept],serializer:serializer$4},listByWorkspaceNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:FhirServiceCollection},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink,workspaceName],headerParameters:[accept],serializer:serializer$4};class WorkspacePrivateEndpointConnectionsImpl{constructor(e){this.client=e}listByWorkspace(e,r,i){const t=this.listByWorkspacePagingAll(e,r,i);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByWorkspacePagingPage(e,r,i)}}listByWorkspacePagingPage(r,i,t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(r,i,t));yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listByWorkspacePagingPage(a,o,n));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}_listByWorkspace(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:i},listByWorkspaceOperationSpec$1)}get(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,privateEndpointConnectionName:i,options:t},getOperationSpec$2)}beginCreateOrUpdate(i,t,s,o,n){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,privateEndpointConnectionName:s,properties:o,options:n},createOrUpdateOperationSpec);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,i,t,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,i,t,s,a);return e.pollUntilDone()})}beginDelete(i,t,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){const a=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const t=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==t&&void 0!==t&&t(e,r)}})});return{flatResponse:yield a(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,workspaceName:t,privateEndpointConnectionName:s,options:o},deleteOperationSpec);const r=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,i,t,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,i,t,s);return e.pollUntilDone()})}}const serializer$3=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnectionListResultDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$3},getOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnectionDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,privateEndpointConnectionName,workspaceName],headerParameters:[accept],serializer:serializer$3},createOrUpdateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"PUT",responses:{200:{bodyMapper:PrivateEndpointConnectionDescription},201:{bodyMapper:PrivateEndpointConnectionDescription},202:{bodyMapper:PrivateEndpointConnectionDescription},204:{bodyMapper:PrivateEndpointConnectionDescription},default:{bodyMapper:ErrorDetails}},requestBody:properties1,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,privateEndpointConnectionName,workspaceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$3},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,privateEndpointConnectionName,workspaceName],headerParameters:[accept],serializer:serializer$3};class WorkspacePrivateLinkResourcesImpl{constructor(e){this.client=e}listByWorkspace(e,r,i){const t=this.listByWorkspacePagingAll(e,r,i);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByWorkspacePagingPage(e,r,i)}}listByWorkspacePagingPage(r,i,t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByWorkspace(r,i,t));yield yield tslib.__await(e.value||[])})}listByWorkspacePagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listByWorkspacePagingPage(a,o,n));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}_listByWorkspace(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:i},listByWorkspaceOperationSpec)}get(e,r,i,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,groupName:i,options:t},getOperationSpec$1)}}const serializer$2=coreClient__namespace.createSerializer(Mappers,!1),listByWorkspaceOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceListResultDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$2},getOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources/{groupName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,groupName,workspaceName],headerParameters:[accept],serializer:serializer$2};class OperationsImpl{constructor(e){this.client=e}list(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(i));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(r,i)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(a){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,t=tslib.__asyncValues(this.listPagingPage(a));!(i=yield tslib.__await(t.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.HealthcareApis/operations",httpMethod:"GET",responses:{200:{bodyMapper:ListOperations},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ListOperations},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$1};class OperationResultsImpl{constructor(e){this.client=e}get(e,r,i){return this.client.sendOperationRequest({locationName:e,operationResultId:r,options:i},getOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),getOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/locations/{locationName}/operationresults/{operationResultId}",httpMethod:"GET",responses:{200:{bodyMapper:OperationResultsDescription},default:{bodyMapper:ErrorDetails}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,locationName,operationResultId],headerParameters:[accept],serializer:serializer};class HealthcareApisManagementClient extends coreClient__namespace.ServiceClient{constructor(e,r,i){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===r)throw new Error("'subscriptionId' cannot be null");var e={requestContentType:"application/json; charset=utf-8",credential:e},t="azsdk-js-arm-healthcareapis/2.1.1",t=(i=i||{}).userAgentOptions&&i.userAgentOptions.userAgentPrefix?i.userAgentOptions.userAgentPrefix+" "+t:t,e=(i.credentialScopes||(i.credentialScopes=["https://management.azure.com/.default"]),Object.assign(Object.assign(Object.assign({},e),i),{userAgentOptions:{userAgentPrefix:t},baseUri:null!==(t=null!==(e=i.endpoint)&&void 0!==e?e:i.baseUri)&&void 0!==t?t:"https://management.azure.com"}));super(e),this.subscriptionId=r,this.$host=i.$host||"https://management.azure.com",this.apiVersion=i.apiVersion||"2021-11-01",this.services=new ServicesImpl(this),this.privateEndpointConnections=new PrivateEndpointConnectionsImpl(this),this.privateLinkResources=new PrivateLinkResourcesImpl(this),this.workspaces=new WorkspacesImpl(this),this.dicomServices=new DicomServicesImpl(this),this.iotConnectors=new IotConnectorsImpl(this),this.fhirDestinations=new FhirDestinationsImpl(this),this.iotConnectorFhirDestination=new IotConnectorFhirDestinationImpl(this),this.fhirServices=new FhirServicesImpl(this),this.workspacePrivateEndpointConnections=new WorkspacePrivateEndpointConnectionsImpl(this),this.workspacePrivateLinkResources=new WorkspacePrivateLinkResourcesImpl(this),this.operations=new OperationsImpl(this),this.operationResults=new OperationResultsImpl(this)}}exports.HealthcareApisManagementClient=HealthcareApisManagementClient;