@azure/arm-healthcareapis 3.1.1-alpha.20250717.1 → 3.1.1-alpha.20250718.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/healthcareApisManagementClient.js +26 -5
- package/dist/browser/healthcareApisManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +158 -67
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/dicomServices.js +56 -58
- package/dist/browser/operations/dicomServices.js.map +1 -1
- package/dist/browser/operations/fhirDestinations.js +23 -40
- package/dist/browser/operations/fhirDestinations.js.map +1 -1
- package/dist/browser/operations/fhirServices.js +56 -58
- package/dist/browser/operations/fhirServices.js.map +1 -1
- package/dist/browser/operations/iotConnectorFhirDestination.js +23 -12
- package/dist/browser/operations/iotConnectorFhirDestination.js.map +1 -1
- package/dist/browser/operations/iotConnectors.js +56 -58
- package/dist/browser/operations/iotConnectors.js.map +1 -1
- package/dist/browser/operations/operationResults.js +1 -0
- package/dist/browser/operations/operationResults.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +32 -39
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +1 -0
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/services.js +78 -97
- package/dist/browser/operations/services.js.map +1 -1
- package/dist/browser/operations/workspacePrivateEndpointConnections.js +32 -39
- package/dist/browser/operations/workspacePrivateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/workspacePrivateLinkResources.js +10 -27
- package/dist/browser/operations/workspacePrivateLinkResources.js.map +1 -1
- package/dist/browser/operations/workspaces.js +78 -97
- package/dist/browser/operations/workspaces.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/healthcareApisManagementClient.js +26 -5
- package/dist/commonjs/healthcareApisManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +158 -67
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/dicomServices.js +56 -57
- package/dist/commonjs/operations/dicomServices.js.map +1 -1
- package/dist/commonjs/operations/fhirDestinations.js +23 -39
- package/dist/commonjs/operations/fhirDestinations.js.map +1 -1
- package/dist/commonjs/operations/fhirServices.js +56 -57
- package/dist/commonjs/operations/fhirServices.js.map +1 -1
- package/dist/commonjs/operations/iotConnectorFhirDestination.js +23 -12
- package/dist/commonjs/operations/iotConnectorFhirDestination.js.map +1 -1
- package/dist/commonjs/operations/iotConnectors.js +56 -57
- package/dist/commonjs/operations/iotConnectors.js.map +1 -1
- package/dist/commonjs/operations/operationResults.js +1 -0
- package/dist/commonjs/operations/operationResults.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +32 -38
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +1 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/services.js +78 -96
- package/dist/commonjs/operations/services.js.map +1 -1
- package/dist/commonjs/operations/workspacePrivateEndpointConnections.js +32 -38
- package/dist/commonjs/operations/workspacePrivateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/workspacePrivateLinkResources.js +10 -26
- package/dist/commonjs/operations/workspacePrivateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/workspaces.js +78 -96
- package/dist/commonjs/operations/workspaces.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/healthcareApisManagementClient.js +26 -5
- package/dist/esm/healthcareApisManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +158 -67
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/dicomServices.js +56 -58
- package/dist/esm/operations/dicomServices.js.map +1 -1
- package/dist/esm/operations/fhirDestinations.js +23 -40
- package/dist/esm/operations/fhirDestinations.js.map +1 -1
- package/dist/esm/operations/fhirServices.js +56 -58
- package/dist/esm/operations/fhirServices.js.map +1 -1
- package/dist/esm/operations/iotConnectorFhirDestination.js +23 -12
- package/dist/esm/operations/iotConnectorFhirDestination.js.map +1 -1
- package/dist/esm/operations/iotConnectors.js +56 -58
- package/dist/esm/operations/iotConnectors.js.map +1 -1
- package/dist/esm/operations/operationResults.js +1 -0
- package/dist/esm/operations/operationResults.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +32 -39
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +1 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/services.js +78 -97
- package/dist/esm/operations/services.js.map +1 -1
- package/dist/esm/operations/workspacePrivateEndpointConnections.js +32 -39
- package/dist/esm/operations/workspacePrivateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/workspacePrivateLinkResources.js +10 -27
- package/dist/esm/operations/workspacePrivateLinkResources.js.map +1 -1
- package/dist/esm/operations/workspaces.js +78 -97
- package/dist/esm/operations/workspaces.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/healthcareApisManagementClient.js +26 -5
- package/dist/react-native/healthcareApisManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +158 -67
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/dicomServices.js +56 -58
- package/dist/react-native/operations/dicomServices.js.map +1 -1
- package/dist/react-native/operations/fhirDestinations.js +23 -40
- package/dist/react-native/operations/fhirDestinations.js.map +1 -1
- package/dist/react-native/operations/fhirServices.js +56 -58
- package/dist/react-native/operations/fhirServices.js.map +1 -1
- package/dist/react-native/operations/iotConnectorFhirDestination.js +23 -12
- package/dist/react-native/operations/iotConnectorFhirDestination.js.map +1 -1
- package/dist/react-native/operations/iotConnectors.js +56 -58
- package/dist/react-native/operations/iotConnectors.js.map +1 -1
- package/dist/react-native/operations/operationResults.js +1 -0
- package/dist/react-native/operations/operationResults.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +32 -39
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +1 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/services.js +78 -97
- package/dist/react-native/operations/services.js.map +1 -1
- package/dist/react-native/operations/workspacePrivateEndpointConnections.js +32 -39
- package/dist/react-native/operations/workspacePrivateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/workspacePrivateLinkResources.js +10 -27
- package/dist/react-native/operations/workspacePrivateLinkResources.js.map +1 -1
- package/dist/react-native/operations/workspaces.js +78 -97
- package/dist/react-native/operations/workspaces.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-healthcareapis-node.api.md +1292 -1292
@@ -5,7 +5,6 @@
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
8
|
import * as coreClient from "@azure/core-client";
|
10
9
|
import * as Mappers from "../models/mappers.js";
|
11
10
|
import * as Parameters from "../models/parameters.js";
|
@@ -14,6 +13,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
14
13
|
/// <reference lib="esnext.asynciterable" />
|
15
14
|
/** Class containing PrivateEndpointConnections operations. */
|
16
15
|
export class PrivateEndpointConnectionsImpl {
|
16
|
+
client;
|
17
17
|
/**
|
18
18
|
* Initialize a new instance of the class PrivateEndpointConnections class.
|
19
19
|
* @param client Reference to the service client
|
@@ -37,39 +37,22 @@ export class PrivateEndpointConnectionsImpl {
|
|
37
37
|
return this;
|
38
38
|
},
|
39
39
|
byPage: (settings) => {
|
40
|
-
if (settings
|
40
|
+
if (settings?.maxPageSize) {
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
42
42
|
}
|
43
43
|
return this.listByServicePagingPage(resourceGroupName, resourceName, options, settings);
|
44
44
|
},
|
45
45
|
};
|
46
46
|
}
|
47
|
-
listByServicePagingPage(resourceGroupName, resourceName, options, _settings) {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
yield yield __await(result.value || []);
|
52
|
-
});
|
47
|
+
async *listByServicePagingPage(resourceGroupName, resourceName, options, _settings) {
|
48
|
+
let result;
|
49
|
+
result = await this._listByService(resourceGroupName, resourceName, options);
|
50
|
+
yield result.value || [];
|
53
51
|
}
|
54
|
-
listByServicePagingAll(resourceGroupName, resourceName, options) {
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
for (var _d = true, _e = __asyncValues(this.listByServicePagingPage(resourceGroupName, resourceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
59
|
-
_c = _f.value;
|
60
|
-
_d = false;
|
61
|
-
const page = _c;
|
62
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
63
|
-
}
|
64
|
-
}
|
65
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
66
|
-
finally {
|
67
|
-
try {
|
68
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
69
|
-
}
|
70
|
-
finally { if (e_1) throw e_1.error; }
|
71
|
-
}
|
72
|
-
});
|
52
|
+
async *listByServicePagingAll(resourceGroupName, resourceName, options) {
|
53
|
+
for await (const page of this.listByServicePagingPage(resourceGroupName, resourceName, options)) {
|
54
|
+
yield* page;
|
55
|
+
}
|
73
56
|
}
|
74
57
|
/**
|
75
58
|
* Lists all private endpoint connections for a service.
|
@@ -110,14 +93,19 @@ export class PrivateEndpointConnectionsImpl {
|
|
110
93
|
return this.client.sendOperationRequest(args, spec);
|
111
94
|
};
|
112
95
|
const sendOperationFn = async (args, spec) => {
|
113
|
-
var _a;
|
114
96
|
let currentRawResponse = undefined;
|
115
|
-
const providedCallback =
|
97
|
+
const providedCallback = args.options?.onResponse;
|
116
98
|
const callback = (rawResponse, flatResponse) => {
|
117
99
|
currentRawResponse = rawResponse;
|
118
|
-
providedCallback
|
100
|
+
providedCallback?.(rawResponse, flatResponse);
|
101
|
+
};
|
102
|
+
const updatedArgs = {
|
103
|
+
...args,
|
104
|
+
options: {
|
105
|
+
...args.options,
|
106
|
+
onResponse: callback,
|
107
|
+
},
|
119
108
|
};
|
120
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
121
109
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
122
110
|
return {
|
123
111
|
flatResponse,
|
@@ -140,8 +128,8 @@ export class PrivateEndpointConnectionsImpl {
|
|
140
128
|
spec: createOrUpdateOperationSpec,
|
141
129
|
});
|
142
130
|
const poller = await createHttpPoller(lro, {
|
143
|
-
restoreFrom: options
|
144
|
-
intervalInMs: options
|
131
|
+
restoreFrom: options?.resumeFrom,
|
132
|
+
intervalInMs: options?.updateIntervalInMs,
|
145
133
|
});
|
146
134
|
await poller.poll();
|
147
135
|
return poller;
|
@@ -172,14 +160,19 @@ export class PrivateEndpointConnectionsImpl {
|
|
172
160
|
return this.client.sendOperationRequest(args, spec);
|
173
161
|
};
|
174
162
|
const sendOperationFn = async (args, spec) => {
|
175
|
-
var _a;
|
176
163
|
let currentRawResponse = undefined;
|
177
|
-
const providedCallback =
|
164
|
+
const providedCallback = args.options?.onResponse;
|
178
165
|
const callback = (rawResponse, flatResponse) => {
|
179
166
|
currentRawResponse = rawResponse;
|
180
|
-
providedCallback
|
167
|
+
providedCallback?.(rawResponse, flatResponse);
|
168
|
+
};
|
169
|
+
const updatedArgs = {
|
170
|
+
...args,
|
171
|
+
options: {
|
172
|
+
...args.options,
|
173
|
+
onResponse: callback,
|
174
|
+
},
|
181
175
|
};
|
182
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
183
176
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
184
177
|
return {
|
185
178
|
flatResponse,
|
@@ -201,8 +194,8 @@ export class PrivateEndpointConnectionsImpl {
|
|
201
194
|
spec: deleteOperationSpec,
|
202
195
|
});
|
203
196
|
const poller = await createHttpPoller(lro, {
|
204
|
-
restoreFrom: options
|
205
|
-
intervalInMs: options
|
197
|
+
restoreFrom: options?.resumeFrom,
|
198
|
+
intervalInMs: options?.updateIntervalInMs,
|
206
199
|
});
|
207
200
|
await poller.poll();
|
208
201
|
return poller;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAa9C,4CA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AAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { PrivateEndpointConnections } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { HealthcareApisManagementClient } from \"../healthcareApisManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrivateEndpointConnectionDescription,\n PrivateEndpointConnectionsListByServiceOptionalParams,\n PrivateEndpointConnectionsListByServiceResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnection,\n PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n PrivateEndpointConnectionsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl\n implements PrivateEndpointConnections\n{\n private readonly client: HealthcareApisManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: HealthcareApisManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all private endpoint connections for a service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param options The options parameters.\n */\n public listByService(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n ): PagedAsyncIterableIterator<PrivateEndpointConnectionDescription> {\n const iter = this.listByServicePagingAll(\n resourceGroupName,\n resourceName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByServicePagingPage(\n resourceGroupName,\n resourceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByServicePagingPage(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<PrivateEndpointConnectionDescription[]> {\n let result: PrivateEndpointConnectionsListByServiceResponse;\n result = await this._listByService(\n resourceGroupName,\n resourceName,\n options,\n );\n yield result.value || [];\n }\n\n private async *listByServicePagingAll(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n ): AsyncIterableIterator<PrivateEndpointConnectionDescription> {\n for await (const page of this.listByServicePagingPage(\n resourceGroupName,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all private endpoint connections for a service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param options The options parameters.\n */\n private _listByService(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n ): Promise<PrivateEndpointConnectionsListByServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listByServiceOperationSpec,\n );\n }\n\n /**\n * Gets the specified private endpoint connection associated with the service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of the specified private endpoint connection associated with the service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,\n PrivateEndpointConnectionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n properties,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update the state of the specified private endpoint connection associated with the service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n properties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a private endpoint connection.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a private endpoint connection.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByServiceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResultDescription,\n },\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n 204: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
1
|
+
{"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAa9C,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAGxB,MAAM,CAAiC;IAExD;;;OAGG;IACH,YAAY,MAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAClB,iBAAyB,EACzB,YAAoB,EACpB,OAA+D;QAE/D,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,YAAY,EACZ,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC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ChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,0LAA0L;IAChM,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { PrivateEndpointConnections } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { HealthcareApisManagementClient } from \"../healthcareApisManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrivateEndpointConnectionDescription,\n PrivateEndpointConnectionsListByServiceOptionalParams,\n PrivateEndpointConnectionsListByServiceResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnection,\n PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n PrivateEndpointConnectionsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl\n implements PrivateEndpointConnections\n{\n private readonly client: HealthcareApisManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: HealthcareApisManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all private endpoint connections for a service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param options The options parameters.\n */\n public listByService(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n ): PagedAsyncIterableIterator<PrivateEndpointConnectionDescription> {\n const iter = this.listByServicePagingAll(\n resourceGroupName,\n resourceName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByServicePagingPage(\n resourceGroupName,\n resourceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByServicePagingPage(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<PrivateEndpointConnectionDescription[]> {\n let result: PrivateEndpointConnectionsListByServiceResponse;\n result = await this._listByService(\n resourceGroupName,\n resourceName,\n options,\n );\n yield result.value || [];\n }\n\n private async *listByServicePagingAll(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n ): AsyncIterableIterator<PrivateEndpointConnectionDescription> {\n for await (const page of this.listByServicePagingPage(\n resourceGroupName,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all private endpoint connections for a service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param options The options parameters.\n */\n private _listByService(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n ): Promise<PrivateEndpointConnectionsListByServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listByServiceOperationSpec,\n );\n }\n\n /**\n * Gets the specified private endpoint connection associated with the service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of the specified private endpoint connection associated with the service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,\n PrivateEndpointConnectionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n properties,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update the state of the specified private endpoint connection associated with the service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n properties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a private endpoint connection.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a private endpoint connection.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByServiceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResultDescription,\n },\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n 204: {\n bodyMapper: Mappers.PrivateEndpointConnectionDescription,\n },\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
11
11
|
/** Class containing PrivateLinkResources operations. */
|
12
12
|
export class PrivateLinkResourcesImpl {
|
13
|
+
client;
|
13
14
|
/**
|
14
15
|
* Initialize a new instance of the class PrivateLinkResources class.
|
15
16
|
* @param client Reference to the service client
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;
|
1
|
+
{"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAClB,MAAM,CAAiC;IAExD;;;OAGG;IACH,YAAY,MAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,aAAa,CACX,iBAAyB,EACzB,YAAoB,EACpB,OAAyD;QAEzD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,SAAiB,EACjB,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,EACvD,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EAAE,oJAAoJ;IAC1J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wCAAwC;SAC7D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,gKAAgK;IACtK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PrivateLinkResources } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { HealthcareApisManagementClient } from \"../healthcareApisManagementClient.js\";\nimport {\n PrivateLinkResourcesListByServiceOptionalParams,\n PrivateLinkResourcesListByServiceResponse,\n PrivateLinkResourcesGetOptionalParams,\n PrivateLinkResourcesGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing PrivateLinkResources operations. */\nexport class PrivateLinkResourcesImpl implements PrivateLinkResources {\n private readonly client: HealthcareApisManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateLinkResources class.\n * @param client Reference to the service client\n */\n constructor(client: HealthcareApisManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the private link resources that need to be created for a service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param options The options parameters.\n */\n listByService(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateLinkResourcesListByServiceOptionalParams,\n ): Promise<PrivateLinkResourcesListByServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listByServiceOperationSpec,\n );\n }\n\n /**\n * Gets a private link resource that need to be created for a service.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param resourceName The name of the service instance.\n * @param groupName The name of the private link resource group.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n groupName: string,\n options?: PrivateLinkResourcesGetOptionalParams,\n ): Promise<PrivateLinkResourcesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, groupName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByServiceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourceListResultDescription,\n },\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources/{groupName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourceDescription,\n },\n default: {\n bodyMapper: Mappers.ErrorDetails,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.groupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
@@ -5,7 +5,6 @@
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
10
9
|
import * as coreClient from "@azure/core-client";
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
16
15
|
/** Class containing Services operations. */
|
17
16
|
export class ServicesImpl {
|
17
|
+
client;
|
18
18
|
/**
|
19
19
|
* Initialize a new instance of the class Services class.
|
20
20
|
* @param client Reference to the service client
|
@@ -36,52 +36,35 @@ export class ServicesImpl {
|
|
36
36
|
return this;
|
37
37
|
},
|
38
38
|
byPage: (settings) => {
|
39
|
-
if (settings
|
39
|
+
if (settings?.maxPageSize) {
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
41
41
|
}
|
42
42
|
return this.listPagingPage(options, settings);
|
43
43
|
},
|
44
44
|
};
|
45
45
|
}
|
46
|
-
listPagingPage(options, settings) {
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
}
|
64
|
-
});
|
46
|
+
async *listPagingPage(options, settings) {
|
47
|
+
let result;
|
48
|
+
let continuationToken = settings?.continuationToken;
|
49
|
+
if (!continuationToken) {
|
50
|
+
result = await this._list(options);
|
51
|
+
let page = result.value || [];
|
52
|
+
continuationToken = result.nextLink;
|
53
|
+
setContinuationToken(page, continuationToken);
|
54
|
+
yield page;
|
55
|
+
}
|
56
|
+
while (continuationToken) {
|
57
|
+
result = await this._listNext(continuationToken, options);
|
58
|
+
continuationToken = result.nextLink;
|
59
|
+
let page = result.value || [];
|
60
|
+
setContinuationToken(page, continuationToken);
|
61
|
+
yield page;
|
62
|
+
}
|
65
63
|
}
|
66
|
-
listPagingAll(options) {
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
71
|
-
_c = _f.value;
|
72
|
-
_d = false;
|
73
|
-
const page = _c;
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
75
|
-
}
|
76
|
-
}
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
78
|
-
finally {
|
79
|
-
try {
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
81
|
-
}
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
83
|
-
}
|
84
|
-
});
|
64
|
+
async *listPagingAll(options) {
|
65
|
+
for await (const page of this.listPagingPage(options)) {
|
66
|
+
yield* page;
|
67
|
+
}
|
85
68
|
}
|
86
69
|
/**
|
87
70
|
* Get all the service instances in a resource group.
|
@@ -98,52 +81,35 @@ export class ServicesImpl {
|
|
98
81
|
return this;
|
99
82
|
},
|
100
83
|
byPage: (settings) => {
|
101
|
-
if (settings
|
84
|
+
if (settings?.maxPageSize) {
|
102
85
|
throw new Error("maxPageSize is not supported by this operation.");
|
103
86
|
}
|
104
87
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
105
88
|
},
|
106
89
|
};
|
107
90
|
}
|
108
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
}
|
126
|
-
});
|
91
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
92
|
+
let result;
|
93
|
+
let continuationToken = settings?.continuationToken;
|
94
|
+
if (!continuationToken) {
|
95
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
96
|
+
let page = result.value || [];
|
97
|
+
continuationToken = result.nextLink;
|
98
|
+
setContinuationToken(page, continuationToken);
|
99
|
+
yield page;
|
100
|
+
}
|
101
|
+
while (continuationToken) {
|
102
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
103
|
+
continuationToken = result.nextLink;
|
104
|
+
let page = result.value || [];
|
105
|
+
setContinuationToken(page, continuationToken);
|
106
|
+
yield page;
|
107
|
+
}
|
127
108
|
}
|
128
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
133
|
-
_c = _f.value;
|
134
|
-
_d = false;
|
135
|
-
const page = _c;
|
136
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
137
|
-
}
|
138
|
-
}
|
139
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
140
|
-
finally {
|
141
|
-
try {
|
142
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
143
|
-
}
|
144
|
-
finally { if (e_2) throw e_2.error; }
|
145
|
-
}
|
146
|
-
});
|
109
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
110
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
111
|
+
yield* page;
|
112
|
+
}
|
147
113
|
}
|
148
114
|
/**
|
149
115
|
* Get the metadata of a service instance.
|
@@ -166,14 +132,19 @@ export class ServicesImpl {
|
|
166
132
|
return this.client.sendOperationRequest(args, spec);
|
167
133
|
};
|
168
134
|
const sendOperationFn = async (args, spec) => {
|
169
|
-
var _a;
|
170
135
|
let currentRawResponse = undefined;
|
171
|
-
const providedCallback =
|
136
|
+
const providedCallback = args.options?.onResponse;
|
172
137
|
const callback = (rawResponse, flatResponse) => {
|
173
138
|
currentRawResponse = rawResponse;
|
174
|
-
providedCallback
|
139
|
+
providedCallback?.(rawResponse, flatResponse);
|
140
|
+
};
|
141
|
+
const updatedArgs = {
|
142
|
+
...args,
|
143
|
+
options: {
|
144
|
+
...args.options,
|
145
|
+
onResponse: callback,
|
146
|
+
},
|
175
147
|
};
|
176
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
177
148
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
178
149
|
return {
|
179
150
|
flatResponse,
|
@@ -190,8 +161,8 @@ export class ServicesImpl {
|
|
190
161
|
spec: createOrUpdateOperationSpec,
|
191
162
|
});
|
192
163
|
const poller = await createHttpPoller(lro, {
|
193
|
-
restoreFrom: options
|
194
|
-
intervalInMs: options
|
164
|
+
restoreFrom: options?.resumeFrom,
|
165
|
+
intervalInMs: options?.updateIntervalInMs,
|
195
166
|
});
|
196
167
|
await poller.poll();
|
197
168
|
return poller;
|
@@ -219,14 +190,19 @@ export class ServicesImpl {
|
|
219
190
|
return this.client.sendOperationRequest(args, spec);
|
220
191
|
};
|
221
192
|
const sendOperationFn = async (args, spec) => {
|
222
|
-
var _a;
|
223
193
|
let currentRawResponse = undefined;
|
224
|
-
const providedCallback =
|
194
|
+
const providedCallback = args.options?.onResponse;
|
225
195
|
const callback = (rawResponse, flatResponse) => {
|
226
196
|
currentRawResponse = rawResponse;
|
227
|
-
providedCallback
|
197
|
+
providedCallback?.(rawResponse, flatResponse);
|
198
|
+
};
|
199
|
+
const updatedArgs = {
|
200
|
+
...args,
|
201
|
+
options: {
|
202
|
+
...args.options,
|
203
|
+
onResponse: callback,
|
204
|
+
},
|
228
205
|
};
|
229
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
230
206
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
231
207
|
return {
|
232
208
|
flatResponse,
|
@@ -248,8 +224,8 @@ export class ServicesImpl {
|
|
248
224
|
spec: updateOperationSpec,
|
249
225
|
});
|
250
226
|
const poller = await createHttpPoller(lro, {
|
251
|
-
restoreFrom: options
|
252
|
-
intervalInMs: options
|
227
|
+
restoreFrom: options?.resumeFrom,
|
228
|
+
intervalInMs: options?.updateIntervalInMs,
|
253
229
|
});
|
254
230
|
await poller.poll();
|
255
231
|
return poller;
|
@@ -276,14 +252,19 @@ export class ServicesImpl {
|
|
276
252
|
return this.client.sendOperationRequest(args, spec);
|
277
253
|
};
|
278
254
|
const sendOperationFn = async (args, spec) => {
|
279
|
-
var _a;
|
280
255
|
let currentRawResponse = undefined;
|
281
|
-
const providedCallback =
|
256
|
+
const providedCallback = args.options?.onResponse;
|
282
257
|
const callback = (rawResponse, flatResponse) => {
|
283
258
|
currentRawResponse = rawResponse;
|
284
|
-
providedCallback
|
259
|
+
providedCallback?.(rawResponse, flatResponse);
|
260
|
+
};
|
261
|
+
const updatedArgs = {
|
262
|
+
...args,
|
263
|
+
options: {
|
264
|
+
...args.options,
|
265
|
+
onResponse: callback,
|
266
|
+
},
|
285
267
|
};
|
286
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
287
268
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
288
269
|
return {
|
289
270
|
flatResponse,
|
@@ -300,8 +281,8 @@ export class ServicesImpl {
|
|
300
281
|
spec: deleteOperationSpec,
|
301
282
|
});
|
302
283
|
const poller = await createHttpPoller(lro, {
|
303
|
-
restoreFrom: options
|
304
|
-
intervalInMs: options
|
284
|
+
restoreFrom: options?.resumeFrom,
|
285
|
+
intervalInMs: options?.updateIntervalInMs,
|
305
286
|
});
|
306
287
|
await poller.poll();
|
307
288
|
return poller;
|