@azure/arm-healthcareapis 3.0.1-alpha.20240424.1 → 3.1.0
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 +5 -6
- 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 {
|
@@ -36,7 +36,7 @@ import {
|
|
36
36
|
WorkspacesUpdateResponse,
|
37
37
|
WorkspacesDeleteOptionalParams,
|
38
38
|
WorkspacesListBySubscriptionNextResponse,
|
39
|
-
WorkspacesListByResourceGroupNextResponse
|
39
|
+
WorkspacesListByResourceGroupNextResponse,
|
40
40
|
} from "../models";
|
41
41
|
|
42
42
|
/// <reference lib="esnext.asynciterable" />
|
@@ -57,7 +57,7 @@ export class WorkspacesImpl implements Workspaces {
|
|
57
57
|
* @param options The options parameters.
|
58
58
|
*/
|
59
59
|
public listBySubscription(
|
60
|
-
options?: WorkspacesListBySubscriptionOptionalParams
|
60
|
+
options?: WorkspacesListBySubscriptionOptionalParams,
|
61
61
|
): PagedAsyncIterableIterator<Workspace> {
|
62
62
|
const iter = this.listBySubscriptionPagingAll(options);
|
63
63
|
return {
|
@@ -72,13 +72,13 @@ export class WorkspacesImpl implements Workspaces {
|
|
72
72
|
throw new Error("maxPageSize is not supported by this operation.");
|
73
73
|
}
|
74
74
|
return this.listBySubscriptionPagingPage(options, settings);
|
75
|
-
}
|
75
|
+
},
|
76
76
|
};
|
77
77
|
}
|
78
78
|
|
79
79
|
private async *listBySubscriptionPagingPage(
|
80
80
|
options?: WorkspacesListBySubscriptionOptionalParams,
|
81
|
-
settings?: PageSettings
|
81
|
+
settings?: PageSettings,
|
82
82
|
): AsyncIterableIterator<Workspace[]> {
|
83
83
|
let result: WorkspacesListBySubscriptionResponse;
|
84
84
|
let continuationToken = settings?.continuationToken;
|
@@ -99,7 +99,7 @@ export class WorkspacesImpl implements Workspaces {
|
|
99
99
|
}
|
100
100
|
|
101
101
|
private async *listBySubscriptionPagingAll(
|
102
|
-
options?: WorkspacesListBySubscriptionOptionalParams
|
102
|
+
options?: WorkspacesListBySubscriptionOptionalParams,
|
103
103
|
): AsyncIterableIterator<Workspace> {
|
104
104
|
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
105
105
|
yield* page;
|
@@ -113,7 +113,7 @@ export class WorkspacesImpl implements Workspaces {
|
|
113
113
|
*/
|
114
114
|
public listByResourceGroup(
|
115
115
|
resourceGroupName: string,
|
116
|
-
options?: WorkspacesListByResourceGroupOptionalParams
|
116
|
+
options?: WorkspacesListByResourceGroupOptionalParams,
|
117
117
|
): PagedAsyncIterableIterator<Workspace> {
|
118
118
|
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
119
119
|
return {
|
@@ -130,16 +130,16 @@ export class WorkspacesImpl implements Workspaces {
|
|
130
130
|
return this.listByResourceGroupPagingPage(
|
131
131
|
resourceGroupName,
|
132
132
|
options,
|
133
|
-
settings
|
133
|
+
settings,
|
134
134
|
);
|
135
|
-
}
|
135
|
+
},
|
136
136
|
};
|
137
137
|
}
|
138
138
|
|
139
139
|
private async *listByResourceGroupPagingPage(
|
140
140
|
resourceGroupName: string,
|
141
141
|
options?: WorkspacesListByResourceGroupOptionalParams,
|
142
|
-
settings?: PageSettings
|
142
|
+
settings?: PageSettings,
|
143
143
|
): AsyncIterableIterator<Workspace[]> {
|
144
144
|
let result: WorkspacesListByResourceGroupResponse;
|
145
145
|
let continuationToken = settings?.continuationToken;
|
@@ -154,7 +154,7 @@ export class WorkspacesImpl implements Workspaces {
|
|
154
154
|
result = await this._listByResourceGroupNext(
|
155
155
|
resourceGroupName,
|
156
156
|
continuationToken,
|
157
|
-
options
|
157
|
+
options,
|
158
158
|
);
|
159
159
|
continuationToken = result.nextLink;
|
160
160
|
let page = result.value || [];
|
@@ -165,11 +165,11 @@ export class WorkspacesImpl implements Workspaces {
|
|
165
165
|
|
166
166
|
private async *listByResourceGroupPagingAll(
|
167
167
|
resourceGroupName: string,
|
168
|
-
options?: WorkspacesListByResourceGroupOptionalParams
|
168
|
+
options?: WorkspacesListByResourceGroupOptionalParams,
|
169
169
|
): AsyncIterableIterator<Workspace> {
|
170
170
|
for await (const page of this.listByResourceGroupPagingPage(
|
171
171
|
resourceGroupName,
|
172
|
-
options
|
172
|
+
options,
|
173
173
|
)) {
|
174
174
|
yield* page;
|
175
175
|
}
|
@@ -180,11 +180,11 @@ export class WorkspacesImpl implements Workspaces {
|
|
180
180
|
* @param options The options parameters.
|
181
181
|
*/
|
182
182
|
private _listBySubscription(
|
183
|
-
options?: WorkspacesListBySubscriptionOptionalParams
|
183
|
+
options?: WorkspacesListBySubscriptionOptionalParams,
|
184
184
|
): Promise<WorkspacesListBySubscriptionResponse> {
|
185
185
|
return this.client.sendOperationRequest(
|
186
186
|
{ options },
|
187
|
-
listBySubscriptionOperationSpec
|
187
|
+
listBySubscriptionOperationSpec,
|
188
188
|
);
|
189
189
|
}
|
190
190
|
|
@@ -195,11 +195,11 @@ export class WorkspacesImpl implements Workspaces {
|
|
195
195
|
*/
|
196
196
|
private _listByResourceGroup(
|
197
197
|
resourceGroupName: string,
|
198
|
-
options?: WorkspacesListByResourceGroupOptionalParams
|
198
|
+
options?: WorkspacesListByResourceGroupOptionalParams,
|
199
199
|
): Promise<WorkspacesListByResourceGroupResponse> {
|
200
200
|
return this.client.sendOperationRequest(
|
201
201
|
{ resourceGroupName, options },
|
202
|
-
listByResourceGroupOperationSpec
|
202
|
+
listByResourceGroupOperationSpec,
|
203
203
|
);
|
204
204
|
}
|
205
205
|
|
@@ -212,11 +212,11 @@ export class WorkspacesImpl implements Workspaces {
|
|
212
212
|
get(
|
213
213
|
resourceGroupName: string,
|
214
214
|
workspaceName: string,
|
215
|
-
options?: WorkspacesGetOptionalParams
|
215
|
+
options?: WorkspacesGetOptionalParams,
|
216
216
|
): Promise<WorkspacesGetResponse> {
|
217
217
|
return this.client.sendOperationRequest(
|
218
218
|
{ resourceGroupName, workspaceName, options },
|
219
|
-
getOperationSpec
|
219
|
+
getOperationSpec,
|
220
220
|
);
|
221
221
|
}
|
222
222
|
|
@@ -231,7 +231,7 @@ export class WorkspacesImpl implements Workspaces {
|
|
231
231
|
resourceGroupName: string,
|
232
232
|
workspaceName: string,
|
233
233
|
workspace: Workspace,
|
234
|
-
options?: WorkspacesCreateOrUpdateOptionalParams
|
234
|
+
options?: WorkspacesCreateOrUpdateOptionalParams,
|
235
235
|
): Promise<
|
236
236
|
SimplePollerLike<
|
237
237
|
OperationState<WorkspacesCreateOrUpdateResponse>,
|
@@ -240,21 +240,20 @@ export class WorkspacesImpl implements Workspaces {
|
|
240
240
|
> {
|
241
241
|
const directSendOperation = async (
|
242
242
|
args: coreClient.OperationArguments,
|
243
|
-
spec: coreClient.OperationSpec
|
243
|
+
spec: coreClient.OperationSpec,
|
244
244
|
): Promise<WorkspacesCreateOrUpdateResponse> => {
|
245
245
|
return this.client.sendOperationRequest(args, spec);
|
246
246
|
};
|
247
247
|
const sendOperationFn = async (
|
248
248
|
args: coreClient.OperationArguments,
|
249
|
-
spec: coreClient.OperationSpec
|
249
|
+
spec: coreClient.OperationSpec,
|
250
250
|
) => {
|
251
|
-
let currentRawResponse:
|
252
|
-
|
253
|
-
| undefined = undefined;
|
251
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
252
|
+
undefined;
|
254
253
|
const providedCallback = args.options?.onResponse;
|
255
254
|
const callback: coreClient.RawResponseCallback = (
|
256
255
|
rawResponse: coreClient.FullOperationResponse,
|
257
|
-
flatResponse: unknown
|
256
|
+
flatResponse: unknown,
|
258
257
|
) => {
|
259
258
|
currentRawResponse = rawResponse;
|
260
259
|
providedCallback?.(rawResponse, flatResponse);
|
@@ -263,8 +262,8 @@ export class WorkspacesImpl implements Workspaces {
|
|
263
262
|
...args,
|
264
263
|
options: {
|
265
264
|
...args.options,
|
266
|
-
onResponse: callback
|
267
|
-
}
|
265
|
+
onResponse: callback,
|
266
|
+
},
|
268
267
|
};
|
269
268
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
270
269
|
return {
|
@@ -272,22 +271,22 @@ export class WorkspacesImpl implements Workspaces {
|
|
272
271
|
rawResponse: {
|
273
272
|
statusCode: currentRawResponse!.status,
|
274
273
|
body: currentRawResponse!.parsedBody,
|
275
|
-
headers: currentRawResponse!.headers.toJSON()
|
276
|
-
}
|
274
|
+
headers: currentRawResponse!.headers.toJSON(),
|
275
|
+
},
|
277
276
|
};
|
278
277
|
};
|
279
278
|
|
280
279
|
const lro = createLroSpec({
|
281
280
|
sendOperationFn,
|
282
281
|
args: { resourceGroupName, workspaceName, workspace, options },
|
283
|
-
spec: createOrUpdateOperationSpec
|
282
|
+
spec: createOrUpdateOperationSpec,
|
284
283
|
});
|
285
284
|
const poller = await createHttpPoller<
|
286
285
|
WorkspacesCreateOrUpdateResponse,
|
287
286
|
OperationState<WorkspacesCreateOrUpdateResponse>
|
288
287
|
>(lro, {
|
289
288
|
restoreFrom: options?.resumeFrom,
|
290
|
-
intervalInMs: options?.updateIntervalInMs
|
289
|
+
intervalInMs: options?.updateIntervalInMs,
|
291
290
|
});
|
292
291
|
await poller.poll();
|
293
292
|
return poller;
|
@@ -304,13 +303,13 @@ export class WorkspacesImpl implements Workspaces {
|
|
304
303
|
resourceGroupName: string,
|
305
304
|
workspaceName: string,
|
306
305
|
workspace: Workspace,
|
307
|
-
options?: WorkspacesCreateOrUpdateOptionalParams
|
306
|
+
options?: WorkspacesCreateOrUpdateOptionalParams,
|
308
307
|
): Promise<WorkspacesCreateOrUpdateResponse> {
|
309
308
|
const poller = await this.beginCreateOrUpdate(
|
310
309
|
resourceGroupName,
|
311
310
|
workspaceName,
|
312
311
|
workspace,
|
313
|
-
options
|
312
|
+
options,
|
314
313
|
);
|
315
314
|
return poller.pollUntilDone();
|
316
315
|
}
|
@@ -326,7 +325,7 @@ export class WorkspacesImpl implements Workspaces {
|
|
326
325
|
resourceGroupName: string,
|
327
326
|
workspaceName: string,
|
328
327
|
workspacePatchResource: WorkspacePatchResource,
|
329
|
-
options?: WorkspacesUpdateOptionalParams
|
328
|
+
options?: WorkspacesUpdateOptionalParams,
|
330
329
|
): Promise<
|
331
330
|
SimplePollerLike<
|
332
331
|
OperationState<WorkspacesUpdateResponse>,
|
@@ -335,21 +334,20 @@ export class WorkspacesImpl implements Workspaces {
|
|
335
334
|
> {
|
336
335
|
const directSendOperation = async (
|
337
336
|
args: coreClient.OperationArguments,
|
338
|
-
spec: coreClient.OperationSpec
|
337
|
+
spec: coreClient.OperationSpec,
|
339
338
|
): Promise<WorkspacesUpdateResponse> => {
|
340
339
|
return this.client.sendOperationRequest(args, spec);
|
341
340
|
};
|
342
341
|
const sendOperationFn = async (
|
343
342
|
args: coreClient.OperationArguments,
|
344
|
-
spec: coreClient.OperationSpec
|
343
|
+
spec: coreClient.OperationSpec,
|
345
344
|
) => {
|
346
|
-
let currentRawResponse:
|
347
|
-
|
348
|
-
| undefined = undefined;
|
345
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
346
|
+
undefined;
|
349
347
|
const providedCallback = args.options?.onResponse;
|
350
348
|
const callback: coreClient.RawResponseCallback = (
|
351
349
|
rawResponse: coreClient.FullOperationResponse,
|
352
|
-
flatResponse: unknown
|
350
|
+
flatResponse: unknown,
|
353
351
|
) => {
|
354
352
|
currentRawResponse = rawResponse;
|
355
353
|
providedCallback?.(rawResponse, flatResponse);
|
@@ -358,8 +356,8 @@ export class WorkspacesImpl implements Workspaces {
|
|
358
356
|
...args,
|
359
357
|
options: {
|
360
358
|
...args.options,
|
361
|
-
onResponse: callback
|
362
|
-
}
|
359
|
+
onResponse: callback,
|
360
|
+
},
|
363
361
|
};
|
364
362
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
365
363
|
return {
|
@@ -367,8 +365,8 @@ export class WorkspacesImpl implements Workspaces {
|
|
367
365
|
rawResponse: {
|
368
366
|
statusCode: currentRawResponse!.status,
|
369
367
|
body: currentRawResponse!.parsedBody,
|
370
|
-
headers: currentRawResponse!.headers.toJSON()
|
371
|
-
}
|
368
|
+
headers: currentRawResponse!.headers.toJSON(),
|
369
|
+
},
|
372
370
|
};
|
373
371
|
};
|
374
372
|
|
@@ -378,16 +376,16 @@ export class WorkspacesImpl implements Workspaces {
|
|
378
376
|
resourceGroupName,
|
379
377
|
workspaceName,
|
380
378
|
workspacePatchResource,
|
381
|
-
options
|
379
|
+
options,
|
382
380
|
},
|
383
|
-
spec: updateOperationSpec
|
381
|
+
spec: updateOperationSpec,
|
384
382
|
});
|
385
383
|
const poller = await createHttpPoller<
|
386
384
|
WorkspacesUpdateResponse,
|
387
385
|
OperationState<WorkspacesUpdateResponse>
|
388
386
|
>(lro, {
|
389
387
|
restoreFrom: options?.resumeFrom,
|
390
|
-
intervalInMs: options?.updateIntervalInMs
|
388
|
+
intervalInMs: options?.updateIntervalInMs,
|
391
389
|
});
|
392
390
|
await poller.poll();
|
393
391
|
return poller;
|
@@ -404,13 +402,13 @@ export class WorkspacesImpl implements Workspaces {
|
|
404
402
|
resourceGroupName: string,
|
405
403
|
workspaceName: string,
|
406
404
|
workspacePatchResource: WorkspacePatchResource,
|
407
|
-
options?: WorkspacesUpdateOptionalParams
|
405
|
+
options?: WorkspacesUpdateOptionalParams,
|
408
406
|
): Promise<WorkspacesUpdateResponse> {
|
409
407
|
const poller = await this.beginUpdate(
|
410
408
|
resourceGroupName,
|
411
409
|
workspaceName,
|
412
410
|
workspacePatchResource,
|
413
|
-
options
|
411
|
+
options,
|
414
412
|
);
|
415
413
|
return poller.pollUntilDone();
|
416
414
|
}
|
@@ -424,25 +422,24 @@ export class WorkspacesImpl implements Workspaces {
|
|
424
422
|
async beginDelete(
|
425
423
|
resourceGroupName: string,
|
426
424
|
workspaceName: string,
|
427
|
-
options?: WorkspacesDeleteOptionalParams
|
425
|
+
options?: WorkspacesDeleteOptionalParams,
|
428
426
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
429
427
|
const directSendOperation = async (
|
430
428
|
args: coreClient.OperationArguments,
|
431
|
-
spec: coreClient.OperationSpec
|
429
|
+
spec: coreClient.OperationSpec,
|
432
430
|
): Promise<void> => {
|
433
431
|
return this.client.sendOperationRequest(args, spec);
|
434
432
|
};
|
435
433
|
const sendOperationFn = async (
|
436
434
|
args: coreClient.OperationArguments,
|
437
|
-
spec: coreClient.OperationSpec
|
435
|
+
spec: coreClient.OperationSpec,
|
438
436
|
) => {
|
439
|
-
let currentRawResponse:
|
440
|
-
|
441
|
-
| undefined = undefined;
|
437
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
438
|
+
undefined;
|
442
439
|
const providedCallback = args.options?.onResponse;
|
443
440
|
const callback: coreClient.RawResponseCallback = (
|
444
441
|
rawResponse: coreClient.FullOperationResponse,
|
445
|
-
flatResponse: unknown
|
442
|
+
flatResponse: unknown,
|
446
443
|
) => {
|
447
444
|
currentRawResponse = rawResponse;
|
448
445
|
providedCallback?.(rawResponse, flatResponse);
|
@@ -451,8 +448,8 @@ export class WorkspacesImpl implements Workspaces {
|
|
451
448
|
...args,
|
452
449
|
options: {
|
453
450
|
...args.options,
|
454
|
-
onResponse: callback
|
455
|
-
}
|
451
|
+
onResponse: callback,
|
452
|
+
},
|
456
453
|
};
|
457
454
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
458
455
|
return {
|
@@ -460,19 +457,19 @@ export class WorkspacesImpl implements Workspaces {
|
|
460
457
|
rawResponse: {
|
461
458
|
statusCode: currentRawResponse!.status,
|
462
459
|
body: currentRawResponse!.parsedBody,
|
463
|
-
headers: currentRawResponse!.headers.toJSON()
|
464
|
-
}
|
460
|
+
headers: currentRawResponse!.headers.toJSON(),
|
461
|
+
},
|
465
462
|
};
|
466
463
|
};
|
467
464
|
|
468
465
|
const lro = createLroSpec({
|
469
466
|
sendOperationFn,
|
470
467
|
args: { resourceGroupName, workspaceName, options },
|
471
|
-
spec: deleteOperationSpec
|
468
|
+
spec: deleteOperationSpec,
|
472
469
|
});
|
473
470
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
474
471
|
restoreFrom: options?.resumeFrom,
|
475
|
-
intervalInMs: options?.updateIntervalInMs
|
472
|
+
intervalInMs: options?.updateIntervalInMs,
|
476
473
|
});
|
477
474
|
await poller.poll();
|
478
475
|
return poller;
|
@@ -487,12 +484,12 @@ export class WorkspacesImpl implements Workspaces {
|
|
487
484
|
async beginDeleteAndWait(
|
488
485
|
resourceGroupName: string,
|
489
486
|
workspaceName: string,
|
490
|
-
options?: WorkspacesDeleteOptionalParams
|
487
|
+
options?: WorkspacesDeleteOptionalParams,
|
491
488
|
): Promise<void> {
|
492
489
|
const poller = await this.beginDelete(
|
493
490
|
resourceGroupName,
|
494
491
|
workspaceName,
|
495
|
-
options
|
492
|
+
options,
|
496
493
|
);
|
497
494
|
return poller.pollUntilDone();
|
498
495
|
}
|
@@ -504,11 +501,11 @@ export class WorkspacesImpl implements Workspaces {
|
|
504
501
|
*/
|
505
502
|
private _listBySubscriptionNext(
|
506
503
|
nextLink: string,
|
507
|
-
options?: WorkspacesListBySubscriptionNextOptionalParams
|
504
|
+
options?: WorkspacesListBySubscriptionNextOptionalParams,
|
508
505
|
): Promise<WorkspacesListBySubscriptionNextResponse> {
|
509
506
|
return this.client.sendOperationRequest(
|
510
507
|
{ nextLink, options },
|
511
|
-
listBySubscriptionNextOperationSpec
|
508
|
+
listBySubscriptionNextOperationSpec,
|
512
509
|
);
|
513
510
|
}
|
514
511
|
|
@@ -521,11 +518,11 @@ export class WorkspacesImpl implements Workspaces {
|
|
521
518
|
private _listByResourceGroupNext(
|
522
519
|
resourceGroupName: string,
|
523
520
|
nextLink: string,
|
524
|
-
options?: WorkspacesListByResourceGroupNextOptionalParams
|
521
|
+
options?: WorkspacesListByResourceGroupNextOptionalParams,
|
525
522
|
): Promise<WorkspacesListByResourceGroupNextResponse> {
|
526
523
|
return this.client.sendOperationRequest(
|
527
524
|
{ resourceGroupName, nextLink, options },
|
528
|
-
listByResourceGroupNextOperationSpec
|
525
|
+
listByResourceGroupNextOperationSpec,
|
529
526
|
);
|
530
527
|
}
|
531
528
|
}
|
@@ -533,85 +530,81 @@ export class WorkspacesImpl implements Workspaces {
|
|
533
530
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
534
531
|
|
535
532
|
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
536
|
-
path:
|
537
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/workspaces",
|
533
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/workspaces",
|
538
534
|
httpMethod: "GET",
|
539
535
|
responses: {
|
540
536
|
200: {
|
541
|
-
bodyMapper: Mappers.WorkspaceList
|
537
|
+
bodyMapper: Mappers.WorkspaceList,
|
542
538
|
},
|
543
539
|
default: {
|
544
|
-
bodyMapper: Mappers.ErrorDetails
|
545
|
-
}
|
540
|
+
bodyMapper: Mappers.ErrorDetails,
|
541
|
+
},
|
546
542
|
},
|
547
543
|
queryParameters: [Parameters.apiVersion],
|
548
544
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
549
545
|
headerParameters: [Parameters.accept],
|
550
|
-
serializer
|
546
|
+
serializer,
|
551
547
|
};
|
552
548
|
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
553
|
-
path:
|
554
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces",
|
549
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces",
|
555
550
|
httpMethod: "GET",
|
556
551
|
responses: {
|
557
552
|
200: {
|
558
|
-
bodyMapper: Mappers.WorkspaceList
|
553
|
+
bodyMapper: Mappers.WorkspaceList,
|
559
554
|
},
|
560
555
|
default: {
|
561
|
-
bodyMapper: Mappers.ErrorDetails
|
562
|
-
}
|
556
|
+
bodyMapper: Mappers.ErrorDetails,
|
557
|
+
},
|
563
558
|
},
|
564
559
|
queryParameters: [Parameters.apiVersion],
|
565
560
|
urlParameters: [
|
566
561
|
Parameters.$host,
|
567
562
|
Parameters.subscriptionId,
|
568
|
-
Parameters.resourceGroupName
|
563
|
+
Parameters.resourceGroupName,
|
569
564
|
],
|
570
565
|
headerParameters: [Parameters.accept],
|
571
|
-
serializer
|
566
|
+
serializer,
|
572
567
|
};
|
573
568
|
const getOperationSpec: coreClient.OperationSpec = {
|
574
|
-
path:
|
575
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",
|
569
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",
|
576
570
|
httpMethod: "GET",
|
577
571
|
responses: {
|
578
572
|
200: {
|
579
|
-
bodyMapper: Mappers.Workspace
|
573
|
+
bodyMapper: Mappers.Workspace,
|
580
574
|
},
|
581
575
|
default: {
|
582
|
-
bodyMapper: Mappers.ErrorDetails
|
583
|
-
}
|
576
|
+
bodyMapper: Mappers.ErrorDetails,
|
577
|
+
},
|
584
578
|
},
|
585
579
|
queryParameters: [Parameters.apiVersion],
|
586
580
|
urlParameters: [
|
587
581
|
Parameters.$host,
|
588
582
|
Parameters.subscriptionId,
|
589
583
|
Parameters.resourceGroupName,
|
590
|
-
Parameters.workspaceName
|
584
|
+
Parameters.workspaceName,
|
591
585
|
],
|
592
586
|
headerParameters: [Parameters.accept],
|
593
|
-
serializer
|
587
|
+
serializer,
|
594
588
|
};
|
595
589
|
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
596
|
-
path:
|
597
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",
|
590
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",
|
598
591
|
httpMethod: "PUT",
|
599
592
|
responses: {
|
600
593
|
200: {
|
601
|
-
bodyMapper: Mappers.Workspace
|
594
|
+
bodyMapper: Mappers.Workspace,
|
602
595
|
},
|
603
596
|
201: {
|
604
|
-
bodyMapper: Mappers.Workspace
|
597
|
+
bodyMapper: Mappers.Workspace,
|
605
598
|
},
|
606
599
|
202: {
|
607
|
-
bodyMapper: Mappers.Workspace
|
600
|
+
bodyMapper: Mappers.Workspace,
|
608
601
|
},
|
609
602
|
204: {
|
610
|
-
bodyMapper: Mappers.Workspace
|
603
|
+
bodyMapper: Mappers.Workspace,
|
611
604
|
},
|
612
605
|
default: {
|
613
|
-
bodyMapper: Mappers.ErrorDetails
|
614
|
-
}
|
606
|
+
bodyMapper: Mappers.ErrorDetails,
|
607
|
+
},
|
615
608
|
},
|
616
609
|
requestBody: Parameters.workspace,
|
617
610
|
queryParameters: [Parameters.apiVersion],
|
@@ -619,32 +612,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
619
612
|
Parameters.$host,
|
620
613
|
Parameters.subscriptionId,
|
621
614
|
Parameters.resourceGroupName,
|
622
|
-
Parameters.workspaceName
|
615
|
+
Parameters.workspaceName,
|
623
616
|
],
|
624
617
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
625
618
|
mediaType: "json",
|
626
|
-
serializer
|
619
|
+
serializer,
|
627
620
|
};
|
628
621
|
const updateOperationSpec: coreClient.OperationSpec = {
|
629
|
-
path:
|
630
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",
|
622
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",
|
631
623
|
httpMethod: "PATCH",
|
632
624
|
responses: {
|
633
625
|
200: {
|
634
|
-
bodyMapper: Mappers.Workspace
|
626
|
+
bodyMapper: Mappers.Workspace,
|
635
627
|
},
|
636
628
|
201: {
|
637
|
-
bodyMapper: Mappers.Workspace
|
629
|
+
bodyMapper: Mappers.Workspace,
|
638
630
|
},
|
639
631
|
202: {
|
640
|
-
bodyMapper: Mappers.Workspace
|
632
|
+
bodyMapper: Mappers.Workspace,
|
641
633
|
},
|
642
634
|
204: {
|
643
|
-
bodyMapper: Mappers.Workspace
|
635
|
+
bodyMapper: Mappers.Workspace,
|
644
636
|
},
|
645
637
|
default: {
|
646
|
-
bodyMapper: Mappers.ErrorDetails
|
647
|
-
}
|
638
|
+
bodyMapper: Mappers.ErrorDetails,
|
639
|
+
},
|
648
640
|
},
|
649
641
|
requestBody: Parameters.workspacePatchResource,
|
650
642
|
queryParameters: [Parameters.apiVersion],
|
@@ -652,15 +644,14 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
652
644
|
Parameters.$host,
|
653
645
|
Parameters.subscriptionId,
|
654
646
|
Parameters.resourceGroupName,
|
655
|
-
Parameters.workspaceName
|
647
|
+
Parameters.workspaceName,
|
656
648
|
],
|
657
649
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
658
650
|
mediaType: "json",
|
659
|
-
serializer
|
651
|
+
serializer,
|
660
652
|
};
|
661
653
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
662
|
-
path:
|
663
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",
|
654
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}",
|
664
655
|
httpMethod: "DELETE",
|
665
656
|
responses: {
|
666
657
|
200: {},
|
@@ -668,55 +659,55 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
668
659
|
202: {},
|
669
660
|
204: {},
|
670
661
|
default: {
|
671
|
-
bodyMapper: Mappers.ErrorModel
|
672
|
-
}
|
662
|
+
bodyMapper: Mappers.ErrorModel,
|
663
|
+
},
|
673
664
|
},
|
674
665
|
queryParameters: [Parameters.apiVersion],
|
675
666
|
urlParameters: [
|
676
667
|
Parameters.$host,
|
677
668
|
Parameters.subscriptionId,
|
678
669
|
Parameters.resourceGroupName,
|
679
|
-
Parameters.workspaceName
|
670
|
+
Parameters.workspaceName,
|
680
671
|
],
|
681
672
|
headerParameters: [Parameters.accept],
|
682
|
-
serializer
|
673
|
+
serializer,
|
683
674
|
};
|
684
675
|
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
685
676
|
path: "{nextLink}",
|
686
677
|
httpMethod: "GET",
|
687
678
|
responses: {
|
688
679
|
200: {
|
689
|
-
bodyMapper: Mappers.WorkspaceList
|
680
|
+
bodyMapper: Mappers.WorkspaceList,
|
690
681
|
},
|
691
682
|
default: {
|
692
|
-
bodyMapper: Mappers.ErrorDetails
|
693
|
-
}
|
683
|
+
bodyMapper: Mappers.ErrorDetails,
|
684
|
+
},
|
694
685
|
},
|
695
686
|
urlParameters: [
|
696
687
|
Parameters.$host,
|
697
688
|
Parameters.subscriptionId,
|
698
|
-
Parameters.nextLink
|
689
|
+
Parameters.nextLink,
|
699
690
|
],
|
700
691
|
headerParameters: [Parameters.accept],
|
701
|
-
serializer
|
692
|
+
serializer,
|
702
693
|
};
|
703
694
|
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
704
695
|
path: "{nextLink}",
|
705
696
|
httpMethod: "GET",
|
706
697
|
responses: {
|
707
698
|
200: {
|
708
|
-
bodyMapper: Mappers.WorkspaceList
|
699
|
+
bodyMapper: Mappers.WorkspaceList,
|
709
700
|
},
|
710
701
|
default: {
|
711
|
-
bodyMapper: Mappers.ErrorDetails
|
712
|
-
}
|
702
|
+
bodyMapper: Mappers.ErrorDetails,
|
703
|
+
},
|
713
704
|
},
|
714
705
|
urlParameters: [
|
715
706
|
Parameters.$host,
|
716
707
|
Parameters.subscriptionId,
|
717
708
|
Parameters.resourceGroupName,
|
718
|
-
Parameters.nextLink
|
709
|
+
Parameters.nextLink,
|
719
710
|
],
|
720
711
|
headerParameters: [Parameters.accept],
|
721
|
-
serializer
|
712
|
+
serializer,
|
722
713
|
};
|