@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
@@ -17,6 +17,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
17
17
|
/// <reference lib="esnext.asynciterable" />
|
18
18
|
/** Class containing WorkspacePrivateEndpointConnections operations. */
|
19
19
|
class WorkspacePrivateEndpointConnectionsImpl {
|
20
|
+
client;
|
20
21
|
/**
|
21
22
|
* Initialize a new instance of the class WorkspacePrivateEndpointConnections class.
|
22
23
|
* @param client Reference to the service client
|
@@ -40,39 +41,22 @@ class WorkspacePrivateEndpointConnectionsImpl {
|
|
40
41
|
return this;
|
41
42
|
},
|
42
43
|
byPage: (settings) => {
|
43
|
-
if (settings
|
44
|
+
if (settings?.maxPageSize) {
|
44
45
|
throw new Error("maxPageSize is not supported by this operation.");
|
45
46
|
}
|
46
47
|
return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
|
47
48
|
},
|
48
49
|
};
|
49
50
|
}
|
50
|
-
listByWorkspacePagingPage(resourceGroupName, workspaceName, options, _settings) {
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
yield yield tslib_1.__await(result.value || []);
|
55
|
-
});
|
51
|
+
async *listByWorkspacePagingPage(resourceGroupName, workspaceName, options, _settings) {
|
52
|
+
let result;
|
53
|
+
result = await this._listByWorkspace(resourceGroupName, workspaceName, options);
|
54
|
+
yield result.value || [];
|
56
55
|
}
|
57
|
-
listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
62
|
-
_c = _f.value;
|
63
|
-
_d = false;
|
64
|
-
const page = _c;
|
65
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
66
|
-
}
|
67
|
-
}
|
68
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
69
|
-
finally {
|
70
|
-
try {
|
71
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
72
|
-
}
|
73
|
-
finally { if (e_1) throw e_1.error; }
|
74
|
-
}
|
75
|
-
});
|
56
|
+
async *listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
|
57
|
+
for await (const page of this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)) {
|
58
|
+
yield* page;
|
59
|
+
}
|
76
60
|
}
|
77
61
|
/**
|
78
62
|
* Lists all private endpoint connections for a workspace.
|
@@ -113,14 +97,19 @@ class WorkspacePrivateEndpointConnectionsImpl {
|
|
113
97
|
return this.client.sendOperationRequest(args, spec);
|
114
98
|
};
|
115
99
|
const sendOperationFn = async (args, spec) => {
|
116
|
-
var _a;
|
117
100
|
let currentRawResponse = undefined;
|
118
|
-
const providedCallback =
|
101
|
+
const providedCallback = args.options?.onResponse;
|
119
102
|
const callback = (rawResponse, flatResponse) => {
|
120
103
|
currentRawResponse = rawResponse;
|
121
|
-
providedCallback
|
104
|
+
providedCallback?.(rawResponse, flatResponse);
|
105
|
+
};
|
106
|
+
const updatedArgs = {
|
107
|
+
...args,
|
108
|
+
options: {
|
109
|
+
...args.options,
|
110
|
+
onResponse: callback,
|
111
|
+
},
|
122
112
|
};
|
123
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
124
113
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
125
114
|
return {
|
126
115
|
flatResponse,
|
@@ -143,8 +132,8 @@ class WorkspacePrivateEndpointConnectionsImpl {
|
|
143
132
|
spec: createOrUpdateOperationSpec,
|
144
133
|
});
|
145
134
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
146
|
-
restoreFrom: options
|
147
|
-
intervalInMs: options
|
135
|
+
restoreFrom: options?.resumeFrom,
|
136
|
+
intervalInMs: options?.updateIntervalInMs,
|
148
137
|
});
|
149
138
|
await poller.poll();
|
150
139
|
return poller;
|
@@ -175,14 +164,19 @@ class WorkspacePrivateEndpointConnectionsImpl {
|
|
175
164
|
return this.client.sendOperationRequest(args, spec);
|
176
165
|
};
|
177
166
|
const sendOperationFn = async (args, spec) => {
|
178
|
-
var _a;
|
179
167
|
let currentRawResponse = undefined;
|
180
|
-
const providedCallback =
|
168
|
+
const providedCallback = args.options?.onResponse;
|
181
169
|
const callback = (rawResponse, flatResponse) => {
|
182
170
|
currentRawResponse = rawResponse;
|
183
|
-
providedCallback
|
171
|
+
providedCallback?.(rawResponse, flatResponse);
|
172
|
+
};
|
173
|
+
const updatedArgs = {
|
174
|
+
...args,
|
175
|
+
options: {
|
176
|
+
...args.options,
|
177
|
+
onResponse: callback,
|
178
|
+
},
|
184
179
|
};
|
185
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
186
180
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
187
181
|
return {
|
188
182
|
flatResponse,
|
@@ -204,8 +198,8 @@ class WorkspacePrivateEndpointConnectionsImpl {
|
|
204
198
|
spec: deleteOperationSpec,
|
205
199
|
});
|
206
200
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
207
|
-
restoreFrom: options
|
208
|
-
intervalInMs: options
|
201
|
+
restoreFrom: options?.resumeFrom,
|
202
|
+
intervalInMs: options?.updateIntervalInMs,
|
209
203
|
});
|
210
204
|
await poller.poll();
|
211
205
|
return poller;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"workspacePrivateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/workspacePrivateEndpointConnections.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAY9C,4CAA4C;AAC5C,uEAAuE;AACvE,MAAa,uCAAuC;IAKlD;;;OAGG;IACH,YAAY,MAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,eAAe,CACpB,iBAAyB,EACzB,aAAqB,EACrB,OAA0E;QAE1E,MAAM,IAAI,GAAG,IAAI,CAAC,wBAAwB,CACxC,iBAAiB,E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ACxC,UAAU,CAAC,aAAa;KACzB;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 { WorkspacePrivateEndpointConnections } 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 WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams,\n WorkspacePrivateEndpointConnectionsListByWorkspaceResponse,\n WorkspacePrivateEndpointConnectionsGetOptionalParams,\n WorkspacePrivateEndpointConnectionsGetResponse,\n WorkspacePrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse,\n WorkspacePrivateEndpointConnectionsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing WorkspacePrivateEndpointConnections operations. */\nexport class WorkspacePrivateEndpointConnectionsImpl\n implements WorkspacePrivateEndpointConnections\n{\n private readonly client: HealthcareApisManagementClient;\n\n /**\n * Initialize a new instance of the class WorkspacePrivateEndpointConnections 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 workspace.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param workspaceName The name of workspace resource.\n * @param options The options parameters.\n */\n public listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams,\n ): PagedAsyncIterableIterator<PrivateEndpointConnectionDescription> {\n const iter = this.listByWorkspacePagingAll(\n resourceGroupName,\n workspaceName,\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.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByWorkspacePagingPage(\n resourceGroupName: string,\n workspaceName: string,\n options?: WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<PrivateEndpointConnectionDescription[]> {\n let result: WorkspacePrivateEndpointConnectionsListByWorkspaceResponse;\n result = await this._listByWorkspace(\n resourceGroupName,\n workspaceName,\n options,\n );\n yield result.value || [];\n }\n\n private async *listByWorkspacePagingAll(\n resourceGroupName: string,\n workspaceName: string,\n options?: WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams,\n ): AsyncIterableIterator<PrivateEndpointConnectionDescription> {\n for await (const page of this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all private endpoint connections for a workspace.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param workspaceName The name of workspace resource.\n * @param options The options parameters.\n */\n private _listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams,\n ): Promise<WorkspacePrivateEndpointConnectionsListByWorkspaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listByWorkspaceOperationSpec,\n );\n }\n\n /**\n * Gets the specified private endpoint connection associated with the workspace.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param workspaceName The name of workspace resource.\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 workspaceName: string,\n privateEndpointConnectionName: string,\n options?: WorkspacePrivateEndpointConnectionsGetOptionalParams,\n ): Promise<WorkspacePrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n privateEndpointConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of the specified private endpoint connection associated with the workspace.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param workspaceName The name of workspace resource.\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 workspaceName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnectionDescription,\n options?: WorkspacePrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse>,\n WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse> => {\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 workspaceName,\n privateEndpointConnectionName,\n properties,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse,\n OperationState<WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse>\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 workspace.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param workspaceName The name of workspace resource.\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 workspaceName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnectionDescription,\n options?: WorkspacePrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n workspaceName,\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 workspaceName The name of workspace resource.\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 workspaceName: string,\n privateEndpointConnectionName: string,\n options?: WorkspacePrivateEndpointConnectionsDeleteOptionalParams,\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 workspaceName,\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 workspaceName The name of workspace resource.\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 workspaceName: string,\n privateEndpointConnectionName: string,\n options?: WorkspacePrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n workspaceName,\n privateEndpointConnectionName,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/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.workspaceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/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.privateEndpointConnectionName,\n Parameters.workspaceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/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.properties1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.privateEndpointConnectionName,\n Parameters.workspaceName,\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/workspaces/{workspaceName}/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.privateEndpointConnectionName,\n Parameters.workspaceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
1
|
+
{"version":3,"file":"workspacePrivateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/workspacePrivateEndpointConnections.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAY9C,4CAA4C;AAC5C,uEAAuE;AACvE,MAAa,uCAAuC;IAGjC,MAAM,CAAiC;IAExD;;;OAGG;IACH,YAAY,MAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,eAAe,CACpB,iBAAyB,EACzB,aAAqB,EACrB,OAA0E;QAE1E,MAAM,IAAI,GAAG,IAAI,CAAC,wBAAwB,CACxC,iBAAiB,EACjB,aAAa,EACb,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,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,y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ACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,6BAA6B;QACxC,UAAU,CAAC,aAAa;KACzB;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,6LAA6L;IACnM,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,6BAA6B;QACxC,UAAU,CAAC,aAAa;KACzB;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 { WorkspacePrivateEndpointConnections } 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 WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams,\n WorkspacePrivateEndpointConnectionsListByWorkspaceResponse,\n WorkspacePrivateEndpointConnectionsGetOptionalParams,\n WorkspacePrivateEndpointConnectionsGetResponse,\n WorkspacePrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse,\n WorkspacePrivateEndpointConnectionsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing WorkspacePrivateEndpointConnections operations. */\nexport class WorkspacePrivateEndpointConnectionsImpl\n implements WorkspacePrivateEndpointConnections\n{\n private readonly client: HealthcareApisManagementClient;\n\n /**\n * Initialize a new instance of the class WorkspacePrivateEndpointConnections 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 workspace.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param workspaceName The name of workspace resource.\n * @param options The options parameters.\n */\n public listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams,\n ): PagedAsyncIterableIterator<PrivateEndpointConnectionDescription> {\n const iter = this.listByWorkspacePagingAll(\n resourceGroupName,\n workspaceName,\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.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByWorkspacePagingPage(\n resourceGroupName: string,\n workspaceName: string,\n options?: WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<PrivateEndpointConnectionDescription[]> {\n let result: WorkspacePrivateEndpointConnectionsListByWorkspaceResponse;\n result = await this._listByWorkspace(\n resourceGroupName,\n workspaceName,\n options,\n );\n yield result.value || [];\n }\n\n private async *listByWorkspacePagingAll(\n resourceGroupName: string,\n workspaceName: string,\n options?: WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams,\n ): AsyncIterableIterator<PrivateEndpointConnectionDescription> {\n for await (const page of this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all private endpoint connections for a workspace.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param workspaceName The name of workspace resource.\n * @param options The options parameters.\n */\n private _listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: WorkspacePrivateEndpointConnectionsListByWorkspaceOptionalParams,\n ): Promise<WorkspacePrivateEndpointConnectionsListByWorkspaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listByWorkspaceOperationSpec,\n );\n }\n\n /**\n * Gets the specified private endpoint connection associated with the workspace.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param workspaceName The name of workspace resource.\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 workspaceName: string,\n privateEndpointConnectionName: string,\n options?: WorkspacePrivateEndpointConnectionsGetOptionalParams,\n ): Promise<WorkspacePrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n privateEndpointConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of the specified private endpoint connection associated with the workspace.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param workspaceName The name of workspace resource.\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 workspaceName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnectionDescription,\n options?: WorkspacePrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse>,\n WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse> => {\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 workspaceName,\n privateEndpointConnectionName,\n properties,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse,\n OperationState<WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse>\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 workspace.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param workspaceName The name of workspace resource.\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 workspaceName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnectionDescription,\n options?: WorkspacePrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<WorkspacePrivateEndpointConnectionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n workspaceName,\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 workspaceName The name of workspace resource.\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 workspaceName: string,\n privateEndpointConnectionName: string,\n options?: WorkspacePrivateEndpointConnectionsDeleteOptionalParams,\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 workspaceName,\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 workspaceName The name of workspace resource.\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 workspaceName: string,\n privateEndpointConnectionName: string,\n options?: WorkspacePrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n workspaceName,\n privateEndpointConnectionName,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/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.workspaceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/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.privateEndpointConnectionName,\n Parameters.workspaceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/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.properties1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.privateEndpointConnectionName,\n Parameters.workspaceName,\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/workspaces/{workspaceName}/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.privateEndpointConnectionName,\n Parameters.workspaceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
16
16
|
/** Class containing WorkspacePrivateLinkResources operations. */
|
17
17
|
class WorkspacePrivateLinkResourcesImpl {
|
18
|
+
client;
|
18
19
|
/**
|
19
20
|
* Initialize a new instance of the class WorkspacePrivateLinkResources class.
|
20
21
|
* @param client Reference to the service client
|
@@ -38,39 +39,22 @@ class WorkspacePrivateLinkResourcesImpl {
|
|
38
39
|
return this;
|
39
40
|
},
|
40
41
|
byPage: (settings) => {
|
41
|
-
if (settings
|
42
|
+
if (settings?.maxPageSize) {
|
42
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
43
44
|
}
|
44
45
|
return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
|
45
46
|
},
|
46
47
|
};
|
47
48
|
}
|
48
|
-
listByWorkspacePagingPage(resourceGroupName, workspaceName, options, _settings) {
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
yield yield tslib_1.__await(result.value || []);
|
53
|
-
});
|
49
|
+
async *listByWorkspacePagingPage(resourceGroupName, workspaceName, options, _settings) {
|
50
|
+
let result;
|
51
|
+
result = await this._listByWorkspace(resourceGroupName, workspaceName, options);
|
52
|
+
yield result.value || [];
|
54
53
|
}
|
55
|
-
listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
60
|
-
_c = _f.value;
|
61
|
-
_d = false;
|
62
|
-
const page = _c;
|
63
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
64
|
-
}
|
65
|
-
}
|
66
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
67
|
-
finally {
|
68
|
-
try {
|
69
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
70
|
-
}
|
71
|
-
finally { if (e_1) throw e_1.error; }
|
72
|
-
}
|
73
|
-
});
|
54
|
+
async *listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
|
55
|
+
for await (const page of this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)) {
|
56
|
+
yield* page;
|
57
|
+
}
|
74
58
|
}
|
75
59
|
/**
|
76
60
|
* Gets the private link resources that need to be created for a workspace.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"workspacePrivateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/workspacePrivateLinkResources.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,iEAAiE;AACjE,MAAa,iCAAiC;
|
1
|
+
{"version":3,"file":"workspacePrivateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/workspacePrivateLinkResources.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,iEAAiE;AACjE,MAAa,iCAAiC;IAG3B,MAAM,CAAiC;IAExD;;;OAGG;IACH,YAAY,MAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,eAAe,CACpB,iBAAyB,EACzB,aAAqB,EACrB,OAAoE;QAEpE,MAAM,IAAI,GAAG,IAAI,CAAC,wBAAwB,CACxC,iBAAiB,EACjB,aAAa,EACb,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,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,yBAAyB,CACnC,iBAAiB,EACjB,aAAa,EACb,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;S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AO,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,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,mKAAmK;IACzK,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,SAAS;QACpB,UAAU,CAAC,aAAa;KACzB;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 { WorkspacePrivateLinkResources } 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 PrivateLinkResourceDescription,\n WorkspacePrivateLinkResourcesListByWorkspaceOptionalParams,\n WorkspacePrivateLinkResourcesListByWorkspaceResponse,\n WorkspacePrivateLinkResourcesGetOptionalParams,\n WorkspacePrivateLinkResourcesGetResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing WorkspacePrivateLinkResources operations. */\nexport class WorkspacePrivateLinkResourcesImpl\n implements WorkspacePrivateLinkResources\n{\n private readonly client: HealthcareApisManagementClient;\n\n /**\n * Initialize a new instance of the class WorkspacePrivateLinkResources 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 workspace.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param workspaceName The name of workspace resource.\n * @param options The options parameters.\n */\n public listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: WorkspacePrivateLinkResourcesListByWorkspaceOptionalParams,\n ): PagedAsyncIterableIterator<PrivateLinkResourceDescription> {\n const iter = this.listByWorkspacePagingAll(\n resourceGroupName,\n workspaceName,\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.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByWorkspacePagingPage(\n resourceGroupName: string,\n workspaceName: string,\n options?: WorkspacePrivateLinkResourcesListByWorkspaceOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<PrivateLinkResourceDescription[]> {\n let result: WorkspacePrivateLinkResourcesListByWorkspaceResponse;\n result = await this._listByWorkspace(\n resourceGroupName,\n workspaceName,\n options,\n );\n yield result.value || [];\n }\n\n private async *listByWorkspacePagingAll(\n resourceGroupName: string,\n workspaceName: string,\n options?: WorkspacePrivateLinkResourcesListByWorkspaceOptionalParams,\n ): AsyncIterableIterator<PrivateLinkResourceDescription> {\n for await (const page of this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the private link resources that need to be created for a workspace.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param workspaceName The name of workspace resource.\n * @param options The options parameters.\n */\n private _listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: WorkspacePrivateLinkResourcesListByWorkspaceOptionalParams,\n ): Promise<WorkspacePrivateLinkResourcesListByWorkspaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listByWorkspaceOperationSpec,\n );\n }\n\n /**\n * Gets a private link resource that need to be created for a workspace.\n * @param resourceGroupName The name of the resource group that contains the service instance.\n * @param workspaceName The name of workspace resource.\n * @param groupName The name of the private link resource group.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n groupName: string,\n options?: WorkspacePrivateLinkResourcesGetOptionalParams,\n ): Promise<WorkspacePrivateLinkResourcesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, groupName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/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.workspaceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/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.groupName,\n Parameters.workspaceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
19
19
|
/** Class containing Workspaces operations. */
|
20
20
|
class WorkspacesImpl {
|
21
|
+
client;
|
21
22
|
/**
|
22
23
|
* Initialize a new instance of the class Workspaces class.
|
23
24
|
* @param client Reference to the service client
|
@@ -39,52 +40,35 @@ class WorkspacesImpl {
|
|
39
40
|
return this;
|
40
41
|
},
|
41
42
|
byPage: (settings) => {
|
42
|
-
if (settings
|
43
|
+
if (settings?.maxPageSize) {
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
44
45
|
}
|
45
46
|
return this.listBySubscriptionPagingPage(options, settings);
|
46
47
|
},
|
47
48
|
};
|
48
49
|
}
|
49
|
-
listBySubscriptionPagingPage(options, settings) {
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
}
|
67
|
-
});
|
50
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
51
|
+
let result;
|
52
|
+
let continuationToken = settings?.continuationToken;
|
53
|
+
if (!continuationToken) {
|
54
|
+
result = await this._listBySubscription(options);
|
55
|
+
let page = result.value || [];
|
56
|
+
continuationToken = result.nextLink;
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
58
|
+
yield page;
|
59
|
+
}
|
60
|
+
while (continuationToken) {
|
61
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
62
|
+
continuationToken = result.nextLink;
|
63
|
+
let page = result.value || [];
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
65
|
+
yield page;
|
66
|
+
}
|
68
67
|
}
|
69
|
-
listBySubscriptionPagingAll(options) {
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
74
|
-
_c = _f.value;
|
75
|
-
_d = false;
|
76
|
-
const page = _c;
|
77
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
78
|
-
}
|
79
|
-
}
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
81
|
-
finally {
|
82
|
-
try {
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
84
|
-
}
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
86
|
-
}
|
87
|
-
});
|
68
|
+
async *listBySubscriptionPagingAll(options) {
|
69
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
70
|
+
yield* page;
|
71
|
+
}
|
88
72
|
}
|
89
73
|
/**
|
90
74
|
* Lists all the available workspaces under the specified resource group.
|
@@ -101,52 +85,35 @@ class WorkspacesImpl {
|
|
101
85
|
return this;
|
102
86
|
},
|
103
87
|
byPage: (settings) => {
|
104
|
-
if (settings
|
88
|
+
if (settings?.maxPageSize) {
|
105
89
|
throw new Error("maxPageSize is not supported by this operation.");
|
106
90
|
}
|
107
91
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
108
92
|
},
|
109
93
|
};
|
110
94
|
}
|
111
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
}
|
129
|
-
});
|
95
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
96
|
+
let result;
|
97
|
+
let continuationToken = settings?.continuationToken;
|
98
|
+
if (!continuationToken) {
|
99
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
100
|
+
let page = result.value || [];
|
101
|
+
continuationToken = result.nextLink;
|
102
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
103
|
+
yield page;
|
104
|
+
}
|
105
|
+
while (continuationToken) {
|
106
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
107
|
+
continuationToken = result.nextLink;
|
108
|
+
let page = result.value || [];
|
109
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
110
|
+
yield page;
|
111
|
+
}
|
130
112
|
}
|
131
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
136
|
-
_c = _f.value;
|
137
|
-
_d = false;
|
138
|
-
const page = _c;
|
139
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
140
|
-
}
|
141
|
-
}
|
142
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
143
|
-
finally {
|
144
|
-
try {
|
145
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
146
|
-
}
|
147
|
-
finally { if (e_2) throw e_2.error; }
|
148
|
-
}
|
149
|
-
});
|
113
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
114
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
115
|
+
yield* page;
|
116
|
+
}
|
150
117
|
}
|
151
118
|
/**
|
152
119
|
* Lists all the available workspaces under the specified subscription.
|
@@ -184,14 +151,19 @@ class WorkspacesImpl {
|
|
184
151
|
return this.client.sendOperationRequest(args, spec);
|
185
152
|
};
|
186
153
|
const sendOperationFn = async (args, spec) => {
|
187
|
-
var _a;
|
188
154
|
let currentRawResponse = undefined;
|
189
|
-
const providedCallback =
|
155
|
+
const providedCallback = args.options?.onResponse;
|
190
156
|
const callback = (rawResponse, flatResponse) => {
|
191
157
|
currentRawResponse = rawResponse;
|
192
|
-
providedCallback
|
158
|
+
providedCallback?.(rawResponse, flatResponse);
|
159
|
+
};
|
160
|
+
const updatedArgs = {
|
161
|
+
...args,
|
162
|
+
options: {
|
163
|
+
...args.options,
|
164
|
+
onResponse: callback,
|
165
|
+
},
|
193
166
|
};
|
194
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
195
167
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
196
168
|
return {
|
197
169
|
flatResponse,
|
@@ -208,8 +180,8 @@ class WorkspacesImpl {
|
|
208
180
|
spec: createOrUpdateOperationSpec,
|
209
181
|
});
|
210
182
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
211
|
-
restoreFrom: options
|
212
|
-
intervalInMs: options
|
183
|
+
restoreFrom: options?.resumeFrom,
|
184
|
+
intervalInMs: options?.updateIntervalInMs,
|
213
185
|
});
|
214
186
|
await poller.poll();
|
215
187
|
return poller;
|
@@ -237,14 +209,19 @@ class WorkspacesImpl {
|
|
237
209
|
return this.client.sendOperationRequest(args, spec);
|
238
210
|
};
|
239
211
|
const sendOperationFn = async (args, spec) => {
|
240
|
-
var _a;
|
241
212
|
let currentRawResponse = undefined;
|
242
|
-
const providedCallback =
|
213
|
+
const providedCallback = args.options?.onResponse;
|
243
214
|
const callback = (rawResponse, flatResponse) => {
|
244
215
|
currentRawResponse = rawResponse;
|
245
|
-
providedCallback
|
216
|
+
providedCallback?.(rawResponse, flatResponse);
|
217
|
+
};
|
218
|
+
const updatedArgs = {
|
219
|
+
...args,
|
220
|
+
options: {
|
221
|
+
...args.options,
|
222
|
+
onResponse: callback,
|
223
|
+
},
|
246
224
|
};
|
247
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
248
225
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
249
226
|
return {
|
250
227
|
flatResponse,
|
@@ -266,8 +243,8 @@ class WorkspacesImpl {
|
|
266
243
|
spec: updateOperationSpec,
|
267
244
|
});
|
268
245
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
269
|
-
restoreFrom: options
|
270
|
-
intervalInMs: options
|
246
|
+
restoreFrom: options?.resumeFrom,
|
247
|
+
intervalInMs: options?.updateIntervalInMs,
|
271
248
|
});
|
272
249
|
await poller.poll();
|
273
250
|
return poller;
|
@@ -294,14 +271,19 @@ class WorkspacesImpl {
|
|
294
271
|
return this.client.sendOperationRequest(args, spec);
|
295
272
|
};
|
296
273
|
const sendOperationFn = async (args, spec) => {
|
297
|
-
var _a;
|
298
274
|
let currentRawResponse = undefined;
|
299
|
-
const providedCallback =
|
275
|
+
const providedCallback = args.options?.onResponse;
|
300
276
|
const callback = (rawResponse, flatResponse) => {
|
301
277
|
currentRawResponse = rawResponse;
|
302
|
-
providedCallback
|
278
|
+
providedCallback?.(rawResponse, flatResponse);
|
279
|
+
};
|
280
|
+
const updatedArgs = {
|
281
|
+
...args,
|
282
|
+
options: {
|
283
|
+
...args.options,
|
284
|
+
onResponse: callback,
|
285
|
+
},
|
303
286
|
};
|
304
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
305
287
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
306
288
|
return {
|
307
289
|
flatResponse,
|
@@ -318,8 +300,8 @@ class WorkspacesImpl {
|
|
318
300
|
spec: deleteOperationSpec,
|
319
301
|
});
|
320
302
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
321
|
-
restoreFrom: options
|
322
|
-
intervalInMs: options
|
303
|
+
restoreFrom: options?.resumeFrom,
|
304
|
+
intervalInMs: options?.updateIntervalInMs,
|
323
305
|
});
|
324
306
|
await poller.poll();
|
325
307
|
return poller;
|