@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
@@ -15,7 +15,7 @@ import { HealthcareApisManagementClient } from "../healthcareApisManagementClien
|
|
15
15
|
import {
|
16
16
|
SimplePollerLike,
|
17
17
|
OperationState,
|
18
|
-
createHttpPoller
|
18
|
+
createHttpPoller,
|
19
19
|
} from "@azure/core-lro";
|
20
20
|
import { createLroSpec } from "../lroImpl";
|
21
21
|
import {
|
@@ -26,13 +26,14 @@ import {
|
|
26
26
|
WorkspacePrivateEndpointConnectionsGetResponse,
|
27
27
|
WorkspacePrivateEndpointConnectionsCreateOrUpdateOptionalParams,
|
28
28
|
WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse,
|
29
|
-
WorkspacePrivateEndpointConnectionsDeleteOptionalParams
|
29
|
+
WorkspacePrivateEndpointConnectionsDeleteOptionalParams,
|
30
30
|
} from "../models";
|
31
31
|
|
32
32
|
/// <reference lib="esnext.asynciterable" />
|
33
33
|
/** Class containing WorkspacePrivateEndpointConnections operations. */
|
34
34
|
export class WorkspacePrivateEndpointConnectionsImpl
|
35
|
-
implements WorkspacePrivateEndpointConnections
|
35
|
+
implements WorkspacePrivateEndpointConnections
|
36
|
+
{
|
36
37
|
private readonly client: HealthcareApisManagementClient;
|
37
38
|
|
38
39
|
/**
|
@@ -52,12 +53,12 @@ export class WorkspacePrivateEndpointConnectionsImpl
|
|
52
53
|
public listByWorkspace(
|
53
54
|
resourceGroupName: string,
|
54
55
|
workspaceName: string,
|
55
|
-
options?: WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams
|
56
|
+
options?: WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams,
|
56
57
|
): PagedAsyncIterableIterator<PrivateEndpointConnectionDescription> {
|
57
58
|
const iter = this.listByWorkspacePagingAll(
|
58
59
|
resourceGroupName,
|
59
60
|
workspaceName,
|
60
|
-
options
|
61
|
+
options,
|
61
62
|
);
|
62
63
|
return {
|
63
64
|
next() {
|
@@ -74,9 +75,9 @@ export class WorkspacePrivateEndpointConnectionsImpl
|
|
74
75
|
resourceGroupName,
|
75
76
|
workspaceName,
|
76
77
|
options,
|
77
|
-
settings
|
78
|
+
settings,
|
78
79
|
);
|
79
|
-
}
|
80
|
+
},
|
80
81
|
};
|
81
82
|
}
|
82
83
|
|
@@ -84,13 +85,13 @@ export class WorkspacePrivateEndpointConnectionsImpl
|
|
84
85
|
resourceGroupName: string,
|
85
86
|
workspaceName: string,
|
86
87
|
options?: WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams,
|
87
|
-
_settings?: PageSettings
|
88
|
+
_settings?: PageSettings,
|
88
89
|
): AsyncIterableIterator<PrivateEndpointConnectionDescription[]> {
|
89
90
|
let result: WorkspacePrivateEndpointConnectionsListByWorkspaceResponse;
|
90
91
|
result = await this._listByWorkspace(
|
91
92
|
resourceGroupName,
|
92
93
|
workspaceName,
|
93
|
-
options
|
94
|
+
options,
|
94
95
|
);
|
95
96
|
yield result.value || [];
|
96
97
|
}
|
@@ -98,12 +99,12 @@ export class WorkspacePrivateEndpointConnectionsImpl
|
|
98
99
|
private async *listByWorkspacePagingAll(
|
99
100
|
resourceGroupName: string,
|
100
101
|
workspaceName: string,
|
101
|
-
options?: WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams
|
102
|
+
options?: WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams,
|
102
103
|
): AsyncIterableIterator<PrivateEndpointConnectionDescription> {
|
103
104
|
for await (const page of this.listByWorkspacePagingPage(
|
104
105
|
resourceGroupName,
|
105
106
|
workspaceName,
|
106
|
-
options
|
107
|
+
options,
|
107
108
|
)) {
|
108
109
|
yield* page;
|
109
110
|
}
|
@@ -118,11 +119,11 @@ export class WorkspacePrivateEndpointConnectionsImpl
|
|
118
119
|
private _listByWorkspace(
|
119
120
|
resourceGroupName: string,
|
120
121
|
workspaceName: string,
|
121
|
-
options?: WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams
|
122
|
+
options?: WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams,
|
122
123
|
): Promise<WorkspacePrivateEndpointConnectionsListByWorkspaceResponse> {
|
123
124
|
return this.client.sendOperationRequest(
|
124
125
|
{ resourceGroupName, workspaceName, options },
|
125
|
-
listByWorkspaceOperationSpec
|
126
|
+
listByWorkspaceOperationSpec,
|
126
127
|
);
|
127
128
|
}
|
128
129
|
|
@@ -138,16 +139,16 @@ export class WorkspacePrivateEndpointConnectionsImpl
|
|
138
139
|
resourceGroupName: string,
|
139
140
|
workspaceName: string,
|
140
141
|
privateEndpointConnectionName: string,
|
141
|
-
options?: WorkspacePrivateEndpointConnectionsGetOptionalParams
|
142
|
+
options?: WorkspacePrivateEndpointConnectionsGetOptionalParams,
|
142
143
|
): Promise<WorkspacePrivateEndpointConnectionsGetResponse> {
|
143
144
|
return this.client.sendOperationRequest(
|
144
145
|
{
|
145
146
|
resourceGroupName,
|
146
147
|
workspaceName,
|
147
148
|
privateEndpointConnectionName,
|
148
|
-
options
|
149
|
+
options,
|
149
150
|
},
|
150
|
-
getOperationSpec
|
151
|
+
getOperationSpec,
|
151
152
|
);
|
152
153
|
}
|
153
154
|
|
@@ -165,7 +166,7 @@ export class WorkspacePrivateEndpointConnectionsImpl
|
|
165
166
|
workspaceName: string,
|
166
167
|
privateEndpointConnectionName: string,
|
167
168
|
properties: PrivateEndpointConnectionDescription,
|
168
|
-
options?: WorkspacePrivateEndpointConnectionsCreateOrUpdateOptionalParams
|
169
|
+
options?: WorkspacePrivateEndpointConnectionsCreateOrUpdateOptionalParams,
|
169
170
|
): Promise<
|
170
171
|
SimplePollerLike<
|
171
172
|
OperationState<WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse>,
|
@@ -174,21 +175,20 @@ export class WorkspacePrivateEndpointConnectionsImpl
|
|
174
175
|
> {
|
175
176
|
const directSendOperation = async (
|
176
177
|
args: coreClient.OperationArguments,
|
177
|
-
spec: coreClient.OperationSpec
|
178
|
+
spec: coreClient.OperationSpec,
|
178
179
|
): Promise<WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse> => {
|
179
180
|
return this.client.sendOperationRequest(args, spec);
|
180
181
|
};
|
181
182
|
const sendOperationFn = async (
|
182
183
|
args: coreClient.OperationArguments,
|
183
|
-
spec: coreClient.OperationSpec
|
184
|
+
spec: coreClient.OperationSpec,
|
184
185
|
) => {
|
185
|
-
let currentRawResponse:
|
186
|
-
|
187
|
-
| undefined = undefined;
|
186
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
187
|
+
undefined;
|
188
188
|
const providedCallback = args.options?.onResponse;
|
189
189
|
const callback: coreClient.RawResponseCallback = (
|
190
190
|
rawResponse: coreClient.FullOperationResponse,
|
191
|
-
flatResponse: unknown
|
191
|
+
flatResponse: unknown,
|
192
192
|
) => {
|
193
193
|
currentRawResponse = rawResponse;
|
194
194
|
providedCallback?.(rawResponse, flatResponse);
|
@@ -197,8 +197,8 @@ export class WorkspacePrivateEndpointConnectionsImpl
|
|
197
197
|
...args,
|
198
198
|
options: {
|
199
199
|
...args.options,
|
200
|
-
onResponse: callback
|
201
|
-
}
|
200
|
+
onResponse: callback,
|
201
|
+
},
|
202
202
|
};
|
203
203
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
204
204
|
return {
|
@@ -206,8 +206,8 @@ export class WorkspacePrivateEndpointConnectionsImpl
|
|
206
206
|
rawResponse: {
|
207
207
|
statusCode: currentRawResponse!.status,
|
208
208
|
body: currentRawResponse!.parsedBody,
|
209
|
-
headers: currentRawResponse!.headers.toJSON()
|
210
|
-
}
|
209
|
+
headers: currentRawResponse!.headers.toJSON(),
|
210
|
+
},
|
211
211
|
};
|
212
212
|
};
|
213
213
|
|
@@ -218,16 +218,16 @@ export class WorkspacePrivateEndpointConnectionsImpl
|
|
218
218
|
workspaceName,
|
219
219
|
privateEndpointConnectionName,
|
220
220
|
properties,
|
221
|
-
options
|
221
|
+
options,
|
222
222
|
},
|
223
|
-
spec: createOrUpdateOperationSpec
|
223
|
+
spec: createOrUpdateOperationSpec,
|
224
224
|
});
|
225
225
|
const poller = await createHttpPoller<
|
226
226
|
WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse,
|
227
227
|
OperationState<WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse>
|
228
228
|
>(lro, {
|
229
229
|
restoreFrom: options?.resumeFrom,
|
230
|
-
intervalInMs: options?.updateIntervalInMs
|
230
|
+
intervalInMs: options?.updateIntervalInMs,
|
231
231
|
});
|
232
232
|
await poller.poll();
|
233
233
|
return poller;
|
@@ -247,14 +247,14 @@ export class WorkspacePrivateEndpointConnectionsImpl
|
|
247
247
|
workspaceName: string,
|
248
248
|
privateEndpointConnectionName: string,
|
249
249
|
properties: PrivateEndpointConnectionDescription,
|
250
|
-
options?: WorkspacePrivateEndpointConnectionsCreateOrUpdateOptionalParams
|
250
|
+
options?: WorkspacePrivateEndpointConnectionsCreateOrUpdateOptionalParams,
|
251
251
|
): Promise<WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse> {
|
252
252
|
const poller = await this.beginCreateOrUpdate(
|
253
253
|
resourceGroupName,
|
254
254
|
workspaceName,
|
255
255
|
privateEndpointConnectionName,
|
256
256
|
properties,
|
257
|
-
options
|
257
|
+
options,
|
258
258
|
);
|
259
259
|
return poller.pollUntilDone();
|
260
260
|
}
|
@@ -271,25 +271,24 @@ export class WorkspacePrivateEndpointConnectionsImpl
|
|
271
271
|
resourceGroupName: string,
|
272
272
|
workspaceName: string,
|
273
273
|
privateEndpointConnectionName: string,
|
274
|
-
options?: WorkspacePrivateEndpointConnectionsDeleteOptionalParams
|
274
|
+
options?: WorkspacePrivateEndpointConnectionsDeleteOptionalParams,
|
275
275
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
276
276
|
const directSendOperation = async (
|
277
277
|
args: coreClient.OperationArguments,
|
278
|
-
spec: coreClient.OperationSpec
|
278
|
+
spec: coreClient.OperationSpec,
|
279
279
|
): Promise<void> => {
|
280
280
|
return this.client.sendOperationRequest(args, spec);
|
281
281
|
};
|
282
282
|
const sendOperationFn = async (
|
283
283
|
args: coreClient.OperationArguments,
|
284
|
-
spec: coreClient.OperationSpec
|
284
|
+
spec: coreClient.OperationSpec,
|
285
285
|
) => {
|
286
|
-
let currentRawResponse:
|
287
|
-
|
288
|
-
| undefined = undefined;
|
286
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
287
|
+
undefined;
|
289
288
|
const providedCallback = args.options?.onResponse;
|
290
289
|
const callback: coreClient.RawResponseCallback = (
|
291
290
|
rawResponse: coreClient.FullOperationResponse,
|
292
|
-
flatResponse: unknown
|
291
|
+
flatResponse: unknown,
|
293
292
|
) => {
|
294
293
|
currentRawResponse = rawResponse;
|
295
294
|
providedCallback?.(rawResponse, flatResponse);
|
@@ -298,8 +297,8 @@ export class WorkspacePrivateEndpointConnectionsImpl
|
|
298
297
|
...args,
|
299
298
|
options: {
|
300
299
|
...args.options,
|
301
|
-
onResponse: callback
|
302
|
-
}
|
300
|
+
onResponse: callback,
|
301
|
+
},
|
303
302
|
};
|
304
303
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
305
304
|
return {
|
@@ -307,8 +306,8 @@ export class WorkspacePrivateEndpointConnectionsImpl
|
|
307
306
|
rawResponse: {
|
308
307
|
statusCode: currentRawResponse!.status,
|
309
308
|
body: currentRawResponse!.parsedBody,
|
310
|
-
headers: currentRawResponse!.headers.toJSON()
|
311
|
-
}
|
309
|
+
headers: currentRawResponse!.headers.toJSON(),
|
310
|
+
},
|
312
311
|
};
|
313
312
|
};
|
314
313
|
|
@@ -318,13 +317,13 @@ export class WorkspacePrivateEndpointConnectionsImpl
|
|
318
317
|
resourceGroupName,
|
319
318
|
workspaceName,
|
320
319
|
privateEndpointConnectionName,
|
321
|
-
options
|
320
|
+
options,
|
322
321
|
},
|
323
|
-
spec: deleteOperationSpec
|
322
|
+
spec: deleteOperationSpec,
|
324
323
|
});
|
325
324
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
326
325
|
restoreFrom: options?.resumeFrom,
|
327
|
-
intervalInMs: options?.updateIntervalInMs
|
326
|
+
intervalInMs: options?.updateIntervalInMs,
|
328
327
|
});
|
329
328
|
await poller.poll();
|
330
329
|
return poller;
|
@@ -342,13 +341,13 @@ export class WorkspacePrivateEndpointConnectionsImpl
|
|
342
341
|
resourceGroupName: string,
|
343
342
|
workspaceName: string,
|
344
343
|
privateEndpointConnectionName: string,
|
345
|
-
options?: WorkspacePrivateEndpointConnectionsDeleteOptionalParams
|
344
|
+
options?: WorkspacePrivateEndpointConnectionsDeleteOptionalParams,
|
346
345
|
): Promise<void> {
|
347
346
|
const poller = await this.beginDelete(
|
348
347
|
resourceGroupName,
|
349
348
|
workspaceName,
|
350
349
|
privateEndpointConnectionName,
|
351
|
-
options
|
350
|
+
options,
|
352
351
|
);
|
353
352
|
return poller.pollUntilDone();
|
354
353
|
}
|
@@ -357,38 +356,36 @@ export class WorkspacePrivateEndpointConnectionsImpl
|
|
357
356
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
358
357
|
|
359
358
|
const listByWorkspaceOperationSpec: coreClient.OperationSpec = {
|
360
|
-
path:
|
361
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections",
|
359
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections",
|
362
360
|
httpMethod: "GET",
|
363
361
|
responses: {
|
364
362
|
200: {
|
365
|
-
bodyMapper: Mappers.PrivateEndpointConnectionListResultDescription
|
363
|
+
bodyMapper: Mappers.PrivateEndpointConnectionListResultDescription,
|
366
364
|
},
|
367
365
|
default: {
|
368
|
-
bodyMapper: Mappers.ErrorDetails
|
369
|
-
}
|
366
|
+
bodyMapper: Mappers.ErrorDetails,
|
367
|
+
},
|
370
368
|
},
|
371
369
|
queryParameters: [Parameters.apiVersion],
|
372
370
|
urlParameters: [
|
373
371
|
Parameters.$host,
|
374
372
|
Parameters.subscriptionId,
|
375
373
|
Parameters.resourceGroupName,
|
376
|
-
Parameters.workspaceName
|
374
|
+
Parameters.workspaceName,
|
377
375
|
],
|
378
376
|
headerParameters: [Parameters.accept],
|
379
|
-
serializer
|
377
|
+
serializer,
|
380
378
|
};
|
381
379
|
const getOperationSpec: coreClient.OperationSpec = {
|
382
|
-
path:
|
383
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
380
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
384
381
|
httpMethod: "GET",
|
385
382
|
responses: {
|
386
383
|
200: {
|
387
|
-
bodyMapper: Mappers.PrivateEndpointConnectionDescription
|
384
|
+
bodyMapper: Mappers.PrivateEndpointConnectionDescription,
|
388
385
|
},
|
389
386
|
default: {
|
390
|
-
bodyMapper: Mappers.ErrorDetails
|
391
|
-
}
|
387
|
+
bodyMapper: Mappers.ErrorDetails,
|
388
|
+
},
|
392
389
|
},
|
393
390
|
queryParameters: [Parameters.apiVersion],
|
394
391
|
urlParameters: [
|
@@ -396,31 +393,30 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
396
393
|
Parameters.subscriptionId,
|
397
394
|
Parameters.resourceGroupName,
|
398
395
|
Parameters.privateEndpointConnectionName,
|
399
|
-
Parameters.workspaceName
|
396
|
+
Parameters.workspaceName,
|
400
397
|
],
|
401
398
|
headerParameters: [Parameters.accept],
|
402
|
-
serializer
|
399
|
+
serializer,
|
403
400
|
};
|
404
401
|
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
405
|
-
path:
|
406
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
402
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
407
403
|
httpMethod: "PUT",
|
408
404
|
responses: {
|
409
405
|
200: {
|
410
|
-
bodyMapper: Mappers.PrivateEndpointConnectionDescription
|
406
|
+
bodyMapper: Mappers.PrivateEndpointConnectionDescription,
|
411
407
|
},
|
412
408
|
201: {
|
413
|
-
bodyMapper: Mappers.PrivateEndpointConnectionDescription
|
409
|
+
bodyMapper: Mappers.PrivateEndpointConnectionDescription,
|
414
410
|
},
|
415
411
|
202: {
|
416
|
-
bodyMapper: Mappers.PrivateEndpointConnectionDescription
|
412
|
+
bodyMapper: Mappers.PrivateEndpointConnectionDescription,
|
417
413
|
},
|
418
414
|
204: {
|
419
|
-
bodyMapper: Mappers.PrivateEndpointConnectionDescription
|
415
|
+
bodyMapper: Mappers.PrivateEndpointConnectionDescription,
|
420
416
|
},
|
421
417
|
default: {
|
422
|
-
bodyMapper: Mappers.ErrorDetails
|
423
|
-
}
|
418
|
+
bodyMapper: Mappers.ErrorDetails,
|
419
|
+
},
|
424
420
|
},
|
425
421
|
requestBody: Parameters.properties1,
|
426
422
|
queryParameters: [Parameters.apiVersion],
|
@@ -429,15 +425,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
429
425
|
Parameters.subscriptionId,
|
430
426
|
Parameters.resourceGroupName,
|
431
427
|
Parameters.privateEndpointConnectionName,
|
432
|
-
Parameters.workspaceName
|
428
|
+
Parameters.workspaceName,
|
433
429
|
],
|
434
430
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
435
431
|
mediaType: "json",
|
436
|
-
serializer
|
432
|
+
serializer,
|
437
433
|
};
|
438
434
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
439
|
-
path:
|
440
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
435
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
441
436
|
httpMethod: "DELETE",
|
442
437
|
responses: {
|
443
438
|
200: {},
|
@@ -445,8 +440,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
445
440
|
202: {},
|
446
441
|
204: {},
|
447
442
|
default: {
|
448
|
-
bodyMapper: Mappers.ErrorDetails
|
449
|
-
}
|
443
|
+
bodyMapper: Mappers.ErrorDetails,
|
444
|
+
},
|
450
445
|
},
|
451
446
|
queryParameters: [Parameters.apiVersion],
|
452
447
|
urlParameters: [
|
@@ -454,8 +449,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
454
449
|
Parameters.subscriptionId,
|
455
450
|
Parameters.resourceGroupName,
|
456
451
|
Parameters.privateEndpointConnectionName,
|
457
|
-
Parameters.workspaceName
|
452
|
+
Parameters.workspaceName,
|
458
453
|
],
|
459
454
|
headerParameters: [Parameters.accept],
|
460
|
-
serializer
|
455
|
+
serializer,
|
461
456
|
};
|
@@ -17,13 +17,14 @@ import {
|
|
17
17
|
WorkspacePrivateLinkResourcesListByWorkspaceOptionalParams,
|
18
18
|
WorkspacePrivateLinkResourcesListByWorkspaceResponse,
|
19
19
|
WorkspacePrivateLinkResourcesGetOptionalParams,
|
20
|
-
WorkspacePrivateLinkResourcesGetResponse
|
20
|
+
WorkspacePrivateLinkResourcesGetResponse,
|
21
21
|
} from "../models";
|
22
22
|
|
23
23
|
/// <reference lib="esnext.asynciterable" />
|
24
24
|
/** Class containing WorkspacePrivateLinkResources operations. */
|
25
25
|
export class WorkspacePrivateLinkResourcesImpl
|
26
|
-
implements WorkspacePrivateLinkResources
|
26
|
+
implements WorkspacePrivateLinkResources
|
27
|
+
{
|
27
28
|
private readonly client: HealthcareApisManagementClient;
|
28
29
|
|
29
30
|
/**
|
@@ -43,12 +44,12 @@ export class WorkspacePrivateLinkResourcesImpl
|
|
43
44
|
public listByWorkspace(
|
44
45
|
resourceGroupName: string,
|
45
46
|
workspaceName: string,
|
46
|
-
options?: WorkspacePrivateLinkResourcesListByWorkspaceOptionalParams
|
47
|
+
options?: WorkspacePrivateLinkResourcesListByWorkspaceOptionalParams,
|
47
48
|
): PagedAsyncIterableIterator<PrivateLinkResourceDescription> {
|
48
49
|
const iter = this.listByWorkspacePagingAll(
|
49
50
|
resourceGroupName,
|
50
51
|
workspaceName,
|
51
|
-
options
|
52
|
+
options,
|
52
53
|
);
|
53
54
|
return {
|
54
55
|
next() {
|
@@ -65,9 +66,9 @@ export class WorkspacePrivateLinkResourcesImpl
|
|
65
66
|
resourceGroupName,
|
66
67
|
workspaceName,
|
67
68
|
options,
|
68
|
-
settings
|
69
|
+
settings,
|
69
70
|
);
|
70
|
-
}
|
71
|
+
},
|
71
72
|
};
|
72
73
|
}
|
73
74
|
|
@@ -75,13 +76,13 @@ export class WorkspacePrivateLinkResourcesImpl
|
|
75
76
|
resourceGroupName: string,
|
76
77
|
workspaceName: string,
|
77
78
|
options?: WorkspacePrivateLinkResourcesListByWorkspaceOptionalParams,
|
78
|
-
_settings?: PageSettings
|
79
|
+
_settings?: PageSettings,
|
79
80
|
): AsyncIterableIterator<PrivateLinkResourceDescription[]> {
|
80
81
|
let result: WorkspacePrivateLinkResourcesListByWorkspaceResponse;
|
81
82
|
result = await this._listByWorkspace(
|
82
83
|
resourceGroupName,
|
83
84
|
workspaceName,
|
84
|
-
options
|
85
|
+
options,
|
85
86
|
);
|
86
87
|
yield result.value || [];
|
87
88
|
}
|
@@ -89,12 +90,12 @@ export class WorkspacePrivateLinkResourcesImpl
|
|
89
90
|
private async *listByWorkspacePagingAll(
|
90
91
|
resourceGroupName: string,
|
91
92
|
workspaceName: string,
|
92
|
-
options?: WorkspacePrivateLinkResourcesListByWorkspaceOptionalParams
|
93
|
+
options?: WorkspacePrivateLinkResourcesListByWorkspaceOptionalParams,
|
93
94
|
): AsyncIterableIterator<PrivateLinkResourceDescription> {
|
94
95
|
for await (const page of this.listByWorkspacePagingPage(
|
95
96
|
resourceGroupName,
|
96
97
|
workspaceName,
|
97
|
-
options
|
98
|
+
options,
|
98
99
|
)) {
|
99
100
|
yield* page;
|
100
101
|
}
|
@@ -109,11 +110,11 @@ export class WorkspacePrivateLinkResourcesImpl
|
|
109
110
|
private _listByWorkspace(
|
110
111
|
resourceGroupName: string,
|
111
112
|
workspaceName: string,
|
112
|
-
options?: WorkspacePrivateLinkResourcesListByWorkspaceOptionalParams
|
113
|
+
options?: WorkspacePrivateLinkResourcesListByWorkspaceOptionalParams,
|
113
114
|
): Promise<WorkspacePrivateLinkResourcesListByWorkspaceResponse> {
|
114
115
|
return this.client.sendOperationRequest(
|
115
116
|
{ resourceGroupName, workspaceName, options },
|
116
|
-
listByWorkspaceOperationSpec
|
117
|
+
listByWorkspaceOperationSpec,
|
117
118
|
);
|
118
119
|
}
|
119
120
|
|
@@ -128,11 +129,11 @@ export class WorkspacePrivateLinkResourcesImpl
|
|
128
129
|
resourceGroupName: string,
|
129
130
|
workspaceName: string,
|
130
131
|
groupName: string,
|
131
|
-
options?: WorkspacePrivateLinkResourcesGetOptionalParams
|
132
|
+
options?: WorkspacePrivateLinkResourcesGetOptionalParams,
|
132
133
|
): Promise<WorkspacePrivateLinkResourcesGetResponse> {
|
133
134
|
return this.client.sendOperationRequest(
|
134
135
|
{ resourceGroupName, workspaceName, groupName, options },
|
135
|
-
getOperationSpec
|
136
|
+
getOperationSpec,
|
136
137
|
);
|
137
138
|
}
|
138
139
|
}
|
@@ -140,38 +141,36 @@ export class WorkspacePrivateLinkResourcesImpl
|
|
140
141
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
141
142
|
|
142
143
|
const listByWorkspaceOperationSpec: coreClient.OperationSpec = {
|
143
|
-
path:
|
144
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources",
|
144
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources",
|
145
145
|
httpMethod: "GET",
|
146
146
|
responses: {
|
147
147
|
200: {
|
148
|
-
bodyMapper: Mappers.PrivateLinkResourceListResultDescription
|
148
|
+
bodyMapper: Mappers.PrivateLinkResourceListResultDescription,
|
149
149
|
},
|
150
150
|
default: {
|
151
|
-
bodyMapper: Mappers.ErrorDetails
|
152
|
-
}
|
151
|
+
bodyMapper: Mappers.ErrorDetails,
|
152
|
+
},
|
153
153
|
},
|
154
154
|
queryParameters: [Parameters.apiVersion],
|
155
155
|
urlParameters: [
|
156
156
|
Parameters.$host,
|
157
157
|
Parameters.subscriptionId,
|
158
158
|
Parameters.resourceGroupName,
|
159
|
-
Parameters.workspaceName
|
159
|
+
Parameters.workspaceName,
|
160
160
|
],
|
161
161
|
headerParameters: [Parameters.accept],
|
162
|
-
serializer
|
162
|
+
serializer,
|
163
163
|
};
|
164
164
|
const getOperationSpec: coreClient.OperationSpec = {
|
165
|
-
path:
|
166
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources/{groupName}",
|
165
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources/{groupName}",
|
167
166
|
httpMethod: "GET",
|
168
167
|
responses: {
|
169
168
|
200: {
|
170
|
-
bodyMapper: Mappers.PrivateLinkResourceDescription
|
169
|
+
bodyMapper: Mappers.PrivateLinkResourceDescription,
|
171
170
|
},
|
172
171
|
default: {
|
173
|
-
bodyMapper: Mappers.ErrorDetails
|
174
|
-
}
|
172
|
+
bodyMapper: Mappers.ErrorDetails,
|
173
|
+
},
|
175
174
|
},
|
176
175
|
queryParameters: [Parameters.apiVersion],
|
177
176
|
urlParameters: [
|
@@ -179,8 +178,8 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
179
178
|
Parameters.subscriptionId,
|
180
179
|
Parameters.resourceGroupName,
|
181
180
|
Parameters.groupName,
|
182
|
-
Parameters.workspaceName
|
181
|
+
Parameters.workspaceName,
|
183
182
|
],
|
184
183
|
headerParameters: [Parameters.accept],
|
185
|
-
serializer
|
184
|
+
serializer,
|
186
185
|
};
|