@azure/arm-healthcareapis 3.0.1-alpha.20240423.1 → 3.1.0-alpha.20240425.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -10
- package/LICENSE +1 -1
- package/dist/index.js +1345 -1235
- 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 +10 -3
- package/dist-esm/samples-dev/dicomServicesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/dicomServicesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/dicomServicesGetSample.js +1 -1
- package/dist-esm/samples-dev/dicomServicesListByWorkspaceSample.js +1 -1
- package/dist-esm/samples-dev/dicomServicesUpdateSample.js +3 -3
- package/dist-esm/samples-dev/dicomServicesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/fhirDestinationsListByIotConnectorSample.js +1 -1
- package/dist-esm/samples-dev/fhirServicesCreateOrUpdateSample.js +23 -11
- package/dist-esm/samples-dev/fhirServicesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/fhirServicesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/fhirServicesGetSample.js +1 -1
- package/dist-esm/samples-dev/fhirServicesListByWorkspaceSample.js +1 -1
- package/dist-esm/samples-dev/fhirServicesUpdateSample.js +3 -3
- package/dist-esm/samples-dev/fhirServicesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/iotConnectorFhirDestinationCreateOrUpdateSample.js +11 -11
- package/dist-esm/samples-dev/iotConnectorFhirDestinationCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/iotConnectorFhirDestinationDeleteSample.js +1 -1
- package/dist-esm/samples-dev/iotConnectorFhirDestinationGetSample.js +1 -1
- package/dist-esm/samples-dev/iotConnectorsCreateOrUpdateSample.js +12 -12
- package/dist-esm/samples-dev/iotConnectorsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/iotConnectorsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/iotConnectorsGetSample.js +1 -1
- package/dist-esm/samples-dev/iotConnectorsListByWorkspaceSample.js +1 -1
- package/dist-esm/samples-dev/iotConnectorsUpdateSample.js +4 -4
- package/dist-esm/samples-dev/iotConnectorsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByServiceSample.js +1 -1
- package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js +3 -3
- package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +18 -18
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/servicesGetSample.js +2 -2
- package/dist-esm/samples-dev/servicesListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/servicesListSample.js +1 -1
- package/dist-esm/samples-dev/servicesUpdateSample.js +3 -3
- package/dist-esm/samples-dev/servicesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/workspacePrivateEndpointConnectionsListByWorkspaceSample.js +1 -1
- package/dist-esm/samples-dev/workspacePrivateLinkResourcesGetSample.js +1 -1
- package/dist-esm/samples-dev/workspacePrivateLinkResourcesListByWorkspaceSample.js +1 -1
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/workspacesGetSample.js +1 -1
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/workspacesUpdateSample.js +3 -3
- package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -1
- package/dist-esm/src/healthcareApisManagementClient.js +11 -10
- package/dist-esm/src/healthcareApisManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +42 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +6 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +3 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +833 -733
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +75 -75
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/dicomServices.d.ts.map +1 -1
- package/dist-esm/src/operations/dicomServices.js +51 -51
- package/dist-esm/src/operations/dicomServices.js.map +1 -1
- package/dist-esm/src/operations/fhirDestinations.js +11 -11
- package/dist-esm/src/operations/fhirDestinations.js.map +1 -1
- package/dist-esm/src/operations/fhirServices.d.ts.map +1 -1
- package/dist-esm/src/operations/fhirServices.js +51 -51
- package/dist-esm/src/operations/fhirServices.js.map +1 -1
- package/dist-esm/src/operations/iotConnectorFhirDestination.d.ts.map +1 -1
- package/dist-esm/src/operations/iotConnectorFhirDestination.js +29 -29
- package/dist-esm/src/operations/iotConnectorFhirDestination.js.map +1 -1
- package/dist-esm/src/operations/iotConnectors.d.ts.map +1 -1
- package/dist-esm/src/operations/iotConnectors.js +51 -51
- package/dist-esm/src/operations/iotConnectors.js.map +1 -1
- package/dist-esm/src/operations/operationResults.js +5 -5
- package/dist-esm/src/operations/operationResults.js.map +1 -1
- package/dist-esm/src/operations/operations.js +9 -9
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +35 -35
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +10 -10
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/services.d.ts.map +1 -1
- package/dist-esm/src/operations/services.js +64 -64
- package/dist-esm/src/operations/services.js.map +1 -1
- package/dist-esm/src/operations/workspacePrivateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/workspacePrivateEndpointConnections.js +35 -35
- package/dist-esm/src/operations/workspacePrivateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/workspacePrivateLinkResources.d.ts.map +1 -1
- package/dist-esm/src/operations/workspacePrivateLinkResources.js +11 -11
- package/dist-esm/src/operations/workspacePrivateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
- package/dist-esm/src/operations/workspaces.js +60 -60
- package/dist-esm/src/operations/workspaces.js.map +1 -1
- package/dist-esm/test/healthcareapis_operations_test.spec.js +1 -1
- package/dist-esm/test/healthcareapis_operations_test.spec.js.map +1 -1
- package/package.json +3 -4
- package/review/arm-healthcareapis.api.md +30 -0
- package/src/healthcareApisManagementClient.ts +22 -22
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +88 -27
- package/src/models/mappers.ts +973 -860
- package/src/models/parameters.ts +76 -76
- package/src/operations/dicomServices.ts +101 -109
- package/src/operations/fhirDestinations.ts +25 -26
- package/src/operations/fhirServices.ts +101 -109
- package/src/operations/iotConnectorFhirDestination.ts +57 -61
- package/src/operations/iotConnectors.ts +101 -109
- package/src/operations/operationResults.ts +9 -10
- package/src/operations/operations.ts +16 -16
- package/src/operations/privateEndpointConnections.ts +73 -78
- package/src/operations/privateLinkResources.ts +17 -19
- package/src/operations/services.ts +122 -132
- package/src/operations/workspacePrivateEndpointConnections.ts +73 -78
- package/src/operations/workspacePrivateLinkResources.ts +27 -28
- package/src/operations/workspaces.ts +116 -125
- package/src/operationsInterfaces/dicomServices.ts +9 -9
- package/src/operationsInterfaces/fhirDestinations.ts +2 -2
- package/src/operationsInterfaces/fhirServices.ts +9 -9
- package/src/operationsInterfaces/iotConnectorFhirDestination.ts +6 -6
- package/src/operationsInterfaces/iotConnectors.ts +9 -9
- package/src/operationsInterfaces/operationResults.ts +2 -2
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/privateEndpointConnections.ts +7 -7
- package/src/operationsInterfaces/privateLinkResources.ts +3 -3
- package/src/operationsInterfaces/services.ts +11 -11
- package/src/operationsInterfaces/workspacePrivateEndpointConnections.ts +7 -7
- package/src/operationsInterfaces/workspacePrivateLinkResources.ts +3 -3
- package/src/operationsInterfaces/workspaces.ts +10 -10
- package/src/pagingHelper.ts +1 -1
- package/types/arm-healthcareapis.d.ts +47 -0
@@ -16,7 +16,7 @@ import { HealthcareApisManagementClient } from "../healthcareApisManagementClien
|
|
16
16
|
import {
|
17
17
|
SimplePollerLike,
|
18
18
|
OperationState,
|
19
|
-
createHttpPoller
|
19
|
+
createHttpPoller,
|
20
20
|
} from "@azure/core-lro";
|
21
21
|
import { createLroSpec } from "../lroImpl";
|
22
22
|
import {
|
@@ -32,7 +32,7 @@ import {
|
|
32
32
|
DicomServicesUpdateOptionalParams,
|
33
33
|
DicomServicesUpdateResponse,
|
34
34
|
DicomServicesDeleteOptionalParams,
|
35
|
-
DicomServicesListByWorkspaceNextResponse
|
35
|
+
DicomServicesListByWorkspaceNextResponse,
|
36
36
|
} from "../models";
|
37
37
|
|
38
38
|
/// <reference lib="esnext.asynciterable" />
|
@@ -57,12 +57,12 @@ export class DicomServicesImpl implements DicomServices {
|
|
57
57
|
public listByWorkspace(
|
58
58
|
resourceGroupName: string,
|
59
59
|
workspaceName: string,
|
60
|
-
options?: DicomServicesListByWorkspaceOptionalParams
|
60
|
+
options?: DicomServicesListByWorkspaceOptionalParams,
|
61
61
|
): PagedAsyncIterableIterator<DicomService> {
|
62
62
|
const iter = this.listByWorkspacePagingAll(
|
63
63
|
resourceGroupName,
|
64
64
|
workspaceName,
|
65
|
-
options
|
65
|
+
options,
|
66
66
|
);
|
67
67
|
return {
|
68
68
|
next() {
|
@@ -79,9 +79,9 @@ export class DicomServicesImpl implements DicomServices {
|
|
79
79
|
resourceGroupName,
|
80
80
|
workspaceName,
|
81
81
|
options,
|
82
|
-
settings
|
82
|
+
settings,
|
83
83
|
);
|
84
|
-
}
|
84
|
+
},
|
85
85
|
};
|
86
86
|
}
|
87
87
|
|
@@ -89,7 +89,7 @@ export class DicomServicesImpl implements DicomServices {
|
|
89
89
|
resourceGroupName: string,
|
90
90
|
workspaceName: string,
|
91
91
|
options?: DicomServicesListByWorkspaceOptionalParams,
|
92
|
-
settings?: PageSettings
|
92
|
+
settings?: PageSettings,
|
93
93
|
): AsyncIterableIterator<DicomService[]> {
|
94
94
|
let result: DicomServicesListByWorkspaceResponse;
|
95
95
|
let continuationToken = settings?.continuationToken;
|
@@ -97,7 +97,7 @@ export class DicomServicesImpl implements DicomServices {
|
|
97
97
|
result = await this._listByWorkspace(
|
98
98
|
resourceGroupName,
|
99
99
|
workspaceName,
|
100
|
-
options
|
100
|
+
options,
|
101
101
|
);
|
102
102
|
let page = result.value || [];
|
103
103
|
continuationToken = result.nextLink;
|
@@ -109,7 +109,7 @@ export class DicomServicesImpl implements DicomServices {
|
|
109
109
|
resourceGroupName,
|
110
110
|
workspaceName,
|
111
111
|
continuationToken,
|
112
|
-
options
|
112
|
+
options,
|
113
113
|
);
|
114
114
|
continuationToken = result.nextLink;
|
115
115
|
let page = result.value || [];
|
@@ -121,12 +121,12 @@ export class DicomServicesImpl implements DicomServices {
|
|
121
121
|
private async *listByWorkspacePagingAll(
|
122
122
|
resourceGroupName: string,
|
123
123
|
workspaceName: string,
|
124
|
-
options?: DicomServicesListByWorkspaceOptionalParams
|
124
|
+
options?: DicomServicesListByWorkspaceOptionalParams,
|
125
125
|
): AsyncIterableIterator<DicomService> {
|
126
126
|
for await (const page of this.listByWorkspacePagingPage(
|
127
127
|
resourceGroupName,
|
128
128
|
workspaceName,
|
129
|
-
options
|
129
|
+
options,
|
130
130
|
)) {
|
131
131
|
yield* page;
|
132
132
|
}
|
@@ -141,11 +141,11 @@ export class DicomServicesImpl implements DicomServices {
|
|
141
141
|
private _listByWorkspace(
|
142
142
|
resourceGroupName: string,
|
143
143
|
workspaceName: string,
|
144
|
-
options?: DicomServicesListByWorkspaceOptionalParams
|
144
|
+
options?: DicomServicesListByWorkspaceOptionalParams,
|
145
145
|
): Promise<DicomServicesListByWorkspaceResponse> {
|
146
146
|
return this.client.sendOperationRequest(
|
147
147
|
{ resourceGroupName, workspaceName, options },
|
148
|
-
listByWorkspaceOperationSpec
|
148
|
+
listByWorkspaceOperationSpec,
|
149
149
|
);
|
150
150
|
}
|
151
151
|
|
@@ -160,11 +160,11 @@ export class DicomServicesImpl implements DicomServices {
|
|
160
160
|
resourceGroupName: string,
|
161
161
|
workspaceName: string,
|
162
162
|
dicomServiceName: string,
|
163
|
-
options?: DicomServicesGetOptionalParams
|
163
|
+
options?: DicomServicesGetOptionalParams,
|
164
164
|
): Promise<DicomServicesGetResponse> {
|
165
165
|
return this.client.sendOperationRequest(
|
166
166
|
{ resourceGroupName, workspaceName, dicomServiceName, options },
|
167
|
-
getOperationSpec
|
167
|
+
getOperationSpec,
|
168
168
|
);
|
169
169
|
}
|
170
170
|
|
@@ -181,7 +181,7 @@ export class DicomServicesImpl implements DicomServices {
|
|
181
181
|
workspaceName: string,
|
182
182
|
dicomServiceName: string,
|
183
183
|
dicomservice: DicomService,
|
184
|
-
options?: DicomServicesCreateOrUpdateOptionalParams
|
184
|
+
options?: DicomServicesCreateOrUpdateOptionalParams,
|
185
185
|
): Promise<
|
186
186
|
SimplePollerLike<
|
187
187
|
OperationState<DicomServicesCreateOrUpdateResponse>,
|
@@ -190,21 +190,20 @@ export class DicomServicesImpl implements DicomServices {
|
|
190
190
|
> {
|
191
191
|
const directSendOperation = async (
|
192
192
|
args: coreClient.OperationArguments,
|
193
|
-
spec: coreClient.OperationSpec
|
193
|
+
spec: coreClient.OperationSpec,
|
194
194
|
): Promise<DicomServicesCreateOrUpdateResponse> => {
|
195
195
|
return this.client.sendOperationRequest(args, spec);
|
196
196
|
};
|
197
197
|
const sendOperationFn = async (
|
198
198
|
args: coreClient.OperationArguments,
|
199
|
-
spec: coreClient.OperationSpec
|
199
|
+
spec: coreClient.OperationSpec,
|
200
200
|
) => {
|
201
|
-
let currentRawResponse:
|
202
|
-
|
203
|
-
| undefined = undefined;
|
201
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
202
|
+
undefined;
|
204
203
|
const providedCallback = args.options?.onResponse;
|
205
204
|
const callback: coreClient.RawResponseCallback = (
|
206
205
|
rawResponse: coreClient.FullOperationResponse,
|
207
|
-
flatResponse: unknown
|
206
|
+
flatResponse: unknown,
|
208
207
|
) => {
|
209
208
|
currentRawResponse = rawResponse;
|
210
209
|
providedCallback?.(rawResponse, flatResponse);
|
@@ -213,8 +212,8 @@ export class DicomServicesImpl implements DicomServices {
|
|
213
212
|
...args,
|
214
213
|
options: {
|
215
214
|
...args.options,
|
216
|
-
onResponse: callback
|
217
|
-
}
|
215
|
+
onResponse: callback,
|
216
|
+
},
|
218
217
|
};
|
219
218
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
220
219
|
return {
|
@@ -222,8 +221,8 @@ export class DicomServicesImpl implements DicomServices {
|
|
222
221
|
rawResponse: {
|
223
222
|
statusCode: currentRawResponse!.status,
|
224
223
|
body: currentRawResponse!.parsedBody,
|
225
|
-
headers: currentRawResponse!.headers.toJSON()
|
226
|
-
}
|
224
|
+
headers: currentRawResponse!.headers.toJSON(),
|
225
|
+
},
|
227
226
|
};
|
228
227
|
};
|
229
228
|
|
@@ -234,16 +233,16 @@ export class DicomServicesImpl implements DicomServices {
|
|
234
233
|
workspaceName,
|
235
234
|
dicomServiceName,
|
236
235
|
dicomservice,
|
237
|
-
options
|
236
|
+
options,
|
238
237
|
},
|
239
|
-
spec: createOrUpdateOperationSpec
|
238
|
+
spec: createOrUpdateOperationSpec,
|
240
239
|
});
|
241
240
|
const poller = await createHttpPoller<
|
242
241
|
DicomServicesCreateOrUpdateResponse,
|
243
242
|
OperationState<DicomServicesCreateOrUpdateResponse>
|
244
243
|
>(lro, {
|
245
244
|
restoreFrom: options?.resumeFrom,
|
246
|
-
intervalInMs: options?.updateIntervalInMs
|
245
|
+
intervalInMs: options?.updateIntervalInMs,
|
247
246
|
});
|
248
247
|
await poller.poll();
|
249
248
|
return poller;
|
@@ -262,14 +261,14 @@ export class DicomServicesImpl implements DicomServices {
|
|
262
261
|
workspaceName: string,
|
263
262
|
dicomServiceName: string,
|
264
263
|
dicomservice: DicomService,
|
265
|
-
options?: DicomServicesCreateOrUpdateOptionalParams
|
264
|
+
options?: DicomServicesCreateOrUpdateOptionalParams,
|
266
265
|
): Promise<DicomServicesCreateOrUpdateResponse> {
|
267
266
|
const poller = await this.beginCreateOrUpdate(
|
268
267
|
resourceGroupName,
|
269
268
|
workspaceName,
|
270
269
|
dicomServiceName,
|
271
270
|
dicomservice,
|
272
|
-
options
|
271
|
+
options,
|
273
272
|
);
|
274
273
|
return poller.pollUntilDone();
|
275
274
|
}
|
@@ -287,7 +286,7 @@ export class DicomServicesImpl implements DicomServices {
|
|
287
286
|
dicomServiceName: string,
|
288
287
|
workspaceName: string,
|
289
288
|
dicomservicePatchResource: DicomServicePatchResource,
|
290
|
-
options?: DicomServicesUpdateOptionalParams
|
289
|
+
options?: DicomServicesUpdateOptionalParams,
|
291
290
|
): Promise<
|
292
291
|
SimplePollerLike<
|
293
292
|
OperationState<DicomServicesUpdateResponse>,
|
@@ -296,21 +295,20 @@ export class DicomServicesImpl implements DicomServices {
|
|
296
295
|
> {
|
297
296
|
const directSendOperation = async (
|
298
297
|
args: coreClient.OperationArguments,
|
299
|
-
spec: coreClient.OperationSpec
|
298
|
+
spec: coreClient.OperationSpec,
|
300
299
|
): Promise<DicomServicesUpdateResponse> => {
|
301
300
|
return this.client.sendOperationRequest(args, spec);
|
302
301
|
};
|
303
302
|
const sendOperationFn = async (
|
304
303
|
args: coreClient.OperationArguments,
|
305
|
-
spec: coreClient.OperationSpec
|
304
|
+
spec: coreClient.OperationSpec,
|
306
305
|
) => {
|
307
|
-
let currentRawResponse:
|
308
|
-
|
309
|
-
| undefined = undefined;
|
306
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
307
|
+
undefined;
|
310
308
|
const providedCallback = args.options?.onResponse;
|
311
309
|
const callback: coreClient.RawResponseCallback = (
|
312
310
|
rawResponse: coreClient.FullOperationResponse,
|
313
|
-
flatResponse: unknown
|
311
|
+
flatResponse: unknown,
|
314
312
|
) => {
|
315
313
|
currentRawResponse = rawResponse;
|
316
314
|
providedCallback?.(rawResponse, flatResponse);
|
@@ -319,8 +317,8 @@ export class DicomServicesImpl implements DicomServices {
|
|
319
317
|
...args,
|
320
318
|
options: {
|
321
319
|
...args.options,
|
322
|
-
onResponse: callback
|
323
|
-
}
|
320
|
+
onResponse: callback,
|
321
|
+
},
|
324
322
|
};
|
325
323
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
326
324
|
return {
|
@@ -328,8 +326,8 @@ export class DicomServicesImpl implements DicomServices {
|
|
328
326
|
rawResponse: {
|
329
327
|
statusCode: currentRawResponse!.status,
|
330
328
|
body: currentRawResponse!.parsedBody,
|
331
|
-
headers: currentRawResponse!.headers.toJSON()
|
332
|
-
}
|
329
|
+
headers: currentRawResponse!.headers.toJSON(),
|
330
|
+
},
|
333
331
|
};
|
334
332
|
};
|
335
333
|
|
@@ -340,16 +338,16 @@ export class DicomServicesImpl implements DicomServices {
|
|
340
338
|
dicomServiceName,
|
341
339
|
workspaceName,
|
342
340
|
dicomservicePatchResource,
|
343
|
-
options
|
341
|
+
options,
|
344
342
|
},
|
345
|
-
spec: updateOperationSpec
|
343
|
+
spec: updateOperationSpec,
|
346
344
|
});
|
347
345
|
const poller = await createHttpPoller<
|
348
346
|
DicomServicesUpdateResponse,
|
349
347
|
OperationState<DicomServicesUpdateResponse>
|
350
348
|
>(lro, {
|
351
349
|
restoreFrom: options?.resumeFrom,
|
352
|
-
intervalInMs: options?.updateIntervalInMs
|
350
|
+
intervalInMs: options?.updateIntervalInMs,
|
353
351
|
});
|
354
352
|
await poller.poll();
|
355
353
|
return poller;
|
@@ -368,14 +366,14 @@ export class DicomServicesImpl implements DicomServices {
|
|
368
366
|
dicomServiceName: string,
|
369
367
|
workspaceName: string,
|
370
368
|
dicomservicePatchResource: DicomServicePatchResource,
|
371
|
-
options?: DicomServicesUpdateOptionalParams
|
369
|
+
options?: DicomServicesUpdateOptionalParams,
|
372
370
|
): Promise<DicomServicesUpdateResponse> {
|
373
371
|
const poller = await this.beginUpdate(
|
374
372
|
resourceGroupName,
|
375
373
|
dicomServiceName,
|
376
374
|
workspaceName,
|
377
375
|
dicomservicePatchResource,
|
378
|
-
options
|
376
|
+
options,
|
379
377
|
);
|
380
378
|
return poller.pollUntilDone();
|
381
379
|
}
|
@@ -391,25 +389,24 @@ export class DicomServicesImpl implements DicomServices {
|
|
391
389
|
resourceGroupName: string,
|
392
390
|
dicomServiceName: string,
|
393
391
|
workspaceName: string,
|
394
|
-
options?: DicomServicesDeleteOptionalParams
|
392
|
+
options?: DicomServicesDeleteOptionalParams,
|
395
393
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
396
394
|
const directSendOperation = async (
|
397
395
|
args: coreClient.OperationArguments,
|
398
|
-
spec: coreClient.OperationSpec
|
396
|
+
spec: coreClient.OperationSpec,
|
399
397
|
): Promise<void> => {
|
400
398
|
return this.client.sendOperationRequest(args, spec);
|
401
399
|
};
|
402
400
|
const sendOperationFn = async (
|
403
401
|
args: coreClient.OperationArguments,
|
404
|
-
spec: coreClient.OperationSpec
|
402
|
+
spec: coreClient.OperationSpec,
|
405
403
|
) => {
|
406
|
-
let currentRawResponse:
|
407
|
-
|
408
|
-
| undefined = undefined;
|
404
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
405
|
+
undefined;
|
409
406
|
const providedCallback = args.options?.onResponse;
|
410
407
|
const callback: coreClient.RawResponseCallback = (
|
411
408
|
rawResponse: coreClient.FullOperationResponse,
|
412
|
-
flatResponse: unknown
|
409
|
+
flatResponse: unknown,
|
413
410
|
) => {
|
414
411
|
currentRawResponse = rawResponse;
|
415
412
|
providedCallback?.(rawResponse, flatResponse);
|
@@ -418,8 +415,8 @@ export class DicomServicesImpl implements DicomServices {
|
|
418
415
|
...args,
|
419
416
|
options: {
|
420
417
|
...args.options,
|
421
|
-
onResponse: callback
|
422
|
-
}
|
418
|
+
onResponse: callback,
|
419
|
+
},
|
423
420
|
};
|
424
421
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
425
422
|
return {
|
@@ -427,19 +424,19 @@ export class DicomServicesImpl implements DicomServices {
|
|
427
424
|
rawResponse: {
|
428
425
|
statusCode: currentRawResponse!.status,
|
429
426
|
body: currentRawResponse!.parsedBody,
|
430
|
-
headers: currentRawResponse!.headers.toJSON()
|
431
|
-
}
|
427
|
+
headers: currentRawResponse!.headers.toJSON(),
|
428
|
+
},
|
432
429
|
};
|
433
430
|
};
|
434
431
|
|
435
432
|
const lro = createLroSpec({
|
436
433
|
sendOperationFn,
|
437
434
|
args: { resourceGroupName, dicomServiceName, workspaceName, options },
|
438
|
-
spec: deleteOperationSpec
|
435
|
+
spec: deleteOperationSpec,
|
439
436
|
});
|
440
437
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
441
438
|
restoreFrom: options?.resumeFrom,
|
442
|
-
intervalInMs: options?.updateIntervalInMs
|
439
|
+
intervalInMs: options?.updateIntervalInMs,
|
443
440
|
});
|
444
441
|
await poller.poll();
|
445
442
|
return poller;
|
@@ -456,13 +453,13 @@ export class DicomServicesImpl implements DicomServices {
|
|
456
453
|
resourceGroupName: string,
|
457
454
|
dicomServiceName: string,
|
458
455
|
workspaceName: string,
|
459
|
-
options?: DicomServicesDeleteOptionalParams
|
456
|
+
options?: DicomServicesDeleteOptionalParams,
|
460
457
|
): Promise<void> {
|
461
458
|
const poller = await this.beginDelete(
|
462
459
|
resourceGroupName,
|
463
460
|
dicomServiceName,
|
464
461
|
workspaceName,
|
465
|
-
options
|
462
|
+
options,
|
466
463
|
);
|
467
464
|
return poller.pollUntilDone();
|
468
465
|
}
|
@@ -478,11 +475,11 @@ export class DicomServicesImpl implements DicomServices {
|
|
478
475
|
resourceGroupName: string,
|
479
476
|
workspaceName: string,
|
480
477
|
nextLink: string,
|
481
|
-
options?: DicomServicesListByWorkspaceNextOptionalParams
|
478
|
+
options?: DicomServicesListByWorkspaceNextOptionalParams,
|
482
479
|
): Promise<DicomServicesListByWorkspaceNextResponse> {
|
483
480
|
return this.client.sendOperationRequest(
|
484
481
|
{ resourceGroupName, workspaceName, nextLink, options },
|
485
|
-
listByWorkspaceNextOperationSpec
|
482
|
+
listByWorkspaceNextOperationSpec,
|
486
483
|
);
|
487
484
|
}
|
488
485
|
}
|
@@ -490,38 +487,36 @@ export class DicomServicesImpl implements DicomServices {
|
|
490
487
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
491
488
|
|
492
489
|
const listByWorkspaceOperationSpec: coreClient.OperationSpec = {
|
493
|
-
path:
|
494
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices",
|
490
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices",
|
495
491
|
httpMethod: "GET",
|
496
492
|
responses: {
|
497
493
|
200: {
|
498
|
-
bodyMapper: Mappers.DicomServiceCollection
|
494
|
+
bodyMapper: Mappers.DicomServiceCollection,
|
499
495
|
},
|
500
496
|
default: {
|
501
|
-
bodyMapper: Mappers.ErrorDetails
|
502
|
-
}
|
497
|
+
bodyMapper: Mappers.ErrorDetails,
|
498
|
+
},
|
503
499
|
},
|
504
500
|
queryParameters: [Parameters.apiVersion],
|
505
501
|
urlParameters: [
|
506
502
|
Parameters.$host,
|
507
503
|
Parameters.subscriptionId,
|
508
504
|
Parameters.resourceGroupName,
|
509
|
-
Parameters.workspaceName
|
505
|
+
Parameters.workspaceName,
|
510
506
|
],
|
511
507
|
headerParameters: [Parameters.accept],
|
512
|
-
serializer
|
508
|
+
serializer,
|
513
509
|
};
|
514
510
|
const getOperationSpec: coreClient.OperationSpec = {
|
515
|
-
path:
|
516
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",
|
511
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",
|
517
512
|
httpMethod: "GET",
|
518
513
|
responses: {
|
519
514
|
200: {
|
520
|
-
bodyMapper: Mappers.DicomService
|
515
|
+
bodyMapper: Mappers.DicomService,
|
521
516
|
},
|
522
517
|
default: {
|
523
|
-
bodyMapper: Mappers.ErrorDetails
|
524
|
-
}
|
518
|
+
bodyMapper: Mappers.ErrorDetails,
|
519
|
+
},
|
525
520
|
},
|
526
521
|
queryParameters: [Parameters.apiVersion],
|
527
522
|
urlParameters: [
|
@@ -529,31 +524,30 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
529
524
|
Parameters.subscriptionId,
|
530
525
|
Parameters.resourceGroupName,
|
531
526
|
Parameters.workspaceName,
|
532
|
-
Parameters.dicomServiceName
|
527
|
+
Parameters.dicomServiceName,
|
533
528
|
],
|
534
529
|
headerParameters: [Parameters.accept],
|
535
|
-
serializer
|
530
|
+
serializer,
|
536
531
|
};
|
537
532
|
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
538
|
-
path:
|
539
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",
|
533
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",
|
540
534
|
httpMethod: "PUT",
|
541
535
|
responses: {
|
542
536
|
200: {
|
543
|
-
bodyMapper: Mappers.DicomService
|
537
|
+
bodyMapper: Mappers.DicomService,
|
544
538
|
},
|
545
539
|
201: {
|
546
|
-
bodyMapper: Mappers.DicomService
|
540
|
+
bodyMapper: Mappers.DicomService,
|
547
541
|
},
|
548
542
|
202: {
|
549
|
-
bodyMapper: Mappers.DicomService
|
543
|
+
bodyMapper: Mappers.DicomService,
|
550
544
|
},
|
551
545
|
204: {
|
552
|
-
bodyMapper: Mappers.DicomService
|
546
|
+
bodyMapper: Mappers.DicomService,
|
553
547
|
},
|
554
548
|
default: {
|
555
|
-
bodyMapper: Mappers.ErrorDetails
|
556
|
-
}
|
549
|
+
bodyMapper: Mappers.ErrorDetails,
|
550
|
+
},
|
557
551
|
},
|
558
552
|
requestBody: Parameters.dicomservice,
|
559
553
|
queryParameters: [Parameters.apiVersion],
|
@@ -562,32 +556,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
562
556
|
Parameters.subscriptionId,
|
563
557
|
Parameters.resourceGroupName,
|
564
558
|
Parameters.workspaceName,
|
565
|
-
Parameters.dicomServiceName
|
559
|
+
Parameters.dicomServiceName,
|
566
560
|
],
|
567
561
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
568
562
|
mediaType: "json",
|
569
|
-
serializer
|
563
|
+
serializer,
|
570
564
|
};
|
571
565
|
const updateOperationSpec: coreClient.OperationSpec = {
|
572
|
-
path:
|
573
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",
|
566
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",
|
574
567
|
httpMethod: "PATCH",
|
575
568
|
responses: {
|
576
569
|
200: {
|
577
|
-
bodyMapper: Mappers.DicomService
|
570
|
+
bodyMapper: Mappers.DicomService,
|
578
571
|
},
|
579
572
|
201: {
|
580
|
-
bodyMapper: Mappers.DicomService
|
573
|
+
bodyMapper: Mappers.DicomService,
|
581
574
|
},
|
582
575
|
202: {
|
583
|
-
bodyMapper: Mappers.DicomService
|
576
|
+
bodyMapper: Mappers.DicomService,
|
584
577
|
},
|
585
578
|
204: {
|
586
|
-
bodyMapper: Mappers.DicomService
|
579
|
+
bodyMapper: Mappers.DicomService,
|
587
580
|
},
|
588
581
|
default: {
|
589
|
-
bodyMapper: Mappers.ErrorDetails
|
590
|
-
}
|
582
|
+
bodyMapper: Mappers.ErrorDetails,
|
583
|
+
},
|
591
584
|
},
|
592
585
|
requestBody: Parameters.dicomservicePatchResource,
|
593
586
|
queryParameters: [Parameters.apiVersion],
|
@@ -596,15 +589,14 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
596
589
|
Parameters.subscriptionId,
|
597
590
|
Parameters.resourceGroupName,
|
598
591
|
Parameters.workspaceName,
|
599
|
-
Parameters.dicomServiceName
|
592
|
+
Parameters.dicomServiceName,
|
600
593
|
],
|
601
594
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
602
595
|
mediaType: "json",
|
603
|
-
serializer
|
596
|
+
serializer,
|
604
597
|
};
|
605
598
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
606
|
-
path:
|
607
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",
|
599
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}",
|
608
600
|
httpMethod: "DELETE",
|
609
601
|
responses: {
|
610
602
|
200: {},
|
@@ -612,8 +604,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
612
604
|
202: {},
|
613
605
|
204: {},
|
614
606
|
default: {
|
615
|
-
bodyMapper: Mappers.ErrorModel
|
616
|
-
}
|
607
|
+
bodyMapper: Mappers.ErrorModel,
|
608
|
+
},
|
617
609
|
},
|
618
610
|
queryParameters: [Parameters.apiVersion],
|
619
611
|
urlParameters: [
|
@@ -621,29 +613,29 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
621
613
|
Parameters.subscriptionId,
|
622
614
|
Parameters.resourceGroupName,
|
623
615
|
Parameters.workspaceName,
|
624
|
-
Parameters.dicomServiceName
|
616
|
+
Parameters.dicomServiceName,
|
625
617
|
],
|
626
618
|
headerParameters: [Parameters.accept],
|
627
|
-
serializer
|
619
|
+
serializer,
|
628
620
|
};
|
629
621
|
const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = {
|
630
622
|
path: "{nextLink}",
|
631
623
|
httpMethod: "GET",
|
632
624
|
responses: {
|
633
625
|
200: {
|
634
|
-
bodyMapper: Mappers.DicomServiceCollection
|
626
|
+
bodyMapper: Mappers.DicomServiceCollection,
|
635
627
|
},
|
636
628
|
default: {
|
637
|
-
bodyMapper: Mappers.ErrorDetails
|
638
|
-
}
|
629
|
+
bodyMapper: Mappers.ErrorDetails,
|
630
|
+
},
|
639
631
|
},
|
640
632
|
urlParameters: [
|
641
633
|
Parameters.$host,
|
642
634
|
Parameters.subscriptionId,
|
643
635
|
Parameters.resourceGroupName,
|
644
636
|
Parameters.nextLink,
|
645
|
-
Parameters.workspaceName
|
637
|
+
Parameters.workspaceName,
|
646
638
|
],
|
647
639
|
headerParameters: [Parameters.accept],
|
648
|
-
serializer
|
640
|
+
serializer,
|
649
641
|
};
|