@azure/arm-batch 9.1.1-alpha.20240313.1 → 9.2.0-alpha.20240315.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -10
- package/LICENSE +1 -1
- package/dist/index.js +1815 -1675
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/applicationCreateSample.js +3 -3
- package/dist-esm/samples-dev/applicationCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationDeleteSample.js +1 -1
- package/dist-esm/samples-dev/applicationGetSample.js +1 -1
- package/dist-esm/samples-dev/applicationListSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageActivateSample.js +2 -2
- package/dist-esm/samples-dev/applicationPackageActivateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationPackageCreateSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageDeleteSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageGetSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageListSample.js +1 -1
- package/dist-esm/samples-dev/applicationUpdateSample.js +2 -2
- package/dist-esm/samples-dev/batchAccountCreateSample.js +20 -20
- package/dist-esm/samples-dev/batchAccountCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountDeleteSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountGetDetectorSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountGetKeysSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountGetSample.js +2 -2
- package/dist-esm/samples-dev/batchAccountListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountListDetectorsSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.js +3 -3
- package/dist-esm/samples-dev/batchAccountListSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js +3 -3
- package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountUpdateSample.js +4 -4
- package/dist-esm/samples-dev/batchAccountUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateCancelDeletionSample.js +1 -1
- package/dist-esm/samples-dev/certificateCreateSample.js +7 -7
- package/dist-esm/samples-dev/certificateCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateDeleteSample.js +1 -1
- package/dist-esm/samples-dev/certificateGetSample.js +2 -2
- package/dist-esm/samples-dev/certificateListByBatchAccountSample.js +4 -4
- package/dist-esm/samples-dev/certificateListByBatchAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateUpdateSample.js +3 -3
- package/dist-esm/samples-dev/certificateUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js +5 -5
- package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/locationGetQuotasSample.js +1 -1
- package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.js +1 -1
- package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/poolCreateSample.js +178 -118
- package/dist-esm/samples-dev/poolCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/poolDeleteSample.js +1 -1
- package/dist-esm/samples-dev/poolDisableAutoScaleSample.js +1 -1
- package/dist-esm/samples-dev/poolGetSample.js +25 -6
- package/dist-esm/samples-dev/poolGetSample.js.map +1 -1
- package/dist-esm/samples-dev/poolListByBatchAccountSample.js +3 -3
- package/dist-esm/samples-dev/poolListByBatchAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/poolStopResizeSample.js +1 -1
- package/dist-esm/samples-dev/poolUpdateSample.js +14 -14
- package/dist-esm/samples-dev/poolUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js +4 -4
- package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourceGetSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js +1 -1
- package/dist-esm/src/batchManagementClient.js +11 -10
- package/dist-esm/src/batchManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +46 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +3 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1367 -1231
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +87 -87
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/applicationOperations.js +30 -30
- package/dist-esm/src/operations/applicationOperations.js.map +1 -1
- package/dist-esm/src/operations/applicationPackageOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/applicationPackageOperations.js +31 -31
- package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -1
- package/dist-esm/src/operations/batchAccountOperations.d.ts +2 -2
- package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/batchAccountOperations.js +95 -95
- package/dist-esm/src/operations/batchAccountOperations.js.map +1 -1
- package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/certificateOperations.js +43 -43
- package/dist-esm/src/operations/certificateOperations.js.map +1 -1
- package/dist-esm/src/operations/location.js +34 -34
- package/dist-esm/src/operations/location.js.map +1 -1
- package/dist-esm/src/operations/operations.js +9 -9
- package/dist-esm/src/operations/poolOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/poolOperations.js +48 -48
- package/dist-esm/src/operations/poolOperations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js +45 -45
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResourceOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkResourceOperations.js +16 -16
- package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +1 -1
- package/dist-esm/test/batch_examples.js +1 -1
- package/dist-esm/test/batch_examples.js.map +1 -1
- package/package.json +3 -4
- package/review/arm-batch.api.md +31 -0
- package/src/batchManagementClient.ts +22 -22
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +74 -14
- package/src/models/mappers.ts +1459 -1314
- package/src/models/parameters.ts +88 -88
- package/src/operations/applicationOperations.ts +54 -59
- package/src/operations/applicationPackageOperations.ts +59 -63
- package/src/operations/batchAccountOperations.ts +211 -223
- package/src/operations/certificateOperations.ts +80 -87
- package/src/operations/location.ts +96 -98
- package/src/operations/operations.ts +16 -16
- package/src/operations/poolOperations.ts +88 -96
- package/src/operations/privateEndpointConnectionOperations.ts +86 -91
- package/src/operations/privateLinkResourceOperations.ts +35 -36
- package/src/operationsInterfaces/applicationOperations.ts +6 -6
- package/src/operationsInterfaces/applicationPackageOperations.ts +6 -6
- package/src/operationsInterfaces/batchAccountOperations.ts +16 -16
- package/src/operationsInterfaces/certificateOperations.ts +8 -8
- package/src/operationsInterfaces/location.ts +5 -5
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/poolOperations.ts +9 -9
- package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +7 -7
- package/src/operationsInterfaces/privateLinkResourceOperations.ts +3 -3
- package/src/pagingHelper.ts +1 -1
- package/types/arm-batch.d.ts +51 -1
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
LocationCheckNameAvailabilityOptionalParams,
|
|
28
28
|
LocationCheckNameAvailabilityResponse,
|
|
29
29
|
LocationListSupportedVirtualMachineSkusNextResponse,
|
|
30
|
-
LocationListSupportedCloudServiceSkusNextResponse
|
|
30
|
+
LocationListSupportedCloudServiceSkusNextResponse,
|
|
31
31
|
} from "../models";
|
|
32
32
|
|
|
33
33
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -50,11 +50,11 @@ export class LocationImpl implements Location {
|
|
|
50
50
|
*/
|
|
51
51
|
public listSupportedVirtualMachineSkus(
|
|
52
52
|
locationName: string,
|
|
53
|
-
options?: LocationListSupportedVirtualMachineSkusOptionalParams
|
|
53
|
+
options?: LocationListSupportedVirtualMachineSkusOptionalParams,
|
|
54
54
|
): PagedAsyncIterableIterator<SupportedSku> {
|
|
55
55
|
const iter = this.listSupportedVirtualMachineSkusPagingAll(
|
|
56
56
|
locationName,
|
|
57
|
-
options
|
|
57
|
+
options,
|
|
58
58
|
);
|
|
59
59
|
return {
|
|
60
60
|
next() {
|
|
@@ -70,23 +70,23 @@ export class LocationImpl implements Location {
|
|
|
70
70
|
return this.listSupportedVirtualMachineSkusPagingPage(
|
|
71
71
|
locationName,
|
|
72
72
|
options,
|
|
73
|
-
settings
|
|
73
|
+
settings,
|
|
74
74
|
);
|
|
75
|
-
}
|
|
75
|
+
},
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
private async *listSupportedVirtualMachineSkusPagingPage(
|
|
80
80
|
locationName: string,
|
|
81
81
|
options?: LocationListSupportedVirtualMachineSkusOptionalParams,
|
|
82
|
-
settings?: PageSettings
|
|
82
|
+
settings?: PageSettings,
|
|
83
83
|
): AsyncIterableIterator<SupportedSku[]> {
|
|
84
84
|
let result: LocationListSupportedVirtualMachineSkusResponse;
|
|
85
85
|
let continuationToken = settings?.continuationToken;
|
|
86
86
|
if (!continuationToken) {
|
|
87
87
|
result = await this._listSupportedVirtualMachineSkus(
|
|
88
88
|
locationName,
|
|
89
|
-
options
|
|
89
|
+
options,
|
|
90
90
|
);
|
|
91
91
|
let page = result.value || [];
|
|
92
92
|
continuationToken = result.nextLink;
|
|
@@ -97,7 +97,7 @@ export class LocationImpl implements Location {
|
|
|
97
97
|
result = await this._listSupportedVirtualMachineSkusNext(
|
|
98
98
|
locationName,
|
|
99
99
|
continuationToken,
|
|
100
|
-
options
|
|
100
|
+
options,
|
|
101
101
|
);
|
|
102
102
|
continuationToken = result.nextLink;
|
|
103
103
|
let page = result.value || [];
|
|
@@ -108,11 +108,11 @@ export class LocationImpl implements Location {
|
|
|
108
108
|
|
|
109
109
|
private async *listSupportedVirtualMachineSkusPagingAll(
|
|
110
110
|
locationName: string,
|
|
111
|
-
options?: LocationListSupportedVirtualMachineSkusOptionalParams
|
|
111
|
+
options?: LocationListSupportedVirtualMachineSkusOptionalParams,
|
|
112
112
|
): AsyncIterableIterator<SupportedSku> {
|
|
113
113
|
for await (const page of this.listSupportedVirtualMachineSkusPagingPage(
|
|
114
114
|
locationName,
|
|
115
|
-
options
|
|
115
|
+
options,
|
|
116
116
|
)) {
|
|
117
117
|
yield* page;
|
|
118
118
|
}
|
|
@@ -125,11 +125,11 @@ export class LocationImpl implements Location {
|
|
|
125
125
|
*/
|
|
126
126
|
public listSupportedCloudServiceSkus(
|
|
127
127
|
locationName: string,
|
|
128
|
-
options?: LocationListSupportedCloudServiceSkusOptionalParams
|
|
128
|
+
options?: LocationListSupportedCloudServiceSkusOptionalParams,
|
|
129
129
|
): PagedAsyncIterableIterator<SupportedSku> {
|
|
130
130
|
const iter = this.listSupportedCloudServiceSkusPagingAll(
|
|
131
131
|
locationName,
|
|
132
|
-
options
|
|
132
|
+
options,
|
|
133
133
|
);
|
|
134
134
|
return {
|
|
135
135
|
next() {
|
|
@@ -145,16 +145,16 @@ export class LocationImpl implements Location {
|
|
|
145
145
|
return this.listSupportedCloudServiceSkusPagingPage(
|
|
146
146
|
locationName,
|
|
147
147
|
options,
|
|
148
|
-
settings
|
|
148
|
+
settings,
|
|
149
149
|
);
|
|
150
|
-
}
|
|
150
|
+
},
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
private async *listSupportedCloudServiceSkusPagingPage(
|
|
155
155
|
locationName: string,
|
|
156
156
|
options?: LocationListSupportedCloudServiceSkusOptionalParams,
|
|
157
|
-
settings?: PageSettings
|
|
157
|
+
settings?: PageSettings,
|
|
158
158
|
): AsyncIterableIterator<SupportedSku[]> {
|
|
159
159
|
let result: LocationListSupportedCloudServiceSkusResponse;
|
|
160
160
|
let continuationToken = settings?.continuationToken;
|
|
@@ -169,7 +169,7 @@ export class LocationImpl implements Location {
|
|
|
169
169
|
result = await this._listSupportedCloudServiceSkusNext(
|
|
170
170
|
locationName,
|
|
171
171
|
continuationToken,
|
|
172
|
-
options
|
|
172
|
+
options,
|
|
173
173
|
);
|
|
174
174
|
continuationToken = result.nextLink;
|
|
175
175
|
let page = result.value || [];
|
|
@@ -180,11 +180,11 @@ export class LocationImpl implements Location {
|
|
|
180
180
|
|
|
181
181
|
private async *listSupportedCloudServiceSkusPagingAll(
|
|
182
182
|
locationName: string,
|
|
183
|
-
options?: LocationListSupportedCloudServiceSkusOptionalParams
|
|
183
|
+
options?: LocationListSupportedCloudServiceSkusOptionalParams,
|
|
184
184
|
): AsyncIterableIterator<SupportedSku> {
|
|
185
185
|
for await (const page of this.listSupportedCloudServiceSkusPagingPage(
|
|
186
186
|
locationName,
|
|
187
|
-
options
|
|
187
|
+
options,
|
|
188
188
|
)) {
|
|
189
189
|
yield* page;
|
|
190
190
|
}
|
|
@@ -197,11 +197,11 @@ export class LocationImpl implements Location {
|
|
|
197
197
|
*/
|
|
198
198
|
getQuotas(
|
|
199
199
|
locationName: string,
|
|
200
|
-
options?: LocationGetQuotasOptionalParams
|
|
200
|
+
options?: LocationGetQuotasOptionalParams,
|
|
201
201
|
): Promise<LocationGetQuotasResponse> {
|
|
202
202
|
return this.client.sendOperationRequest(
|
|
203
203
|
{ locationName, options },
|
|
204
|
-
getQuotasOperationSpec
|
|
204
|
+
getQuotasOperationSpec,
|
|
205
205
|
);
|
|
206
206
|
}
|
|
207
207
|
|
|
@@ -212,11 +212,11 @@ export class LocationImpl implements Location {
|
|
|
212
212
|
*/
|
|
213
213
|
private _listSupportedVirtualMachineSkus(
|
|
214
214
|
locationName: string,
|
|
215
|
-
options?: LocationListSupportedVirtualMachineSkusOptionalParams
|
|
215
|
+
options?: LocationListSupportedVirtualMachineSkusOptionalParams,
|
|
216
216
|
): Promise<LocationListSupportedVirtualMachineSkusResponse> {
|
|
217
217
|
return this.client.sendOperationRequest(
|
|
218
218
|
{ locationName, options },
|
|
219
|
-
listSupportedVirtualMachineSkusOperationSpec
|
|
219
|
+
listSupportedVirtualMachineSkusOperationSpec,
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
|
|
@@ -227,11 +227,11 @@ export class LocationImpl implements Location {
|
|
|
227
227
|
*/
|
|
228
228
|
private _listSupportedCloudServiceSkus(
|
|
229
229
|
locationName: string,
|
|
230
|
-
options?: LocationListSupportedCloudServiceSkusOptionalParams
|
|
230
|
+
options?: LocationListSupportedCloudServiceSkusOptionalParams,
|
|
231
231
|
): Promise<LocationListSupportedCloudServiceSkusResponse> {
|
|
232
232
|
return this.client.sendOperationRequest(
|
|
233
233
|
{ locationName, options },
|
|
234
|
-
listSupportedCloudServiceSkusOperationSpec
|
|
234
|
+
listSupportedCloudServiceSkusOperationSpec,
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
237
|
|
|
@@ -244,11 +244,11 @@ export class LocationImpl implements Location {
|
|
|
244
244
|
checkNameAvailability(
|
|
245
245
|
locationName: string,
|
|
246
246
|
parameters: CheckNameAvailabilityParameters,
|
|
247
|
-
options?: LocationCheckNameAvailabilityOptionalParams
|
|
247
|
+
options?: LocationCheckNameAvailabilityOptionalParams,
|
|
248
248
|
): Promise<LocationCheckNameAvailabilityResponse> {
|
|
249
249
|
return this.client.sendOperationRequest(
|
|
250
250
|
{ locationName, parameters, options },
|
|
251
|
-
checkNameAvailabilityOperationSpec
|
|
251
|
+
checkNameAvailabilityOperationSpec,
|
|
252
252
|
);
|
|
253
253
|
}
|
|
254
254
|
|
|
@@ -262,11 +262,11 @@ export class LocationImpl implements Location {
|
|
|
262
262
|
private _listSupportedVirtualMachineSkusNext(
|
|
263
263
|
locationName: string,
|
|
264
264
|
nextLink: string,
|
|
265
|
-
options?: LocationListSupportedVirtualMachineSkusNextOptionalParams
|
|
265
|
+
options?: LocationListSupportedVirtualMachineSkusNextOptionalParams,
|
|
266
266
|
): Promise<LocationListSupportedVirtualMachineSkusNextResponse> {
|
|
267
267
|
return this.client.sendOperationRequest(
|
|
268
268
|
{ locationName, nextLink, options },
|
|
269
|
-
listSupportedVirtualMachineSkusNextOperationSpec
|
|
269
|
+
listSupportedVirtualMachineSkusNextOperationSpec,
|
|
270
270
|
);
|
|
271
271
|
}
|
|
272
272
|
|
|
@@ -280,11 +280,11 @@ export class LocationImpl implements Location {
|
|
|
280
280
|
private _listSupportedCloudServiceSkusNext(
|
|
281
281
|
locationName: string,
|
|
282
282
|
nextLink: string,
|
|
283
|
-
options?: LocationListSupportedCloudServiceSkusNextOptionalParams
|
|
283
|
+
options?: LocationListSupportedCloudServiceSkusNextOptionalParams,
|
|
284
284
|
): Promise<LocationListSupportedCloudServiceSkusNextResponse> {
|
|
285
285
|
return this.client.sendOperationRequest(
|
|
286
286
|
{ locationName, nextLink, options },
|
|
287
|
-
listSupportedCloudServiceSkusNextOperationSpec
|
|
287
|
+
listSupportedCloudServiceSkusNextOperationSpec,
|
|
288
288
|
);
|
|
289
289
|
}
|
|
290
290
|
}
|
|
@@ -292,136 +292,134 @@ export class LocationImpl implements Location {
|
|
|
292
292
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
293
293
|
|
|
294
294
|
const getQuotasOperationSpec: coreClient.OperationSpec = {
|
|
295
|
-
path:
|
|
296
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas",
|
|
295
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas",
|
|
297
296
|
httpMethod: "GET",
|
|
298
297
|
responses: {
|
|
299
298
|
200: {
|
|
300
|
-
bodyMapper: Mappers.BatchLocationQuota
|
|
299
|
+
bodyMapper: Mappers.BatchLocationQuota,
|
|
301
300
|
},
|
|
302
301
|
default: {
|
|
303
|
-
bodyMapper: Mappers.CloudError
|
|
304
|
-
}
|
|
302
|
+
bodyMapper: Mappers.CloudError,
|
|
303
|
+
},
|
|
305
304
|
},
|
|
306
305
|
queryParameters: [Parameters.apiVersion],
|
|
307
306
|
urlParameters: [
|
|
308
307
|
Parameters.$host,
|
|
309
308
|
Parameters.subscriptionId,
|
|
310
|
-
Parameters.locationName
|
|
309
|
+
Parameters.locationName,
|
|
311
310
|
],
|
|
312
311
|
headerParameters: [Parameters.accept],
|
|
313
|
-
serializer
|
|
312
|
+
serializer,
|
|
314
313
|
};
|
|
315
314
|
const listSupportedVirtualMachineSkusOperationSpec: coreClient.OperationSpec = {
|
|
316
|
-
path:
|
|
317
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/virtualMachineSkus",
|
|
315
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/virtualMachineSkus",
|
|
318
316
|
httpMethod: "GET",
|
|
319
317
|
responses: {
|
|
320
318
|
200: {
|
|
321
|
-
bodyMapper: Mappers.SupportedSkusResult
|
|
319
|
+
bodyMapper: Mappers.SupportedSkusResult,
|
|
322
320
|
},
|
|
323
321
|
default: {
|
|
324
|
-
bodyMapper: Mappers.CloudError
|
|
325
|
-
}
|
|
322
|
+
bodyMapper: Mappers.CloudError,
|
|
323
|
+
},
|
|
326
324
|
},
|
|
327
325
|
queryParameters: [
|
|
328
326
|
Parameters.apiVersion,
|
|
329
327
|
Parameters.maxresults,
|
|
330
|
-
Parameters.filter
|
|
328
|
+
Parameters.filter,
|
|
331
329
|
],
|
|
332
330
|
urlParameters: [
|
|
333
331
|
Parameters.$host,
|
|
334
332
|
Parameters.subscriptionId,
|
|
335
|
-
Parameters.locationName
|
|
333
|
+
Parameters.locationName,
|
|
336
334
|
],
|
|
337
335
|
headerParameters: [Parameters.accept],
|
|
338
|
-
serializer
|
|
336
|
+
serializer,
|
|
339
337
|
};
|
|
340
338
|
const listSupportedCloudServiceSkusOperationSpec: coreClient.OperationSpec = {
|
|
341
|
-
path:
|
|
342
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/cloudServiceSkus",
|
|
339
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/cloudServiceSkus",
|
|
343
340
|
httpMethod: "GET",
|
|
344
341
|
responses: {
|
|
345
342
|
200: {
|
|
346
|
-
bodyMapper: Mappers.SupportedSkusResult
|
|
343
|
+
bodyMapper: Mappers.SupportedSkusResult,
|
|
347
344
|
},
|
|
348
345
|
default: {
|
|
349
|
-
bodyMapper: Mappers.CloudError
|
|
350
|
-
}
|
|
346
|
+
bodyMapper: Mappers.CloudError,
|
|
347
|
+
},
|
|
351
348
|
},
|
|
352
349
|
queryParameters: [
|
|
353
350
|
Parameters.apiVersion,
|
|
354
351
|
Parameters.maxresults,
|
|
355
|
-
Parameters.filter
|
|
352
|
+
Parameters.filter,
|
|
356
353
|
],
|
|
357
354
|
urlParameters: [
|
|
358
355
|
Parameters.$host,
|
|
359
356
|
Parameters.subscriptionId,
|
|
360
|
-
Parameters.locationName
|
|
357
|
+
Parameters.locationName,
|
|
361
358
|
],
|
|
362
359
|
headerParameters: [Parameters.accept],
|
|
363
|
-
serializer
|
|
360
|
+
serializer,
|
|
364
361
|
};
|
|
365
362
|
const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
366
|
-
path:
|
|
367
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability",
|
|
363
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability",
|
|
368
364
|
httpMethod: "POST",
|
|
369
365
|
responses: {
|
|
370
366
|
200: {
|
|
371
|
-
bodyMapper: Mappers.CheckNameAvailabilityResult
|
|
367
|
+
bodyMapper: Mappers.CheckNameAvailabilityResult,
|
|
372
368
|
},
|
|
373
369
|
default: {
|
|
374
|
-
bodyMapper: Mappers.CloudError
|
|
375
|
-
}
|
|
370
|
+
bodyMapper: Mappers.CloudError,
|
|
371
|
+
},
|
|
376
372
|
},
|
|
377
373
|
requestBody: Parameters.parameters7,
|
|
378
374
|
queryParameters: [Parameters.apiVersion],
|
|
379
375
|
urlParameters: [
|
|
380
376
|
Parameters.$host,
|
|
381
377
|
Parameters.subscriptionId,
|
|
382
|
-
Parameters.locationName
|
|
378
|
+
Parameters.locationName,
|
|
383
379
|
],
|
|
384
380
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
385
381
|
mediaType: "json",
|
|
386
|
-
serializer
|
|
382
|
+
serializer,
|
|
387
383
|
};
|
|
388
|
-
const listSupportedVirtualMachineSkusNextOperationSpec: coreClient.OperationSpec =
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
384
|
+
const listSupportedVirtualMachineSkusNextOperationSpec: coreClient.OperationSpec =
|
|
385
|
+
{
|
|
386
|
+
path: "{nextLink}",
|
|
387
|
+
httpMethod: "GET",
|
|
388
|
+
responses: {
|
|
389
|
+
200: {
|
|
390
|
+
bodyMapper: Mappers.SupportedSkusResult,
|
|
391
|
+
},
|
|
392
|
+
default: {
|
|
393
|
+
bodyMapper: Mappers.CloudError,
|
|
394
|
+
},
|
|
394
395
|
},
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
Parameters.
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
396
|
+
urlParameters: [
|
|
397
|
+
Parameters.$host,
|
|
398
|
+
Parameters.subscriptionId,
|
|
399
|
+
Parameters.nextLink,
|
|
400
|
+
Parameters.locationName,
|
|
401
|
+
],
|
|
402
|
+
headerParameters: [Parameters.accept],
|
|
403
|
+
serializer,
|
|
404
|
+
};
|
|
405
|
+
const listSupportedCloudServiceSkusNextOperationSpec: coreClient.OperationSpec =
|
|
406
|
+
{
|
|
407
|
+
path: "{nextLink}",
|
|
408
|
+
httpMethod: "GET",
|
|
409
|
+
responses: {
|
|
410
|
+
200: {
|
|
411
|
+
bodyMapper: Mappers.SupportedSkusResult,
|
|
412
|
+
},
|
|
413
|
+
default: {
|
|
414
|
+
bodyMapper: Mappers.CloudError,
|
|
415
|
+
},
|
|
414
416
|
},
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
Parameters.
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
],
|
|
425
|
-
headerParameters: [Parameters.accept],
|
|
426
|
-
serializer
|
|
427
|
-
};
|
|
417
|
+
urlParameters: [
|
|
418
|
+
Parameters.$host,
|
|
419
|
+
Parameters.subscriptionId,
|
|
420
|
+
Parameters.nextLink,
|
|
421
|
+
Parameters.locationName,
|
|
422
|
+
],
|
|
423
|
+
headerParameters: [Parameters.accept],
|
|
424
|
+
serializer,
|
|
425
|
+
};
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
OperationsListNextOptionalParams,
|
|
19
19
|
OperationsListOptionalParams,
|
|
20
20
|
OperationsListResponse,
|
|
21
|
-
OperationsListNextResponse
|
|
21
|
+
OperationsListNextResponse,
|
|
22
22
|
} from "../models";
|
|
23
23
|
|
|
24
24
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -39,7 +39,7 @@ export class OperationsImpl implements Operations {
|
|
|
39
39
|
* @param options The options parameters.
|
|
40
40
|
*/
|
|
41
41
|
public list(
|
|
42
|
-
options?: OperationsListOptionalParams
|
|
42
|
+
options?: OperationsListOptionalParams,
|
|
43
43
|
): PagedAsyncIterableIterator<Operation> {
|
|
44
44
|
const iter = this.listPagingAll(options);
|
|
45
45
|
return {
|
|
@@ -54,13 +54,13 @@ export class OperationsImpl implements Operations {
|
|
|
54
54
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
55
55
|
}
|
|
56
56
|
return this.listPagingPage(options, settings);
|
|
57
|
-
}
|
|
57
|
+
},
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
private async *listPagingPage(
|
|
62
62
|
options?: OperationsListOptionalParams,
|
|
63
|
-
settings?: PageSettings
|
|
63
|
+
settings?: PageSettings,
|
|
64
64
|
): AsyncIterableIterator<Operation[]> {
|
|
65
65
|
let result: OperationsListResponse;
|
|
66
66
|
let continuationToken = settings?.continuationToken;
|
|
@@ -81,7 +81,7 @@ export class OperationsImpl implements Operations {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
private async *listPagingAll(
|
|
84
|
-
options?: OperationsListOptionalParams
|
|
84
|
+
options?: OperationsListOptionalParams,
|
|
85
85
|
): AsyncIterableIterator<Operation> {
|
|
86
86
|
for await (const page of this.listPagingPage(options)) {
|
|
87
87
|
yield* page;
|
|
@@ -93,7 +93,7 @@ export class OperationsImpl implements Operations {
|
|
|
93
93
|
* @param options The options parameters.
|
|
94
94
|
*/
|
|
95
95
|
private _list(
|
|
96
|
-
options?: OperationsListOptionalParams
|
|
96
|
+
options?: OperationsListOptionalParams,
|
|
97
97
|
): Promise<OperationsListResponse> {
|
|
98
98
|
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
99
99
|
}
|
|
@@ -105,11 +105,11 @@ export class OperationsImpl implements Operations {
|
|
|
105
105
|
*/
|
|
106
106
|
private _listNext(
|
|
107
107
|
nextLink: string,
|
|
108
|
-
options?: OperationsListNextOptionalParams
|
|
108
|
+
options?: OperationsListNextOptionalParams,
|
|
109
109
|
): Promise<OperationsListNextResponse> {
|
|
110
110
|
return this.client.sendOperationRequest(
|
|
111
111
|
{ nextLink, options },
|
|
112
|
-
listNextOperationSpec
|
|
112
|
+
listNextOperationSpec,
|
|
113
113
|
);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
@@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = {
|
|
|
121
121
|
httpMethod: "GET",
|
|
122
122
|
responses: {
|
|
123
123
|
200: {
|
|
124
|
-
bodyMapper: Mappers.OperationListResult
|
|
124
|
+
bodyMapper: Mappers.OperationListResult,
|
|
125
125
|
},
|
|
126
126
|
default: {
|
|
127
|
-
bodyMapper: Mappers.CloudError
|
|
128
|
-
}
|
|
127
|
+
bodyMapper: Mappers.CloudError,
|
|
128
|
+
},
|
|
129
129
|
},
|
|
130
130
|
queryParameters: [Parameters.apiVersion],
|
|
131
131
|
urlParameters: [Parameters.$host],
|
|
132
132
|
headerParameters: [Parameters.accept],
|
|
133
|
-
serializer
|
|
133
|
+
serializer,
|
|
134
134
|
};
|
|
135
135
|
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
136
136
|
path: "{nextLink}",
|
|
137
137
|
httpMethod: "GET",
|
|
138
138
|
responses: {
|
|
139
139
|
200: {
|
|
140
|
-
bodyMapper: Mappers.OperationListResult
|
|
140
|
+
bodyMapper: Mappers.OperationListResult,
|
|
141
141
|
},
|
|
142
142
|
default: {
|
|
143
|
-
bodyMapper: Mappers.CloudError
|
|
144
|
-
}
|
|
143
|
+
bodyMapper: Mappers.CloudError,
|
|
144
|
+
},
|
|
145
145
|
},
|
|
146
146
|
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
147
147
|
headerParameters: [Parameters.accept],
|
|
148
|
-
serializer
|
|
148
|
+
serializer,
|
|
149
149
|
};
|