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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (268) hide show
  1. package/CHANGELOG.md +27 -8
  2. package/LICENSE +1 -1
  3. package/dist/index.js +524 -231
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/dicomServicesCreateOrUpdateSample.js +11 -4
  8. package/dist-esm/samples-dev/dicomServicesCreateOrUpdateSample.js.map +1 -1
  9. package/dist-esm/samples-dev/dicomServicesDeleteSample.js +11 -4
  10. package/dist-esm/samples-dev/dicomServicesDeleteSample.js.map +1 -1
  11. package/dist-esm/samples-dev/dicomServicesGetSample.js +11 -4
  12. package/dist-esm/samples-dev/dicomServicesGetSample.js.map +1 -1
  13. package/dist-esm/samples-dev/dicomServicesListByWorkspaceSample.js +11 -4
  14. package/dist-esm/samples-dev/dicomServicesListByWorkspaceSample.js.map +1 -1
  15. package/dist-esm/samples-dev/dicomServicesUpdateSample.js +11 -4
  16. package/dist-esm/samples-dev/dicomServicesUpdateSample.js.map +1 -1
  17. package/dist-esm/samples-dev/fhirDestinationsListByIotConnectorSample.js +11 -4
  18. package/dist-esm/samples-dev/fhirDestinationsListByIotConnectorSample.js.map +1 -1
  19. package/dist-esm/samples-dev/fhirServicesCreateOrUpdateSample.js +28 -9
  20. package/dist-esm/samples-dev/fhirServicesCreateOrUpdateSample.js.map +1 -1
  21. package/dist-esm/samples-dev/fhirServicesDeleteSample.js +11 -4
  22. package/dist-esm/samples-dev/fhirServicesDeleteSample.js.map +1 -1
  23. package/dist-esm/samples-dev/fhirServicesGetSample.js +11 -4
  24. package/dist-esm/samples-dev/fhirServicesGetSample.js.map +1 -1
  25. package/dist-esm/samples-dev/fhirServicesListByWorkspaceSample.js +11 -4
  26. package/dist-esm/samples-dev/fhirServicesListByWorkspaceSample.js.map +1 -1
  27. package/dist-esm/samples-dev/fhirServicesUpdateSample.js +11 -4
  28. package/dist-esm/samples-dev/fhirServicesUpdateSample.js.map +1 -1
  29. package/dist-esm/samples-dev/iotConnectorFhirDestinationCreateOrUpdateSample.js +11 -4
  30. package/dist-esm/samples-dev/iotConnectorFhirDestinationCreateOrUpdateSample.js.map +1 -1
  31. package/dist-esm/samples-dev/iotConnectorFhirDestinationDeleteSample.js +11 -4
  32. package/dist-esm/samples-dev/iotConnectorFhirDestinationDeleteSample.js.map +1 -1
  33. package/dist-esm/samples-dev/iotConnectorFhirDestinationGetSample.js +11 -4
  34. package/dist-esm/samples-dev/iotConnectorFhirDestinationGetSample.js.map +1 -1
  35. package/dist-esm/samples-dev/iotConnectorsCreateOrUpdateSample.js +11 -4
  36. package/dist-esm/samples-dev/iotConnectorsCreateOrUpdateSample.js.map +1 -1
  37. package/dist-esm/samples-dev/iotConnectorsDeleteSample.js +11 -4
  38. package/dist-esm/samples-dev/iotConnectorsDeleteSample.js.map +1 -1
  39. package/dist-esm/samples-dev/iotConnectorsGetSample.js +11 -4
  40. package/dist-esm/samples-dev/iotConnectorsGetSample.js.map +1 -1
  41. package/dist-esm/samples-dev/iotConnectorsListByWorkspaceSample.js +11 -4
  42. package/dist-esm/samples-dev/iotConnectorsListByWorkspaceSample.js.map +1 -1
  43. package/dist-esm/samples-dev/iotConnectorsUpdateSample.js +11 -4
  44. package/dist-esm/samples-dev/iotConnectorsUpdateSample.js.map +1 -1
  45. package/dist-esm/samples-dev/operationResultsGetSample.js +10 -3
  46. package/dist-esm/samples-dev/operationResultsGetSample.js.map +1 -1
  47. package/dist-esm/samples-dev/operationsListSample.js +11 -3
  48. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  49. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +11 -4
  50. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
  51. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +11 -4
  52. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
  53. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +11 -4
  54. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
  55. package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js +11 -4
  56. package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js.map +1 -1
  57. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +11 -4
  58. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -1
  59. package/dist-esm/samples-dev/privateLinkResourcesListByServiceSample.js +11 -4
  60. package/dist-esm/samples-dev/privateLinkResourcesListByServiceSample.js.map +1 -1
  61. package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js +10 -3
  62. package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js.map +1 -1
  63. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +65 -8
  64. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js.map +1 -1
  65. package/dist-esm/samples-dev/servicesDeleteSample.js +11 -4
  66. package/dist-esm/samples-dev/servicesDeleteSample.js.map +1 -1
  67. package/dist-esm/samples-dev/servicesGetSample.js +29 -4
  68. package/dist-esm/samples-dev/servicesGetSample.js.map +1 -1
  69. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js +11 -4
  70. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js.map +1 -1
  71. package/dist-esm/samples-dev/servicesListSample.js +10 -3
  72. package/dist-esm/samples-dev/servicesListSample.js.map +1 -1
  73. package/dist-esm/samples-dev/servicesUpdateSample.js +11 -4
  74. package/dist-esm/samples-dev/servicesUpdateSample.js.map +1 -1
  75. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsCreateOrUpdateSample.js +11 -4
  76. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
  77. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsDeleteSample.js +11 -4
  78. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsDeleteSample.js.map +1 -1
  79. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsGetSample.js +11 -4
  80. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsGetSample.js.map +1 -1
  81. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsListByWorkspaceSample.js +11 -4
  82. package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsListByWorkspaceSample.js.map +1 -1
  83. package/dist-esm/samples-dev/workspacePrivateLinkResourcesGetSample.js +11 -4
  84. package/dist-esm/samples-dev/workspacePrivateLinkResourcesGetSample.js.map +1 -1
  85. package/dist-esm/samples-dev/workspacePrivateLinkResourcesListByWorkspaceSample.js +11 -4
  86. package/dist-esm/samples-dev/workspacePrivateLinkResourcesListByWorkspaceSample.js.map +1 -1
  87. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +11 -4
  88. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +1 -1
  89. package/dist-esm/samples-dev/workspacesDeleteSample.js +11 -4
  90. package/dist-esm/samples-dev/workspacesDeleteSample.js.map +1 -1
  91. package/dist-esm/samples-dev/workspacesGetSample.js +11 -4
  92. package/dist-esm/samples-dev/workspacesGetSample.js.map +1 -1
  93. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +11 -4
  94. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -1
  95. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +10 -3
  96. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -1
  97. package/dist-esm/samples-dev/workspacesUpdateSample.js +11 -4
  98. package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -1
  99. package/dist-esm/src/healthcareApisManagementClient.d.ts +1 -1
  100. package/dist-esm/src/healthcareApisManagementClient.js +3 -3
  101. package/dist-esm/src/lroImpl.d.ts +6 -11
  102. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  103. package/dist-esm/src/lroImpl.js +12 -20
  104. package/dist-esm/src/lroImpl.js.map +1 -1
  105. package/dist-esm/src/models/index.d.ts +95 -27
  106. package/dist-esm/src/models/index.d.ts.map +1 -1
  107. package/dist-esm/src/models/index.js +10 -10
  108. package/dist-esm/src/models/index.js.map +1 -1
  109. package/dist-esm/src/models/mappers.d.ts +6 -1
  110. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  111. package/dist-esm/src/models/mappers.js +237 -29
  112. package/dist-esm/src/models/mappers.js.map +1 -1
  113. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  114. package/dist-esm/src/models/parameters.js +4 -1
  115. package/dist-esm/src/models/parameters.js.map +1 -1
  116. package/dist-esm/src/operations/dicomServices.d.ts +4 -4
  117. package/dist-esm/src/operations/dicomServices.d.ts.map +1 -1
  118. package/dist-esm/src/operations/dicomServices.js +38 -27
  119. package/dist-esm/src/operations/dicomServices.js.map +1 -1
  120. package/dist-esm/src/operations/fhirDestinations.js +0 -1
  121. package/dist-esm/src/operations/fhirDestinations.js.map +1 -1
  122. package/dist-esm/src/operations/fhirServices.d.ts +4 -4
  123. package/dist-esm/src/operations/fhirServices.d.ts.map +1 -1
  124. package/dist-esm/src/operations/fhirServices.js +38 -27
  125. package/dist-esm/src/operations/fhirServices.js.map +1 -1
  126. package/dist-esm/src/operations/iotConnectorFhirDestination.d.ts +3 -3
  127. package/dist-esm/src/operations/iotConnectorFhirDestination.d.ts.map +1 -1
  128. package/dist-esm/src/operations/iotConnectorFhirDestination.js +31 -23
  129. package/dist-esm/src/operations/iotConnectorFhirDestination.js.map +1 -1
  130. package/dist-esm/src/operations/iotConnectors.d.ts +4 -4
  131. package/dist-esm/src/operations/iotConnectors.d.ts.map +1 -1
  132. package/dist-esm/src/operations/iotConnectors.js +38 -27
  133. package/dist-esm/src/operations/iotConnectors.js.map +1 -1
  134. package/dist-esm/src/operations/operations.js +0 -1
  135. package/dist-esm/src/operations/operations.js.map +1 -1
  136. package/dist-esm/src/operations/privateEndpointConnections.d.ts +3 -3
  137. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  138. package/dist-esm/src/operations/privateEndpointConnections.js +29 -21
  139. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  140. package/dist-esm/src/operations/services.d.ts +4 -4
  141. package/dist-esm/src/operations/services.d.ts.map +1 -1
  142. package/dist-esm/src/operations/services.js +31 -16
  143. package/dist-esm/src/operations/services.js.map +1 -1
  144. package/dist-esm/src/operations/workspacePrivateEndpointConnections.d.ts +3 -3
  145. package/dist-esm/src/operations/workspacePrivateEndpointConnections.d.ts.map +1 -1
  146. package/dist-esm/src/operations/workspacePrivateEndpointConnections.js +29 -21
  147. package/dist-esm/src/operations/workspacePrivateEndpointConnections.js.map +1 -1
  148. package/dist-esm/src/operations/workspaces.d.ts +4 -4
  149. package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
  150. package/dist-esm/src/operations/workspaces.js +31 -16
  151. package/dist-esm/src/operations/workspaces.js.map +1 -1
  152. package/dist-esm/src/operationsInterfaces/dicomServices.d.ts +4 -4
  153. package/dist-esm/src/operationsInterfaces/dicomServices.d.ts.map +1 -1
  154. package/dist-esm/src/operationsInterfaces/fhirServices.d.ts +4 -4
  155. package/dist-esm/src/operationsInterfaces/fhirServices.d.ts.map +1 -1
  156. package/dist-esm/src/operationsInterfaces/iotConnectorFhirDestination.d.ts +3 -3
  157. package/dist-esm/src/operationsInterfaces/iotConnectorFhirDestination.d.ts.map +1 -1
  158. package/dist-esm/src/operationsInterfaces/iotConnectors.d.ts +4 -4
  159. package/dist-esm/src/operationsInterfaces/iotConnectors.d.ts.map +1 -1
  160. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +3 -3
  161. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  162. package/dist-esm/src/operationsInterfaces/services.d.ts +4 -4
  163. package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -1
  164. package/dist-esm/src/operationsInterfaces/workspacePrivateEndpointConnections.d.ts +3 -3
  165. package/dist-esm/src/operationsInterfaces/workspacePrivateEndpointConnections.d.ts.map +1 -1
  166. package/dist-esm/src/operationsInterfaces/workspaces.d.ts +4 -4
  167. package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -1
  168. package/dist-esm/src/pagingHelper.d.ts +4 -4
  169. package/dist-esm/src/pagingHelper.js +4 -4
  170. package/dist-esm/test/healthcareapis_operations_test.spec.d.ts +4 -0
  171. package/dist-esm/test/healthcareapis_operations_test.spec.d.ts.map +1 -0
  172. package/dist-esm/test/healthcareapis_operations_test.spec.js +111 -0
  173. package/dist-esm/test/healthcareapis_operations_test.spec.js.map +1 -0
  174. package/package.json +12 -9
  175. package/review/arm-healthcareapis.api.md +74 -29
  176. package/src/healthcareApisManagementClient.ts +3 -3
  177. package/src/lroImpl.ts +31 -23
  178. package/src/models/index.ts +103 -30
  179. package/src/models/mappers.ts +253 -33
  180. package/src/models/parameters.ts +4 -1
  181. package/src/operations/dicomServices.ts +41 -32
  182. package/src/operations/fhirDestinations.ts +0 -1
  183. package/src/operations/fhirServices.ts +41 -32
  184. package/src/operations/iotConnectorFhirDestination.ts +28 -21
  185. package/src/operations/iotConnectors.ts +41 -32
  186. package/src/operations/operations.ts +0 -1
  187. package/src/operations/privateEndpointConnections.ts +28 -21
  188. package/src/operations/services.ts +46 -33
  189. package/src/operations/workspacePrivateEndpointConnections.ts +28 -23
  190. package/src/operations/workspaces.ts +46 -33
  191. package/src/operationsInterfaces/dicomServices.ts +6 -6
  192. package/src/operationsInterfaces/fhirServices.ts +6 -6
  193. package/src/operationsInterfaces/iotConnectorFhirDestination.ts +4 -4
  194. package/src/operationsInterfaces/iotConnectors.ts +6 -6
  195. package/src/operationsInterfaces/privateEndpointConnections.ts +4 -4
  196. package/src/operationsInterfaces/services.ts +6 -6
  197. package/src/operationsInterfaces/workspacePrivateEndpointConnections.ts +4 -6
  198. package/src/operationsInterfaces/workspaces.ts +6 -6
  199. package/src/pagingHelper.ts +4 -4
  200. package/types/arm-healthcareapis.d.ts +110 -37
  201. package/dist-esm/samples-dev/checkNameAvailability.d.ts +0 -2
  202. package/dist-esm/samples-dev/checkNameAvailability.d.ts.map +0 -1
  203. package/dist-esm/samples-dev/checkNameAvailability.js +0 -33
  204. package/dist-esm/samples-dev/checkNameAvailability.js.map +0 -1
  205. package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.d.ts +0 -2
  206. package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.d.ts.map +0 -1
  207. package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.js +0 -62
  208. package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.js.map +0 -1
  209. package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.d.ts +0 -2
  210. package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.d.ts.map +0 -1
  211. package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.js +0 -39
  212. package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.js.map +0 -1
  213. package/dist-esm/samples-dev/deleteService.d.ts +0 -2
  214. package/dist-esm/samples-dev/deleteService.d.ts.map +0 -1
  215. package/dist-esm/samples-dev/deleteService.js +0 -31
  216. package/dist-esm/samples-dev/deleteService.js.map +0 -1
  217. package/dist-esm/samples-dev/getMetadata.d.ts +0 -2
  218. package/dist-esm/samples-dev/getMetadata.d.ts.map +0 -1
  219. package/dist-esm/samples-dev/getMetadata.js +0 -31
  220. package/dist-esm/samples-dev/getMetadata.js.map +0 -1
  221. package/dist-esm/samples-dev/getOperationResult.d.ts +0 -2
  222. package/dist-esm/samples-dev/getOperationResult.d.ts.map +0 -1
  223. package/dist-esm/samples-dev/getOperationResult.js +0 -31
  224. package/dist-esm/samples-dev/getOperationResult.js.map +0 -1
  225. package/dist-esm/samples-dev/listAllServicesInResourceGroup.d.ts +0 -2
  226. package/dist-esm/samples-dev/listAllServicesInResourceGroup.d.ts.map +0 -1
  227. package/dist-esm/samples-dev/listAllServicesInResourceGroup.js +0 -46
  228. package/dist-esm/samples-dev/listAllServicesInResourceGroup.js.map +0 -1
  229. package/dist-esm/samples-dev/listAllServicesInSubscription.d.ts +0 -2
  230. package/dist-esm/samples-dev/listAllServicesInSubscription.d.ts.map +0 -1
  231. package/dist-esm/samples-dev/listAllServicesInSubscription.js +0 -45
  232. package/dist-esm/samples-dev/listAllServicesInSubscription.js.map +0 -1
  233. package/dist-esm/samples-dev/listOperations.d.ts +0 -2
  234. package/dist-esm/samples-dev/listOperations.d.ts.map +0 -1
  235. package/dist-esm/samples-dev/listOperations.js +0 -45
  236. package/dist-esm/samples-dev/listOperations.js.map +0 -1
  237. package/dist-esm/samples-dev/patchService.d.ts +0 -2
  238. package/dist-esm/samples-dev/patchService.d.ts.map +0 -1
  239. package/dist-esm/samples-dev/patchService.js +0 -34
  240. package/dist-esm/samples-dev/patchService.js.map +0 -1
  241. package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.d.ts +0 -2
  242. package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.d.ts.map +0 -1
  243. package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.js +0 -38
  244. package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.js.map +0 -1
  245. package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.d.ts +0 -2
  246. package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.d.ts.map +0 -1
  247. package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.js +0 -32
  248. package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.js.map +0 -1
  249. package/dist-esm/samples-dev/privateEndpointConnectionList.d.ts +0 -2
  250. package/dist-esm/samples-dev/privateEndpointConnectionList.d.ts.map +0 -1
  251. package/dist-esm/samples-dev/privateEndpointConnectionList.js +0 -47
  252. package/dist-esm/samples-dev/privateEndpointConnectionList.js.map +0 -1
  253. package/dist-esm/samples-dev/privateEndpointConnectionsDelete.d.ts +0 -2
  254. package/dist-esm/samples-dev/privateEndpointConnectionsDelete.d.ts.map +0 -1
  255. package/dist-esm/samples-dev/privateEndpointConnectionsDelete.js +0 -32
  256. package/dist-esm/samples-dev/privateEndpointConnectionsDelete.js.map +0 -1
  257. package/dist-esm/samples-dev/privateLinkResourcesGet.d.ts +0 -2
  258. package/dist-esm/samples-dev/privateLinkResourcesGet.d.ts.map +0 -1
  259. package/dist-esm/samples-dev/privateLinkResourcesGet.js +0 -32
  260. package/dist-esm/samples-dev/privateLinkResourcesGet.js.map +0 -1
  261. package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.d.ts +0 -2
  262. package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.d.ts.map +0 -1
  263. package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.js +0 -31
  264. package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.js.map +0 -1
  265. package/dist-esm/test/sampleTest.d.ts +0 -2
  266. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  267. package/dist-esm/test/sampleTest.js +0 -38
  268. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client";
