@azure/arm-batch 10.0.1-alpha.20250718.1 → 10.0.1-alpha.20250721.1
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/batchManagementClient.js +23 -5
- package/dist/browser/batchManagementClient.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 +218 -102
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/applicationOperations.js +23 -40
- package/dist/browser/operations/applicationOperations.js.map +1 -1
- package/dist/browser/operations/applicationPackageOperations.js +23 -40
- package/dist/browser/operations/applicationPackageOperations.js.map +1 -1
- package/dist/browser/operations/batchAccountOperations.js +111 -169
- package/dist/browser/operations/batchAccountOperations.js.map +1 -1
- package/dist/browser/operations/certificateOperations.js +34 -46
- package/dist/browser/operations/certificateOperations.js.map +1 -1
- package/dist/browser/operations/location.js +23 -40
- package/dist/browser/operations/location.js.map +1 -1
- package/dist/browser/operations/networkSecurityPerimeterOperations.js +34 -46
- package/dist/browser/operations/networkSecurityPerimeterOperations.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/poolOperations.js +34 -46
- package/dist/browser/operations/poolOperations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnectionOperations.js +45 -52
- package/dist/browser/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/browser/operations/privateLinkResourceOperations.js +23 -40
- package/dist/browser/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/batchManagementClient.js +23 -5
- package/dist/commonjs/batchManagementClient.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 +218 -102
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/applicationOperations.js +23 -39
- package/dist/commonjs/operations/applicationOperations.js.map +1 -1
- package/dist/commonjs/operations/applicationPackageOperations.js +23 -39
- package/dist/commonjs/operations/applicationPackageOperations.js.map +1 -1
- package/dist/commonjs/operations/batchAccountOperations.js +111 -168
- package/dist/commonjs/operations/batchAccountOperations.js.map +1 -1
- package/dist/commonjs/operations/certificateOperations.js +34 -45
- package/dist/commonjs/operations/certificateOperations.js.map +1 -1
- package/dist/commonjs/operations/location.js +23 -39
- package/dist/commonjs/operations/location.js.map +1 -1
- package/dist/commonjs/operations/networkSecurityPerimeterOperations.js +34 -45
- package/dist/commonjs/operations/networkSecurityPerimeterOperations.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/poolOperations.js +34 -45
- package/dist/commonjs/operations/poolOperations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnectionOperations.js +45 -51
- package/dist/commonjs/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResourceOperations.js +23 -39
- package/dist/commonjs/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/esm/batchManagementClient.js +23 -5
- package/dist/esm/batchManagementClient.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 +218 -102
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/applicationOperations.js +23 -40
- package/dist/esm/operations/applicationOperations.js.map +1 -1
- package/dist/esm/operations/applicationPackageOperations.js +23 -40
- package/dist/esm/operations/applicationPackageOperations.js.map +1 -1
- package/dist/esm/operations/batchAccountOperations.js +111 -169
- package/dist/esm/operations/batchAccountOperations.js.map +1 -1
- package/dist/esm/operations/certificateOperations.js +34 -46
- package/dist/esm/operations/certificateOperations.js.map +1 -1
- package/dist/esm/operations/location.js +23 -40
- package/dist/esm/operations/location.js.map +1 -1
- package/dist/esm/operations/networkSecurityPerimeterOperations.js +34 -46
- package/dist/esm/operations/networkSecurityPerimeterOperations.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/poolOperations.js +34 -46
- package/dist/esm/operations/poolOperations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnectionOperations.js +45 -52
- package/dist/esm/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/esm/operations/privateLinkResourceOperations.js +23 -40
- package/dist/esm/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/batchManagementClient.js +23 -5
- package/dist/react-native/batchManagementClient.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 +218 -102
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/applicationOperations.js +23 -40
- package/dist/react-native/operations/applicationOperations.js.map +1 -1
- package/dist/react-native/operations/applicationPackageOperations.js +23 -40
- package/dist/react-native/operations/applicationPackageOperations.js.map +1 -1
- package/dist/react-native/operations/batchAccountOperations.js +111 -169
- package/dist/react-native/operations/batchAccountOperations.js.map +1 -1
- package/dist/react-native/operations/certificateOperations.js +34 -46
- package/dist/react-native/operations/certificateOperations.js.map +1 -1
- package/dist/react-native/operations/location.js +23 -40
- package/dist/react-native/operations/location.js.map +1 -1
- package/dist/react-native/operations/networkSecurityPerimeterOperations.js +34 -46
- package/dist/react-native/operations/networkSecurityPerimeterOperations.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/poolOperations.js +34 -46
- package/dist/react-native/operations/poolOperations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnectionOperations.js +45 -52
- package/dist/react-native/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/react-native/operations/privateLinkResourceOperations.js +23 -40
- package/dist/react-native/operations/privateLinkResourceOperations.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
|
@@ -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 PoolOperations operations. */
|
|
17
16
|
export class PoolOperationsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class PoolOperations class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -38,52 +38,35 @@ export class PoolOperationsImpl {
|
|
|
38
38
|
return this;
|
|
39
39
|
},
|
|
40
40
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
43
|
}
|
|
44
44
|
return this.listByBatchAccountPagingPage(resourceGroupName, accountName, options, settings);
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
listByBatchAccountPagingPage(resourceGroupName, accountName, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
48
|
+
async *listByBatchAccountPagingPage(resourceGroupName, accountName, options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._listByBatchAccount(resourceGroupName, accountName, options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
setContinuationToken(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listByBatchAccountNext(resourceGroupName, accountName, continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
setContinuationToken(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
67
65
|
}
|
|
68
|
-
listByBatchAccountPagingAll(resourceGroupName, accountName, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = __asyncValues(this.listByBatchAccountPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
66
|
+
async *listByBatchAccountPagingAll(resourceGroupName, accountName, options) {
|
|
67
|
+
for await (const page of this.listByBatchAccountPagingPage(resourceGroupName, accountName, options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
87
70
|
}
|
|
88
71
|
/**
|
|
89
72
|
* Lists all of the pools in the specified account.
|
|
@@ -129,14 +112,19 @@ export class PoolOperationsImpl {
|
|
|
129
112
|
return this.client.sendOperationRequest(args, spec);
|
|
130
113
|
};
|
|
131
114
|
const sendOperationFn = async (args, spec) => {
|
|
132
|
-
var _a;
|
|
133
115
|
let currentRawResponse = undefined;
|
|
134
|
-
const providedCallback =
|
|
116
|
+
const providedCallback = args.options?.onResponse;
|
|
135
117
|
const callback = (rawResponse, flatResponse) => {
|
|
136
118
|
currentRawResponse = rawResponse;
|
|
137
|
-
providedCallback
|
|
119
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
120
|
+
};
|
|
121
|
+
const updatedArgs = {
|
|
122
|
+
...args,
|
|
123
|
+
options: {
|
|
124
|
+
...args.options,
|
|
125
|
+
onResponse: callback,
|
|
126
|
+
},
|
|
138
127
|
};
|
|
139
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
140
128
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
141
129
|
return {
|
|
142
130
|
flatResponse,
|
|
@@ -153,8 +141,8 @@ export class PoolOperationsImpl {
|
|
|
153
141
|
spec: deleteOperationSpec,
|
|
154
142
|
});
|
|
155
143
|
const poller = await createHttpPoller(lro, {
|
|
156
|
-
restoreFrom: options
|
|
157
|
-
intervalInMs: options
|
|
144
|
+
restoreFrom: options?.resumeFrom,
|
|
145
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
158
146
|
resourceLocationConfig: "location",
|
|
159
147
|
});
|
|
160
148
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"poolOperations.js","sourceRoot":"","sources":["../../../src/operations/poolOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAA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QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;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 { setContinuationToken } from \"../pagingHelper.js\";\nimport { PoolOperations } 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 { BatchManagementClient } from \"../batchManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Pool,\n PoolListByBatchAccountNextOptionalParams,\n PoolListByBatchAccountOptionalParams,\n PoolListByBatchAccountResponse,\n PoolCreateOptionalParams,\n PoolCreateResponse,\n PoolUpdateOptionalParams,\n PoolUpdateResponse,\n PoolDeleteOptionalParams,\n PoolGetOptionalParams,\n PoolGetResponse,\n PoolDisableAutoScaleOptionalParams,\n PoolDisableAutoScaleResponse,\n PoolStopResizeOptionalParams,\n PoolStopResizeResponse,\n PoolListByBatchAccountNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PoolOperations operations. */\nexport class PoolOperationsImpl implements PoolOperations {\n private readonly client: BatchManagementClient;\n\n /**\n * Initialize a new instance of the class PoolOperations class.\n * @param client Reference to the service client\n */\n constructor(client: BatchManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the pools in the specified account.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param options The options parameters.\n */\n public listByBatchAccount(\n resourceGroupName: string,\n accountName: string,\n options?: PoolListByBatchAccountOptionalParams,\n ): PagedAsyncIterableIterator<Pool> {\n const iter = this.listByBatchAccountPagingAll(\n resourceGroupName,\n accountName,\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.listByBatchAccountPagingPage(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByBatchAccountPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: PoolListByBatchAccountOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Pool[]> {\n let result: PoolListByBatchAccountResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByBatchAccount(\n resourceGroupName,\n accountName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByBatchAccountNext(\n resourceGroupName,\n accountName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByBatchAccountPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: PoolListByBatchAccountOptionalParams,\n ): AsyncIterableIterator<Pool> {\n for await (const page of this.listByBatchAccountPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the pools in the specified account.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param options The options parameters.\n */\n private _listByBatchAccount(\n resourceGroupName: string,\n accountName: string,\n options?: PoolListByBatchAccountOptionalParams,\n ): Promise<PoolListByBatchAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listByBatchAccountOperationSpec,\n );\n }\n\n /**\n * Creates a new pool inside the specified account.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param poolName The pool name. This must be unique within the account.\n * @param parameters Additional parameters for pool creation.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n accountName: string,\n poolName: string,\n parameters: Pool,\n options?: PoolCreateOptionalParams,\n ): Promise<PoolCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, poolName, parameters, options },\n createOperationSpec,\n );\n }\n\n /**\n * Updates the properties of an existing pool.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param poolName The pool name. This must be unique within the account.\n * @param parameters Pool properties that should be updated. Properties that are supplied will be\n * updated, any property not supplied will be unchanged.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountName: string,\n poolName: string,\n parameters: Pool,\n options?: PoolUpdateOptionalParams,\n ): Promise<PoolUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, poolName, parameters, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Deletes the specified pool.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param poolName The pool name. This must be unique within the account.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n poolName: string,\n options?: PoolDeleteOptionalParams,\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: { resourceGroupName, accountName, poolName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the specified pool.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param poolName The pool name. This must be unique within the account.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n poolName: string,\n options?: PoolDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n accountName,\n poolName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets information about the specified pool.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param poolName The pool name. This must be unique within the account.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n poolName: string,\n options?: PoolGetOptionalParams,\n ): Promise<PoolGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, poolName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Disables automatic scaling for a pool.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param poolName The pool name. This must be unique within the account.\n * @param options The options parameters.\n */\n disableAutoScale(\n resourceGroupName: string,\n accountName: string,\n poolName: string,\n options?: PoolDisableAutoScaleOptionalParams,\n ): Promise<PoolDisableAutoScaleResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, poolName, options },\n disableAutoScaleOperationSpec,\n );\n }\n\n /**\n * This does not restore the pool to its previous state before the resize operation: it only stops any\n * further changes being made, and the pool maintains its current state. After stopping, the pool\n * stabilizes at the number of nodes it was at when the stop operation was done. During the stop\n * operation, the pool allocation state changes first to stopping and then to steady. A resize\n * operation need not be an explicit resize pool request; this API can also be used to halt the initial\n * sizing of the pool when it is created.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param poolName The pool name. This must be unique within the account.\n * @param options The options parameters.\n */\n stopResize(\n resourceGroupName: string,\n accountName: string,\n poolName: string,\n options?: PoolStopResizeOptionalParams,\n ): Promise<PoolStopResizeResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, poolName, options },\n stopResizeOperationSpec,\n );\n }\n\n /**\n * ListByBatchAccountNext\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param nextLink The nextLink from the previous successful call to the ListByBatchAccount method.\n * @param options The options parameters.\n */\n private _listByBatchAccountNext(\n resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: PoolListByBatchAccountNextOptionalParams,\n ): Promise<PoolListByBatchAccountNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listByBatchAccountNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByBatchAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListPoolsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.maxresults,\n Parameters.filter,\n Parameters.select,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Pool,\n headersMapper: Mappers.PoolCreateHeaders,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.poolName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Pool,\n headersMapper: Mappers.PoolUpdateHeaders,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.poolName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.poolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Pool,\n headersMapper: Mappers.PoolGetHeaders,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.poolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst disableAutoScaleOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Pool,\n headersMapper: Mappers.PoolDisableAutoScaleHeaders,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.poolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst stopResizeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Pool,\n headersMapper: Mappers.PoolStopResizeHeaders,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.poolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBatchAccountNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListPoolsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"poolOperations.js","sourceRoot":"","sources":["../../../src/operations/poolOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,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;AAoB9C,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAAwB;IAE/C;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,kBAAkB,CACvB,iBAAyB,EACzB,WAAmB,EACnB,OAA8C;QAE9C,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAC3C,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,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AC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;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 { setContinuationToken } from \"../pagingHelper.js\";\nimport { PoolOperations } 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 { BatchManagementClient } from \"../batchManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Pool,\n PoolListByBatchAccountNextOptionalParams,\n PoolListByBatchAccountOptionalParams,\n PoolListByBatchAccountResponse,\n PoolCreateOptionalParams,\n PoolCreateResponse,\n PoolUpdateOptionalParams,\n PoolUpdateResponse,\n PoolDeleteOptionalParams,\n PoolGetOptionalParams,\n PoolGetResponse,\n PoolDisableAutoScaleOptionalParams,\n PoolDisableAutoScaleResponse,\n PoolStopResizeOptionalParams,\n PoolStopResizeResponse,\n PoolListByBatchAccountNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PoolOperations operations. */\nexport class PoolOperationsImpl implements PoolOperations {\n private readonly client: BatchManagementClient;\n\n /**\n * Initialize a new instance of the class PoolOperations class.\n * @param client Reference to the service client\n */\n constructor(client: BatchManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the pools in the specified account.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param options The options parameters.\n */\n public listByBatchAccount(\n resourceGroupName: string,\n accountName: string,\n options?: PoolListByBatchAccountOptionalParams,\n ): PagedAsyncIterableIterator<Pool> {\n const iter = this.listByBatchAccountPagingAll(\n resourceGroupName,\n accountName,\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.listByBatchAccountPagingPage(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByBatchAccountPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: PoolListByBatchAccountOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Pool[]> {\n let result: PoolListByBatchAccountResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByBatchAccount(\n resourceGroupName,\n accountName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByBatchAccountNext(\n resourceGroupName,\n accountName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByBatchAccountPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: PoolListByBatchAccountOptionalParams,\n ): AsyncIterableIterator<Pool> {\n for await (const page of this.listByBatchAccountPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the pools in the specified account.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param options The options parameters.\n */\n private _listByBatchAccount(\n resourceGroupName: string,\n accountName: string,\n options?: PoolListByBatchAccountOptionalParams,\n ): Promise<PoolListByBatchAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listByBatchAccountOperationSpec,\n );\n }\n\n /**\n * Creates a new pool inside the specified account.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param poolName The pool name. This must be unique within the account.\n * @param parameters Additional parameters for pool creation.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n accountName: string,\n poolName: string,\n parameters: Pool,\n options?: PoolCreateOptionalParams,\n ): Promise<PoolCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, poolName, parameters, options },\n createOperationSpec,\n );\n }\n\n /**\n * Updates the properties of an existing pool.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param poolName The pool name. This must be unique within the account.\n * @param parameters Pool properties that should be updated. Properties that are supplied will be\n * updated, any property not supplied will be unchanged.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountName: string,\n poolName: string,\n parameters: Pool,\n options?: PoolUpdateOptionalParams,\n ): Promise<PoolUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, poolName, parameters, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Deletes the specified pool.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param poolName The pool name. This must be unique within the account.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n poolName: string,\n options?: PoolDeleteOptionalParams,\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: { resourceGroupName, accountName, poolName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the specified pool.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param poolName The pool name. This must be unique within the account.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n poolName: string,\n options?: PoolDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n accountName,\n poolName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets information about the specified pool.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param poolName The pool name. This must be unique within the account.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n poolName: string,\n options?: PoolGetOptionalParams,\n ): Promise<PoolGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, poolName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Disables automatic scaling for a pool.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param poolName The pool name. This must be unique within the account.\n * @param options The options parameters.\n */\n disableAutoScale(\n resourceGroupName: string,\n accountName: string,\n poolName: string,\n options?: PoolDisableAutoScaleOptionalParams,\n ): Promise<PoolDisableAutoScaleResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, poolName, options },\n disableAutoScaleOperationSpec,\n );\n }\n\n /**\n * This does not restore the pool to its previous state before the resize operation: it only stops any\n * further changes being made, and the pool maintains its current state. After stopping, the pool\n * stabilizes at the number of nodes it was at when the stop operation was done. During the stop\n * operation, the pool allocation state changes first to stopping and then to steady. A resize\n * operation need not be an explicit resize pool request; this API can also be used to halt the initial\n * sizing of the pool when it is created.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param poolName The pool name. This must be unique within the account.\n * @param options The options parameters.\n */\n stopResize(\n resourceGroupName: string,\n accountName: string,\n poolName: string,\n options?: PoolStopResizeOptionalParams,\n ): Promise<PoolStopResizeResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, poolName, options },\n stopResizeOperationSpec,\n );\n }\n\n /**\n * ListByBatchAccountNext\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param nextLink The nextLink from the previous successful call to the ListByBatchAccount method.\n * @param options The options parameters.\n */\n private _listByBatchAccountNext(\n resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: PoolListByBatchAccountNextOptionalParams,\n ): Promise<PoolListByBatchAccountNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listByBatchAccountNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByBatchAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListPoolsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.maxresults,\n Parameters.filter,\n Parameters.select,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Pool,\n headersMapper: Mappers.PoolCreateHeaders,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.poolName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Pool,\n headersMapper: Mappers.PoolUpdateHeaders,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.poolName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.poolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Pool,\n headersMapper: Mappers.PoolGetHeaders,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.poolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst disableAutoScaleOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Pool,\n headersMapper: Mappers.PoolDisableAutoScaleHeaders,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.poolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst stopResizeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Pool,\n headersMapper: Mappers.PoolStopResizeHeaders,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.poolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBatchAccountNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListPoolsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.nextLink,\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 PrivateEndpointConnectionOperations operations. */
|
|
17
16
|
export class PrivateEndpointConnectionOperationsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class PrivateEndpointConnectionOperations class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -38,52 +38,35 @@ export class PrivateEndpointConnectionOperationsImpl {
|
|
|
38
38
|
return this;
|
|
39
39
|
},
|
|
40
40
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
43
|
}
|
|
44
44
|
return this.listByBatchAccountPagingPage(resourceGroupName, accountName, options, settings);
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
listByBatchAccountPagingPage(resourceGroupName, accountName, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
48
|
+
async *listByBatchAccountPagingPage(resourceGroupName, accountName, options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._listByBatchAccount(resourceGroupName, accountName, options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
setContinuationToken(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listByBatchAccountNext(resourceGroupName, accountName, continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
setContinuationToken(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
67
65
|
}
|
|
68
|
-
listByBatchAccountPagingAll(resourceGroupName, accountName, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = __asyncValues(this.listByBatchAccountPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
66
|
+
async *listByBatchAccountPagingAll(resourceGroupName, accountName, options) {
|
|
67
|
+
for await (const page of this.listByBatchAccountPagingPage(resourceGroupName, accountName, options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
87
70
|
}
|
|
88
71
|
/**
|
|
89
72
|
* Lists all of the private endpoint connections in the specified account.
|
|
@@ -125,14 +108,19 @@ export class PrivateEndpointConnectionOperationsImpl {
|
|
|
125
108
|
return this.client.sendOperationRequest(args, spec);
|
|
126
109
|
};
|
|
127
110
|
const sendOperationFn = async (args, spec) => {
|
|
128
|
-
var _a;
|
|
129
111
|
let currentRawResponse = undefined;
|
|
130
|
-
const providedCallback =
|
|
112
|
+
const providedCallback = args.options?.onResponse;
|
|
131
113
|
const callback = (rawResponse, flatResponse) => {
|
|
132
114
|
currentRawResponse = rawResponse;
|
|
133
|
-
providedCallback
|
|
115
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
116
|
+
};
|
|
117
|
+
const updatedArgs = {
|
|
118
|
+
...args,
|
|
119
|
+
options: {
|
|
120
|
+
...args.options,
|
|
121
|
+
onResponse: callback,
|
|
122
|
+
},
|
|
134
123
|
};
|
|
135
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
136
124
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
137
125
|
return {
|
|
138
126
|
flatResponse,
|
|
@@ -155,8 +143,8 @@ export class PrivateEndpointConnectionOperationsImpl {
|
|
|
155
143
|
spec: updateOperationSpec,
|
|
156
144
|
});
|
|
157
145
|
const poller = await createHttpPoller(lro, {
|
|
158
|
-
restoreFrom: options
|
|
159
|
-
intervalInMs: options
|
|
146
|
+
restoreFrom: options?.resumeFrom,
|
|
147
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
160
148
|
resourceLocationConfig: "azure-async-operation",
|
|
161
149
|
});
|
|
162
150
|
await poller.poll();
|
|
@@ -189,14 +177,19 @@ export class PrivateEndpointConnectionOperationsImpl {
|
|
|
189
177
|
return this.client.sendOperationRequest(args, spec);
|
|
190
178
|
};
|
|
191
179
|
const sendOperationFn = async (args, spec) => {
|
|
192
|
-
var _a;
|
|
193
180
|
let currentRawResponse = undefined;
|
|
194
|
-
const providedCallback =
|
|
181
|
+
const providedCallback = args.options?.onResponse;
|
|
195
182
|
const callback = (rawResponse, flatResponse) => {
|
|
196
183
|
currentRawResponse = rawResponse;
|
|
197
|
-
providedCallback
|
|
184
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
185
|
+
};
|
|
186
|
+
const updatedArgs = {
|
|
187
|
+
...args,
|
|
188
|
+
options: {
|
|
189
|
+
...args.options,
|
|
190
|
+
onResponse: callback,
|
|
191
|
+
},
|
|
198
192
|
};
|
|
199
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
200
193
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
201
194
|
return {
|
|
202
195
|
flatResponse,
|
|
@@ -218,8 +211,8 @@ export class PrivateEndpointConnectionOperationsImpl {
|
|
|
218
211
|
spec: deleteOperationSpec,
|
|
219
212
|
});
|
|
220
213
|
const poller = await createHttpPoller(lro, {
|
|
221
|
-
restoreFrom: options
|
|
222
|
-
intervalInMs: options
|
|
214
|
+
restoreFrom: options?.resumeFrom,
|
|
215
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
223
216
|
resourceLocationConfig: "azure-async-operation",
|
|
224
217
|
});
|
|
225
218
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privateEndpointConnectionOperations.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnectionOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,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;AAe9C,4CAA4C;AAC5C,uEAAuE;AACvE,MAAM,OAAO,uCAAuC;IAKlD;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,kBAAkB,CACvB,iBAAyB,EACzB,WAAmB,EACnB,OAAmE;QAEnE,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAC3C,iBAAiB,EACjB,WAAW,EACX,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,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,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;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 { setContinuationToken } from \"../pagingHelper.js\";\nimport { PrivateEndpointConnectionOperations } 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 { BatchManagementClient } from \"../batchManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrivateEndpointConnection,\n PrivateEndpointConnectionListByBatchAccountNextOptionalParams,\n PrivateEndpointConnectionListByBatchAccountOptionalParams,\n PrivateEndpointConnectionListByBatchAccountResponse,\n PrivateEndpointConnectionGetOptionalParams,\n PrivateEndpointConnectionGetResponse,\n PrivateEndpointConnectionUpdateOptionalParams,\n PrivateEndpointConnectionUpdateResponse,\n PrivateEndpointConnectionDeleteOptionalParams,\n PrivateEndpointConnectionDeleteResponse,\n PrivateEndpointConnectionListByBatchAccountNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnectionOperations operations. */\nexport class PrivateEndpointConnectionOperationsImpl\n implements PrivateEndpointConnectionOperations\n{\n private readonly client: BatchManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnectionOperations class.\n * @param client Reference to the service client\n */\n constructor(client: BatchManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the private endpoint connections in the specified account.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param options The options parameters.\n */\n public listByBatchAccount(\n resourceGroupName: string,\n accountName: string,\n options?: PrivateEndpointConnectionListByBatchAccountOptionalParams,\n ): PagedAsyncIterableIterator<PrivateEndpointConnection> {\n const iter = this.listByBatchAccountPagingAll(\n resourceGroupName,\n accountName,\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.listByBatchAccountPagingPage(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByBatchAccountPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: PrivateEndpointConnectionListByBatchAccountOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PrivateEndpointConnection[]> {\n let result: PrivateEndpointConnectionListByBatchAccountResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByBatchAccount(\n resourceGroupName,\n accountName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByBatchAccountNext(\n resourceGroupName,\n accountName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByBatchAccountPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: PrivateEndpointConnectionListByBatchAccountOptionalParams,\n ): AsyncIterableIterator<PrivateEndpointConnection> {\n for await (const page of this.listByBatchAccountPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the private endpoint connections in the specified account.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param options The options parameters.\n */\n private _listByBatchAccount(\n resourceGroupName: string,\n accountName: string,\n options?: PrivateEndpointConnectionListByBatchAccountOptionalParams,\n ): Promise<PrivateEndpointConnectionListByBatchAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listByBatchAccountOperationSpec,\n );\n }\n\n /**\n * Gets information about the specified private endpoint connection.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param privateEndpointConnectionName The private endpoint connection name. This must be unique\n * within the account.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionGetOptionalParams,\n ): Promise<PrivateEndpointConnectionGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Updates the properties of an existing private endpoint connection.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param privateEndpointConnectionName The private endpoint connection name. This must be unique\n * within the account.\n * @param parameters PrivateEndpointConnection properties that should be updated. Properties that are\n * supplied will be updated, any property not supplied will be unchanged.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n parameters: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateEndpointConnectionUpdateResponse>,\n PrivateEndpointConnectionUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateEndpointConnectionUpdateResponse> => {\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 accountName,\n privateEndpointConnectionName,\n parameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateEndpointConnectionUpdateResponse,\n OperationState<PrivateEndpointConnectionUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the properties of an existing private endpoint connection.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param privateEndpointConnectionName The private endpoint connection name. This must be unique\n * within the account.\n * @param parameters PrivateEndpointConnection properties that should be updated. Properties that are\n * supplied will be updated, any property not supplied will be unchanged.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n parameters: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionUpdateOptionalParams,\n ): Promise<PrivateEndpointConnectionUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the specified private endpoint connection.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param privateEndpointConnectionName The private endpoint connection name. This must be unique\n * within the account.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateEndpointConnectionDeleteResponse>,\n PrivateEndpointConnectionDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateEndpointConnectionDeleteResponse> => {\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 accountName,\n privateEndpointConnectionName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateEndpointConnectionDeleteResponse,\n OperationState<PrivateEndpointConnectionDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the specified private endpoint connection.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param privateEndpointConnectionName The private endpoint connection name. This must be unique\n * within the account.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionDeleteOptionalParams,\n ): Promise<PrivateEndpointConnectionDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByBatchAccountNext\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param nextLink The nextLink from the previous successful call to the ListByBatchAccount method.\n * @param options The options parameters.\n */\n private _listByBatchAccountNext(\n resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: PrivateEndpointConnectionListByBatchAccountNextOptionalParams,\n ): Promise<PrivateEndpointConnectionListByBatchAccountNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listByBatchAccountNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByBatchAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListPrivateEndpointConnectionsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.maxresults],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 204: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters9,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBatchAccountNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListPrivateEndpointConnectionsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"privateEndpointConnectionOperations.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnectionOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,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;AAe9C,4CAA4C;AAC5C,uEAAuE;AACvE,MAAM,OAAO,uCAAuC;IAGjC,MAAM,CAAwB;IAE/C;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,kBAAkB,CACvB,iBAAyB,EACzB,WAAmB,EACnB,OAAmE;QAEnE,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAC3C,iBAAiB,EACjB,WAAW,EACX,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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E,qLAAqL;IAC3L,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,sCAAsC;SAC9D;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,sCAAsC;SAC9D;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,sCAAsC;SAC9D;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,sCAAsC;SAC9D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oCAAoC;SACzD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;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 { setContinuationToken } from \"../pagingHelper.js\";\nimport { PrivateEndpointConnectionOperations } 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 { BatchManagementClient } from \"../batchManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrivateEndpointConnection,\n PrivateEndpointConnectionListByBatchAccountNextOptionalParams,\n PrivateEndpointConnectionListByBatchAccountOptionalParams,\n PrivateEndpointConnectionListByBatchAccountResponse,\n PrivateEndpointConnectionGetOptionalParams,\n PrivateEndpointConnectionGetResponse,\n PrivateEndpointConnectionUpdateOptionalParams,\n PrivateEndpointConnectionUpdateResponse,\n PrivateEndpointConnectionDeleteOptionalParams,\n PrivateEndpointConnectionDeleteResponse,\n PrivateEndpointConnectionListByBatchAccountNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnectionOperations operations. */\nexport class PrivateEndpointConnectionOperationsImpl\n implements PrivateEndpointConnectionOperations\n{\n private readonly client: BatchManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnectionOperations class.\n * @param client Reference to the service client\n */\n constructor(client: BatchManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the private endpoint connections in the specified account.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param options The options parameters.\n */\n public listByBatchAccount(\n resourceGroupName: string,\n accountName: string,\n options?: PrivateEndpointConnectionListByBatchAccountOptionalParams,\n ): PagedAsyncIterableIterator<PrivateEndpointConnection> {\n const iter = this.listByBatchAccountPagingAll(\n resourceGroupName,\n accountName,\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.listByBatchAccountPagingPage(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByBatchAccountPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: PrivateEndpointConnectionListByBatchAccountOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PrivateEndpointConnection[]> {\n let result: PrivateEndpointConnectionListByBatchAccountResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByBatchAccount(\n resourceGroupName,\n accountName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByBatchAccountNext(\n resourceGroupName,\n accountName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByBatchAccountPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: PrivateEndpointConnectionListByBatchAccountOptionalParams,\n ): AsyncIterableIterator<PrivateEndpointConnection> {\n for await (const page of this.listByBatchAccountPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the private endpoint connections in the specified account.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param options The options parameters.\n */\n private _listByBatchAccount(\n resourceGroupName: string,\n accountName: string,\n options?: PrivateEndpointConnectionListByBatchAccountOptionalParams,\n ): Promise<PrivateEndpointConnectionListByBatchAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listByBatchAccountOperationSpec,\n );\n }\n\n /**\n * Gets information about the specified private endpoint connection.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param privateEndpointConnectionName The private endpoint connection name. This must be unique\n * within the account.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionGetOptionalParams,\n ): Promise<PrivateEndpointConnectionGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Updates the properties of an existing private endpoint connection.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param privateEndpointConnectionName The private endpoint connection name. This must be unique\n * within the account.\n * @param parameters PrivateEndpointConnection properties that should be updated. Properties that are\n * supplied will be updated, any property not supplied will be unchanged.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n parameters: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateEndpointConnectionUpdateResponse>,\n PrivateEndpointConnectionUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateEndpointConnectionUpdateResponse> => {\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 accountName,\n privateEndpointConnectionName,\n parameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateEndpointConnectionUpdateResponse,\n OperationState<PrivateEndpointConnectionUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the properties of an existing private endpoint connection.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param privateEndpointConnectionName The private endpoint connection name. This must be unique\n * within the account.\n * @param parameters PrivateEndpointConnection properties that should be updated. Properties that are\n * supplied will be updated, any property not supplied will be unchanged.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n parameters: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionUpdateOptionalParams,\n ): Promise<PrivateEndpointConnectionUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the specified private endpoint connection.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param privateEndpointConnectionName The private endpoint connection name. This must be unique\n * within the account.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateEndpointConnectionDeleteResponse>,\n PrivateEndpointConnectionDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateEndpointConnectionDeleteResponse> => {\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 accountName,\n privateEndpointConnectionName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateEndpointConnectionDeleteResponse,\n OperationState<PrivateEndpointConnectionDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the specified private endpoint connection.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param privateEndpointConnectionName The private endpoint connection name. This must be unique\n * within the account.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionDeleteOptionalParams,\n ): Promise<PrivateEndpointConnectionDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByBatchAccountNext\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param nextLink The nextLink from the previous successful call to the ListByBatchAccount method.\n * @param options The options parameters.\n */\n private _listByBatchAccountNext(\n resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: PrivateEndpointConnectionListByBatchAccountNextOptionalParams,\n ): Promise<PrivateEndpointConnectionListByBatchAccountNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listByBatchAccountNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByBatchAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListPrivateEndpointConnectionsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.maxresults],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 204: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters9,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBatchAccountNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListPrivateEndpointConnectionsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|