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