@azure/arm-healthcareapis 2.2.1-alpha.20231113.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +27 -8
- package/LICENSE +1 -1
- package/dist/index.js +524 -231
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/dicomServicesCreateOrUpdateSample.js +11 -4
- package/dist-esm/samples-dev/dicomServicesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/dicomServicesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/dicomServicesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/dicomServicesGetSample.js +11 -4
- package/dist-esm/samples-dev/dicomServicesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/dicomServicesListByWorkspaceSample.js +11 -4
- package/dist-esm/samples-dev/dicomServicesListByWorkspaceSample.js.map +1 -1
- package/dist-esm/samples-dev/dicomServicesUpdateSample.js +11 -4
- package/dist-esm/samples-dev/dicomServicesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/fhirDestinationsListByIotConnectorSample.js +11 -4
- package/dist-esm/samples-dev/fhirDestinationsListByIotConnectorSample.js.map +1 -1
- package/dist-esm/samples-dev/fhirServicesCreateOrUpdateSample.js +28 -9
- package/dist-esm/samples-dev/fhirServicesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/fhirServicesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/fhirServicesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/fhirServicesGetSample.js +11 -4
- package/dist-esm/samples-dev/fhirServicesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/fhirServicesListByWorkspaceSample.js +11 -4
- package/dist-esm/samples-dev/fhirServicesListByWorkspaceSample.js.map +1 -1
- package/dist-esm/samples-dev/fhirServicesUpdateSample.js +11 -4
- package/dist-esm/samples-dev/fhirServicesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/iotConnectorFhirDestinationCreateOrUpdateSample.js +11 -4
- package/dist-esm/samples-dev/iotConnectorFhirDestinationCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/iotConnectorFhirDestinationDeleteSample.js +11 -4
- package/dist-esm/samples-dev/iotConnectorFhirDestinationDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/iotConnectorFhirDestinationGetSample.js +11 -4
- package/dist-esm/samples-dev/iotConnectorFhirDestinationGetSample.js.map +1 -1
- package/dist-esm/samples-dev/iotConnectorsCreateOrUpdateSample.js +11 -4
- package/dist-esm/samples-dev/iotConnectorsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/iotConnectorsDeleteSample.js +11 -4
- package/dist-esm/samples-dev/iotConnectorsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/iotConnectorsGetSample.js +11 -4
- package/dist-esm/samples-dev/iotConnectorsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/iotConnectorsListByWorkspaceSample.js +11 -4
- package/dist-esm/samples-dev/iotConnectorsListByWorkspaceSample.js.map +1 -1
- package/dist-esm/samples-dev/iotConnectorsUpdateSample.js +11 -4
- package/dist-esm/samples-dev/iotConnectorsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationResultsGetSample.js +10 -3
- package/dist-esm/samples-dev/operationResultsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +11 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +11 -4
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByServiceSample.js +11 -4
- package/dist-esm/samples-dev/privateLinkResourcesListByServiceSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js +10 -3
- package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +65 -8
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/servicesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesGetSample.js +29 -4
- package/dist-esm/samples-dev/servicesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesListByResourceGroupSample.js +11 -4
- package/dist-esm/samples-dev/servicesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesListSample.js +10 -3
- package/dist-esm/samples-dev/servicesListSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesUpdateSample.js +11 -4
- package/dist-esm/samples-dev/servicesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsCreateOrUpdateSample.js +11 -4
- package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsDeleteSample.js +11 -4
- package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsGetSample.js +11 -4
- package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsListByWorkspaceSample.js +11 -4
- package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsListByWorkspaceSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacePrivateLinkResourcesGetSample.js +11 -4
- package/dist-esm/samples-dev/workspacePrivateLinkResourcesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacePrivateLinkResourcesListByWorkspaceSample.js +11 -4
- package/dist-esm/samples-dev/workspacePrivateLinkResourcesListByWorkspaceSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +11 -4
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/workspacesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesGetSample.js +11 -4
- package/dist-esm/samples-dev/workspacesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +11 -4
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +10 -3
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesUpdateSample.js +11 -4
- package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -1
- package/dist-esm/src/healthcareApisManagementClient.d.ts +1 -1
- package/dist-esm/src/healthcareApisManagementClient.js +3 -3
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +95 -27
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +10 -10
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +6 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +237 -29
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +4 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/dicomServices.d.ts +4 -4
- package/dist-esm/src/operations/dicomServices.d.ts.map +1 -1
- package/dist-esm/src/operations/dicomServices.js +38 -27
- package/dist-esm/src/operations/dicomServices.js.map +1 -1
- package/dist-esm/src/operations/fhirDestinations.js +0 -1
- package/dist-esm/src/operations/fhirDestinations.js.map +1 -1
- package/dist-esm/src/operations/fhirServices.d.ts +4 -4
- package/dist-esm/src/operations/fhirServices.d.ts.map +1 -1
- package/dist-esm/src/operations/fhirServices.js +38 -27
- package/dist-esm/src/operations/fhirServices.js.map +1 -1
- package/dist-esm/src/operations/iotConnectorFhirDestination.d.ts +3 -3
- package/dist-esm/src/operations/iotConnectorFhirDestination.d.ts.map +1 -1
- package/dist-esm/src/operations/iotConnectorFhirDestination.js +31 -23
- package/dist-esm/src/operations/iotConnectorFhirDestination.js.map +1 -1
- package/dist-esm/src/operations/iotConnectors.d.ts +4 -4
- package/dist-esm/src/operations/iotConnectors.d.ts.map +1 -1
- package/dist-esm/src/operations/iotConnectors.js +38 -27
- package/dist-esm/src/operations/iotConnectors.js.map +1 -1
- package/dist-esm/src/operations/operations.js +0 -1
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +3 -3
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +29 -21
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/services.d.ts +4 -4
- package/dist-esm/src/operations/services.d.ts.map +1 -1
- package/dist-esm/src/operations/services.js +31 -16
- package/dist-esm/src/operations/services.js.map +1 -1
- package/dist-esm/src/operations/workspacePrivateEndpointConnections.d.ts +3 -3
- package/dist-esm/src/operations/workspacePrivateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/workspacePrivateEndpointConnections.js +29 -21
- package/dist-esm/src/operations/workspacePrivateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/workspaces.d.ts +4 -4
- package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
- package/dist-esm/src/operations/workspaces.js +31 -16
- package/dist-esm/src/operations/workspaces.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/dicomServices.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/dicomServices.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/fhirServices.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/fhirServices.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/iotConnectorFhirDestination.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/iotConnectorFhirDestination.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/iotConnectors.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/iotConnectors.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/services.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/workspacePrivateEndpointConnections.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/workspacePrivateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +4 -4
- package/dist-esm/src/pagingHelper.js +4 -4
- package/dist-esm/test/healthcareapis_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/healthcareapis_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/healthcareapis_operations_test.spec.js +111 -0
- package/dist-esm/test/healthcareapis_operations_test.spec.js.map +1 -0
- package/package.json +13 -10
- package/review/arm-healthcareapis.api.md +74 -29
- package/src/healthcareApisManagementClient.ts +3 -3
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +103 -30
- package/src/models/mappers.ts +253 -33
- package/src/models/parameters.ts +4 -1
- package/src/operations/dicomServices.ts +41 -32
- package/src/operations/fhirDestinations.ts +0 -1
- package/src/operations/fhirServices.ts +41 -32
- package/src/operations/iotConnectorFhirDestination.ts +28 -21
- package/src/operations/iotConnectors.ts +41 -32
- package/src/operations/operations.ts +0 -1
- package/src/operations/privateEndpointConnections.ts +28 -21
- package/src/operations/services.ts +46 -33
- package/src/operations/workspacePrivateEndpointConnections.ts +28 -23
- package/src/operations/workspaces.ts +46 -33
- package/src/operationsInterfaces/dicomServices.ts +6 -6
- package/src/operationsInterfaces/fhirServices.ts +6 -6
- package/src/operationsInterfaces/iotConnectorFhirDestination.ts +4 -4
- package/src/operationsInterfaces/iotConnectors.ts +6 -6
- package/src/operationsInterfaces/privateEndpointConnections.ts +4 -4
- package/src/operationsInterfaces/services.ts +6 -6
- package/src/operationsInterfaces/workspacePrivateEndpointConnections.ts +4 -6
- package/src/operationsInterfaces/workspaces.ts +6 -6
- package/src/pagingHelper.ts +4 -4
- package/types/arm-healthcareapis.d.ts +110 -37
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/samples-dev/checkNameAvailability.d.ts +0 -2
- package/dist-esm/samples-dev/checkNameAvailability.d.ts.map +0 -1
- package/dist-esm/samples-dev/checkNameAvailability.js +0 -33
- package/dist-esm/samples-dev/checkNameAvailability.js.map +0 -1
- package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.d.ts +0 -2
- package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.d.ts.map +0 -1
- package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.js +0 -62
- package/dist-esm/samples-dev/createOrUpdateAServiceWithAllParameters.js.map +0 -1
- package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.d.ts +0 -2
- package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.d.ts.map +0 -1
- package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.js +0 -39
- package/dist-esm/samples-dev/createOrUpdateAServiceWithMinimumParameters.js.map +0 -1
- package/dist-esm/samples-dev/deleteService.d.ts +0 -2
- package/dist-esm/samples-dev/deleteService.d.ts.map +0 -1
- package/dist-esm/samples-dev/deleteService.js +0 -31
- package/dist-esm/samples-dev/deleteService.js.map +0 -1
- package/dist-esm/samples-dev/getMetadata.d.ts +0 -2
- package/dist-esm/samples-dev/getMetadata.d.ts.map +0 -1
- package/dist-esm/samples-dev/getMetadata.js +0 -31
- package/dist-esm/samples-dev/getMetadata.js.map +0 -1
- package/dist-esm/samples-dev/getOperationResult.d.ts +0 -2
- package/dist-esm/samples-dev/getOperationResult.d.ts.map +0 -1
- package/dist-esm/samples-dev/getOperationResult.js +0 -31
- package/dist-esm/samples-dev/getOperationResult.js.map +0 -1
- package/dist-esm/samples-dev/listAllServicesInResourceGroup.d.ts +0 -2
- package/dist-esm/samples-dev/listAllServicesInResourceGroup.d.ts.map +0 -1
- package/dist-esm/samples-dev/listAllServicesInResourceGroup.js +0 -46
- package/dist-esm/samples-dev/listAllServicesInResourceGroup.js.map +0 -1
- package/dist-esm/samples-dev/listAllServicesInSubscription.d.ts +0 -2
- package/dist-esm/samples-dev/listAllServicesInSubscription.d.ts.map +0 -1
- package/dist-esm/samples-dev/listAllServicesInSubscription.js +0 -45
- package/dist-esm/samples-dev/listAllServicesInSubscription.js.map +0 -1
- package/dist-esm/samples-dev/listOperations.d.ts +0 -2
- package/dist-esm/samples-dev/listOperations.d.ts.map +0 -1
- package/dist-esm/samples-dev/listOperations.js +0 -45
- package/dist-esm/samples-dev/listOperations.js.map +0 -1
- package/dist-esm/samples-dev/patchService.d.ts +0 -2
- package/dist-esm/samples-dev/patchService.d.ts.map +0 -1
- package/dist-esm/samples-dev/patchService.js +0 -34
- package/dist-esm/samples-dev/patchService.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.js +0 -38
- package/dist-esm/samples-dev/privateEndpointConnectionCreateOrUpdate.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.js +0 -32
- package/dist-esm/samples-dev/privateEndpointConnectionGetConnection.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionList.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionList.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionList.js +0 -47
- package/dist-esm/samples-dev/privateEndpointConnectionList.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDelete.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsDelete.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDelete.js +0 -32
- package/dist-esm/samples-dev/privateEndpointConnectionsDelete.js.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesGet.d.ts +0 -2
- package/dist-esm/samples-dev/privateLinkResourcesGet.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesGet.js +0 -32
- package/dist-esm/samples-dev/privateLinkResourcesGet.js.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.d.ts +0 -2
- package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.js +0 -31
- package/dist-esm/samples-dev/privateLinkResourcesListGroupIds.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- 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 {
|
17
|
-
|
16
|
+
import {
|
17
|
+
SimplePollerLike,
|
18
|
+
OperationState,
|
19
|
+
createHttpPoller
|
20
|
+
} from "@azure/core-lro";
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
18
22
|
import {
|
19
23
|
FhirService,
|
20
24
|
FhirServicesListByWorkspaceNextOptionalParams,
|
@@ -179,8 +183,8 @@ export class FhirServicesImpl implements FhirServices {
|
|
179
183
|
fhirservice: FhirService,
|
180
184
|
options?: FhirServicesCreateOrUpdateOptionalParams
|
181
185
|
): Promise<
|
182
|
-
|
183
|
-
|
186
|
+
SimplePollerLike<
|
187
|
+
OperationState<FhirServicesCreateOrUpdateResponse>,
|
184
188
|
FhirServicesCreateOrUpdateResponse
|
185
189
|
>
|
186
190
|
> {
|
@@ -190,7 +194,7 @@ export class FhirServicesImpl implements FhirServices {
|
|
190
194
|
): Promise<FhirServicesCreateOrUpdateResponse> => {
|
191
195
|
return this.client.sendOperationRequest(args, spec);
|
192
196
|
};
|
193
|
-
const
|
197
|
+
const sendOperationFn = async (
|
194
198
|
args: coreClient.OperationArguments,
|
195
199
|
spec: coreClient.OperationSpec
|
196
200
|
) => {
|
@@ -223,19 +227,22 @@ export class FhirServicesImpl implements FhirServices {
|
|
223
227
|
};
|
224
228
|
};
|
225
229
|
|
226
|
-
const lro =
|
227
|
-
|
228
|
-
{
|
230
|
+
const lro = createLroSpec({
|
231
|
+
sendOperationFn,
|
232
|
+
args: {
|
229
233
|
resourceGroupName,
|
230
234
|
workspaceName,
|
231
235
|
fhirServiceName,
|
232
236
|
fhirservice,
|
233
237
|
options
|
234
238
|
},
|
235
|
-
createOrUpdateOperationSpec
|
236
|
-
);
|
237
|
-
const poller =
|
238
|
-
|
239
|
+
spec: createOrUpdateOperationSpec
|
240
|
+
});
|
241
|
+
const poller = await createHttpPoller<
|
242
|
+
FhirServicesCreateOrUpdateResponse,
|
243
|
+
OperationState<FhirServicesCreateOrUpdateResponse>
|
244
|
+
>(lro, {
|
245
|
+
restoreFrom: options?.resumeFrom,
|
239
246
|
intervalInMs: options?.updateIntervalInMs
|
240
247
|
});
|
241
248
|
await poller.poll();
|
@@ -282,8 +289,8 @@ export class FhirServicesImpl implements FhirServices {
|
|
282
289
|
fhirservicePatchResource: FhirServicePatchResource,
|
283
290
|
options?: FhirServicesUpdateOptionalParams
|
284
291
|
): Promise<
|
285
|
-
|
286
|
-
|
292
|
+
SimplePollerLike<
|
293
|
+
OperationState<FhirServicesUpdateResponse>,
|
287
294
|
FhirServicesUpdateResponse
|
288
295
|
>
|
289
296
|
> {
|
@@ -293,7 +300,7 @@ export class FhirServicesImpl implements FhirServices {
|
|
293
300
|
): Promise<FhirServicesUpdateResponse> => {
|
294
301
|
return this.client.sendOperationRequest(args, spec);
|
295
302
|
};
|
296
|
-
const
|
303
|
+
const sendOperationFn = async (
|
297
304
|
args: coreClient.OperationArguments,
|
298
305
|
spec: coreClient.OperationSpec
|
299
306
|
) => {
|
@@ -326,19 +333,22 @@ export class FhirServicesImpl implements FhirServices {
|
|
326
333
|
};
|
327
334
|
};
|
328
335
|
|
329
|
-
const lro =
|
330
|
-
|
331
|
-
{
|
336
|
+
const lro = createLroSpec({
|
337
|
+
sendOperationFn,
|
338
|
+
args: {
|
332
339
|
resourceGroupName,
|
333
340
|
fhirServiceName,
|
334
341
|
workspaceName,
|
335
342
|
fhirservicePatchResource,
|
336
343
|
options
|
337
344
|
},
|
338
|
-
updateOperationSpec
|
339
|
-
);
|
340
|
-
const poller =
|
341
|
-
|
345
|
+
spec: updateOperationSpec
|
346
|
+
});
|
347
|
+
const poller = await createHttpPoller<
|
348
|
+
FhirServicesUpdateResponse,
|
349
|
+
OperationState<FhirServicesUpdateResponse>
|
350
|
+
>(lro, {
|
351
|
+
restoreFrom: options?.resumeFrom,
|
342
352
|
intervalInMs: options?.updateIntervalInMs
|
343
353
|
});
|
344
354
|
await poller.poll();
|
@@ -382,14 +392,14 @@ export class FhirServicesImpl implements FhirServices {
|
|
382
392
|
fhirServiceName: string,
|
383
393
|
workspaceName: string,
|
384
394
|
options?: FhirServicesDeleteOptionalParams
|
385
|
-
): Promise<
|
395
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
386
396
|
const directSendOperation = async (
|
387
397
|
args: coreClient.OperationArguments,
|
388
398
|
spec: coreClient.OperationSpec
|
389
399
|
): Promise<void> => {
|
390
400
|
return this.client.sendOperationRequest(args, spec);
|
391
401
|
};
|
392
|
-
const
|
402
|
+
const sendOperationFn = async (
|
393
403
|
args: coreClient.OperationArguments,
|
394
404
|
spec: coreClient.OperationSpec
|
395
405
|
) => {
|
@@ -422,13 +432,13 @@ export class FhirServicesImpl implements FhirServices {
|
|
422
432
|
};
|
423
433
|
};
|
424
434
|
|
425
|
-
const lro =
|
426
|
-
|
427
|
-
{ resourceGroupName, fhirServiceName, workspaceName, options },
|
428
|
-
deleteOperationSpec
|
429
|
-
);
|
430
|
-
const poller =
|
431
|
-
|
435
|
+
const lro = createLroSpec({
|
436
|
+
sendOperationFn,
|
437
|
+
args: { resourceGroupName, fhirServiceName, workspaceName, options },
|
438
|
+
spec: deleteOperationSpec
|
439
|
+
});
|
440
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
441
|
+
restoreFrom: options?.resumeFrom,
|
432
442
|
intervalInMs: options?.updateIntervalInMs
|
433
443
|
});
|
434
444
|
await poller.poll();
|
@@ -627,7 +637,6 @@ const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = {
|
|
627
637
|
bodyMapper: Mappers.ErrorDetails
|
628
638
|
}
|
629
639
|
},
|
630
|
-
queryParameters: [Parameters.apiVersion],
|
631
640
|
urlParameters: [
|
632
641
|
Parameters.$host,
|
633
642
|
Parameters.subscriptionId,
|
@@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client";
|
|
11
11
|
import * as Mappers from "../models/mappers";
|
12
12
|
import * as Parameters from "../models/parameters";
|
13
13
|
import { HealthcareApisManagementClient } from "../healthcareApisManagementClient";
|
14
|
-
import {
|
15
|
-
|
14
|
+
import {
|
15
|
+
SimplePollerLike,
|
16
|
+
OperationState,
|
17
|
+
createHttpPoller
|
18
|
+
} from "@azure/core-lro";
|
19
|
+
import { createLroSpec } from "../lroImpl";
|
16
20
|
import {
|
17
21
|
IotConnectorFhirDestinationGetOptionalParams,
|
18
22
|
IotConnectorFhirDestinationGetResponse,
|
@@ -80,8 +84,8 @@ export class IotConnectorFhirDestinationImpl
|
|
80
84
|
iotFhirDestination: IotFhirDestination,
|
81
85
|
options?: IotConnectorFhirDestinationCreateOrUpdateOptionalParams
|
82
86
|
): Promise<
|
83
|
-
|
84
|
-
|
87
|
+
SimplePollerLike<
|
88
|
+
OperationState<IotConnectorFhirDestinationCreateOrUpdateResponse>,
|
85
89
|
IotConnectorFhirDestinationCreateOrUpdateResponse
|
86
90
|
>
|
87
91
|
> {
|
@@ -91,7 +95,7 @@ export class IotConnectorFhirDestinationImpl
|
|
91
95
|
): Promise<IotConnectorFhirDestinationCreateOrUpdateResponse> => {
|
92
96
|
return this.client.sendOperationRequest(args, spec);
|
93
97
|
};
|
94
|
-
const
|
98
|
+
const sendOperationFn = async (
|
95
99
|
args: coreClient.OperationArguments,
|
96
100
|
spec: coreClient.OperationSpec
|
97
101
|
) => {
|
@@ -124,9 +128,9 @@ export class IotConnectorFhirDestinationImpl
|
|
124
128
|
};
|
125
129
|
};
|
126
130
|
|
127
|
-
const lro =
|
128
|
-
|
129
|
-
{
|
131
|
+
const lro = createLroSpec({
|
132
|
+
sendOperationFn,
|
133
|
+
args: {
|
130
134
|
resourceGroupName,
|
131
135
|
workspaceName,
|
132
136
|
iotConnectorName,
|
@@ -134,10 +138,13 @@ export class IotConnectorFhirDestinationImpl
|
|
134
138
|
iotFhirDestination,
|
135
139
|
options
|
136
140
|
},
|
137
|
-
createOrUpdateOperationSpec
|
138
|
-
);
|
139
|
-
const poller =
|
140
|
-
|
141
|
+
spec: createOrUpdateOperationSpec
|
142
|
+
});
|
143
|
+
const poller = await createHttpPoller<
|
144
|
+
IotConnectorFhirDestinationCreateOrUpdateResponse,
|
145
|
+
OperationState<IotConnectorFhirDestinationCreateOrUpdateResponse>
|
146
|
+
>(lro, {
|
147
|
+
restoreFrom: options?.resumeFrom,
|
141
148
|
intervalInMs: options?.updateIntervalInMs
|
142
149
|
});
|
143
150
|
await poller.poll();
|
@@ -187,14 +194,14 @@ export class IotConnectorFhirDestinationImpl
|
|
187
194
|
iotConnectorName: string,
|
188
195
|
fhirDestinationName: string,
|
189
196
|
options?: IotConnectorFhirDestinationDeleteOptionalParams
|
190
|
-
): Promise<
|
197
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
191
198
|
const directSendOperation = async (
|
192
199
|
args: coreClient.OperationArguments,
|
193
200
|
spec: coreClient.OperationSpec
|
194
201
|
): Promise<void> => {
|
195
202
|
return this.client.sendOperationRequest(args, spec);
|
196
203
|
};
|
197
|
-
const
|
204
|
+
const sendOperationFn = async (
|
198
205
|
args: coreClient.OperationArguments,
|
199
206
|
spec: coreClient.OperationSpec
|
200
207
|
) => {
|
@@ -227,19 +234,19 @@ export class IotConnectorFhirDestinationImpl
|
|
227
234
|
};
|
228
235
|
};
|
229
236
|
|
230
|
-
const lro =
|
231
|
-
|
232
|
-
{
|
237
|
+
const lro = createLroSpec({
|
238
|
+
sendOperationFn,
|
239
|
+
args: {
|
233
240
|
resourceGroupName,
|
234
241
|
workspaceName,
|
235
242
|
iotConnectorName,
|
236
243
|
fhirDestinationName,
|
237
244
|
options
|
238
245
|
},
|
239
|
-
deleteOperationSpec
|
240
|
-
);
|
241
|
-
const poller =
|
242
|
-
|
246
|
+
spec: deleteOperationSpec
|
247
|
+
});
|
248
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
249
|
+
restoreFrom: options?.resumeFrom,
|
243
250
|
intervalInMs: options?.updateIntervalInMs
|
244
251
|
});
|
245
252
|
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 {
|
17
|
-
|
16
|
+
import {
|
17
|
+
SimplePollerLike,
|
18
|
+
OperationState,
|
19
|
+
createHttpPoller
|
20
|
+
} from "@azure/core-lro";
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
18
22
|
import {
|
19
23
|
IotConnector,
|
20
24
|
IotConnectorsListByWorkspaceNextOptionalParams,
|
@@ -179,8 +183,8 @@ export class IotConnectorsImpl implements IotConnectors {
|
|
179
183
|
iotConnector: IotConnector,
|
180
184
|
options?: IotConnectorsCreateOrUpdateOptionalParams
|
181
185
|
): Promise<
|
182
|
-
|
183
|
-
|
186
|
+
SimplePollerLike<
|
187
|
+
OperationState<IotConnectorsCreateOrUpdateResponse>,
|
184
188
|
IotConnectorsCreateOrUpdateResponse
|
185
189
|
>
|
186
190
|
> {
|
@@ -190,7 +194,7 @@ export class IotConnectorsImpl implements IotConnectors {
|
|
190
194
|
): Promise<IotConnectorsCreateOrUpdateResponse> => {
|
191
195
|
return this.client.sendOperationRequest(args, spec);
|
192
196
|
};
|
193
|
-
const
|
197
|
+
const sendOperationFn = async (
|
194
198
|
args: coreClient.OperationArguments,
|
195
199
|
spec: coreClient.OperationSpec
|
196
200
|
) => {
|
@@ -223,19 +227,22 @@ export class IotConnectorsImpl implements IotConnectors {
|
|
223
227
|
};
|
224
228
|
};
|
225
229
|
|
226
|
-
const lro =
|
227
|
-
|
228
|
-
{
|
230
|
+
const lro = createLroSpec({
|
231
|
+
sendOperationFn,
|
232
|
+
args: {
|
229
233
|
resourceGroupName,
|
230
234
|
workspaceName,
|
231
235
|
iotConnectorName,
|
232
236
|
iotConnector,
|
233
237
|
options
|
234
238
|
},
|
235
|
-
createOrUpdateOperationSpec
|
236
|
-
);
|
237
|
-
const poller =
|
238
|
-
|
239
|
+
spec: createOrUpdateOperationSpec
|
240
|
+
});
|
241
|
+
const poller = await createHttpPoller<
|
242
|
+
IotConnectorsCreateOrUpdateResponse,
|
243
|
+
OperationState<IotConnectorsCreateOrUpdateResponse>
|
244
|
+
>(lro, {
|
245
|
+
restoreFrom: options?.resumeFrom,
|
239
246
|
intervalInMs: options?.updateIntervalInMs
|
240
247
|
});
|
241
248
|
await poller.poll();
|
@@ -282,8 +289,8 @@ export class IotConnectorsImpl implements IotConnectors {
|
|
282
289
|
iotConnectorPatchResource: IotConnectorPatchResource,
|
283
290
|
options?: IotConnectorsUpdateOptionalParams
|
284
291
|
): Promise<
|
285
|
-
|
286
|
-
|
292
|
+
SimplePollerLike<
|
293
|
+
OperationState<IotConnectorsUpdateResponse>,
|
287
294
|
IotConnectorsUpdateResponse
|
288
295
|
>
|
289
296
|
> {
|
@@ -293,7 +300,7 @@ export class IotConnectorsImpl implements IotConnectors {
|
|
293
300
|
): Promise<IotConnectorsUpdateResponse> => {
|
294
301
|
return this.client.sendOperationRequest(args, spec);
|
295
302
|
};
|
296
|
-
const
|
303
|
+
const sendOperationFn = async (
|
297
304
|
args: coreClient.OperationArguments,
|
298
305
|
spec: coreClient.OperationSpec
|
299
306
|
) => {
|
@@ -326,19 +333,22 @@ export class IotConnectorsImpl implements IotConnectors {
|
|
326
333
|
};
|
327
334
|
};
|
328
335
|
|
329
|
-
const lro =
|
330
|
-
|
331
|
-
{
|
336
|
+
const lro = createLroSpec({
|
337
|
+
sendOperationFn,
|
338
|
+
args: {
|
332
339
|
resourceGroupName,
|
333
340
|
iotConnectorName,
|
334
341
|
workspaceName,
|
335
342
|
iotConnectorPatchResource,
|
336
343
|
options
|
337
344
|
},
|
338
|
-
updateOperationSpec
|
339
|
-
);
|
340
|
-
const poller =
|
341
|
-
|
345
|
+
spec: updateOperationSpec
|
346
|
+
});
|
347
|
+
const poller = await createHttpPoller<
|
348
|
+
IotConnectorsUpdateResponse,
|
349
|
+
OperationState<IotConnectorsUpdateResponse>
|
350
|
+
>(lro, {
|
351
|
+
restoreFrom: options?.resumeFrom,
|
342
352
|
intervalInMs: options?.updateIntervalInMs
|
343
353
|
});
|
344
354
|
await poller.poll();
|
@@ -382,14 +392,14 @@ export class IotConnectorsImpl implements IotConnectors {
|
|
382
392
|
iotConnectorName: string,
|
383
393
|
workspaceName: string,
|
384
394
|
options?: IotConnectorsDeleteOptionalParams
|
385
|
-
): Promise<
|
395
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
386
396
|
const directSendOperation = async (
|
387
397
|
args: coreClient.OperationArguments,
|
388
398
|
spec: coreClient.OperationSpec
|
389
399
|
): Promise<void> => {
|
390
400
|
return this.client.sendOperationRequest(args, spec);
|
391
401
|
};
|
392
|
-
const
|
402
|
+
const sendOperationFn = async (
|
393
403
|
args: coreClient.OperationArguments,
|
394
404
|
spec: coreClient.OperationSpec
|
395
405
|
) => {
|
@@ -422,13 +432,13 @@ export class IotConnectorsImpl implements IotConnectors {
|
|
422
432
|
};
|
423
433
|
};
|
424
434
|
|
425
|
-
const lro =
|
426
|
-
|
427
|
-
{ resourceGroupName, iotConnectorName, workspaceName, options },
|
428
|
-
deleteOperationSpec
|
429
|
-
);
|
430
|
-
const poller =
|
431
|
-
|
435
|
+
const lro = createLroSpec({
|
436
|
+
sendOperationFn,
|
437
|
+
args: { resourceGroupName, iotConnectorName, workspaceName, options },
|
438
|
+
spec: deleteOperationSpec
|
439
|
+
});
|
440
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
441
|
+
restoreFrom: options?.resumeFrom,
|
432
442
|
intervalInMs: options?.updateIntervalInMs
|
433
443
|
});
|
434
444
|
await poller.poll();
|
@@ -627,7 +637,6 @@ const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = {
|
|
627
637
|
bodyMapper: Mappers.ErrorDetails
|
628
638
|
}
|
629
639
|
},
|
630
|
-
queryParameters: [Parameters.apiVersion],
|
631
640
|
urlParameters: [
|
632
641
|
Parameters.$host,
|
633
642
|
Parameters.subscriptionId,
|
@@ -143,7 +143,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
143
143
|
bodyMapper: Mappers.ErrorDetails
|
144
144
|
}
|
145
145
|
},
|
146
|
-
queryParameters: [Parameters.apiVersion],
|
147
146
|
urlParameters: [Parameters.$host, Parameters.nextLink],
|
148
147
|
headerParameters: [Parameters.accept],
|
149
148
|
serializer
|
@@ -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 {
|
16
|
-
|
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
|
PrivateEndpointConnectionsListByServiceOptionalParams,
|
@@ -164,8 +168,8 @@ export class PrivateEndpointConnectionsImpl
|
|
164
168
|
properties: PrivateEndpointConnection,
|
165
169
|
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
|
166
170
|
): Promise<
|
167
|
-
|
168
|
-
|
171
|
+
SimplePollerLike<
|
172
|
+
OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,
|
169
173
|
PrivateEndpointConnectionsCreateOrUpdateResponse
|
170
174
|
>
|
171
175
|
> {
|
@@ -175,7 +179,7 @@ export class PrivateEndpointConnectionsImpl
|
|
175
179
|
): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {
|
176
180
|
return this.client.sendOperationRequest(args, spec);
|
177
181
|
};
|
178
|
-
const
|
182
|
+
const sendOperationFn = async (
|
179
183
|
args: coreClient.OperationArguments,
|
180
184
|
spec: coreClient.OperationSpec
|
181
185
|
) => {
|
@@ -208,19 +212,22 @@ export class PrivateEndpointConnectionsImpl
|
|
208
212
|
};
|
209
213
|
};
|
210
214
|
|
211
|
-
const lro =
|
212
|
-
|
213
|
-
{
|
215
|
+
const lro = createLroSpec({
|
216
|
+
sendOperationFn,
|
217
|
+
args: {
|
214
218
|
resourceGroupName,
|
215
219
|
resourceName,
|
216
220
|
privateEndpointConnectionName,
|
217
221
|
properties,
|
218
222
|
options
|
219
223
|
},
|
220
|
-
createOrUpdateOperationSpec
|
221
|
-
);
|
222
|
-
const poller =
|
223
|
-
|
224
|
+
spec: createOrUpdateOperationSpec
|
225
|
+
});
|
226
|
+
const poller = await createHttpPoller<
|
227
|
+
PrivateEndpointConnectionsCreateOrUpdateResponse,
|
228
|
+
OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>
|
229
|
+
>(lro, {
|
230
|
+
restoreFrom: options?.resumeFrom,
|
224
231
|
intervalInMs: options?.updateIntervalInMs
|
225
232
|
});
|
226
233
|
await poller.poll();
|
@@ -266,14 +273,14 @@ export class PrivateEndpointConnectionsImpl
|
|
266
273
|
resourceName: string,
|
267
274
|
privateEndpointConnectionName: string,
|
268
275
|
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
269
|
-
): Promise<
|
276
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
270
277
|
const directSendOperation = async (
|
271
278
|
args: coreClient.OperationArguments,
|
272
279
|
spec: coreClient.OperationSpec
|
273
280
|
): Promise<void> => {
|
274
281
|
return this.client.sendOperationRequest(args, spec);
|
275
282
|
};
|
276
|
-
const
|
283
|
+
const sendOperationFn = async (
|
277
284
|
args: coreClient.OperationArguments,
|
278
285
|
spec: coreClient.OperationSpec
|
279
286
|
) => {
|
@@ -306,18 +313,18 @@ export class PrivateEndpointConnectionsImpl
|
|
306
313
|
};
|
307
314
|
};
|
308
315
|
|
309
|
-
const lro =
|
310
|
-
|
311
|
-
{
|
316
|
+
const lro = createLroSpec({
|
317
|
+
sendOperationFn,
|
318
|
+
args: {
|
312
319
|
resourceGroupName,
|
313
320
|
resourceName,
|
314
321
|
privateEndpointConnectionName,
|
315
322
|
options
|
316
323
|
},
|
317
|
-
deleteOperationSpec
|
318
|
-
);
|
319
|
-
const poller =
|
320
|
-
|
324
|
+
spec: deleteOperationSpec
|
325
|
+
});
|
326
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
327
|
+
restoreFrom: options?.resumeFrom,
|
321
328
|
intervalInMs: options?.updateIntervalInMs
|
322
329
|
});
|
323
330
|
await poller.poll();
|