@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
@@ -213,10 +213,12 @@ export class PrivateEndpointConnectionsImpl
213
213
  },
214
214
  createOrUpdateOperationSpec
215
215
  );
216
- return new LroEngine(lro, {
216
+ const poller = new LroEngine(lro, {
217
217
  resumeFrom: options?.resumeFrom,
218
218
  intervalInMs: options?.updateIntervalInMs
219
219
  });
220
+ await poller.poll();
221
+ return poller;
220
222
  }
221
223
 
222
224
  /**
@@ -308,10 +310,12 @@ export class PrivateEndpointConnectionsImpl
308
310
  },
309
311
  deleteOperationSpec
310
312
  );
311
- return new LroEngine(lro, {
313
+ const poller = new LroEngine(lro, {
312
314
  resumeFrom: options?.resumeFrom,
313
315
  intervalInMs: options?.updateIntervalInMs
314
316
  });
317
+ await poller.poll();
318
+ return poller;
315
319
  }
316
320
 
317
321
  /**
@@ -224,10 +224,12 @@ export class ServicesImpl implements Services {
224
224
  { resourceGroupName, resourceName, serviceDescription, options },
225
225
  createOrUpdateOperationSpec
226
226
  );
227
- return new LroEngine(lro, {
227
+ const poller = new LroEngine(lro, {
228
228
  resumeFrom: options?.resumeFrom,
229
229
  intervalInMs: options?.updateIntervalInMs
230
230
  });
231
+ await poller.poll();
232
+ return poller;
231
233
  }
232
234
 
233
235
  /**
@@ -314,10 +316,12 @@ export class ServicesImpl implements Services {
314
316
  { resourceGroupName, resourceName, servicePatchDescription, options },
315
317
  updateOperationSpec
316
318
  );
317
- return new LroEngine(lro, {
319
+ const poller = new LroEngine(lro, {
318
320
  resumeFrom: options?.resumeFrom,
319
321
  intervalInMs: options?.updateIntervalInMs
320
322
  });
323
+ await poller.poll();
324
+ return poller;
321
325
  }
322
326
 
323
327
  /**
@@ -397,10 +401,12 @@ export class ServicesImpl implements Services {
397
401
  { resourceGroupName, resourceName, options },
398
402
  deleteOperationSpec
399
403
  );
400
- return new LroEngine(lro, {
404
+ const poller = new LroEngine(lro, {
401
405
  resumeFrom: options?.resumeFrom,
402
406
  intervalInMs: options?.updateIntervalInMs
403
407
  });
408
+ await poller.poll();
409
+ return poller;
404
410
  }
405
411
 
406
412
  /**
@@ -0,0 +1,450 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { WorkspacePrivateEndpointConnections } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { HealthcareApisManagementClient } from "../healthcareApisManagementClient";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ PrivateEndpointConnectionDescription,
19
+ WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams,
20
+ WorkspacePrivateEndpointConnectionsListByWorkspaceResponse,
21
+ WorkspacePrivateEndpointConnectionsGetOptionalParams,
22
+ WorkspacePrivateEndpointConnectionsGetResponse,
23
+ WorkspacePrivateEndpointConnectionsCreateOrUpdateOptionalParams,
24
+ WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse,
25
+ WorkspacePrivateEndpointConnectionsDeleteOptionalParams
26
+ } from "../models";
27
+
28
+ /// <reference lib="esnext.asynciterable" />
29
+ /** Class containing WorkspacePrivateEndpointConnections operations. */
30
+ export class WorkspacePrivateEndpointConnectionsImpl
31
+ implements WorkspacePrivateEndpointConnections {
32
+ private readonly client: HealthcareApisManagementClient;
33
+
34
+ /**
35
+ * Initialize a new instance of the class WorkspacePrivateEndpointConnections class.
36
+ * @param client Reference to the service client
37
+ */
38
+ constructor(client: HealthcareApisManagementClient) {
39
+ this.client = client;
40
+ }
41
+
42
+ /**
43
+ * Lists all private endpoint connections for a workspace.
44
+ * @param resourceGroupName The name of the resource group that contains the service instance.
45
+ * @param workspaceName The name of workspace resource.
46
+ * @param options The options parameters.
47
+ */
48
+ public listByWorkspace(
49
+ resourceGroupName: string,
50
+ workspaceName: string,
51
+ options?: WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams
52
+ ): PagedAsyncIterableIterator<PrivateEndpointConnectionDescription> {
53
+ const iter = this.listByWorkspacePagingAll(
54
+ resourceGroupName,
55
+ workspaceName,
56
+ options
57
+ );
58
+ return {
59
+ next() {
60
+ return iter.next();
61
+ },
62
+ [Symbol.asyncIterator]() {
63
+ return this;
64
+ },
65
+ byPage: () => {
66
+ return this.listByWorkspacePagingPage(
67
+ resourceGroupName,
68
+ workspaceName,
69
+ options
70
+ );
71
+ }
72
+ };
73
+ }
74
+
75
+ private async *listByWorkspacePagingPage(
76
+ resourceGroupName: string,
77
+ workspaceName: string,
78
+ options?: WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams
79
+ ): AsyncIterableIterator<PrivateEndpointConnectionDescription[]> {
80
+ let result = await this._listByWorkspace(
81
+ resourceGroupName,
82
+ workspaceName,
83
+ options
84
+ );
85
+ yield result.value || [];
86
+ }
87
+
88
+ private async *listByWorkspacePagingAll(
89
+ resourceGroupName: string,
90
+ workspaceName: string,
91
+ options?: WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams
92
+ ): AsyncIterableIterator<PrivateEndpointConnectionDescription> {
93
+ for await (const page of this.listByWorkspacePagingPage(
94
+ resourceGroupName,
95
+ workspaceName,
96
+ options
97
+ )) {
98
+ yield* page;
99
+ }
100
+ }
101
+
102
+ /**
103
+ * Lists all private endpoint connections for a workspace.
104
+ * @param resourceGroupName The name of the resource group that contains the service instance.
105
+ * @param workspaceName The name of workspace resource.
106
+ * @param options The options parameters.
107
+ */
108
+ private _listByWorkspace(
109
+ resourceGroupName: string,
110
+ workspaceName: string,
111
+ options?: WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams
112
+ ): Promise<WorkspacePrivateEndpointConnectionsListByWorkspaceResponse> {
113
+ return this.client.sendOperationRequest(
114
+ { resourceGroupName, workspaceName, options },
115
+ listByWorkspaceOperationSpec
116
+ );
117
+ }
118
+
119
+ /**
120
+ * Gets the specified private endpoint connection associated with the workspace.
121
+ * @param resourceGroupName The name of the resource group that contains the service instance.
122
+ * @param workspaceName The name of workspace resource.
123
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
124
+ * Azure resource
125
+ * @param options The options parameters.
126
+ */
127
+ get(
128
+ resourceGroupName: string,
129
+ workspaceName: string,
130
+ privateEndpointConnectionName: string,
131
+ options?: WorkspacePrivateEndpointConnectionsGetOptionalParams
132
+ ): Promise<WorkspacePrivateEndpointConnectionsGetResponse> {
133
+ return this.client.sendOperationRequest(
134
+ {
135
+ resourceGroupName,
136
+ workspaceName,
137
+ privateEndpointConnectionName,
138
+ options
139
+ },
140
+ getOperationSpec
141
+ );
142
+ }
143
+
144
+ /**
145
+ * Update the state of the specified private endpoint connection associated with the workspace.
146
+ * @param resourceGroupName The name of the resource group that contains the service instance.
147
+ * @param workspaceName The name of workspace resource.
148
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
149
+ * Azure resource
150
+ * @param properties The private endpoint connection properties.
151
+ * @param options The options parameters.
152
+ */
153
+ async beginCreateOrUpdate(
154
+ resourceGroupName: string,
155
+ workspaceName: string,
156
+ privateEndpointConnectionName: string,
157
+ properties: PrivateEndpointConnectionDescription,
158
+ options?: WorkspacePrivateEndpointConnectionsCreateOrUpdateOptionalParams
159
+ ): Promise<
160
+ PollerLike<
161
+ PollOperationState<
162
+ WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse
163
+ >,
164
+ WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse
165
+ >
166
+ > {
167
+ const directSendOperation = async (
168
+ args: coreClient.OperationArguments,
169
+ spec: coreClient.OperationSpec
170
+ ): Promise<WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse> => {
171
+ return this.client.sendOperationRequest(args, spec);
172
+ };
173
+ const sendOperation = async (
174
+ args: coreClient.OperationArguments,
175
+ spec: coreClient.OperationSpec
176
+ ) => {
177
+ let currentRawResponse:
178
+ | coreClient.FullOperationResponse
179
+ | undefined = undefined;
180
+ const providedCallback = args.options?.onResponse;
181
+ const callback: coreClient.RawResponseCallback = (
182
+ rawResponse: coreClient.FullOperationResponse,
183
+ flatResponse: unknown
184
+ ) => {
185
+ currentRawResponse = rawResponse;
186
+ providedCallback?.(rawResponse, flatResponse);
187
+ };
188
+ const updatedArgs = {
189
+ ...args,
190
+ options: {
191
+ ...args.options,
192
+ onResponse: callback
193
+ }
194
+ };
195
+ const flatResponse = await directSendOperation(updatedArgs, spec);
196
+ return {
197
+ flatResponse,
198
+ rawResponse: {
199
+ statusCode: currentRawResponse!.status,
200
+ body: currentRawResponse!.parsedBody,
201
+ headers: currentRawResponse!.headers.toJSON()
202
+ }
203
+ };
204
+ };
205
+
206
+ const lro = new LroImpl(
207
+ sendOperation,
208
+ {
209
+ resourceGroupName,
210
+ workspaceName,
211
+ privateEndpointConnectionName,
212
+ properties,
213
+ options
214
+ },
215
+ createOrUpdateOperationSpec
216
+ );
217
+ const poller = new LroEngine(lro, {
218
+ resumeFrom: options?.resumeFrom,
219
+ intervalInMs: options?.updateIntervalInMs
220
+ });
221
+ await poller.poll();
222
+ return poller;
223
+ }
224
+
225
+ /**
226
+ * Update the state of the specified private endpoint connection associated with the workspace.
227
+ * @param resourceGroupName The name of the resource group that contains the service instance.
228
+ * @param workspaceName The name of workspace resource.
229
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
230
+ * Azure resource
231
+ * @param properties The private endpoint connection properties.
232
+ * @param options The options parameters.
233
+ */
234
+ async beginCreateOrUpdateAndWait(
235
+ resourceGroupName: string,
236
+ workspaceName: string,
237
+ privateEndpointConnectionName: string,
238
+ properties: PrivateEndpointConnectionDescription,
239
+ options?: WorkspacePrivateEndpointConnectionsCreateOrUpdateOptionalParams
240
+ ): Promise<WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse> {
241
+ const poller = await this.beginCreateOrUpdate(
242
+ resourceGroupName,
243
+ workspaceName,
244
+ privateEndpointConnectionName,
245
+ properties,
246
+ options
247
+ );
248
+ return poller.pollUntilDone();
249
+ }
250
+
251
+ /**
252
+ * Deletes a private endpoint connection.
253
+ * @param resourceGroupName The name of the resource group that contains the service instance.
254
+ * @param workspaceName The name of workspace resource.
255
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
256
+ * Azure resource
257
+ * @param options The options parameters.
258
+ */
259
+ async beginDelete(
260
+ resourceGroupName: string,
261
+ workspaceName: string,
262
+ privateEndpointConnectionName: string,
263
+ options?: WorkspacePrivateEndpointConnectionsDeleteOptionalParams
264
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
265
+ const directSendOperation = async (
266
+ args: coreClient.OperationArguments,
267
+ spec: coreClient.OperationSpec
268
+ ): Promise<void> => {
269
+ return this.client.sendOperationRequest(args, spec);
270
+ };
271
+ const sendOperation = async (
272
+ args: coreClient.OperationArguments,
273
+ spec: coreClient.OperationSpec
274
+ ) => {
275
+ let currentRawResponse:
276
+ | coreClient.FullOperationResponse
277
+ | undefined = undefined;
278
+ const providedCallback = args.options?.onResponse;
279
+ const callback: coreClient.RawResponseCallback = (
280
+ rawResponse: coreClient.FullOperationResponse,
281
+ flatResponse: unknown
282
+ ) => {
283
+ currentRawResponse = rawResponse;
284
+ providedCallback?.(rawResponse, flatResponse);
285
+ };
286
+ const updatedArgs = {
287
+ ...args,
288
+ options: {
289
+ ...args.options,
290
+ onResponse: callback
291
+ }
292
+ };
293
+ const flatResponse = await directSendOperation(updatedArgs, spec);
294
+ return {
295
+ flatResponse,
296
+ rawResponse: {
297
+ statusCode: currentRawResponse!.status,
298
+ body: currentRawResponse!.parsedBody,
299
+ headers: currentRawResponse!.headers.toJSON()
300
+ }
301
+ };
302
+ };
303
+
304
+ const lro = new LroImpl(
305
+ sendOperation,
306
+ {
307
+ resourceGroupName,
308
+ workspaceName,
309
+ privateEndpointConnectionName,
310
+ options
311
+ },
312
+ deleteOperationSpec
313
+ );
314
+ const poller = new LroEngine(lro, {
315
+ resumeFrom: options?.resumeFrom,
316
+ intervalInMs: options?.updateIntervalInMs
317
+ });
318
+ await poller.poll();
319
+ return poller;
320
+ }
321
+
322
+ /**
323
+ * Deletes a private endpoint connection.
324
+ * @param resourceGroupName The name of the resource group that contains the service instance.
325
+ * @param workspaceName The name of workspace resource.
326
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
327
+ * Azure resource
328
+ * @param options The options parameters.
329
+ */
330
+ async beginDeleteAndWait(
331
+ resourceGroupName: string,
332
+ workspaceName: string,
333
+ privateEndpointConnectionName: string,
334
+ options?: WorkspacePrivateEndpointConnectionsDeleteOptionalParams
335
+ ): Promise<void> {
336
+ const poller = await this.beginDelete(
337
+ resourceGroupName,
338
+ workspaceName,
339
+ privateEndpointConnectionName,
340
+ options
341
+ );
342
+ return poller.pollUntilDone();
343
+ }
344
+ }
345
+ // Operation Specifications
346
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
347
+
348
+ const listByWorkspaceOperationSpec: coreClient.OperationSpec = {
349
+ path:
350
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections",
351
+ httpMethod: "GET",
352
+ responses: {
353
+ 200: {
354
+ bodyMapper: Mappers.PrivateEndpointConnectionListResultDescription
355
+ },
356
+ default: {
357
+ bodyMapper: Mappers.ErrorDetails
358
+ }
359
+ },
360
+ queryParameters: [Parameters.apiVersion],
361
+ urlParameters: [
362
+ Parameters.$host,
363
+ Parameters.subscriptionId,
364
+ Parameters.resourceGroupName,
365
+ Parameters.workspaceName
366
+ ],
367
+ headerParameters: [Parameters.accept],
368
+ serializer
369
+ };
370
+ const getOperationSpec: coreClient.OperationSpec = {
371
+ path:
372
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
373
+ httpMethod: "GET",
374
+ responses: {
375
+ 200: {
376
+ bodyMapper: Mappers.PrivateEndpointConnectionDescription
377
+ },
378
+ default: {
379
+ bodyMapper: Mappers.ErrorDetails
380
+ }
381
+ },
382
+ queryParameters: [Parameters.apiVersion],
383
+ urlParameters: [
384
+ Parameters.$host,
385
+ Parameters.subscriptionId,
386
+ Parameters.resourceGroupName,
387
+ Parameters.privateEndpointConnectionName,
388
+ Parameters.workspaceName
389
+ ],
390
+ headerParameters: [Parameters.accept],
391
+ serializer
392
+ };
393
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
394
+ path:
395
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
396
+ httpMethod: "PUT",
397
+ responses: {
398
+ 200: {
399
+ bodyMapper: Mappers.PrivateEndpointConnectionDescription
400
+ },
401
+ 201: {
402
+ bodyMapper: Mappers.PrivateEndpointConnectionDescription
403
+ },
404
+ 202: {
405
+ bodyMapper: Mappers.PrivateEndpointConnectionDescription
406
+ },
407
+ 204: {
408
+ bodyMapper: Mappers.PrivateEndpointConnectionDescription
409
+ },
410
+ default: {
411
+ bodyMapper: Mappers.ErrorDetails
412
+ }
413
+ },
414
+ requestBody: Parameters.properties1,
415
+ queryParameters: [Parameters.apiVersion],
416
+ urlParameters: [
417
+ Parameters.$host,
418
+ Parameters.subscriptionId,
419
+ Parameters.resourceGroupName,
420
+ Parameters.privateEndpointConnectionName,
421
+ Parameters.workspaceName
422
+ ],
423
+ headerParameters: [Parameters.accept, Parameters.contentType],
424
+ mediaType: "json",
425
+ serializer
426
+ };
427
+ const deleteOperationSpec: coreClient.OperationSpec = {
428
+ path:
429
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
430
+ httpMethod: "DELETE",
431
+ responses: {
432
+ 200: {},
433
+ 201: {},
434
+ 202: {},
435
+ 204: {},
436
+ default: {
437
+ bodyMapper: Mappers.ErrorDetails
438
+ }
439
+ },
440
+ queryParameters: [Parameters.apiVersion],
441
+ urlParameters: [
442
+ Parameters.$host,
443
+ Parameters.subscriptionId,
444
+ Parameters.resourceGroupName,
445
+ Parameters.privateEndpointConnectionName,
446
+ Parameters.workspaceName
447
+ ],
448
+ headerParameters: [Parameters.accept],
449
+ serializer
450
+ };
@@ -0,0 +1,180 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { WorkspacePrivateLinkResources } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { HealthcareApisManagementClient } from "../healthcareApisManagementClient";
15
+ import {
16
+ PrivateLinkResourceDescription,
17
+ WorkspacePrivateLinkResourcesListByWorkspaceOptionalParams,
18
+ WorkspacePrivateLinkResourcesListByWorkspaceResponse,
19
+ WorkspacePrivateLinkResourcesGetOptionalParams,
20
+ WorkspacePrivateLinkResourcesGetResponse
21
+ } from "../models";
22
+
23
+ /// <reference lib="esnext.asynciterable" />
24
+ /** Class containing WorkspacePrivateLinkResources operations. */
25
+ export class WorkspacePrivateLinkResourcesImpl
26
+ implements WorkspacePrivateLinkResources {
27
+ private readonly client: HealthcareApisManagementClient;
28
+
29
+ /**
30
+ * Initialize a new instance of the class WorkspacePrivateLinkResources class.
31
+ * @param client Reference to the service client
32
+ */
33
+ constructor(client: HealthcareApisManagementClient) {
34
+ this.client = client;
35
+ }
36
+
37
+ /**
38
+ * Gets the private link resources that need to be created for a workspace.
39
+ * @param resourceGroupName The name of the resource group that contains the service instance.
40
+ * @param workspaceName The name of workspace resource.
41
+ * @param options The options parameters.
42
+ */
43
+ public listByWorkspace(
44
+ resourceGroupName: string,
45
+ workspaceName: string,
46
+ options?: WorkspacePrivateLinkResourcesListByWorkspaceOptionalParams
47
+ ): PagedAsyncIterableIterator<PrivateLinkResourceDescription> {
48
+ const iter = this.listByWorkspacePagingAll(
49
+ resourceGroupName,
50
+ workspaceName,
51
+ options
52
+ );
53
+ return {
54
+ next() {
55
+ return iter.next();
56
+ },
57
+ [Symbol.asyncIterator]() {
58
+ return this;
59
+ },
60
+ byPage: () => {
61
+ return this.listByWorkspacePagingPage(
62
+ resourceGroupName,
63
+ workspaceName,
64
+ options
65
+ );
66
+ }
67
+ };
68
+ }
69
+
70
+ private async *listByWorkspacePagingPage(
71
+ resourceGroupName: string,
72
+ workspaceName: string,
73
+ options?: WorkspacePrivateLinkResourcesListByWorkspaceOptionalParams
74
+ ): AsyncIterableIterator<PrivateLinkResourceDescription[]> {
75
+ let result = await this._listByWorkspace(
76
+ resourceGroupName,
77
+ workspaceName,
78
+ options
79
+ );
80
+ yield result.value || [];
81
+ }
82
+
83
+ private async *listByWorkspacePagingAll(
84
+ resourceGroupName: string,
85
+ workspaceName: string,
86
+ options?: WorkspacePrivateLinkResourcesListByWorkspaceOptionalParams
87
+ ): AsyncIterableIterator<PrivateLinkResourceDescription> {
88
+ for await (const page of this.listByWorkspacePagingPage(
89
+ resourceGroupName,
90
+ workspaceName,
91
+ options
92
+ )) {
93
+ yield* page;
94
+ }
95
+ }
96
+
97
+ /**
98
+ * Gets the private link resources that need to be created for a workspace.
99
+ * @param resourceGroupName The name of the resource group that contains the service instance.
100
+ * @param workspaceName The name of workspace resource.
101
+ * @param options The options parameters.
102
+ */
103
+ private _listByWorkspace(
104
+ resourceGroupName: string,
105
+ workspaceName: string,
106
+ options?: WorkspacePrivateLinkResourcesListByWorkspaceOptionalParams
107
+ ): Promise<WorkspacePrivateLinkResourcesListByWorkspaceResponse> {
108
+ return this.client.sendOperationRequest(
109
+ { resourceGroupName, workspaceName, options },
110
+ listByWorkspaceOperationSpec
111
+ );
112
+ }
113
+
114
+ /**
115
+ * Gets a private link resource that need to be created for a workspace.
116
+ * @param resourceGroupName The name of the resource group that contains the service instance.
117
+ * @param workspaceName The name of workspace resource.
118
+ * @param groupName The name of the private link resource group.
119
+ * @param options The options parameters.
120
+ */
121
+ get(
122
+ resourceGroupName: string,
123
+ workspaceName: string,
124
+ groupName: string,
125
+ options?: WorkspacePrivateLinkResourcesGetOptionalParams
126
+ ): Promise<WorkspacePrivateLinkResourcesGetResponse> {
127
+ return this.client.sendOperationRequest(
128
+ { resourceGroupName, workspaceName, groupName, options },
129
+ getOperationSpec
130
+ );
131
+ }
132
+ }
133
+ // Operation Specifications
134
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
135
+
136
+ const listByWorkspaceOperationSpec: coreClient.OperationSpec = {
137
+ path:
138
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources",
139
+ httpMethod: "GET",
140
+ responses: {
141
+ 200: {
142
+ bodyMapper: Mappers.PrivateLinkResourceListResultDescription
143
+ },
144
+ default: {
145
+ bodyMapper: Mappers.ErrorDetails
146
+ }
147
+ },
148
+ queryParameters: [Parameters.apiVersion],
149
+ urlParameters: [
150
+ Parameters.$host,
151
+ Parameters.subscriptionId,
152
+ Parameters.resourceGroupName,
153
+ Parameters.workspaceName
154
+ ],
155
+ headerParameters: [Parameters.accept],
156
+ serializer
157
+ };
158
+ const getOperationSpec: coreClient.OperationSpec = {
159
+ path:
160
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources/{groupName}",
161
+ httpMethod: "GET",
162
+ responses: {
163
+ 200: {
164
+ bodyMapper: Mappers.PrivateLinkResourceDescription
165
+ },
166
+ default: {
167
+ bodyMapper: Mappers.ErrorDetails
168
+ }
169
+ },
170
+ queryParameters: [Parameters.apiVersion],
171
+ urlParameters: [
172
+ Parameters.$host,
173
+ Parameters.subscriptionId,
174
+ Parameters.resourceGroupName,
175
+ Parameters.groupName,
176
+ Parameters.workspaceName
177
+ ],
178
+ headerParameters: [Parameters.accept],
179
+ serializer
180
+ };