@azure/arm-batch 7.1.2-alpha.20220415.1 → 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/dist/index.js +92 -100
- package/dist/index.js.map +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.js +2 -2
- 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 +92 -100
- package/dist-esm/src/operations/batchAccountOperations.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/operations/batchAccountOperations.ts +122 -184
- 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
|
|
|
@@ -377,7 +351,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
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
|
});
|
|
382
356
|
await poller.poll();
|
|
383
357
|
return poller;
|
|
@@ -400,12 +374,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
400
374
|
parameters: BatchAccountCreateParameters,
|
|
401
375
|
options?: BatchAccountCreateOptionalParams
|
|
402
376
|
): Promise<BatchAccountCreateResponse> {
|
|
403
|
-
const poller = await this.beginCreate(
|
|
404
|
-
resourceGroupName,
|
|
405
|
-
accountName,
|
|
406
|
-
parameters,
|
|
407
|
-
options
|
|
408
|
-
);
|
|
377
|
+
const poller = await this.beginCreate(resourceGroupName, accountName, parameters, options);
|
|
409
378
|
return poller.pollUntilDone();
|
|
410
379
|
}
|
|
411
380
|
|
|
@@ -449,9 +418,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
449
418
|
args: coreClient.OperationArguments,
|
|
450
419
|
spec: coreClient.OperationSpec
|
|
451
420
|
) => {
|
|
452
|
-
let currentRawResponse:
|
|
453
|
-
| coreClient.FullOperationResponse
|
|
454
|
-
| undefined = undefined;
|
|
421
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;
|
|
455
422
|
const providedCallback = args.options?.onResponse;
|
|
456
423
|
const callback: coreClient.RawResponseCallback = (
|
|
457
424
|
rawResponse: coreClient.FullOperationResponse,
|
|
@@ -464,8 +431,8 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
464
431
|
...args,
|
|
465
432
|
options: {
|
|
466
433
|
...args.options,
|
|
467
|
-
onResponse: callback
|
|
468
|
-
}
|
|
434
|
+
onResponse: callback,
|
|
435
|
+
},
|
|
469
436
|
};
|
|
470
437
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
471
438
|
return {
|
|
@@ -473,8 +440,8 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
473
440
|
rawResponse: {
|
|
474
441
|
statusCode: currentRawResponse!.status,
|
|
475
442
|
body: currentRawResponse!.parsedBody,
|
|
476
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
477
|
-
}
|
|
443
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
444
|
+
},
|
|
478
445
|
};
|
|
479
446
|
};
|
|
480
447
|
|
|
@@ -486,7 +453,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
486
453
|
const poller = new LroEngine(lro, {
|
|
487
454
|
resumeFrom: options?.resumeFrom,
|
|
488
455
|
intervalInMs: options?.updateIntervalInMs,
|
|
489
|
-
lroResourceLocationConfig: "location"
|
|
456
|
+
lroResourceLocationConfig: "location",
|
|
490
457
|
});
|
|
491
458
|
await poller.poll();
|
|
492
459
|
return poller;
|
|
@@ -503,11 +470,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
503
470
|
accountName: string,
|
|
504
471
|
options?: BatchAccountDeleteOptionalParams
|
|
505
472
|
): Promise<void> {
|
|
506
|
-
const poller = await this.beginDelete(
|
|
507
|
-
resourceGroupName,
|
|
508
|
-
accountName,
|
|
509
|
-
options
|
|
510
|
-
);
|
|
473
|
+
const poller = await this.beginDelete(resourceGroupName, accountName, options);
|
|
511
474
|
return poller.pollUntilDone();
|
|
512
475
|
}
|
|
513
476
|
|
|
@@ -532,9 +495,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
532
495
|
* Gets information about the Batch accounts associated with the subscription.
|
|
533
496
|
* @param options The options parameters.
|
|
534
497
|
*/
|
|
535
|
-
private _list(
|
|
536
|
-
options?: BatchAccountListOptionalParams
|
|
537
|
-
): Promise<BatchAccountListResponse> {
|
|
498
|
+
private _list(options?: BatchAccountListOptionalParams): Promise<BatchAccountListResponse> {
|
|
538
499
|
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
539
500
|
}
|
|
540
501
|
|
|
@@ -655,7 +616,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
655
616
|
* you must make sure your network allows outbound access to these endpoints. Failure to allow access
|
|
656
617
|
* to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
|
|
657
618
|
* about creating a pool inside of a virtual network, see
|
|
658
|
-
* https://docs.microsoft.com/
|
|
619
|
+
* https://docs.microsoft.com/azure/batch/batch-virtual-network.
|
|
659
620
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
660
621
|
* @param accountName The name of the Batch account.
|
|
661
622
|
* @param options The options parameters.
|
|
@@ -680,10 +641,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
680
641
|
nextLink: string,
|
|
681
642
|
options?: BatchAccountListNextOptionalParams
|
|
682
643
|
): Promise<BatchAccountListNextResponse> {
|
|
683
|
-
return this.client.sendOperationRequest(
|
|
684
|
-
{ nextLink, options },
|
|
685
|
-
listNextOperationSpec
|
|
686
|
-
);
|
|
644
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
687
645
|
}
|
|
688
646
|
|
|
689
647
|
/**
|
|
@@ -746,25 +704,24 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
746
704
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
747
705
|
|
|
748
706
|
const createOperationSpec: coreClient.OperationSpec = {
|
|
749
|
-
path:
|
|
750
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
707
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
751
708
|
httpMethod: "PUT",
|
|
752
709
|
responses: {
|
|
753
710
|
200: {
|
|
754
|
-
bodyMapper: Mappers.BatchAccount
|
|
711
|
+
bodyMapper: Mappers.BatchAccount,
|
|
755
712
|
},
|
|
756
713
|
201: {
|
|
757
|
-
bodyMapper: Mappers.BatchAccount
|
|
714
|
+
bodyMapper: Mappers.BatchAccount,
|
|
758
715
|
},
|
|
759
716
|
202: {
|
|
760
|
-
bodyMapper: Mappers.BatchAccount
|
|
717
|
+
bodyMapper: Mappers.BatchAccount,
|
|
761
718
|
},
|
|
762
719
|
204: {
|
|
763
|
-
bodyMapper: Mappers.BatchAccount
|
|
720
|
+
bodyMapper: Mappers.BatchAccount,
|
|
764
721
|
},
|
|
765
722
|
default: {
|
|
766
|
-
bodyMapper: Mappers.CloudError
|
|
767
|
-
}
|
|
723
|
+
bodyMapper: Mappers.CloudError,
|
|
724
|
+
},
|
|
768
725
|
},
|
|
769
726
|
requestBody: Parameters.parameters,
|
|
770
727
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -772,23 +729,22 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
|
772
729
|
Parameters.$host,
|
|
773
730
|
Parameters.resourceGroupName,
|
|
774
731
|
Parameters.accountName,
|
|
775
|
-
Parameters.subscriptionId
|
|
732
|
+
Parameters.subscriptionId,
|
|
776
733
|
],
|
|
777
734
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
778
735
|
mediaType: "json",
|
|
779
|
-
serializer
|
|
736
|
+
serializer,
|
|
780
737
|
};
|
|
781
738
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
782
|
-
path:
|
|
783
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
739
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
784
740
|
httpMethod: "PATCH",
|
|
785
741
|
responses: {
|
|
786
742
|
200: {
|
|
787
|
-
bodyMapper: Mappers.BatchAccount
|
|
743
|
+
bodyMapper: Mappers.BatchAccount,
|
|
788
744
|
},
|
|
789
745
|
default: {
|
|
790
|
-
bodyMapper: Mappers.CloudError
|
|
791
|
-
}
|
|
746
|
+
bodyMapper: Mappers.CloudError,
|
|
747
|
+
},
|
|
792
748
|
},
|
|
793
749
|
requestBody: Parameters.parameters1,
|
|
794
750
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -796,15 +752,14 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
796
752
|
Parameters.$host,
|
|
797
753
|
Parameters.resourceGroupName,
|
|
798
754
|
Parameters.subscriptionId,
|
|
799
|
-
Parameters.accountName1
|
|
755
|
+
Parameters.accountName1,
|
|
800
756
|
],
|
|
801
757
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
802
758
|
mediaType: "json",
|
|
803
|
-
serializer
|
|
759
|
+
serializer,
|
|
804
760
|
};
|
|
805
761
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
806
|
-
path:
|
|
807
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
762
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
808
763
|
httpMethod: "DELETE",
|
|
809
764
|
responses: {
|
|
810
765
|
200: {},
|
|
@@ -812,110 +767,101 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
812
767
|
202: {},
|
|
813
768
|
204: {},
|
|
814
769
|
default: {
|
|
815
|
-
bodyMapper: Mappers.CloudError
|
|
816
|
-
}
|
|
770
|
+
bodyMapper: Mappers.CloudError,
|
|
771
|
+
},
|
|
817
772
|
},
|
|
818
773
|
queryParameters: [Parameters.apiVersion],
|
|
819
774
|
urlParameters: [
|
|
820
775
|
Parameters.$host,
|
|
821
776
|
Parameters.resourceGroupName,
|
|
822
777
|
Parameters.subscriptionId,
|
|
823
|
-
Parameters.accountName1
|
|
778
|
+
Parameters.accountName1,
|
|
824
779
|
],
|
|
825
780
|
headerParameters: [Parameters.accept],
|
|
826
|
-
serializer
|
|
781
|
+
serializer,
|
|
827
782
|
};
|
|
828
783
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
829
|
-
path:
|
|
830
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
784
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
|
|
831
785
|
httpMethod: "GET",
|
|
832
786
|
responses: {
|
|
833
787
|
200: {
|
|
834
|
-
bodyMapper: Mappers.BatchAccount
|
|
788
|
+
bodyMapper: Mappers.BatchAccount,
|
|
835
789
|
},
|
|
836
790
|
default: {
|
|
837
|
-
bodyMapper: Mappers.CloudError
|
|
838
|
-
}
|
|
791
|
+
bodyMapper: Mappers.CloudError,
|
|
792
|
+
},
|
|
839
793
|
},
|
|
840
794
|
queryParameters: [Parameters.apiVersion],
|
|
841
795
|
urlParameters: [
|
|
842
796
|
Parameters.$host,
|
|
843
797
|
Parameters.resourceGroupName,
|
|
844
798
|
Parameters.subscriptionId,
|
|
845
|
-
Parameters.accountName1
|
|
799
|
+
Parameters.accountName1,
|
|
846
800
|
],
|
|
847
801
|
headerParameters: [Parameters.accept],
|
|
848
|
-
serializer
|
|
802
|
+
serializer,
|
|
849
803
|
};
|
|
850
804
|
const listOperationSpec: coreClient.OperationSpec = {
|
|
851
|
-
path:
|
|
852
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts",
|
|
805
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts",
|
|
853
806
|
httpMethod: "GET",
|
|
854
807
|
responses: {
|
|
855
808
|
200: {
|
|
856
|
-
bodyMapper: Mappers.BatchAccountListResult
|
|
809
|
+
bodyMapper: Mappers.BatchAccountListResult,
|
|
857
810
|
},
|
|
858
811
|
default: {
|
|
859
|
-
bodyMapper: Mappers.CloudError
|
|
860
|
-
}
|
|
812
|
+
bodyMapper: Mappers.CloudError,
|
|
813
|
+
},
|
|
861
814
|
},
|
|
862
815
|
queryParameters: [Parameters.apiVersion],
|
|
863
816
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
864
817
|
headerParameters: [Parameters.accept],
|
|
865
|
-
serializer
|
|
818
|
+
serializer,
|
|
866
819
|
};
|
|
867
820
|
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
868
|
-
path:
|
|
869
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts",
|
|
821
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts",
|
|
870
822
|
httpMethod: "GET",
|
|
871
823
|
responses: {
|
|
872
824
|
200: {
|
|
873
|
-
bodyMapper: Mappers.BatchAccountListResult
|
|
825
|
+
bodyMapper: Mappers.BatchAccountListResult,
|
|
874
826
|
},
|
|
875
827
|
default: {
|
|
876
|
-
bodyMapper: Mappers.CloudError
|
|
877
|
-
}
|
|
828
|
+
bodyMapper: Mappers.CloudError,
|
|
829
|
+
},
|
|
878
830
|
},
|
|
879
831
|
queryParameters: [Parameters.apiVersion],
|
|
880
|
-
urlParameters: [
|
|
881
|
-
Parameters.$host,
|
|
882
|
-
Parameters.resourceGroupName,
|
|
883
|
-
Parameters.subscriptionId
|
|
884
|
-
],
|
|
832
|
+
urlParameters: [Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId],
|
|
885
833
|
headerParameters: [Parameters.accept],
|
|
886
|
-
serializer
|
|
834
|
+
serializer,
|
|
887
835
|
};
|
|
888
836
|
const synchronizeAutoStorageKeysOperationSpec: coreClient.OperationSpec = {
|
|
889
|
-
path:
|
|
890
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys",
|
|
837
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys",
|
|
891
838
|
httpMethod: "POST",
|
|
892
839
|
responses: {
|
|
893
840
|
204: {},
|
|
894
841
|
default: {
|
|
895
|
-
bodyMapper: Mappers.CloudError
|
|
896
|
-
}
|
|
842
|
+
bodyMapper: Mappers.CloudError,
|
|
843
|
+
},
|
|
897
844
|
},
|
|
898
845
|
queryParameters: [Parameters.apiVersion],
|
|
899
846
|
urlParameters: [
|
|
900
847
|
Parameters.$host,
|
|
901
848
|
Parameters.resourceGroupName,
|
|
902
849
|
Parameters.subscriptionId,
|
|
903
|
-
Parameters.accountName1
|
|
850
|
+
Parameters.accountName1,
|
|
904
851
|
],
|
|
905
852
|
headerParameters: [Parameters.accept],
|
|
906
|
-
serializer
|
|
853
|
+
serializer,
|
|
907
854
|
};
|
|
908
855
|
const regenerateKeyOperationSpec: coreClient.OperationSpec = {
|
|
909
|
-
path:
|
|
910
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys",
|
|
856
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys",
|
|
911
857
|
httpMethod: "POST",
|
|
912
858
|
responses: {
|
|
913
859
|
200: {
|
|
914
|
-
bodyMapper: Mappers.BatchAccountKeys
|
|
860
|
+
bodyMapper: Mappers.BatchAccountKeys,
|
|
915
861
|
},
|
|
916
862
|
default: {
|
|
917
|
-
bodyMapper: Mappers.CloudError
|
|
918
|
-
}
|
|
863
|
+
bodyMapper: Mappers.CloudError,
|
|
864
|
+
},
|
|
919
865
|
},
|
|
920
866
|
requestBody: Parameters.parameters2,
|
|
921
867
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -923,67 +869,64 @@ const regenerateKeyOperationSpec: coreClient.OperationSpec = {
|
|
|
923
869
|
Parameters.$host,
|
|
924
870
|
Parameters.resourceGroupName,
|
|
925
871
|
Parameters.subscriptionId,
|
|
926
|
-
Parameters.accountName1
|
|
872
|
+
Parameters.accountName1,
|
|
927
873
|
],
|
|
928
874
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
929
875
|
mediaType: "json",
|
|
930
|
-
serializer
|
|
876
|
+
serializer,
|
|
931
877
|
};
|
|
932
878
|
const getKeysOperationSpec: coreClient.OperationSpec = {
|
|
933
|
-
path:
|
|
934
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys",
|
|
879
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys",
|
|
935
880
|
httpMethod: "POST",
|
|
936
881
|
responses: {
|
|
937
882
|
200: {
|
|
938
|
-
bodyMapper: Mappers.BatchAccountKeys
|
|
883
|
+
bodyMapper: Mappers.BatchAccountKeys,
|
|
939
884
|
},
|
|
940
885
|
default: {
|
|
941
|
-
bodyMapper: Mappers.CloudError
|
|
942
|
-
}
|
|
886
|
+
bodyMapper: Mappers.CloudError,
|
|
887
|
+
},
|
|
943
888
|
},
|
|
944
889
|
queryParameters: [Parameters.apiVersion],
|
|
945
890
|
urlParameters: [
|
|
946
891
|
Parameters.$host,
|
|
947
892
|
Parameters.resourceGroupName,
|
|
948
893
|
Parameters.subscriptionId,
|
|
949
|
-
Parameters.accountName1
|
|
894
|
+
Parameters.accountName1,
|
|
950
895
|
],
|
|
951
896
|
headerParameters: [Parameters.accept],
|
|
952
|
-
serializer
|
|
897
|
+
serializer,
|
|
953
898
|
};
|
|
954
899
|
const listDetectorsOperationSpec: coreClient.OperationSpec = {
|
|
955
|
-
path:
|
|
956
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors",
|
|
900
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors",
|
|
957
901
|
httpMethod: "GET",
|
|
958
902
|
responses: {
|
|
959
903
|
200: {
|
|
960
|
-
bodyMapper: Mappers.DetectorListResult
|
|
904
|
+
bodyMapper: Mappers.DetectorListResult,
|
|
961
905
|
},
|
|
962
906
|
default: {
|
|
963
|
-
bodyMapper: Mappers.CloudError
|
|
964
|
-
}
|
|
907
|
+
bodyMapper: Mappers.CloudError,
|
|
908
|
+
},
|
|
965
909
|
},
|
|
966
910
|
queryParameters: [Parameters.apiVersion],
|
|
967
911
|
urlParameters: [
|
|
968
912
|
Parameters.$host,
|
|
969
913
|
Parameters.resourceGroupName,
|
|
970
914
|
Parameters.subscriptionId,
|
|
971
|
-
Parameters.accountName1
|
|
915
|
+
Parameters.accountName1,
|
|
972
916
|
],
|
|
973
917
|
headerParameters: [Parameters.accept],
|
|
974
|
-
serializer
|
|
918
|
+
serializer,
|
|
975
919
|
};
|
|
976
920
|
const getDetectorOperationSpec: coreClient.OperationSpec = {
|
|
977
|
-
path:
|
|
978
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors/{detectorId}",
|
|
921
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors/{detectorId}",
|
|
979
922
|
httpMethod: "GET",
|
|
980
923
|
responses: {
|
|
981
924
|
200: {
|
|
982
|
-
bodyMapper: Mappers.DetectorResponse
|
|
925
|
+
bodyMapper: Mappers.DetectorResponse,
|
|
983
926
|
},
|
|
984
927
|
default: {
|
|
985
|
-
bodyMapper: Mappers.CloudError
|
|
986
|
-
}
|
|
928
|
+
bodyMapper: Mappers.CloudError,
|
|
929
|
+
},
|
|
987
930
|
},
|
|
988
931
|
queryParameters: [Parameters.apiVersion],
|
|
989
932
|
urlParameters: [
|
|
@@ -991,84 +934,79 @@ const getDetectorOperationSpec: coreClient.OperationSpec = {
|
|
|
991
934
|
Parameters.resourceGroupName,
|
|
992
935
|
Parameters.subscriptionId,
|
|
993
936
|
Parameters.accountName1,
|
|
994
|
-
Parameters.detectorId
|
|
937
|
+
Parameters.detectorId,
|
|
995
938
|
],
|
|
996
939
|
headerParameters: [Parameters.accept],
|
|
997
|
-
serializer
|
|
940
|
+
serializer,
|
|
998
941
|
};
|
|
999
942
|
const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = {
|
|
1000
|
-
path:
|
|
1001
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints",
|
|
943
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints",
|
|
1002
944
|
httpMethod: "GET",
|
|
1003
945
|
responses: {
|
|
1004
946
|
200: {
|
|
1005
|
-
bodyMapper: Mappers.OutboundEnvironmentEndpointCollection
|
|
947
|
+
bodyMapper: Mappers.OutboundEnvironmentEndpointCollection,
|
|
1006
948
|
},
|
|
1007
949
|
default: {
|
|
1008
|
-
bodyMapper: Mappers.CloudError
|
|
1009
|
-
}
|
|
950
|
+
bodyMapper: Mappers.CloudError,
|
|
951
|
+
},
|
|
1010
952
|
},
|
|
1011
953
|
queryParameters: [Parameters.apiVersion],
|
|
1012
954
|
urlParameters: [
|
|
1013
955
|
Parameters.$host,
|
|
1014
956
|
Parameters.resourceGroupName,
|
|
1015
957
|
Parameters.subscriptionId,
|
|
1016
|
-
Parameters.accountName1
|
|
958
|
+
Parameters.accountName1,
|
|
1017
959
|
],
|
|
1018
960
|
headerParameters: [Parameters.accept],
|
|
1019
|
-
serializer
|
|
961
|
+
serializer,
|
|
1020
962
|
};
|
|
1021
963
|
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
1022
964
|
path: "{nextLink}",
|
|
1023
965
|
httpMethod: "GET",
|
|
1024
966
|
responses: {
|
|
1025
967
|
200: {
|
|
1026
|
-
bodyMapper: Mappers.BatchAccountListResult
|
|
968
|
+
bodyMapper: Mappers.BatchAccountListResult,
|
|
1027
969
|
},
|
|
1028
970
|
default: {
|
|
1029
|
-
bodyMapper: Mappers.CloudError
|
|
1030
|
-
}
|
|
971
|
+
bodyMapper: Mappers.CloudError,
|
|
972
|
+
},
|
|
1031
973
|
},
|
|
1032
974
|
queryParameters: [Parameters.apiVersion],
|
|
1033
|
-
urlParameters: [
|
|
1034
|
-
Parameters.$host,
|
|
1035
|
-
Parameters.subscriptionId,
|
|
1036
|
-
Parameters.nextLink
|
|
1037
|
-
],
|
|
975
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],
|
|
1038
976
|
headerParameters: [Parameters.accept],
|
|
1039
|
-
serializer
|
|
977
|
+
serializer,
|
|
1040
978
|
};
|
|
1041
979
|
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
1042
980
|
path: "{nextLink}",
|
|
1043
981
|
httpMethod: "GET",
|
|
1044
982
|
responses: {
|
|
1045
983
|
200: {
|
|
1046
|
-
bodyMapper: Mappers.BatchAccountListResult
|
|
984
|
+
bodyMapper: Mappers.BatchAccountListResult,
|
|
1047
985
|
},
|
|
1048
986
|
default: {
|
|
1049
|
-
bodyMapper: Mappers.CloudError
|
|
1050
|
-
}
|
|
987
|
+
bodyMapper: Mappers.CloudError,
|
|
988
|
+
},
|
|
1051
989
|
},
|
|
1052
990
|
queryParameters: [Parameters.apiVersion],
|
|
1053
991
|
urlParameters: [
|
|
1054
992
|
Parameters.$host,
|
|
1055
993
|
Parameters.resourceGroupName,
|
|
1056
994
|
Parameters.subscriptionId,
|
|
1057
|
-
Parameters.nextLink
|
|
995
|
+
Parameters.nextLink,
|
|
1058
996
|
],
|
|
1059
997
|
headerParameters: [Parameters.accept],
|
|
1060
|
-
serializer
|
|
998
|
+
serializer,
|
|
1061
999
|
};
|
|
1062
1000
|
const listDetectorsNextOperationSpec: coreClient.OperationSpec = {
|
|
1063
1001
|
path: "{nextLink}",
|
|
1064
1002
|
httpMethod: "GET",
|
|
1065
1003
|
responses: {
|
|
1066
1004
|
200: {
|
|
1067
|
-
bodyMapper: Mappers.DetectorListResult
|
|
1005
|
+
bodyMapper: Mappers.DetectorListResult,
|
|
1068
1006
|
},
|
|
1069
1007
|
default: {
|
|
1070
|
-
bodyMapper: Mappers.CloudError
|
|
1071
|
-
}
|
|
1008
|
+
bodyMapper: Mappers.CloudError,
|
|
1009
|
+
},
|
|
1072
1010
|
},
|
|
1073
1011
|
queryParameters: [Parameters.apiVersion],
|
|
1074
1012
|
urlParameters: [
|
|
@@ -1076,21 +1014,21 @@ const listDetectorsNextOperationSpec: coreClient.OperationSpec = {
|
|
|
1076
1014
|
Parameters.resourceGroupName,
|
|
1077
1015
|
Parameters.subscriptionId,
|
|
1078
1016
|
Parameters.accountName1,
|
|
1079
|
-
Parameters.nextLink
|
|
1017
|
+
Parameters.nextLink,
|
|
1080
1018
|
],
|
|
1081
1019
|
headerParameters: [Parameters.accept],
|
|
1082
|
-
serializer
|
|
1020
|
+
serializer,
|
|
1083
1021
|
};
|
|
1084
1022
|
const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = {
|
|
1085
1023
|
path: "{nextLink}",
|
|
1086
1024
|
httpMethod: "GET",
|
|
1087
1025
|
responses: {
|
|
1088
1026
|
200: {
|
|
1089
|
-
bodyMapper: Mappers.OutboundEnvironmentEndpointCollection
|
|
1027
|
+
bodyMapper: Mappers.OutboundEnvironmentEndpointCollection,
|
|
1090
1028
|
},
|
|
1091
1029
|
default: {
|
|
1092
|
-
bodyMapper: Mappers.CloudError
|
|
1093
|
-
}
|
|
1030
|
+
bodyMapper: Mappers.CloudError,
|
|
1031
|
+
},
|
|
1094
1032
|
},
|
|
1095
1033
|
queryParameters: [Parameters.apiVersion],
|
|
1096
1034
|
urlParameters: [
|
|
@@ -1098,8 +1036,8 @@ const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.Oper
|
|
|
1098
1036
|
Parameters.resourceGroupName,
|
|
1099
1037
|
Parameters.subscriptionId,
|
|
1100
1038
|
Parameters.accountName1,
|
|
1101
|
-
Parameters.nextLink
|
|
1039
|
+
Parameters.nextLink,
|
|
1102
1040
|
],
|
|
1103
1041
|
headerParameters: [Parameters.accept],
|
|
1104
|
-
serializer
|
|
1042
|
+
serializer,
|
|
1105
1043
|
};
|