@azure/arm-batch 4.0.0 → 7.0.0-beta.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 +75 -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 +2357 -1248
- 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 +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +17 -0
- 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 +71 -34
- package/review/arm-batch.api.md +1459 -0
- package/rollup.config.js +184 -27
- package/src/batchManagementClient.ts +75 -0
- package/src/batchManagementClientContext.ts +71 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +2045 -0
- package/{lib → src}/models/mappers.ts +2413 -1223
- package/src/models/parameters.ts +351 -0
- package/src/operations/applicationOperations.ts +357 -0
- package/src/operations/applicationPackageOperations.ts +410 -0
- package/src/operations/batchAccountOperations.ts +901 -0
- package/src/operations/certificateOperations.ts +527 -0
- package/{lib → src}/operations/index.ts +5 -5
- package/src/operations/location.ts +413 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/poolOperations.ts +560 -0
- package/src/operations/privateEndpointConnectionOperations.ts +388 -0
- package/src/operations/privateLinkResourceOperations.ts +235 -0
- 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/{esm/operations/index.js → src/operationsInterfaces/index.ts} +6 -6
- 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 +4 -4
- package/types/arm-batch.d.ts +2528 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-batch.js +0 -4689
- 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 -25
- package/esm/batchManagementClient.d.ts.map +0 -1
- package/esm/batchManagementClient.js +0 -40
- 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 -11
- 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 -11
- 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 -11
- 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 -11
- package/esm/models/certificateOperationsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -3108
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- 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 -11
- package/esm/models/locationMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -76
- 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 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -18
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -196
- 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 -11
- package/esm/models/poolOperationsMappers.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 -226
- package/esm/operations/applicationOperations.js.map +0 -1
- package/esm/operations/applicationPackageOperations.d.ts +0 -124
- package/esm/operations/applicationPackageOperations.d.ts.map +0 -1
- package/esm/operations/applicationPackageOperations.js +0 -171
- 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 -426
- 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 -326
- 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 -352
- package/esm/operations/poolOperations.js.map +0 -1
- package/lib/batchManagementClient.ts +0 -55
- package/lib/batchManagementClientContext.ts +0 -63
- package/lib/models/applicationOperationsMappers.ts +0 -19
- package/lib/models/applicationPackageOperationsMappers.ts +0 -16
- package/lib/models/batchAccountOperationsMappers.ts +0 -61
- package/lib/models/certificateOperationsMappers.ts +0 -60
- package/lib/models/index.ts +0 -3252
- package/lib/models/locationMappers.ts +0 -17
- package/lib/models/operationsMappers.ts +0 -17
- package/lib/models/parameters.ts +0 -198
- package/lib/models/poolOperationsMappers.ts +0 -61
- package/lib/operations/applicationOperations.ts +0 -399
- package/lib/operations/applicationPackageOperations.ts +0 -307
- package/lib/operations/batchAccountOperations.ts +0 -683
- package/lib/operations/certificateOperations.ts +0 -510
- package/lib/operations/location.ts +0 -147
- package/lib/operations/operations.ts +0 -123
- package/lib/operations/poolOperations.ts +0 -550
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
12
|
-
import * as Models from "../models";
|
|
13
|
-
import * as Mappers from "../models/operationsMappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { BatchManagementClientContext } from "../batchManagementClientContext";
|
|
16
|
-
|
|
17
|
-
/** Class representing a Operations. */
|
|
18
|
-
export class Operations {
|
|
19
|
-
private readonly client: BatchManagementClientContext;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Create a Operations.
|
|
23
|
-
* @param {BatchManagementClientContext} client Reference to the service client.
|
|
24
|
-
*/
|
|
25
|
-
constructor(client: BatchManagementClientContext) {
|
|
26
|
-
this.client = client;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Lists available operations for the Microsoft.Batch provider
|
|
31
|
-
* @param [options] The optional parameters
|
|
32
|
-
* @returns Promise<Models.OperationsListResponse>
|
|
33
|
-
*/
|
|
34
|
-
list(options?: msRest.RequestOptionsBase): Promise<Models.OperationsListResponse>;
|
|
35
|
-
/**
|
|
36
|
-
* @param callback The callback
|
|
37
|
-
*/
|
|
38
|
-
list(callback: msRest.ServiceCallback<Models.OperationListResult>): void;
|
|
39
|
-
/**
|
|
40
|
-
* @param options The optional parameters
|
|
41
|
-
* @param callback The callback
|
|
42
|
-
*/
|
|
43
|
-
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
|
|
44
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListResponse> {
|
|
45
|
-
return this.client.sendOperationRequest(
|
|
46
|
-
{
|
|
47
|
-
options
|
|
48
|
-
},
|
|
49
|
-
listOperationSpec,
|
|
50
|
-
callback) as Promise<Models.OperationsListResponse>;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Lists available operations for the Microsoft.Batch provider
|
|
55
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
56
|
-
* @param [options] The optional parameters
|
|
57
|
-
* @returns Promise<Models.OperationsListNextResponse>
|
|
58
|
-
*/
|
|
59
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.OperationsListNextResponse>;
|
|
60
|
-
/**
|
|
61
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
62
|
-
* @param callback The callback
|
|
63
|
-
*/
|
|
64
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
|
|
65
|
-
/**
|
|
66
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
67
|
-
* @param options The optional parameters
|
|
68
|
-
* @param callback The callback
|
|
69
|
-
*/
|
|
70
|
-
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
|
|
71
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListNextResponse> {
|
|
72
|
-
return this.client.sendOperationRequest(
|
|
73
|
-
{
|
|
74
|
-
nextPageLink,
|
|
75
|
-
options
|
|
76
|
-
},
|
|
77
|
-
listNextOperationSpec,
|
|
78
|
-
callback) as Promise<Models.OperationsListNextResponse>;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// Operation Specifications
|
|
83
|
-
const serializer = new msRest.Serializer(Mappers);
|
|
84
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
85
|
-
httpMethod: "GET",
|
|
86
|
-
path: "providers/Microsoft.Batch/operations",
|
|
87
|
-
queryParameters: [
|
|
88
|
-
Parameters.apiVersion
|
|
89
|
-
],
|
|
90
|
-
headerParameters: [
|
|
91
|
-
Parameters.acceptLanguage
|
|
92
|
-
],
|
|
93
|
-
responses: {
|
|
94
|
-
200: {
|
|
95
|
-
bodyMapper: Mappers.OperationListResult
|
|
96
|
-
},
|
|
97
|
-
default: {
|
|
98
|
-
bodyMapper: Mappers.CloudError
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
serializer
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
105
|
-
httpMethod: "GET",
|
|
106
|
-
baseUrl: "https://management.azure.com",
|
|
107
|
-
path: "{nextLink}",
|
|
108
|
-
urlParameters: [
|
|
109
|
-
Parameters.nextPageLink
|
|
110
|
-
],
|
|
111
|
-
headerParameters: [
|
|
112
|
-
Parameters.acceptLanguage
|
|
113
|
-
],
|
|
114
|
-
responses: {
|
|
115
|
-
200: {
|
|
116
|
-
bodyMapper: Mappers.OperationListResult
|
|
117
|
-
},
|
|
118
|
-
default: {
|
|
119
|
-
bodyMapper: Mappers.CloudError
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
serializer
|
|
123
|
-
};
|
|
@@ -1,550 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
12
|
-
import * as msRestAzure from "@azure/ms-rest-azure-js";
|
|
13
|
-
import * as Models from "../models";
|
|
14
|
-
import * as Mappers from "../models/poolOperationsMappers";
|
|
15
|
-
import * as Parameters from "../models/parameters";
|
|
16
|
-
import { BatchManagementClientContext } from "../batchManagementClientContext";
|
|
17
|
-
|
|
18
|
-
/** Class representing a PoolOperations. */
|
|
19
|
-
export class PoolOperations {
|
|
20
|
-
private readonly client: BatchManagementClientContext;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Create a PoolOperations.
|
|
24
|
-
* @param {BatchManagementClientContext} client Reference to the service client.
|
|
25
|
-
*/
|
|
26
|
-
constructor(client: BatchManagementClientContext) {
|
|
27
|
-
this.client = client;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Lists all of the pools in the specified account.
|
|
32
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
33
|
-
* @param accountName The name of the Batch account.
|
|
34
|
-
* @param [options] The optional parameters
|
|
35
|
-
* @returns Promise<Models.PoolListByBatchAccountResponse>
|
|
36
|
-
*/
|
|
37
|
-
listByBatchAccount(resourceGroupName: string, accountName: string, options?: Models.PoolListByBatchAccountOptionalParams): Promise<Models.PoolListByBatchAccountResponse>;
|
|
38
|
-
/**
|
|
39
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
40
|
-
* @param accountName The name of the Batch account.
|
|
41
|
-
* @param callback The callback
|
|
42
|
-
*/
|
|
43
|
-
listByBatchAccount(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.ListPoolsResult>): void;
|
|
44
|
-
/**
|
|
45
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
46
|
-
* @param accountName The name of the Batch account.
|
|
47
|
-
* @param options The optional parameters
|
|
48
|
-
* @param callback The callback
|
|
49
|
-
*/
|
|
50
|
-
listByBatchAccount(resourceGroupName: string, accountName: string, options: Models.PoolListByBatchAccountOptionalParams, callback: msRest.ServiceCallback<Models.ListPoolsResult>): void;
|
|
51
|
-
listByBatchAccount(resourceGroupName: string, accountName: string, options?: Models.PoolListByBatchAccountOptionalParams | msRest.ServiceCallback<Models.ListPoolsResult>, callback?: msRest.ServiceCallback<Models.ListPoolsResult>): Promise<Models.PoolListByBatchAccountResponse> {
|
|
52
|
-
return this.client.sendOperationRequest(
|
|
53
|
-
{
|
|
54
|
-
resourceGroupName,
|
|
55
|
-
accountName,
|
|
56
|
-
options
|
|
57
|
-
},
|
|
58
|
-
listByBatchAccountOperationSpec,
|
|
59
|
-
callback) as Promise<Models.PoolListByBatchAccountResponse>;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Creates a new pool inside the specified account.
|
|
64
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
65
|
-
* @param accountName The name of the Batch account.
|
|
66
|
-
* @param poolName The pool name. This must be unique within the account.
|
|
67
|
-
* @param parameters Additional parameters for pool creation.
|
|
68
|
-
* @param [options] The optional parameters
|
|
69
|
-
* @returns Promise<Models.PoolCreateResponse>
|
|
70
|
-
*/
|
|
71
|
-
create(resourceGroupName: string, accountName: string, poolName: string, parameters: Models.Pool, options?: Models.PoolCreateOptionalParams): Promise<Models.PoolCreateResponse> {
|
|
72
|
-
return this.beginCreate(resourceGroupName,accountName,poolName,parameters,options)
|
|
73
|
-
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.PoolCreateResponse>;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Updates the properties of an existing pool.
|
|
78
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
79
|
-
* @param accountName The name of the Batch account.
|
|
80
|
-
* @param poolName The pool name. This must be unique within the account.
|
|
81
|
-
* @param parameters Pool properties that should be updated. Properties that are supplied will be
|
|
82
|
-
* updated, any property not supplied will be unchanged.
|
|
83
|
-
* @param [options] The optional parameters
|
|
84
|
-
* @returns Promise<Models.PoolUpdateResponse>
|
|
85
|
-
*/
|
|
86
|
-
update(resourceGroupName: string, accountName: string, poolName: string, parameters: Models.Pool, options?: Models.PoolUpdateOptionalParams): Promise<Models.PoolUpdateResponse>;
|
|
87
|
-
/**
|
|
88
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
89
|
-
* @param accountName The name of the Batch account.
|
|
90
|
-
* @param poolName The pool name. This must be unique within the account.
|
|
91
|
-
* @param parameters Pool properties that should be updated. Properties that are supplied will be
|
|
92
|
-
* updated, any property not supplied will be unchanged.
|
|
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> {
|
|
107
|
-
return this.client.sendOperationRequest(
|
|
108
|
-
{
|
|
109
|
-
resourceGroupName,
|
|
110
|
-
accountName,
|
|
111
|
-
poolName,
|
|
112
|
-
parameters,
|
|
113
|
-
options
|
|
114
|
-
},
|
|
115
|
-
updateOperationSpec,
|
|
116
|
-
callback) as Promise<Models.PoolUpdateResponse>;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Deletes the specified pool.
|
|
121
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
122
|
-
* @param accountName The name of the Batch account.
|
|
123
|
-
* @param poolName The pool name. This must be unique within the account.
|
|
124
|
-
* @param [options] The optional parameters
|
|
125
|
-
* @returns Promise<Models.PoolDeleteResponse>
|
|
126
|
-
*/
|
|
127
|
-
deleteMethod(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise<Models.PoolDeleteResponse> {
|
|
128
|
-
return this.beginDeleteMethod(resourceGroupName,accountName,poolName,options)
|
|
129
|
-
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.PoolDeleteResponse>;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Gets information about the specified pool.
|
|
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
|
-
/**
|
|
149
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
150
|
-
* @param accountName The name of the Batch account.
|
|
151
|
-
* @param poolName The pool name. This must be unique within the account.
|
|
152
|
-
* @param options The optional parameters
|
|
153
|
-
* @param callback The callback
|
|
154
|
-
*/
|
|
155
|
-
get(resourceGroupName: string, accountName: string, poolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Pool>): void;
|
|
156
|
-
get(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Pool>, callback?: msRest.ServiceCallback<Models.Pool>): Promise<Models.PoolGetResponse> {
|
|
157
|
-
return this.client.sendOperationRequest(
|
|
158
|
-
{
|
|
159
|
-
resourceGroupName,
|
|
160
|
-
accountName,
|
|
161
|
-
poolName,
|
|
162
|
-
options
|
|
163
|
-
},
|
|
164
|
-
getOperationSpec,
|
|
165
|
-
callback) as Promise<Models.PoolGetResponse>;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Disables automatic scaling for a pool.
|
|
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
|
-
/**
|
|
185
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
186
|
-
* @param accountName The name of the Batch account.
|
|
187
|
-
* @param poolName The pool name. This must be unique within the account.
|
|
188
|
-
* @param options The optional parameters
|
|
189
|
-
* @param callback The callback
|
|
190
|
-
*/
|
|
191
|
-
disableAutoScale(resourceGroupName: string, accountName: string, poolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Pool>): void;
|
|
192
|
-
disableAutoScale(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Pool>, callback?: msRest.ServiceCallback<Models.Pool>): Promise<Models.PoolDisableAutoScaleResponse> {
|
|
193
|
-
return this.client.sendOperationRequest(
|
|
194
|
-
{
|
|
195
|
-
resourceGroupName,
|
|
196
|
-
accountName,
|
|
197
|
-
poolName,
|
|
198
|
-
options
|
|
199
|
-
},
|
|
200
|
-
disableAutoScaleOperationSpec,
|
|
201
|
-
callback) as Promise<Models.PoolDisableAutoScaleResponse>;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* This does not restore the pool to its previous state before the resize operation: it only stops
|
|
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
|
-
/**
|
|
227
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
228
|
-
* @param accountName The name of the Batch account.
|
|
229
|
-
* @param poolName The pool name. This must be unique within the account.
|
|
230
|
-
* @param options The optional parameters
|
|
231
|
-
* @param callback The callback
|
|
232
|
-
*/
|
|
233
|
-
stopResize(resourceGroupName: string, accountName: string, poolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Pool>): void;
|
|
234
|
-
stopResize(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Pool>, callback?: msRest.ServiceCallback<Models.Pool>): Promise<Models.PoolStopResizeResponse> {
|
|
235
|
-
return this.client.sendOperationRequest(
|
|
236
|
-
{
|
|
237
|
-
resourceGroupName,
|
|
238
|
-
accountName,
|
|
239
|
-
poolName,
|
|
240
|
-
options
|
|
241
|
-
},
|
|
242
|
-
stopResizeOperationSpec,
|
|
243
|
-
callback) as Promise<Models.PoolStopResizeResponse>;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Creates a new pool inside the specified account.
|
|
248
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
249
|
-
* @param accountName The name of the Batch account.
|
|
250
|
-
* @param poolName The pool name. This must be unique within the account.
|
|
251
|
-
* @param parameters Additional parameters for pool creation.
|
|
252
|
-
* @param [options] The optional parameters
|
|
253
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
254
|
-
*/
|
|
255
|
-
beginCreate(resourceGroupName: string, accountName: string, poolName: string, parameters: Models.Pool, options?: Models.PoolBeginCreateOptionalParams): Promise<msRestAzure.LROPoller> {
|
|
256
|
-
return this.client.sendLRORequest(
|
|
257
|
-
{
|
|
258
|
-
resourceGroupName,
|
|
259
|
-
accountName,
|
|
260
|
-
poolName,
|
|
261
|
-
parameters,
|
|
262
|
-
options
|
|
263
|
-
},
|
|
264
|
-
beginCreateOperationSpec,
|
|
265
|
-
options);
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* Deletes the specified pool.
|
|
270
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
271
|
-
* @param accountName The name of the Batch account.
|
|
272
|
-
* @param poolName The pool name. This must be unique within the account.
|
|
273
|
-
* @param [options] The optional parameters
|
|
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>
|
|
293
|
-
*/
|
|
294
|
-
listByBatchAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.PoolListByBatchAccountNextResponse>;
|
|
295
|
-
/**
|
|
296
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
297
|
-
* @param callback The callback
|
|
298
|
-
*/
|
|
299
|
-
listByBatchAccountNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ListPoolsResult>): void;
|
|
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> {
|
|
307
|
-
return this.client.sendOperationRequest(
|
|
308
|
-
{
|
|
309
|
-
nextPageLink,
|
|
310
|
-
options
|
|
311
|
-
},
|
|
312
|
-
listByBatchAccountNextOperationSpec,
|
|
313
|
-
callback) as Promise<Models.PoolListByBatchAccountNextResponse>;
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
// Operation Specifications
|
|
318
|
-
const serializer = new msRest.Serializer(Mappers);
|
|
319
|
-
const listByBatchAccountOperationSpec: msRest.OperationSpec = {
|
|
320
|
-
httpMethod: "GET",
|
|
321
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools",
|
|
322
|
-
urlParameters: [
|
|
323
|
-
Parameters.resourceGroupName,
|
|
324
|
-
Parameters.accountName,
|
|
325
|
-
Parameters.subscriptionId
|
|
326
|
-
],
|
|
327
|
-
queryParameters: [
|
|
328
|
-
Parameters.maxresults,
|
|
329
|
-
Parameters.select,
|
|
330
|
-
Parameters.filter,
|
|
331
|
-
Parameters.apiVersion
|
|
332
|
-
],
|
|
333
|
-
headerParameters: [
|
|
334
|
-
Parameters.acceptLanguage
|
|
335
|
-
],
|
|
336
|
-
responses: {
|
|
337
|
-
200: {
|
|
338
|
-
bodyMapper: Mappers.ListPoolsResult
|
|
339
|
-
},
|
|
340
|
-
default: {
|
|
341
|
-
bodyMapper: Mappers.CloudError
|
|
342
|
-
}
|
|
343
|
-
},
|
|
344
|
-
serializer
|
|
345
|
-
};
|
|
346
|
-
|
|
347
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
|
348
|
-
httpMethod: "PATCH",
|
|
349
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
|
|
350
|
-
urlParameters: [
|
|
351
|
-
Parameters.resourceGroupName,
|
|
352
|
-
Parameters.accountName,
|
|
353
|
-
Parameters.poolName,
|
|
354
|
-
Parameters.subscriptionId
|
|
355
|
-
],
|
|
356
|
-
queryParameters: [
|
|
357
|
-
Parameters.apiVersion
|
|
358
|
-
],
|
|
359
|
-
headerParameters: [
|
|
360
|
-
Parameters.ifMatch,
|
|
361
|
-
Parameters.acceptLanguage
|
|
362
|
-
],
|
|
363
|
-
requestBody: {
|
|
364
|
-
parameterPath: "parameters",
|
|
365
|
-
mapper: {
|
|
366
|
-
...Mappers.Pool,
|
|
367
|
-
required: true
|
|
368
|
-
}
|
|
369
|
-
},
|
|
370
|
-
responses: {
|
|
371
|
-
200: {
|
|
372
|
-
bodyMapper: Mappers.Pool,
|
|
373
|
-
headersMapper: Mappers.PoolUpdateHeaders
|
|
374
|
-
},
|
|
375
|
-
default: {
|
|
376
|
-
bodyMapper: Mappers.CloudError
|
|
377
|
-
}
|
|
378
|
-
},
|
|
379
|
-
serializer
|
|
380
|
-
};
|
|
381
|
-
|
|
382
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
383
|
-
httpMethod: "GET",
|
|
384
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
|
|
385
|
-
urlParameters: [
|
|
386
|
-
Parameters.resourceGroupName,
|
|
387
|
-
Parameters.accountName,
|
|
388
|
-
Parameters.poolName,
|
|
389
|
-
Parameters.subscriptionId
|
|
390
|
-
],
|
|
391
|
-
queryParameters: [
|
|
392
|
-
Parameters.apiVersion
|
|
393
|
-
],
|
|
394
|
-
headerParameters: [
|
|
395
|
-
Parameters.acceptLanguage
|
|
396
|
-
],
|
|
397
|
-
responses: {
|
|
398
|
-
200: {
|
|
399
|
-
bodyMapper: Mappers.Pool,
|
|
400
|
-
headersMapper: Mappers.PoolGetHeaders
|
|
401
|
-
},
|
|
402
|
-
default: {
|
|
403
|
-
bodyMapper: Mappers.CloudError
|
|
404
|
-
}
|
|
405
|
-
},
|
|
406
|
-
serializer
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
const disableAutoScaleOperationSpec: msRest.OperationSpec = {
|
|
410
|
-
httpMethod: "POST",
|
|
411
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale",
|
|
412
|
-
urlParameters: [
|
|
413
|
-
Parameters.resourceGroupName,
|
|
414
|
-
Parameters.accountName,
|
|
415
|
-
Parameters.poolName,
|
|
416
|
-
Parameters.subscriptionId
|
|
417
|
-
],
|
|
418
|
-
queryParameters: [
|
|
419
|
-
Parameters.apiVersion
|
|
420
|
-
],
|
|
421
|
-
headerParameters: [
|
|
422
|
-
Parameters.acceptLanguage
|
|
423
|
-
],
|
|
424
|
-
responses: {
|
|
425
|
-
200: {
|
|
426
|
-
bodyMapper: Mappers.Pool,
|
|
427
|
-
headersMapper: Mappers.PoolDisableAutoScaleHeaders
|
|
428
|
-
},
|
|
429
|
-
default: {
|
|
430
|
-
bodyMapper: Mappers.CloudError
|
|
431
|
-
}
|
|
432
|
-
},
|
|
433
|
-
serializer
|
|
434
|
-
};
|
|
435
|
-
|
|
436
|
-
const stopResizeOperationSpec: msRest.OperationSpec = {
|
|
437
|
-
httpMethod: "POST",
|
|
438
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize",
|
|
439
|
-
urlParameters: [
|
|
440
|
-
Parameters.resourceGroupName,
|
|
441
|
-
Parameters.accountName,
|
|
442
|
-
Parameters.poolName,
|
|
443
|
-
Parameters.subscriptionId
|
|
444
|
-
],
|
|
445
|
-
queryParameters: [
|
|
446
|
-
Parameters.apiVersion
|
|
447
|
-
],
|
|
448
|
-
headerParameters: [
|
|
449
|
-
Parameters.acceptLanguage
|
|
450
|
-
],
|
|
451
|
-
responses: {
|
|
452
|
-
200: {
|
|
453
|
-
bodyMapper: Mappers.Pool,
|
|
454
|
-
headersMapper: Mappers.PoolStopResizeHeaders
|
|
455
|
-
},
|
|
456
|
-
default: {
|
|
457
|
-
bodyMapper: Mappers.CloudError
|
|
458
|
-
}
|
|
459
|
-
},
|
|
460
|
-
serializer
|
|
461
|
-
};
|
|
462
|
-
|
|
463
|
-
const beginCreateOperationSpec: msRest.OperationSpec = {
|
|
464
|
-
httpMethod: "PUT",
|
|
465
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
|
|
466
|
-
urlParameters: [
|
|
467
|
-
Parameters.resourceGroupName,
|
|
468
|
-
Parameters.accountName,
|
|
469
|
-
Parameters.poolName,
|
|
470
|
-
Parameters.subscriptionId
|
|
471
|
-
],
|
|
472
|
-
queryParameters: [
|
|
473
|
-
Parameters.apiVersion
|
|
474
|
-
],
|
|
475
|
-
headerParameters: [
|
|
476
|
-
Parameters.ifMatch,
|
|
477
|
-
Parameters.ifNoneMatch,
|
|
478
|
-
Parameters.acceptLanguage
|
|
479
|
-
],
|
|
480
|
-
requestBody: {
|
|
481
|
-
parameterPath: "parameters",
|
|
482
|
-
mapper: {
|
|
483
|
-
...Mappers.Pool,
|
|
484
|
-
required: true
|
|
485
|
-
}
|
|
486
|
-
},
|
|
487
|
-
responses: {
|
|
488
|
-
200: {
|
|
489
|
-
bodyMapper: Mappers.Pool,
|
|
490
|
-
headersMapper: Mappers.PoolCreateHeaders
|
|
491
|
-
},
|
|
492
|
-
default: {
|
|
493
|
-
bodyMapper: Mappers.CloudError
|
|
494
|
-
}
|
|
495
|
-
},
|
|
496
|
-
serializer
|
|
497
|
-
};
|
|
498
|
-
|
|
499
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
500
|
-
httpMethod: "DELETE",
|
|
501
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
|
|
502
|
-
urlParameters: [
|
|
503
|
-
Parameters.resourceGroupName,
|
|
504
|
-
Parameters.accountName,
|
|
505
|
-
Parameters.poolName,
|
|
506
|
-
Parameters.subscriptionId
|
|
507
|
-
],
|
|
508
|
-
queryParameters: [
|
|
509
|
-
Parameters.apiVersion
|
|
510
|
-
],
|
|
511
|
-
headerParameters: [
|
|
512
|
-
Parameters.acceptLanguage
|
|
513
|
-
],
|
|
514
|
-
responses: {
|
|
515
|
-
200: {
|
|
516
|
-
headersMapper: Mappers.PoolDeleteHeaders
|
|
517
|
-
},
|
|
518
|
-
202: {
|
|
519
|
-
headersMapper: Mappers.PoolDeleteHeaders
|
|
520
|
-
},
|
|
521
|
-
204: {
|
|
522
|
-
headersMapper: Mappers.PoolDeleteHeaders
|
|
523
|
-
},
|
|
524
|
-
default: {
|
|
525
|
-
bodyMapper: Mappers.CloudError
|
|
526
|
-
}
|
|
527
|
-
},
|
|
528
|
-
serializer
|
|
529
|
-
};
|
|
530
|
-
|
|
531
|
-
const listByBatchAccountNextOperationSpec: msRest.OperationSpec = {
|
|
532
|
-
httpMethod: "GET",
|
|
533
|
-
baseUrl: "https://management.azure.com",
|
|
534
|
-
path: "{nextLink}",
|
|
535
|
-
urlParameters: [
|
|
536
|
-
Parameters.nextPageLink
|
|
537
|
-
],
|
|
538
|
-
headerParameters: [
|
|
539
|
-
Parameters.acceptLanguage
|
|
540
|
-
],
|
|
541
|
-
responses: {
|
|
542
|
-
200: {
|
|
543
|
-
bodyMapper: Mappers.ListPoolsResult
|
|
544
|
-
},
|
|
545
|
-
default: {
|
|
546
|
-
bodyMapper: Mappers.CloudError
|
|
547
|
-
}
|
|
548
|
-
},
|
|
549
|
-
serializer
|
|
550
|
-
};
|