@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,413 +1,650 @@
|
|
|
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 { BatchAccountOperations } 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
|
+
BatchAccount,
|
|
19
|
+
BatchAccountListNextOptionalParams,
|
|
20
|
+
BatchAccountListOptionalParams,
|
|
21
|
+
BatchAccountListByResourceGroupNextOptionalParams,
|
|
22
|
+
BatchAccountListByResourceGroupOptionalParams,
|
|
23
|
+
OutboundEnvironmentEndpoint,
|
|
24
|
+
BatchAccountListOutboundNetworkDependenciesEndpointsNextOptionalParams,
|
|
25
|
+
BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams,
|
|
26
|
+
BatchAccountCreateParameters,
|
|
27
|
+
BatchAccountCreateOptionalParams,
|
|
28
|
+
BatchAccountCreateResponse,
|
|
29
|
+
BatchAccountUpdateParameters,
|
|
30
|
+
BatchAccountUpdateOptionalParams,
|
|
31
|
+
BatchAccountUpdateResponse,
|
|
32
|
+
BatchAccountDeleteOptionalParams,
|
|
33
|
+
BatchAccountGetOptionalParams,
|
|
34
|
+
BatchAccountGetResponse,
|
|
35
|
+
BatchAccountListResponse,
|
|
36
|
+
BatchAccountListByResourceGroupResponse,
|
|
37
|
+
BatchAccountSynchronizeAutoStorageKeysOptionalParams,
|
|
38
|
+
BatchAccountRegenerateKeyParameters,
|
|
39
|
+
BatchAccountRegenerateKeyOptionalParams,
|
|
40
|
+
BatchAccountRegenerateKeyResponse,
|
|
41
|
+
BatchAccountGetKeysOptionalParams,
|
|
42
|
+
BatchAccountGetKeysResponse,
|
|
43
|
+
BatchAccountListOutboundNetworkDependenciesEndpointsResponse,
|
|
44
|
+
BatchAccountListNextResponse,
|
|
45
|
+
BatchAccountListByResourceGroupNextResponse,
|
|
46
|
+
BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse
|
|
47
|
+
} from "../models";
|
|
17
48
|
|
|
18
|
-
|
|
19
|
-
|
|
49
|
+
/// <reference lib="esnext.asynciterable" />
|
|
50
|
+
/** Class containing BatchAccountOperations operations. */
|
|
51
|
+
export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
20
52
|
private readonly client: BatchManagementClientContext;
|
|
21
53
|
|
|
22
54
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
55
|
+
* Initialize a new instance of the class BatchAccountOperations class.
|
|
56
|
+
* @param client Reference to the service client
|
|
25
57
|
*/
|
|
26
58
|
constructor(client: BatchManagementClientContext) {
|
|
27
59
|
this.client = client;
|
|
28
60
|
}
|
|
29
61
|
|
|
30
62
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
63
|
+
* Gets information about the Batch accounts associated with the subscription.
|
|
64
|
+
* @param options The options parameters.
|
|
65
|
+
*/
|
|
66
|
+
public list(
|
|
67
|
+
options?: BatchAccountListOptionalParams
|
|
68
|
+
): PagedAsyncIterableIterator<BatchAccount> {
|
|
69
|
+
const iter = this.listPagingAll(options);
|
|
70
|
+
return {
|
|
71
|
+
next() {
|
|
72
|
+
return iter.next();
|
|
73
|
+
},
|
|
74
|
+
[Symbol.asyncIterator]() {
|
|
75
|
+
return this;
|
|
76
|
+
},
|
|
77
|
+
byPage: () => {
|
|
78
|
+
return this.listPagingPage(options);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
private async *listPagingPage(
|
|
84
|
+
options?: BatchAccountListOptionalParams
|
|
85
|
+
): AsyncIterableIterator<BatchAccount[]> {
|
|
86
|
+
let result = await this._list(options);
|
|
87
|
+
yield result.value || [];
|
|
88
|
+
let continuationToken = result.nextLink;
|
|
89
|
+
while (continuationToken) {
|
|
90
|
+
result = await this._listNext(continuationToken, options);
|
|
91
|
+
continuationToken = result.nextLink;
|
|
92
|
+
yield result.value || [];
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
private async *listPagingAll(
|
|
97
|
+
options?: BatchAccountListOptionalParams
|
|
98
|
+
): AsyncIterableIterator<BatchAccount> {
|
|
99
|
+
for await (const page of this.listPagingPage(options)) {
|
|
100
|
+
yield* page;
|
|
101
|
+
}
|
|
46
102
|
}
|
|
47
103
|
|
|
48
104
|
/**
|
|
49
|
-
*
|
|
50
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
51
|
-
* @param accountName The name of the Batch account.
|
|
52
|
-
* @param parameters Additional parameters for account update.
|
|
53
|
-
* @param [options] The optional parameters
|
|
54
|
-
* @returns Promise<Models.BatchAccountUpdateResponse>
|
|
55
|
-
*/
|
|
56
|
-
update(resourceGroupName: string, accountName: string, parameters: Models.BatchAccountUpdateParameters, options?: msRest.RequestOptionsBase): Promise<Models.BatchAccountUpdateResponse>;
|
|
57
|
-
/**
|
|
58
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
59
|
-
* @param accountName The name of the Batch account.
|
|
60
|
-
* @param parameters Additional parameters for account update.
|
|
61
|
-
* @param callback The callback
|
|
62
|
-
*/
|
|
63
|
-
update(resourceGroupName: string, accountName: string, parameters: Models.BatchAccountUpdateParameters, callback: msRest.ServiceCallback<Models.BatchAccount>): void;
|
|
64
|
-
/**
|
|
105
|
+
* Gets information about the Batch accounts associated with the specified resource group.
|
|
65
106
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
66
|
-
* @param
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return
|
|
74
|
-
{
|
|
107
|
+
* @param options The options parameters.
|
|
108
|
+
*/
|
|
109
|
+
public listByResourceGroup(
|
|
110
|
+
resourceGroupName: string,
|
|
111
|
+
options?: BatchAccountListByResourceGroupOptionalParams
|
|
112
|
+
): PagedAsyncIterableIterator<BatchAccount> {
|
|
113
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
114
|
+
return {
|
|
115
|
+
next() {
|
|
116
|
+
return iter.next();
|
|
117
|
+
},
|
|
118
|
+
[Symbol.asyncIterator]() {
|
|
119
|
+
return this;
|
|
120
|
+
},
|
|
121
|
+
byPage: () => {
|
|
122
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
private async *listByResourceGroupPagingPage(
|
|
128
|
+
resourceGroupName: string,
|
|
129
|
+
options?: BatchAccountListByResourceGroupOptionalParams
|
|
130
|
+
): AsyncIterableIterator<BatchAccount[]> {
|
|
131
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
132
|
+
yield result.value || [];
|
|
133
|
+
let continuationToken = result.nextLink;
|
|
134
|
+
while (continuationToken) {
|
|
135
|
+
result = await this._listByResourceGroupNext(
|
|
75
136
|
resourceGroupName,
|
|
76
|
-
|
|
77
|
-
parameters,
|
|
137
|
+
continuationToken,
|
|
78
138
|
options
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
139
|
+
);
|
|
140
|
+
continuationToken = result.nextLink;
|
|
141
|
+
yield result.value || [];
|
|
142
|
+
}
|
|
82
143
|
}
|
|
83
144
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
145
|
+
private async *listByResourceGroupPagingAll(
|
|
146
|
+
resourceGroupName: string,
|
|
147
|
+
options?: BatchAccountListByResourceGroupOptionalParams
|
|
148
|
+
): AsyncIterableIterator<BatchAccount> {
|
|
149
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
150
|
+
resourceGroupName,
|
|
151
|
+
options
|
|
152
|
+
)) {
|
|
153
|
+
yield* page;
|
|
154
|
+
}
|
|
94
155
|
}
|
|
95
156
|
|
|
96
157
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
|
|
103
|
-
get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.BatchAccountGetResponse>;
|
|
104
|
-
/**
|
|
105
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
106
|
-
* @param accountName The name of the Batch account.
|
|
107
|
-
* @param callback The callback
|
|
108
|
-
*/
|
|
109
|
-
get(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.BatchAccount>): void;
|
|
110
|
-
/**
|
|
158
|
+
* Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch
|
|
159
|
+
* service administration. If you are deploying a Pool inside of a virtual network that you specify,
|
|
160
|
+
* you must make sure your network allows outbound access to these endpoints. Failure to allow access
|
|
161
|
+
* to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
|
|
162
|
+
* about creating a pool inside of a virtual network, see
|
|
163
|
+
* https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
|
|
111
164
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
112
165
|
* @param accountName The name of the Batch account.
|
|
113
|
-
* @param options The
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
166
|
+
* @param options The options parameters.
|
|
167
|
+
*/
|
|
168
|
+
public listOutboundNetworkDependenciesEndpoints(
|
|
169
|
+
resourceGroupName: string,
|
|
170
|
+
accountName: string,
|
|
171
|
+
options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams
|
|
172
|
+
): PagedAsyncIterableIterator<OutboundEnvironmentEndpoint> {
|
|
173
|
+
const iter = this.listOutboundNetworkDependenciesEndpointsPagingAll(
|
|
174
|
+
resourceGroupName,
|
|
175
|
+
accountName,
|
|
176
|
+
options
|
|
177
|
+
);
|
|
178
|
+
return {
|
|
179
|
+
next() {
|
|
180
|
+
return iter.next();
|
|
181
|
+
},
|
|
182
|
+
[Symbol.asyncIterator]() {
|
|
183
|
+
return this;
|
|
184
|
+
},
|
|
185
|
+
byPage: () => {
|
|
186
|
+
return this.listOutboundNetworkDependenciesEndpointsPagingPage(
|
|
187
|
+
resourceGroupName,
|
|
188
|
+
accountName,
|
|
189
|
+
options
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
private async *listOutboundNetworkDependenciesEndpointsPagingPage(
|
|
196
|
+
resourceGroupName: string,
|
|
197
|
+
accountName: string,
|
|
198
|
+
options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams
|
|
199
|
+
): AsyncIterableIterator<OutboundEnvironmentEndpoint[]> {
|
|
200
|
+
let result = await this._listOutboundNetworkDependenciesEndpoints(
|
|
201
|
+
resourceGroupName,
|
|
202
|
+
accountName,
|
|
203
|
+
options
|
|
204
|
+
);
|
|
205
|
+
yield result.value || [];
|
|
206
|
+
let continuationToken = result.nextLink;
|
|
207
|
+
while (continuationToken) {
|
|
208
|
+
result = await this._listOutboundNetworkDependenciesEndpointsNext(
|
|
120
209
|
resourceGroupName,
|
|
121
210
|
accountName,
|
|
211
|
+
continuationToken,
|
|
122
212
|
options
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
213
|
+
);
|
|
214
|
+
continuationToken = result.nextLink;
|
|
215
|
+
yield result.value || [];
|
|
216
|
+
}
|
|
126
217
|
}
|
|
127
218
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
* @param callback The callback
|
|
141
|
-
*/
|
|
142
|
-
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BatchAccountListResult>): void;
|
|
143
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.BatchAccountListResult>, callback?: msRest.ServiceCallback<Models.BatchAccountListResult>): Promise<Models.BatchAccountListResponse> {
|
|
144
|
-
return this.client.sendOperationRequest(
|
|
145
|
-
{
|
|
146
|
-
options
|
|
147
|
-
},
|
|
148
|
-
listOperationSpec,
|
|
149
|
-
callback) as Promise<Models.BatchAccountListResponse>;
|
|
219
|
+
private async *listOutboundNetworkDependenciesEndpointsPagingAll(
|
|
220
|
+
resourceGroupName: string,
|
|
221
|
+
accountName: string,
|
|
222
|
+
options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams
|
|
223
|
+
): AsyncIterableIterator<OutboundEnvironmentEndpoint> {
|
|
224
|
+
for await (const page of this.listOutboundNetworkDependenciesEndpointsPagingPage(
|
|
225
|
+
resourceGroupName,
|
|
226
|
+
accountName,
|
|
227
|
+
options
|
|
228
|
+
)) {
|
|
229
|
+
yield* page;
|
|
230
|
+
}
|
|
150
231
|
}
|
|
151
232
|
|
|
152
233
|
/**
|
|
153
|
-
*
|
|
234
|
+
* Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with
|
|
235
|
+
* this API and should instead be updated with the Update Batch Account API.
|
|
154
236
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
155
|
-
* @param
|
|
156
|
-
*
|
|
157
|
-
|
|
158
|
-
|
|
237
|
+
* @param accountName A name for the Batch account which must be unique within the region. Batch
|
|
238
|
+
* account names must be between 3 and 24 characters in length and must use only numbers and lowercase
|
|
239
|
+
* letters. This name is used as part of the DNS name that is used to access the Batch service in the
|
|
240
|
+
* region in which the account is created. For example: http://accountname.region.batch.azure.com/.
|
|
241
|
+
* @param parameters Additional parameters for account creation.
|
|
242
|
+
* @param options The options parameters.
|
|
243
|
+
*/
|
|
244
|
+
async beginCreate(
|
|
245
|
+
resourceGroupName: string,
|
|
246
|
+
accountName: string,
|
|
247
|
+
parameters: BatchAccountCreateParameters,
|
|
248
|
+
options?: BatchAccountCreateOptionalParams
|
|
249
|
+
): Promise<
|
|
250
|
+
PollerLike<
|
|
251
|
+
PollOperationState<BatchAccountCreateResponse>,
|
|
252
|
+
BatchAccountCreateResponse
|
|
253
|
+
>
|
|
254
|
+
> {
|
|
255
|
+
const directSendOperation = async (
|
|
256
|
+
args: coreClient.OperationArguments,
|
|
257
|
+
spec: coreClient.OperationSpec
|
|
258
|
+
): Promise<BatchAccountCreateResponse> => {
|
|
259
|
+
return this.client.sendOperationRequest(args, spec);
|
|
260
|
+
};
|
|
261
|
+
const sendOperation = async (
|
|
262
|
+
args: coreClient.OperationArguments,
|
|
263
|
+
spec: coreClient.OperationSpec
|
|
264
|
+
) => {
|
|
265
|
+
let currentRawResponse:
|
|
266
|
+
| coreClient.FullOperationResponse
|
|
267
|
+
| undefined = undefined;
|
|
268
|
+
const providedCallback = args.options?.onResponse;
|
|
269
|
+
const callback: coreClient.RawResponseCallback = (
|
|
270
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
271
|
+
flatResponse: unknown
|
|
272
|
+
) => {
|
|
273
|
+
currentRawResponse = rawResponse;
|
|
274
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
275
|
+
};
|
|
276
|
+
const updatedArgs = {
|
|
277
|
+
...args,
|
|
278
|
+
options: {
|
|
279
|
+
...args.options,
|
|
280
|
+
onResponse: callback
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
284
|
+
return {
|
|
285
|
+
flatResponse,
|
|
286
|
+
rawResponse: {
|
|
287
|
+
statusCode: currentRawResponse!.status,
|
|
288
|
+
body: currentRawResponse!.parsedBody,
|
|
289
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
const lro = new LroImpl(
|
|
295
|
+
sendOperation,
|
|
296
|
+
{ resourceGroupName, accountName, parameters, options },
|
|
297
|
+
createOperationSpec
|
|
298
|
+
);
|
|
299
|
+
return new LroEngine(lro, {
|
|
300
|
+
resumeFrom: options?.resumeFrom,
|
|
301
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
302
|
+
lroResourceLocationConfig: "location"
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
|
|
159
306
|
/**
|
|
307
|
+
* Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with
|
|
308
|
+
* this API and should instead be updated with the Update Batch Account API.
|
|
160
309
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
161
|
-
* @param
|
|
162
|
-
|
|
163
|
-
|
|
310
|
+
* @param accountName A name for the Batch account which must be unique within the region. Batch
|
|
311
|
+
* account names must be between 3 and 24 characters in length and must use only numbers and lowercase
|
|
312
|
+
* letters. This name is used as part of the DNS name that is used to access the Batch service in the
|
|
313
|
+
* region in which the account is created. For example: http://accountname.region.batch.azure.com/.
|
|
314
|
+
* @param parameters Additional parameters for account creation.
|
|
315
|
+
* @param options The options parameters.
|
|
316
|
+
*/
|
|
317
|
+
async beginCreateAndWait(
|
|
318
|
+
resourceGroupName: string,
|
|
319
|
+
accountName: string,
|
|
320
|
+
parameters: BatchAccountCreateParameters,
|
|
321
|
+
options?: BatchAccountCreateOptionalParams
|
|
322
|
+
): Promise<BatchAccountCreateResponse> {
|
|
323
|
+
const poller = await this.beginCreate(
|
|
324
|
+
resourceGroupName,
|
|
325
|
+
accountName,
|
|
326
|
+
parameters,
|
|
327
|
+
options
|
|
328
|
+
);
|
|
329
|
+
return poller.pollUntilDone();
|
|
330
|
+
}
|
|
331
|
+
|
|
164
332
|
/**
|
|
333
|
+
* Updates the properties of an existing Batch account.
|
|
165
334
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
166
|
-
* @param
|
|
167
|
-
* @param
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
335
|
+
* @param accountName The name of the Batch account.
|
|
336
|
+
* @param parameters Additional parameters for account update.
|
|
337
|
+
* @param options The options parameters.
|
|
338
|
+
*/
|
|
339
|
+
update(
|
|
340
|
+
resourceGroupName: string,
|
|
341
|
+
accountName: string,
|
|
342
|
+
parameters: BatchAccountUpdateParameters,
|
|
343
|
+
options?: BatchAccountUpdateOptionalParams
|
|
344
|
+
): Promise<BatchAccountUpdateResponse> {
|
|
171
345
|
return this.client.sendOperationRequest(
|
|
172
|
-
{
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
},
|
|
176
|
-
listByResourceGroupOperationSpec,
|
|
177
|
-
callback) as Promise<Models.BatchAccountListByResourceGroupResponse>;
|
|
346
|
+
{ resourceGroupName, accountName, parameters, options },
|
|
347
|
+
updateOperationSpec
|
|
348
|
+
);
|
|
178
349
|
}
|
|
179
350
|
|
|
180
351
|
/**
|
|
181
|
-
*
|
|
182
|
-
* account.
|
|
352
|
+
* Deletes the specified Batch account.
|
|
183
353
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
184
354
|
* @param accountName The name of the Batch account.
|
|
185
|
-
* @param
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
355
|
+
* @param options The options parameters.
|
|
356
|
+
*/
|
|
357
|
+
async beginDelete(
|
|
358
|
+
resourceGroupName: string,
|
|
359
|
+
accountName: string,
|
|
360
|
+
options?: BatchAccountDeleteOptionalParams
|
|
361
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
362
|
+
const directSendOperation = async (
|
|
363
|
+
args: coreClient.OperationArguments,
|
|
364
|
+
spec: coreClient.OperationSpec
|
|
365
|
+
): Promise<void> => {
|
|
366
|
+
return this.client.sendOperationRequest(args, spec);
|
|
367
|
+
};
|
|
368
|
+
const sendOperation = async (
|
|
369
|
+
args: coreClient.OperationArguments,
|
|
370
|
+
spec: coreClient.OperationSpec
|
|
371
|
+
) => {
|
|
372
|
+
let currentRawResponse:
|
|
373
|
+
| coreClient.FullOperationResponse
|
|
374
|
+
| undefined = undefined;
|
|
375
|
+
const providedCallback = args.options?.onResponse;
|
|
376
|
+
const callback: coreClient.RawResponseCallback = (
|
|
377
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
378
|
+
flatResponse: unknown
|
|
379
|
+
) => {
|
|
380
|
+
currentRawResponse = rawResponse;
|
|
381
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
382
|
+
};
|
|
383
|
+
const updatedArgs = {
|
|
384
|
+
...args,
|
|
385
|
+
options: {
|
|
386
|
+
...args.options,
|
|
387
|
+
onResponse: callback
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
391
|
+
return {
|
|
392
|
+
flatResponse,
|
|
393
|
+
rawResponse: {
|
|
394
|
+
statusCode: currentRawResponse!.status,
|
|
395
|
+
body: currentRawResponse!.parsedBody,
|
|
396
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
const lro = new LroImpl(
|
|
402
|
+
sendOperation,
|
|
403
|
+
{ resourceGroupName, accountName, options },
|
|
404
|
+
deleteOperationSpec
|
|
405
|
+
);
|
|
406
|
+
return new LroEngine(lro, {
|
|
407
|
+
resumeFrom: options?.resumeFrom,
|
|
408
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
409
|
+
lroResourceLocationConfig: "location"
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
|
|
189
413
|
/**
|
|
414
|
+
* Deletes the specified Batch account.
|
|
190
415
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
191
416
|
* @param accountName The name of the Batch account.
|
|
192
|
-
* @param
|
|
193
|
-
*/
|
|
194
|
-
|
|
417
|
+
* @param options The options parameters.
|
|
418
|
+
*/
|
|
419
|
+
async beginDeleteAndWait(
|
|
420
|
+
resourceGroupName: string,
|
|
421
|
+
accountName: string,
|
|
422
|
+
options?: BatchAccountDeleteOptionalParams
|
|
423
|
+
): Promise<void> {
|
|
424
|
+
const poller = await this.beginDelete(
|
|
425
|
+
resourceGroupName,
|
|
426
|
+
accountName,
|
|
427
|
+
options
|
|
428
|
+
);
|
|
429
|
+
return poller.pollUntilDone();
|
|
430
|
+
}
|
|
431
|
+
|
|
195
432
|
/**
|
|
433
|
+
* Gets information about the specified Batch account.
|
|
196
434
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
197
435
|
* @param accountName The name of the Batch account.
|
|
198
|
-
* @param options The
|
|
199
|
-
* @param callback The callback
|
|
436
|
+
* @param options The options parameters.
|
|
200
437
|
*/
|
|
201
|
-
|
|
202
|
-
|
|
438
|
+
get(
|
|
439
|
+
resourceGroupName: string,
|
|
440
|
+
accountName: string,
|
|
441
|
+
options?: BatchAccountGetOptionalParams
|
|
442
|
+
): Promise<BatchAccountGetResponse> {
|
|
203
443
|
return this.client.sendOperationRequest(
|
|
204
|
-
{
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
options
|
|
208
|
-
},
|
|
209
|
-
synchronizeAutoStorageKeysOperationSpec,
|
|
210
|
-
callback);
|
|
444
|
+
{ resourceGroupName, accountName, options },
|
|
445
|
+
getOperationSpec
|
|
446
|
+
);
|
|
211
447
|
}
|
|
212
448
|
|
|
213
449
|
/**
|
|
214
|
-
*
|
|
215
|
-
* @param
|
|
216
|
-
* @param accountName The name of the Batch account.
|
|
217
|
-
* @param keyName The type of account key to regenerate. Possible values include: 'Primary',
|
|
218
|
-
* 'Secondary'
|
|
219
|
-
* @param [options] The optional parameters
|
|
220
|
-
* @returns Promise<Models.BatchAccountRegenerateKeyResponse>
|
|
221
|
-
*/
|
|
222
|
-
regenerateKey(resourceGroupName: string, accountName: string, keyName: Models.AccountKeyType, options?: msRest.RequestOptionsBase): Promise<Models.BatchAccountRegenerateKeyResponse>;
|
|
223
|
-
/**
|
|
224
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
225
|
-
* @param accountName The name of the Batch account.
|
|
226
|
-
* @param keyName The type of account key to regenerate. Possible values include: 'Primary',
|
|
227
|
-
* 'Secondary'
|
|
228
|
-
* @param callback The callback
|
|
450
|
+
* Gets information about the Batch accounts associated with the subscription.
|
|
451
|
+
* @param options The options parameters.
|
|
229
452
|
*/
|
|
230
|
-
|
|
453
|
+
private _list(
|
|
454
|
+
options?: BatchAccountListOptionalParams
|
|
455
|
+
): Promise<BatchAccountListResponse> {
|
|
456
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
457
|
+
}
|
|
458
|
+
|
|
231
459
|
/**
|
|
460
|
+
* Gets information about the Batch accounts associated with the specified resource group.
|
|
232
461
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
233
|
-
* @param
|
|
234
|
-
* @param keyName The type of account key to regenerate. Possible values include: 'Primary',
|
|
235
|
-
* 'Secondary'
|
|
236
|
-
* @param options The optional parameters
|
|
237
|
-
* @param callback The callback
|
|
462
|
+
* @param options The options parameters.
|
|
238
463
|
*/
|
|
239
|
-
|
|
240
|
-
|
|
464
|
+
private _listByResourceGroup(
|
|
465
|
+
resourceGroupName: string,
|
|
466
|
+
options?: BatchAccountListByResourceGroupOptionalParams
|
|
467
|
+
): Promise<BatchAccountListByResourceGroupResponse> {
|
|
241
468
|
return this.client.sendOperationRequest(
|
|
242
|
-
{
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
keyName,
|
|
246
|
-
options
|
|
247
|
-
},
|
|
248
|
-
regenerateKeyOperationSpec,
|
|
249
|
-
callback) as Promise<Models.BatchAccountRegenerateKeyResponse>;
|
|
469
|
+
{ resourceGroupName, options },
|
|
470
|
+
listByResourceGroupOperationSpec
|
|
471
|
+
);
|
|
250
472
|
}
|
|
251
473
|
|
|
252
474
|
/**
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
* 'UserSubscription', clients cannot use access to keys to authenticate, and must use Azure Active
|
|
256
|
-
* Directory instead. In this case, getting the keys will fail.
|
|
257
|
-
* @summary Gets the account keys for the specified Batch account.
|
|
475
|
+
* Synchronizes access keys for the auto-storage account configured for the specified Batch account,
|
|
476
|
+
* only if storage key authentication is being used.
|
|
258
477
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
259
478
|
* @param accountName The name of the Batch account.
|
|
260
|
-
* @param
|
|
261
|
-
* @returns Promise<Models.BatchAccountGetKeysResponse>
|
|
479
|
+
* @param options The options parameters.
|
|
262
480
|
*/
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
481
|
+
synchronizeAutoStorageKeys(
|
|
482
|
+
resourceGroupName: string,
|
|
483
|
+
accountName: string,
|
|
484
|
+
options?: BatchAccountSynchronizeAutoStorageKeysOptionalParams
|
|
485
|
+
): Promise<void> {
|
|
486
|
+
return this.client.sendOperationRequest(
|
|
487
|
+
{ resourceGroupName, accountName, options },
|
|
488
|
+
synchronizeAutoStorageKeysOperationSpec
|
|
489
|
+
);
|
|
490
|
+
}
|
|
491
|
+
|
|
270
492
|
/**
|
|
493
|
+
* This operation applies only to Batch accounts with allowedAuthenticationModes containing
|
|
494
|
+
* 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode,
|
|
495
|
+
* clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes
|
|
496
|
+
* instead. In this case, regenerating the keys will fail.
|
|
271
497
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
272
498
|
* @param accountName The name of the Batch account.
|
|
273
|
-
* @param
|
|
274
|
-
* @param
|
|
275
|
-
*/
|
|
276
|
-
|
|
277
|
-
|
|
499
|
+
* @param parameters The type of key to regenerate.
|
|
500
|
+
* @param options The options parameters.
|
|
501
|
+
*/
|
|
502
|
+
regenerateKey(
|
|
503
|
+
resourceGroupName: string,
|
|
504
|
+
accountName: string,
|
|
505
|
+
parameters: BatchAccountRegenerateKeyParameters,
|
|
506
|
+
options?: BatchAccountRegenerateKeyOptionalParams
|
|
507
|
+
): Promise<BatchAccountRegenerateKeyResponse> {
|
|
278
508
|
return this.client.sendOperationRequest(
|
|
279
|
-
{
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
options
|
|
283
|
-
},
|
|
284
|
-
getKeysOperationSpec,
|
|
285
|
-
callback) as Promise<Models.BatchAccountGetKeysResponse>;
|
|
509
|
+
{ resourceGroupName, accountName, parameters, options },
|
|
510
|
+
regenerateKeyOperationSpec
|
|
511
|
+
);
|
|
286
512
|
}
|
|
287
513
|
|
|
288
514
|
/**
|
|
289
|
-
*
|
|
290
|
-
*
|
|
515
|
+
* This operation applies only to Batch accounts with allowedAuthenticationModes containing
|
|
516
|
+
* 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode,
|
|
517
|
+
* clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes
|
|
518
|
+
* instead. In this case, getting the keys will fail.
|
|
291
519
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
292
|
-
* @param accountName
|
|
293
|
-
*
|
|
294
|
-
* lowercase letters. This name is used as part of the DNS name that is used to access the Batch
|
|
295
|
-
* service in the region in which the account is created. For example:
|
|
296
|
-
* http://accountname.region.batch.azure.com/.
|
|
297
|
-
* @param parameters Additional parameters for account creation.
|
|
298
|
-
* @param [options] The optional parameters
|
|
299
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
520
|
+
* @param accountName The name of the Batch account.
|
|
521
|
+
* @param options The options parameters.
|
|
300
522
|
*/
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
options);
|
|
523
|
+
getKeys(
|
|
524
|
+
resourceGroupName: string,
|
|
525
|
+
accountName: string,
|
|
526
|
+
options?: BatchAccountGetKeysOptionalParams
|
|
527
|
+
): Promise<BatchAccountGetKeysResponse> {
|
|
528
|
+
return this.client.sendOperationRequest(
|
|
529
|
+
{ resourceGroupName, accountName, options },
|
|
530
|
+
getKeysOperationSpec
|
|
531
|
+
);
|
|
311
532
|
}
|
|
312
533
|
|
|
313
534
|
/**
|
|
314
|
-
*
|
|
535
|
+
* Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch
|
|
536
|
+
* service administration. If you are deploying a Pool inside of a virtual network that you specify,
|
|
537
|
+
* you must make sure your network allows outbound access to these endpoints. Failure to allow access
|
|
538
|
+
* to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
|
|
539
|
+
* about creating a pool inside of a virtual network, see
|
|
540
|
+
* https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
|
|
315
541
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
316
542
|
* @param accountName The name of the Batch account.
|
|
317
|
-
* @param
|
|
318
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
543
|
+
* @param options The options parameters.
|
|
319
544
|
*/
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
},
|
|
327
|
-
|
|
328
|
-
|
|
545
|
+
private _listOutboundNetworkDependenciesEndpoints(
|
|
546
|
+
resourceGroupName: string,
|
|
547
|
+
accountName: string,
|
|
548
|
+
options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams
|
|
549
|
+
): Promise<BatchAccountListOutboundNetworkDependenciesEndpointsResponse> {
|
|
550
|
+
return this.client.sendOperationRequest(
|
|
551
|
+
{ resourceGroupName, accountName, options },
|
|
552
|
+
listOutboundNetworkDependenciesEndpointsOperationSpec
|
|
553
|
+
);
|
|
329
554
|
}
|
|
330
555
|
|
|
331
556
|
/**
|
|
332
|
-
*
|
|
333
|
-
* @param
|
|
334
|
-
* @param
|
|
335
|
-
* @returns Promise<Models.BatchAccountListNextResponse>
|
|
336
|
-
*/
|
|
337
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.BatchAccountListNextResponse>;
|
|
338
|
-
/**
|
|
339
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
340
|
-
* @param callback The callback
|
|
557
|
+
* ListNext
|
|
558
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
559
|
+
* @param options The options parameters.
|
|
341
560
|
*/
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
* @param callback The callback
|
|
347
|
-
*/
|
|
348
|
-
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BatchAccountListResult>): void;
|
|
349
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.BatchAccountListResult>, callback?: msRest.ServiceCallback<Models.BatchAccountListResult>): Promise<Models.BatchAccountListNextResponse> {
|
|
561
|
+
private _listNext(
|
|
562
|
+
nextLink: string,
|
|
563
|
+
options?: BatchAccountListNextOptionalParams
|
|
564
|
+
): Promise<BatchAccountListNextResponse> {
|
|
350
565
|
return this.client.sendOperationRequest(
|
|
351
|
-
{
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
},
|
|
355
|
-
listNextOperationSpec,
|
|
356
|
-
callback) as Promise<Models.BatchAccountListNextResponse>;
|
|
566
|
+
{ nextLink, options },
|
|
567
|
+
listNextOperationSpec
|
|
568
|
+
);
|
|
357
569
|
}
|
|
358
570
|
|
|
359
571
|
/**
|
|
360
|
-
*
|
|
361
|
-
* @param
|
|
362
|
-
* @param
|
|
363
|
-
* @
|
|
364
|
-
*/
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
572
|
+
* ListByResourceGroupNext
|
|
573
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
574
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
575
|
+
* @param options The options parameters.
|
|
576
|
+
*/
|
|
577
|
+
private _listByResourceGroupNext(
|
|
578
|
+
resourceGroupName: string,
|
|
579
|
+
nextLink: string,
|
|
580
|
+
options?: BatchAccountListByResourceGroupNextOptionalParams
|
|
581
|
+
): Promise<BatchAccountListByResourceGroupNextResponse> {
|
|
582
|
+
return this.client.sendOperationRequest(
|
|
583
|
+
{ resourceGroupName, nextLink, options },
|
|
584
|
+
listByResourceGroupNextOperationSpec
|
|
585
|
+
);
|
|
586
|
+
}
|
|
587
|
+
|
|
371
588
|
/**
|
|
372
|
-
*
|
|
373
|
-
* @param
|
|
374
|
-
* @param
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
589
|
+
* ListOutboundNetworkDependenciesEndpointsNext
|
|
590
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
591
|
+
* @param accountName The name of the Batch account.
|
|
592
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
593
|
+
* ListOutboundNetworkDependenciesEndpoints method.
|
|
594
|
+
* @param options The options parameters.
|
|
595
|
+
*/
|
|
596
|
+
private _listOutboundNetworkDependenciesEndpointsNext(
|
|
597
|
+
resourceGroupName: string,
|
|
598
|
+
accountName: string,
|
|
599
|
+
nextLink: string,
|
|
600
|
+
options?: BatchAccountListOutboundNetworkDependenciesEndpointsNextOptionalParams
|
|
601
|
+
): Promise<BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse> {
|
|
378
602
|
return this.client.sendOperationRequest(
|
|
379
|
-
{
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
},
|
|
383
|
-
listByResourceGroupNextOperationSpec,
|
|
384
|
-
callback) as Promise<Models.BatchAccountListByResourceGroupNextResponse>;
|
|
603
|
+
{ resourceGroupName, accountName, nextLink, options },
|
|
604
|
+
listOutboundNetworkDependenciesEndpointsNextOperationSpec
|
|
605
|
+
);
|
|
385
606
|
}
|
|
386
607
|
}
|
|
387
|
-
|
|
388
608
|
// Operation Specifications
|
|
389
|
-
const serializer =
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
path:
|
|
609
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
610
|
+
|
|
611
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
612
|
+
path:
|
|
613
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
614
|
+
httpMethod: "PUT",
|
|
615
|
+
responses: {
|
|
616
|
+
200: {
|
|
617
|
+
bodyMapper: Mappers.BatchAccount
|
|
618
|
+
},
|
|
619
|
+
201: {
|
|
620
|
+
bodyMapper: Mappers.BatchAccount
|
|
621
|
+
},
|
|
622
|
+
202: {
|
|
623
|
+
bodyMapper: Mappers.BatchAccount
|
|
624
|
+
},
|
|
625
|
+
204: {
|
|
626
|
+
bodyMapper: Mappers.BatchAccount
|
|
627
|
+
},
|
|
628
|
+
default: {
|
|
629
|
+
bodyMapper: Mappers.CloudError
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
requestBody: Parameters.parameters,
|
|
633
|
+
queryParameters: [Parameters.apiVersion],
|
|
393
634
|
urlParameters: [
|
|
635
|
+
Parameters.$host,
|
|
394
636
|
Parameters.resourceGroupName,
|
|
395
|
-
Parameters.
|
|
637
|
+
Parameters.accountName,
|
|
396
638
|
Parameters.subscriptionId
|
|
397
639
|
],
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
mapper: {
|
|
407
|
-
...Mappers.BatchAccountUpdateParameters,
|
|
408
|
-
required: true
|
|
409
|
-
}
|
|
410
|
-
},
|
|
640
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
641
|
+
mediaType: "json",
|
|
642
|
+
serializer
|
|
643
|
+
};
|
|
644
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
645
|
+
path:
|
|
646
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
647
|
+
httpMethod: "PATCH",
|
|
411
648
|
responses: {
|
|
412
649
|
200: {
|
|
413
650
|
bodyMapper: Mappers.BatchAccount
|
|
@@ -416,23 +653,45 @@ const updateOperationSpec: msRest.OperationSpec = {
|
|
|
416
653
|
bodyMapper: Mappers.CloudError
|
|
417
654
|
}
|
|
418
655
|
},
|
|
656
|
+
requestBody: Parameters.parameters1,
|
|
657
|
+
queryParameters: [Parameters.apiVersion],
|
|
658
|
+
urlParameters: [
|
|
659
|
+
Parameters.$host,
|
|
660
|
+
Parameters.resourceGroupName,
|
|
661
|
+
Parameters.subscriptionId,
|
|
662
|
+
Parameters.accountName1
|
|
663
|
+
],
|
|
664
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
665
|
+
mediaType: "json",
|
|
419
666
|
serializer
|
|
420
667
|
};
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
668
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
669
|
+
path:
|
|
670
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
671
|
+
httpMethod: "DELETE",
|
|
672
|
+
responses: {
|
|
673
|
+
200: {},
|
|
674
|
+
201: {},
|
|
675
|
+
202: {},
|
|
676
|
+
204: {},
|
|
677
|
+
default: {
|
|
678
|
+
bodyMapper: Mappers.CloudError
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
queryParameters: [Parameters.apiVersion],
|
|
425
682
|
urlParameters: [
|
|
683
|
+
Parameters.$host,
|
|
426
684
|
Parameters.resourceGroupName,
|
|
427
|
-
Parameters.
|
|
428
|
-
Parameters.
|
|
429
|
-
],
|
|
430
|
-
queryParameters: [
|
|
431
|
-
Parameters.apiVersion
|
|
432
|
-
],
|
|
433
|
-
headerParameters: [
|
|
434
|
-
Parameters.acceptLanguage
|
|
685
|
+
Parameters.subscriptionId,
|
|
686
|
+
Parameters.accountName1
|
|
435
687
|
],
|
|
688
|
+
headerParameters: [Parameters.accept],
|
|
689
|
+
serializer
|
|
690
|
+
};
|
|
691
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
692
|
+
path:
|
|
693
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
694
|
+
httpMethod: "GET",
|
|
436
695
|
responses: {
|
|
437
696
|
200: {
|
|
438
697
|
bodyMapper: Mappers.BatchAccount
|
|
@@ -441,21 +700,20 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
441
700
|
bodyMapper: Mappers.CloudError
|
|
442
701
|
}
|
|
443
702
|
},
|
|
703
|
+
queryParameters: [Parameters.apiVersion],
|
|
704
|
+
urlParameters: [
|
|
705
|
+
Parameters.$host,
|
|
706
|
+
Parameters.resourceGroupName,
|
|
707
|
+
Parameters.subscriptionId,
|
|
708
|
+
Parameters.accountName1
|
|
709
|
+
],
|
|
710
|
+
headerParameters: [Parameters.accept],
|
|
444
711
|
serializer
|
|
445
712
|
};
|
|
446
|
-
|
|
447
|
-
|
|
713
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
714
|
+
path:
|
|
715
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts",
|
|
448
716
|
httpMethod: "GET",
|
|
449
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts",
|
|
450
|
-
urlParameters: [
|
|
451
|
-
Parameters.subscriptionId
|
|
452
|
-
],
|
|
453
|
-
queryParameters: [
|
|
454
|
-
Parameters.apiVersion
|
|
455
|
-
],
|
|
456
|
-
headerParameters: [
|
|
457
|
-
Parameters.acceptLanguage
|
|
458
|
-
],
|
|
459
717
|
responses: {
|
|
460
718
|
200: {
|
|
461
719
|
bodyMapper: Mappers.BatchAccountListResult
|
|
@@ -464,22 +722,15 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
464
722
|
bodyMapper: Mappers.CloudError
|
|
465
723
|
}
|
|
466
724
|
},
|
|
725
|
+
queryParameters: [Parameters.apiVersion],
|
|
726
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
727
|
+
headerParameters: [Parameters.accept],
|
|
467
728
|
serializer
|
|
468
729
|
};
|
|
469
|
-
|
|
470
|
-
|
|
730
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
731
|
+
path:
|
|
732
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts",
|
|
471
733
|
httpMethod: "GET",
|
|
472
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts",
|
|
473
|
-
urlParameters: [
|
|
474
|
-
Parameters.resourceGroupName,
|
|
475
|
-
Parameters.subscriptionId
|
|
476
|
-
],
|
|
477
|
-
queryParameters: [
|
|
478
|
-
Parameters.apiVersion
|
|
479
|
-
],
|
|
480
|
-
headerParameters: [
|
|
481
|
-
Parameters.acceptLanguage
|
|
482
|
-
],
|
|
483
734
|
responses: {
|
|
484
735
|
200: {
|
|
485
736
|
bodyMapper: Mappers.BatchAccountListResult
|
|
@@ -488,55 +739,39 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
|
488
739
|
bodyMapper: Mappers.CloudError
|
|
489
740
|
}
|
|
490
741
|
},
|
|
491
|
-
|
|
492
|
-
};
|
|
493
|
-
|
|
494
|
-
const synchronizeAutoStorageKeysOperationSpec: msRest.OperationSpec = {
|
|
495
|
-
httpMethod: "POST",
|
|
496
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys",
|
|
742
|
+
queryParameters: [Parameters.apiVersion],
|
|
497
743
|
urlParameters: [
|
|
744
|
+
Parameters.$host,
|
|
498
745
|
Parameters.resourceGroupName,
|
|
499
|
-
Parameters.accountName1,
|
|
500
746
|
Parameters.subscriptionId
|
|
501
747
|
],
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
748
|
+
headerParameters: [Parameters.accept],
|
|
749
|
+
serializer
|
|
750
|
+
};
|
|
751
|
+
const synchronizeAutoStorageKeysOperationSpec: coreClient.OperationSpec = {
|
|
752
|
+
path:
|
|
753
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys",
|
|
754
|
+
httpMethod: "POST",
|
|
508
755
|
responses: {
|
|
509
756
|
204: {},
|
|
510
757
|
default: {
|
|
511
758
|
bodyMapper: Mappers.CloudError
|
|
512
759
|
}
|
|
513
760
|
},
|
|
514
|
-
|
|
515
|
-
};
|
|
516
|
-
|
|
517
|
-
const regenerateKeyOperationSpec: msRest.OperationSpec = {
|
|
518
|
-
httpMethod: "POST",
|
|
519
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys",
|
|
761
|
+
queryParameters: [Parameters.apiVersion],
|
|
520
762
|
urlParameters: [
|
|
763
|
+
Parameters.$host,
|
|
521
764
|
Parameters.resourceGroupName,
|
|
522
|
-
Parameters.
|
|
523
|
-
Parameters.
|
|
765
|
+
Parameters.subscriptionId,
|
|
766
|
+
Parameters.accountName1
|
|
524
767
|
],
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
parameterPath: {
|
|
533
|
-
keyName: "keyName"
|
|
534
|
-
},
|
|
535
|
-
mapper: {
|
|
536
|
-
...Mappers.BatchAccountRegenerateKeyParameters,
|
|
537
|
-
required: true
|
|
538
|
-
}
|
|
539
|
-
},
|
|
768
|
+
headerParameters: [Parameters.accept],
|
|
769
|
+
serializer
|
|
770
|
+
};
|
|
771
|
+
const regenerateKeyOperationSpec: coreClient.OperationSpec = {
|
|
772
|
+
path:
|
|
773
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys",
|
|
774
|
+
httpMethod: "POST",
|
|
540
775
|
responses: {
|
|
541
776
|
200: {
|
|
542
777
|
bodyMapper: Mappers.BatchAccountKeys
|
|
@@ -545,23 +780,22 @@ const regenerateKeyOperationSpec: msRest.OperationSpec = {
|
|
|
545
780
|
bodyMapper: Mappers.CloudError
|
|
546
781
|
}
|
|
547
782
|
},
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
const getKeysOperationSpec: msRest.OperationSpec = {
|
|
552
|
-
httpMethod: "POST",
|
|
553
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys",
|
|
783
|
+
requestBody: Parameters.parameters2,
|
|
784
|
+
queryParameters: [Parameters.apiVersion],
|
|
554
785
|
urlParameters: [
|
|
786
|
+
Parameters.$host,
|
|
555
787
|
Parameters.resourceGroupName,
|
|
556
|
-
Parameters.
|
|
557
|
-
Parameters.
|
|
558
|
-
],
|
|
559
|
-
queryParameters: [
|
|
560
|
-
Parameters.apiVersion
|
|
561
|
-
],
|
|
562
|
-
headerParameters: [
|
|
563
|
-
Parameters.acceptLanguage
|
|
788
|
+
Parameters.subscriptionId,
|
|
789
|
+
Parameters.accountName1
|
|
564
790
|
],
|
|
791
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
792
|
+
mediaType: "json",
|
|
793
|
+
serializer
|
|
794
|
+
};
|
|
795
|
+
const getKeysOperationSpec: coreClient.OperationSpec = {
|
|
796
|
+
path:
|
|
797
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys",
|
|
798
|
+
httpMethod: "POST",
|
|
565
799
|
responses: {
|
|
566
800
|
200: {
|
|
567
801
|
bodyMapper: Mappers.BatchAccountKeys
|
|
@@ -570,88 +804,61 @@ const getKeysOperationSpec: msRest.OperationSpec = {
|
|
|
570
804
|
bodyMapper: Mappers.CloudError
|
|
571
805
|
}
|
|
572
806
|
},
|
|
573
|
-
|
|
574
|
-
};
|
|
575
|
-
|
|
576
|
-
const beginCreateOperationSpec: msRest.OperationSpec = {
|
|
577
|
-
httpMethod: "PUT",
|
|
578
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
807
|
+
queryParameters: [Parameters.apiVersion],
|
|
579
808
|
urlParameters: [
|
|
809
|
+
Parameters.$host,
|
|
580
810
|
Parameters.resourceGroupName,
|
|
581
|
-
Parameters.
|
|
582
|
-
Parameters.
|
|
583
|
-
],
|
|
584
|
-
queryParameters: [
|
|
585
|
-
Parameters.apiVersion
|
|
811
|
+
Parameters.subscriptionId,
|
|
812
|
+
Parameters.accountName1
|
|
586
813
|
],
|
|
587
|
-
headerParameters: [
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
required: true
|
|
595
|
-
}
|
|
596
|
-
},
|
|
814
|
+
headerParameters: [Parameters.accept],
|
|
815
|
+
serializer
|
|
816
|
+
};
|
|
817
|
+
const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = {
|
|
818
|
+
path:
|
|
819
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints",
|
|
820
|
+
httpMethod: "GET",
|
|
597
821
|
responses: {
|
|
598
822
|
200: {
|
|
599
|
-
bodyMapper: Mappers.
|
|
600
|
-
headersMapper: Mappers.BatchAccountCreateHeaders
|
|
601
|
-
},
|
|
602
|
-
202: {
|
|
603
|
-
headersMapper: Mappers.BatchAccountCreateHeaders
|
|
823
|
+
bodyMapper: Mappers.OutboundEnvironmentEndpointCollection
|
|
604
824
|
},
|
|
605
825
|
default: {
|
|
606
|
-
bodyMapper: Mappers.CloudError
|
|
607
|
-
headersMapper: Mappers.BatchAccountCreateHeaders
|
|
826
|
+
bodyMapper: Mappers.CloudError
|
|
608
827
|
}
|
|
609
828
|
},
|
|
610
|
-
|
|
611
|
-
};
|
|
612
|
-
|
|
613
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
614
|
-
httpMethod: "DELETE",
|
|
615
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
829
|
+
queryParameters: [Parameters.apiVersion],
|
|
616
830
|
urlParameters: [
|
|
831
|
+
Parameters.$host,
|
|
617
832
|
Parameters.resourceGroupName,
|
|
618
|
-
Parameters.
|
|
619
|
-
Parameters.
|
|
620
|
-
],
|
|
621
|
-
queryParameters: [
|
|
622
|
-
Parameters.apiVersion
|
|
623
|
-
],
|
|
624
|
-
headerParameters: [
|
|
625
|
-
Parameters.acceptLanguage
|
|
833
|
+
Parameters.subscriptionId,
|
|
834
|
+
Parameters.accountName1
|
|
626
835
|
],
|
|
836
|
+
headerParameters: [Parameters.accept],
|
|
837
|
+
serializer
|
|
838
|
+
};
|
|
839
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
840
|
+
path: "{nextLink}",
|
|
841
|
+
httpMethod: "GET",
|
|
627
842
|
responses: {
|
|
628
843
|
200: {
|
|
629
|
-
|
|
630
|
-
},
|
|
631
|
-
202: {
|
|
632
|
-
headersMapper: Mappers.BatchAccountDeleteHeaders
|
|
633
|
-
},
|
|
634
|
-
204: {
|
|
635
|
-
headersMapper: Mappers.BatchAccountDeleteHeaders
|
|
844
|
+
bodyMapper: Mappers.BatchAccountListResult
|
|
636
845
|
},
|
|
637
846
|
default: {
|
|
638
|
-
bodyMapper: Mappers.CloudError
|
|
639
|
-
headersMapper: Mappers.BatchAccountDeleteHeaders
|
|
847
|
+
bodyMapper: Mappers.CloudError
|
|
640
848
|
}
|
|
641
849
|
},
|
|
850
|
+
queryParameters: [Parameters.apiVersion],
|
|
851
|
+
urlParameters: [
|
|
852
|
+
Parameters.$host,
|
|
853
|
+
Parameters.subscriptionId,
|
|
854
|
+
Parameters.nextLink
|
|
855
|
+
],
|
|
856
|
+
headerParameters: [Parameters.accept],
|
|
642
857
|
serializer
|
|
643
858
|
};
|
|
644
|
-
|
|
645
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
646
|
-
httpMethod: "GET",
|
|
647
|
-
baseUrl: "https://management.azure.com",
|
|
859
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
648
860
|
path: "{nextLink}",
|
|
649
|
-
|
|
650
|
-
Parameters.nextPageLink
|
|
651
|
-
],
|
|
652
|
-
headerParameters: [
|
|
653
|
-
Parameters.acceptLanguage
|
|
654
|
-
],
|
|
861
|
+
httpMethod: "GET",
|
|
655
862
|
responses: {
|
|
656
863
|
200: {
|
|
657
864
|
bodyMapper: Mappers.BatchAccountListResult
|
|
@@ -660,26 +867,35 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
660
867
|
bodyMapper: Mappers.CloudError
|
|
661
868
|
}
|
|
662
869
|
},
|
|
870
|
+
queryParameters: [Parameters.apiVersion],
|
|
871
|
+
urlParameters: [
|
|
872
|
+
Parameters.$host,
|
|
873
|
+
Parameters.resourceGroupName,
|
|
874
|
+
Parameters.subscriptionId,
|
|
875
|
+
Parameters.nextLink
|
|
876
|
+
],
|
|
877
|
+
headerParameters: [Parameters.accept],
|
|
663
878
|
serializer
|
|
664
879
|
};
|
|
665
|
-
|
|
666
|
-
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
667
|
-
httpMethod: "GET",
|
|
668
|
-
baseUrl: "https://management.azure.com",
|
|
880
|
+
const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = {
|
|
669
881
|
path: "{nextLink}",
|
|
670
|
-
|
|
671
|
-
Parameters.nextPageLink
|
|
672
|
-
],
|
|
673
|
-
headerParameters: [
|
|
674
|
-
Parameters.acceptLanguage
|
|
675
|
-
],
|
|
882
|
+
httpMethod: "GET",
|
|
676
883
|
responses: {
|
|
677
884
|
200: {
|
|
678
|
-
bodyMapper: Mappers.
|
|
885
|
+
bodyMapper: Mappers.OutboundEnvironmentEndpointCollection
|
|
679
886
|
},
|
|
680
887
|
default: {
|
|
681
888
|
bodyMapper: Mappers.CloudError
|
|
682
889
|
}
|
|
683
890
|
},
|
|
891
|
+
queryParameters: [Parameters.apiVersion],
|
|
892
|
+
urlParameters: [
|
|
893
|
+
Parameters.$host,
|
|
894
|
+
Parameters.resourceGroupName,
|
|
895
|
+
Parameters.subscriptionId,
|
|
896
|
+
Parameters.accountName1,
|
|
897
|
+
Parameters.nextLink
|
|
898
|
+
],
|
|
899
|
+
headerParameters: [Parameters.accept],
|
|
684
900
|
serializer
|
|
685
901
|
};
|