@azure/arm-batch 9.1.1-alpha.20240313.1 → 9.2.0-alpha.20240315.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 +12 -10
- package/LICENSE +1 -1
- package/dist/index.js +1815 -1675
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/applicationCreateSample.js +3 -3
- package/dist-esm/samples-dev/applicationCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationDeleteSample.js +1 -1
- package/dist-esm/samples-dev/applicationGetSample.js +1 -1
- package/dist-esm/samples-dev/applicationListSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageActivateSample.js +2 -2
- package/dist-esm/samples-dev/applicationPackageActivateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationPackageCreateSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageDeleteSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageGetSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageListSample.js +1 -1
- package/dist-esm/samples-dev/applicationUpdateSample.js +2 -2
- package/dist-esm/samples-dev/batchAccountCreateSample.js +20 -20
- package/dist-esm/samples-dev/batchAccountCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountDeleteSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountGetDetectorSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountGetKeysSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountGetSample.js +2 -2
- package/dist-esm/samples-dev/batchAccountListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountListDetectorsSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.js +3 -3
- package/dist-esm/samples-dev/batchAccountListSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js +3 -3
- package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountUpdateSample.js +4 -4
- package/dist-esm/samples-dev/batchAccountUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateCancelDeletionSample.js +1 -1
- package/dist-esm/samples-dev/certificateCreateSample.js +7 -7
- package/dist-esm/samples-dev/certificateCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateDeleteSample.js +1 -1
- package/dist-esm/samples-dev/certificateGetSample.js +2 -2
- package/dist-esm/samples-dev/certificateListByBatchAccountSample.js +4 -4
- package/dist-esm/samples-dev/certificateListByBatchAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateUpdateSample.js +3 -3
- package/dist-esm/samples-dev/certificateUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js +5 -5
- package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/locationGetQuotasSample.js +1 -1
- package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.js +1 -1
- package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/poolCreateSample.js +178 -118
- package/dist-esm/samples-dev/poolCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/poolDeleteSample.js +1 -1
- package/dist-esm/samples-dev/poolDisableAutoScaleSample.js +1 -1
- package/dist-esm/samples-dev/poolGetSample.js +25 -6
- package/dist-esm/samples-dev/poolGetSample.js.map +1 -1
- package/dist-esm/samples-dev/poolListByBatchAccountSample.js +3 -3
- package/dist-esm/samples-dev/poolListByBatchAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/poolStopResizeSample.js +1 -1
- package/dist-esm/samples-dev/poolUpdateSample.js +14 -14
- package/dist-esm/samples-dev/poolUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js +4 -4
- package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourceGetSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js +1 -1
- package/dist-esm/src/batchManagementClient.js +11 -10
- package/dist-esm/src/batchManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +46 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +3 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1367 -1231
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +87 -87
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/applicationOperations.js +30 -30
- package/dist-esm/src/operations/applicationOperations.js.map +1 -1
- package/dist-esm/src/operations/applicationPackageOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/applicationPackageOperations.js +31 -31
- package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -1
- package/dist-esm/src/operations/batchAccountOperations.d.ts +2 -2
- package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/batchAccountOperations.js +95 -95
- package/dist-esm/src/operations/batchAccountOperations.js.map +1 -1
- package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/certificateOperations.js +43 -43
- package/dist-esm/src/operations/certificateOperations.js.map +1 -1
- package/dist-esm/src/operations/location.js +34 -34
- package/dist-esm/src/operations/location.js.map +1 -1
- package/dist-esm/src/operations/operations.js +9 -9
- package/dist-esm/src/operations/poolOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/poolOperations.js +48 -48
- package/dist-esm/src/operations/poolOperations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js +45 -45
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResourceOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkResourceOperations.js +16 -16
- package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +1 -1
- package/dist-esm/test/batch_examples.js +1 -1
- package/dist-esm/test/batch_examples.js.map +1 -1
- package/package.json +3 -4
- package/review/arm-batch.api.md +31 -0
- package/src/batchManagementClient.ts +22 -22
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +74 -14
- package/src/models/mappers.ts +1459 -1314
- package/src/models/parameters.ts +88 -88
- package/src/operations/applicationOperations.ts +54 -59
- package/src/operations/applicationPackageOperations.ts +59 -63
- package/src/operations/batchAccountOperations.ts +211 -223
- package/src/operations/certificateOperations.ts +80 -87
- package/src/operations/location.ts +96 -98
- package/src/operations/operations.ts +16 -16
- package/src/operations/poolOperations.ts +88 -96
- package/src/operations/privateEndpointConnectionOperations.ts +86 -91
- package/src/operations/privateLinkResourceOperations.ts +35 -36
- package/src/operationsInterfaces/applicationOperations.ts +6 -6
- package/src/operationsInterfaces/applicationPackageOperations.ts +6 -6
- package/src/operationsInterfaces/batchAccountOperations.ts +16 -16
- package/src/operationsInterfaces/certificateOperations.ts +8 -8
- package/src/operationsInterfaces/location.ts +5 -5
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/poolOperations.ts +9 -9
- package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +7 -7
- package/src/operationsInterfaces/privateLinkResourceOperations.ts +3 -3
- package/src/pagingHelper.ts +1 -1
- package/types/arm-batch.d.ts +51 -1
|
@@ -16,7 +16,7 @@ import { BatchManagementClient } from "../batchManagementClient";
|
|
|
16
16
|
import {
|
|
17
17
|
SimplePollerLike,
|
|
18
18
|
OperationState,
|
|
19
|
-
createHttpPoller
|
|
19
|
+
createHttpPoller,
|
|
20
20
|
} from "@azure/core-lro";
|
|
21
21
|
import { createLroSpec } from "../lroImpl";
|
|
22
22
|
import {
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
BatchAccountListNextResponse,
|
|
56
56
|
BatchAccountListByResourceGroupNextResponse,
|
|
57
57
|
BatchAccountListDetectorsNextResponse,
|
|
58
|
-
BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse
|
|
58
|
+
BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse,
|
|
59
59
|
} from "../models";
|
|
60
60
|
|
|
61
61
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -76,7 +76,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
76
76
|
* @param options The options parameters.
|
|
77
77
|
*/
|
|
78
78
|
public list(
|
|
79
|
-
options?: BatchAccountListOptionalParams
|
|
79
|
+
options?: BatchAccountListOptionalParams,
|
|
80
80
|
): PagedAsyncIterableIterator<BatchAccount> {
|
|
81
81
|
const iter = this.listPagingAll(options);
|
|
82
82
|
return {
|
|
@@ -91,13 +91,13 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
91
91
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
92
92
|
}
|
|
93
93
|
return this.listPagingPage(options, settings);
|
|
94
|
-
}
|
|
94
|
+
},
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
private async *listPagingPage(
|
|
99
99
|
options?: BatchAccountListOptionalParams,
|
|
100
|
-
settings?: PageSettings
|
|
100
|
+
settings?: PageSettings,
|
|
101
101
|
): AsyncIterableIterator<BatchAccount[]> {
|
|
102
102
|
let result: BatchAccountListResponse;
|
|
103
103
|
let continuationToken = settings?.continuationToken;
|
|
@@ -118,7 +118,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
private async *listPagingAll(
|
|
121
|
-
options?: BatchAccountListOptionalParams
|
|
121
|
+
options?: BatchAccountListOptionalParams,
|
|
122
122
|
): AsyncIterableIterator<BatchAccount> {
|
|
123
123
|
for await (const page of this.listPagingPage(options)) {
|
|
124
124
|
yield* page;
|
|
@@ -132,7 +132,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
132
132
|
*/
|
|
133
133
|
public listByResourceGroup(
|
|
134
134
|
resourceGroupName: string,
|
|
135
|
-
options?: BatchAccountListByResourceGroupOptionalParams
|
|
135
|
+
options?: BatchAccountListByResourceGroupOptionalParams,
|
|
136
136
|
): PagedAsyncIterableIterator<BatchAccount> {
|
|
137
137
|
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
138
138
|
return {
|
|
@@ -149,16 +149,16 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
149
149
|
return this.listByResourceGroupPagingPage(
|
|
150
150
|
resourceGroupName,
|
|
151
151
|
options,
|
|
152
|
-
settings
|
|
152
|
+
settings,
|
|
153
153
|
);
|
|
154
|
-
}
|
|
154
|
+
},
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
private async *listByResourceGroupPagingPage(
|
|
159
159
|
resourceGroupName: string,
|
|
160
160
|
options?: BatchAccountListByResourceGroupOptionalParams,
|
|
161
|
-
settings?: PageSettings
|
|
161
|
+
settings?: PageSettings,
|
|
162
162
|
): AsyncIterableIterator<BatchAccount[]> {
|
|
163
163
|
let result: BatchAccountListByResourceGroupResponse;
|
|
164
164
|
let continuationToken = settings?.continuationToken;
|
|
@@ -173,7 +173,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
173
173
|
result = await this._listByResourceGroupNext(
|
|
174
174
|
resourceGroupName,
|
|
175
175
|
continuationToken,
|
|
176
|
-
options
|
|
176
|
+
options,
|
|
177
177
|
);
|
|
178
178
|
continuationToken = result.nextLink;
|
|
179
179
|
let page = result.value || [];
|
|
@@ -184,11 +184,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
184
184
|
|
|
185
185
|
private async *listByResourceGroupPagingAll(
|
|
186
186
|
resourceGroupName: string,
|
|
187
|
-
options?: BatchAccountListByResourceGroupOptionalParams
|
|
187
|
+
options?: BatchAccountListByResourceGroupOptionalParams,
|
|
188
188
|
): AsyncIterableIterator<BatchAccount> {
|
|
189
189
|
for await (const page of this.listByResourceGroupPagingPage(
|
|
190
190
|
resourceGroupName,
|
|
191
|
-
options
|
|
191
|
+
options,
|
|
192
192
|
)) {
|
|
193
193
|
yield* page;
|
|
194
194
|
}
|
|
@@ -203,12 +203,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
203
203
|
public listDetectors(
|
|
204
204
|
resourceGroupName: string,
|
|
205
205
|
accountName: string,
|
|
206
|
-
options?: BatchAccountListDetectorsOptionalParams
|
|
206
|
+
options?: BatchAccountListDetectorsOptionalParams,
|
|
207
207
|
): PagedAsyncIterableIterator<DetectorResponse> {
|
|
208
208
|
const iter = this.listDetectorsPagingAll(
|
|
209
209
|
resourceGroupName,
|
|
210
210
|
accountName,
|
|
211
|
-
options
|
|
211
|
+
options,
|
|
212
212
|
);
|
|
213
213
|
return {
|
|
214
214
|
next() {
|
|
@@ -225,9 +225,9 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
225
225
|
resourceGroupName,
|
|
226
226
|
accountName,
|
|
227
227
|
options,
|
|
228
|
-
settings
|
|
228
|
+
settings,
|
|
229
229
|
);
|
|
230
|
-
}
|
|
230
|
+
},
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
233
|
|
|
@@ -235,7 +235,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
235
235
|
resourceGroupName: string,
|
|
236
236
|
accountName: string,
|
|
237
237
|
options?: BatchAccountListDetectorsOptionalParams,
|
|
238
|
-
settings?: PageSettings
|
|
238
|
+
settings?: PageSettings,
|
|
239
239
|
): AsyncIterableIterator<DetectorResponse[]> {
|
|
240
240
|
let result: BatchAccountListDetectorsResponse;
|
|
241
241
|
let continuationToken = settings?.continuationToken;
|
|
@@ -243,7 +243,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
243
243
|
result = await this._listDetectors(
|
|
244
244
|
resourceGroupName,
|
|
245
245
|
accountName,
|
|
246
|
-
options
|
|
246
|
+
options,
|
|
247
247
|
);
|
|
248
248
|
let page = result.value || [];
|
|
249
249
|
continuationToken = result.nextLink;
|
|
@@ -255,7 +255,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
255
255
|
resourceGroupName,
|
|
256
256
|
accountName,
|
|
257
257
|
continuationToken,
|
|
258
|
-
options
|
|
258
|
+
options,
|
|
259
259
|
);
|
|
260
260
|
continuationToken = result.nextLink;
|
|
261
261
|
let page = result.value || [];
|
|
@@ -267,12 +267,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
267
267
|
private async *listDetectorsPagingAll(
|
|
268
268
|
resourceGroupName: string,
|
|
269
269
|
accountName: string,
|
|
270
|
-
options?: BatchAccountListDetectorsOptionalParams
|
|
270
|
+
options?: BatchAccountListDetectorsOptionalParams,
|
|
271
271
|
): AsyncIterableIterator<DetectorResponse> {
|
|
272
272
|
for await (const page of this.listDetectorsPagingPage(
|
|
273
273
|
resourceGroupName,
|
|
274
274
|
accountName,
|
|
275
|
-
options
|
|
275
|
+
options,
|
|
276
276
|
)) {
|
|
277
277
|
yield* page;
|
|
278
278
|
}
|
|
@@ -284,7 +284,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
284
284
|
* you must make sure your network allows outbound access to these endpoints. Failure to allow access
|
|
285
285
|
* to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
|
|
286
286
|
* about creating a pool inside of a virtual network, see
|
|
287
|
-
* https://docs.microsoft.com/azure/batch/batch-virtual-network.
|
|
287
|
+
* https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
|
|
288
288
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
289
289
|
* @param accountName The name of the Batch account.
|
|
290
290
|
* @param options The options parameters.
|
|
@@ -292,12 +292,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
292
292
|
public listOutboundNetworkDependenciesEndpoints(
|
|
293
293
|
resourceGroupName: string,
|
|
294
294
|
accountName: string,
|
|
295
|
-
options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams
|
|
295
|
+
options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams,
|
|
296
296
|
): PagedAsyncIterableIterator<OutboundEnvironmentEndpoint> {
|
|
297
297
|
const iter = this.listOutboundNetworkDependenciesEndpointsPagingAll(
|
|
298
298
|
resourceGroupName,
|
|
299
299
|
accountName,
|
|
300
|
-
options
|
|
300
|
+
options,
|
|
301
301
|
);
|
|
302
302
|
return {
|
|
303
303
|
next() {
|
|
@@ -314,9 +314,9 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
314
314
|
resourceGroupName,
|
|
315
315
|
accountName,
|
|
316
316
|
options,
|
|
317
|
-
settings
|
|
317
|
+
settings,
|
|
318
318
|
);
|
|
319
|
-
}
|
|
319
|
+
},
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
322
|
|
|
@@ -324,7 +324,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
324
324
|
resourceGroupName: string,
|
|
325
325
|
accountName: string,
|
|
326
326
|
options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams,
|
|
327
|
-
settings?: PageSettings
|
|
327
|
+
settings?: PageSettings,
|
|
328
328
|
): AsyncIterableIterator<OutboundEnvironmentEndpoint[]> {
|
|
329
329
|
let result: BatchAccountListOutboundNetworkDependenciesEndpointsResponse;
|
|
330
330
|
let continuationToken = settings?.continuationToken;
|
|
@@ -332,7 +332,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
332
332
|
result = await this._listOutboundNetworkDependenciesEndpoints(
|
|
333
333
|
resourceGroupName,
|
|
334
334
|
accountName,
|
|
335
|
-
options
|
|
335
|
+
options,
|
|
336
336
|
);
|
|
337
337
|
let page = result.value || [];
|
|
338
338
|
continuationToken = result.nextLink;
|
|
@@ -344,7 +344,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
344
344
|
resourceGroupName,
|
|
345
345
|
accountName,
|
|
346
346
|
continuationToken,
|
|
347
|
-
options
|
|
347
|
+
options,
|
|
348
348
|
);
|
|
349
349
|
continuationToken = result.nextLink;
|
|
350
350
|
let page = result.value || [];
|
|
@@ -356,12 +356,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
356
356
|
private async *listOutboundNetworkDependenciesEndpointsPagingAll(
|
|
357
357
|
resourceGroupName: string,
|
|
358
358
|
accountName: string,
|
|
359
|
-
options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams
|
|
359
|
+
options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams,
|
|
360
360
|
): AsyncIterableIterator<OutboundEnvironmentEndpoint> {
|
|
361
361
|
for await (const page of this.listOutboundNetworkDependenciesEndpointsPagingPage(
|
|
362
362
|
resourceGroupName,
|
|
363
363
|
accountName,
|
|
364
|
-
options
|
|
364
|
+
options,
|
|
365
365
|
)) {
|
|
366
366
|
yield* page;
|
|
367
367
|
}
|
|
@@ -382,7 +382,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
382
382
|
resourceGroupName: string,
|
|
383
383
|
accountName: string,
|
|
384
384
|
parameters: BatchAccountCreateParameters,
|
|
385
|
-
options?: BatchAccountCreateOptionalParams
|
|
385
|
+
options?: BatchAccountCreateOptionalParams,
|
|
386
386
|
): Promise<
|
|
387
387
|
SimplePollerLike<
|
|
388
388
|
OperationState<BatchAccountCreateResponse>,
|
|
@@ -391,21 +391,20 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
391
391
|
> {
|
|
392
392
|
const directSendOperation = async (
|
|
393
393
|
args: coreClient.OperationArguments,
|
|
394
|
-
spec: coreClient.OperationSpec
|
|
394
|
+
spec: coreClient.OperationSpec,
|
|
395
395
|
): Promise<BatchAccountCreateResponse> => {
|
|
396
396
|
return this.client.sendOperationRequest(args, spec);
|
|
397
397
|
};
|
|
398
398
|
const sendOperationFn = async (
|
|
399
399
|
args: coreClient.OperationArguments,
|
|
400
|
-
spec: coreClient.OperationSpec
|
|
400
|
+
spec: coreClient.OperationSpec,
|
|
401
401
|
) => {
|
|
402
|
-
let currentRawResponse:
|
|
403
|
-
|
|
404
|
-
| undefined = undefined;
|
|
402
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
403
|
+
undefined;
|
|
405
404
|
const providedCallback = args.options?.onResponse;
|
|
406
405
|
const callback: coreClient.RawResponseCallback = (
|
|
407
406
|
rawResponse: coreClient.FullOperationResponse,
|
|
408
|
-
flatResponse: unknown
|
|
407
|
+
flatResponse: unknown,
|
|
409
408
|
) => {
|
|
410
409
|
currentRawResponse = rawResponse;
|
|
411
410
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -414,8 +413,8 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
414
413
|
...args,
|
|
415
414
|
options: {
|
|
416
415
|
...args.options,
|
|
417
|
-
onResponse: callback
|
|
418
|
-
}
|
|
416
|
+
onResponse: callback,
|
|
417
|
+
},
|
|
419
418
|
};
|
|
420
419
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
421
420
|
return {
|
|
@@ -423,15 +422,15 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
423
422
|
rawResponse: {
|
|
424
423
|
statusCode: currentRawResponse!.status,
|
|
425
424
|
body: currentRawResponse!.parsedBody,
|
|
426
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
427
|
-
}
|
|
425
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
426
|
+
},
|
|
428
427
|
};
|
|
429
428
|
};
|
|
430
429
|
|
|
431
430
|
const lro = createLroSpec({
|
|
432
431
|
sendOperationFn,
|
|
433
432
|
args: { resourceGroupName, accountName, parameters, options },
|
|
434
|
-
spec: createOperationSpec
|
|
433
|
+
spec: createOperationSpec,
|
|
435
434
|
});
|
|
436
435
|
const poller = await createHttpPoller<
|
|
437
436
|
BatchAccountCreateResponse,
|
|
@@ -439,7 +438,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
439
438
|
>(lro, {
|
|
440
439
|
restoreFrom: options?.resumeFrom,
|
|
441
440
|
intervalInMs: options?.updateIntervalInMs,
|
|
442
|
-
resourceLocationConfig: "location"
|
|
441
|
+
resourceLocationConfig: "location",
|
|
443
442
|
});
|
|
444
443
|
await poller.poll();
|
|
445
444
|
return poller;
|
|
@@ -460,13 +459,13 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
460
459
|
resourceGroupName: string,
|
|
461
460
|
accountName: string,
|
|
462
461
|
parameters: BatchAccountCreateParameters,
|
|
463
|
-
options?: BatchAccountCreateOptionalParams
|
|
462
|
+
options?: BatchAccountCreateOptionalParams,
|
|
464
463
|
): Promise<BatchAccountCreateResponse> {
|
|
465
464
|
const poller = await this.beginCreate(
|
|
466
465
|
resourceGroupName,
|
|
467
466
|
accountName,
|
|
468
467
|
parameters,
|
|
469
|
-
options
|
|
468
|
+
options,
|
|
470
469
|
);
|
|
471
470
|
return poller.pollUntilDone();
|
|
472
471
|
}
|
|
@@ -482,11 +481,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
482
481
|
resourceGroupName: string,
|
|
483
482
|
accountName: string,
|
|
484
483
|
parameters: BatchAccountUpdateParameters,
|
|
485
|
-
options?: BatchAccountUpdateOptionalParams
|
|
484
|
+
options?: BatchAccountUpdateOptionalParams,
|
|
486
485
|
): Promise<BatchAccountUpdateResponse> {
|
|
487
486
|
return this.client.sendOperationRequest(
|
|
488
487
|
{ resourceGroupName, accountName, parameters, options },
|
|
489
|
-
updateOperationSpec
|
|
488
|
+
updateOperationSpec,
|
|
490
489
|
);
|
|
491
490
|
}
|
|
492
491
|
|
|
@@ -499,25 +498,24 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
499
498
|
async beginDelete(
|
|
500
499
|
resourceGroupName: string,
|
|
501
500
|
accountName: string,
|
|
502
|
-
options?: BatchAccountDeleteOptionalParams
|
|
501
|
+
options?: BatchAccountDeleteOptionalParams,
|
|
503
502
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
504
503
|
const directSendOperation = async (
|
|
505
504
|
args: coreClient.OperationArguments,
|
|
506
|
-
spec: coreClient.OperationSpec
|
|
505
|
+
spec: coreClient.OperationSpec,
|
|
507
506
|
): Promise<void> => {
|
|
508
507
|
return this.client.sendOperationRequest(args, spec);
|
|
509
508
|
};
|
|
510
509
|
const sendOperationFn = async (
|
|
511
510
|
args: coreClient.OperationArguments,
|
|
512
|
-
spec: coreClient.OperationSpec
|
|
511
|
+
spec: coreClient.OperationSpec,
|
|
513
512
|
) => {
|
|
514
|
-
let currentRawResponse:
|
|
515
|
-
|
|
516
|
-
| undefined = undefined;
|
|
513
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
514
|
+
undefined;
|
|
517
515
|
const providedCallback = args.options?.onResponse;
|
|
518
516
|
const callback: coreClient.RawResponseCallback = (
|
|
519
517
|
rawResponse: coreClient.FullOperationResponse,
|
|
520
|
-
flatResponse: unknown
|
|
518
|
+
flatResponse: unknown,
|
|
521
519
|
) => {
|
|
522
520
|
currentRawResponse = rawResponse;
|
|
523
521
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -526,8 +524,8 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
526
524
|
...args,
|
|
527
525
|
options: {
|
|
528
526
|
...args.options,
|
|
529
|
-
onResponse: callback
|
|
530
|
-
}
|
|
527
|
+
onResponse: callback,
|
|
528
|
+
},
|
|
531
529
|
};
|
|
532
530
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
533
531
|
return {
|
|
@@ -535,20 +533,20 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
535
533
|
rawResponse: {
|
|
536
534
|
statusCode: currentRawResponse!.status,
|
|
537
535
|
body: currentRawResponse!.parsedBody,
|
|
538
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
539
|
-
}
|
|
536
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
537
|
+
},
|
|
540
538
|
};
|
|
541
539
|
};
|
|
542
540
|
|
|
543
541
|
const lro = createLroSpec({
|
|
544
542
|
sendOperationFn,
|
|
545
543
|
args: { resourceGroupName, accountName, options },
|
|
546
|
-
spec: deleteOperationSpec
|
|
544
|
+
spec: deleteOperationSpec,
|
|
547
545
|
});
|
|
548
546
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
549
547
|
restoreFrom: options?.resumeFrom,
|
|
550
548
|
intervalInMs: options?.updateIntervalInMs,
|
|
551
|
-
resourceLocationConfig: "location"
|
|
549
|
+
resourceLocationConfig: "location",
|
|
552
550
|
});
|
|
553
551
|
await poller.poll();
|
|
554
552
|
return poller;
|
|
@@ -563,12 +561,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
563
561
|
async beginDeleteAndWait(
|
|
564
562
|
resourceGroupName: string,
|
|
565
563
|
accountName: string,
|
|
566
|
-
options?: BatchAccountDeleteOptionalParams
|
|
564
|
+
options?: BatchAccountDeleteOptionalParams,
|
|
567
565
|
): Promise<void> {
|
|
568
566
|
const poller = await this.beginDelete(
|
|
569
567
|
resourceGroupName,
|
|
570
568
|
accountName,
|
|
571
|
-
options
|
|
569
|
+
options,
|
|
572
570
|
);
|
|
573
571
|
return poller.pollUntilDone();
|
|
574
572
|
}
|
|
@@ -582,11 +580,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
582
580
|
get(
|
|
583
581
|
resourceGroupName: string,
|
|
584
582
|
accountName: string,
|
|
585
|
-
options?: BatchAccountGetOptionalParams
|
|
583
|
+
options?: BatchAccountGetOptionalParams,
|
|
586
584
|
): Promise<BatchAccountGetResponse> {
|
|
587
585
|
return this.client.sendOperationRequest(
|
|
588
586
|
{ resourceGroupName, accountName, options },
|
|
589
|
-
getOperationSpec
|
|
587
|
+
getOperationSpec,
|
|
590
588
|
);
|
|
591
589
|
}
|
|
592
590
|
|
|
@@ -595,7 +593,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
595
593
|
* @param options The options parameters.
|
|
596
594
|
*/
|
|
597
595
|
private _list(
|
|
598
|
-
options?: BatchAccountListOptionalParams
|
|
596
|
+
options?: BatchAccountListOptionalParams,
|
|
599
597
|
): Promise<BatchAccountListResponse> {
|
|
600
598
|
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
601
599
|
}
|
|
@@ -607,11 +605,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
607
605
|
*/
|
|
608
606
|
private _listByResourceGroup(
|
|
609
607
|
resourceGroupName: string,
|
|
610
|
-
options?: BatchAccountListByResourceGroupOptionalParams
|
|
608
|
+
options?: BatchAccountListByResourceGroupOptionalParams,
|
|
611
609
|
): Promise<BatchAccountListByResourceGroupResponse> {
|
|
612
610
|
return this.client.sendOperationRequest(
|
|
613
611
|
{ resourceGroupName, options },
|
|
614
|
-
listByResourceGroupOperationSpec
|
|
612
|
+
listByResourceGroupOperationSpec,
|
|
615
613
|
);
|
|
616
614
|
}
|
|
617
615
|
|
|
@@ -625,11 +623,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
625
623
|
synchronizeAutoStorageKeys(
|
|
626
624
|
resourceGroupName: string,
|
|
627
625
|
accountName: string,
|
|
628
|
-
options?: BatchAccountSynchronizeAutoStorageKeysOptionalParams
|
|
626
|
+
options?: BatchAccountSynchronizeAutoStorageKeysOptionalParams,
|
|
629
627
|
): Promise<void> {
|
|
630
628
|
return this.client.sendOperationRequest(
|
|
631
629
|
{ resourceGroupName, accountName, options },
|
|
632
|
-
synchronizeAutoStorageKeysOperationSpec
|
|
630
|
+
synchronizeAutoStorageKeysOperationSpec,
|
|
633
631
|
);
|
|
634
632
|
}
|
|
635
633
|
|
|
@@ -647,11 +645,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
647
645
|
resourceGroupName: string,
|
|
648
646
|
accountName: string,
|
|
649
647
|
parameters: BatchAccountRegenerateKeyParameters,
|
|
650
|
-
options?: BatchAccountRegenerateKeyOptionalParams
|
|
648
|
+
options?: BatchAccountRegenerateKeyOptionalParams,
|
|
651
649
|
): Promise<BatchAccountRegenerateKeyResponse> {
|
|
652
650
|
return this.client.sendOperationRequest(
|
|
653
651
|
{ resourceGroupName, accountName, parameters, options },
|
|
654
|
-
regenerateKeyOperationSpec
|
|
652
|
+
regenerateKeyOperationSpec,
|
|
655
653
|
);
|
|
656
654
|
}
|
|
657
655
|
|
|
@@ -667,11 +665,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
667
665
|
getKeys(
|
|
668
666
|
resourceGroupName: string,
|
|
669
667
|
accountName: string,
|
|
670
|
-
options?: BatchAccountGetKeysOptionalParams
|
|
668
|
+
options?: BatchAccountGetKeysOptionalParams,
|
|
671
669
|
): Promise<BatchAccountGetKeysResponse> {
|
|
672
670
|
return this.client.sendOperationRequest(
|
|
673
671
|
{ resourceGroupName, accountName, options },
|
|
674
|
-
getKeysOperationSpec
|
|
672
|
+
getKeysOperationSpec,
|
|
675
673
|
);
|
|
676
674
|
}
|
|
677
675
|
|
|
@@ -684,11 +682,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
684
682
|
private _listDetectors(
|
|
685
683
|
resourceGroupName: string,
|
|
686
684
|
accountName: string,
|
|
687
|
-
options?: BatchAccountListDetectorsOptionalParams
|
|
685
|
+
options?: BatchAccountListDetectorsOptionalParams,
|
|
688
686
|
): Promise<BatchAccountListDetectorsResponse> {
|
|
689
687
|
return this.client.sendOperationRequest(
|
|
690
688
|
{ resourceGroupName, accountName, options },
|
|
691
|
-
listDetectorsOperationSpec
|
|
689
|
+
listDetectorsOperationSpec,
|
|
692
690
|
);
|
|
693
691
|
}
|
|
694
692
|
|
|
@@ -703,11 +701,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
703
701
|
resourceGroupName: string,
|
|
704
702
|
accountName: string,
|
|
705
703
|
detectorId: string,
|
|
706
|
-
options?: BatchAccountGetDetectorOptionalParams
|
|
704
|
+
options?: BatchAccountGetDetectorOptionalParams,
|
|
707
705
|
): Promise<BatchAccountGetDetectorResponse> {
|
|
708
706
|
return this.client.sendOperationRequest(
|
|
709
707
|
{ resourceGroupName, accountName, detectorId, options },
|
|
710
|
-
getDetectorOperationSpec
|
|
708
|
+
getDetectorOperationSpec,
|
|
711
709
|
);
|
|
712
710
|
}
|
|
713
711
|
|
|
@@ -717,7 +715,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
717
715
|
* you must make sure your network allows outbound access to these endpoints. Failure to allow access
|
|
718
716
|
* to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
|
|
719
717
|
* about creating a pool inside of a virtual network, see
|
|
720
|
-
* https://docs.microsoft.com/azure/batch/batch-virtual-network.
|
|
718
|
+
* https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
|
|
721
719
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
722
720
|
* @param accountName The name of the Batch account.
|
|
723
721
|
* @param options The options parameters.
|
|
@@ -725,11 +723,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
725
723
|
private _listOutboundNetworkDependenciesEndpoints(
|
|
726
724
|
resourceGroupName: string,
|
|
727
725
|
accountName: string,
|
|
728
|
-
options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams
|
|
726
|
+
options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams,
|
|
729
727
|
): Promise<BatchAccountListOutboundNetworkDependenciesEndpointsResponse> {
|
|
730
728
|
return this.client.sendOperationRequest(
|
|
731
729
|
{ resourceGroupName, accountName, options },
|
|
732
|
-
listOutboundNetworkDependenciesEndpointsOperationSpec
|
|
730
|
+
listOutboundNetworkDependenciesEndpointsOperationSpec,
|
|
733
731
|
);
|
|
734
732
|
}
|
|
735
733
|
|
|
@@ -740,11 +738,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
740
738
|
*/
|
|
741
739
|
private _listNext(
|
|
742
740
|
nextLink: string,
|
|
743
|
-
options?: BatchAccountListNextOptionalParams
|
|
741
|
+
options?: BatchAccountListNextOptionalParams,
|
|
744
742
|
): Promise<BatchAccountListNextResponse> {
|
|
745
743
|
return this.client.sendOperationRequest(
|
|
746
744
|
{ nextLink, options },
|
|
747
|
-
listNextOperationSpec
|
|
745
|
+
listNextOperationSpec,
|
|
748
746
|
);
|
|
749
747
|
}
|
|
750
748
|
|
|
@@ -757,11 +755,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
757
755
|
private _listByResourceGroupNext(
|
|
758
756
|
resourceGroupName: string,
|
|
759
757
|
nextLink: string,
|
|
760
|
-
options?: BatchAccountListByResourceGroupNextOptionalParams
|
|
758
|
+
options?: BatchAccountListByResourceGroupNextOptionalParams,
|
|
761
759
|
): Promise<BatchAccountListByResourceGroupNextResponse> {
|
|
762
760
|
return this.client.sendOperationRequest(
|
|
763
761
|
{ resourceGroupName, nextLink, options },
|
|
764
|
-
listByResourceGroupNextOperationSpec
|
|
762
|
+
listByResourceGroupNextOperationSpec,
|
|
765
763
|
);
|
|
766
764
|
}
|
|
767
765
|
|
|
@@ -776,11 +774,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
776
774
|
resourceGroupName: string,
|
|
777
775
|
accountName: string,
|
|
778
776
|
nextLink: string,
|
|
779
|
-
options?: BatchAccountListDetectorsNextOptionalParams
|
|
777
|
+
options?: BatchAccountListDetectorsNextOptionalParams,
|
|
780
778
|
): Promise<BatchAccountListDetectorsNextResponse> {
|
|
781
779
|
return this.client.sendOperationRequest(
|
|
782
780
|
{ resourceGroupName, accountName, nextLink, options },
|
|
783
|
-
listDetectorsNextOperationSpec
|
|
781
|
+
listDetectorsNextOperationSpec,
|
|
784
782
|
);
|
|
785
783
|
}
|
|
786
784
|
|
|
@@ -796,11 +794,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
796
794
|
resourceGroupName: string,
|
|
797
795
|
accountName: string,
|
|
798
796
|
nextLink: string,
|
|
799
|
-
options?: BatchAccountListOutboundNetworkDependenciesEndpointsNextOptionalParams
|
|
797
|
+
options?: BatchAccountListOutboundNetworkDependenciesEndpointsNextOptionalParams,
|
|
800
798
|
): Promise<BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse> {
|
|
801
799
|
return this.client.sendOperationRequest(
|
|
802
800
|
{ resourceGroupName, accountName, nextLink, options },
|
|
803
|
-
listOutboundNetworkDependenciesEndpointsNextOperationSpec
|
|
801
|
+
listOutboundNetworkDependenciesEndpointsNextOperationSpec,
|
|
804
802
|
);
|
|
805
803
|
}
|
|
806
804
|
}
|
|
@@ -808,25 +806,24 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
808
806
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
809
807
|
|
|
810
808
|
const createOperationSpec: coreClient.OperationSpec = {
|
|
811
|
-
path:
|
|
812
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
809
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
813
810
|
httpMethod: "PUT",
|
|
814
811
|
responses: {
|
|
815
812
|
200: {
|
|
816
|
-
bodyMapper: Mappers.BatchAccount
|
|
813
|
+
bodyMapper: Mappers.BatchAccount,
|
|
817
814
|
},
|
|
818
815
|
201: {
|
|
819
|
-
bodyMapper: Mappers.BatchAccount
|
|
816
|
+
bodyMapper: Mappers.BatchAccount,
|
|
820
817
|
},
|
|
821
818
|
202: {
|
|
822
|
-
bodyMapper: Mappers.BatchAccount
|
|
819
|
+
bodyMapper: Mappers.BatchAccount,
|
|
823
820
|
},
|
|
824
821
|
204: {
|
|
825
|
-
bodyMapper: Mappers.BatchAccount
|
|
822
|
+
bodyMapper: Mappers.BatchAccount,
|
|
826
823
|
},
|
|
827
824
|
default: {
|
|
828
|
-
bodyMapper: Mappers.CloudError
|
|
829
|
-
}
|
|
825
|
+
bodyMapper: Mappers.CloudError,
|
|
826
|
+
},
|
|
830
827
|
},
|
|
831
828
|
requestBody: Parameters.parameters,
|
|
832
829
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -834,23 +831,22 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
|
834
831
|
Parameters.$host,
|
|
835
832
|
Parameters.resourceGroupName,
|
|
836
833
|
Parameters.accountName,
|
|
837
|
-
Parameters.subscriptionId
|
|
834
|
+
Parameters.subscriptionId,
|
|
838
835
|
],
|
|
839
836
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
840
837
|
mediaType: "json",
|
|
841
|
-
serializer
|
|
838
|
+
serializer,
|
|
842
839
|
};
|
|
843
840
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
844
|
-
path:
|
|
845
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
841
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
846
842
|
httpMethod: "PATCH",
|
|
847
843
|
responses: {
|
|
848
844
|
200: {
|
|
849
|
-
bodyMapper: Mappers.BatchAccount
|
|
845
|
+
bodyMapper: Mappers.BatchAccount,
|
|
850
846
|
},
|
|
851
847
|
default: {
|
|
852
|
-
bodyMapper: Mappers.CloudError
|
|
853
|
-
}
|
|
848
|
+
bodyMapper: Mappers.CloudError,
|
|
849
|
+
},
|
|
854
850
|
},
|
|
855
851
|
requestBody: Parameters.parameters1,
|
|
856
852
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -858,15 +854,14 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
858
854
|
Parameters.$host,
|
|
859
855
|
Parameters.resourceGroupName,
|
|
860
856
|
Parameters.subscriptionId,
|
|
861
|
-
Parameters.accountName1
|
|
857
|
+
Parameters.accountName1,
|
|
862
858
|
],
|
|
863
859
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
864
860
|
mediaType: "json",
|
|
865
|
-
serializer
|
|
861
|
+
serializer,
|
|
866
862
|
};
|
|
867
863
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
868
|
-
path:
|
|
869
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
864
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
870
865
|
httpMethod: "DELETE",
|
|
871
866
|
responses: {
|
|
872
867
|
200: {},
|
|
@@ -874,110 +869,105 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
874
869
|
202: {},
|
|
875
870
|
204: {},
|
|
876
871
|
default: {
|
|
877
|
-
bodyMapper: Mappers.CloudError
|
|
878
|
-
}
|
|
872
|
+
bodyMapper: Mappers.CloudError,
|
|
873
|
+
},
|
|
879
874
|
},
|
|
880
875
|
queryParameters: [Parameters.apiVersion],
|
|
881
876
|
urlParameters: [
|
|
882
877
|
Parameters.$host,
|
|
883
878
|
Parameters.resourceGroupName,
|
|
884
879
|
Parameters.subscriptionId,
|
|
885
|
-
Parameters.accountName1
|
|
880
|
+
Parameters.accountName1,
|
|
886
881
|
],
|
|
887
882
|
headerParameters: [Parameters.accept],
|
|
888
|
-
serializer
|
|
883
|
+
serializer,
|
|
889
884
|
};
|
|
890
885
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
891
|
-
path:
|
|
892
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
886
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
893
887
|
httpMethod: "GET",
|
|
894
888
|
responses: {
|
|
895
889
|
200: {
|
|
896
|
-
bodyMapper: Mappers.BatchAccount
|
|
890
|
+
bodyMapper: Mappers.BatchAccount,
|
|
897
891
|
},
|
|
898
892
|
default: {
|
|
899
|
-
bodyMapper: Mappers.CloudError
|
|
900
|
-
}
|
|
893
|
+
bodyMapper: Mappers.CloudError,
|
|
894
|
+
},
|
|
901
895
|
},
|
|
902
896
|
queryParameters: [Parameters.apiVersion],
|
|
903
897
|
urlParameters: [
|
|
904
898
|
Parameters.$host,
|
|
905
899
|
Parameters.resourceGroupName,
|
|
906
900
|
Parameters.subscriptionId,
|
|
907
|
-
Parameters.accountName1
|
|
901
|
+
Parameters.accountName1,
|
|
908
902
|
],
|
|
909
903
|
headerParameters: [Parameters.accept],
|
|
910
|
-
serializer
|
|
904
|
+
serializer,
|
|
911
905
|
};
|
|
912
906
|
const listOperationSpec: coreClient.OperationSpec = {
|
|
913
|
-
path:
|
|
914
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts",
|
|
907
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts",
|
|
915
908
|
httpMethod: "GET",
|
|
916
909
|
responses: {
|
|
917
910
|
200: {
|
|
918
|
-
bodyMapper: Mappers.BatchAccountListResult
|
|
911
|
+
bodyMapper: Mappers.BatchAccountListResult,
|
|
919
912
|
},
|
|
920
913
|
default: {
|
|
921
|
-
bodyMapper: Mappers.CloudError
|
|
922
|
-
}
|
|
914
|
+
bodyMapper: Mappers.CloudError,
|
|
915
|
+
},
|
|
923
916
|
},
|
|
924
917
|
queryParameters: [Parameters.apiVersion],
|
|
925
918
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
926
919
|
headerParameters: [Parameters.accept],
|
|
927
|
-
serializer
|
|
920
|
+
serializer,
|
|
928
921
|
};
|
|
929
922
|
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
930
|
-
path:
|
|
931
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts",
|
|
923
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts",
|
|
932
924
|
httpMethod: "GET",
|
|
933
925
|
responses: {
|
|
934
926
|
200: {
|
|
935
|
-
bodyMapper: Mappers.BatchAccountListResult
|
|
927
|
+
bodyMapper: Mappers.BatchAccountListResult,
|
|
936
928
|
},
|
|
937
929
|
default: {
|
|
938
|
-
bodyMapper: Mappers.CloudError
|
|
939
|
-
}
|
|
930
|
+
bodyMapper: Mappers.CloudError,
|
|
931
|
+
},
|
|
940
932
|
},
|
|
941
933
|
queryParameters: [Parameters.apiVersion],
|
|
942
934
|
urlParameters: [
|
|
943
935
|
Parameters.$host,
|
|
944
936
|
Parameters.resourceGroupName,
|
|
945
|
-
Parameters.subscriptionId
|
|
937
|
+
Parameters.subscriptionId,
|
|
946
938
|
],
|
|
947
939
|
headerParameters: [Parameters.accept],
|
|
948
|
-
serializer
|
|
940
|
+
serializer,
|
|
949
941
|
};
|
|
950
942
|
const synchronizeAutoStorageKeysOperationSpec: coreClient.OperationSpec = {
|
|
951
|
-
path:
|
|
952
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys",
|
|
943
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys",
|
|
953
944
|
httpMethod: "POST",
|
|
954
945
|
responses: {
|
|
955
946
|
204: {},
|
|
956
947
|
default: {
|
|
957
|
-
bodyMapper: Mappers.CloudError
|
|
958
|
-
}
|
|
948
|
+
bodyMapper: Mappers.CloudError,
|
|
949
|
+
},
|
|
959
950
|
},
|
|
960
951
|
queryParameters: [Parameters.apiVersion],
|
|
961
952
|
urlParameters: [
|
|
962
953
|
Parameters.$host,
|
|
963
954
|
Parameters.resourceGroupName,
|
|
964
955
|
Parameters.subscriptionId,
|
|
965
|
-
Parameters.accountName1
|
|
956
|
+
Parameters.accountName1,
|
|
966
957
|
],
|
|
967
958
|
headerParameters: [Parameters.accept],
|
|
968
|
-
serializer
|
|
959
|
+
serializer,
|
|
969
960
|
};
|
|
970
961
|
const regenerateKeyOperationSpec: coreClient.OperationSpec = {
|
|
971
|
-
path:
|
|
972
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys",
|
|
962
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys",
|
|
973
963
|
httpMethod: "POST",
|
|
974
964
|
responses: {
|
|
975
965
|
200: {
|
|
976
|
-
bodyMapper: Mappers.BatchAccountKeys
|
|
966
|
+
bodyMapper: Mappers.BatchAccountKeys,
|
|
977
967
|
},
|
|
978
968
|
default: {
|
|
979
|
-
bodyMapper: Mappers.CloudError
|
|
980
|
-
}
|
|
969
|
+
bodyMapper: Mappers.CloudError,
|
|
970
|
+
},
|
|
981
971
|
},
|
|
982
972
|
requestBody: Parameters.parameters2,
|
|
983
973
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -985,67 +975,64 @@ const regenerateKeyOperationSpec: coreClient.OperationSpec = {
|
|
|
985
975
|
Parameters.$host,
|
|
986
976
|
Parameters.resourceGroupName,
|
|
987
977
|
Parameters.subscriptionId,
|
|
988
|
-
Parameters.accountName1
|
|
978
|
+
Parameters.accountName1,
|
|
989
979
|
],
|
|
990
980
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
991
981
|
mediaType: "json",
|
|
992
|
-
serializer
|
|
982
|
+
serializer,
|
|
993
983
|
};
|
|
994
984
|
const getKeysOperationSpec: coreClient.OperationSpec = {
|
|
995
|
-
path:
|
|
996
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys",
|
|
985
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys",
|
|
997
986
|
httpMethod: "POST",
|
|
998
987
|
responses: {
|
|
999
988
|
200: {
|
|
1000
|
-
bodyMapper: Mappers.BatchAccountKeys
|
|
989
|
+
bodyMapper: Mappers.BatchAccountKeys,
|
|
1001
990
|
},
|
|
1002
991
|
default: {
|
|
1003
|
-
bodyMapper: Mappers.CloudError
|
|
1004
|
-
}
|
|
992
|
+
bodyMapper: Mappers.CloudError,
|
|
993
|
+
},
|
|
1005
994
|
},
|
|
1006
995
|
queryParameters: [Parameters.apiVersion],
|
|
1007
996
|
urlParameters: [
|
|
1008
997
|
Parameters.$host,
|
|
1009
998
|
Parameters.resourceGroupName,
|
|
1010
999
|
Parameters.subscriptionId,
|
|
1011
|
-
Parameters.accountName1
|
|
1000
|
+
Parameters.accountName1,
|
|
1012
1001
|
],
|
|
1013
1002
|
headerParameters: [Parameters.accept],
|
|
1014
|
-
serializer
|
|
1003
|
+
serializer,
|
|
1015
1004
|
};
|
|
1016
1005
|
const listDetectorsOperationSpec: coreClient.OperationSpec = {
|
|
1017
|
-
path:
|
|
1018
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors",
|
|
1006
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors",
|
|
1019
1007
|
httpMethod: "GET",
|
|
1020
1008
|
responses: {
|
|
1021
1009
|
200: {
|
|
1022
|
-
bodyMapper: Mappers.DetectorListResult
|
|
1010
|
+
bodyMapper: Mappers.DetectorListResult,
|
|
1023
1011
|
},
|
|
1024
1012
|
default: {
|
|
1025
|
-
bodyMapper: Mappers.CloudError
|
|
1026
|
-
}
|
|
1013
|
+
bodyMapper: Mappers.CloudError,
|
|
1014
|
+
},
|
|
1027
1015
|
},
|
|
1028
1016
|
queryParameters: [Parameters.apiVersion],
|
|
1029
1017
|
urlParameters: [
|
|
1030
1018
|
Parameters.$host,
|
|
1031
1019
|
Parameters.resourceGroupName,
|
|
1032
1020
|
Parameters.subscriptionId,
|
|
1033
|
-
Parameters.accountName1
|
|
1021
|
+
Parameters.accountName1,
|
|
1034
1022
|
],
|
|
1035
1023
|
headerParameters: [Parameters.accept],
|
|
1036
|
-
serializer
|
|
1024
|
+
serializer,
|
|
1037
1025
|
};
|
|
1038
1026
|
const getDetectorOperationSpec: coreClient.OperationSpec = {
|
|
1039
|
-
path:
|
|
1040
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors/{detectorId}",
|
|
1027
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors/{detectorId}",
|
|
1041
1028
|
httpMethod: "GET",
|
|
1042
1029
|
responses: {
|
|
1043
1030
|
200: {
|
|
1044
|
-
bodyMapper: Mappers.DetectorResponse
|
|
1031
|
+
bodyMapper: Mappers.DetectorResponse,
|
|
1045
1032
|
},
|
|
1046
1033
|
default: {
|
|
1047
|
-
bodyMapper: Mappers.CloudError
|
|
1048
|
-
}
|
|
1034
|
+
bodyMapper: Mappers.CloudError,
|
|
1035
|
+
},
|
|
1049
1036
|
},
|
|
1050
1037
|
queryParameters: [Parameters.apiVersion],
|
|
1051
1038
|
urlParameters: [
|
|
@@ -1053,111 +1040,112 @@ const getDetectorOperationSpec: coreClient.OperationSpec = {
|
|
|
1053
1040
|
Parameters.resourceGroupName,
|
|
1054
1041
|
Parameters.subscriptionId,
|
|
1055
1042
|
Parameters.accountName1,
|
|
1056
|
-
Parameters.detectorId
|
|
1043
|
+
Parameters.detectorId,
|
|
1057
1044
|
],
|
|
1058
1045
|
headerParameters: [Parameters.accept],
|
|
1059
|
-
serializer
|
|
1046
|
+
serializer,
|
|
1060
1047
|
};
|
|
1061
|
-
const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec =
|
|
1062
|
-
|
|
1063
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints",
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1048
|
+
const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec =
|
|
1049
|
+
{
|
|
1050
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints",
|
|
1051
|
+
httpMethod: "GET",
|
|
1052
|
+
responses: {
|
|
1053
|
+
200: {
|
|
1054
|
+
bodyMapper: Mappers.OutboundEnvironmentEndpointCollection,
|
|
1055
|
+
},
|
|
1056
|
+
default: {
|
|
1057
|
+
bodyMapper: Mappers.CloudError,
|
|
1058
|
+
},
|
|
1068
1059
|
},
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
Parameters.
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
],
|
|
1080
|
-
headerParameters: [Parameters.accept],
|
|
1081
|
-
serializer
|
|
1082
|
-
};
|
|
1060
|
+
queryParameters: [Parameters.apiVersion],
|
|
1061
|
+
urlParameters: [
|
|
1062
|
+
Parameters.$host,
|
|
1063
|
+
Parameters.resourceGroupName,
|
|
1064
|
+
Parameters.subscriptionId,
|
|
1065
|
+
Parameters.accountName1,
|
|
1066
|
+
],
|
|
1067
|
+
headerParameters: [Parameters.accept],
|
|
1068
|
+
serializer,
|
|
1069
|
+
};
|
|
1083
1070
|
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
1084
1071
|
path: "{nextLink}",
|
|
1085
1072
|
httpMethod: "GET",
|
|
1086
1073
|
responses: {
|
|
1087
1074
|
200: {
|
|
1088
|
-
bodyMapper: Mappers.BatchAccountListResult
|
|
1075
|
+
bodyMapper: Mappers.BatchAccountListResult,
|
|
1089
1076
|
},
|
|
1090
1077
|
default: {
|
|
1091
|
-
bodyMapper: Mappers.CloudError
|
|
1092
|
-
}
|
|
1078
|
+
bodyMapper: Mappers.CloudError,
|
|
1079
|
+
},
|
|
1093
1080
|
},
|
|
1094
1081
|
urlParameters: [
|
|
1095
1082
|
Parameters.$host,
|
|
1096
1083
|
Parameters.subscriptionId,
|
|
1097
|
-
Parameters.nextLink
|
|
1084
|
+
Parameters.nextLink,
|
|
1098
1085
|
],
|
|
1099
1086
|
headerParameters: [Parameters.accept],
|
|
1100
|
-
serializer
|
|
1087
|
+
serializer,
|
|
1101
1088
|
};
|
|
1102
1089
|
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
1103
1090
|
path: "{nextLink}",
|
|
1104
1091
|
httpMethod: "GET",
|
|
1105
1092
|
responses: {
|
|
1106
1093
|
200: {
|
|
1107
|
-
bodyMapper: Mappers.BatchAccountListResult
|
|
1094
|
+
bodyMapper: Mappers.BatchAccountListResult,
|
|
1108
1095
|
},
|
|
1109
1096
|
default: {
|
|
1110
|
-
bodyMapper: Mappers.CloudError
|
|
1111
|
-
}
|
|
1097
|
+
bodyMapper: Mappers.CloudError,
|
|
1098
|
+
},
|
|
1112
1099
|
},
|
|
1113
1100
|
urlParameters: [
|
|
1114
1101
|
Parameters.$host,
|
|
1115
1102
|
Parameters.resourceGroupName,
|
|
1116
1103
|
Parameters.subscriptionId,
|
|
1117
|
-
Parameters.nextLink
|
|
1104
|
+
Parameters.nextLink,
|
|
1118
1105
|
],
|
|
1119
1106
|
headerParameters: [Parameters.accept],
|
|
1120
|
-
serializer
|
|
1107
|
+
serializer,
|
|
1121
1108
|
};
|
|
1122
1109
|
const listDetectorsNextOperationSpec: coreClient.OperationSpec = {
|
|
1123
1110
|
path: "{nextLink}",
|
|
1124
1111
|
httpMethod: "GET",
|
|
1125
1112
|
responses: {
|
|
1126
1113
|
200: {
|
|
1127
|
-
bodyMapper: Mappers.DetectorListResult
|
|
1114
|
+
bodyMapper: Mappers.DetectorListResult,
|
|
1128
1115
|
},
|
|
1129
1116
|
default: {
|
|
1130
|
-
bodyMapper: Mappers.CloudError
|
|
1131
|
-
}
|
|
1132
|
-
},
|
|
1133
|
-
urlParameters: [
|
|
1134
|
-
Parameters.$host,
|
|
1135
|
-
Parameters.resourceGroupName,
|
|
1136
|
-
Parameters.subscriptionId,
|
|
1137
|
-
Parameters.accountName1,
|
|
1138
|
-
Parameters.nextLink
|
|
1139
|
-
],
|
|
1140
|
-
headerParameters: [Parameters.accept],
|
|
1141
|
-
serializer
|
|
1142
|
-
};
|
|
1143
|
-
const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = {
|
|
1144
|
-
path: "{nextLink}",
|
|
1145
|
-
httpMethod: "GET",
|
|
1146
|
-
responses: {
|
|
1147
|
-
200: {
|
|
1148
|
-
bodyMapper: Mappers.OutboundEnvironmentEndpointCollection
|
|
1117
|
+
bodyMapper: Mappers.CloudError,
|
|
1149
1118
|
},
|
|
1150
|
-
default: {
|
|
1151
|
-
bodyMapper: Mappers.CloudError
|
|
1152
|
-
}
|
|
1153
1119
|
},
|
|
1154
1120
|
urlParameters: [
|
|
1155
1121
|
Parameters.$host,
|
|
1156
1122
|
Parameters.resourceGroupName,
|
|
1157
1123
|
Parameters.subscriptionId,
|
|
1158
1124
|
Parameters.accountName1,
|
|
1159
|
-
Parameters.nextLink
|
|
1125
|
+
Parameters.nextLink,
|
|
1160
1126
|
],
|
|
1161
1127
|
headerParameters: [Parameters.accept],
|
|
1162
|
-
serializer
|
|
1128
|
+
serializer,
|
|
1163
1129
|
};
|
|
1130
|
+
const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec =
|
|
1131
|
+
{
|
|
1132
|
+
path: "{nextLink}",
|
|
1133
|
+
httpMethod: "GET",
|
|
1134
|
+
responses: {
|
|
1135
|
+
200: {
|
|
1136
|
+
bodyMapper: Mappers.OutboundEnvironmentEndpointCollection,
|
|
1137
|
+
},
|
|
1138
|
+
default: {
|
|
1139
|
+
bodyMapper: Mappers.CloudError,
|
|
1140
|
+
},
|
|
1141
|
+
},
|
|
1142
|
+
urlParameters: [
|
|
1143
|
+
Parameters.$host,
|
|
1144
|
+
Parameters.resourceGroupName,
|
|
1145
|
+
Parameters.subscriptionId,
|
|
1146
|
+
Parameters.accountName1,
|
|
1147
|
+
Parameters.nextLink,
|
|
1148
|
+
],
|
|
1149
|
+
headerParameters: [Parameters.accept],
|
|
1150
|
+
serializer,
|
|
1151
|
+
};
|