@azure/arm-batch 7.1.2-alpha.20220427.2 → 7.2.1-alpha.20220721.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 +30 -1
- package/dist/index.js +400 -106
- 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 +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 +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 +1 -1
- package/dist-esm/samples-dev/batchAccountCreateSample.js +5 -5
- 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 +1 -1
- package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountUpdateSample.js +1 -1
- package/dist-esm/samples-dev/certificateCancelDeletionSample.js +1 -1
- package/dist-esm/samples-dev/certificateCreateSample.js +3 -3
- 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 +2 -2
- package/dist-esm/samples-dev/certificateUpdateSample.js +1 -1
- package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js +2 -2
- 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 +9 -9
- 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 +2 -2
- package/dist-esm/samples-dev/poolListByBatchAccountSample.js +2 -2
- package/dist-esm/samples-dev/poolStopResizeSample.js +1 -1
- package/dist-esm/samples-dev/poolUpdateSample.js +4 -4
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +32 -0
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js.map +1 -0
- 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 +1 -1
- package/dist-esm/samples-dev/privateLinkResourceGetSample.js +2 -2
- package/dist-esm/samples-dev/privateLinkResourceGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js +1 -1
- package/dist-esm/src/batchManagementClient.d.ts +2 -0
- package/dist-esm/src/batchManagementClient.d.ts.map +1 -1
- package/dist-esm/src/batchManagementClient.js +48 -2
- package/dist-esm/src/batchManagementClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +92 -35
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +4 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +146 -2
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +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 +100 -92
- package/dist-esm/src/operations/batchAccountOperations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +19 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js +92 -0
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +1 -1
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts +19 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts.map +1 -1
- package/dist-esm/test/batch_examples.d.ts.map +1 -1
- package/dist-esm/test/batch_examples.js +20 -22
- package/dist-esm/test/batch_examples.js.map +1 -1
- package/package.json +10 -7
- package/review/arm-batch.api.md +113 -69
- package/src/batchManagementClient.ts +60 -2
- package/src/models/index.ts +104 -36
- package/src/models/mappers.ts +153 -2
- package/src/models/parameters.ts +1 -1
- package/src/operations/batchAccountOperations.ts +184 -122
- package/src/operations/privateEndpointConnectionOperations.ts +134 -0
- package/src/operationsInterfaces/batchAccountOperations.ts +9 -4
- package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +36 -1
- package/types/arm-batch.d.ts +120 -36
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
BatchAccountListNextResponse,
|
|
51
51
|
BatchAccountListByResourceGroupNextResponse,
|
|
52
52
|
BatchAccountListDetectorsNextResponse,
|
|
53
|
-
BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse
|
|
53
|
+
BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse
|
|
54
54
|
} from "../models";
|
|
55
55
|
|
|
56
56
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -70,7 +70,9 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
70
70
|
* Gets information about the Batch accounts associated with the subscription.
|
|
71
71
|
* @param options The options parameters.
|
|
72
72
|
*/
|
|
73
|
-
public list(
|
|
73
|
+
public list(
|
|
74
|
+
options?: BatchAccountListOptionalParams
|
|
75
|
+
): PagedAsyncIterableIterator<BatchAccount> {
|
|
74
76
|
const iter = this.listPagingAll(options);
|
|
75
77
|
return {
|
|
76
78
|
next() {
|
|
@@ -81,7 +83,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
81
83
|
},
|
|
82
84
|
byPage: () => {
|
|
83
85
|
return this.listPagingPage(options);
|
|
84
|
-
}
|
|
86
|
+
}
|
|
85
87
|
};
|
|
86
88
|
}
|
|
87
89
|
|
|
@@ -125,7 +127,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
125
127
|
},
|
|
126
128
|
byPage: () => {
|
|
127
129
|
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
128
|
-
}
|
|
130
|
+
}
|
|
129
131
|
};
|
|
130
132
|
}
|
|
131
133
|
|
|
@@ -137,7 +139,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
137
139
|
yield result.value || [];
|
|
138
140
|
let continuationToken = result.nextLink;
|
|
139
141
|
while (continuationToken) {
|
|
140
|
-
result = await this._listByResourceGroupNext(
|
|
142
|
+
result = await this._listByResourceGroupNext(
|
|
143
|
+
resourceGroupName,
|
|
144
|
+
continuationToken,
|
|
145
|
+
options
|
|
146
|
+
);
|
|
141
147
|
continuationToken = result.nextLink;
|
|
142
148
|
yield result.value || [];
|
|
143
149
|
}
|
|
@@ -147,7 +153,10 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
147
153
|
resourceGroupName: string,
|
|
148
154
|
options?: BatchAccountListByResourceGroupOptionalParams
|
|
149
155
|
): AsyncIterableIterator<BatchAccount> {
|
|
150
|
-
for await (const page of this.listByResourceGroupPagingPage(
|
|
156
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
157
|
+
resourceGroupName,
|
|
158
|
+
options
|
|
159
|
+
)) {
|
|
151
160
|
yield* page;
|
|
152
161
|
}
|
|
153
162
|
}
|
|
@@ -163,7 +172,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
163
172
|
accountName: string,
|
|
164
173
|
options?: BatchAccountListDetectorsOptionalParams
|
|
165
174
|
): PagedAsyncIterableIterator<DetectorResponse> {
|
|
166
|
-
const iter = this.listDetectorsPagingAll(
|
|
175
|
+
const iter = this.listDetectorsPagingAll(
|
|
176
|
+
resourceGroupName,
|
|
177
|
+
accountName,
|
|
178
|
+
options
|
|
179
|
+
);
|
|
167
180
|
return {
|
|
168
181
|
next() {
|
|
169
182
|
return iter.next();
|
|
@@ -172,8 +185,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
172
185
|
return this;
|
|
173
186
|
},
|
|
174
187
|
byPage: () => {
|
|
175
|
-
return this.listDetectorsPagingPage(
|
|
176
|
-
|
|
188
|
+
return this.listDetectorsPagingPage(
|
|
189
|
+
resourceGroupName,
|
|
190
|
+
accountName,
|
|
191
|
+
options
|
|
192
|
+
);
|
|
193
|
+
}
|
|
177
194
|
};
|
|
178
195
|
}
|
|
179
196
|
|
|
@@ -182,7 +199,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
182
199
|
accountName: string,
|
|
183
200
|
options?: BatchAccountListDetectorsOptionalParams
|
|
184
201
|
): AsyncIterableIterator<DetectorResponse[]> {
|
|
185
|
-
let result = await this._listDetectors(
|
|
202
|
+
let result = await this._listDetectors(
|
|
203
|
+
resourceGroupName,
|
|
204
|
+
accountName,
|
|
205
|
+
options
|
|
206
|
+
);
|
|
186
207
|
yield result.value || [];
|
|
187
208
|
let continuationToken = result.nextLink;
|
|
188
209
|
while (continuationToken) {
|
|
@@ -217,7 +238,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
217
238
|
* you must make sure your network allows outbound access to these endpoints. Failure to allow access
|
|
218
239
|
* to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
|
|
219
240
|
* about creating a pool inside of a virtual network, see
|
|
220
|
-
* https://docs.microsoft.com/azure/batch/batch-virtual-network
|
|
241
|
+
* https://docs.microsoft.com/azure/batch/batch-virtual-network
|
|
221
242
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
222
243
|
* @param accountName The name of the Batch account.
|
|
223
244
|
* @param options The options parameters.
|
|
@@ -245,7 +266,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
245
266
|
accountName,
|
|
246
267
|
options
|
|
247
268
|
);
|
|
248
|
-
}
|
|
269
|
+
}
|
|
249
270
|
};
|
|
250
271
|
}
|
|
251
272
|
|
|
@@ -304,7 +325,10 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
304
325
|
parameters: BatchAccountCreateParameters,
|
|
305
326
|
options?: BatchAccountCreateOptionalParams
|
|
306
327
|
): Promise<
|
|
307
|
-
PollerLike<
|
|
328
|
+
PollerLike<
|
|
329
|
+
PollOperationState<BatchAccountCreateResponse>,
|
|
330
|
+
BatchAccountCreateResponse
|
|
331
|
+
>
|
|
308
332
|
> {
|
|
309
333
|
const directSendOperation = async (
|
|
310
334
|
args: coreClient.OperationArguments,
|
|
@@ -316,7 +340,9 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
316
340
|
args: coreClient.OperationArguments,
|
|
317
341
|
spec: coreClient.OperationSpec
|
|
318
342
|
) => {
|
|
319
|
-
let currentRawResponse:
|
|
343
|
+
let currentRawResponse:
|
|
344
|
+
| coreClient.FullOperationResponse
|
|
345
|
+
| undefined = undefined;
|
|
320
346
|
const providedCallback = args.options?.onResponse;
|
|
321
347
|
const callback: coreClient.RawResponseCallback = (
|
|
322
348
|
rawResponse: coreClient.FullOperationResponse,
|
|
@@ -329,8 +355,8 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
329
355
|
...args,
|
|
330
356
|
options: {
|
|
331
357
|
...args.options,
|
|
332
|
-
onResponse: callback
|
|
333
|
-
}
|
|
358
|
+
onResponse: callback
|
|
359
|
+
}
|
|
334
360
|
};
|
|
335
361
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
336
362
|
return {
|
|
@@ -338,8 +364,8 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
338
364
|
rawResponse: {
|
|
339
365
|
statusCode: currentRawResponse!.status,
|
|
340
366
|
body: currentRawResponse!.parsedBody,
|
|
341
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
342
|
-
}
|
|
367
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
368
|
+
}
|
|
343
369
|
};
|
|
344
370
|
};
|
|
345
371
|
|
|
@@ -351,7 +377,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
351
377
|
const poller = new LroEngine(lro, {
|
|
352
378
|
resumeFrom: options?.resumeFrom,
|
|
353
379
|
intervalInMs: options?.updateIntervalInMs,
|
|
354
|
-
lroResourceLocationConfig: "location"
|
|
380
|
+
lroResourceLocationConfig: "location"
|
|
355
381
|
});
|
|
356
382
|
await poller.poll();
|
|
357
383
|
return poller;
|
|
@@ -374,7 +400,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
374
400
|
parameters: BatchAccountCreateParameters,
|
|
375
401
|
options?: BatchAccountCreateOptionalParams
|
|
376
402
|
): Promise<BatchAccountCreateResponse> {
|
|
377
|
-
const poller = await this.beginCreate(
|
|
403
|
+
const poller = await this.beginCreate(
|
|
404
|
+
resourceGroupName,
|
|
405
|
+
accountName,
|
|
406
|
+
parameters,
|
|
407
|
+
options
|
|
408
|
+
);
|
|
378
409
|
return poller.pollUntilDone();
|
|
379
410
|
}
|
|
380
411
|
|
|
@@ -418,7 +449,9 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
418
449
|
args: coreClient.OperationArguments,
|
|
419
450
|
spec: coreClient.OperationSpec
|
|
420
451
|
) => {
|
|
421
|
-
let currentRawResponse:
|
|
452
|
+
let currentRawResponse:
|
|
453
|
+
| coreClient.FullOperationResponse
|
|
454
|
+
| undefined = undefined;
|
|
422
455
|
const providedCallback = args.options?.onResponse;
|
|
423
456
|
const callback: coreClient.RawResponseCallback = (
|
|
424
457
|
rawResponse: coreClient.FullOperationResponse,
|
|
@@ -431,8 +464,8 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
431
464
|
...args,
|
|
432
465
|
options: {
|
|
433
466
|
...args.options,
|
|
434
|
-
onResponse: callback
|
|
435
|
-
}
|
|
467
|
+
onResponse: callback
|
|
468
|
+
}
|
|
436
469
|
};
|
|
437
470
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
438
471
|
return {
|
|
@@ -440,8 +473,8 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
440
473
|
rawResponse: {
|
|
441
474
|
statusCode: currentRawResponse!.status,
|
|
442
475
|
body: currentRawResponse!.parsedBody,
|
|
443
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
444
|
-
}
|
|
476
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
477
|
+
}
|
|
445
478
|
};
|
|
446
479
|
};
|
|
447
480
|
|
|
@@ -453,7 +486,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
453
486
|
const poller = new LroEngine(lro, {
|
|
454
487
|
resumeFrom: options?.resumeFrom,
|
|
455
488
|
intervalInMs: options?.updateIntervalInMs,
|
|
456
|
-
lroResourceLocationConfig: "location"
|
|
489
|
+
lroResourceLocationConfig: "location"
|
|
457
490
|
});
|
|
458
491
|
await poller.poll();
|
|
459
492
|
return poller;
|
|
@@ -470,7 +503,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
470
503
|
accountName: string,
|
|
471
504
|
options?: BatchAccountDeleteOptionalParams
|
|
472
505
|
): Promise<void> {
|
|
473
|
-
const poller = await this.beginDelete(
|
|
506
|
+
const poller = await this.beginDelete(
|
|
507
|
+
resourceGroupName,
|
|
508
|
+
accountName,
|
|
509
|
+
options
|
|
510
|
+
);
|
|
474
511
|
return poller.pollUntilDone();
|
|
475
512
|
}
|
|
476
513
|
|
|
@@ -495,7 +532,9 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
495
532
|
* Gets information about the Batch accounts associated with the subscription.
|
|
496
533
|
* @param options The options parameters.
|
|
497
534
|
*/
|
|
498
|
-
private _list(
|
|
535
|
+
private _list(
|
|
536
|
+
options?: BatchAccountListOptionalParams
|
|
537
|
+
): Promise<BatchAccountListResponse> {
|
|
499
538
|
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
500
539
|
}
|
|
501
540
|
|
|
@@ -616,7 +655,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
616
655
|
* you must make sure your network allows outbound access to these endpoints. Failure to allow access
|
|
617
656
|
* to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
|
|
618
657
|
* about creating a pool inside of a virtual network, see
|
|
619
|
-
* https://docs.microsoft.com/azure/batch/batch-virtual-network
|
|
658
|
+
* https://docs.microsoft.com/azure/batch/batch-virtual-network
|
|
620
659
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
621
660
|
* @param accountName The name of the Batch account.
|
|
622
661
|
* @param options The options parameters.
|
|
@@ -641,7 +680,10 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
641
680
|
nextLink: string,
|
|
642
681
|
options?: BatchAccountListNextOptionalParams
|
|
643
682
|
): Promise<BatchAccountListNextResponse> {
|
|
644
|
-
return this.client.sendOperationRequest(
|
|
683
|
+
return this.client.sendOperationRequest(
|
|
684
|
+
{ nextLink, options },
|
|
685
|
+
listNextOperationSpec
|
|
686
|
+
);
|
|
645
687
|
}
|
|
646
688
|
|
|
647
689
|
/**
|
|
@@ -704,24 +746,25 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
704
746
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
705
747
|
|
|
706
748
|
const createOperationSpec: coreClient.OperationSpec = {
|
|
707
|
-
path:
|
|
749
|
+
path:
|
|
750
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
708
751
|
httpMethod: "PUT",
|
|
709
752
|
responses: {
|
|
710
753
|
200: {
|
|
711
|
-
bodyMapper: Mappers.BatchAccount
|
|
754
|
+
bodyMapper: Mappers.BatchAccount
|
|
712
755
|
},
|
|
713
756
|
201: {
|
|
714
|
-
bodyMapper: Mappers.BatchAccount
|
|
757
|
+
bodyMapper: Mappers.BatchAccount
|
|
715
758
|
},
|
|
716
759
|
202: {
|
|
717
|
-
bodyMapper: Mappers.BatchAccount
|
|
760
|
+
bodyMapper: Mappers.BatchAccount
|
|
718
761
|
},
|
|
719
762
|
204: {
|
|
720
|
-
bodyMapper: Mappers.BatchAccount
|
|
763
|
+
bodyMapper: Mappers.BatchAccount
|
|
721
764
|
},
|
|
722
765
|
default: {
|
|
723
|
-
bodyMapper: Mappers.CloudError
|
|
724
|
-
}
|
|
766
|
+
bodyMapper: Mappers.CloudError
|
|
767
|
+
}
|
|
725
768
|
},
|
|
726
769
|
requestBody: Parameters.parameters,
|
|
727
770
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -729,22 +772,23 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
|
729
772
|
Parameters.$host,
|
|
730
773
|
Parameters.resourceGroupName,
|
|
731
774
|
Parameters.accountName,
|
|
732
|
-
Parameters.subscriptionId
|
|
775
|
+
Parameters.subscriptionId
|
|
733
776
|
],
|
|
734
777
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
735
778
|
mediaType: "json",
|
|
736
|
-
serializer
|
|
779
|
+
serializer
|
|
737
780
|
};
|
|
738
781
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
739
|
-
path:
|
|
782
|
+
path:
|
|
783
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
740
784
|
httpMethod: "PATCH",
|
|
741
785
|
responses: {
|
|
742
786
|
200: {
|
|
743
|
-
bodyMapper: Mappers.BatchAccount
|
|
787
|
+
bodyMapper: Mappers.BatchAccount
|
|
744
788
|
},
|
|
745
789
|
default: {
|
|
746
|
-
bodyMapper: Mappers.CloudError
|
|
747
|
-
}
|
|
790
|
+
bodyMapper: Mappers.CloudError
|
|
791
|
+
}
|
|
748
792
|
},
|
|
749
793
|
requestBody: Parameters.parameters1,
|
|
750
794
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -752,14 +796,15 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
752
796
|
Parameters.$host,
|
|
753
797
|
Parameters.resourceGroupName,
|
|
754
798
|
Parameters.subscriptionId,
|
|
755
|
-
Parameters.accountName1
|
|
799
|
+
Parameters.accountName1
|
|
756
800
|
],
|
|
757
801
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
758
802
|
mediaType: "json",
|
|
759
|
-
serializer
|
|
803
|
+
serializer
|
|
760
804
|
};
|
|
761
805
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
762
|
-
path:
|
|
806
|
+
path:
|
|
807
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
763
808
|
httpMethod: "DELETE",
|
|
764
809
|
responses: {
|
|
765
810
|
200: {},
|
|
@@ -767,101 +812,110 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
767
812
|
202: {},
|
|
768
813
|
204: {},
|
|
769
814
|
default: {
|
|
770
|
-
bodyMapper: Mappers.CloudError
|
|
771
|
-
}
|
|
815
|
+
bodyMapper: Mappers.CloudError
|
|
816
|
+
}
|
|
772
817
|
},
|
|
773
818
|
queryParameters: [Parameters.apiVersion],
|
|
774
819
|
urlParameters: [
|
|
775
820
|
Parameters.$host,
|
|
776
821
|
Parameters.resourceGroupName,
|
|
777
822
|
Parameters.subscriptionId,
|
|
778
|
-
Parameters.accountName1
|
|
823
|
+
Parameters.accountName1
|
|
779
824
|
],
|
|
780
825
|
headerParameters: [Parameters.accept],
|
|
781
|
-
serializer
|
|
826
|
+
serializer
|
|
782
827
|
};
|
|
783
828
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
784
|
-
path:
|
|
829
|
+
path:
|
|
830
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
785
831
|
httpMethod: "GET",
|
|
786
832
|
responses: {
|
|
787
833
|
200: {
|
|
788
|
-
bodyMapper: Mappers.BatchAccount
|
|
834
|
+
bodyMapper: Mappers.BatchAccount
|
|
789
835
|
},
|
|
790
836
|
default: {
|
|
791
|
-
bodyMapper: Mappers.CloudError
|
|
792
|
-
}
|
|
837
|
+
bodyMapper: Mappers.CloudError
|
|
838
|
+
}
|
|
793
839
|
},
|
|
794
840
|
queryParameters: [Parameters.apiVersion],
|
|
795
841
|
urlParameters: [
|
|
796
842
|
Parameters.$host,
|
|
797
843
|
Parameters.resourceGroupName,
|
|
798
844
|
Parameters.subscriptionId,
|
|
799
|
-
Parameters.accountName1
|
|
845
|
+
Parameters.accountName1
|
|
800
846
|
],
|
|
801
847
|
headerParameters: [Parameters.accept],
|
|
802
|
-
serializer
|
|
848
|
+
serializer
|
|
803
849
|
};
|
|
804
850
|
const listOperationSpec: coreClient.OperationSpec = {
|
|
805
|
-
path:
|
|
851
|
+
path:
|
|
852
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts",
|
|
806
853
|
httpMethod: "GET",
|
|
807
854
|
responses: {
|
|
808
855
|
200: {
|
|
809
|
-
bodyMapper: Mappers.BatchAccountListResult
|
|
856
|
+
bodyMapper: Mappers.BatchAccountListResult
|
|
810
857
|
},
|
|
811
858
|
default: {
|
|
812
|
-
bodyMapper: Mappers.CloudError
|
|
813
|
-
}
|
|
859
|
+
bodyMapper: Mappers.CloudError
|
|
860
|
+
}
|
|
814
861
|
},
|
|
815
862
|
queryParameters: [Parameters.apiVersion],
|
|
816
863
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
817
864
|
headerParameters: [Parameters.accept],
|
|
818
|
-
serializer
|
|
865
|
+
serializer
|
|
819
866
|
};
|
|
820
867
|
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
821
|
-
path:
|
|
868
|
+
path:
|
|
869
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts",
|
|
822
870
|
httpMethod: "GET",
|
|
823
871
|
responses: {
|
|
824
872
|
200: {
|
|
825
|
-
bodyMapper: Mappers.BatchAccountListResult
|
|
873
|
+
bodyMapper: Mappers.BatchAccountListResult
|
|
826
874
|
},
|
|
827
875
|
default: {
|
|
828
|
-
bodyMapper: Mappers.CloudError
|
|
829
|
-
}
|
|
876
|
+
bodyMapper: Mappers.CloudError
|
|
877
|
+
}
|
|
830
878
|
},
|
|
831
879
|
queryParameters: [Parameters.apiVersion],
|
|
832
|
-
urlParameters: [
|
|
880
|
+
urlParameters: [
|
|
881
|
+
Parameters.$host,
|
|
882
|
+
Parameters.resourceGroupName,
|
|
883
|
+
Parameters.subscriptionId
|
|
884
|
+
],
|
|
833
885
|
headerParameters: [Parameters.accept],
|
|
834
|
-
serializer
|
|
886
|
+
serializer
|
|
835
887
|
};
|
|
836
888
|
const synchronizeAutoStorageKeysOperationSpec: coreClient.OperationSpec = {
|
|
837
|
-
path:
|
|
889
|
+
path:
|
|
890
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys",
|
|
838
891
|
httpMethod: "POST",
|
|
839
892
|
responses: {
|
|
840
893
|
204: {},
|
|
841
894
|
default: {
|
|
842
|
-
bodyMapper: Mappers.CloudError
|
|
843
|
-
}
|
|
895
|
+
bodyMapper: Mappers.CloudError
|
|
896
|
+
}
|
|
844
897
|
},
|
|
845
898
|
queryParameters: [Parameters.apiVersion],
|
|
846
899
|
urlParameters: [
|
|
847
900
|
Parameters.$host,
|
|
848
901
|
Parameters.resourceGroupName,
|
|
849
902
|
Parameters.subscriptionId,
|
|
850
|
-
Parameters.accountName1
|
|
903
|
+
Parameters.accountName1
|
|
851
904
|
],
|
|
852
905
|
headerParameters: [Parameters.accept],
|
|
853
|
-
serializer
|
|
906
|
+
serializer
|
|
854
907
|
};
|
|
855
908
|
const regenerateKeyOperationSpec: coreClient.OperationSpec = {
|
|
856
|
-
path:
|
|
909
|
+
path:
|
|
910
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys",
|
|
857
911
|
httpMethod: "POST",
|
|
858
912
|
responses: {
|
|
859
913
|
200: {
|
|
860
|
-
bodyMapper: Mappers.BatchAccountKeys
|
|
914
|
+
bodyMapper: Mappers.BatchAccountKeys
|
|
861
915
|
},
|
|
862
916
|
default: {
|
|
863
|
-
bodyMapper: Mappers.CloudError
|
|
864
|
-
}
|
|
917
|
+
bodyMapper: Mappers.CloudError
|
|
918
|
+
}
|
|
865
919
|
},
|
|
866
920
|
requestBody: Parameters.parameters2,
|
|
867
921
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -869,64 +923,67 @@ const regenerateKeyOperationSpec: coreClient.OperationSpec = {
|
|
|
869
923
|
Parameters.$host,
|
|
870
924
|
Parameters.resourceGroupName,
|
|
871
925
|
Parameters.subscriptionId,
|
|
872
|
-
Parameters.accountName1
|
|
926
|
+
Parameters.accountName1
|
|
873
927
|
],
|
|
874
928
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
875
929
|
mediaType: "json",
|
|
876
|
-
serializer
|
|
930
|
+
serializer
|
|
877
931
|
};
|
|
878
932
|
const getKeysOperationSpec: coreClient.OperationSpec = {
|
|
879
|
-
path:
|
|
933
|
+
path:
|
|
934
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys",
|
|
880
935
|
httpMethod: "POST",
|
|
881
936
|
responses: {
|
|
882
937
|
200: {
|
|
883
|
-
bodyMapper: Mappers.BatchAccountKeys
|
|
938
|
+
bodyMapper: Mappers.BatchAccountKeys
|
|
884
939
|
},
|
|
885
940
|
default: {
|
|
886
|
-
bodyMapper: Mappers.CloudError
|
|
887
|
-
}
|
|
941
|
+
bodyMapper: Mappers.CloudError
|
|
942
|
+
}
|
|
888
943
|
},
|
|
889
944
|
queryParameters: [Parameters.apiVersion],
|
|
890
945
|
urlParameters: [
|
|
891
946
|
Parameters.$host,
|
|
892
947
|
Parameters.resourceGroupName,
|
|
893
948
|
Parameters.subscriptionId,
|
|
894
|
-
Parameters.accountName1
|
|
949
|
+
Parameters.accountName1
|
|
895
950
|
],
|
|
896
951
|
headerParameters: [Parameters.accept],
|
|
897
|
-
serializer
|
|
952
|
+
serializer
|
|
898
953
|
};
|
|
899
954
|
const listDetectorsOperationSpec: coreClient.OperationSpec = {
|
|
900
|
-
path:
|
|
955
|
+
path:
|
|
956
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors",
|
|
901
957
|
httpMethod: "GET",
|
|
902
958
|
responses: {
|
|
903
959
|
200: {
|
|
904
|
-
bodyMapper: Mappers.DetectorListResult
|
|
960
|
+
bodyMapper: Mappers.DetectorListResult
|
|
905
961
|
},
|
|
906
962
|
default: {
|
|
907
|
-
bodyMapper: Mappers.CloudError
|
|
908
|
-
}
|
|
963
|
+
bodyMapper: Mappers.CloudError
|
|
964
|
+
}
|
|
909
965
|
},
|
|
910
966
|
queryParameters: [Parameters.apiVersion],
|
|
911
967
|
urlParameters: [
|
|
912
968
|
Parameters.$host,
|
|
913
969
|
Parameters.resourceGroupName,
|
|
914
970
|
Parameters.subscriptionId,
|
|
915
|
-
Parameters.accountName1
|
|
971
|
+
Parameters.accountName1
|
|
916
972
|
],
|
|
917
973
|
headerParameters: [Parameters.accept],
|
|
918
|
-
serializer
|
|
974
|
+
serializer
|
|
919
975
|
};
|
|
920
976
|
const getDetectorOperationSpec: coreClient.OperationSpec = {
|
|
921
|
-
path:
|
|
977
|
+
path:
|
|
978
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors/{detectorId}",
|
|
922
979
|
httpMethod: "GET",
|
|
923
980
|
responses: {
|
|
924
981
|
200: {
|
|
925
|
-
bodyMapper: Mappers.DetectorResponse
|
|
982
|
+
bodyMapper: Mappers.DetectorResponse
|
|
926
983
|
},
|
|
927
984
|
default: {
|
|
928
|
-
bodyMapper: Mappers.CloudError
|
|
929
|
-
}
|
|
985
|
+
bodyMapper: Mappers.CloudError
|
|
986
|
+
}
|
|
930
987
|
},
|
|
931
988
|
queryParameters: [Parameters.apiVersion],
|
|
932
989
|
urlParameters: [
|
|
@@ -934,79 +991,84 @@ const getDetectorOperationSpec: coreClient.OperationSpec = {
|
|
|
934
991
|
Parameters.resourceGroupName,
|
|
935
992
|
Parameters.subscriptionId,
|
|
936
993
|
Parameters.accountName1,
|
|
937
|
-
Parameters.detectorId
|
|
994
|
+
Parameters.detectorId
|
|
938
995
|
],
|
|
939
996
|
headerParameters: [Parameters.accept],
|
|
940
|
-
serializer
|
|
997
|
+
serializer
|
|
941
998
|
};
|
|
942
999
|
const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = {
|
|
943
|
-
path:
|
|
1000
|
+
path:
|
|
1001
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints",
|
|
944
1002
|
httpMethod: "GET",
|
|
945
1003
|
responses: {
|
|
946
1004
|
200: {
|
|
947
|
-
bodyMapper: Mappers.OutboundEnvironmentEndpointCollection
|
|
1005
|
+
bodyMapper: Mappers.OutboundEnvironmentEndpointCollection
|
|
948
1006
|
},
|
|
949
1007
|
default: {
|
|
950
|
-
bodyMapper: Mappers.CloudError
|
|
951
|
-
}
|
|
1008
|
+
bodyMapper: Mappers.CloudError
|
|
1009
|
+
}
|
|
952
1010
|
},
|
|
953
1011
|
queryParameters: [Parameters.apiVersion],
|
|
954
1012
|
urlParameters: [
|
|
955
1013
|
Parameters.$host,
|
|
956
1014
|
Parameters.resourceGroupName,
|
|
957
1015
|
Parameters.subscriptionId,
|
|
958
|
-
Parameters.accountName1
|
|
1016
|
+
Parameters.accountName1
|
|
959
1017
|
],
|
|
960
1018
|
headerParameters: [Parameters.accept],
|
|
961
|
-
serializer
|
|
1019
|
+
serializer
|
|
962
1020
|
};
|
|
963
1021
|
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
964
1022
|
path: "{nextLink}",
|
|
965
1023
|
httpMethod: "GET",
|
|
966
1024
|
responses: {
|
|
967
1025
|
200: {
|
|
968
|
-
bodyMapper: Mappers.BatchAccountListResult
|
|
1026
|
+
bodyMapper: Mappers.BatchAccountListResult
|
|
969
1027
|
},
|
|
970
1028
|
default: {
|
|
971
|
-
bodyMapper: Mappers.CloudError
|
|
972
|
-
}
|
|
1029
|
+
bodyMapper: Mappers.CloudError
|
|
1030
|
+
}
|
|
973
1031
|
},
|
|
974
1032
|
queryParameters: [Parameters.apiVersion],
|
|
975
|
-
urlParameters: [
|
|
1033
|
+
urlParameters: [
|
|
1034
|
+
Parameters.$host,
|
|
1035
|
+
Parameters.subscriptionId,
|
|
1036
|
+
Parameters.nextLink
|
|
1037
|
+
],
|
|
976
1038
|
headerParameters: [Parameters.accept],
|
|
977
|
-
serializer
|
|
1039
|
+
serializer
|
|
978
1040
|
};
|
|
979
1041
|
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
980
1042
|
path: "{nextLink}",
|
|
981
1043
|
httpMethod: "GET",
|
|
982
1044
|
responses: {
|
|
983
1045
|
200: {
|
|
984
|
-
bodyMapper: Mappers.BatchAccountListResult
|
|
1046
|
+
bodyMapper: Mappers.BatchAccountListResult
|
|
985
1047
|
},
|
|
986
1048
|
default: {
|
|
987
|
-
bodyMapper: Mappers.CloudError
|
|
988
|
-
}
|
|
1049
|
+
bodyMapper: Mappers.CloudError
|
|
1050
|
+
}
|
|
989
1051
|
},
|
|
990
1052
|
queryParameters: [Parameters.apiVersion],
|
|
991
1053
|
urlParameters: [
|
|
992
1054
|
Parameters.$host,
|
|
993
1055
|
Parameters.resourceGroupName,
|
|
994
1056
|
Parameters.subscriptionId,
|
|
995
|
-
Parameters.nextLink
|
|
1057
|
+
Parameters.nextLink
|
|
996
1058
|
],
|
|
997
1059
|
headerParameters: [Parameters.accept],
|
|
998
|
-
serializer
|
|
1060
|
+
serializer
|
|
999
1061
|
};
|
|
1000
1062
|
const listDetectorsNextOperationSpec: coreClient.OperationSpec = {
|
|
1001
1063
|
path: "{nextLink}",
|
|
1002
1064
|
httpMethod: "GET",
|
|
1003
1065
|
responses: {
|
|
1004
1066
|
200: {
|
|
1005
|
-
bodyMapper: Mappers.DetectorListResult
|
|
1067
|
+
bodyMapper: Mappers.DetectorListResult
|
|
1006
1068
|
},
|
|
1007
1069
|
default: {
|
|
1008
|
-
bodyMapper: Mappers.CloudError
|
|
1009
|
-
}
|
|
1070
|
+
bodyMapper: Mappers.CloudError
|
|
1071
|
+
}
|
|
1010
1072
|
},
|
|
1011
1073
|
queryParameters: [Parameters.apiVersion],
|
|
1012
1074
|
urlParameters: [
|
|
@@ -1014,21 +1076,21 @@ const listDetectorsNextOperationSpec: coreClient.OperationSpec = {
|
|
|
1014
1076
|
Parameters.resourceGroupName,
|
|
1015
1077
|
Parameters.subscriptionId,
|
|
1016
1078
|
Parameters.accountName1,
|
|
1017
|
-
Parameters.nextLink
|
|
1079
|
+
Parameters.nextLink
|
|
1018
1080
|
],
|
|
1019
1081
|
headerParameters: [Parameters.accept],
|
|
1020
|
-
serializer
|
|
1082
|
+
serializer
|
|
1021
1083
|
};
|
|
1022
1084
|
const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = {
|
|
1023
1085
|
path: "{nextLink}",
|
|
1024
1086
|
httpMethod: "GET",
|
|
1025
1087
|
responses: {
|
|
1026
1088
|
200: {
|
|
1027
|
-
bodyMapper: Mappers.OutboundEnvironmentEndpointCollection
|
|
1089
|
+
bodyMapper: Mappers.OutboundEnvironmentEndpointCollection
|
|
1028
1090
|
},
|
|
1029
1091
|
default: {
|
|
1030
|
-
bodyMapper: Mappers.CloudError
|
|
1031
|
-
}
|
|
1092
|
+
bodyMapper: Mappers.CloudError
|
|
1093
|
+
}
|
|
1032
1094
|
},
|
|
1033
1095
|
queryParameters: [Parameters.apiVersion],
|
|
1034
1096
|
urlParameters: [
|
|
@@ -1036,8 +1098,8 @@ const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.Oper
|
|
|
1036
1098
|
Parameters.resourceGroupName,
|
|
1037
1099
|
Parameters.subscriptionId,
|
|
1038
1100
|
Parameters.accountName1,
|
|
1039
|
-
Parameters.nextLink
|
|
1101
|
+
Parameters.nextLink
|
|
1040
1102
|
],
|
|
1041
1103
|
headerParameters: [Parameters.accept],
|
|
1042
|
-
serializer
|
|
1104
|
+
serializer
|
|
1043
1105
|
};
|