@azure/arm-batch 7.2.1-alpha.20221101.1 → 8.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 +16 -8
- package/dist/index.js +337 -126
- 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 +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 +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 +1 -1
- package/dist-esm/samples-dev/batchAccountCreateSample.js +5 -5
- 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 +1 -1
- package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountUpdateSample.js +1 -1
- package/dist-esm/samples-dev/certificateCancelDeletionSample.js +5 -1
- package/dist-esm/samples-dev/certificateCancelDeletionSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateCreateSample.js +9 -9
- package/dist-esm/samples-dev/certificateDeleteSample.js +3 -3
- package/dist-esm/samples-dev/certificateGetSample.js +6 -6
- package/dist-esm/samples-dev/certificateListByBatchAccountSample.js +6 -6
- package/dist-esm/samples-dev/certificateUpdateSample.js +3 -3
- package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js +2 -2
- 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 +11 -10
- 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 +2 -2
- package/dist-esm/samples-dev/poolListByBatchAccountSample.js +2 -2
- package/dist-esm/samples-dev/poolStopResizeSample.js +1 -1
- package/dist-esm/samples-dev/poolUpdateSample.js +6 -5
- package/dist-esm/samples-dev/poolUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +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 +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.d.ts.map +1 -1
- package/dist-esm/src/batchManagementClient.js +21 -19
- package/dist-esm/src/batchManagementClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +20 -7
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +21 -6
- 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.d.ts.map +1 -1
- package/dist-esm/src/operations/applicationOperations.js +19 -7
- 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 +19 -7
- 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 +75 -30
- package/dist-esm/src/operations/batchAccountOperations.js.map +1 -1
- package/dist-esm/src/operations/certificateOperations.d.ts +25 -7
- package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/certificateOperations.js +44 -14
- package/dist-esm/src/operations/certificateOperations.js.map +1 -1
- package/dist-esm/src/operations/location.d.ts.map +1 -1
- package/dist-esm/src/operations/location.js +37 -14
- package/dist-esm/src/operations/location.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -7
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/poolOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/poolOperations.js +19 -7
- 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 +19 -7
- 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 +19 -7
- package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +1 -1
- package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts +22 -6
- package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/batch_examples.js +1 -1
- package/package.json +6 -5
- package/review/arm-batch.api.md +11 -3
- package/src/batchManagementClient.ts +27 -21
- package/src/index.ts +1 -0
- package/src/models/index.ts +20 -7
- package/src/models/mappers.ts +23 -6
- package/src/models/parameters.ts +1 -1
- package/src/operations/applicationOperations.ts +27 -9
- package/src/operations/applicationPackageOperations.ts +28 -14
- package/src/operations/batchAccountOperations.ts +98 -43
- package/src/operations/certificateOperations.ts +51 -19
- package/src/operations/location.ts +47 -23
- package/src/operations/operations.ts +21 -8
- package/src/operations/poolOperations.ts +26 -12
- package/src/operations/privateEndpointConnectionOperations.ts +26 -12
- package/src/operations/privateLinkResourceOperations.ts +26 -12
- package/src/operationsInterfaces/batchAccountOperations.ts +1 -1
- package/src/operationsInterfaces/certificateOperations.ts +22 -6
- package/src/pagingHelper.ts +39 -0
- package/types/arm-batch.d.ts +53 -14
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
const pageMap = new WeakMap();
|
|
9
|
+
/**
|
|
10
|
+
* Given a result page from a pageable operation, returns a
|
|
11
|
+
* continuation token that can be used to begin paging from
|
|
12
|
+
* that point later.
|
|
13
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
14
|
+
* @returns The continuation token that can be passed into byPage().
|
|
15
|
+
*/
|
|
16
|
+
export function getContinuationToken(page) {
|
|
17
|
+
var _a;
|
|
18
|
+
if (typeof page !== "object" || page === null) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
22
|
+
}
|
|
23
|
+
export function setContinuationToken(page, continuationToken) {
|
|
24
|
+
var _a;
|
|
25
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
29
|
+
pageInfo.continuationToken = continuationToken;
|
|
30
|
+
pageMap.set(page, pageInfo);
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=pagingHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE;QAC7C,OAAO,SAAS,CAAC;KAClB;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE;QACnE,OAAO;KACR;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for BatchManagementClient.",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "8.0.0",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=14.0.0"
|
|
9
9
|
},
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@azure/core-lro": "^2.2.0",
|
|
12
12
|
"@azure/abort-controller": "^1.0.0",
|
|
13
13
|
"@azure/core-paging": "^1.2.0",
|
|
14
|
-
"@azure/core-client": "^1.
|
|
14
|
+
"@azure/core-client": "^1.6.1",
|
|
15
15
|
"@azure/core-auth": "^1.3.0",
|
|
16
16
|
"@azure/core-rest-pipeline": "^1.8.0",
|
|
17
17
|
"tslib": "^2.2.0"
|
|
@@ -36,17 +36,18 @@
|
|
|
36
36
|
"mkdirp": "^1.0.4",
|
|
37
37
|
"rollup": "^2.66.1",
|
|
38
38
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
39
|
-
"typescript": "~4.
|
|
39
|
+
"typescript": "~4.8.0",
|
|
40
40
|
"uglify-js": "^3.4.9",
|
|
41
41
|
"rimraf": "^3.0.0",
|
|
42
42
|
"@azure/identity": "^2.0.1",
|
|
43
43
|
"@azure-tools/test-recorder": "^2.0.0",
|
|
44
|
-
"@azure-tools/test-credential": "
|
|
44
|
+
"@azure-tools/test-credential": "^1.0.0",
|
|
45
45
|
"mocha": "^7.1.1",
|
|
46
46
|
"@types/chai": "^4.2.8",
|
|
47
47
|
"chai": "^4.2.0",
|
|
48
48
|
"cross-env": "^7.0.2",
|
|
49
|
-
"@
|
|
49
|
+
"@types/node": "^14.0.0",
|
|
50
|
+
"@azure/dev-tool": "^1.0.0",
|
|
50
51
|
"@azure/arm-storage": "^17.1.0"
|
|
51
52
|
},
|
|
52
53
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/batch/arm-batch",
|
package/review/arm-batch.api.md
CHANGED
|
@@ -661,7 +661,7 @@ export interface CifsMountConfiguration {
|
|
|
661
661
|
password: string;
|
|
662
662
|
relativeMountPath: string;
|
|
663
663
|
source: string;
|
|
664
|
-
|
|
664
|
+
userName: string;
|
|
665
665
|
}
|
|
666
666
|
|
|
667
667
|
// @public
|
|
@@ -805,6 +805,9 @@ export interface FixedScaleSettings {
|
|
|
805
805
|
targetLowPriorityNodes?: number;
|
|
806
806
|
}
|
|
807
807
|
|
|
808
|
+
// @public
|
|
809
|
+
export function getContinuationToken(page: unknown): string | undefined;
|
|
810
|
+
|
|
808
811
|
// @public
|
|
809
812
|
export interface ImageReference {
|
|
810
813
|
id?: string;
|
|
@@ -977,7 +980,7 @@ export type NameAvailabilityReason = "Invalid" | "AlreadyExists";
|
|
|
977
980
|
|
|
978
981
|
// @public
|
|
979
982
|
export interface NetworkConfiguration {
|
|
980
|
-
|
|
983
|
+
dynamicVnetAssignmentScope?: DynamicVNetAssignmentScope;
|
|
981
984
|
endpointConfiguration?: PoolEndpointConfiguration;
|
|
982
985
|
publicIPAddressConfiguration?: PublicIPAddressConfiguration;
|
|
983
986
|
subnetId?: string;
|
|
@@ -1007,6 +1010,9 @@ export interface NFSMountConfiguration {
|
|
|
1007
1010
|
source: string;
|
|
1008
1011
|
}
|
|
1009
1012
|
|
|
1013
|
+
// @public
|
|
1014
|
+
export type NodeCommunicationMode = "Default" | "Classic" | "Simplified";
|
|
1015
|
+
|
|
1010
1016
|
// @public
|
|
1011
1017
|
export interface NodePlacementConfiguration {
|
|
1012
1018
|
policy?: NodePlacementPolicyType;
|
|
@@ -1088,6 +1094,7 @@ export interface Pool extends ProxyResource {
|
|
|
1088
1094
|
readonly creationTime?: Date;
|
|
1089
1095
|
readonly currentDedicatedNodes?: number;
|
|
1090
1096
|
readonly currentLowPriorityNodes?: number;
|
|
1097
|
+
readonly currentNodeCommunicationMode?: NodeCommunicationMode;
|
|
1091
1098
|
deploymentConfiguration?: DeploymentConfiguration;
|
|
1092
1099
|
displayName?: string;
|
|
1093
1100
|
identity?: BatchPoolIdentity;
|
|
@@ -1101,6 +1108,7 @@ export interface Pool extends ProxyResource {
|
|
|
1101
1108
|
readonly resizeOperationStatus?: ResizeOperationStatus;
|
|
1102
1109
|
scaleSettings?: ScaleSettings;
|
|
1103
1110
|
startTask?: StartTask;
|
|
1111
|
+
targetNodeCommunicationMode?: NodeCommunicationMode;
|
|
1104
1112
|
taskSchedulingPolicy?: TaskSchedulingPolicy;
|
|
1105
1113
|
taskSlotsPerNode?: number;
|
|
1106
1114
|
userAccounts?: UserAccount[];
|
|
@@ -1346,7 +1354,7 @@ export interface PrivateLinkResourceOperations {
|
|
|
1346
1354
|
|
|
1347
1355
|
// @public
|
|
1348
1356
|
export interface PrivateLinkServiceConnectionState {
|
|
1349
|
-
readonly
|
|
1357
|
+
readonly actionsRequired?: string;
|
|
1350
1358
|
description?: string;
|
|
1351
1359
|
status: PrivateLinkServiceConnectionStatus;
|
|
1352
1360
|
}
|
|
@@ -71,54 +71,60 @@ export class BatchManagementClient extends coreClient.ServiceClient {
|
|
|
71
71
|
credential: credentials
|
|
72
72
|
};
|
|
73
73
|
|
|
74
|
-
const packageDetails = `azsdk-js-arm-batch/
|
|
74
|
+
const packageDetails = `azsdk-js-arm-batch/8.0.0`;
|
|
75
75
|
const userAgentPrefix =
|
|
76
76
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
77
77
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
78
78
|
: `${packageDetails}`;
|
|
79
79
|
|
|
80
|
-
if (!options.credentialScopes) {
|
|
81
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
82
|
-
}
|
|
83
80
|
const optionsWithDefaults = {
|
|
84
81
|
...defaults,
|
|
85
82
|
...options,
|
|
86
83
|
userAgentOptions: {
|
|
87
84
|
userAgentPrefix
|
|
88
85
|
},
|
|
89
|
-
|
|
86
|
+
endpoint:
|
|
90
87
|
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
91
88
|
};
|
|
92
89
|
super(optionsWithDefaults);
|
|
93
90
|
|
|
91
|
+
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
94
92
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
95
93
|
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
|
96
|
-
|
|
94
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
97
95
|
(pipelinePolicy) =>
|
|
98
96
|
pipelinePolicy.name ===
|
|
99
97
|
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
100
98
|
);
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
99
|
+
}
|
|
100
|
+
if (
|
|
101
|
+
!options ||
|
|
102
|
+
!options.pipeline ||
|
|
103
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
104
|
+
!bearerTokenAuthenticationPolicyFound
|
|
105
|
+
) {
|
|
106
|
+
this.pipeline.removePolicy({
|
|
107
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
108
|
+
});
|
|
109
|
+
this.pipeline.addPolicy(
|
|
110
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
111
|
+
credential: credentials,
|
|
112
|
+
scopes:
|
|
113
|
+
optionsWithDefaults.credentialScopes ??
|
|
114
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
115
|
+
challengeCallbacks: {
|
|
116
|
+
authorizeRequestOnChallenge:
|
|
117
|
+
coreClient.authorizeRequestOnClaimChallenge
|
|
118
|
+
}
|
|
119
|
+
})
|
|
120
|
+
);
|
|
115
121
|
}
|
|
116
122
|
// Parameter assignments
|
|
117
123
|
this.subscriptionId = subscriptionId;
|
|
118
124
|
|
|
119
125
|
// Assigning values to Constant parameters
|
|
120
126
|
this.$host = options.$host || "https://management.azure.com";
|
|
121
|
-
this.apiVersion = options.apiVersion || "2022-
|
|
127
|
+
this.apiVersion = options.apiVersion || "2022-10-01";
|
|
122
128
|
this.batchAccountOperations = new BatchAccountOperationsImpl(this);
|
|
123
129
|
this.applicationPackageOperations = new ApplicationPackageOperationsImpl(
|
|
124
130
|
this
|
package/src/index.ts
CHANGED
package/src/models/index.ts
CHANGED
|
@@ -151,7 +151,7 @@ export interface PrivateLinkServiceConnectionState {
|
|
|
151
151
|
* Action required on the private connection state
|
|
152
152
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
153
153
|
*/
|
|
154
|
-
readonly
|
|
154
|
+
readonly actionsRequired?: string;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
/** A definition of an Azure resource. */
|
|
@@ -698,7 +698,7 @@ export interface NetworkConfiguration {
|
|
|
698
698
|
/** The virtual network must be in the same region and subscription as the Azure Batch account. The specified subnet should have enough free IP addresses to accommodate the number of nodes in the pool. If the subnet doesn't have enough free IP addresses, the pool will partially allocate compute nodes and a resize error will occur. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule tasks on the compute nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the compute nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the compute nodes to unusable. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. For pools created with a virtual machine configuration, enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. For pools created with a cloud service configuration, enable ports 10100, 20100, and 30100. Also enable outbound connections to Azure Storage on port 443. For cloudServiceConfiguration pools, only 'classic' VNETs are supported. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration */
|
|
699
699
|
subnetId?: string;
|
|
700
700
|
/** The scope of dynamic vnet assignment. */
|
|
701
|
-
|
|
701
|
+
dynamicVnetAssignmentScope?: DynamicVNetAssignmentScope;
|
|
702
702
|
/** Pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property. */
|
|
703
703
|
endpointConfiguration?: PoolEndpointConfiguration;
|
|
704
704
|
/** This property is only supported on Pools with the virtualMachineConfiguration property. */
|
|
@@ -755,7 +755,7 @@ export interface TaskSchedulingPolicy {
|
|
|
755
755
|
|
|
756
756
|
/** Properties used to create a user on an Azure Batch node. */
|
|
757
757
|
export interface UserAccount {
|
|
758
|
-
/** The name of the user account. */
|
|
758
|
+
/** The name of the user account. Names can contain any Unicode characters up to a maximum length of 20. */
|
|
759
759
|
name: string;
|
|
760
760
|
/** The password for the user account. */
|
|
761
761
|
password: string;
|
|
@@ -863,7 +863,7 @@ export interface TaskContainerSettings {
|
|
|
863
863
|
workingDirectory?: ContainerWorkingDirectory;
|
|
864
864
|
}
|
|
865
865
|
|
|
866
|
-
/**
|
|
866
|
+
/** Warning: This object is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. */
|
|
867
867
|
export interface CertificateReference {
|
|
868
868
|
/** The fully qualified ID of the certificate to install on the pool. This must be inside the same batch account as the pool. */
|
|
869
869
|
id: string;
|
|
@@ -952,7 +952,7 @@ export interface NFSMountConfiguration {
|
|
|
952
952
|
/** Information used to connect to a CIFS file system. */
|
|
953
953
|
export interface CifsMountConfiguration {
|
|
954
954
|
/** The user to use for authentication against the CIFS file system. */
|
|
955
|
-
|
|
955
|
+
userName: string;
|
|
956
956
|
/** The URI of the file system to mount. */
|
|
957
957
|
source: string;
|
|
958
958
|
/** All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable. */
|
|
@@ -1221,7 +1221,7 @@ export interface Pool extends ProxyResource {
|
|
|
1221
1221
|
/** Using CloudServiceConfiguration specifies that the nodes should be creating using Azure Cloud Services (PaaS), while VirtualMachineConfiguration uses Azure Virtual Machines (IaaS). */
|
|
1222
1222
|
deploymentConfiguration?: DeploymentConfiguration;
|
|
1223
1223
|
/**
|
|
1224
|
-
* The number of compute nodes currently in the pool.
|
|
1224
|
+
* The number of dedicated compute nodes currently in the pool.
|
|
1225
1225
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1226
1226
|
*/
|
|
1227
1227
|
readonly currentDedicatedNodes?: number;
|
|
@@ -1251,7 +1251,11 @@ export interface Pool extends ProxyResource {
|
|
|
1251
1251
|
metadata?: MetadataItem[];
|
|
1252
1252
|
/** In an PATCH (update) operation, this property can be set to an empty object to remove the start task from the pool. */
|
|
1253
1253
|
startTask?: StartTask;
|
|
1254
|
-
/**
|
|
1254
|
+
/**
|
|
1255
|
+
* For Windows compute nodes, the Batch service installs the certificates to the specified certificate store and location. For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory.
|
|
1256
|
+
*
|
|
1257
|
+
* Warning: This property is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
1258
|
+
*/
|
|
1255
1259
|
certificates?: CertificateReference[];
|
|
1256
1260
|
/** Changes to application package references affect all new compute nodes joining the pool, but do not affect compute nodes that are already in the pool until they are rebooted or reimaged. There is a maximum of 10 application package references on any given pool. */
|
|
1257
1261
|
applicationPackages?: ApplicationPackageReference[];
|
|
@@ -1264,6 +1268,13 @@ export interface Pool extends ProxyResource {
|
|
|
1264
1268
|
readonly resizeOperationStatus?: ResizeOperationStatus;
|
|
1265
1269
|
/** This supports Azure Files, NFS, CIFS/SMB, and Blobfuse. */
|
|
1266
1270
|
mountConfiguration?: MountConfiguration[];
|
|
1271
|
+
/** If omitted, the default value is Default. */
|
|
1272
|
+
targetNodeCommunicationMode?: NodeCommunicationMode;
|
|
1273
|
+
/**
|
|
1274
|
+
* Determines how a pool communicates with the Batch service.
|
|
1275
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1276
|
+
*/
|
|
1277
|
+
readonly currentNodeCommunicationMode?: NodeCommunicationMode;
|
|
1267
1278
|
}
|
|
1268
1279
|
|
|
1269
1280
|
/** Contains information about an Azure Batch account. */
|
|
@@ -1591,6 +1602,8 @@ export type ContainerWorkingDirectory =
|
|
|
1591
1602
|
export type CertificateStoreLocation = "CurrentUser" | "LocalMachine";
|
|
1592
1603
|
/** Defines values for CertificateVisibility. */
|
|
1593
1604
|
export type CertificateVisibility = "StartTask" | "Task" | "RemoteUser";
|
|
1605
|
+
/** Defines values for NodeCommunicationMode. */
|
|
1606
|
+
export type NodeCommunicationMode = "Default" | "Classic" | "Simplified";
|
|
1594
1607
|
/** Defines values for PoolIdentityType. */
|
|
1595
1608
|
export type PoolIdentityType = "UserAssigned" | "None";
|
|
1596
1609
|
|
package/src/models/mappers.ts
CHANGED
|
@@ -375,8 +375,8 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = {
|
|
|
375
375
|
name: "String"
|
|
376
376
|
}
|
|
377
377
|
},
|
|
378
|
-
|
|
379
|
-
serializedName: "
|
|
378
|
+
actionsRequired: {
|
|
379
|
+
serializedName: "actionsRequired",
|
|
380
380
|
readOnly: true,
|
|
381
381
|
type: {
|
|
382
382
|
name: "String"
|
|
@@ -1813,8 +1813,8 @@ export const NetworkConfiguration: coreClient.CompositeMapper = {
|
|
|
1813
1813
|
name: "String"
|
|
1814
1814
|
}
|
|
1815
1815
|
},
|
|
1816
|
-
|
|
1817
|
-
serializedName: "
|
|
1816
|
+
dynamicVnetAssignmentScope: {
|
|
1817
|
+
serializedName: "dynamicVnetAssignmentScope",
|
|
1818
1818
|
type: {
|
|
1819
1819
|
name: "Enum",
|
|
1820
1820
|
allowedValues: ["none", "job"]
|
|
@@ -2614,8 +2614,8 @@ export const CifsMountConfiguration: coreClient.CompositeMapper = {
|
|
|
2614
2614
|
name: "Composite",
|
|
2615
2615
|
className: "CifsMountConfiguration",
|
|
2616
2616
|
modelProperties: {
|
|
2617
|
-
|
|
2618
|
-
serializedName: "
|
|
2617
|
+
userName: {
|
|
2618
|
+
serializedName: "userName",
|
|
2619
2619
|
required: true,
|
|
2620
2620
|
type: {
|
|
2621
2621
|
name: "String"
|
|
@@ -3358,6 +3358,22 @@ export const Pool: coreClient.CompositeMapper = {
|
|
|
3358
3358
|
}
|
|
3359
3359
|
}
|
|
3360
3360
|
}
|
|
3361
|
+
},
|
|
3362
|
+
targetNodeCommunicationMode: {
|
|
3363
|
+
serializedName: "properties.targetNodeCommunicationMode",
|
|
3364
|
+
type: {
|
|
3365
|
+
name: "Enum",
|
|
3366
|
+
allowedValues: ["Default", "Classic", "Simplified"]
|
|
3367
|
+
}
|
|
3368
|
+
},
|
|
3369
|
+
currentNodeCommunicationMode: {
|
|
3370
|
+
serializedName: "properties.currentNodeCommunicationMode",
|
|
3371
|
+
readOnly: true,
|
|
3372
|
+
nullable: true,
|
|
3373
|
+
type: {
|
|
3374
|
+
name: "Enum",
|
|
3375
|
+
allowedValues: ["Default", "Classic", "Simplified"]
|
|
3376
|
+
}
|
|
3361
3377
|
}
|
|
3362
3378
|
}
|
|
3363
3379
|
}
|
|
@@ -3518,6 +3534,7 @@ export const BatchAccount: coreClient.CompositeMapper = {
|
|
|
3518
3534
|
allowedAuthenticationModes: {
|
|
3519
3535
|
serializedName: "properties.allowedAuthenticationModes",
|
|
3520
3536
|
readOnly: true,
|
|
3537
|
+
nullable: true,
|
|
3521
3538
|
type: {
|
|
3522
3539
|
name: "Sequence",
|
|
3523
3540
|
element: {
|
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: "2022-
|
|
98
|
+
defaultValue: "2022-10-01",
|
|
99
99
|
isConstant: true,
|
|
100
100
|
serializedName: "api-version",
|
|
101
101
|
type: {
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { ApplicationOperations } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,6 +17,7 @@ import {
|
|
|
16
17
|
Application,
|
|
17
18
|
ApplicationListNextOptionalParams,
|
|
18
19
|
ApplicationListOptionalParams,
|
|
20
|
+
ApplicationListResponse,
|
|
19
21
|
ApplicationCreateOptionalParams,
|
|
20
22
|
ApplicationCreateResponse,
|
|
21
23
|
ApplicationDeleteOptionalParams,
|
|
@@ -23,7 +25,6 @@ import {
|
|
|
23
25
|
ApplicationGetResponse,
|
|
24
26
|
ApplicationUpdateOptionalParams,
|
|
25
27
|
ApplicationUpdateResponse,
|
|
26
|
-
ApplicationListResponse,
|
|
27
28
|
ApplicationListNextResponse
|
|
28
29
|
} from "../models";
|
|
29
30
|
|
|
@@ -59,8 +60,16 @@ export class ApplicationOperationsImpl implements ApplicationOperations {
|
|
|
59
60
|
[Symbol.asyncIterator]() {
|
|
60
61
|
return this;
|
|
61
62
|
},
|
|
62
|
-
byPage: () => {
|
|
63
|
-
|
|
63
|
+
byPage: (settings?: PageSettings) => {
|
|
64
|
+
if (settings?.maxPageSize) {
|
|
65
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
66
|
+
}
|
|
67
|
+
return this.listPagingPage(
|
|
68
|
+
resourceGroupName,
|
|
69
|
+
accountName,
|
|
70
|
+
options,
|
|
71
|
+
settings
|
|
72
|
+
);
|
|
64
73
|
}
|
|
65
74
|
};
|
|
66
75
|
}
|
|
@@ -68,11 +77,18 @@ export class ApplicationOperationsImpl implements ApplicationOperations {
|
|
|
68
77
|
private async *listPagingPage(
|
|
69
78
|
resourceGroupName: string,
|
|
70
79
|
accountName: string,
|
|
71
|
-
options?: ApplicationListOptionalParams
|
|
80
|
+
options?: ApplicationListOptionalParams,
|
|
81
|
+
settings?: PageSettings
|
|
72
82
|
): AsyncIterableIterator<Application[]> {
|
|
73
|
-
let result
|
|
74
|
-
|
|
75
|
-
|
|
83
|
+
let result: ApplicationListResponse;
|
|
84
|
+
let continuationToken = settings?.continuationToken;
|
|
85
|
+
if (!continuationToken) {
|
|
86
|
+
result = await this._list(resourceGroupName, accountName, options);
|
|
87
|
+
let page = result.value || [];
|
|
88
|
+
continuationToken = result.nextLink;
|
|
89
|
+
setContinuationToken(page, continuationToken);
|
|
90
|
+
yield page;
|
|
91
|
+
}
|
|
76
92
|
while (continuationToken) {
|
|
77
93
|
result = await this._listNext(
|
|
78
94
|
resourceGroupName,
|
|
@@ -81,7 +97,9 @@ export class ApplicationOperationsImpl implements ApplicationOperations {
|
|
|
81
97
|
options
|
|
82
98
|
);
|
|
83
99
|
continuationToken = result.nextLink;
|
|
84
|
-
|
|
100
|
+
let page = result.value || [];
|
|
101
|
+
setContinuationToken(page, continuationToken);
|
|
102
|
+
yield page;
|
|
85
103
|
}
|
|
86
104
|
}
|
|
87
105
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { ApplicationPackageOperations } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,6 +17,7 @@ import {
|
|
|
16
17
|
ApplicationPackage,
|
|
17
18
|
ApplicationPackageListNextOptionalParams,
|
|
18
19
|
ApplicationPackageListOptionalParams,
|
|
20
|
+
ApplicationPackageListResponse,
|
|
19
21
|
ActivateApplicationPackageParameters,
|
|
20
22
|
ApplicationPackageActivateOptionalParams,
|
|
21
23
|
ApplicationPackageActivateResponse,
|
|
@@ -24,7 +26,6 @@ import {
|
|
|
24
26
|
ApplicationPackageDeleteOptionalParams,
|
|
25
27
|
ApplicationPackageGetOptionalParams,
|
|
26
28
|
ApplicationPackageGetResponse,
|
|
27
|
-
ApplicationPackageListResponse,
|
|
28
29
|
ApplicationPackageListNextResponse
|
|
29
30
|
} from "../models";
|
|
30
31
|
|
|
@@ -68,12 +69,16 @@ export class ApplicationPackageOperationsImpl
|
|
|
68
69
|
[Symbol.asyncIterator]() {
|
|
69
70
|
return this;
|
|
70
71
|
},
|
|
71
|
-
byPage: () => {
|
|
72
|
+
byPage: (settings?: PageSettings) => {
|
|
73
|
+
if (settings?.maxPageSize) {
|
|
74
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
75
|
+
}
|
|
72
76
|
return this.listPagingPage(
|
|
73
77
|
resourceGroupName,
|
|
74
78
|
accountName,
|
|
75
79
|
applicationName,
|
|
76
|
-
options
|
|
80
|
+
options,
|
|
81
|
+
settings
|
|
77
82
|
);
|
|
78
83
|
}
|
|
79
84
|
};
|
|
@@ -83,16 +88,23 @@ export class ApplicationPackageOperationsImpl
|
|
|
83
88
|
resourceGroupName: string,
|
|
84
89
|
accountName: string,
|
|
85
90
|
applicationName: string,
|
|
86
|
-
options?: ApplicationPackageListOptionalParams
|
|
91
|
+
options?: ApplicationPackageListOptionalParams,
|
|
92
|
+
settings?: PageSettings
|
|
87
93
|
): AsyncIterableIterator<ApplicationPackage[]> {
|
|
88
|
-
let result
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
let result: ApplicationPackageListResponse;
|
|
95
|
+
let continuationToken = settings?.continuationToken;
|
|
96
|
+
if (!continuationToken) {
|
|
97
|
+
result = await this._list(
|
|
98
|
+
resourceGroupName,
|
|
99
|
+
accountName,
|
|
100
|
+
applicationName,
|
|
101
|
+
options
|
|
102
|
+
);
|
|
103
|
+
let page = result.value || [];
|
|
104
|
+
continuationToken = result.nextLink;
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
107
|
+
}
|
|
96
108
|
while (continuationToken) {
|
|
97
109
|
result = await this._listNext(
|
|
98
110
|
resourceGroupName,
|
|
@@ -102,7 +114,9 @@ export class ApplicationPackageOperationsImpl
|
|
|
102
114
|
options
|
|
103
115
|
);
|
|
104
116
|
continuationToken = result.nextLink;
|
|
105
|
-
|
|
117
|
+
let page = result.value || [];
|
|
118
|
+
setContinuationToken(page, continuationToken);
|
|
119
|
+
yield page;
|
|
106
120
|
}
|
|
107
121
|
}
|
|
108
122
|
|