@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
package/src/lroImpl.ts
CHANGED
|
@@ -6,29 +6,37 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT license.
|
|
11
|
+
|
|
12
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
9
13
|
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
10
14
|
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...restSpec
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
export function createLroSpec<T>(inputs: {
|
|
16
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
17
|
+
args: Record<string, unknown>;
|
|
18
|
+
spec: {
|
|
19
|
+
readonly requestBody?: unknown;
|
|
20
|
+
readonly path?: string;
|
|
21
|
+
readonly httpMethod: string;
|
|
22
|
+
} & Record<string, any>;
|
|
23
|
+
}): LongRunningOperation<T> {
|
|
24
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
25
|
+
return {
|
|
26
|
+
requestMethod: spec.httpMethod,
|
|
27
|
+
requestPath: spec.path!,
|
|
28
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
29
|
+
sendPollRequest: (
|
|
30
|
+
path: string,
|
|
31
|
+
options?: { abortSignal?: AbortSignalLike }
|
|
32
|
+
) => {
|
|
33
|
+
const { requestBody, ...restSpec } = spec;
|
|
34
|
+
return sendOperationFn(args, {
|
|
35
|
+
...restSpec,
|
|
36
|
+
httpMethod: "GET",
|
|
37
|
+
path,
|
|
38
|
+
abortSignal: options?.abortSignal
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
};
|
|
34
42
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -91,7 +91,7 @@ export interface EncryptionProperties {
|
|
|
91
91
|
/** KeyVault configuration when using an encryption KeySource of Microsoft.KeyVault. */
|
|
92
92
|
export interface KeyVaultProperties {
|
|
93
93
|
/**
|
|
94
|
-
* Full path to the
|
|
94
|
+
* 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:
|
|
95
95
|
*
|
|
96
96
|
* The Batch Account has a System Assigned identity
|
|
97
97
|
* The account identity has been granted Key/Get, Key/Unwrap and Key/Wrap permissions
|
|
@@ -582,7 +582,7 @@ export interface DataDisk {
|
|
|
582
582
|
/** The configuration for container-enabled pools. */
|
|
583
583
|
export interface ContainerConfiguration {
|
|
584
584
|
/** The container technology to be used. */
|
|
585
|
-
type:
|
|
585
|
+
type: ContainerType;
|
|
586
586
|
/** 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. */
|
|
587
587
|
containerImageNames?: string[];
|
|
588
588
|
/** If any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here. */
|
|
@@ -625,6 +625,8 @@ export interface VMExtension {
|
|
|
625
625
|
typeHandlerVersion?: string;
|
|
626
626
|
/** 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. */
|
|
627
627
|
autoUpgradeMinorVersion?: boolean;
|
|
628
|
+
/** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. */
|
|
629
|
+
enableAutomaticUpgrade?: boolean;
|
|
628
630
|
/** JSON formatted public settings for the extension. */
|
|
629
631
|
settings?: Record<string, unknown>;
|
|
630
632
|
/** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */
|
|
@@ -703,6 +705,8 @@ export interface NetworkConfiguration {
|
|
|
703
705
|
endpointConfiguration?: PoolEndpointConfiguration;
|
|
704
706
|
/** This property is only supported on Pools with the virtualMachineConfiguration property. */
|
|
705
707
|
publicIPAddressConfiguration?: PublicIPAddressConfiguration;
|
|
708
|
+
/** 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. */
|
|
709
|
+
enableAcceleratedNetworking?: boolean;
|
|
706
710
|
}
|
|
707
711
|
|
|
708
712
|
/** The endpoint configuration for a pool. */
|
|
@@ -1504,6 +1508,23 @@ export interface PoolStopResizeHeaders {
|
|
|
1504
1508
|
eTag?: string;
|
|
1505
1509
|
}
|
|
1506
1510
|
|
|
1511
|
+
/** Known values of {@link ContainerType} that the service accepts. */
|
|
1512
|
+
export enum KnownContainerType {
|
|
1513
|
+
/** A Docker compatible container technology will be used to launch the containers. */
|
|
1514
|
+
DockerCompatible = "DockerCompatible",
|
|
1515
|
+
/** A CRI based technology will be used to launch the containers. */
|
|
1516
|
+
CriCompatible = "CriCompatible"
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
/**
|
|
1520
|
+
* Defines values for ContainerType. \
|
|
1521
|
+
* {@link KnownContainerType} can be used interchangeably with ContainerType,
|
|
1522
|
+
* this enum contains the known values that the service supports.
|
|
1523
|
+
* ### Known values supported by the service
|
|
1524
|
+
* **DockerCompatible**: A Docker compatible container technology will be used to launch the containers. \
|
|
1525
|
+
* **CriCompatible**: A CRI based technology will be used to launch the containers.
|
|
1526
|
+
*/
|
|
1527
|
+
export type ContainerType = string;
|
|
1507
1528
|
/** Defines values for AutoStorageAuthenticationMode. */
|
|
1508
1529
|
export type AutoStorageAuthenticationMode =
|
|
1509
1530
|
| "StorageKeys"
|
|
@@ -1763,10 +1784,7 @@ export type ApplicationPackageListResponse = ListApplicationPackagesResult;
|
|
|
1763
1784
|
|
|
1764
1785
|
/** Optional parameters. */
|
|
1765
1786
|
export interface ApplicationPackageListNextOptionalParams
|
|
1766
|
-
extends coreClient.OperationOptions {
|
|
1767
|
-
/** The maximum number of items to return in the response. */
|
|
1768
|
-
maxresults?: number;
|
|
1769
|
-
}
|
|
1787
|
+
extends coreClient.OperationOptions {}
|
|
1770
1788
|
|
|
1771
1789
|
/** Contains response data for the listNext operation. */
|
|
1772
1790
|
export type ApplicationPackageListNextResponse = ListApplicationPackagesResult;
|
|
@@ -1811,10 +1829,7 @@ export type ApplicationListResponse = ListApplicationsResult;
|
|
|
1811
1829
|
|
|
1812
1830
|
/** Optional parameters. */
|
|
1813
1831
|
export interface ApplicationListNextOptionalParams
|
|
1814
|
-
extends coreClient.OperationOptions {
|
|
1815
|
-
/** The maximum number of items to return in the response. */
|
|
1816
|
-
maxresults?: number;
|
|
1817
|
-
}
|
|
1832
|
+
extends coreClient.OperationOptions {}
|
|
1818
1833
|
|
|
1819
1834
|
/** Contains response data for the listNext operation. */
|
|
1820
1835
|
export type ApplicationListNextResponse = ListApplicationsResult;
|
|
@@ -1859,24 +1874,14 @@ export type LocationCheckNameAvailabilityResponse = CheckNameAvailabilityResult;
|
|
|
1859
1874
|
|
|
1860
1875
|
/** Optional parameters. */
|
|
1861
1876
|
export interface LocationListSupportedVirtualMachineSkusNextOptionalParams
|
|
1862
|
-
extends coreClient.OperationOptions {
|
|
1863
|
-
/** The maximum number of items to return in the response. */
|
|
1864
|
-
maxresults?: number;
|
|
1865
|
-
/** OData filter expression. Valid properties for filtering are "familyName". */
|
|
1866
|
-
filter?: string;
|
|
1867
|
-
}
|
|
1877
|
+
extends coreClient.OperationOptions {}
|
|
1868
1878
|
|
|
1869
1879
|
/** Contains response data for the listSupportedVirtualMachineSkusNext operation. */
|
|
1870
1880
|
export type LocationListSupportedVirtualMachineSkusNextResponse = SupportedSkusResult;
|
|
1871
1881
|
|
|
1872
1882
|
/** Optional parameters. */
|
|
1873
1883
|
export interface LocationListSupportedCloudServiceSkusNextOptionalParams
|
|
1874
|
-
extends coreClient.OperationOptions {
|
|
1875
|
-
/** The maximum number of items to return in the response. */
|
|
1876
|
-
maxresults?: number;
|
|
1877
|
-
/** OData filter expression. Valid properties for filtering are "familyName". */
|
|
1878
|
-
filter?: string;
|
|
1879
|
-
}
|
|
1884
|
+
extends coreClient.OperationOptions {}
|
|
1880
1885
|
|
|
1881
1886
|
/** Contains response data for the listSupportedCloudServiceSkusNext operation. */
|
|
1882
1887
|
export type LocationListSupportedCloudServiceSkusNextResponse = SupportedSkusResult;
|
|
@@ -1957,14 +1962,7 @@ export type CertificateCancelDeletionResponse = CertificateCancelDeletionHeaders
|
|
|
1957
1962
|
|
|
1958
1963
|
/** Optional parameters. */
|
|
1959
1964
|
export interface CertificateListByBatchAccountNextOptionalParams
|
|
1960
|
-
extends coreClient.OperationOptions {
|
|
1961
|
-
/** The maximum number of items to return in the response. */
|
|
1962
|
-
maxresults?: number;
|
|
1963
|
-
/** OData filter expression. Valid properties for filtering are "properties/provisioningState", "properties/provisioningStateTransitionTime", "name". */
|
|
1964
|
-
filter?: string;
|
|
1965
|
-
/** Comma separated list of properties that should be returned. e.g. "properties/provisioningState". Only top level properties under properties/ are valid for selection. */
|
|
1966
|
-
select?: string;
|
|
1967
|
-
}
|
|
1965
|
+
extends coreClient.OperationOptions {}
|
|
1968
1966
|
|
|
1969
1967
|
/** Contains response data for the listByBatchAccountNext operation. */
|
|
1970
1968
|
export type CertificateListByBatchAccountNextResponse = ListCertificatesResult;
|
|
@@ -1988,10 +1986,7 @@ export type PrivateLinkResourceGetResponse = PrivateLinkResource;
|
|
|
1988
1986
|
|
|
1989
1987
|
/** Optional parameters. */
|
|
1990
1988
|
export interface PrivateLinkResourceListByBatchAccountNextOptionalParams
|
|
1991
|
-
extends coreClient.OperationOptions {
|
|
1992
|
-
/** The maximum number of items to return in the response. */
|
|
1993
|
-
maxresults?: number;
|
|
1994
|
-
}
|
|
1989
|
+
extends coreClient.OperationOptions {}
|
|
1995
1990
|
|
|
1996
1991
|
/** Contains response data for the listByBatchAccountNext operation. */
|
|
1997
1992
|
export type PrivateLinkResourceListByBatchAccountNextResponse = ListPrivateLinkResourcesResult;
|
|
@@ -2041,10 +2036,7 @@ export type PrivateEndpointConnectionDeleteResponse = PrivateEndpointConnectionD
|
|
|
2041
2036
|
|
|
2042
2037
|
/** Optional parameters. */
|
|
2043
2038
|
export interface PrivateEndpointConnectionListByBatchAccountNextOptionalParams
|
|
2044
|
-
extends coreClient.OperationOptions {
|
|
2045
|
-
/** The maximum number of items to return in the response. */
|
|
2046
|
-
maxresults?: number;
|
|
2047
|
-
}
|
|
2039
|
+
extends coreClient.OperationOptions {}
|
|
2048
2040
|
|
|
2049
2041
|
/** Contains response data for the listByBatchAccountNext operation. */
|
|
2050
2042
|
export type PrivateEndpointConnectionListByBatchAccountNextResponse = ListPrivateEndpointConnectionsResult;
|
|
@@ -2127,28 +2119,7 @@ export type PoolStopResizeResponse = PoolStopResizeHeaders & Pool;
|
|
|
2127
2119
|
|
|
2128
2120
|
/** Optional parameters. */
|
|
2129
2121
|
export interface PoolListByBatchAccountNextOptionalParams
|
|
2130
|
-
extends coreClient.OperationOptions {
|
|
2131
|
-
/** The maximum number of items to return in the response. */
|
|
2132
|
-
maxresults?: number;
|
|
2133
|
-
/**
|
|
2134
|
-
* OData filter expression. Valid properties for filtering are:
|
|
2135
|
-
*
|
|
2136
|
-
* name
|
|
2137
|
-
* properties/allocationState
|
|
2138
|
-
* properties/allocationStateTransitionTime
|
|
2139
|
-
* properties/creationTime
|
|
2140
|
-
* properties/provisioningState
|
|
2141
|
-
* properties/provisioningStateTransitionTime
|
|
2142
|
-
* properties/lastModified
|
|
2143
|
-
* properties/vmSize
|
|
2144
|
-
* properties/interNodeCommunication
|
|
2145
|
-
* properties/scaleSettings/autoScale
|
|
2146
|
-
* properties/scaleSettings/fixedScale
|
|
2147
|
-
*/
|
|
2148
|
-
filter?: string;
|
|
2149
|
-
/** Comma separated list of properties that should be returned. e.g. "properties/provisioningState". Only top level properties under properties/ are valid for selection. */
|
|
2150
|
-
select?: string;
|
|
2151
|
-
}
|
|
2122
|
+
extends coreClient.OperationOptions {}
|
|
2152
2123
|
|
|
2153
2124
|
/** Contains response data for the listByBatchAccountNext operation. */
|
|
2154
2125
|
export type PoolListByBatchAccountNextResponse = ListPoolsResult;
|
package/src/models/mappers.ts
CHANGED
|
@@ -1449,9 +1449,8 @@ export const ContainerConfiguration: coreClient.CompositeMapper = {
|
|
|
1449
1449
|
className: "ContainerConfiguration",
|
|
1450
1450
|
modelProperties: {
|
|
1451
1451
|
type: {
|
|
1452
|
-
defaultValue: "DockerCompatible",
|
|
1453
|
-
isConstant: true,
|
|
1454
1452
|
serializedName: "type",
|
|
1453
|
+
required: true,
|
|
1455
1454
|
type: {
|
|
1456
1455
|
name: "String"
|
|
1457
1456
|
}
|
|
@@ -1592,6 +1591,12 @@ export const VMExtension: coreClient.CompositeMapper = {
|
|
|
1592
1591
|
name: "Boolean"
|
|
1593
1592
|
}
|
|
1594
1593
|
},
|
|
1594
|
+
enableAutomaticUpgrade: {
|
|
1595
|
+
serializedName: "enableAutomaticUpgrade",
|
|
1596
|
+
type: {
|
|
1597
|
+
name: "Boolean"
|
|
1598
|
+
}
|
|
1599
|
+
},
|
|
1595
1600
|
settings: {
|
|
1596
1601
|
serializedName: "settings",
|
|
1597
1602
|
type: {
|
|
@@ -1833,6 +1838,12 @@ export const NetworkConfiguration: coreClient.CompositeMapper = {
|
|
|
1833
1838
|
name: "Composite",
|
|
1834
1839
|
className: "PublicIPAddressConfiguration"
|
|
1835
1840
|
}
|
|
1841
|
+
},
|
|
1842
|
+
enableAcceleratedNetworking: {
|
|
1843
|
+
serializedName: "enableAcceleratedNetworking",
|
|
1844
|
+
type: {
|
|
1845
|
+
name: "Boolean"
|
|
1846
|
+
}
|
|
1836
1847
|
}
|
|
1837
1848
|
}
|
|
1838
1849
|
}
|
package/src/models/parameters.ts
CHANGED
|
@@ -95,7 +95,7 @@ export const accountName: OperationURLParameter = {
|
|
|
95
95
|
export const apiVersion: OperationQueryParameter = {
|
|
96
96
|
parameterPath: "apiVersion",
|
|
97
97
|
mapper: {
|
|
98
|
-
defaultValue: "
|
|
98
|
+
defaultValue: "2023-05-01",
|
|
99
99
|
isConstant: true,
|
|
100
100
|
serializedName: "api-version",
|
|
101
101
|
type: {
|
|
@@ -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
|
BatchAccount,
|
|
20
24
|
BatchAccountListNextOptionalParams,
|
|
@@ -280,7 +284,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
280
284
|
* you must make sure your network allows outbound access to these endpoints. Failure to allow access
|
|
281
285
|
* to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
|
|
282
286
|
* about creating a pool inside of a virtual network, see
|
|
283
|
-
* https://docs.microsoft.com/
|
|
287
|
+
* https://docs.microsoft.com/azure/batch/batch-virtual-network.
|
|
284
288
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
285
289
|
* @param accountName The name of the Batch account.
|
|
286
290
|
* @param options The options parameters.
|
|
@@ -380,8 +384,8 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
380
384
|
parameters: BatchAccountCreateParameters,
|
|
381
385
|
options?: BatchAccountCreateOptionalParams
|
|
382
386
|
): Promise<
|
|
383
|
-
|
|
384
|
-
|
|
387
|
+
SimplePollerLike<
|
|
388
|
+
OperationState<BatchAccountCreateResponse>,
|
|
385
389
|
BatchAccountCreateResponse
|
|
386
390
|
>
|
|
387
391
|
> {
|
|
@@ -391,7 +395,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
391
395
|
): Promise<BatchAccountCreateResponse> => {
|
|
392
396
|
return this.client.sendOperationRequest(args, spec);
|
|
393
397
|
};
|
|
394
|
-
const
|
|
398
|
+
const sendOperationFn = async (
|
|
395
399
|
args: coreClient.OperationArguments,
|
|
396
400
|
spec: coreClient.OperationSpec
|
|
397
401
|
) => {
|
|
@@ -424,15 +428,18 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
424
428
|
};
|
|
425
429
|
};
|
|
426
430
|
|
|
427
|
-
const lro =
|
|
428
|
-
|
|
429
|
-
{ resourceGroupName, accountName, parameters, options },
|
|
430
|
-
createOperationSpec
|
|
431
|
-
);
|
|
432
|
-
const poller =
|
|
433
|
-
|
|
431
|
+
const lro = createLroSpec({
|
|
432
|
+
sendOperationFn,
|
|
433
|
+
args: { resourceGroupName, accountName, parameters, options },
|
|
434
|
+
spec: createOperationSpec
|
|
435
|
+
});
|
|
436
|
+
const poller = await createHttpPoller<
|
|
437
|
+
BatchAccountCreateResponse,
|
|
438
|
+
OperationState<BatchAccountCreateResponse>
|
|
439
|
+
>(lro, {
|
|
440
|
+
restoreFrom: options?.resumeFrom,
|
|
434
441
|
intervalInMs: options?.updateIntervalInMs,
|
|
435
|
-
|
|
442
|
+
resourceLocationConfig: "location"
|
|
436
443
|
});
|
|
437
444
|
await poller.poll();
|
|
438
445
|
return poller;
|
|
@@ -493,14 +500,14 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
493
500
|
resourceGroupName: string,
|
|
494
501
|
accountName: string,
|
|
495
502
|
options?: BatchAccountDeleteOptionalParams
|
|
496
|
-
): Promise<
|
|
503
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
497
504
|
const directSendOperation = async (
|
|
498
505
|
args: coreClient.OperationArguments,
|
|
499
506
|
spec: coreClient.OperationSpec
|
|
500
507
|
): Promise<void> => {
|
|
501
508
|
return this.client.sendOperationRequest(args, spec);
|
|
502
509
|
};
|
|
503
|
-
const
|
|
510
|
+
const sendOperationFn = async (
|
|
504
511
|
args: coreClient.OperationArguments,
|
|
505
512
|
spec: coreClient.OperationSpec
|
|
506
513
|
) => {
|
|
@@ -533,15 +540,15 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
533
540
|
};
|
|
534
541
|
};
|
|
535
542
|
|
|
536
|
-
const lro =
|
|
537
|
-
|
|
538
|
-
{ resourceGroupName, accountName, options },
|
|
539
|
-
deleteOperationSpec
|
|
540
|
-
);
|
|
541
|
-
const poller =
|
|
542
|
-
|
|
543
|
+
const lro = createLroSpec({
|
|
544
|
+
sendOperationFn,
|
|
545
|
+
args: { resourceGroupName, accountName, options },
|
|
546
|
+
spec: deleteOperationSpec
|
|
547
|
+
});
|
|
548
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
549
|
+
restoreFrom: options?.resumeFrom,
|
|
543
550
|
intervalInMs: options?.updateIntervalInMs,
|
|
544
|
-
|
|
551
|
+
resourceLocationConfig: "location"
|
|
545
552
|
});
|
|
546
553
|
await poller.poll();
|
|
547
554
|
return poller;
|
|
@@ -710,7 +717,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
|
710
717
|
* you must make sure your network allows outbound access to these endpoints. Failure to allow access
|
|
711
718
|
* to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
|
|
712
719
|
* about creating a pool inside of a virtual network, see
|
|
713
|
-
* https://docs.microsoft.com/
|
|
720
|
+
* https://docs.microsoft.com/azure/batch/batch-virtual-network.
|
|
714
721
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
715
722
|
* @param accountName The name of the Batch account.
|
|
716
723
|
* @param options The options parameters.
|
|
@@ -1084,7 +1091,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
1084
1091
|
bodyMapper: Mappers.CloudError
|
|
1085
1092
|
}
|
|
1086
1093
|
},
|
|
1087
|
-
queryParameters: [Parameters.apiVersion],
|
|
1088
1094
|
urlParameters: [
|
|
1089
1095
|
Parameters.$host,
|
|
1090
1096
|
Parameters.subscriptionId,
|
|
@@ -1104,7 +1110,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
1104
1110
|
bodyMapper: Mappers.CloudError
|
|
1105
1111
|
}
|
|
1106
1112
|
},
|
|
1107
|
-
queryParameters: [Parameters.apiVersion],
|
|
1108
1113
|
urlParameters: [
|
|
1109
1114
|
Parameters.$host,
|
|
1110
1115
|
Parameters.resourceGroupName,
|
|
@@ -1125,7 +1130,6 @@ const listDetectorsNextOperationSpec: coreClient.OperationSpec = {
|
|
|
1125
1130
|
bodyMapper: Mappers.CloudError
|
|
1126
1131
|
}
|
|
1127
1132
|
},
|
|
1128
|
-
queryParameters: [Parameters.apiVersion],
|
|
1129
1133
|
urlParameters: [
|
|
1130
1134
|
Parameters.$host,
|
|
1131
1135
|
Parameters.resourceGroupName,
|
|
@@ -1147,7 +1151,6 @@ const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.Oper
|
|
|
1147
1151
|
bodyMapper: Mappers.CloudError
|
|
1148
1152
|
}
|
|
1149
1153
|
},
|
|
1150
|
-
queryParameters: [Parameters.apiVersion],
|
|
1151
1154
|
urlParameters: [
|
|
1152
1155
|
Parameters.$host,
|
|
1153
1156
|
Parameters.resourceGroupName,
|
|
@@ -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
|
Certificate,
|
|
20
24
|
CertificateListByBatchAccountNextOptionalParams,
|
|
@@ -217,14 +221,14 @@ export class CertificateOperationsImpl implements CertificateOperations {
|
|
|
217
221
|
accountName: string,
|
|
218
222
|
certificateName: string,
|
|
219
223
|
options?: CertificateDeleteOptionalParams
|
|
220
|
-
): Promise<
|
|
224
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
221
225
|
const directSendOperation = async (
|
|
222
226
|
args: coreClient.OperationArguments,
|
|
223
227
|
spec: coreClient.OperationSpec
|
|
224
228
|
): Promise<void> => {
|
|
225
229
|
return this.client.sendOperationRequest(args, spec);
|
|
226
230
|
};
|
|
227
|
-
const
|
|
231
|
+
const sendOperationFn = async (
|
|
228
232
|
args: coreClient.OperationArguments,
|
|
229
233
|
spec: coreClient.OperationSpec
|
|
230
234
|
) => {
|
|
@@ -257,15 +261,15 @@ export class CertificateOperationsImpl implements CertificateOperations {
|
|
|
257
261
|
};
|
|
258
262
|
};
|
|
259
263
|
|
|
260
|
-
const lro =
|
|
261
|
-
|
|
262
|
-
{ resourceGroupName, accountName, certificateName, options },
|
|
263
|
-
deleteOperationSpec
|
|
264
|
-
);
|
|
265
|
-
const poller =
|
|
266
|
-
|
|
264
|
+
const lro = createLroSpec({
|
|
265
|
+
sendOperationFn,
|
|
266
|
+
args: { resourceGroupName, accountName, certificateName, options },
|
|
267
|
+
spec: deleteOperationSpec
|
|
268
|
+
});
|
|
269
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
270
|
+
restoreFrom: options?.resumeFrom,
|
|
267
271
|
intervalInMs: options?.updateIntervalInMs,
|
|
268
|
-
|
|
272
|
+
resourceLocationConfig: "location"
|
|
269
273
|
});
|
|
270
274
|
await poller.poll();
|
|
271
275
|
return poller;
|
|
@@ -543,12 +547,6 @@ const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = {
|
|
|
543
547
|
bodyMapper: Mappers.CloudError
|
|
544
548
|
}
|
|
545
549
|
},
|
|
546
|
-
queryParameters: [
|
|
547
|
-
Parameters.apiVersion,
|
|
548
|
-
Parameters.maxresults,
|
|
549
|
-
Parameters.filter,
|
|
550
|
-
Parameters.select
|
|
551
|
-
],
|
|
552
550
|
urlParameters: [
|
|
553
551
|
Parameters.$host,
|
|
554
552
|
Parameters.resourceGroupName,
|
|
@@ -396,11 +396,6 @@ const listSupportedVirtualMachineSkusNextOperationSpec: coreClient.OperationSpec
|
|
|
396
396
|
bodyMapper: Mappers.CloudError
|
|
397
397
|
}
|
|
398
398
|
},
|
|
399
|
-
queryParameters: [
|
|
400
|
-
Parameters.apiVersion,
|
|
401
|
-
Parameters.maxresults,
|
|
402
|
-
Parameters.filter
|
|
403
|
-
],
|
|
404
399
|
urlParameters: [
|
|
405
400
|
Parameters.$host,
|
|
406
401
|
Parameters.subscriptionId,
|
|
@@ -421,11 +416,6 @@ const listSupportedCloudServiceSkusNextOperationSpec: coreClient.OperationSpec =
|
|
|
421
416
|
bodyMapper: Mappers.CloudError
|
|
422
417
|
}
|
|
423
418
|
},
|
|
424
|
-
queryParameters: [
|
|
425
|
-
Parameters.apiVersion,
|
|
426
|
-
Parameters.maxresults,
|
|
427
|
-
Parameters.filter
|
|
428
|
-
],
|
|
429
419
|
urlParameters: [
|
|
430
420
|
Parameters.$host,
|
|
431
421
|
Parameters.subscriptionId,
|
|
@@ -143,7 +143,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
143
143
|
bodyMapper: Mappers.CloudError
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
|
-
queryParameters: [Parameters.apiVersion],
|
|
147
146
|
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
148
147
|
headerParameters: [Parameters.accept],
|
|
149
148
|
serializer
|
|
@@ -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
|
Pool,
|
|
20
24
|
PoolListByBatchAccountNextOptionalParams,
|
|
@@ -203,14 +207,14 @@ export class PoolOperationsImpl implements PoolOperations {
|
|
|
203
207
|
accountName: string,
|
|
204
208
|
poolName: string,
|
|
205
209
|
options?: PoolDeleteOptionalParams
|
|
206
|
-
): Promise<
|
|
210
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
207
211
|
const directSendOperation = async (
|
|
208
212
|
args: coreClient.OperationArguments,
|
|
209
213
|
spec: coreClient.OperationSpec
|
|
210
214
|
): Promise<void> => {
|
|
211
215
|
return this.client.sendOperationRequest(args, spec);
|
|
212
216
|
};
|
|
213
|
-
const
|
|
217
|
+
const sendOperationFn = async (
|
|
214
218
|
args: coreClient.OperationArguments,
|
|
215
219
|
spec: coreClient.OperationSpec
|
|
216
220
|
) => {
|
|
@@ -243,15 +247,15 @@ export class PoolOperationsImpl implements PoolOperations {
|
|
|
243
247
|
};
|
|
244
248
|
};
|
|
245
249
|
|
|
246
|
-
const lro =
|
|
247
|
-
|
|
248
|
-
{ resourceGroupName, accountName, poolName, options },
|
|
249
|
-
deleteOperationSpec
|
|
250
|
-
);
|
|
251
|
-
const poller =
|
|
252
|
-
|
|
250
|
+
const lro = createLroSpec({
|
|
251
|
+
sendOperationFn,
|
|
252
|
+
args: { resourceGroupName, accountName, poolName, options },
|
|
253
|
+
spec: deleteOperationSpec
|
|
254
|
+
});
|
|
255
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
256
|
+
restoreFrom: options?.resumeFrom,
|
|
253
257
|
intervalInMs: options?.updateIntervalInMs,
|
|
254
|
-
|
|
258
|
+
resourceLocationConfig: "location"
|
|
255
259
|
});
|
|
256
260
|
await poller.poll();
|
|
257
261
|
return poller;
|
|
@@ -558,12 +562,6 @@ const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = {
|
|
|
558
562
|
bodyMapper: Mappers.CloudError
|
|
559
563
|
}
|
|
560
564
|
},
|
|
561
|
-
queryParameters: [
|
|
562
|
-
Parameters.apiVersion,
|
|
563
|
-
Parameters.maxresults,
|
|
564
|
-
Parameters.filter,
|
|
565
|
-
Parameters.select
|
|
566
|
-
],
|
|
567
565
|
urlParameters: [
|
|
568
566
|
Parameters.$host,
|
|
569
567
|
Parameters.resourceGroupName,
|