13
13
  import * as Mappers from "../models/mappers";
14
14
  import * as Parameters from "../models/parameters";
15
15
  import { HealthcareApisManagementClient } from "../healthcareApisManagementClient";
16
- import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
17
- import { LroImpl } from "../lroImpl";
16
+ import {
17
+ SimplePollerLike,
18
+ OperationState,
19
+ createHttpPoller
20
+ } from "@azure/core-lro";
21
+ import { createLroSpec } from "../lroImpl";
18
22
  import {
19
23
  ServicesDescription,
20
24
  ServicesListNextOptionalParams,
@@ -204,8 +208,8 @@ export class ServicesImpl implements Services {
204
208
  serviceDescription: ServicesDescription,
205
209
  options?: ServicesCreateOrUpdateOptionalParams
206
210
  ): Promise<
207
- PollerLike<
208
- PollOperationState<ServicesCreateOrUpdateResponse>,
211
+ SimplePollerLike<
212
+ OperationState<ServicesCreateOrUpdateResponse>,
209
213
  ServicesCreateOrUpdateResponse
210
214
  >
211
215
  > {
@@ -215,7 +219,7 @@ export class ServicesImpl implements Services {
215
219
  ): Promise<ServicesCreateOrUpdateResponse> => {
216
220
  return this.client.sendOperationRequest(args, spec);
217
221
  };
218
- const sendOperation = async (
222
+ const sendOperationFn = async (
219
223
  args: coreClient.OperationArguments,
220
224
  spec: coreClient.OperationSpec
221
225
  ) => {
@@ -248,13 +252,16 @@ export class ServicesImpl implements Services {
248
252
  };
249
253
  };
250
254
 
251
- const lro = new LroImpl(
252
- sendOperation,
253
- { resourceGroupName, resourceName, serviceDescription, options },
254
- createOrUpdateOperationSpec
255
- );
256
- const poller = new LroEngine(lro, {
257
- resumeFrom: options?.resumeFrom,
255
+ const lro = createLroSpec({
256
+ sendOperationFn,
257
+ args: { resourceGroupName, resourceName, serviceDescription, options },
258
+ spec: createOrUpdateOperationSpec
259
+ });
260
+ const poller = await createHttpPoller<
261
+ ServicesCreateOrUpdateResponse,
262
+ OperationState<ServicesCreateOrUpdateResponse>
263
+ >(lro, {
264
+ restoreFrom: options?.resumeFrom,
258
265
  intervalInMs: options?.updateIntervalInMs
259
266
  });
260
267
  await poller.poll();
@@ -296,8 +303,8 @@ export class ServicesImpl implements Services {
296
303
  servicePatchDescription: ServicesPatchDescription,
297
304
  options?: ServicesUpdateOptionalParams
298
305
  ): Promise<
299
- PollerLike<
300
- PollOperationState<ServicesUpdateResponse>,
306
+ SimplePollerLike<
307
+ OperationState<ServicesUpdateResponse>,
301
308
  ServicesUpdateResponse
302
309
  >
303
310
  > {
@@ -307,7 +314,7 @@ export class ServicesImpl implements Services {
307
314
  ): Promise<ServicesUpdateResponse> => {
308
315
  return this.client.sendOperationRequest(args, spec);
309
316
  };
310
- const sendOperation = async (
317
+ const sendOperationFn = async (
311
318
  args: coreClient.OperationArguments,
312
319
  spec: coreClient.OperationSpec
313
320
  ) => {
@@ -340,13 +347,21 @@ export class ServicesImpl implements Services {
340
347
  };
341
348
  };
342
349
 
343
- const lro = new LroImpl(
344
- sendOperation,
345
- { resourceGroupName, resourceName, servicePatchDescription, options },
346
- updateOperationSpec
347
- );
348
- const poller = new LroEngine(lro, {
349
- resumeFrom: options?.resumeFrom,
350
+ const lro = createLroSpec({
351
+ sendOperationFn,
352
+ args: {
353
+ resourceGroupName,
354
+ resourceName,
355
+ servicePatchDescription,
356
+ options
357
+ },
358
+ spec: updateOperationSpec
359
+ });
360
+ const poller = await createHttpPoller<
361
+ ServicesUpdateResponse,
362
+ OperationState<ServicesUpdateResponse>
363
+ >(lro, {
364
+ restoreFrom: options?.resumeFrom,
350
365
  intervalInMs: options?.updateIntervalInMs
351
366
  });
352
367
  await poller.poll();
@@ -385,14 +400,14 @@ export class ServicesImpl implements Services {
385
400
  resourceGroupName: string,
386
401
  resourceName: string,
387
402
  options?: ServicesDeleteOptionalParams
388
- ): Promise<PollerLike<PollOperationState<void>, void>> {
403
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
389
404
  const directSendOperation = async (
390
405
  args: coreClient.OperationArguments,
391
406
  spec: coreClient.OperationSpec
392
407
  ): Promise<void> => {
393
408
  return this.client.sendOperationRequest(args, spec);
394
409
  };
395
- const sendOperation = async (
410
+ const sendOperationFn = async (
396
411
  args: coreClient.OperationArguments,
397
412
  spec: coreClient.OperationSpec
398
413
  ) => {
@@ -425,13 +440,13 @@ export class ServicesImpl implements Services {
425
440
  };
426
441
  };
427
442
 
428
- const lro = new LroImpl(
429
- sendOperation,
430
- { resourceGroupName, resourceName, options },
431
- deleteOperationSpec
432
- );
433
- const poller = new LroEngine(lro, {
434
- resumeFrom: options?.resumeFrom,
443
+ const lro = createLroSpec({
444
+ sendOperationFn,
445
+ args: { resourceGroupName, resourceName, options },
446
+ spec: deleteOperationSpec
447
+ });
448
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
449
+ restoreFrom: options?.resumeFrom,
435
450
  intervalInMs: options?.updateIntervalInMs
436
451
  });
437
452
  await poller.poll();
@@ -712,7 +727,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
712
727
  bodyMapper: Mappers.ErrorDetails
713
728
  }
714
729
  },
715
- queryParameters: [Parameters.apiVersion],
716
730
  urlParameters: [
717
731
  Parameters.$host,
718
732
  Parameters.subscriptionId,
@@ -732,7 +746,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
732
746
  bodyMapper: Mappers.ErrorDetails
733
747
  }
734
748
  },
735
- queryParameters: [Parameters.apiVersion],
736
749
  urlParameters: [
737
750
  Parameters.$host,
738
751
  Parameters.subscriptionId,
@@ -12,8 +12,12 @@ import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
13
13
  import * as Parameters from "../models/parameters";
14
14
  import { HealthcareApisManagementClient } from "../healthcareApisManagementClient";
15
- import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
- import { LroImpl } from "../lroImpl";
15
+ import {
16
+ SimplePollerLike,
17
+ OperationState,
18
+ createHttpPoller
19
+ } from "@azure/core-lro";
20
+ import { createLroSpec } from "../lroImpl";
17
21
  import {
18
22
  PrivateEndpointConnectionDescription,
19
23
  WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams,
@@ -163,10 +167,8 @@ export class WorkspacePrivateEndpointConnectionsImpl
163
167
  properties: PrivateEndpointConnectionDescription,
164
168
  options?: WorkspacePrivateEndpointConnectionsCreateOrUpdateOptionalParams
165
169
  ): Promise<
166
- PollerLike<
167
- PollOperationState<
168
- WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse
169
- >,
170
+ SimplePollerLike<
171
+ OperationState<WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse>,
170
172
  WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse
171
173
  >
172
174
  > {
@@ -176,7 +178,7 @@ export class WorkspacePrivateEndpointConnectionsImpl
176
178
  ): Promise<WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse> => {
177
179
  return this.client.sendOperationRequest(args, spec);
178
180
  };
179
- const sendOperation = async (
181
+ const sendOperationFn = async (
180
182
  args: coreClient.OperationArguments,
181
183
  spec: coreClient.OperationSpec
182
184
  ) => {
@@ -209,19 +211,22 @@ export class WorkspacePrivateEndpointConnectionsImpl
209
211
  };
210
212
  };
211
213
 
212
- const lro = new LroImpl(
213
- sendOperation,
214
- {
214
+ const lro = createLroSpec({
215
+ sendOperationFn,
216
+ args: {
215
217
  resourceGroupName,
216
218
  workspaceName,
217
219
  privateEndpointConnectionName,
218
220
  properties,
219
221
  options
220
222
  },
221
- createOrUpdateOperationSpec
222
- );
223
- const poller = new LroEngine(lro, {
224
- resumeFrom: options?.resumeFrom,
223
+ spec: createOrUpdateOperationSpec
224
+ });
225
+ const poller = await createHttpPoller<
226
+ WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse,
227
+ OperationState<WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse>
228
+ >(lro, {
229
+ restoreFrom: options?.resumeFrom,
225
230
  intervalInMs: options?.updateIntervalInMs
226
231
  });
227
232
  await poller.poll();
@@ -267,14 +272,14 @@ export class WorkspacePrivateEndpointConnectionsImpl
267
272
  workspaceName: string,
268
273
  privateEndpointConnectionName: string,
269
274
  options?: WorkspacePrivateEndpointConnectionsDeleteOptionalParams
270
- ): Promise<PollerLike<PollOperationState<void>, void>> {
275
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
271
276
  const directSendOperation = async (
272
277
  args: coreClient.OperationArguments,
273
278
  spec: coreClient.OperationSpec
274
279
  ): Promise<void> => {
275
280
  return this.client.sendOperationRequest(args, spec);
276
281
  };
277
- const sendOperation = async (
282
+ const sendOperationFn = async (
278
283
  args: coreClient.OperationArguments,
279
284
  spec: coreClient.OperationSpec
280
285
  ) => {
@@ -307,18 +312,18 @@ export class WorkspacePrivateEndpointConnectionsImpl
307
312
  };
308
313
  };
309
314
 
310
- const lro = new LroImpl(
311
- sendOperation,
312
- {
315
+ const lro = createLroSpec({
316
+ sendOperationFn,
317
+ args: {
313
318
  resourceGroupName,
314
319
  workspaceName,
315
320
  privateEndpointConnectionName,
316
321
  options
317
322
  },
318
- deleteOperationSpec
319
- );
320
- const poller = new LroEngine(lro, {
321
- resumeFrom: options?.resumeFrom,
323
+ spec: deleteOperationSpec
324
+ });
325
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
326
+ restoreFrom: options?.resumeFrom,
322
327
  intervalInMs: options?.updateIntervalInMs
323
328
  });
324
329
  await poller.poll();
@@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client";
13
13
  import * as Mappers from "../models/mappers";
14
14
  import * as Parameters from "../models/parameters";
15
15
  import { HealthcareApisManagementClient } from "../healthcareApisManagementClient";
16
- import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
17
- import { LroImpl } from "../lroImpl";
16
+ import {
17
+ SimplePollerLike,
18
+ OperationState,
19
+ createHttpPoller
20
+ } from "@azure/core-lro";
21
+ import { createLroSpec } from "../lroImpl";
18
22
  import {
19
23
  Workspace,
20
24
  WorkspacesListBySubscriptionNextOptionalParams,
@@ -229,8 +233,8 @@ export class WorkspacesImpl implements Workspaces {
229
233
  workspace: Workspace,
230
234
  options?: WorkspacesCreateOrUpdateOptionalParams
231
235
  ): Promise<
232
- PollerLike<
233
- PollOperationState<WorkspacesCreateOrUpdateResponse>,
236
+ SimplePollerLike<
237
+ OperationState<WorkspacesCreateOrUpdateResponse>,
234
238
  WorkspacesCreateOrUpdateResponse
235
239
  >
236
240
  > {
@@ -240,7 +244,7 @@ export class WorkspacesImpl implements Workspaces {
240
244
  ): Promise<WorkspacesCreateOrUpdateResponse> => {
241
245
  return this.client.sendOperationRequest(args, spec);
242
246
  };
243
- const sendOperation = async (
247
+ const sendOperationFn = async (
244
248
  args: coreClient.OperationArguments,
245
249
  spec: coreClient.OperationSpec
246
250
  ) => {
@@ -273,13 +277,16 @@ export class WorkspacesImpl implements Workspaces {
273
277
  };
274
278
  };
275
279
 
276
- const lro = new LroImpl(
277
- sendOperation,
278
- { resourceGroupName, workspaceName, workspace, options },
279
- createOrUpdateOperationSpec
280
- );
281
- const poller = new LroEngine(lro, {
282
- resumeFrom: options?.resumeFrom,
280
+ const lro = createLroSpec({
281
+ sendOperationFn,
282
+ args: { resourceGroupName, workspaceName, workspace, options },
283
+ spec: createOrUpdateOperationSpec
284
+ });
285
+ const poller = await createHttpPoller<
286
+ WorkspacesCreateOrUpdateResponse,
287
+ OperationState<WorkspacesCreateOrUpdateResponse>
288
+ >(lro, {
289
+ restoreFrom: options?.resumeFrom,
283
290
  intervalInMs: options?.updateIntervalInMs
284
291
  });
285
292
  await poller.poll();
@@ -321,8 +328,8 @@ export class WorkspacesImpl implements Workspaces {
321
328
  workspacePatchResource: WorkspacePatchResource,
322
329
  options?: WorkspacesUpdateOptionalParams
323
330
  ): Promise<
324
- PollerLike<
325
- PollOperationState<WorkspacesUpdateResponse>,
331
+ SimplePollerLike<
332
+ OperationState<WorkspacesUpdateResponse>,
326
333
  WorkspacesUpdateResponse
327
334
  >
328
335
  > {
@@ -332,7 +339,7 @@ export class WorkspacesImpl implements Workspaces {
332
339
  ): Promise<WorkspacesUpdateResponse> => {
333
340
  return this.client.sendOperationRequest(args, spec);
334
341
  };
335
- const sendOperation = async (
342
+ const sendOperationFn = async (
336
343
  args: coreClient.OperationArguments,
337
344
  spec: coreClient.OperationSpec
338
345
  ) => {
@@ -365,13 +372,21 @@ export class WorkspacesImpl implements Workspaces {
365
372
  };
366
373
  };
367
374
 
368
- const lro = new LroImpl(
369
- sendOperation,
370
- { resourceGroupName, workspaceName, workspacePatchResource, options },
371
- updateOperationSpec
372
- );
373
- const poller = new LroEngine(lro, {
374
- resumeFrom: options?.resumeFrom,
375
+ const lro = createLroSpec({
376
+ sendOperationFn,
377
+ args: {
378
+ resourceGroupName,
379
+ workspaceName,
380
+ workspacePatchResource,
381
+ options
382
+ },
383
+ spec: updateOperationSpec
384
+ });
385
+ const poller = await createHttpPoller<
386
+ WorkspacesUpdateResponse,
387
+ OperationState<WorkspacesUpdateResponse>
388
+ >(lro, {
389
+ restoreFrom: options?.resumeFrom,
375
390
  intervalInMs: options?.updateIntervalInMs
376
391
  });
377
392
  await poller.poll();
@@ -410,14 +425,14 @@ export class WorkspacesImpl implements Workspaces {
410
425
  resourceGroupName: string,
411
426
  workspaceName: string,
412
427
  options?: WorkspacesDeleteOptionalParams
413
- ): Promise<PollerLike<PollOperationState<void>, void>> {
428
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
414
429
  const directSendOperation = async (
415
430
  args: coreClient.OperationArguments,
416
431
  spec: coreClient.OperationSpec
417
432
  ): Promise<void> => {
418
433
  return this.client.sendOperationRequest(args, spec);
419
434
  };
420
- const sendOperation = async (
435
+ const sendOperationFn = async (
421
436
  args: coreClient.OperationArguments,
422
437
  spec: coreClient.OperationSpec
423
438
  ) => {
@@ -450,13 +465,13 @@ export class WorkspacesImpl implements Workspaces {
450
465
  };
451
466
  };
452
467
 
453
- const lro = new LroImpl(
454
- sendOperation,
455
- { resourceGroupName, workspaceName, options },
456
- deleteOperationSpec
457
- );
458
- const poller = new LroEngine(lro, {
459
- resumeFrom: options?.resumeFrom,
468
+ const lro = createLroSpec({
469
+ sendOperationFn,
470
+ args: { resourceGroupName, workspaceName, options },
471
+ spec: deleteOperationSpec
472
+ });
473
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
474
+ restoreFrom: options?.resumeFrom,
460
475
  intervalInMs: options?.updateIntervalInMs
461
476
  });
462
477
  await poller.poll();
@@ -677,7 +692,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
677
692
  bodyMapper: Mappers.ErrorDetails
678
693
  }
679
694
  },
680
- queryParameters: [Parameters.apiVersion],
681
695
  urlParameters: [
682
696
  Parameters.$host,
683
697
  Parameters.subscriptionId,
@@ -697,7 +711,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
697
711
  bodyMapper: Mappers.ErrorDetails
698
712
  }
699
713
  },
700
- queryParameters: [Parameters.apiVersion],
701
714
  urlParameters: [
702
715
  Parameters.$host,
703
716
  Parameters.subscriptionId,
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
11
  import {
12
12
  DicomService,
13
13
  DicomServicesListByWorkspaceOptionalParams,
@@ -63,8 +63,8 @@ export interface DicomServices {
63
63
  dicomservice: DicomService,
64
64
  options?: DicomServicesCreateOrUpdateOptionalParams
65
65
  ): Promise<
66
- PollerLike<
67
- PollOperationState<DicomServicesCreateOrUpdateResponse>,
66
+ SimplePollerLike<
67
+ OperationState<DicomServicesCreateOrUpdateResponse>,
68
68
  DicomServicesCreateOrUpdateResponse
69
69
  >
70
70
  >;
@@ -98,8 +98,8 @@ export interface DicomServices {
98
98
  dicomservicePatchResource: DicomServicePatchResource,
99
99
  options?: DicomServicesUpdateOptionalParams
100
100
  ): Promise<
101
- PollerLike<
102
- PollOperationState<DicomServicesUpdateResponse>,
101
+ SimplePollerLike<
102
+ OperationState<DicomServicesUpdateResponse>,
103
103
  DicomServicesUpdateResponse
104
104
  >
105
105
  >;
@@ -130,7 +130,7 @@ export interface DicomServices {
130
130
  dicomServiceName: string,
131
131
  workspaceName: string,
132
132
  options?: DicomServicesDeleteOptionalParams
133
- ): Promise<PollerLike<PollOperationState<void>, void>>;
133
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
134
134
  /**
135
135
  * Deletes a DICOM Service.
136
136
  * @param resourceGroupName The name of the resource group that contains the service instance.
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
11
  import {
12
12
  FhirService,
13
13
  FhirServicesListByWorkspaceOptionalParams,
@@ -63,8 +63,8 @@ export interface FhirServices {
63
63
  fhirservice: FhirService,
64
64
  options?: FhirServicesCreateOrUpdateOptionalParams
65
65
  ): Promise<
66
- PollerLike<
67
- PollOperationState<FhirServicesCreateOrUpdateResponse>,
66
+ SimplePollerLike<
67
+ OperationState<FhirServicesCreateOrUpdateResponse>,
68
68
  FhirServicesCreateOrUpdateResponse
69
69
  >
70
70
  >;
@@ -98,8 +98,8 @@ export interface FhirServices {
98
98
  fhirservicePatchResource: FhirServicePatchResource,
99
99
  options?: FhirServicesUpdateOptionalParams
100
100
  ): Promise<
101
- PollerLike<
102
- PollOperationState<FhirServicesUpdateResponse>,
101
+ SimplePollerLike<
102
+ OperationState<FhirServicesUpdateResponse>,
103
103
  FhirServicesUpdateResponse
104
104
  >
105
105
  >;
@@ -130,7 +130,7 @@ export interface FhirServices {
130
130
  fhirServiceName: string,
131
131
  workspaceName: string,
132
132
  options?: FhirServicesDeleteOptionalParams
133
- ): Promise<PollerLike<PollOperationState<void>, void>>;
133
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
134
134
  /**
135
135
  * Deletes a FHIR Service.
136
136
  * @param resourceGroupName The name of the resource group that contains the service instance.
@@ -6,7 +6,7 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PollerLike, PollOperationState } from "@azure/core-lro";
9
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
10
10
  import {
11
11
  IotConnectorFhirDestinationGetOptionalParams,
12
12
  IotConnectorFhirDestinationGetResponse,
@@ -51,8 +51,8 @@ export interface IotConnectorFhirDestination {
51
51
  iotFhirDestination: IotFhirDestination,
52
52
  options?: IotConnectorFhirDestinationCreateOrUpdateOptionalParams
53
53
  ): Promise<
54
- PollerLike<
55
- PollOperationState<IotConnectorFhirDestinationCreateOrUpdateResponse>,
54
+ SimplePollerLike<
55
+ OperationState<IotConnectorFhirDestinationCreateOrUpdateResponse>,
56
56
  IotConnectorFhirDestinationCreateOrUpdateResponse
57
57
  >
58
58
  >;
@@ -88,7 +88,7 @@ export interface IotConnectorFhirDestination {
88
88
  iotConnectorName: string,
89
89
  fhirDestinationName: string,
90
90
  options?: IotConnectorFhirDestinationDeleteOptionalParams
91
- ): Promise<PollerLike<PollOperationState<void>, void>>;
91
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
92
92
  /**
93
93
  * Deletes an IoT Connector FHIR destination.
94
94
  * @param resourceGroupName The name of the resource group that contains the service instance.
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
11
  import {
12
12
  IotConnector,
13
13
  IotConnectorsListByWorkspaceOptionalParams,
@@ -63,8 +63,8 @@ export interface IotConnectors {
63
63
  iotConnector: IotConnector,
64
64
  options?: IotConnectorsCreateOrUpdateOptionalParams
65
65
  ): Promise<
66
- PollerLike<
67
- PollOperationState<IotConnectorsCreateOrUpdateResponse>,
66
+ SimplePollerLike<
67
+ OperationState<IotConnectorsCreateOrUpdateResponse>,
68
68
  IotConnectorsCreateOrUpdateResponse
69
69
  >
70
70
  >;
@@ -98,8 +98,8 @@ export interface IotConnectors {
98
98
  iotConnectorPatchResource: IotConnectorPatchResource,
99
99
  options?: IotConnectorsUpdateOptionalParams
100
100
  ): Promise<
101
- PollerLike<
102
- PollOperationState<IotConnectorsUpdateResponse>,
101
+ SimplePollerLike<
102
+ OperationState<IotConnectorsUpdateResponse>,
103
103
  IotConnectorsUpdateResponse
104
104
  >
105
105
  >;
@@ -130,7 +130,7 @@ export interface IotConnectors {
130
130
  iotConnectorName: string,
131
131
  workspaceName: string,
132
132
  options?: IotConnectorsDeleteOptionalParams
133
- ): Promise<PollerLike<PollOperationState<void>, void>>;
133
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
134
134
  /**
135
135
  * Deletes an IoT Connector.
136
136
  * @param resourceGroupName The name of the resource group that contains the service instance.
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
11
  import {
12
12
  PrivateEndpointConnectionDescription,
13
13
  PrivateEndpointConnectionsListByServiceOptionalParams,
@@ -63,8 +63,8 @@ export interface PrivateEndpointConnections {
63
63
  properties: PrivateEndpointConnection,
64
64
  options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
65
65
  ): Promise<
66
- PollerLike<
67
- PollOperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,
66
+ SimplePollerLike<
67
+ OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,
68
68
  PrivateEndpointConnectionsCreateOrUpdateResponse
69
69
  >
70
70
  >;
@@ -97,7 +97,7 @@ export interface PrivateEndpointConnections {
97
97
  resourceName: string,
98
98
  privateEndpointConnectionName: string,
99
99
  options?: PrivateEndpointConnectionsDeleteOptionalParams
100
- ): Promise<PollerLike<PollOperationState<void>, void>>;
100
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
101
101
  /**
102
102
  * Deletes a private endpoint connection.
103
103
  * @param resourceGroupName The name of the resource group that contains the service instance.
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
11
  import {
12
12
  ServicesDescription,
13
13
  ServicesListOptionalParams,
@@ -68,8 +68,8 @@ export interface Services {
68
68
  serviceDescription: ServicesDescription,
69
69
  options?: ServicesCreateOrUpdateOptionalParams
70
70
  ): Promise<
71
- PollerLike<
72
- PollOperationState<ServicesCreateOrUpdateResponse>,
71
+ SimplePollerLike<
72
+ OperationState<ServicesCreateOrUpdateResponse>,
73
73
  ServicesCreateOrUpdateResponse
74
74
  >
75
75
  >;
@@ -99,8 +99,8 @@ export interface Services {
99
99
  servicePatchDescription: ServicesPatchDescription,
100
100
  options?: ServicesUpdateOptionalParams
101
101
  ): Promise<
102
- PollerLike<
103
- PollOperationState<ServicesUpdateResponse>,
102
+ SimplePollerLike<
103
+ OperationState<ServicesUpdateResponse>,
104
104
  ServicesUpdateResponse
105
105
  >
106
106
  >;
@@ -127,7 +127,7 @@ export interface Services {
127
127
  resourceGroupName: string,
128
128
  resourceName: string,
129
129
  options?: ServicesDeleteOptionalParams
130
- ): Promise<PollerLike<PollOperationState<void>, void>>;
130
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
131
131
  /**
132
132
  * Delete a service instance.
133
133
  * @param resourceGroupName The name of the resource group that contains the service instance.
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
11
  import {
12
12
  PrivateEndpointConnectionDescription,
13
13
  WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams,
@@ -62,10 +62,8 @@ export interface WorkspacePrivateEndpointConnections {
62
62
  properties: PrivateEndpointConnectionDescription,
63
63
  options?: WorkspacePrivateEndpointConnectionsCreateOrUpdateOptionalParams
64
64
  ): Promise<
65
- PollerLike<
66
- PollOperationState<
67
- WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse
68
- >,
65
+ SimplePollerLike<
66
+ OperationState<WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse>,
69
67
  WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse
70
68
  >
71
69
  >;
@@ -98,7 +96,7 @@ export interface WorkspacePrivateEndpointConnections {
98
96
  workspaceName: string,
99
97
  privateEndpointConnectionName: string,
100
98
  options?: WorkspacePrivateEndpointConnectionsDeleteOptionalParams
101
- ): Promise<PollerLike<PollOperationState<void>, void>>;
99
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
102
100
  /**
103
101
  * Deletes a private endpoint connection.
104
102
  * @param resourceGroupName The name of the resource group that contains the service instance.