@azure/arm-batch 5.0.0 → 7.0.0-alpha.20211214.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/CHANGELOG.md +14 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +72 -77
- package/dist/index.js +6873 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/batchManagementClient.d.ts +24 -0
- package/dist-esm/src/batchManagementClient.d.ts.map +1 -0
- package/dist-esm/src/batchManagementClient.js +31 -0
- package/dist-esm/src/batchManagementClient.js.map +1 -0
- package/dist-esm/src/batchManagementClientContext.d.ts +17 -0
- package/dist-esm/src/batchManagementClientContext.d.ts.map +1 -0
- package/dist-esm/src/batchManagementClientContext.js +50 -0
- package/dist-esm/src/batchManagementClientContext.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1780 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +9 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +112 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1814 -1452
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +34 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +303 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/applicationOperations.d.ts +71 -0
- package/dist-esm/src/operations/applicationOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/applicationOperations.js +269 -0
- package/dist-esm/src/operations/applicationOperations.js.map +1 -0
- package/dist-esm/src/operations/applicationPackageOperations.d.ts +83 -0
- package/dist-esm/src/operations/applicationPackageOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/applicationPackageOperations.js +294 -0
- package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -0
- package/dist-esm/src/operations/batchAccountOperations.d.ts +171 -0
- package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/batchAccountOperations.js +681 -0
- package/dist-esm/src/operations/batchAccountOperations.js.map +1 -0
- package/dist-esm/src/operations/certificateOperations.d.ts +106 -0
- package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/certificateOperations.js +388 -0
- package/dist-esm/src/operations/certificateOperations.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/location.d.ts +71 -0
- package/dist-esm/src/operations/location.d.ts.map +1 -0
- package/dist-esm/src/operations/location.js +316 -0
- package/dist-esm/src/operations/location.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/poolOperations.d.ts +103 -0
- package/dist-esm/src/operations/poolOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/poolOperations.js +410 -0
- package/dist-esm/src/operations/poolOperations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +70 -0
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js +278 -0
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResourceOperations.d.ts +47 -0
- package/dist-esm/src/operations/privateLinkResourceOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResourceOperations.js +170 -0
- package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/applicationOperations.d.ts +46 -0
- package/dist-esm/src/operationsInterfaces/applicationOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/applicationOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/applicationOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/applicationPackageOperations.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/applicationPackageOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/applicationPackageOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/applicationPackageOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +112 -0
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts +81 -0
- package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/certificateOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/certificateOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +17 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/location.d.ts +31 -0
- package/dist-esm/src/operationsInterfaces/location.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/location.js +9 -0
- package/dist-esm/src/operationsInterfaces/location.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/poolOperations.d.ts +78 -0
- package/dist-esm/src/operationsInterfaces/poolOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/poolOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/poolOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts +45 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +4 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +479 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -29
- package/review/arm-batch.api.md +1459 -0
- package/rollup.config.js +181 -30
- package/src/batchManagementClient.ts +61 -45
- package/src/batchManagementClientContext.ts +48 -40
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1469 -3055
- package/src/models/mappers.ts +1967 -1573
- package/src/models/parameters.ts +218 -120
- package/src/operations/applicationOperations.ts +217 -262
- package/src/operations/applicationPackageOperations.ts +254 -277
- package/src/operations/batchAccountOperations.ts +682 -466
- package/src/operations/certificateOperations.ts +365 -353
- package/src/operations/index.ts +3 -5
- package/src/operations/location.ts +344 -78
- package/src/operations/operations.ts +84 -70
- package/src/operations/poolOperations.ts +379 -375
- package/src/operations/privateEndpointConnectionOperations.ts +271 -168
- package/src/operations/privateLinkResourceOperations.ts +158 -125
- package/src/operationsInterfaces/applicationOperations.ts +90 -0
- package/src/operationsInterfaces/applicationPackageOperations.ts +106 -0
- package/src/operationsInterfaces/batchAccountOperations.ts +196 -0
- package/src/operationsInterfaces/certificateOperations.ts +139 -0
- package/src/operationsInterfaces/index.ts +17 -0
- package/src/operationsInterfaces/location.ts +62 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/poolOperations.ts +142 -0
- package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +87 -0
- package/src/operationsInterfaces/privateLinkResourceOperations.ts +45 -0
- package/tsconfig.json +3 -3
- package/types/arm-batch.d.ts +2528 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-batch.js +0 -6207
- package/dist/arm-batch.js.map +0 -1
- package/dist/arm-batch.min.js +0 -1
- package/dist/arm-batch.min.js.map +0 -1
- package/esm/batchManagementClient.d.ts +0 -27
- package/esm/batchManagementClient.d.ts.map +0 -1
- package/esm/batchManagementClient.js +0 -42
- package/esm/batchManagementClient.js.map +0 -1
- package/esm/batchManagementClientContext.d.ts +0 -17
- package/esm/batchManagementClientContext.d.ts.map +0 -1
- package/esm/batchManagementClientContext.js +0 -57
- package/esm/batchManagementClientContext.js.map +0 -1
- package/esm/models/applicationOperationsMappers.d.ts +0 -2
- package/esm/models/applicationOperationsMappers.d.ts.map +0 -1
- package/esm/models/applicationOperationsMappers.js +0 -9
- package/esm/models/applicationOperationsMappers.js.map +0 -1
- package/esm/models/applicationPackageOperationsMappers.d.ts +0 -2
- package/esm/models/applicationPackageOperationsMappers.d.ts.map +0 -1
- package/esm/models/applicationPackageOperationsMappers.js +0 -9
- package/esm/models/applicationPackageOperationsMappers.js.map +0 -1
- package/esm/models/batchAccountOperationsMappers.d.ts +0 -2
- package/esm/models/batchAccountOperationsMappers.d.ts.map +0 -1
- package/esm/models/batchAccountOperationsMappers.js +0 -9
- package/esm/models/batchAccountOperationsMappers.js.map +0 -1
- package/esm/models/certificateOperationsMappers.d.ts +0 -2
- package/esm/models/certificateOperationsMappers.d.ts.map +0 -1
- package/esm/models/certificateOperationsMappers.js +0 -9
- package/esm/models/certificateOperationsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -3392
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/locationMappers.d.ts +0 -2
- package/esm/models/locationMappers.d.ts.map +0 -1
- package/esm/models/locationMappers.js +0 -9
- package/esm/models/locationMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -96
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -21
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -251
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/poolOperationsMappers.d.ts +0 -2
- package/esm/models/poolOperationsMappers.d.ts.map +0 -1
- package/esm/models/poolOperationsMappers.js +0 -9
- package/esm/models/poolOperationsMappers.js.map +0 -1
- package/esm/models/privateEndpointConnectionOperationsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionOperationsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionOperationsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionOperationsMappers.js.map +0 -1
- package/esm/models/privateLinkResourceOperationsMappers.d.ts +0 -2
- package/esm/models/privateLinkResourceOperationsMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourceOperationsMappers.js +0 -9
- package/esm/models/privateLinkResourceOperationsMappers.js.map +0 -1
- package/esm/operations/applicationOperations.d.ts +0 -151
- package/esm/operations/applicationOperations.d.ts.map +0 -1
- package/esm/operations/applicationOperations.js +0 -229
- package/esm/operations/applicationOperations.js.map +0 -1
- package/esm/operations/applicationPackageOperations.d.ts +0 -170
- package/esm/operations/applicationPackageOperations.d.ts.map +0 -1
- package/esm/operations/applicationPackageOperations.js +0 -241
- package/esm/operations/applicationPackageOperations.js.map +0 -1
- package/esm/operations/batchAccountOperations.d.ts +0 -246
- package/esm/operations/batchAccountOperations.d.ts.map +0 -1
- package/esm/operations/batchAccountOperations.js +0 -428
- package/esm/operations/batchAccountOperations.js.map +0 -1
- package/esm/operations/certificateOperations.d.ts +0 -198
- package/esm/operations/certificateOperations.d.ts.map +0 -1
- package/esm/operations/certificateOperations.js +0 -331
- package/esm/operations/certificateOperations.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/location.d.ts +0 -52
- package/esm/operations/location.d.ts.map +0 -1
- package/esm/operations/location.js +0 -93
- package/esm/operations/location.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/poolOperations.d.ts +0 -199
- package/esm/operations/poolOperations.d.ts.map +0 -1
- package/esm/operations/poolOperations.js +0 -358
- package/esm/operations/poolOperations.js.map +0 -1
- package/esm/operations/privateEndpointConnectionOperations.d.ts +0 -104
- package/esm/operations/privateEndpointConnectionOperations.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnectionOperations.js +0 -192
- package/esm/operations/privateEndpointConnectionOperations.js.map +0 -1
- package/esm/operations/privateLinkResourceOperations.d.ts +0 -79
- package/esm/operations/privateLinkResourceOperations.d.ts.map +0 -1
- package/esm/operations/privateLinkResourceOperations.js +0 -118
- package/esm/operations/privateLinkResourceOperations.js.map +0 -1
- package/src/models/applicationOperationsMappers.ts +0 -72
- package/src/models/applicationPackageOperationsMappers.ts +0 -73
- package/src/models/batchAccountOperationsMappers.ts +0 -78
- package/src/models/certificateOperationsMappers.ts +0 -77
- package/src/models/locationMappers.ts +0 -14
- package/src/models/operationsMappers.ts +0 -14
- package/src/models/poolOperationsMappers.ts +0 -78
- package/src/models/privateEndpointConnectionOperationsMappers.ts +0 -73
- package/src/models/privateLinkResourceOperationsMappers.ts +0 -72
|
@@ -1,27 +1,46 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
14
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PoolOperations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
15
13
|
import * as Parameters from "../models/parameters";
|
|
16
14
|
import { BatchManagementClientContext } from "../batchManagementClientContext";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
Pool,
|
|
19
|
+
PoolListByBatchAccountNextOptionalParams,
|
|
20
|
+
PoolListByBatchAccountOptionalParams,
|
|
21
|
+
PoolListByBatchAccountResponse,
|
|
22
|
+
PoolCreateOptionalParams,
|
|
23
|
+
PoolCreateResponse,
|
|
24
|
+
PoolUpdateOptionalParams,
|
|
25
|
+
PoolUpdateResponse,
|
|
26
|
+
PoolDeleteOptionalParams,
|
|
27
|
+
PoolGetOptionalParams,
|
|
28
|
+
PoolGetResponse,
|
|
29
|
+
PoolDisableAutoScaleOptionalParams,
|
|
30
|
+
PoolDisableAutoScaleResponse,
|
|
31
|
+
PoolStopResizeOptionalParams,
|
|
32
|
+
PoolStopResizeResponse,
|
|
33
|
+
PoolListByBatchAccountNextResponse
|
|
34
|
+
} from "../models";
|
|
17
35
|
|
|
18
|
-
|
|
19
|
-
|
|
36
|
+
/// <reference lib="esnext.asynciterable" />
|
|
37
|
+
/** Class containing PoolOperations operations. */
|
|
38
|
+
export class PoolOperationsImpl implements PoolOperations {
|
|
20
39
|
private readonly client: BatchManagementClientContext;
|
|
21
40
|
|
|
22
41
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
42
|
+
* Initialize a new instance of the class PoolOperations class.
|
|
43
|
+
* @param client Reference to the service client
|
|
25
44
|
*/
|
|
26
45
|
constructor(client: BatchManagementClientContext) {
|
|
27
46
|
this.client = client;
|
|
@@ -31,32 +50,88 @@ export class PoolOperations {
|
|
|
31
50
|
* Lists all of the pools in the specified account.
|
|
32
51
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
33
52
|
* @param accountName The name of the Batch account.
|
|
34
|
-
* @param
|
|
35
|
-
* @returns Promise<Models.PoolListByBatchAccountResponse>
|
|
53
|
+
* @param options The options parameters.
|
|
36
54
|
*/
|
|
37
|
-
listByBatchAccount(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
55
|
+
public listByBatchAccount(
|
|
56
|
+
resourceGroupName: string,
|
|
57
|
+
accountName: string,
|
|
58
|
+
options?: PoolListByBatchAccountOptionalParams
|
|
59
|
+
): PagedAsyncIterableIterator<Pool> {
|
|
60
|
+
const iter = this.listByBatchAccountPagingAll(
|
|
61
|
+
resourceGroupName,
|
|
62
|
+
accountName,
|
|
63
|
+
options
|
|
64
|
+
);
|
|
65
|
+
return {
|
|
66
|
+
next() {
|
|
67
|
+
return iter.next();
|
|
68
|
+
},
|
|
69
|
+
[Symbol.asyncIterator]() {
|
|
70
|
+
return this;
|
|
71
|
+
},
|
|
72
|
+
byPage: () => {
|
|
73
|
+
return this.listByBatchAccountPagingPage(
|
|
74
|
+
resourceGroupName,
|
|
75
|
+
accountName,
|
|
76
|
+
options
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
private async *listByBatchAccountPagingPage(
|
|
83
|
+
resourceGroupName: string,
|
|
84
|
+
accountName: string,
|
|
85
|
+
options?: PoolListByBatchAccountOptionalParams
|
|
86
|
+
): AsyncIterableIterator<Pool[]> {
|
|
87
|
+
let result = await this._listByBatchAccount(
|
|
88
|
+
resourceGroupName,
|
|
89
|
+
accountName,
|
|
90
|
+
options
|
|
91
|
+
);
|
|
92
|
+
yield result.value || [];
|
|
93
|
+
let continuationToken = result.nextLink;
|
|
94
|
+
while (continuationToken) {
|
|
95
|
+
result = await this._listByBatchAccountNext(
|
|
96
|
+
resourceGroupName,
|
|
97
|
+
accountName,
|
|
98
|
+
continuationToken,
|
|
99
|
+
options
|
|
100
|
+
);
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
yield result.value || [];
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
private async *listByBatchAccountPagingAll(
|
|
107
|
+
resourceGroupName: string,
|
|
108
|
+
accountName: string,
|
|
109
|
+
options?: PoolListByBatchAccountOptionalParams
|
|
110
|
+
): AsyncIterableIterator<Pool> {
|
|
111
|
+
for await (const page of this.listByBatchAccountPagingPage(
|
|
112
|
+
resourceGroupName,
|
|
113
|
+
accountName,
|
|
114
|
+
options
|
|
115
|
+
)) {
|
|
116
|
+
yield* page;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
44
120
|
/**
|
|
121
|
+
* Lists all of the pools in the specified account.
|
|
45
122
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
46
123
|
* @param accountName The name of the Batch account.
|
|
47
|
-
* @param options The
|
|
48
|
-
* @param callback The callback
|
|
124
|
+
* @param options The options parameters.
|
|
49
125
|
*/
|
|
50
|
-
|
|
51
|
-
|
|
126
|
+
private _listByBatchAccount(
|
|
127
|
+
resourceGroupName: string,
|
|
128
|
+
accountName: string,
|
|
129
|
+
options?: PoolListByBatchAccountOptionalParams
|
|
130
|
+
): Promise<PoolListByBatchAccountResponse> {
|
|
52
131
|
return this.client.sendOperationRequest(
|
|
53
|
-
{
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
options
|
|
57
|
-
},
|
|
58
|
-
listByBatchAccountOperationSpec,
|
|
59
|
-
callback) as Promise<Models.PoolListByBatchAccountResponse>;
|
|
132
|
+
{ resourceGroupName, accountName, options },
|
|
133
|
+
listByBatchAccountOperationSpec
|
|
134
|
+
);
|
|
60
135
|
}
|
|
61
136
|
|
|
62
137
|
/**
|
|
@@ -65,12 +140,19 @@ export class PoolOperations {
|
|
|
65
140
|
* @param accountName The name of the Batch account.
|
|
66
141
|
* @param poolName The pool name. This must be unique within the account.
|
|
67
142
|
* @param parameters Additional parameters for pool creation.
|
|
68
|
-
* @param
|
|
69
|
-
* @returns Promise<Models.PoolCreateResponse>
|
|
143
|
+
* @param options The options parameters.
|
|
70
144
|
*/
|
|
71
|
-
create(
|
|
72
|
-
|
|
73
|
-
|
|
145
|
+
create(
|
|
146
|
+
resourceGroupName: string,
|
|
147
|
+
accountName: string,
|
|
148
|
+
poolName: string,
|
|
149
|
+
parameters: Pool,
|
|
150
|
+
options?: PoolCreateOptionalParams
|
|
151
|
+
): Promise<PoolCreateResponse> {
|
|
152
|
+
return this.client.sendOperationRequest(
|
|
153
|
+
{ resourceGroupName, accountName, poolName, parameters, options },
|
|
154
|
+
createOperationSpec
|
|
155
|
+
);
|
|
74
156
|
}
|
|
75
157
|
|
|
76
158
|
/**
|
|
@@ -79,41 +161,20 @@ export class PoolOperations {
|
|
|
79
161
|
* @param accountName The name of the Batch account.
|
|
80
162
|
* @param poolName The pool name. This must be unique within the account.
|
|
81
163
|
* @param parameters Pool properties that should be updated. Properties that are supplied will be
|
|
82
|
-
*
|
|
83
|
-
* @param
|
|
84
|
-
* @returns Promise<Models.PoolUpdateResponse>
|
|
164
|
+
* updated, any property not supplied will be unchanged.
|
|
165
|
+
* @param options The options parameters.
|
|
85
166
|
*/
|
|
86
|
-
update(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
* @param callback The callback
|
|
94
|
-
*/
|
|
95
|
-
update(resourceGroupName: string, accountName: string, poolName: string, parameters: Models.Pool, callback: msRest.ServiceCallback<Models.Pool>): void;
|
|
96
|
-
/**
|
|
97
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
98
|
-
* @param accountName The name of the Batch account.
|
|
99
|
-
* @param poolName The pool name. This must be unique within the account.
|
|
100
|
-
* @param parameters Pool properties that should be updated. Properties that are supplied will be
|
|
101
|
-
* updated, any property not supplied will be unchanged.
|
|
102
|
-
* @param options The optional parameters
|
|
103
|
-
* @param callback The callback
|
|
104
|
-
*/
|
|
105
|
-
update(resourceGroupName: string, accountName: string, poolName: string, parameters: Models.Pool, options: Models.PoolUpdateOptionalParams, callback: msRest.ServiceCallback<Models.Pool>): void;
|
|
106
|
-
update(resourceGroupName: string, accountName: string, poolName: string, parameters: Models.Pool, options?: Models.PoolUpdateOptionalParams | msRest.ServiceCallback<Models.Pool>, callback?: msRest.ServiceCallback<Models.Pool>): Promise<Models.PoolUpdateResponse> {
|
|
167
|
+
update(
|
|
168
|
+
resourceGroupName: string,
|
|
169
|
+
accountName: string,
|
|
170
|
+
poolName: string,
|
|
171
|
+
parameters: Pool,
|
|
172
|
+
options?: PoolUpdateOptionalParams
|
|
173
|
+
): Promise<PoolUpdateResponse> {
|
|
107
174
|
return this.client.sendOperationRequest(
|
|
108
|
-
{
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
poolName,
|
|
112
|
-
parameters,
|
|
113
|
-
options
|
|
114
|
-
},
|
|
115
|
-
updateOperationSpec,
|
|
116
|
-
callback) as Promise<Models.PoolUpdateResponse>;
|
|
175
|
+
{ resourceGroupName, accountName, poolName, parameters, options },
|
|
176
|
+
updateOperationSpec
|
|
177
|
+
);
|
|
117
178
|
}
|
|
118
179
|
|
|
119
180
|
/**
|
|
@@ -121,429 +182,358 @@ export class PoolOperations {
|
|
|
121
182
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
122
183
|
* @param accountName The name of the Batch account.
|
|
123
184
|
* @param poolName The pool name. This must be unique within the account.
|
|
124
|
-
* @param
|
|
125
|
-
* @returns Promise<Models.PoolDeleteResponse>
|
|
185
|
+
* @param options The options parameters.
|
|
126
186
|
*/
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
187
|
+
async beginDelete(
|
|
188
|
+
resourceGroupName: string,
|
|
189
|
+
accountName: string,
|
|
190
|
+
poolName: string,
|
|
191
|
+
options?: PoolDeleteOptionalParams
|
|
192
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
193
|
+
const directSendOperation = async (
|
|
194
|
+
args: coreClient.OperationArguments,
|
|
195
|
+
spec: coreClient.OperationSpec
|
|
196
|
+
): Promise<void> => {
|
|
197
|
+
return this.client.sendOperationRequest(args, spec);
|
|
198
|
+
};
|
|
199
|
+
const sendOperation = async (
|
|
200
|
+
args: coreClient.OperationArguments,
|
|
201
|
+
spec: coreClient.OperationSpec
|
|
202
|
+
) => {
|
|
203
|
+
let currentRawResponse:
|
|
204
|
+
| coreClient.FullOperationResponse
|
|
205
|
+
| undefined = undefined;
|
|
206
|
+
const providedCallback = args.options?.onResponse;
|
|
207
|
+
const callback: coreClient.RawResponseCallback = (
|
|
208
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
209
|
+
flatResponse: unknown
|
|
210
|
+
) => {
|
|
211
|
+
currentRawResponse = rawResponse;
|
|
212
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
213
|
+
};
|
|
214
|
+
const updatedArgs = {
|
|
215
|
+
...args,
|
|
216
|
+
options: {
|
|
217
|
+
...args.options,
|
|
218
|
+
onResponse: callback
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
222
|
+
return {
|
|
223
|
+
flatResponse,
|
|
224
|
+
rawResponse: {
|
|
225
|
+
statusCode: currentRawResponse!.status,
|
|
226
|
+
body: currentRawResponse!.parsedBody,
|
|
227
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
const lro = new LroImpl(
|
|
233
|
+
sendOperation,
|
|
234
|
+
{ resourceGroupName, accountName, poolName, options },
|
|
235
|
+
deleteOperationSpec
|
|
236
|
+
);
|
|
237
|
+
return new LroEngine(lro, {
|
|
238
|
+
resumeFrom: options?.resumeFrom,
|
|
239
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
240
|
+
lroResourceLocationConfig: "location"
|
|
241
|
+
});
|
|
130
242
|
}
|
|
131
243
|
|
|
132
244
|
/**
|
|
133
|
-
*
|
|
134
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
135
|
-
* @param accountName The name of the Batch account.
|
|
136
|
-
* @param poolName The pool name. This must be unique within the account.
|
|
137
|
-
* @param [options] The optional parameters
|
|
138
|
-
* @returns Promise<Models.PoolGetResponse>
|
|
139
|
-
*/
|
|
140
|
-
get(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise<Models.PoolGetResponse>;
|
|
141
|
-
/**
|
|
142
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
143
|
-
* @param accountName The name of the Batch account.
|
|
144
|
-
* @param poolName The pool name. This must be unique within the account.
|
|
145
|
-
* @param callback The callback
|
|
146
|
-
*/
|
|
147
|
-
get(resourceGroupName: string, accountName: string, poolName: string, callback: msRest.ServiceCallback<Models.Pool>): void;
|
|
148
|
-
/**
|
|
245
|
+
* Deletes the specified pool.
|
|
149
246
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
150
247
|
* @param accountName The name of the Batch account.
|
|
151
248
|
* @param poolName The pool name. This must be unique within the account.
|
|
152
|
-
* @param options The
|
|
153
|
-
* @param callback The callback
|
|
249
|
+
* @param options The options parameters.
|
|
154
250
|
*/
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
251
|
+
async beginDeleteAndWait(
|
|
252
|
+
resourceGroupName: string,
|
|
253
|
+
accountName: string,
|
|
254
|
+
poolName: string,
|
|
255
|
+
options?: PoolDeleteOptionalParams
|
|
256
|
+
): Promise<void> {
|
|
257
|
+
const poller = await this.beginDelete(
|
|
258
|
+
resourceGroupName,
|
|
259
|
+
accountName,
|
|
260
|
+
poolName,
|
|
261
|
+
options
|
|
262
|
+
);
|
|
263
|
+
return poller.pollUntilDone();
|
|
166
264
|
}
|
|
167
265
|
|
|
168
266
|
/**
|
|
169
|
-
*
|
|
170
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
171
|
-
* @param accountName The name of the Batch account.
|
|
172
|
-
* @param poolName The pool name. This must be unique within the account.
|
|
173
|
-
* @param [options] The optional parameters
|
|
174
|
-
* @returns Promise<Models.PoolDisableAutoScaleResponse>
|
|
175
|
-
*/
|
|
176
|
-
disableAutoScale(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise<Models.PoolDisableAutoScaleResponse>;
|
|
177
|
-
/**
|
|
178
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
179
|
-
* @param accountName The name of the Batch account.
|
|
180
|
-
* @param poolName The pool name. This must be unique within the account.
|
|
181
|
-
* @param callback The callback
|
|
182
|
-
*/
|
|
183
|
-
disableAutoScale(resourceGroupName: string, accountName: string, poolName: string, callback: msRest.ServiceCallback<Models.Pool>): void;
|
|
184
|
-
/**
|
|
267
|
+
* Gets information about the specified pool.
|
|
185
268
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
186
269
|
* @param accountName The name of the Batch account.
|
|
187
270
|
* @param poolName The pool name. This must be unique within the account.
|
|
188
|
-
* @param options The
|
|
189
|
-
* @param callback The callback
|
|
271
|
+
* @param options The options parameters.
|
|
190
272
|
*/
|
|
191
|
-
|
|
192
|
-
|
|
273
|
+
get(
|
|
274
|
+
resourceGroupName: string,
|
|
275
|
+
accountName: string,
|
|
276
|
+
poolName: string,
|
|
277
|
+
options?: PoolGetOptionalParams
|
|
278
|
+
): Promise<PoolGetResponse> {
|
|
193
279
|
return this.client.sendOperationRequest(
|
|
194
|
-
{
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
poolName,
|
|
198
|
-
options
|
|
199
|
-
},
|
|
200
|
-
disableAutoScaleOperationSpec,
|
|
201
|
-
callback) as Promise<Models.PoolDisableAutoScaleResponse>;
|
|
280
|
+
{ resourceGroupName, accountName, poolName, options },
|
|
281
|
+
getOperationSpec
|
|
282
|
+
);
|
|
202
283
|
}
|
|
203
284
|
|
|
204
285
|
/**
|
|
205
|
-
*
|
|
206
|
-
* any further changes being made, and the pool maintains its current state. After stopping, the
|
|
207
|
-
* pool stabilizes at the number of nodes it was at when the stop operation was done. During the
|
|
208
|
-
* stop operation, the pool allocation state changes first to stopping and then to steady. A resize
|
|
209
|
-
* operation need not be an explicit resize pool request; this API can also be used to halt the
|
|
210
|
-
* initial sizing of the pool when it is created.
|
|
211
|
-
* @summary Stops an ongoing resize operation on the pool.
|
|
212
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
213
|
-
* @param accountName The name of the Batch account.
|
|
214
|
-
* @param poolName The pool name. This must be unique within the account.
|
|
215
|
-
* @param [options] The optional parameters
|
|
216
|
-
* @returns Promise<Models.PoolStopResizeResponse>
|
|
217
|
-
*/
|
|
218
|
-
stopResize(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise<Models.PoolStopResizeResponse>;
|
|
219
|
-
/**
|
|
220
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
221
|
-
* @param accountName The name of the Batch account.
|
|
222
|
-
* @param poolName The pool name. This must be unique within the account.
|
|
223
|
-
* @param callback The callback
|
|
224
|
-
*/
|
|
225
|
-
stopResize(resourceGroupName: string, accountName: string, poolName: string, callback: msRest.ServiceCallback<Models.Pool>): void;
|
|
226
|
-
/**
|
|
286
|
+
* Disables automatic scaling for a pool.
|
|
227
287
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
228
288
|
* @param accountName The name of the Batch account.
|
|
229
289
|
* @param poolName The pool name. This must be unique within the account.
|
|
230
|
-
* @param options The
|
|
231
|
-
* @param callback The callback
|
|
290
|
+
* @param options The options parameters.
|
|
232
291
|
*/
|
|
233
|
-
|
|
234
|
-
|
|
292
|
+
disableAutoScale(
|
|
293
|
+
resourceGroupName: string,
|
|
294
|
+
accountName: string,
|
|
295
|
+
poolName: string,
|
|
296
|
+
options?: PoolDisableAutoScaleOptionalParams
|
|
297
|
+
): Promise<PoolDisableAutoScaleResponse> {
|
|
235
298
|
return this.client.sendOperationRequest(
|
|
236
|
-
{
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
poolName,
|
|
240
|
-
options
|
|
241
|
-
},
|
|
242
|
-
stopResizeOperationSpec,
|
|
243
|
-
callback) as Promise<Models.PoolStopResizeResponse>;
|
|
299
|
+
{ resourceGroupName, accountName, poolName, options },
|
|
300
|
+
disableAutoScaleOperationSpec
|
|
301
|
+
);
|
|
244
302
|
}
|
|
245
303
|
|
|
246
304
|
/**
|
|
247
|
-
*
|
|
305
|
+
* This does not restore the pool to its previous state before the resize operation: it only stops any
|
|
306
|
+
* further changes being made, and the pool maintains its current state. After stopping, the pool
|
|
307
|
+
* stabilizes at the number of nodes it was at when the stop operation was done. During the stop
|
|
308
|
+
* operation, the pool allocation state changes first to stopping and then to steady. A resize
|
|
309
|
+
* operation need not be an explicit resize pool request; this API can also be used to halt the initial
|
|
310
|
+
* sizing of the pool when it is created.
|
|
248
311
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
249
312
|
* @param accountName The name of the Batch account.
|
|
250
313
|
* @param poolName The pool name. This must be unique within the account.
|
|
251
|
-
* @param
|
|
252
|
-
* @param [options] The optional parameters
|
|
253
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
314
|
+
* @param options The options parameters.
|
|
254
315
|
*/
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
options);
|
|
316
|
+
stopResize(
|
|
317
|
+
resourceGroupName: string,
|
|
318
|
+
accountName: string,
|
|
319
|
+
poolName: string,
|
|
320
|
+
options?: PoolStopResizeOptionalParams
|
|
321
|
+
): Promise<PoolStopResizeResponse> {
|
|
322
|
+
return this.client.sendOperationRequest(
|
|
323
|
+
{ resourceGroupName, accountName, poolName, options },
|
|
324
|
+
stopResizeOperationSpec
|
|
325
|
+
);
|
|
266
326
|
}
|
|
267
327
|
|
|
268
328
|
/**
|
|
269
|
-
*
|
|
329
|
+
* ListByBatchAccountNext
|
|
270
330
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
271
331
|
* @param accountName The name of the Batch account.
|
|
272
|
-
* @param
|
|
273
|
-
* @param
|
|
274
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
275
|
-
*/
|
|
276
|
-
beginDeleteMethod(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
277
|
-
return this.client.sendLRORequest(
|
|
278
|
-
{
|
|
279
|
-
resourceGroupName,
|
|
280
|
-
accountName,
|
|
281
|
-
poolName,
|
|
282
|
-
options
|
|
283
|
-
},
|
|
284
|
-
beginDeleteMethodOperationSpec,
|
|
285
|
-
options);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* Lists all of the pools in the specified account.
|
|
290
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
291
|
-
* @param [options] The optional parameters
|
|
292
|
-
* @returns Promise<Models.PoolListByBatchAccountNextResponse>
|
|
332
|
+
* @param nextLink The nextLink from the previous successful call to the ListByBatchAccount method.
|
|
333
|
+
* @param options The options parameters.
|
|
293
334
|
*/
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
302
|
-
* @param options The optional parameters
|
|
303
|
-
* @param callback The callback
|
|
304
|
-
*/
|
|
305
|
-
listByBatchAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ListPoolsResult>): void;
|
|
306
|
-
listByBatchAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ListPoolsResult>, callback?: msRest.ServiceCallback<Models.ListPoolsResult>): Promise<Models.PoolListByBatchAccountNextResponse> {
|
|
335
|
+
private _listByBatchAccountNext(
|
|
336
|
+
resourceGroupName: string,
|
|
337
|
+
accountName: string,
|
|
338
|
+
nextLink: string,
|
|
339
|
+
options?: PoolListByBatchAccountNextOptionalParams
|
|
340
|
+
): Promise<PoolListByBatchAccountNextResponse> {
|
|
307
341
|
return this.client.sendOperationRequest(
|
|
308
|
-
{
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
},
|
|
312
|
-
listByBatchAccountNextOperationSpec,
|
|
313
|
-
callback) as Promise<Models.PoolListByBatchAccountNextResponse>;
|
|
342
|
+
{ resourceGroupName, accountName, nextLink, options },
|
|
343
|
+
listByBatchAccountNextOperationSpec
|
|
344
|
+
);
|
|
314
345
|
}
|
|
315
346
|
}
|
|
316
|
-
|
|
317
347
|
// Operation Specifications
|
|
318
|
-
const serializer =
|
|
319
|
-
|
|
348
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
349
|
+
|
|
350
|
+
const listByBatchAccountOperationSpec: coreClient.OperationSpec = {
|
|
351
|
+
path:
|
|
352
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools",
|
|
320
353
|
httpMethod: "GET",
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
354
|
+
responses: {
|
|
355
|
+
200: {
|
|
356
|
+
bodyMapper: Mappers.ListPoolsResult
|
|
357
|
+
},
|
|
358
|
+
default: {
|
|
359
|
+
bodyMapper: Mappers.CloudError
|
|
360
|
+
}
|
|
361
|
+
},
|
|
327
362
|
queryParameters: [
|
|
363
|
+
Parameters.apiVersion,
|
|
328
364
|
Parameters.maxresults,
|
|
329
|
-
Parameters.select,
|
|
330
365
|
Parameters.filter,
|
|
331
|
-
Parameters.
|
|
366
|
+
Parameters.select
|
|
332
367
|
],
|
|
333
|
-
|
|
334
|
-
Parameters
|
|
368
|
+
urlParameters: [
|
|
369
|
+
Parameters.$host,
|
|
370
|
+
Parameters.resourceGroupName,
|
|
371
|
+
Parameters.subscriptionId,
|
|
372
|
+
Parameters.accountName1
|
|
335
373
|
],
|
|
374
|
+
headerParameters: [Parameters.accept],
|
|
375
|
+
serializer
|
|
376
|
+
};
|
|
377
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
378
|
+
path:
|
|
379
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
|
|
380
|
+
httpMethod: "PUT",
|
|
336
381
|
responses: {
|
|
337
382
|
200: {
|
|
338
|
-
bodyMapper: Mappers.
|
|
383
|
+
bodyMapper: Mappers.Pool,
|
|
384
|
+
headersMapper: Mappers.PoolCreateHeaders
|
|
339
385
|
},
|
|
340
386
|
default: {
|
|
341
387
|
bodyMapper: Mappers.CloudError
|
|
342
388
|
}
|
|
343
389
|
},
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
|
348
|
-
httpMethod: "PATCH",
|
|
349
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
|
|
390
|
+
requestBody: Parameters.parameters10,
|
|
391
|
+
queryParameters: [Parameters.apiVersion],
|
|
350
392
|
urlParameters: [
|
|
393
|
+
Parameters.$host,
|
|
351
394
|
Parameters.resourceGroupName,
|
|
395
|
+
Parameters.subscriptionId,
|
|
352
396
|
Parameters.accountName1,
|
|
353
|
-
Parameters.poolName
|
|
354
|
-
Parameters.subscriptionId
|
|
355
|
-
],
|
|
356
|
-
queryParameters: [
|
|
357
|
-
Parameters.apiVersion
|
|
397
|
+
Parameters.poolName
|
|
358
398
|
],
|
|
359
399
|
headerParameters: [
|
|
400
|
+
Parameters.contentType,
|
|
401
|
+
Parameters.accept,
|
|
360
402
|
Parameters.ifMatch,
|
|
361
|
-
Parameters.
|
|
403
|
+
Parameters.ifNoneMatch
|
|
362
404
|
],
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
}
|
|
369
|
-
|
|
405
|
+
mediaType: "json",
|
|
406
|
+
serializer
|
|
407
|
+
};
|
|
408
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
409
|
+
path:
|
|
410
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
|
|
411
|
+
httpMethod: "PATCH",
|
|
370
412
|
responses: {
|
|
371
413
|
200: {
|
|
372
414
|
bodyMapper: Mappers.Pool,
|
|
373
415
|
headersMapper: Mappers.PoolUpdateHeaders
|
|
374
416
|
},
|
|
375
417
|
default: {
|
|
376
|
-
bodyMapper: Mappers.CloudError
|
|
377
|
-
headersMapper: Mappers.PoolUpdateHeaders
|
|
418
|
+
bodyMapper: Mappers.CloudError
|
|
378
419
|
}
|
|
379
420
|
},
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
384
|
-
httpMethod: "GET",
|
|
385
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
|
|
421
|
+
requestBody: Parameters.parameters10,
|
|
422
|
+
queryParameters: [Parameters.apiVersion],
|
|
386
423
|
urlParameters: [
|
|
424
|
+
Parameters.$host,
|
|
387
425
|
Parameters.resourceGroupName,
|
|
426
|
+
Parameters.subscriptionId,
|
|
388
427
|
Parameters.accountName1,
|
|
389
|
-
Parameters.poolName
|
|
390
|
-
Parameters.subscriptionId
|
|
391
|
-
],
|
|
392
|
-
queryParameters: [
|
|
393
|
-
Parameters.apiVersion
|
|
428
|
+
Parameters.poolName
|
|
394
429
|
],
|
|
395
430
|
headerParameters: [
|
|
396
|
-
Parameters.
|
|
431
|
+
Parameters.contentType,
|
|
432
|
+
Parameters.accept,
|
|
433
|
+
Parameters.ifMatch
|
|
397
434
|
],
|
|
435
|
+
mediaType: "json",
|
|
436
|
+
serializer
|
|
437
|
+
};
|
|
438
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
439
|
+
path:
|
|
440
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
|
|
441
|
+
httpMethod: "DELETE",
|
|
398
442
|
responses: {
|
|
399
|
-
200: {
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
},
|
|
443
|
+
200: {},
|
|
444
|
+
201: {},
|
|
445
|
+
202: {},
|
|
446
|
+
204: {},
|
|
403
447
|
default: {
|
|
404
|
-
bodyMapper: Mappers.CloudError
|
|
405
|
-
headersMapper: Mappers.PoolGetHeaders
|
|
448
|
+
bodyMapper: Mappers.CloudError
|
|
406
449
|
}
|
|
407
450
|
},
|
|
408
|
-
|
|
409
|
-
};
|
|
410
|
-
|
|
411
|
-
const disableAutoScaleOperationSpec: msRest.OperationSpec = {
|
|
412
|
-
httpMethod: "POST",
|
|
413
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale",
|
|
451
|
+
queryParameters: [Parameters.apiVersion],
|
|
414
452
|
urlParameters: [
|
|
453
|
+
Parameters.$host,
|
|
415
454
|
Parameters.resourceGroupName,
|
|
455
|
+
Parameters.subscriptionId,
|
|
416
456
|
Parameters.accountName1,
|
|
417
|
-
Parameters.poolName
|
|
418
|
-
Parameters.subscriptionId
|
|
419
|
-
],
|
|
420
|
-
queryParameters: [
|
|
421
|
-
Parameters.apiVersion
|
|
422
|
-
],
|
|
423
|
-
headerParameters: [
|
|
424
|
-
Parameters.acceptLanguage
|
|
457
|
+
Parameters.poolName
|
|
425
458
|
],
|
|
459
|
+
headerParameters: [Parameters.accept],
|
|
460
|
+
serializer
|
|
461
|
+
};
|
|
462
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
463
|
+
path:
|
|
464
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
|
|
465
|
+
httpMethod: "GET",
|
|
426
466
|
responses: {
|
|
427
467
|
200: {
|
|
428
468
|
bodyMapper: Mappers.Pool,
|
|
429
|
-
headersMapper: Mappers.
|
|
469
|
+
headersMapper: Mappers.PoolGetHeaders
|
|
430
470
|
},
|
|
431
471
|
default: {
|
|
432
|
-
bodyMapper: Mappers.CloudError
|
|
433
|
-
headersMapper: Mappers.PoolDisableAutoScaleHeaders
|
|
472
|
+
bodyMapper: Mappers.CloudError
|
|
434
473
|
}
|
|
435
474
|
},
|
|
436
|
-
|
|
437
|
-
};
|
|
438
|
-
|
|
439
|
-
const stopResizeOperationSpec: msRest.OperationSpec = {
|
|
440
|
-
httpMethod: "POST",
|
|
441
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize",
|
|
475
|
+
queryParameters: [Parameters.apiVersion],
|
|
442
476
|
urlParameters: [
|
|
477
|
+
Parameters.$host,
|
|
443
478
|
Parameters.resourceGroupName,
|
|
479
|
+
Parameters.subscriptionId,
|
|
444
480
|
Parameters.accountName1,
|
|
445
|
-
Parameters.poolName
|
|
446
|
-
Parameters.subscriptionId
|
|
447
|
-
],
|
|
448
|
-
queryParameters: [
|
|
449
|
-
Parameters.apiVersion
|
|
450
|
-
],
|
|
451
|
-
headerParameters: [
|
|
452
|
-
Parameters.acceptLanguage
|
|
481
|
+
Parameters.poolName
|
|
453
482
|
],
|
|
483
|
+
headerParameters: [Parameters.accept],
|
|
484
|
+
serializer
|
|
485
|
+
};
|
|
486
|
+
const disableAutoScaleOperationSpec: coreClient.OperationSpec = {
|
|
487
|
+
path:
|
|
488
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale",
|
|
489
|
+
httpMethod: "POST",
|
|
454
490
|
responses: {
|
|
455
491
|
200: {
|
|
456
492
|
bodyMapper: Mappers.Pool,
|
|
457
|
-
headersMapper: Mappers.
|
|
493
|
+
headersMapper: Mappers.PoolDisableAutoScaleHeaders
|
|
458
494
|
},
|
|
459
495
|
default: {
|
|
460
|
-
bodyMapper: Mappers.CloudError
|
|
461
|
-
headersMapper: Mappers.PoolStopResizeHeaders
|
|
496
|
+
bodyMapper: Mappers.CloudError
|
|
462
497
|
}
|
|
463
498
|
},
|
|
464
|
-
|
|
465
|
-
};
|
|
466
|
-
|
|
467
|
-
const beginCreateOperationSpec: msRest.OperationSpec = {
|
|
468
|
-
httpMethod: "PUT",
|
|
469
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
|
|
499
|
+
queryParameters: [Parameters.apiVersion],
|
|
470
500
|
urlParameters: [
|
|
501
|
+
Parameters.$host,
|
|
471
502
|
Parameters.resourceGroupName,
|
|
503
|
+
Parameters.subscriptionId,
|
|
472
504
|
Parameters.accountName1,
|
|
473
|
-
Parameters.poolName
|
|
474
|
-
Parameters.subscriptionId
|
|
505
|
+
Parameters.poolName
|
|
475
506
|
],
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
],
|
|
484
|
-
requestBody: {
|
|
485
|
-
parameterPath: "parameters",
|
|
486
|
-
mapper: {
|
|
487
|
-
...Mappers.Pool,
|
|
488
|
-
required: true
|
|
489
|
-
}
|
|
490
|
-
},
|
|
507
|
+
headerParameters: [Parameters.accept],
|
|
508
|
+
serializer
|
|
509
|
+
};
|
|
510
|
+
const stopResizeOperationSpec: coreClient.OperationSpec = {
|
|
511
|
+
path:
|
|
512
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize",
|
|
513
|
+
httpMethod: "POST",
|
|
491
514
|
responses: {
|
|
492
515
|
200: {
|
|
493
516
|
bodyMapper: Mappers.Pool,
|
|
494
|
-
headersMapper: Mappers.
|
|
517
|
+
headersMapper: Mappers.PoolStopResizeHeaders
|
|
495
518
|
},
|
|
496
519
|
default: {
|
|
497
|
-
bodyMapper: Mappers.CloudError
|
|
498
|
-
headersMapper: Mappers.PoolCreateHeaders
|
|
520
|
+
bodyMapper: Mappers.CloudError
|
|
499
521
|
}
|
|
500
522
|
},
|
|
501
|
-
|
|
502
|
-
};
|
|
503
|
-
|
|
504
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
505
|
-
httpMethod: "DELETE",
|
|
506
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
|
|
523
|
+
queryParameters: [Parameters.apiVersion],
|
|
507
524
|
urlParameters: [
|
|
525
|
+
Parameters.$host,
|
|
508
526
|
Parameters.resourceGroupName,
|
|
527
|
+
Parameters.subscriptionId,
|
|
509
528
|
Parameters.accountName1,
|
|
510
|
-
Parameters.poolName
|
|
511
|
-
Parameters.subscriptionId
|
|
512
|
-
],
|
|
513
|
-
queryParameters: [
|
|
514
|
-
Parameters.apiVersion
|
|
515
|
-
],
|
|
516
|
-
headerParameters: [
|
|
517
|
-
Parameters.acceptLanguage
|
|
529
|
+
Parameters.poolName
|
|
518
530
|
],
|
|
519
|
-
|
|
520
|
-
200: {
|
|
521
|
-
headersMapper: Mappers.PoolDeleteHeaders
|
|
522
|
-
},
|
|
523
|
-
202: {
|
|
524
|
-
headersMapper: Mappers.PoolDeleteHeaders
|
|
525
|
-
},
|
|
526
|
-
204: {
|
|
527
|
-
headersMapper: Mappers.PoolDeleteHeaders
|
|
528
|
-
},
|
|
529
|
-
default: {
|
|
530
|
-
bodyMapper: Mappers.CloudError,
|
|
531
|
-
headersMapper: Mappers.PoolDeleteHeaders
|
|
532
|
-
}
|
|
533
|
-
},
|
|
531
|
+
headerParameters: [Parameters.accept],
|
|
534
532
|
serializer
|
|
535
533
|
};
|
|
536
|
-
|
|
537
|
-
const listByBatchAccountNextOperationSpec: msRest.OperationSpec = {
|
|
538
|
-
httpMethod: "GET",
|
|
539
|
-
baseUrl: "https://management.azure.com",
|
|
534
|
+
const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = {
|
|
540
535
|
path: "{nextLink}",
|
|
541
|
-
|
|
542
|
-
Parameters.nextPageLink
|
|
543
|
-
],
|
|
544
|
-
headerParameters: [
|
|
545
|
-
Parameters.acceptLanguage
|
|
546
|
-
],
|
|
536
|
+
httpMethod: "GET",
|
|
547
537
|
responses: {
|
|
548
538
|
200: {
|
|
549
539
|
bodyMapper: Mappers.ListPoolsResult
|
|
@@ -552,5 +542,19 @@ const listByBatchAccountNextOperationSpec: msRest.OperationSpec = {
|
|
|
552
542
|
bodyMapper: Mappers.CloudError
|
|
553
543
|
}
|
|
554
544
|
},
|
|
545
|
+
queryParameters: [
|
|
546
|
+
Parameters.apiVersion,
|
|
547
|
+
Parameters.maxresults,
|
|
548
|
+
Parameters.filter,
|
|
549
|
+
Parameters.select
|
|
550
|
+
],
|
|
551
|
+
urlParameters: [
|
|
552
|
+
Parameters.$host,
|
|
553
|
+
Parameters.resourceGroupName,
|
|
554
|
+
Parameters.subscriptionId,
|
|
555
|
+
Parameters.accountName1,
|
|
556
|
+
Parameters.nextLink
|
|
557
|
+
],
|
|
558
|
+
headerParameters: [Parameters.accept],
|
|
555
559
|
serializer
|
|
556
560
|
};
|