@azure/arm-batch 8.0.1-alpha.20230724.1 → 9.0.0
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 +25 -7
- package/LICENSE +1 -1
- package/dist/index.js +114 -102
- 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 +11 -4
- package/dist-esm/samples-dev/applicationCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationDeleteSample.js +11 -4
- package/dist-esm/samples-dev/applicationDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationGetSample.js +11 -4
- package/dist-esm/samples-dev/applicationGetSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationListSample.js +11 -4
- package/dist-esm/samples-dev/applicationListSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationPackageActivateSample.js +11 -4
- package/dist-esm/samples-dev/applicationPackageActivateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationPackageCreateSample.js +11 -4
- package/dist-esm/samples-dev/applicationPackageCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationPackageDeleteSample.js +11 -4
- package/dist-esm/samples-dev/applicationPackageDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationPackageGetSample.js +11 -4
- package/dist-esm/samples-dev/applicationPackageGetSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationPackageListSample.js +11 -4
- package/dist-esm/samples-dev/applicationPackageListSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationUpdateSample.js +11 -4
- package/dist-esm/samples-dev/applicationUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountCreateSample.js +27 -20
- package/dist-esm/samples-dev/batchAccountCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountDeleteSample.js +11 -4
- package/dist-esm/samples-dev/batchAccountDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountGetDetectorSample.js +11 -4
- package/dist-esm/samples-dev/batchAccountGetDetectorSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountGetKeysSample.js +11 -4
- package/dist-esm/samples-dev/batchAccountGetKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountGetSample.js +15 -8
- package/dist-esm/samples-dev/batchAccountGetSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountListByResourceGroupSample.js +11 -4
- package/dist-esm/samples-dev/batchAccountListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountListDetectorsSample.js +11 -4
- package/dist-esm/samples-dev/batchAccountListDetectorsSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.js +13 -6
- package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountListSample.js +10 -3
- package/dist-esm/samples-dev/batchAccountListSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js +11 -4
- package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.js +11 -4
- package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountUpdateSample.js +11 -4
- package/dist-esm/samples-dev/batchAccountUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateCancelDeletionSample.js +11 -4
- package/dist-esm/samples-dev/certificateCancelDeletionSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateCreateSample.js +19 -12
- package/dist-esm/samples-dev/certificateCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateDeleteSample.js +11 -4
- package/dist-esm/samples-dev/certificateDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateGetSample.js +15 -8
- package/dist-esm/samples-dev/certificateGetSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateListByBatchAccountSample.js +15 -8
- package/dist-esm/samples-dev/certificateListByBatchAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateUpdateSample.js +11 -4
- package/dist-esm/samples-dev/certificateUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js +13 -6
- package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/locationGetQuotasSample.js +10 -3
- package/dist-esm/samples-dev/locationGetQuotasSample.js.map +1 -1
- package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.js +10 -3
- package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.js.map +1 -1
- package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.js +10 -3
- package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +11 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/poolCreateSample.js +90 -42
- package/dist-esm/samples-dev/poolCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/poolDeleteSample.js +11 -4
- package/dist-esm/samples-dev/poolDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/poolDisableAutoScaleSample.js +11 -4
- package/dist-esm/samples-dev/poolDisableAutoScaleSample.js.map +1 -1
- package/dist-esm/samples-dev/poolGetSample.js +34 -8
- package/dist-esm/samples-dev/poolGetSample.js.map +1 -1
- package/dist-esm/samples-dev/poolListByBatchAccountSample.js +15 -8
- package/dist-esm/samples-dev/poolListByBatchAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/poolStopResizeSample.js +11 -4
- package/dist-esm/samples-dev/poolStopResizeSample.js.map +1 -1
- package/dist-esm/samples-dev/poolUpdateSample.js +23 -16
- package/dist-esm/samples-dev/poolUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourceGetSample.js +11 -4
- package/dist-esm/samples-dev/privateLinkResourceGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js +11 -4
- package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js.map +1 -1
- package/dist-esm/src/batchManagementClient.js +2 -2
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +22 -44
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +8 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +13 -2
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/operations/applicationOperations.js +0 -1
- package/dist-esm/src/operations/applicationOperations.js.map +1 -1
- package/dist-esm/src/operations/applicationPackageOperations.js +0 -1
- package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -1
- package/dist-esm/src/operations/batchAccountOperations.d.ts +5 -5
- package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/batchAccountOperations.js +22 -18
- package/dist-esm/src/operations/batchAccountOperations.js.map +1 -1
- package/dist-esm/src/operations/certificateOperations.d.ts +2 -2
- package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/certificateOperations.js +11 -13
- package/dist-esm/src/operations/certificateOperations.js.map +1 -1
- package/dist-esm/src/operations/location.js +0 -10
- package/dist-esm/src/operations/location.js.map +1 -1
- package/dist-esm/src/operations/operations.js +0 -1
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/poolOperations.d.ts +2 -2
- package/dist-esm/src/operations/poolOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/poolOperations.js +11 -13
- package/dist-esm/src/operations/poolOperations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +3 -3
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js +31 -24
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResourceOperations.js +0 -1
- package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/poolOperations.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/poolOperations.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +4 -4
- package/dist-esm/src/pagingHelper.js +4 -4
- package/dist-esm/test/batch_examples.js +2 -1
- package/dist-esm/test/batch_examples.js.map +1 -1
- package/package.json +7 -6
- package/review/arm-batch.api.md +20 -23
- package/src/batchManagementClient.ts +2 -2
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +31 -60
- package/src/models/mappers.ts +13 -2
- package/src/models/parameters.ts +1 -1
- package/src/operations/applicationOperations.ts +0 -1
- package/src/operations/applicationPackageOperations.ts +0 -1
- package/src/operations/batchAccountOperations.ts +32 -29
- package/src/operations/certificateOperations.ts +16 -18
- package/src/operations/location.ts +0 -10
- package/src/operations/operations.ts +0 -1
- package/src/operations/poolOperations.ts +16 -18
- package/src/operations/privateEndpointConnectionOperations.ts +34 -25
- package/src/operations/privateLinkResourceOperations.ts +0 -1
- package/src/operationsInterfaces/batchAccountOperations.ts +5 -5
- package/src/operationsInterfaces/certificateOperations.ts +2 -2
- package/src/operationsInterfaces/poolOperations.ts +2 -2
- package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +5 -5
- package/src/pagingHelper.ts +4 -4
- package/types/arm-batch.d.ts +37 -57
|
@@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client";
|
|
|
13
13
|
import * as Mappers from "../models/mappers";
|
|
14
14
|
import * as Parameters from "../models/parameters";
|
|
15
15
|
import { BatchManagementClient } from "../batchManagementClient";
|
|
16
|
-
import {
|
|
17
|
-
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
18
22
|
import {
|
|
19
23
|
PrivateEndpointConnection,
|
|
20
24
|
PrivateEndpointConnectionListByBatchAccountNextOptionalParams,
|
|
@@ -186,8 +190,8 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
186
190
|
parameters: PrivateEndpointConnection,
|
|
187
191
|
options?: PrivateEndpointConnectionUpdateOptionalParams
|
|
188
192
|
): Promise<
|
|
189
|
-
|
|
190
|
-
|
|
193
|
+
SimplePollerLike<
|
|
194
|
+
OperationState<PrivateEndpointConnectionUpdateResponse>,
|
|
191
195
|
PrivateEndpointConnectionUpdateResponse
|
|
192
196
|
>
|
|
193
197
|
> {
|
|
@@ -197,7 +201,7 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
197
201
|
): Promise<PrivateEndpointConnectionUpdateResponse> => {
|
|
198
202
|
return this.client.sendOperationRequest(args, spec);
|
|
199
203
|
};
|
|
200
|
-
const
|
|
204
|
+
const sendOperationFn = async (
|
|
201
205
|
args: coreClient.OperationArguments,
|
|
202
206
|
spec: coreClient.OperationSpec
|
|
203
207
|
) => {
|
|
@@ -230,21 +234,24 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
230
234
|
};
|
|
231
235
|
};
|
|
232
236
|
|
|
233
|
-
const lro =
|
|
234
|
-
|
|
235
|
-
{
|
|
237
|
+
const lro = createLroSpec({
|
|
238
|
+
sendOperationFn,
|
|
239
|
+
args: {
|
|
236
240
|
resourceGroupName,
|
|
237
241
|
accountName,
|
|
238
242
|
privateEndpointConnectionName,
|
|
239
243
|
parameters,
|
|
240
244
|
options
|
|
241
245
|
},
|
|
242
|
-
updateOperationSpec
|
|
243
|
-
);
|
|
244
|
-
const poller =
|
|
245
|
-
|
|
246
|
+
spec: updateOperationSpec
|
|
247
|
+
});
|
|
248
|
+
const poller = await createHttpPoller<
|
|
249
|
+
PrivateEndpointConnectionUpdateResponse,
|
|
250
|
+
OperationState<PrivateEndpointConnectionUpdateResponse>
|
|
251
|
+
>(lro, {
|
|
252
|
+
restoreFrom: options?.resumeFrom,
|
|
246
253
|
intervalInMs: options?.updateIntervalInMs,
|
|
247
|
-
|
|
254
|
+
resourceLocationConfig: "azure-async-operation"
|
|
248
255
|
});
|
|
249
256
|
await poller.poll();
|
|
250
257
|
return poller;
|
|
@@ -291,8 +298,8 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
291
298
|
privateEndpointConnectionName: string,
|
|
292
299
|
options?: PrivateEndpointConnectionDeleteOptionalParams
|
|
293
300
|
): Promise<
|
|
294
|
-
|
|
295
|
-
|
|
301
|
+
SimplePollerLike<
|
|
302
|
+
OperationState<PrivateEndpointConnectionDeleteResponse>,
|
|
296
303
|
PrivateEndpointConnectionDeleteResponse
|
|
297
304
|
>
|
|
298
305
|
> {
|
|
@@ -302,7 +309,7 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
302
309
|
): Promise<PrivateEndpointConnectionDeleteResponse> => {
|
|
303
310
|
return this.client.sendOperationRequest(args, spec);
|
|
304
311
|
};
|
|
305
|
-
const
|
|
312
|
+
const sendOperationFn = async (
|
|
306
313
|
args: coreClient.OperationArguments,
|
|
307
314
|
spec: coreClient.OperationSpec
|
|
308
315
|
) => {
|
|
@@ -335,20 +342,23 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
335
342
|
};
|
|
336
343
|
};
|
|
337
344
|
|
|
338
|
-
const lro =
|
|
339
|
-
|
|
340
|
-
{
|
|
345
|
+
const lro = createLroSpec({
|
|
346
|
+
sendOperationFn,
|
|
347
|
+
args: {
|
|
341
348
|
resourceGroupName,
|
|
342
349
|
accountName,
|
|
343
350
|
privateEndpointConnectionName,
|
|
344
351
|
options
|
|
345
352
|
},
|
|
346
|
-
deleteOperationSpec
|
|
347
|
-
);
|
|
348
|
-
const poller =
|
|
349
|
-
|
|
353
|
+
spec: deleteOperationSpec
|
|
354
|
+
});
|
|
355
|
+
const poller = await createHttpPoller<
|
|
356
|
+
PrivateEndpointConnectionDeleteResponse,
|
|
357
|
+
OperationState<PrivateEndpointConnectionDeleteResponse>
|
|
358
|
+
>(lro, {
|
|
359
|
+
restoreFrom: options?.resumeFrom,
|
|
350
360
|
intervalInMs: options?.updateIntervalInMs,
|
|
351
|
-
|
|
361
|
+
resourceLocationConfig: "azure-async-operation"
|
|
352
362
|
});
|
|
353
363
|
await poller.poll();
|
|
354
364
|
return poller;
|
|
@@ -525,7 +535,6 @@ const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = {
|
|
|
525
535
|
bodyMapper: Mappers.CloudError
|
|
526
536
|
}
|
|
527
537
|
},
|
|
528
|
-
queryParameters: [Parameters.apiVersion, Parameters.maxresults],
|
|
529
538
|
urlParameters: [
|
|
530
539
|
Parameters.$host,
|
|
531
540
|
Parameters.resourceGroupName,
|
|
@@ -236,7 +236,6 @@ const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = {
|
|
|
236
236
|
bodyMapper: Mappers.CloudError
|
|
237
237
|
}
|
|
238
238
|
},
|
|
239
|
-
queryParameters: [Parameters.apiVersion, Parameters.maxresults],
|
|
240
239
|
urlParameters: [
|
|
241
240
|
Parameters.$host,
|
|
242
241
|
Parameters.resourceGroupName,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
BatchAccount,
|
|
13
13
|
BatchAccountListOptionalParams,
|
|
@@ -71,7 +71,7 @@ export interface BatchAccountOperations {
|
|
|
71
71
|
* you must make sure your network allows outbound access to these endpoints. Failure to allow access
|
|
72
72
|
* to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
|
|
73
73
|
* about creating a pool inside of a virtual network, see
|
|
74
|
-
* https://docs.microsoft.com/
|
|
74
|
+
* https://docs.microsoft.com/azure/batch/batch-virtual-network.
|
|
75
75
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
76
76
|
* @param accountName The name of the Batch account.
|
|
77
77
|
* @param options The options parameters.
|
|
@@ -98,8 +98,8 @@ export interface BatchAccountOperations {
|
|
|
98
98
|
parameters: BatchAccountCreateParameters,
|
|
99
99
|
options?: BatchAccountCreateOptionalParams
|
|
100
100
|
): Promise<
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
SimplePollerLike<
|
|
102
|
+
OperationState<BatchAccountCreateResponse>,
|
|
103
103
|
BatchAccountCreateResponse
|
|
104
104
|
>
|
|
105
105
|
>;
|
|
@@ -143,7 +143,7 @@ export interface BatchAccountOperations {
|
|
|
143
143
|
resourceGroupName: string,
|
|
144
144
|
accountName: string,
|
|
145
145
|
options?: BatchAccountDeleteOptionalParams
|
|
146
|
-
): Promise<
|
|
146
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
147
147
|
/**
|
|
148
148
|
* Deletes the specified Batch account.
|
|
149
149
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
Certificate,
|
|
13
13
|
CertificateListByBatchAccountOptionalParams,
|
|
@@ -93,7 +93,7 @@ export interface CertificateOperations {
|
|
|
93
93
|
accountName: string,
|
|
94
94
|
certificateName: string,
|
|
95
95
|
options?: CertificateDeleteOptionalParams
|
|
96
|
-
): Promise<
|
|
96
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
97
97
|
/**
|
|
98
98
|
* Warning: This operation is deprecated and will be removed after February, 2024. Please use the
|
|
99
99
|
* [Azure KeyVault
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
Pool,
|
|
13
13
|
PoolListByBatchAccountOptionalParams,
|
|
@@ -81,7 +81,7 @@ export interface PoolOperations {
|
|
|
81
81
|
accountName: string,
|
|
82
82
|
poolName: string,
|
|
83
83
|
options?: PoolDeleteOptionalParams
|
|
84
|
-
): Promise<
|
|
84
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
85
85
|
/**
|
|
86
86
|
* Deletes the specified pool.
|
|
87
87
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
PrivateEndpointConnection,
|
|
13
13
|
PrivateEndpointConnectionListByBatchAccountOptionalParams,
|
|
@@ -64,8 +64,8 @@ export interface PrivateEndpointConnectionOperations {
|
|
|
64
64
|
parameters: PrivateEndpointConnection,
|
|
65
65
|
options?: PrivateEndpointConnectionUpdateOptionalParams
|
|
66
66
|
): Promise<
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
SimplePollerLike<
|
|
68
|
+
OperationState<PrivateEndpointConnectionUpdateResponse>,
|
|
69
69
|
PrivateEndpointConnectionUpdateResponse
|
|
70
70
|
>
|
|
71
71
|
>;
|
|
@@ -100,8 +100,8 @@ export interface PrivateEndpointConnectionOperations {
|
|
|
100
100
|
privateEndpointConnectionName: string,
|
|
101
101
|
options?: PrivateEndpointConnectionDeleteOptionalParams
|
|
102
102
|
): Promise<
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
SimplePollerLike<
|
|
104
|
+
OperationState<PrivateEndpointConnectionDeleteResponse>,
|
|
105
105
|
PrivateEndpointConnectionDeleteResponse
|
|
106
106
|
>
|
|
107
107
|
>;
|
package/src/pagingHelper.ts
CHANGED
|
@@ -13,11 +13,11 @@ export interface PageInfo {
|
|
|
13
13
|
const pageMap = new WeakMap<object, PageInfo>();
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Given
|
|
17
|
-
* continuation token that can be used to begin paging from
|
|
16
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
17
|
+
* returns a continuation token that can be used to begin paging from
|
|
18
18
|
* that point later.
|
|
19
|
-
* @param page
|
|
20
|
-
* @returns The continuation token that can be passed into byPage().
|
|
19
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
20
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
21
21
|
*/
|
|
22
22
|
export function getContinuationToken(page: unknown): string | undefined {
|
|
23
23
|
if (typeof page !== "object" || page === null) {
|
package/types/arm-batch.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as coreAuth from '@azure/core-auth';
|
|
2
2
|
import * as coreClient from '@azure/core-client';
|
|
3
|
+
import { OperationState } from '@azure/core-lro';
|
|
3
4
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
4
|
-
import {
|
|
5
|
-
import { PollOperationState } from '@azure/core-lro';
|
|
5
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
6
6
|
|
|
7
7
|
/** Defines values for AccountKeyType. */
|
|
8
8
|
export declare type AccountKeyType = "Primary" | "Secondary";
|
|
@@ -48,8 +48,6 @@ export declare type ApplicationGetResponse = Application;
|
|
|
48
48
|
|
|
49
49
|
/** Optional parameters. */
|
|
50
50
|
export declare interface ApplicationListNextOptionalParams extends coreClient.OperationOptions {
|
|
51
|
-
/** The maximum number of items to return in the response. */
|
|
52
|
-
maxresults?: number;
|
|
53
51
|
}
|
|
54
52
|
|
|
55
53
|
/** Contains response data for the listNext operation. */
|
|
@@ -166,8 +164,6 @@ export declare type ApplicationPackageGetResponse = ApplicationPackage;
|
|
|
166
164
|
|
|
167
165
|
/** Optional parameters. */
|
|
168
166
|
export declare interface ApplicationPackageListNextOptionalParams extends coreClient.OperationOptions {
|
|
169
|
-
/** The maximum number of items to return in the response. */
|
|
170
|
-
maxresults?: number;
|
|
171
167
|
}
|
|
172
168
|
|
|
173
169
|
/** Contains response data for the listNext operation. */
|
|
@@ -640,7 +636,7 @@ export declare interface BatchAccountOperations {
|
|
|
640
636
|
* you must make sure your network allows outbound access to these endpoints. Failure to allow access
|
|
641
637
|
* to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
|
|
642
638
|
* about creating a pool inside of a virtual network, see
|
|
643
|
-
* https://docs.microsoft.com/
|
|
639
|
+
* https://docs.microsoft.com/azure/batch/batch-virtual-network.
|
|
644
640
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
645
641
|
* @param accountName The name of the Batch account.
|
|
646
642
|
* @param options The options parameters.
|
|
@@ -657,7 +653,7 @@ export declare interface BatchAccountOperations {
|
|
|
657
653
|
* @param parameters Additional parameters for account creation.
|
|
658
654
|
* @param options The options parameters.
|
|
659
655
|
*/
|
|
660
|
-
beginCreate(resourceGroupName: string, accountName: string, parameters: BatchAccountCreateParameters, options?: BatchAccountCreateOptionalParams): Promise<
|
|
656
|
+
beginCreate(resourceGroupName: string, accountName: string, parameters: BatchAccountCreateParameters, options?: BatchAccountCreateOptionalParams): Promise<SimplePollerLike<OperationState<BatchAccountCreateResponse>, BatchAccountCreateResponse>>;
|
|
661
657
|
/**
|
|
662
658
|
* Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with
|
|
663
659
|
* this API and should instead be updated with the Update Batch Account API.
|
|
@@ -684,7 +680,7 @@ export declare interface BatchAccountOperations {
|
|
|
684
680
|
* @param accountName The name of the Batch account.
|
|
685
681
|
* @param options The options parameters.
|
|
686
682
|
*/
|
|
687
|
-
beginDelete(resourceGroupName: string, accountName: string, options?: BatchAccountDeleteOptionalParams): Promise<
|
|
683
|
+
beginDelete(resourceGroupName: string, accountName: string, options?: BatchAccountDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
688
684
|
/**
|
|
689
685
|
* Deletes the specified Batch account.
|
|
690
686
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
@@ -972,12 +968,6 @@ export declare type CertificateGetResponse = CertificateGetHeaders & Certificate
|
|
|
972
968
|
|
|
973
969
|
/** Optional parameters. */
|
|
974
970
|
export declare interface CertificateListByBatchAccountNextOptionalParams extends coreClient.OperationOptions {
|
|
975
|
-
/** The maximum number of items to return in the response. */
|
|
976
|
-
maxresults?: number;
|
|
977
|
-
/** OData filter expression. Valid properties for filtering are "properties/provisioningState", "properties/provisioningStateTransitionTime", "name". */
|
|
978
|
-
filter?: string;
|
|
979
|
-
/** Comma separated list of properties that should be returned. e.g. "properties/provisioningState". Only top level properties under properties/ are valid for selection. */
|
|
980
|
-
select?: string;
|
|
981
971
|
}
|
|
982
972
|
|
|
983
973
|
/** Contains response data for the listByBatchAccountNext operation. */
|
|
@@ -1044,7 +1034,7 @@ export declare interface CertificateOperations {
|
|
|
1044
1034
|
* SHA1-a3d1c5.
|
|
1045
1035
|
* @param options The options parameters.
|
|
1046
1036
|
*/
|
|
1047
|
-
beginDelete(resourceGroupName: string, accountName: string, certificateName: string, options?: CertificateDeleteOptionalParams): Promise<
|
|
1037
|
+
beginDelete(resourceGroupName: string, accountName: string, certificateName: string, options?: CertificateDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
1048
1038
|
/**
|
|
1049
1039
|
* Warning: This operation is deprecated and will be removed after February, 2024. Please use the
|
|
1050
1040
|
* [Azure KeyVault
|
|
@@ -1239,7 +1229,7 @@ export declare interface ComputeNodeIdentityReference {
|
|
|
1239
1229
|
/** The configuration for container-enabled pools. */
|
|
1240
1230
|
export declare interface ContainerConfiguration {
|
|
1241
1231
|
/** The container technology to be used. */
|
|
1242
|
-
type:
|
|
1232
|
+
type: ContainerType;
|
|
1243
1233
|
/** This is the full image reference, as would be specified to "docker pull". An image will be sourced from the default Docker registry unless the image is fully qualified with an alternative registry. */
|
|
1244
1234
|
containerImageNames?: string[];
|
|
1245
1235
|
/** If any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here. */
|
|
@@ -1258,6 +1248,16 @@ export declare interface ContainerRegistry {
|
|
|
1258
1248
|
identityReference?: ComputeNodeIdentityReference;
|
|
1259
1249
|
}
|
|
1260
1250
|
|
|
1251
|
+
/**
|
|
1252
|
+
* Defines values for ContainerType. \
|
|
1253
|
+
* {@link KnownContainerType} can be used interchangeably with ContainerType,
|
|
1254
|
+
* this enum contains the known values that the service supports.
|
|
1255
|
+
* ### Known values supported by the service
|
|
1256
|
+
* **DockerCompatible**: A Docker compatible container technology will be used to launch the containers. \
|
|
1257
|
+
* **CriCompatible**: A CRI based technology will be used to launch the containers.
|
|
1258
|
+
*/
|
|
1259
|
+
export declare type ContainerType = string;
|
|
1260
|
+
|
|
1261
1261
|
/** Defines values for ContainerWorkingDirectory. */
|
|
1262
1262
|
export declare type ContainerWorkingDirectory = "TaskWorkingDirectory" | "ContainerImageDefault";
|
|
1263
1263
|
|
|
@@ -1409,11 +1409,11 @@ export declare interface FixedScaleSettings {
|
|
|
1409
1409
|
}
|
|
1410
1410
|
|
|
1411
1411
|
/**
|
|
1412
|
-
* Given
|
|
1413
|
-
* continuation token that can be used to begin paging from
|
|
1412
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
1413
|
+
* returns a continuation token that can be used to begin paging from
|
|
1414
1414
|
* that point later.
|
|
1415
|
-
* @param page
|
|
1416
|
-
* @returns The continuation token that can be passed into byPage().
|
|
1415
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
1416
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
1417
1417
|
*/
|
|
1418
1418
|
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
1419
1419
|
|
|
@@ -1470,7 +1470,7 @@ export declare type KeySource = "Microsoft.Batch" | "Microsoft.KeyVault";
|
|
|
1470
1470
|
/** KeyVault configuration when using an encryption KeySource of Microsoft.KeyVault. */
|
|
1471
1471
|
export declare interface KeyVaultProperties {
|
|
1472
1472
|
/**
|
|
1473
|
-
* Full path to the
|
|
1473
|
+
* Full path to the secret with or without version. Example https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053. or https://mykeyvault.vault.azure.net/keys/testkey. To be usable the following prerequisites must be met:
|
|
1474
1474
|
*
|
|
1475
1475
|
* The Batch Account has a System Assigned identity
|
|
1476
1476
|
* The account identity has been granted Key/Get, Key/Unwrap and Key/Wrap permissions
|
|
@@ -1487,6 +1487,14 @@ export declare interface KeyVaultReference {
|
|
|
1487
1487
|
url: string;
|
|
1488
1488
|
}
|
|
1489
1489
|
|
|
1490
|
+
/** Known values of {@link ContainerType} that the service accepts. */
|
|
1491
|
+
export declare enum KnownContainerType {
|
|
1492
|
+
/** A Docker compatible container technology will be used to launch the containers. */
|
|
1493
|
+
DockerCompatible = "DockerCompatible",
|
|
1494
|
+
/** A CRI based technology will be used to launch the containers. */
|
|
1495
|
+
CriCompatible = "CriCompatible"
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1490
1498
|
/** Properties used to create a user account on a Linux node. */
|
|
1491
1499
|
export declare interface LinuxUserConfiguration {
|
|
1492
1500
|
/** The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the uid. */
|
|
@@ -1591,10 +1599,6 @@ export declare type LocationGetQuotasResponse = BatchLocationQuota;
|
|
|
1591
1599
|
|
|
1592
1600
|
/** Optional parameters. */
|
|
1593
1601
|
export declare interface LocationListSupportedCloudServiceSkusNextOptionalParams extends coreClient.OperationOptions {
|
|
1594
|
-
/** The maximum number of items to return in the response. */
|
|
1595
|
-
maxresults?: number;
|
|
1596
|
-
/** OData filter expression. Valid properties for filtering are "familyName". */
|
|
1597
|
-
filter?: string;
|
|
1598
1602
|
}
|
|
1599
1603
|
|
|
1600
1604
|
/** Contains response data for the listSupportedCloudServiceSkusNext operation. */
|
|
@@ -1613,10 +1617,6 @@ export declare type LocationListSupportedCloudServiceSkusResponse = SupportedSku
|
|
|
1613
1617
|
|
|
1614
1618
|
/** Optional parameters. */
|
|
1615
1619
|
export declare interface LocationListSupportedVirtualMachineSkusNextOptionalParams extends coreClient.OperationOptions {
|
|
1616
|
-
/** The maximum number of items to return in the response. */
|
|
1617
|
-
maxresults?: number;
|
|
1618
|
-
/** OData filter expression. Valid properties for filtering are "familyName". */
|
|
1619
|
-
filter?: string;
|
|
1620
1620
|
}
|
|
1621
1621
|
|
|
1622
1622
|
/** Contains response data for the listSupportedVirtualMachineSkusNext operation. */
|
|
@@ -1669,6 +1669,8 @@ export declare interface NetworkConfiguration {
|
|
|
1669
1669
|
endpointConfiguration?: PoolEndpointConfiguration;
|
|
1670
1670
|
/** This property is only supported on Pools with the virtualMachineConfiguration property. */
|
|
1671
1671
|
publicIPAddressConfiguration?: PublicIPAddressConfiguration;
|
|
1672
|
+
/** Accelerated networking enables single root I/O virtualization (SR-IOV) to a VM, which may lead to improved networking performance. For more details, see: https://learn.microsoft.com/azure/virtual-network/accelerated-networking-overview. */
|
|
1673
|
+
enableAcceleratedNetworking?: boolean;
|
|
1672
1674
|
}
|
|
1673
1675
|
|
|
1674
1676
|
/** Network profile for Batch account, which contains network rule settings for each endpoint. */
|
|
@@ -1977,26 +1979,6 @@ export declare type PoolIdentityType = "UserAssigned" | "None";
|
|
|
1977
1979
|
|
|
1978
1980
|
/** Optional parameters. */
|
|
1979
1981
|
export declare interface PoolListByBatchAccountNextOptionalParams extends coreClient.OperationOptions {
|
|
1980
|
-
/** The maximum number of items to return in the response. */
|
|
1981
|
-
maxresults?: number;
|
|
1982
|
-
/**
|
|
1983
|
-
* OData filter expression. Valid properties for filtering are:
|
|
1984
|
-
*
|
|
1985
|
-
* name
|
|
1986
|
-
* properties/allocationState
|
|
1987
|
-
* properties/allocationStateTransitionTime
|
|
1988
|
-
* properties/creationTime
|
|
1989
|
-
* properties/provisioningState
|
|
1990
|
-
* properties/provisioningStateTransitionTime
|
|
1991
|
-
* properties/lastModified
|
|
1992
|
-
* properties/vmSize
|
|
1993
|
-
* properties/interNodeCommunication
|
|
1994
|
-
* properties/scaleSettings/autoScale
|
|
1995
|
-
* properties/scaleSettings/fixedScale
|
|
1996
|
-
*/
|
|
1997
|
-
filter?: string;
|
|
1998
|
-
/** Comma separated list of properties that should be returned. e.g. "properties/provisioningState". Only top level properties under properties/ are valid for selection. */
|
|
1999
|
-
select?: string;
|
|
2000
1982
|
}
|
|
2001
1983
|
|
|
2002
1984
|
/** Contains response data for the listByBatchAccountNext operation. */
|
|
@@ -2064,7 +2046,7 @@ export declare interface PoolOperations {
|
|
|
2064
2046
|
* @param poolName The pool name. This must be unique within the account.
|
|
2065
2047
|
* @param options The options parameters.
|
|
2066
2048
|
*/
|
|
2067
|
-
beginDelete(resourceGroupName: string, accountName: string, poolName: string, options?: PoolDeleteOptionalParams): Promise<
|
|
2049
|
+
beginDelete(resourceGroupName: string, accountName: string, poolName: string, options?: PoolDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
2068
2050
|
/**
|
|
2069
2051
|
* Deletes the specified pool.
|
|
2070
2052
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
@@ -2193,8 +2175,6 @@ export declare type PrivateEndpointConnectionGetResponse = PrivateEndpointConnec
|
|
|
2193
2175
|
|
|
2194
2176
|
/** Optional parameters. */
|
|
2195
2177
|
export declare interface PrivateEndpointConnectionListByBatchAccountNextOptionalParams extends coreClient.OperationOptions {
|
|
2196
|
-
/** The maximum number of items to return in the response. */
|
|
2197
|
-
maxresults?: number;
|
|
2198
2178
|
}
|
|
2199
2179
|
|
|
2200
2180
|
/** Contains response data for the listByBatchAccountNext operation. */
|
|
@@ -2237,7 +2217,7 @@ export declare interface PrivateEndpointConnectionOperations {
|
|
|
2237
2217
|
* supplied will be updated, any property not supplied will be unchanged.
|
|
2238
2218
|
* @param options The options parameters.
|
|
2239
2219
|
*/
|
|
2240
|
-
beginUpdate(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionUpdateOptionalParams): Promise<
|
|
2220
|
+
beginUpdate(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionUpdateOptionalParams): Promise<SimplePollerLike<OperationState<PrivateEndpointConnectionUpdateResponse>, PrivateEndpointConnectionUpdateResponse>>;
|
|
2241
2221
|
/**
|
|
2242
2222
|
* Updates the properties of an existing private endpoint connection.
|
|
2243
2223
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
@@ -2257,7 +2237,7 @@ export declare interface PrivateEndpointConnectionOperations {
|
|
|
2257
2237
|
* within the account.
|
|
2258
2238
|
* @param options The options parameters.
|
|
2259
2239
|
*/
|
|
2260
|
-
beginDelete(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams): Promise<
|
|
2240
|
+
beginDelete(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams): Promise<SimplePollerLike<OperationState<PrivateEndpointConnectionDeleteResponse>, PrivateEndpointConnectionDeleteResponse>>;
|
|
2261
2241
|
/**
|
|
2262
2242
|
* Deletes the specified private endpoint connection.
|
|
2263
2243
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
@@ -2321,8 +2301,6 @@ export declare type PrivateLinkResourceGetResponse = PrivateLinkResource;
|
|
|
2321
2301
|
|
|
2322
2302
|
/** Optional parameters. */
|
|
2323
2303
|
export declare interface PrivateLinkResourceListByBatchAccountNextOptionalParams extends coreClient.OperationOptions {
|
|
2324
|
-
/** The maximum number of items to return in the response. */
|
|
2325
|
-
maxresults?: number;
|
|
2326
2304
|
}
|
|
2327
2305
|
|
|
2328
2306
|
/** Contains response data for the listByBatchAccountNext operation. */
|
|
@@ -2672,6 +2650,8 @@ export declare interface VMExtension {
|
|
|
2672
2650
|
typeHandlerVersion?: string;
|
|
2673
2651
|
/** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */
|
|
2674
2652
|
autoUpgradeMinorVersion?: boolean;
|
|
2653
|
+
/** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. */
|
|
2654
|
+
enableAutomaticUpgrade?: boolean;
|
|
2675
2655
|
/** JSON formatted public settings for the extension. */
|
|
2676
2656
|
settings?: Record<string, unknown>;
|
|
2677
2657
|
/** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */
|