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