@azure/arm-batch 9.1.1-alpha.20240313.1 → 9.2.0-alpha.20240315.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -10
- package/LICENSE +1 -1
- package/dist/index.js +1815 -1675
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/applicationCreateSample.js +3 -3
- package/dist-esm/samples-dev/applicationCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationDeleteSample.js +1 -1
- package/dist-esm/samples-dev/applicationGetSample.js +1 -1
- package/dist-esm/samples-dev/applicationListSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageActivateSample.js +2 -2
- package/dist-esm/samples-dev/applicationPackageActivateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationPackageCreateSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageDeleteSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageGetSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageListSample.js +1 -1
- package/dist-esm/samples-dev/applicationUpdateSample.js +2 -2
- package/dist-esm/samples-dev/batchAccountCreateSample.js +20 -20
- package/dist-esm/samples-dev/batchAccountCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountDeleteSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountGetDetectorSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountGetKeysSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountGetSample.js +2 -2
- package/dist-esm/samples-dev/batchAccountListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountListDetectorsSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.js +3 -3
- package/dist-esm/samples-dev/batchAccountListSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js +3 -3
- package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountUpdateSample.js +4 -4
- package/dist-esm/samples-dev/batchAccountUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateCancelDeletionSample.js +1 -1
- package/dist-esm/samples-dev/certificateCreateSample.js +7 -7
- package/dist-esm/samples-dev/certificateCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateDeleteSample.js +1 -1
- package/dist-esm/samples-dev/certificateGetSample.js +2 -2
- package/dist-esm/samples-dev/certificateListByBatchAccountSample.js +4 -4
- package/dist-esm/samples-dev/certificateListByBatchAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateUpdateSample.js +3 -3
- package/dist-esm/samples-dev/certificateUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js +5 -5
- package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/locationGetQuotasSample.js +1 -1
- package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.js +1 -1
- package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/poolCreateSample.js +178 -118
- package/dist-esm/samples-dev/poolCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/poolDeleteSample.js +1 -1
- package/dist-esm/samples-dev/poolDisableAutoScaleSample.js +1 -1
- package/dist-esm/samples-dev/poolGetSample.js +25 -6
- package/dist-esm/samples-dev/poolGetSample.js.map +1 -1
- package/dist-esm/samples-dev/poolListByBatchAccountSample.js +3 -3
- package/dist-esm/samples-dev/poolListByBatchAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/poolStopResizeSample.js +1 -1
- package/dist-esm/samples-dev/poolUpdateSample.js +14 -14
- package/dist-esm/samples-dev/poolUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js +4 -4
- package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourceGetSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js +1 -1
- package/dist-esm/src/batchManagementClient.js +11 -10
- package/dist-esm/src/batchManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +46 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +3 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1367 -1231
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +87 -87
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/applicationOperations.js +30 -30
- package/dist-esm/src/operations/applicationOperations.js.map +1 -1
- package/dist-esm/src/operations/applicationPackageOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/applicationPackageOperations.js +31 -31
- package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -1
- package/dist-esm/src/operations/batchAccountOperations.d.ts +2 -2
- package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/batchAccountOperations.js +95 -95
- package/dist-esm/src/operations/batchAccountOperations.js.map +1 -1
- package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/certificateOperations.js +43 -43
- package/dist-esm/src/operations/certificateOperations.js.map +1 -1
- package/dist-esm/src/operations/location.js +34 -34
- package/dist-esm/src/operations/location.js.map +1 -1
- package/dist-esm/src/operations/operations.js +9 -9
- package/dist-esm/src/operations/poolOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/poolOperations.js +48 -48
- package/dist-esm/src/operations/poolOperations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js +45 -45
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResourceOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkResourceOperations.js +16 -16
- package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +1 -1
- package/dist-esm/test/batch_examples.js +1 -1
- package/dist-esm/test/batch_examples.js.map +1 -1
- package/package.json +3 -4
- package/review/arm-batch.api.md +31 -0
- package/src/batchManagementClient.ts +22 -22
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +74 -14
- package/src/models/mappers.ts +1459 -1314
- package/src/models/parameters.ts +88 -88
- package/src/operations/applicationOperations.ts +54 -59
- package/src/operations/applicationPackageOperations.ts +59 -63
- package/src/operations/batchAccountOperations.ts +211 -223
- package/src/operations/certificateOperations.ts +80 -87
- package/src/operations/location.ts +96 -98
- package/src/operations/operations.ts +16 -16
- package/src/operations/poolOperations.ts +88 -96
- package/src/operations/privateEndpointConnectionOperations.ts +86 -91
- package/src/operations/privateLinkResourceOperations.ts +35 -36
- package/src/operationsInterfaces/applicationOperations.ts +6 -6
- package/src/operationsInterfaces/applicationPackageOperations.ts +6 -6
- package/src/operationsInterfaces/batchAccountOperations.ts +16 -16
- package/src/operationsInterfaces/certificateOperations.ts +8 -8
- package/src/operationsInterfaces/location.ts +5 -5
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/poolOperations.ts +9 -9
- package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +7 -7
- package/src/operationsInterfaces/privateLinkResourceOperations.ts +3 -3
- package/src/pagingHelper.ts +1 -1
- package/types/arm-batch.d.ts +51 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
9
|
// Copyright (c) Microsoft Corporation.
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
|
-
import { BatchManagementClient } from "@azure/arm-batch";
|
|
11
|
+
import { BatchManagementClient, } from "@azure/arm-batch";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
13
|
import * as dotenv from "dotenv";
|
|
14
14
|
dotenv.config();
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.
|
|
17
17
|
*
|
|
18
18
|
* @summary Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json
|
|
20
20
|
*/
|
|
21
21
|
function applicationPackageActivate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicationPackageActivateSample.js","sourceRoot":"","sources":["../../samples-dev/applicationPackageActivateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,
|
|
1
|
+
{"version":3,"file":"applicationPackageActivateSample.js","sourceRoot":"","sources":["../../samples-dev/applicationPackageActivateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,0BAA0B;;QACvC,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,8BAA8B,CAAC;QACxE,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,eAAe,GAAG,MAAM,CAAC;QAC/B,MAAM,WAAW,GAAG,GAAG,CAAC;QACxB,MAAM,UAAU,GAAyC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;QAC3E,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,4BAA4B,CAAC,QAAQ,CAC/D,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,0BAA0B,EAAE,CAAC;IAC/B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.
|
|
17
17
|
*
|
|
18
18
|
* @summary Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json
|
|
20
20
|
*/
|
|
21
21
|
function applicationPackageCreate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Deletes an application package record and its associated binary file.
|
|
17
17
|
*
|
|
18
18
|
* @summary Deletes an application package record and its associated binary file.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json
|
|
20
20
|
*/
|
|
21
21
|
function applicationPackageDelete() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets information about the specified application package.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets information about the specified application package.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json
|
|
20
20
|
*/
|
|
21
21
|
function applicationPackageGet() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Lists all of the application packages in the specified application.
|
|
17
17
|
*
|
|
18
18
|
* @summary Lists all of the application packages in the specified application.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json
|
|
20
20
|
*/
|
|
21
21
|
function applicationPackageList() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Updates settings for the specified application.
|
|
17
17
|
*
|
|
18
18
|
* @summary Updates settings for the specified application.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json
|
|
20
20
|
*/
|
|
21
21
|
function applicationUpdate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -27,7 +27,7 @@ function applicationUpdate() {
|
|
|
27
27
|
const parameters = {
|
|
28
28
|
allowUpdates: true,
|
|
29
29
|
defaultVersion: "2",
|
|
30
|
-
displayName: "myAppName"
|
|
30
|
+
displayName: "myAppName",
|
|
31
31
|
};
|
|
32
32
|
const credential = new DefaultAzureCredential();
|
|
33
33
|
const client = new BatchManagementClient(credential, subscriptionId);
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
9
|
// Copyright (c) Microsoft Corporation.
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
|
-
import { BatchManagementClient } from "@azure/arm-batch";
|
|
11
|
+
import { BatchManagementClient, } from "@azure/arm-batch";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
13
|
import * as dotenv from "dotenv";
|
|
14
14
|
dotenv.config();
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
17
17
|
*
|
|
18
18
|
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json
|
|
20
20
|
*/
|
|
21
21
|
function batchAccountCreateByos() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -25,14 +25,14 @@ function batchAccountCreateByos() {
|
|
|
25
25
|
const accountName = "sampleacct";
|
|
26
26
|
const parameters = {
|
|
27
27
|
autoStorage: {
|
|
28
|
-
storageAccountId: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"
|
|
28
|
+
storageAccountId: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
|
|
29
29
|
},
|
|
30
30
|
keyVaultReference: {
|
|
31
31
|
id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample",
|
|
32
|
-
url: "http://sample.vault.azure.net/"
|
|
32
|
+
url: "http://sample.vault.azure.net/",
|
|
33
33
|
},
|
|
34
34
|
location: "japaneast",
|
|
35
|
-
poolAllocationMode: "UserSubscription"
|
|
35
|
+
poolAllocationMode: "UserSubscription",
|
|
36
36
|
};
|
|
37
37
|
const credential = new DefaultAzureCredential();
|
|
38
38
|
const client = new BatchManagementClient(credential, subscriptionId);
|
|
@@ -44,7 +44,7 @@ function batchAccountCreateByos() {
|
|
|
44
44
|
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
45
45
|
*
|
|
46
46
|
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
47
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
47
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_Default.json
|
|
48
48
|
*/
|
|
49
49
|
function batchAccountCreateDefault() {
|
|
50
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -53,9 +53,9 @@ function batchAccountCreateDefault() {
|
|
|
53
53
|
const accountName = "sampleacct";
|
|
54
54
|
const parameters = {
|
|
55
55
|
autoStorage: {
|
|
56
|
-
storageAccountId: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"
|
|
56
|
+
storageAccountId: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
|
|
57
57
|
},
|
|
58
|
-
location: "japaneast"
|
|
58
|
+
location: "japaneast",
|
|
59
59
|
};
|
|
60
60
|
const credential = new DefaultAzureCredential();
|
|
61
61
|
const client = new BatchManagementClient(credential, subscriptionId);
|
|
@@ -67,7 +67,7 @@ function batchAccountCreateDefault() {
|
|
|
67
67
|
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
68
68
|
*
|
|
69
69
|
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
70
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
70
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_SystemAssignedIdentity.json
|
|
71
71
|
*/
|
|
72
72
|
function batchAccountCreateSystemAssignedIdentity() {
|
|
73
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -76,10 +76,10 @@ function batchAccountCreateSystemAssignedIdentity() {
|
|
|
76
76
|
const accountName = "sampleacct";
|
|
77
77
|
const parameters = {
|
|
78
78
|
autoStorage: {
|
|
79
|
-
storageAccountId: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"
|
|
79
|
+
storageAccountId: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
|
|
80
80
|
},
|
|
81
81
|
identity: { type: "SystemAssigned" },
|
|
82
|
-
location: "japaneast"
|
|
82
|
+
location: "japaneast",
|
|
83
83
|
};
|
|
84
84
|
const credential = new DefaultAzureCredential();
|
|
85
85
|
const client = new BatchManagementClient(credential, subscriptionId);
|
|
@@ -91,7 +91,7 @@ function batchAccountCreateSystemAssignedIdentity() {
|
|
|
91
91
|
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
92
92
|
*
|
|
93
93
|
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
94
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
94
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_UserAssignedIdentity.json
|
|
95
95
|
*/
|
|
96
96
|
function batchAccountCreateUserAssignedIdentity() {
|
|
97
97
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -100,15 +100,15 @@ function batchAccountCreateUserAssignedIdentity() {
|
|
|
100
100
|
const accountName = "sampleacct";
|
|
101
101
|
const parameters = {
|
|
102
102
|
autoStorage: {
|
|
103
|
-
storageAccountId: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"
|
|
103
|
+
storageAccountId: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
|
|
104
104
|
},
|
|
105
105
|
identity: {
|
|
106
106
|
type: "UserAssigned",
|
|
107
107
|
userAssignedIdentities: {
|
|
108
|
-
"/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {}
|
|
109
|
-
}
|
|
108
|
+
"/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {},
|
|
109
|
+
},
|
|
110
110
|
},
|
|
111
|
-
location: "japaneast"
|
|
111
|
+
location: "japaneast",
|
|
112
112
|
};
|
|
113
113
|
const credential = new DefaultAzureCredential();
|
|
114
114
|
const client = new BatchManagementClient(credential, subscriptionId);
|
|
@@ -120,7 +120,7 @@ function batchAccountCreateUserAssignedIdentity() {
|
|
|
120
120
|
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
121
121
|
*
|
|
122
122
|
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
123
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
123
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountCreate.json
|
|
124
124
|
*/
|
|
125
125
|
function privateBatchAccountCreate() {
|
|
126
126
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -129,14 +129,14 @@ function privateBatchAccountCreate() {
|
|
|
129
129
|
const accountName = "sampleacct";
|
|
130
130
|
const parameters = {
|
|
131
131
|
autoStorage: {
|
|
132
|
-
storageAccountId: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"
|
|
132
|
+
storageAccountId: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
|
|
133
133
|
},
|
|
134
134
|
keyVaultReference: {
|
|
135
135
|
id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample",
|
|
136
|
-
url: "http://sample.vault.azure.net/"
|
|
136
|
+
url: "http://sample.vault.azure.net/",
|
|
137
137
|
},
|
|
138
138
|
location: "japaneast",
|
|
139
|
-
publicNetworkAccess: "Disabled"
|
|
139
|
+
publicNetworkAccess: "Disabled",
|
|
140
140
|
};
|
|
141
141
|
const credential = new DefaultAzureCredential();
|
|
142
142
|
const client = new BatchManagementClient(credential, subscriptionId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batchAccountCreateSample.js","sourceRoot":"","sources":["../../samples-dev/batchAccountCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,
|
|
1
|
+
{"version":3,"file":"batchAccountCreateSample.js","sourceRoot":"","sources":["../../samples-dev/batchAccountCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,8BAA8B,CAAC;QACxE,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,UAAU,GAAiC;YAC/C,WAAW,EAAE;gBACX,gBAAgB,EACd,4HAA4H;aAC/H;YACD,iBAAiB,EAAE;gBACjB,EAAE,EAAE,6GAA6G;gBACjH,GAAG,EAAE,gCAAgC;aACtC;YACD,QAAQ,EAAE,WAAW;YACrB,kBAAkB,EAAE,kBAAkB;SACvC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC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AAG,CAAC,sBAAsB,CAAC,IAAI,8BAA8B,CAAC;QACxE,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,UAAU,GAAiC;YAC/C,WAAW,EAAE;gBACX,gBAAgB,EACd,4HAA4H;aAC/H;YACD,iBAAiB,EAAE;gBACjB,EAAE,EAAE,6GAA6G;gBACjH,GAAG,EAAE,gCAAgC;aACtC;YACD,QAAQ,EAAE,WAAW;YACrB,mBAAmB,EAAE,UAAU;SAChC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,kBAAkB,CACnE,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,sBAAsB,EAAE,CAAC;QACzB,yBAAyB,EAAE,CAAC;QAC5B,wCAAwC,EAAE,CAAC;QAC3C,sCAAsC,EAAE,CAAC;QACzC,yBAAyB,EAAE,CAAC;IAC9B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Deletes the specified Batch account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Deletes the specified Batch account.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json
|
|
20
20
|
*/
|
|
21
21
|
function batchAccountDelete() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets information about the given detector for a given Batch account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets information about the given detector for a given Batch account.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json
|
|
20
20
|
*/
|
|
21
21
|
function getDetector() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail.
|
|
17
17
|
*
|
|
18
18
|
* @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json
|
|
20
20
|
*/
|
|
21
21
|
function batchAccountGetKeys() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets information about the specified Batch account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets information about the specified Batch account.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json
|
|
20
20
|
*/
|
|
21
21
|
function batchAccountGet() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -33,7 +33,7 @@ function batchAccountGet() {
|
|
|
33
33
|
* This sample demonstrates how to Gets information about the specified Batch account.
|
|
34
34
|
*
|
|
35
35
|
* @summary Gets information about the specified Batch account.
|
|
36
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
36
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountGet.json
|
|
37
37
|
*/
|
|
38
38
|
function privateBatchAccountGet() {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets information about the Batch accounts associated with the specified resource group.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets information about the Batch accounts associated with the specified resource group.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json
|
|
20
20
|
*/
|
|
21
21
|
function batchAccountListByResourceGroup() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets information about the detectors available for a given Batch account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets information about the detectors available for a given Batch account.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json
|
|
20
20
|
*/
|
|
21
21
|
function listDetectors() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -13,10 +13,10 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
13
13
|
import * as dotenv from "dotenv";
|
|
14
14
|
dotenv.config();
|
|
15
15
|
/**
|
|
16
|
-
* This sample demonstrates how to Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network.
|
|
16
|
+
* This sample demonstrates how to Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
|
|
17
17
|
*
|
|
18
|
-
* @summary Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
18
|
+
* @summary Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json
|
|
20
20
|
*/
|
|
21
21
|
function listOutboundNetworkDependencies() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets information about the Batch accounts associated with the subscription.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets information about the Batch accounts associated with the subscription.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json
|
|
20
20
|
*/
|
|
21
21
|
function batchAccountList() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
9
|
// Copyright (c) Microsoft Corporation.
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
|
-
import { BatchManagementClient } from "@azure/arm-batch";
|
|
11
|
+
import { BatchManagementClient, } from "@azure/arm-batch";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
13
|
import * as dotenv from "dotenv";
|
|
14
14
|
dotenv.config();
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail.
|
|
17
17
|
*
|
|
18
18
|
* @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json
|
|
20
20
|
*/
|
|
21
21
|
function batchAccountRegenerateKey() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -24,7 +24,7 @@ function batchAccountRegenerateKey() {
|
|
|
24
24
|
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
|
|
25
25
|
const accountName = "sampleacct";
|
|
26
26
|
const parameters = {
|
|
27
|
-
keyName: "Primary"
|
|
27
|
+
keyName: "Primary",
|
|
28
28
|
};
|
|
29
29
|
const credential = new DefaultAzureCredential();
|
|
30
30
|
const client = new BatchManagementClient(credential, subscriptionId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batchAccountRegenerateKeySample.js","sourceRoot":"","sources":["../../samples-dev/batchAccountRegenerateKeySample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,
|
|
1
|
+
{"version":3,"file":"batchAccountRegenerateKeySample.js","sourceRoot":"","sources":["../../samples-dev/batchAccountRegenerateKeySample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,yBAAyB;;QACtC,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,8BAA8B,CAAC;QACxE,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,UAAU,GAAwC;YACtD,OAAO,EAAE,SAAS;SACnB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,aAAa,CAC9D,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,yBAAyB,EAAE,CAAC;IAC9B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.
|
|
17
17
|
*
|
|
18
18
|
* @summary Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json
|
|
20
20
|
*/
|
|
21
21
|
function batchAccountSynchronizeAutoStorageKeys() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
9
|
// Copyright (c) Microsoft Corporation.
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
|
-
import { BatchManagementClient } from "@azure/arm-batch";
|
|
11
|
+
import { BatchManagementClient, } from "@azure/arm-batch";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
13
|
import * as dotenv from "dotenv";
|
|
14
14
|
dotenv.config();
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Updates the properties of an existing Batch account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Updates the properties of an existing Batch account.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json
|
|
20
20
|
*/
|
|
21
21
|
function batchAccountUpdate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -25,8 +25,8 @@ function batchAccountUpdate() {
|
|
|
25
25
|
const accountName = "sampleacct";
|
|
26
26
|
const parameters = {
|
|
27
27
|
autoStorage: {
|
|
28
|
-
storageAccountId: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"
|
|
29
|
-
}
|
|
28
|
+
storageAccountId: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
|
|
29
|
+
},
|
|
30
30
|
};
|
|
31
31
|
const credential = new DefaultAzureCredential();
|
|
32
32
|
const client = new BatchManagementClient(credential, subscriptionId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batchAccountUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/batchAccountUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,
|
|
1
|
+
{"version":3,"file":"batchAccountUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/batchAccountUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,8BAA8B,CAAC;QACxE,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,UAAU,GAAiC;YAC/C,WAAW,EAAE;gBACX,gBAAgB,EACd,4HAA4H;aAC/H;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,MAAM,CACvD,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,kBAAkB,EAAE,CAAC;IACvB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -20,7 +20,7 @@ Warning: This operation is deprecated and will be removed after February, 2024.
|
|
|
20
20
|
* @summary If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate.
|
|
21
21
|
|
|
22
22
|
Warning: This operation 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.
|
|
23
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
23
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json
|
|
24
24
|
*/
|
|
25
25
|
function certificateCancelDeletion() {
|
|
26
26
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
9
|
// Copyright (c) Microsoft Corporation.
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
|
-
import { BatchManagementClient } from "@azure/arm-batch";
|
|
11
|
+
import { BatchManagementClient, } from "@azure/arm-batch";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
13
|
import * as dotenv from "dotenv";
|
|
14
14
|
dotenv.config();
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Warning: This operation 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.
|
|
17
17
|
*
|
|
18
18
|
* @summary Warning: This operation 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.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json
|
|
20
20
|
*/
|
|
21
21
|
function createCertificateFull() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -29,7 +29,7 @@ function createCertificateFull() {
|
|
|
29
29
|
data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...",
|
|
30
30
|
password: "<ExamplePassword>",
|
|
31
31
|
thumbprint: "0a0e4f50d51beadeac1d35afc5116098e7902e6e",
|
|
32
|
-
thumbprintAlgorithm: "sha1"
|
|
32
|
+
thumbprintAlgorithm: "sha1",
|
|
33
33
|
};
|
|
34
34
|
const credential = new DefaultAzureCredential();
|
|
35
35
|
const client = new BatchManagementClient(credential, subscriptionId);
|
|
@@ -41,7 +41,7 @@ function createCertificateFull() {
|
|
|
41
41
|
* This sample demonstrates how to Warning: This operation 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.
|
|
42
42
|
*
|
|
43
43
|
* @summary Warning: This operation 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.
|
|
44
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
44
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_MinimalCer.json
|
|
45
45
|
*/
|
|
46
46
|
function createCertificateMinimalCer() {
|
|
47
47
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -51,7 +51,7 @@ function createCertificateMinimalCer() {
|
|
|
51
51
|
const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e";
|
|
52
52
|
const parameters = {
|
|
53
53
|
format: "Cer",
|
|
54
|
-
data: "MIICrjCCAZagAwI..."
|
|
54
|
+
data: "MIICrjCCAZagAwI...",
|
|
55
55
|
};
|
|
56
56
|
const credential = new DefaultAzureCredential();
|
|
57
57
|
const client = new BatchManagementClient(credential, subscriptionId);
|
|
@@ -63,7 +63,7 @@ function createCertificateMinimalCer() {
|
|
|
63
63
|
* This sample demonstrates how to Warning: This operation 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.
|
|
64
64
|
*
|
|
65
65
|
* @summary Warning: This operation 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.
|
|
66
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
66
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Minimal.json
|
|
67
67
|
*/
|
|
68
68
|
function createCertificateMinimalPfx() {
|
|
69
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -73,7 +73,7 @@ function createCertificateMinimalPfx() {
|
|
|
73
73
|
const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e";
|
|
74
74
|
const parameters = {
|
|
75
75
|
data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...",
|
|
76
|
-
password: "<ExamplePassword>"
|
|
76
|
+
password: "<ExamplePassword>",
|
|
77
77
|
};
|
|
78
78
|
const credential = new DefaultAzureCredential();
|
|
79
79
|
const client = new BatchManagementClient(credential, subscriptionId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certificateCreateSample.js","sourceRoot":"","sources":["../../samples-dev/certificateCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,
|
|
1
|
+
{"version":3,"file":"certificateCreateSample.js","sourceRoot":"","sources":["../../samples-dev/certificateCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,8BAA8B,CAAC;QACxE,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,eAAe,GAAG,+CAA+C,CAAC;QACxE,MAAM,UAAU,GAAwC;YACtD,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,gCAAgC;YACtC,QAAQ,EAAE,mBAAmB;YAC7B,UAAU,EAAE,0CAA0C;YACtD,mBAAmB,EAAE,MAAM;SAC5B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC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CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,MAAM,CACtD,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,qBAAqB,EAAE,CAAC;QACxB,2BAA2B,EAAE,CAAC;QAC9B,2BAA2B,EAAE,CAAC;IAChC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Warning: This operation 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.
|
|
17
17
|
*
|
|
18
18
|
* @summary Warning: This operation 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.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json
|
|
20
20
|
*/
|
|
21
21
|
function certificateDelete() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Warning: This operation 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.
|
|
17
17
|
*
|
|
18
18
|
* @summary Warning: This operation 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.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json
|
|
20
20
|
*/
|
|
21
21
|
function getCertificate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -34,7 +34,7 @@ function getCertificate() {
|
|
|
34
34
|
* This sample demonstrates how to Warning: This operation 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.
|
|
35
35
|
*
|
|
36
36
|
* @summary Warning: This operation 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.
|
|
37
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
37
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGetWithDeletionError.json
|
|
38
38
|
*/
|
|
39
39
|
function getCertificateWithDeletionError() {
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { __asyncValues, __awaiter } from "tslib";
|
|
9
9
|
// Copyright (c) Microsoft Corporation.
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
|
-
import { BatchManagementClient } from "@azure/arm-batch";
|
|
11
|
+
import { BatchManagementClient, } from "@azure/arm-batch";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
13
|
import * as dotenv from "dotenv";
|
|
14
14
|
dotenv.config();
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Warning: This operation 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.
|
|
17
17
|
*
|
|
18
18
|
* @summary Warning: This operation 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.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json
|
|
20
20
|
*/
|
|
21
21
|
function listCertificates() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -49,7 +49,7 @@ function listCertificates() {
|
|
|
49
49
|
* This sample demonstrates how to Warning: This operation 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.
|
|
50
50
|
*
|
|
51
51
|
* @summary Warning: This operation 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.
|
|
52
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
52
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateListWithFilter.json
|
|
53
53
|
*/
|
|
54
54
|
function listCertificatesFilterAndSelect() {
|
|
55
55
|
var _a, e_2, _b, _c;
|
|
@@ -61,7 +61,7 @@ function listCertificatesFilterAndSelect() {
|
|
|
61
61
|
const filter = "properties/provisioningStateTransitionTime gt '2017-05-01' or properties/provisioningState eq 'Failed'";
|
|
62
62
|
const options = {
|
|
63
63
|
select,
|
|
64
|
-
filter
|
|
64
|
+
filter,
|
|
65
65
|
};
|
|
66
66
|
const credential = new DefaultAzureCredential();
|
|
67
67
|
const client = new BatchManagementClient(credential, subscriptionId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certificateListByBatchAccountSample.js","sourceRoot":"","sources":["../../samples-dev/certificateListByBatchAccountSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,
|
|
1
|
+
{"version":3,"file":"certificateListByBatchAccountSample.js","sourceRoot":"","sources":["../../samples-dev/certificateListByBatchAccountSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gBAAgB;;;QAC7B,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,8BAA8B,CAAC;QACxE,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,qBAAqB,CAAC,kBAAkB,CACpE,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA,sDAAE,CAAC;gBAHmB,cAGtB;gBAHsB,WAGtB;gBAHU,IAAI,IAAI,KAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED;;;;;GAKG;AACH,SAAe,+BAA+B;;;QAC5C,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,iB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