From 645cfef2f0ef32689a7c5e5588d80cb17eb3e7eb Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Wed, 13 Mar 2024 13:47:01 +0800 Subject: [PATCH 1/2] [mgmt] batch release --- sdk/batch/arm-batch/CHANGELOG.md | 22 +- sdk/batch/arm-batch/LICENSE | 2 +- sdk/batch/arm-batch/_meta.json | 6 +- sdk/batch/arm-batch/assets.json | 2 +- sdk/batch/arm-batch/package.json | 7 +- sdk/batch/arm-batch/review/arm-batch.api.md | 31 + .../samples-dev/applicationCreateSample.ts | 8 +- .../samples-dev/applicationDeleteSample.ts | 4 +- .../samples-dev/applicationGetSample.ts | 4 +- .../samples-dev/applicationListSample.ts | 4 +- .../applicationPackageActivateSample.ts | 6 +- .../applicationPackageCreateSample.ts | 4 +- .../applicationPackageDeleteSample.ts | 4 +- .../applicationPackageGetSample.ts | 4 +- .../applicationPackageListSample.ts | 4 +- .../samples-dev/applicationUpdateSample.ts | 6 +- .../samples-dev/batchAccountCreateSample.ts | 57 +- .../samples-dev/batchAccountDeleteSample.ts | 4 +- .../batchAccountGetDetectorSample.ts | 4 +- .../samples-dev/batchAccountGetKeysSample.ts | 4 +- .../samples-dev/batchAccountGetSample.ts | 8 +- .../batchAccountListByResourceGroupSample.ts | 4 +- .../batchAccountListDetectorsSample.ts | 4 +- ...boundNetworkDependenciesEndpointsSample.ts | 8 +- .../samples-dev/batchAccountListSample.ts | 2 +- .../batchAccountRegenerateKeySample.ts | 8 +- ...AccountSynchronizeAutoStorageKeysSample.ts | 4 +- .../samples-dev/batchAccountUpdateSample.ts | 10 +- .../certificateCancelDeletionSample.ts | 4 +- .../samples-dev/certificateCreateSample.ts | 20 +- .../samples-dev/certificateDeleteSample.ts | 4 +- .../samples-dev/certificateGetSample.ts | 8 +- .../certificateListByBatchAccountSample.ts | 12 +- .../samples-dev/certificateUpdateSample.ts | 8 +- .../locationCheckNameAvailabilitySample.ts | 14 +- .../samples-dev/locationGetQuotasSample.ts | 2 +- ...tionListSupportedCloudServiceSkusSample.ts | 4 +- ...onListSupportedVirtualMachineSkusSample.ts | 4 +- .../samples-dev/operationsListSample.ts | 2 +- .../arm-batch/samples-dev/poolCreateSample.ts | 344 +- .../arm-batch/samples-dev/poolDeleteSample.ts | 4 +- .../samples-dev/poolDisableAutoScaleSample.ts | 4 +- .../arm-batch/samples-dev/poolGetSample.ts | 47 +- .../poolListByBatchAccountSample.ts | 10 +- .../samples-dev/poolStopResizeSample.ts | 4 +- .../arm-batch/samples-dev/poolUpdateSample.ts | 43 +- .../privateEndpointConnectionDeleteSample.ts | 13 +- .../privateEndpointConnectionGetSample.ts | 4 +- ...pointConnectionListByBatchAccountSample.ts | 4 +- .../privateEndpointConnectionUpdateSample.ts | 21 +- .../privateLinkResourceGetSample.ts | 4 +- ...ateLinkResourceListByBatchAccountSample.ts | 4 +- .../arm-batch/samples/v9/javascript/README.md | 92 +- .../v9/javascript/applicationCreateSample.js | 2 +- .../v9/javascript/applicationDeleteSample.js | 2 +- .../v9/javascript/applicationGetSample.js | 2 +- .../v9/javascript/applicationListSample.js | 2 +- .../applicationPackageActivateSample.js | 2 +- .../applicationPackageCreateSample.js | 2 +- .../applicationPackageDeleteSample.js | 2 +- .../javascript/applicationPackageGetSample.js | 2 +- .../applicationPackageListSample.js | 2 +- .../v9/javascript/applicationUpdateSample.js | 2 +- .../v9/javascript/batchAccountCreateSample.js | 10 +- .../v9/javascript/batchAccountDeleteSample.js | 2 +- .../batchAccountGetDetectorSample.js | 2 +- .../javascript/batchAccountGetKeysSample.js | 2 +- .../v9/javascript/batchAccountGetSample.js | 4 +- .../batchAccountListByResourceGroupSample.js | 2 +- .../batchAccountListDetectorsSample.js | 2 +- ...boundNetworkDependenciesEndpointsSample.js | 6 +- .../v9/javascript/batchAccountListSample.js | 2 +- .../batchAccountRegenerateKeySample.js | 2 +- ...AccountSynchronizeAutoStorageKeysSample.js | 2 +- .../v9/javascript/batchAccountUpdateSample.js | 2 +- .../certificateCancelDeletionSample.js | 2 +- .../v9/javascript/certificateCreateSample.js | 6 +- .../v9/javascript/certificateDeleteSample.js | 2 +- .../v9/javascript/certificateGetSample.js | 4 +- .../certificateListByBatchAccountSample.js | 4 +- .../v9/javascript/certificateUpdateSample.js | 2 +- .../locationCheckNameAvailabilitySample.js | 4 +- .../v9/javascript/locationGetQuotasSample.js | 2 +- ...tionListSupportedCloudServiceSkusSample.js | 2 +- ...onListSupportedVirtualMachineSkusSample.js | 2 +- .../v9/javascript/operationsListSample.js | 2 +- .../samples/v9/javascript/poolCreateSample.js | 92 +- .../samples/v9/javascript/poolDeleteSample.js | 2 +- .../javascript/poolDisableAutoScaleSample.js | 2 +- .../samples/v9/javascript/poolGetSample.js | 30 +- .../poolListByBatchAccountSample.js | 4 +- .../v9/javascript/poolStopResizeSample.js | 2 +- .../samples/v9/javascript/poolUpdateSample.js | 8 +- .../privateEndpointConnectionDeleteSample.js | 2 +- .../privateEndpointConnectionGetSample.js | 2 +- ...pointConnectionListByBatchAccountSample.js | 2 +- .../privateEndpointConnectionUpdateSample.js | 2 +- .../privateLinkResourceGetSample.js | 2 +- ...ateLinkResourceListByBatchAccountSample.js | 2 +- .../arm-batch/samples/v9/typescript/README.md | 92 +- .../typescript/src/applicationCreateSample.ts | 8 +- .../typescript/src/applicationDeleteSample.ts | 4 +- .../v9/typescript/src/applicationGetSample.ts | 4 +- .../typescript/src/applicationListSample.ts | 4 +- .../src/applicationPackageActivateSample.ts | 6 +- .../src/applicationPackageCreateSample.ts | 4 +- .../src/applicationPackageDeleteSample.ts | 4 +- .../src/applicationPackageGetSample.ts | 4 +- .../src/applicationPackageListSample.ts | 4 +- .../typescript/src/applicationUpdateSample.ts | 6 +- .../src/batchAccountCreateSample.ts | 57 +- .../src/batchAccountDeleteSample.ts | 4 +- .../src/batchAccountGetDetectorSample.ts | 4 +- .../src/batchAccountGetKeysSample.ts | 4 +- .../typescript/src/batchAccountGetSample.ts | 8 +- .../batchAccountListByResourceGroupSample.ts | 4 +- .../src/batchAccountListDetectorsSample.ts | 4 +- ...boundNetworkDependenciesEndpointsSample.ts | 8 +- .../typescript/src/batchAccountListSample.ts | 2 +- .../src/batchAccountRegenerateKeySample.ts | 8 +- ...AccountSynchronizeAutoStorageKeysSample.ts | 4 +- .../src/batchAccountUpdateSample.ts | 10 +- .../src/certificateCancelDeletionSample.ts | 4 +- .../typescript/src/certificateCreateSample.ts | 20 +- .../typescript/src/certificateDeleteSample.ts | 4 +- .../v9/typescript/src/certificateGetSample.ts | 8 +- .../certificateListByBatchAccountSample.ts | 12 +- .../typescript/src/certificateUpdateSample.ts | 8 +- .../locationCheckNameAvailabilitySample.ts | 14 +- .../typescript/src/locationGetQuotasSample.ts | 2 +- ...tionListSupportedCloudServiceSkusSample.ts | 4 +- ...onListSupportedVirtualMachineSkusSample.ts | 4 +- .../v9/typescript/src/operationsListSample.ts | 2 +- .../v9/typescript/src/poolCreateSample.ts | 344 +- .../v9/typescript/src/poolDeleteSample.ts | 4 +- .../src/poolDisableAutoScaleSample.ts | 4 +- .../v9/typescript/src/poolGetSample.ts | 47 +- .../src/poolListByBatchAccountSample.ts | 10 +- .../v9/typescript/src/poolStopResizeSample.ts | 4 +- .../v9/typescript/src/poolUpdateSample.ts | 43 +- .../privateEndpointConnectionDeleteSample.ts | 13 +- .../src/privateEndpointConnectionGetSample.ts | 4 +- ...pointConnectionListByBatchAccountSample.ts | 4 +- .../privateEndpointConnectionUpdateSample.ts | 21 +- .../src/privateLinkResourceGetSample.ts | 4 +- ...ateLinkResourceListByBatchAccountSample.ts | 4 +- .../arm-batch/src/batchManagementClient.ts | 44 +- sdk/batch/arm-batch/src/lroImpl.ts | 6 +- sdk/batch/arm-batch/src/models/index.ts | 88 +- sdk/batch/arm-batch/src/models/mappers.ts | 2773 +++++++++-------- sdk/batch/arm-batch/src/models/parameters.ts | 176 +- .../src/operations/applicationOperations.ts | 113 +- .../applicationPackageOperations.ts | 122 +- .../src/operations/batchAccountOperations.ts | 434 ++- .../src/operations/certificateOperations.ts | 167 +- .../arm-batch/src/operations/location.ts | 194 +- .../arm-batch/src/operations/operations.ts | 32 +- .../src/operations/poolOperations.ts | 184 +- .../privateEndpointConnectionOperations.ts | 177 +- .../privateLinkResourceOperations.ts | 71 +- .../applicationOperations.ts | 12 +- .../applicationPackageOperations.ts | 12 +- .../batchAccountOperations.ts | 32 +- .../certificateOperations.ts | 16 +- .../src/operationsInterfaces/location.ts | 10 +- .../src/operationsInterfaces/operations.ts | 2 +- .../operationsInterfaces/poolOperations.ts | 18 +- .../privateEndpointConnectionOperations.ts | 14 +- .../privateLinkResourceOperations.ts | 6 +- sdk/batch/arm-batch/src/pagingHelper.ts | 2 +- sdk/batch/arm-batch/test/batch_examples.ts | 2 +- 171 files changed, 3575 insertions(+), 3134 deletions(-) diff --git a/sdk/batch/arm-batch/CHANGELOG.md b/sdk/batch/arm-batch/CHANGELOG.md index 51a8819ec7d9..95bf3a7ea61d 100644 --- a/sdk/batch/arm-batch/CHANGELOG.md +++ b/sdk/batch/arm-batch/CHANGELOG.md @@ -1,15 +1,17 @@ # Release History + +## 9.2.0 (2024-03-13) + +**Features** -## 9.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Interface AutomaticOSUpgradePolicy + - Added Interface RollingUpgradePolicy + - Added Interface UpgradePolicy + - Added Type Alias UpgradeMode + - Interface Pool has a new optional parameter upgradePolicy + - Interface SupportedSku has a new optional parameter batchSupportEndOfLife + + ## 9.1.0 (2023-12-08) **Features** diff --git a/sdk/batch/arm-batch/LICENSE b/sdk/batch/arm-batch/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/batch/arm-batch/LICENSE +++ b/sdk/batch/arm-batch/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/batch/arm-batch/_meta.json b/sdk/batch/arm-batch/_meta.json index 4e8fc0694fde..cc080b70fb11 100644 --- a/sdk/batch/arm-batch/_meta.json +++ b/sdk/batch/arm-batch/_meta.json @@ -1,8 +1,8 @@ { - "commit": "0373f0edc4414fd402603fac51d0df93f1f70507", + "commit": "3004d02873a4b583ba6a3966a370f1ba19b5da1d", "readme": "specification/batch/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\batch\\resource-manager\\readme.md --use=@autorest/typescript@6.0.13 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\batch\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.13" + "use": "@autorest/typescript@6.0.17" } \ No newline at end of file diff --git a/sdk/batch/arm-batch/assets.json b/sdk/batch/arm-batch/assets.json index 33923f30bd54..5f5c454d1c5e 100644 --- a/sdk/batch/arm-batch/assets.json +++ b/sdk/batch/arm-batch/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/batch/arm-batch", - "Tag": "js/batch/arm-batch_b9e91e3a94" + "Tag": "js/batch/arm-batch_5859ca6f69" } diff --git a/sdk/batch/arm-batch/package.json b/sdk/batch/arm-batch/package.json index 7f6f0d9568d8..137d9a31b8e9 100644 --- a/sdk/batch/arm-batch/package.json +++ b/sdk/batch/arm-batch/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for BatchManagementClient.", - "version": "9.1.1", + "version": "9.2.0", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -79,7 +79,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", diff --git a/sdk/batch/arm-batch/review/arm-batch.api.md b/sdk/batch/arm-batch/review/arm-batch.api.md index 984f35a151be..2f185f3372ab 100644 --- a/sdk/batch/arm-batch/review/arm-batch.api.md +++ b/sdk/batch/arm-batch/review/arm-batch.api.md @@ -146,6 +146,14 @@ export type ApplicationUpdateResponse = Application; // @public export type AuthenticationMode = "SharedKey" | "AAD" | "TaskAuthenticationToken"; +// @public +export interface AutomaticOSUpgradePolicy { + disableAutomaticRollback?: boolean; + enableAutomaticOSUpgrade?: boolean; + osRollingUpgradeDeferral?: boolean; + useRollingUpgradePolicy?: boolean; +} + // @public export interface AutoScaleRun { error?: AutoScaleRunError; @@ -1125,6 +1133,7 @@ export interface Pool extends ProxyResource { targetNodeCommunicationMode?: NodeCommunicationMode; taskSchedulingPolicy?: TaskSchedulingPolicy; taskSlotsPerNode?: number; + upgradePolicy?: UpgradePolicy; userAccounts?: UserAccount[]; vmSize?: string; } @@ -1433,6 +1442,17 @@ export interface ResourceFile { // @public export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "None"; +// @public +export interface RollingUpgradePolicy { + enableCrossZoneUpgrade?: boolean; + maxBatchInstancePercent?: number; + maxUnhealthyInstancePercent?: number; + maxUnhealthyUpgradedInstancePercent?: number; + pauseTimeBetweenBatches?: string; + prioritizeUnhealthyInstances?: boolean; + rollbackFailedInstancesOnPolicyBreach?: boolean; +} + // @public export interface ScaleSettings { autoScale?: AutoScaleSettings; @@ -1473,6 +1493,7 @@ export type StorageAccountType = "Standard_LRS" | "Premium_LRS" | "StandardSSD_L // @public export interface SupportedSku { + readonly batchSupportEndOfLife?: Date; readonly capabilities?: SkuCapability[]; readonly familyName?: string; readonly name?: string; @@ -1503,6 +1524,16 @@ export interface UefiSettings { vTpmEnabled?: boolean; } +// @public +export type UpgradeMode = "automatic" | "manual" | "rolling"; + +// @public +export interface UpgradePolicy { + automaticOSUpgradePolicy?: AutomaticOSUpgradePolicy; + mode: UpgradeMode; + rollingUpgradePolicy?: RollingUpgradePolicy; +} + // @public export interface UserAccount { elevationLevel?: ElevationLevel; diff --git a/sdk/batch/arm-batch/samples-dev/applicationCreateSample.ts b/sdk/batch/arm-batch/samples-dev/applicationCreateSample.ts index 64c4c2f1f6ff..a8dbd7489cc8 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationCreateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationCreateSample.ts @@ -11,7 +11,7 @@ import { Application, ApplicationCreateOptionalParams, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Adds an application to the specified Batch account. * * @summary Adds an application to the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json */ async function applicationCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function applicationCreate() { const applicationName = "app1"; const parameters: Application = { allowUpdates: false, - displayName: "myAppName" + displayName: "myAppName", }; const options: ApplicationCreateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -41,7 +41,7 @@ async function applicationCreate() { resourceGroupName, accountName, applicationName, - options + options, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/applicationDeleteSample.ts index 78302373bbf7..cc654adc53ca 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationDeleteSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an application. * * @summary Deletes an application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json */ async function applicationDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function applicationDelete() { const result = await client.applicationOperations.delete( resourceGroupName, accountName, - applicationName + applicationName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationGetSample.ts b/sdk/batch/arm-batch/samples-dev/applicationGetSample.ts index 37ba964c881e..5c8040343af6 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified application. * * @summary Gets information about the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json */ async function applicationGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function applicationGet() { const result = await client.applicationOperations.get( resourceGroupName, accountName, - applicationName + applicationName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationListSample.ts b/sdk/batch/arm-batch/samples-dev/applicationListSample.ts index 0b9fbf8a43ae..7bc002d6e44c 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationListSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the applications in the specified account. * * @summary Lists all of the applications in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json */ async function applicationList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function applicationList() { const resArray = new Array(); for await (let item of client.applicationOperations.list( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageActivateSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageActivateSample.ts index fdff2415ef76..300527a53c43 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationPackageActivateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationPackageActivateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ActivateApplicationPackageParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageActivate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json */ async function applicationPackageActivate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -38,7 +38,7 @@ async function applicationPackageActivate() { accountName, applicationName, versionName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageCreateSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageCreateSample.ts index f05044dc1f76..24947565f7ee 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationPackageCreateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationPackageCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json */ async function applicationPackageCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function applicationPackageCreate() { resourceGroupName, accountName, applicationName, - versionName + versionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageDeleteSample.ts index a60eed70c9d5..5dfb9a724185 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationPackageDeleteSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationPackageDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an application package record and its associated binary file. * * @summary Deletes an application package record and its associated binary file. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json */ async function applicationPackageDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function applicationPackageDelete() { resourceGroupName, accountName, applicationName, - versionName + versionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageGetSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageGetSample.ts index 3728f051deb6..ae9deebd6509 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationPackageGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationPackageGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified application package. * * @summary Gets information about the specified application package. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json */ async function applicationPackageGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function applicationPackageGet() { resourceGroupName, accountName, applicationName, - versionName + versionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageListSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageListSample.ts index 1f9f2731ec96..d2ec0a3b8aad 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationPackageListSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationPackageListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the application packages in the specified application. * * @summary Lists all of the application packages in the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json */ async function applicationPackageList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function applicationPackageList() { for await (let item of client.applicationPackageOperations.list( resourceGroupName, accountName, - applicationName + applicationName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/applicationUpdateSample.ts index 6c012f8e5b44..7a2ab45754e2 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationUpdateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates settings for the specified application. * * @summary Updates settings for the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json */ async function applicationUpdate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function applicationUpdate() { const parameters: Application = { allowUpdates: true, defaultVersion: "2", - displayName: "myAppName" + displayName: "myAppName", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -37,7 +37,7 @@ async function applicationUpdate() { resourceGroupName, accountName, applicationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountCreateSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountCreateSample.ts index c114b1b2edd3..b18c9a9b33f8 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountCreateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BatchAccountCreateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_BYOS.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json */ async function batchAccountCreateByos() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,22 +31,21 @@ async function batchAccountCreateByos() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, keyVaultReference: { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", - url: "http://sample.vault.azure.net/" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", + url: "http://sample.vault.azure.net/", }, location: "japaneast", - poolAllocationMode: "UserSubscription" + poolAllocationMode: "UserSubscription", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -55,7 +54,7 @@ async function batchAccountCreateByos() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_Default.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_Default.json */ async function batchAccountCreateDefault() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -65,16 +64,16 @@ async function batchAccountCreateDefault() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, - location: "japaneast" + location: "japaneast", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -83,7 +82,7 @@ async function batchAccountCreateDefault() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_SystemAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_SystemAssignedIdentity.json */ async function batchAccountCreateSystemAssignedIdentity() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -93,17 +92,17 @@ async function batchAccountCreateSystemAssignedIdentity() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, identity: { type: "SystemAssigned" }, - location: "japaneast" + location: "japaneast", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -112,7 +111,7 @@ async function batchAccountCreateSystemAssignedIdentity() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_UserAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_UserAssignedIdentity.json */ async function batchAccountCreateUserAssignedIdentity() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -122,22 +121,23 @@ async function batchAccountCreateUserAssignedIdentity() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} - } + "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": + {}, + }, }, - location: "japaneast" + location: "japaneast", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -146,7 +146,7 @@ async function batchAccountCreateUserAssignedIdentity() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountCreate.json */ async function privateBatchAccountCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -156,22 +156,21 @@ async function privateBatchAccountCreate() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, keyVaultReference: { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", - url: "http://sample.vault.azure.net/" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", + url: "http://sample.vault.azure.net/", }, location: "japaneast", - publicNetworkAccess: "Disabled" + publicNetworkAccess: "Disabled", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountDeleteSample.ts index 215254b6434c..3ab28b3efbbb 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountDeleteSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Batch account. * * @summary Deletes the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json */ async function batchAccountDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountDelete() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginDeleteAndWait( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountGetDetectorSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountGetDetectorSample.ts index f21e79d7b5bd..02afade8344e 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountGetDetectorSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountGetDetectorSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the given detector for a given Batch account. * * @summary Gets information about the given detector for a given Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json */ async function getDetector() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getDetector() { const result = await client.batchAccountOperations.getDetector( resourceGroupName, accountName, - detectorId + detectorId, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountGetKeysSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountGetKeysSample.ts index 007159c908cd..146587b90ee8 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountGetKeysSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountGetKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGetKeys.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json */ async function batchAccountGetKeys() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountGetKeys() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.getKeys( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountGetSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountGetSample.ts index e9de30289660..1b379c7b2016 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified Batch account. * * @summary Gets information about the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json */ async function batchAccountGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountGet() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.get( resourceGroupName, - accountName + accountName, ); console.log(result); } @@ -38,7 +38,7 @@ async function batchAccountGet() { * This sample demonstrates how to Gets information about the specified Batch account. * * @summary Gets information about the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountGet.json */ async function privateBatchAccountGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -49,7 +49,7 @@ async function privateBatchAccountGet() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.get( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountListByResourceGroupSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountListByResourceGroupSample.ts index 474a0cf06a3f..3d89d382ca06 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountListByResourceGroupSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the Batch accounts associated with the specified resource group. * * @summary Gets information about the Batch accounts associated with the specified resource group. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListByResourceGroup.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json */ async function batchAccountListByResourceGroup() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -28,7 +28,7 @@ async function batchAccountListByResourceGroup() { const client = new BatchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.batchAccountOperations.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountListDetectorsSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountListDetectorsSample.ts index 201e99bfec41..02c7bbb2963c 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountListDetectorsSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountListDetectorsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the detectors available for a given Batch account. * * @summary Gets information about the detectors available for a given Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json */ async function listDetectors() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listDetectors() { const resArray = new Array(); for await (let item of client.batchAccountOperations.listDetectors( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts index adb1740d9092..b16fc0e1eba5 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * 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. + * 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. * - * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json + * @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. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json */ async function listOutboundNetworkDependencies() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listOutboundNetworkDependencies() { const resArray = new Array(); for await (let item of client.batchAccountOperations.listOutboundNetworkDependenciesEndpoints( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountListSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountListSample.ts index d3059c1cd420..7e7e86a007ca 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountListSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the Batch accounts associated with the subscription. * * @summary Gets information about the Batch accounts associated with the subscription. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json */ async function batchAccountList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountRegenerateKeySample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountRegenerateKeySample.ts index 2af55052d73c..cb32a95ec558 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountRegenerateKeySample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountRegenerateKeySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BatchAccountRegenerateKeyParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountRegenerateKey.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json */ async function batchAccountRegenerateKey() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,14 +29,14 @@ async function batchAccountRegenerateKey() { process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; const accountName = "sampleacct"; const parameters: BatchAccountRegenerateKeyParameters = { - keyName: "Primary" + keyName: "Primary", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.regenerateKey( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.ts index a1745f885316..270e29f2fe26 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * 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. * * @summary Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountSynchronizeAutoStorageKeys.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json */ async function batchAccountSynchronizeAutoStorageKeys() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountSynchronizeAutoStorageKeys() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.synchronizeAutoStorageKeys( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountUpdateSample.ts index 0b9d17a48d7f..dcd5e09a8b35 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountUpdateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BatchAccountUpdateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing Batch account. * * @summary Updates the properties of an existing Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json */ async function batchAccountUpdate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,15 +31,15 @@ async function batchAccountUpdate() { const parameters: BatchAccountUpdateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" - } + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", + }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.update( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/certificateCancelDeletionSample.ts b/sdk/batch/arm-batch/samples-dev/certificateCancelDeletionSample.ts index c5eb7f42ea6c..be9ee3b99080 100644 --- a/sdk/batch/arm-batch/samples-dev/certificateCancelDeletionSample.ts +++ b/sdk/batch/arm-batch/samples-dev/certificateCancelDeletionSample.ts @@ -22,7 +22,7 @@ Warning: This operation is deprecated and will be removed after February, 2024. * @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. 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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCancelDeletion.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json */ async function certificateCancelDeletion() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -35,7 +35,7 @@ async function certificateCancelDeletion() { const result = await client.certificateOperations.cancelDeletion( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/certificateCreateSample.ts b/sdk/batch/arm-batch/samples-dev/certificateCreateSample.ts index 0cf0437c6750..732c5eb1da22 100644 --- a/sdk/batch/arm-batch/samples-dev/certificateCreateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/certificateCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CertificateCreateOrUpdateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Full.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json */ async function createCertificateFull() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -34,7 +34,7 @@ async function createCertificateFull() { data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...", password: "", thumbprint: "0a0e4f50d51beadeac1d35afc5116098e7902e6e", - thumbprintAlgorithm: "sha1" + thumbprintAlgorithm: "sha1", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -42,7 +42,7 @@ async function createCertificateFull() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } @@ -51,7 +51,7 @@ async function createCertificateFull() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_MinimalCer.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_MinimalCer.json */ async function createCertificateMinimalCer() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -61,7 +61,7 @@ async function createCertificateMinimalCer() { const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e"; const parameters: CertificateCreateOrUpdateParameters = { format: "Cer", - data: "MIICrjCCAZagAwI..." + data: "MIICrjCCAZagAwI...", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -69,7 +69,7 @@ async function createCertificateMinimalCer() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } @@ -78,7 +78,7 @@ async function createCertificateMinimalCer() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Minimal.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Minimal.json */ async function createCertificateMinimalPfx() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -88,7 +88,7 @@ async function createCertificateMinimalPfx() { const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e"; const parameters: CertificateCreateOrUpdateParameters = { data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...", - password: "" + password: "", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -96,7 +96,7 @@ async function createCertificateMinimalPfx() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/certificateDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/certificateDeleteSample.ts index 6f5983bd38c2..efca48cb301a 100644 --- a/sdk/batch/arm-batch/samples-dev/certificateDeleteSample.ts +++ b/sdk/batch/arm-batch/samples-dev/certificateDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json */ async function certificateDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function certificateDelete() { const result = await client.certificateOperations.beginDeleteAndWait( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/certificateGetSample.ts b/sdk/batch/arm-batch/samples-dev/certificateGetSample.ts index 35f3a497aed3..877bcc59143b 100644 --- a/sdk/batch/arm-batch/samples-dev/certificateGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/certificateGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json */ async function getCertificate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getCertificate() { const result = await client.certificateOperations.get( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } @@ -40,7 +40,7 @@ async function getCertificate() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGetWithDeletionError.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGetWithDeletionError.json */ async function getCertificateWithDeletionError() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -53,7 +53,7 @@ async function getCertificateWithDeletionError() { const result = await client.certificateOperations.get( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/certificateListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples-dev/certificateListByBatchAccountSample.ts index 19c1364f0406..50d9f2df5da4 100644 --- a/sdk/batch/arm-batch/samples-dev/certificateListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples-dev/certificateListByBatchAccountSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CertificateListByBatchAccountOptionalParams, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json */ async function listCertificates() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function listCertificates() { const resArray = new Array(); for await (let item of client.certificateOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } @@ -44,7 +44,7 @@ async function listCertificates() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateListWithFilter.json */ async function listCertificatesFilterAndSelect() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -56,7 +56,7 @@ async function listCertificatesFilterAndSelect() { "properties/provisioningStateTransitionTime gt '2017-05-01' or properties/provisioningState eq 'Failed'"; const options: CertificateListByBatchAccountOptionalParams = { select, - filter + filter, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -64,7 +64,7 @@ async function listCertificatesFilterAndSelect() { for await (let item of client.certificateOperations.listByBatchAccount( resourceGroupName, accountName, - options + options, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/certificateUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/certificateUpdateSample.ts index e230bb7c7d5d..aefb9a6329aa 100644 --- a/sdk/batch/arm-batch/samples-dev/certificateUpdateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/certificateUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CertificateCreateOrUpdateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json */ async function updateCertificate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function updateCertificate() { const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e"; const parameters: CertificateCreateOrUpdateParameters = { data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...", - password: "" + password: "", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function updateCertificate() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/locationCheckNameAvailabilitySample.ts b/sdk/batch/arm-batch/samples-dev/locationCheckNameAvailabilitySample.ts index 761b7a3991e7..a8378a706525 100644 --- a/sdk/batch/arm-batch/samples-dev/locationCheckNameAvailabilitySample.ts +++ b/sdk/batch/arm-batch/samples-dev/locationCheckNameAvailabilitySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CheckNameAvailabilityParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,20 +21,20 @@ dotenv.config(); * This sample demonstrates how to Checks whether the Batch account name is available in the specified region. * * @summary Checks whether the Batch account name is available in the specified region. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_AlreadyExists.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json */ async function locationCheckNameAvailabilityAlreadyExists() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; const locationName = "japaneast"; const parameters: CheckNameAvailabilityParameters = { name: "existingaccountname", - type: "Microsoft.Batch/batchAccounts" + type: "Microsoft.Batch/batchAccounts", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.location.checkNameAvailability( locationName, - parameters + parameters, ); console.log(result); } @@ -43,20 +43,20 @@ async function locationCheckNameAvailabilityAlreadyExists() { * This sample demonstrates how to Checks whether the Batch account name is available in the specified region. * * @summary Checks whether the Batch account name is available in the specified region. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_Available.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_Available.json */ async function locationCheckNameAvailabilityAvailable() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; const locationName = "japaneast"; const parameters: CheckNameAvailabilityParameters = { name: "newaccountname", - type: "Microsoft.Batch/batchAccounts" + type: "Microsoft.Batch/batchAccounts", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.location.checkNameAvailability( locationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/locationGetQuotasSample.ts b/sdk/batch/arm-batch/samples-dev/locationGetQuotasSample.ts index a72bd970c416..a3255897f228 100644 --- a/sdk/batch/arm-batch/samples-dev/locationGetQuotasSample.ts +++ b/sdk/batch/arm-batch/samples-dev/locationGetQuotasSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Batch service quotas for the specified subscription at the given location. * * @summary Gets the Batch service quotas for the specified subscription at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationGetQuotas.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json */ async function locationGetQuotas() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples-dev/locationListSupportedCloudServiceSkusSample.ts b/sdk/batch/arm-batch/samples-dev/locationListSupportedCloudServiceSkusSample.ts index 126cb58c3ece..2c759a7a9f4d 100644 --- a/sdk/batch/arm-batch/samples-dev/locationListSupportedCloudServiceSkusSample.ts +++ b/sdk/batch/arm-batch/samples-dev/locationListSupportedCloudServiceSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Batch supported Cloud Service VM sizes available at the given location. * * @summary Gets the list of Batch supported Cloud Service VM sizes available at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListCloudServiceSkus.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json */ async function locationListCloudServiceSkus() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function locationListCloudServiceSkus() { const client = new BatchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.location.listSupportedCloudServiceSkus( - locationName + locationName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/locationListSupportedVirtualMachineSkusSample.ts b/sdk/batch/arm-batch/samples-dev/locationListSupportedVirtualMachineSkusSample.ts index 0371db773b4c..a4542724d2eb 100644 --- a/sdk/batch/arm-batch/samples-dev/locationListSupportedVirtualMachineSkusSample.ts +++ b/sdk/batch/arm-batch/samples-dev/locationListSupportedVirtualMachineSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Batch supported Virtual Machine VM sizes available at the given location. * * @summary Gets the list of Batch supported Virtual Machine VM sizes available at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListVirtualMachineSkus.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json */ async function locationListVirtualMachineSkus() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function locationListVirtualMachineSkus() { const client = new BatchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.location.listSupportedVirtualMachineSkus( - locationName + locationName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/operationsListSample.ts b/sdk/batch/arm-batch/samples-dev/operationsListSample.ts index 31f150fda6ec..465aa4cdc751 100644 --- a/sdk/batch/arm-batch/samples-dev/operationsListSample.ts +++ b/sdk/batch/arm-batch/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists available operations for the Microsoft.Batch provider * * @summary Lists available operations for the Microsoft.Batch provider - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/OperationsList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json */ async function operationsList() { const subscriptionId = diff --git a/sdk/batch/arm-batch/samples-dev/poolCreateSample.ts b/sdk/batch/arm-batch/samples-dev/poolCreateSample.ts index e05ac9f73010..30c2b6d5427c 100644 --- a/sdk/batch/arm-batch/samples-dev/poolCreateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SharedImageGallery.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json */ async function createPoolCustomImage() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,13 +30,12 @@ async function createPoolCustomImage() { deploymentConfiguration: { virtualMachineConfiguration: { imageReference: { - id: - "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1" + id: "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -44,7 +43,7 @@ async function createPoolCustomImage() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -53,7 +52,7 @@ async function createPoolCustomImage() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_CloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_CloudServiceConfiguration.json */ async function createPoolFullCloudServiceConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -65,50 +64,48 @@ async function createPoolFullCloudServiceConfiguration() { applicationLicenses: ["app-license0", "app-license1"], applicationPackages: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234", - version: "asdf" - } + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234", + version: "asdf", + }, ], certificates: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", storeLocation: "LocalMachine", storeName: "MY", - visibility: ["RemoteUser"] - } + visibility: ["RemoteUser"], + }, ], deploymentConfiguration: { cloudServiceConfiguration: { osFamily: "4", - osVersion: "WA-GUEST-OS-4.45_201708-01" - } + osVersion: "WA-GUEST-OS-4.45_201708-01", + }, }, displayName: "my-pool-name", interNodeCommunication: "Enabled", metadata: [ { name: "metadata-1", value: "value-1" }, - { name: "metadata-2", value: "value-2" } + { name: "metadata-2", value: "value-2" }, ], networkConfiguration: { publicIPAddressConfiguration: { ipAddressIds: [ "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135", - "/subscriptions/subid2/resourceGroups/rg24/providers/Microsoft.Network/publicIPAddresses/ip268" + "/subscriptions/subid2/resourceGroups/rg24/providers/Microsoft.Network/publicIPAddresses/ip268", ], - provision: "UserManaged" + provision: "UserManaged", }, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, scaleSettings: { fixedScale: { nodeDeallocationOption: "TaskCompletion", resizeTimeout: "PT8M", targetDedicatedNodes: 6, - targetLowPriorityNodes: 28 - } + targetLowPriorityNodes: 28, + }, }, startTask: { commandLine: "cmd /c SET", @@ -118,11 +115,12 @@ async function createPoolFullCloudServiceConfiguration() { { fileMode: "777", filePath: "c:\\temp\\gohere", - httpUrl: "https://testaccount.blob.core.windows.net/example-blob-file" - } + httpUrl: + "https://testaccount.blob.core.windows.net/example-blob-file", + }, ], userIdentity: { autoUser: { elevationLevel: "Admin", scope: "Pool" } }, - waitForSuccess: true + waitForSuccess: true, }, taskSchedulingPolicy: { nodeFillType: "Pack" }, taskSlotsPerNode: 13, @@ -133,12 +131,12 @@ async function createPoolFullCloudServiceConfiguration() { linuxUserConfiguration: { gid: 4567, sshPrivateKey: "sshprivatekeyvalue", - uid: 1234 + uid: 1234, }, - password: "" - } + password: "", + }, ], - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -146,7 +144,7 @@ async function createPoolFullCloudServiceConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -155,7 +153,7 @@ async function createPoolFullCloudServiceConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration.json */ async function createPoolFullVirtualMachineConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -171,28 +169,28 @@ async function createPoolFullVirtualMachineConfiguration() { caching: "ReadWrite", diskSizeGB: 30, lun: 0, - storageAccountType: "Premium_LRS" + storageAccountType: "Premium_LRS", }, { caching: "None", diskSizeGB: 200, lun: 1, - storageAccountType: "Standard_LRS" - } + storageAccountType: "Standard_LRS", + }, ], diskEncryptionConfiguration: { targets: ["OsDisk", "TemporaryDisk"] }, imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter-SmallDisk", - version: "latest" + version: "latest", }, licenseType: "Windows_Server", nodeAgentSkuId: "batch.node.windows amd64", nodePlacementConfiguration: { policy: "Zonal" }, osDisk: { ephemeralOSDiskSettings: { placement: "CacheDisk" } }, - windowsConfiguration: { enableAutomaticUpdates: false } - } + windowsConfiguration: { enableAutomaticUpdates: false }, + }, }, networkConfiguration: { endpointConfiguration: { @@ -207,27 +205,27 @@ async function createPoolFullVirtualMachineConfiguration() { access: "Allow", priority: 150, sourceAddressPrefix: "192.100.12.45", - sourcePortRanges: ["1", "2"] + sourcePortRanges: ["1", "2"], }, { access: "Deny", priority: 3500, sourceAddressPrefix: "*", - sourcePortRanges: ["*"] - } + sourcePortRanges: ["*"], + }, ], - protocol: "TCP" - } - ] - } + protocol: "TCP", + }, + ], + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -235,7 +233,7 @@ async function createPoolFullVirtualMachineConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -244,7 +242,7 @@ async function createPoolFullVirtualMachineConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json */ async function createPoolMinimalCloudServiceConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -255,7 +253,7 @@ async function createPoolMinimalCloudServiceConfiguration() { const parameters: Pool = { deploymentConfiguration: { cloudServiceConfiguration: { osFamily: "5" } }, scaleSettings: { fixedScale: { targetDedicatedNodes: 3 } }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -263,7 +261,7 @@ async function createPoolMinimalCloudServiceConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -272,7 +270,7 @@ async function createPoolMinimalCloudServiceConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json */ async function createPoolMinimalVirtualMachineConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -287,18 +285,18 @@ async function createPoolMinimalVirtualMachineConfiguration() { offer: "UbuntuServer", publisher: "Canonical", sku: "18.04-LTS", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -306,7 +304,7 @@ async function createPoolMinimalVirtualMachineConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -315,7 +313,7 @@ async function createPoolMinimalVirtualMachineConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_NoPublicIPAddresses.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_NoPublicIPAddresses.json */ async function createPoolNoPublicIP() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -327,18 +325,17 @@ async function createPoolNoPublicIP() { deploymentConfiguration: { virtualMachineConfiguration: { imageReference: { - id: - "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1" + id: "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, networkConfiguration: { publicIPAddressConfiguration: { provision: "NoPublicIPAddresses" }, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -346,7 +343,7 @@ async function createPoolNoPublicIP() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -355,7 +352,7 @@ async function createPoolNoPublicIP() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_PublicIPs.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_PublicIPs.json */ async function createPoolPublicIPs() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -367,23 +364,22 @@ async function createPoolPublicIPs() { deploymentConfiguration: { virtualMachineConfiguration: { imageReference: { - id: - "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1" + id: "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, networkConfiguration: { publicIPAddressConfiguration: { ipAddressIds: [ - "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135" + "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135", ], - provision: "UserManaged" + provision: "UserManaged", }, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -391,7 +387,7 @@ async function createPoolPublicIPs() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -400,7 +396,7 @@ async function createPoolPublicIPs() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_ResourceTags.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_ResourceTags.json */ async function createPoolResourceTags() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -415,16 +411,16 @@ async function createPoolResourceTags() { offer: "UbuntuServer", publisher: "Canonical", sku: "18_04-lts-gen2", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, resourceTags: { tagName1: "TagValue1", tagName2: "TagValue2" }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "Standard_d4s_v3" + vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -432,7 +428,7 @@ async function createPoolResourceTags() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -441,7 +437,7 @@ async function createPoolResourceTags() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SecurityProfile.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SecurityProfile.json */ async function createPoolSecurityProfile() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -456,20 +452,20 @@ async function createPoolSecurityProfile() { offer: "UbuntuServer", publisher: "Canonical", sku: "18_04-lts-gen2", - version: "latest" + version: "latest", }, nodeAgentSkuId: "batch.node.ubuntu 18.04", securityProfile: { encryptionAtHost: true, securityType: "trustedLaunch", - uefiSettings: { secureBootEnabled: undefined, vTpmEnabled: false } - } - } + uefiSettings: { secureBootEnabled: undefined, vTpmEnabled: false }, + }, + }, }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "Standard_d4s_v3" + vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -477,7 +473,7 @@ async function createPoolSecurityProfile() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -486,7 +482,67 @@ async function createPoolSecurityProfile() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_UserAssignedIdentities.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UpgradePolicy.json + */ +async function createPoolUpgradePolicy() { + const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; + const accountName = "sampleacct"; + const poolName = "testpool"; + const parameters: Pool = { + deploymentConfiguration: { + virtualMachineConfiguration: { + imageReference: { + offer: "WindowsServer", + publisher: "MicrosoftWindowsServer", + sku: "2019-datacenter-smalldisk", + version: "latest", + }, + nodeAgentSkuId: "batch.node.windows amd64", + nodePlacementConfiguration: { policy: "Zonal" }, + windowsConfiguration: { enableAutomaticUpdates: false }, + }, + }, + scaleSettings: { + fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 }, + }, + upgradePolicy: { + automaticOSUpgradePolicy: { + disableAutomaticRollback: true, + enableAutomaticOSUpgrade: true, + osRollingUpgradeDeferral: true, + useRollingUpgradePolicy: true, + }, + mode: "automatic", + rollingUpgradePolicy: { + enableCrossZoneUpgrade: true, + maxBatchInstancePercent: 20, + maxUnhealthyInstancePercent: 20, + maxUnhealthyUpgradedInstancePercent: 20, + pauseTimeBetweenBatches: "PT0S", + prioritizeUnhealthyInstances: false, + rollbackFailedInstancesOnPolicyBreach: false, + }, + }, + vmSize: "Standard_d4s_v3", + }; + const credential = new DefaultAzureCredential(); + const client = new BatchManagementClient(credential, subscriptionId); + const result = await client.poolOperations.create( + resourceGroupName, + accountName, + poolName, + parameters, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates a new pool inside the specified account. + * + * @summary Creates a new pool inside the specified account. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UserAssignedIdentities.json */ async function createPoolUserAssignedIdentities() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -501,25 +557,27 @@ async function createPoolUserAssignedIdentities() { offer: "UbuntuServer", publisher: "Canonical", sku: "18.04-LTS", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": {} - } + "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": + {}, + "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": + {}, + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -527,7 +585,7 @@ async function createPoolUserAssignedIdentities() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -536,7 +594,7 @@ async function createPoolUserAssignedIdentities() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json */ async function createPoolVirtualMachineConfigurationExtensions() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -550,7 +608,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { imageReference: { offer: "0001-com-ubuntu-server-focal", publisher: "Canonical", - sku: "20_04-lts" + sku: "20_04-lts", }, nodeAgentSkuId: "batch.node.ubuntu 20.04", extensions: [ @@ -562,21 +620,21 @@ async function createPoolVirtualMachineConfigurationExtensions() { publisher: "Microsoft.Azure.KeyVault", settings: { authenticationSettingsKey: "authenticationSettingsValue", - secretsManagementSettingsKey: "secretsManagementSettingsValue" + secretsManagementSettingsKey: "secretsManagementSettingsValue", }, - typeHandlerVersion: "2.0" - } - ] - } + typeHandlerVersion: "2.0", + }, + ], + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, targetNodeCommunicationMode: "Default", - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -584,7 +642,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -593,7 +651,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json */ async function createPoolVirtualMachineConfigurationOSDisk() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -607,21 +665,21 @@ async function createPoolVirtualMachineConfigurationOSDisk() { imageReference: { offer: "windowsserver", publisher: "microsoftwindowsserver", - sku: "2022-datacenter-smalldisk" + sku: "2022-datacenter-smalldisk", }, nodeAgentSkuId: "batch.node.windows amd64", osDisk: { caching: "ReadWrite", diskSizeGB: 100, managedDisk: { storageAccountType: "StandardSSD_LRS" }, - writeAcceleratorEnabled: false - } - } + writeAcceleratorEnabled: false, + }, + }, }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "Standard_d2s_v3" + vmSize: "Standard_d2s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -629,7 +687,7 @@ async function createPoolVirtualMachineConfigurationOSDisk() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -638,7 +696,7 @@ async function createPoolVirtualMachineConfigurationOSDisk() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json */ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -653,20 +711,23 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-datacenter-smalldisk", - version: "latest" + version: "latest", }, nodeAgentSkuId: "batch.node.windows amd64", serviceArtifactReference: { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/galleries/myGallery/serviceArtifacts/myServiceArtifact/vmArtifactsProfiles/vmArtifactsProfile" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/galleries/myGallery/serviceArtifacts/myServiceArtifact/vmArtifactsProfiles/vmArtifactsProfile", }, - windowsConfiguration: { enableAutomaticUpdates: false } - } + windowsConfiguration: { enableAutomaticUpdates: false }, + }, }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 }, + }, + upgradePolicy: { + automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, + mode: "automatic", }, - vmSize: "Standard_d4s_v3" + vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -674,7 +735,7 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -683,7 +744,7 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_AcceleratedNetworking.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_AcceleratedNetworking.json */ async function createPoolAcceleratedNetworking() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -698,20 +759,20 @@ async function createPoolAcceleratedNetworking() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-datacenter-smalldisk", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.windows amd64" - } + nodeAgentSkuId: "batch.node.windows amd64", + }, }, networkConfiguration: { enableAcceleratedNetworking: true, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "STANDARD_D1_V2" + vmSize: "STANDARD_D1_V2", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -719,7 +780,7 @@ async function createPoolAcceleratedNetworking() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -734,6 +795,7 @@ async function main() { createPoolPublicIPs(); createPoolResourceTags(); createPoolSecurityProfile(); + createPoolUpgradePolicy(); createPoolUserAssignedIdentities(); createPoolVirtualMachineConfigurationExtensions(); createPoolVirtualMachineConfigurationOSDisk(); diff --git a/sdk/batch/arm-batch/samples-dev/poolDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/poolDeleteSample.ts index cf18ad258e9d..a9c912eb888f 100644 --- a/sdk/batch/arm-batch/samples-dev/poolDeleteSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified pool. * * @summary Deletes the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json */ async function deletePool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function deletePool() { const result = await client.poolOperations.beginDeleteAndWait( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/poolDisableAutoScaleSample.ts b/sdk/batch/arm-batch/samples-dev/poolDisableAutoScaleSample.ts index c10f630a8671..92d1ba4f00de 100644 --- a/sdk/batch/arm-batch/samples-dev/poolDisableAutoScaleSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolDisableAutoScaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Disables automatic scaling for a pool. * * @summary Disables automatic scaling for a pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDisableAutoScale.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json */ async function disableAutoScale() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function disableAutoScale() { const result = await client.poolOperations.disableAutoScale( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/poolGetSample.ts b/sdk/batch/arm-batch/samples-dev/poolGetSample.ts index eb208ab6a187..ee1c5fc0db34 100644 --- a/sdk/batch/arm-batch/samples-dev/poolGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json */ async function getPool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getPool() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -40,7 +40,7 @@ async function getPool() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_AcceleratedNetworking.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_AcceleratedNetworking.json */ async function getPoolAcceleratedNetworking() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -53,7 +53,7 @@ async function getPoolAcceleratedNetworking() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -62,7 +62,7 @@ async function getPoolAcceleratedNetworking() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_SecurityProfile.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_SecurityProfile.json */ async function getPoolSecurityProfile() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -75,7 +75,7 @@ async function getPoolSecurityProfile() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -84,7 +84,29 @@ async function getPoolSecurityProfile() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_UpgradePolicy.json + */ +async function getPoolUpgradePolicy() { + const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; + const accountName = "sampleacct"; + const poolName = "testpool"; + const credential = new DefaultAzureCredential(); + const client = new BatchManagementClient(credential, subscriptionId); + const result = await client.poolOperations.get( + resourceGroupName, + accountName, + poolName, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Gets information about the specified pool. + * + * @summary Gets information about the specified pool. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json */ async function getPoolVirtualMachineConfigurationExtensions() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -97,7 +119,7 @@ async function getPoolVirtualMachineConfigurationExtensions() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -106,7 +128,7 @@ async function getPoolVirtualMachineConfigurationExtensions() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json */ async function getPoolVirtualMachineConfigurationOSDisk() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -119,7 +141,7 @@ async function getPoolVirtualMachineConfigurationOSDisk() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -128,7 +150,7 @@ async function getPoolVirtualMachineConfigurationOSDisk() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json */ async function getPoolVirtualMachineConfigurationServiceArtifactReference() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -141,7 +163,7 @@ async function getPoolVirtualMachineConfigurationServiceArtifactReference() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -150,6 +172,7 @@ async function main() { getPool(); getPoolAcceleratedNetworking(); getPoolSecurityProfile(); + getPoolUpgradePolicy(); getPoolVirtualMachineConfigurationExtensions(); getPoolVirtualMachineConfigurationOSDisk(); getPoolVirtualMachineConfigurationServiceArtifactReference(); diff --git a/sdk/batch/arm-batch/samples-dev/poolListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples-dev/poolListByBatchAccountSample.ts index 3e76c5e8f0cd..ddd4e180cc82 100644 --- a/sdk/batch/arm-batch/samples-dev/poolListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolListByBatchAccountSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PoolListByBatchAccountOptionalParams, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the pools in the specified account. * * @summary Lists all of the pools in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json */ async function listPool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function listPool() { const resArray = new Array(); for await (let item of client.poolOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } @@ -44,7 +44,7 @@ async function listPool() { * This sample demonstrates how to Lists all of the pools in the specified account. * * @summary Lists all of the pools in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolListWithFilter.json */ async function listPoolWithFilter() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -62,7 +62,7 @@ async function listPoolWithFilter() { for await (let item of client.poolOperations.listByBatchAccount( resourceGroupName, accountName, - options + options, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/poolStopResizeSample.ts b/sdk/batch/arm-batch/samples-dev/poolStopResizeSample.ts index 1f4dd79eeccb..7a33f48c738f 100644 --- a/sdk/batch/arm-batch/samples-dev/poolStopResizeSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolStopResizeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. * * @summary This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolStopResize.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json */ async function stopPoolResize() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function stopPoolResize() { const result = await client.poolOperations.stopResize( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/poolUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/poolUpdateSample.ts index fa0397c7b525..bfe544cbcb18 100644 --- a/sdk/batch/arm-batch/samples-dev/poolUpdateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_EnableAutoScale.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json */ async function updatePoolEnableAutoscale() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function updatePoolEnableAutoscale() { const accountName = "sampleacct"; const poolName = "testpool"; const parameters: Pool = { - scaleSettings: { autoScale: { formula: "$TargetDedicatedNodes=34" } } + scaleSettings: { autoScale: { formula: "$TargetDedicatedNodes=34" } }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -35,7 +35,7 @@ async function updatePoolEnableAutoscale() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -44,7 +44,7 @@ async function updatePoolEnableAutoscale() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_OtherProperties.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_OtherProperties.json */ async function updatePoolOtherProperties() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -55,25 +55,22 @@ async function updatePoolOtherProperties() { const parameters: Pool = { applicationPackages: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234", }, { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_5678", - version: "1.0" - } + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_5678", + version: "1.0", + }, ], certificates: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", storeLocation: "LocalMachine", - storeName: "MY" - } + storeName: "MY", + }, ], metadata: [{ name: "key1", value: "value1" }], - targetNodeCommunicationMode: "Simplified" + targetNodeCommunicationMode: "Simplified", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -81,7 +78,7 @@ async function updatePoolOtherProperties() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -90,7 +87,7 @@ async function updatePoolOtherProperties() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_RemoveStartTask.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_RemoveStartTask.json */ async function updatePoolRemoveStartTask() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -105,7 +102,7 @@ async function updatePoolRemoveStartTask() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -114,7 +111,7 @@ async function updatePoolRemoveStartTask() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_ResizePool.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_ResizePool.json */ async function updatePoolResizePool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -128,9 +125,9 @@ async function updatePoolResizePool() { nodeDeallocationOption: "TaskCompletion", resizeTimeout: "PT8M", targetDedicatedNodes: 5, - targetLowPriorityNodes: 0 - } - } + targetLowPriorityNodes: 0, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -138,7 +135,7 @@ async function updatePoolResizePool() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionDeleteSample.ts index d8e0c7ef64fe..f5562067e058 100644 --- a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionDeleteSample.ts +++ b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified private endpoint connection. * * @summary Deletes the specified private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json */ async function privateEndpointConnectionDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,11 +29,12 @@ async function privateEndpointConnectionDelete() { "testprivateEndpointConnection5testprivateEndpointConnection5.24d6b4b5-e65c-4330-bbe9-3a290d62f8e0"; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); - const result = await client.privateEndpointConnectionOperations.beginDeleteAndWait( - resourceGroupName, - accountName, - privateEndpointConnectionName - ); + const result = + await client.privateEndpointConnectionOperations.beginDeleteAndWait( + resourceGroupName, + accountName, + privateEndpointConnectionName, + ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionGetSample.ts b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionGetSample.ts index b83b8adf4525..f21885b1e9dc 100644 --- a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified private endpoint connection. * * @summary Gets information about the specified private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json */ async function getPrivateEndpointConnection() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function getPrivateEndpointConnection() { const result = await client.privateEndpointConnectionOperations.get( resourceGroupName, accountName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionListByBatchAccountSample.ts index 488f066105a5..e93316acdb2d 100644 --- a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionListByBatchAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the private endpoint connections in the specified account. * * @summary Lists all of the private endpoint connections in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionsList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json */ async function listPrivateEndpointConnections() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listPrivateEndpointConnections() { const resArray = new Array(); for await (let item of client.privateEndpointConnectionOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionUpdateSample.ts index dda28f162d82..055c113527c2 100644 --- a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionUpdateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointConnection, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing private endpoint connection. * * @summary Updates the properties of an existing private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionUpdate.json */ async function updatePrivateEndpointConnection() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,17 +33,18 @@ async function updatePrivateEndpointConnection() { const parameters: PrivateEndpointConnection = { privateLinkServiceConnectionState: { description: "Approved by xyz.abc@company.com", - status: "Approved" - } + status: "Approved", + }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); - const result = await client.privateEndpointConnectionOperations.beginUpdateAndWait( - resourceGroupName, - accountName, - privateEndpointConnectionName, - parameters - ); + const result = + await client.privateEndpointConnectionOperations.beginUpdateAndWait( + resourceGroupName, + accountName, + privateEndpointConnectionName, + parameters, + ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/privateLinkResourceGetSample.ts b/sdk/batch/arm-batch/samples-dev/privateLinkResourceGetSample.ts index c00ae2cf0c01..08a2c9e9186f 100644 --- a/sdk/batch/arm-batch/samples-dev/privateLinkResourceGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/privateLinkResourceGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified private link resource. * * @summary Gets information about the specified private link resource. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourceGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json */ async function getPrivateLinkResource() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getPrivateLinkResource() { const result = await client.privateLinkResourceOperations.get( resourceGroupName, accountName, - privateLinkResourceName + privateLinkResourceName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/privateLinkResourceListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples-dev/privateLinkResourceListByBatchAccountSample.ts index bc3d78c558cc..285583c8a39a 100644 --- a/sdk/batch/arm-batch/samples-dev/privateLinkResourceListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples-dev/privateLinkResourceListByBatchAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the private link resources in the specified account. * * @summary Lists all of the private link resources in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourcesList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourcesList.json */ async function listPrivateLinkResource() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listPrivateLinkResource() { const resArray = new Array(); for await (let item of client.privateLinkResourceOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/javascript/README.md b/sdk/batch/arm-batch/samples/v9/javascript/README.md index 8c5de35a90b6..607a85fcd9f9 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/README.md +++ b/sdk/batch/arm-batch/samples/v9/javascript/README.md @@ -4,52 +4,52 @@ These sample programs show how to use the JavaScript client libraries for in som | **File Name** | **Description** | | --------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [applicationCreateSample.js][applicationcreatesample] | Adds an application to the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationCreate.json | -| [applicationDeleteSample.js][applicationdeletesample] | Deletes an application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationDelete.json | -| [applicationGetSample.js][applicationgetsample] | Gets information about the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationGet.json | -| [applicationListSample.js][applicationlistsample] | Lists all of the applications in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationList.json | -| [applicationPackageActivateSample.js][applicationpackageactivatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageActivate.json | -| [applicationPackageCreateSample.js][applicationpackagecreatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageCreate.json | -| [applicationPackageDeleteSample.js][applicationpackagedeletesample] | Deletes an application package record and its associated binary file. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageDelete.json | -| [applicationPackageGetSample.js][applicationpackagegetsample] | Gets information about the specified application package. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageGet.json | -| [applicationPackageListSample.js][applicationpackagelistsample] | Lists all of the application packages in the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageList.json | -| [applicationUpdateSample.js][applicationupdatesample] | Updates settings for the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationUpdate.json | -| [batchAccountCreateSample.js][batchaccountcreatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_BYOS.json | -| [batchAccountDeleteSample.js][batchaccountdeletesample] | Deletes the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountDelete.json | -| [batchAccountGetDetectorSample.js][batchaccountgetdetectorsample] | Gets information about the given detector for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json | -| [batchAccountGetKeysSample.js][batchaccountgetkeyssample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGetKeys.json | -| [batchAccountGetSample.js][batchaccountgetsample] | Gets information about the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json | -| [batchAccountListByResourceGroupSample.js][batchaccountlistbyresourcegroupsample] | Gets information about the Batch accounts associated with the specified resource group. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListByResourceGroup.json | -| [batchAccountListDetectorsSample.js][batchaccountlistdetectorssample] | Gets information about the detectors available for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorList.json | -| [batchAccountListOutboundNetworkDependenciesEndpointsSample.js][batchaccountlistoutboundnetworkdependenciesendpointssample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json | -| [batchAccountListSample.js][batchaccountlistsample] | Gets information about the Batch accounts associated with the subscription. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountList.json | -| [batchAccountRegenerateKeySample.js][batchaccountregeneratekeysample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountRegenerateKey.json | -| [batchAccountSynchronizeAutoStorageKeysSample.js][batchaccountsynchronizeautostoragekeyssample] | Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountSynchronizeAutoStorageKeys.json | -| [batchAccountUpdateSample.js][batchaccountupdatesample] | Updates the properties of an existing Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountUpdate.json | -| [certificateCancelDeletionSample.js][certificatecanceldeletionsample] | 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. //@@TS-MAGIC-NEWLINE@@ 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCancelDeletion.json | -| [certificateCreateSample.js][certificatecreatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Full.json | -| [certificateDeleteSample.js][certificatedeletesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateDelete.json | -| [certificateGetSample.js][certificategetsample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json | -| [certificateListByBatchAccountSample.js][certificatelistbybatchaccountsample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateList.json | -| [certificateUpdateSample.js][certificateupdatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateUpdate.json | -| [locationCheckNameAvailabilitySample.js][locationchecknameavailabilitysample] | Checks whether the Batch account name is available in the specified region. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_AlreadyExists.json | -| [locationGetQuotasSample.js][locationgetquotassample] | Gets the Batch service quotas for the specified subscription at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationGetQuotas.json | -| [locationListSupportedCloudServiceSkusSample.js][locationlistsupportedcloudserviceskussample] | Gets the list of Batch supported Cloud Service VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListCloudServiceSkus.json | -| [locationListSupportedVirtualMachineSkusSample.js][locationlistsupportedvirtualmachineskussample] | Gets the list of Batch supported Virtual Machine VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListVirtualMachineSkus.json | -| [operationsListSample.js][operationslistsample] | Lists available operations for the Microsoft.Batch provider x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/OperationsList.json | -| [poolCreateSample.js][poolcreatesample] | Creates a new pool inside the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SharedImageGallery.json | -| [poolDeleteSample.js][pooldeletesample] | Deletes the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDelete.json | -| [poolDisableAutoScaleSample.js][pooldisableautoscalesample] | Disables automatic scaling for a pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDisableAutoScale.json | -| [poolGetSample.js][poolgetsample] | Gets information about the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet.json | -| [poolListByBatchAccountSample.js][poollistbybatchaccountsample] | Lists all of the pools in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolList.json | -| [poolStopResizeSample.js][poolstopresizesample] | This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolStopResize.json | -| [poolUpdateSample.js][poolupdatesample] | Updates the properties of an existing pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_EnableAutoScale.json | -| [privateEndpointConnectionDeleteSample.js][privateendpointconnectiondeletesample] | Deletes the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionDelete.json | -| [privateEndpointConnectionGetSample.js][privateendpointconnectiongetsample] | Gets information about the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionGet.json | -| [privateEndpointConnectionListByBatchAccountSample.js][privateendpointconnectionlistbybatchaccountsample] | Lists all of the private endpoint connections in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionsList.json | -| [privateEndpointConnectionUpdateSample.js][privateendpointconnectionupdatesample] | Updates the properties of an existing private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionUpdate.json | -| [privateLinkResourceGetSample.js][privatelinkresourcegetsample] | Gets information about the specified private link resource. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourceGet.json | -| [privateLinkResourceListByBatchAccountSample.js][privatelinkresourcelistbybatchaccountsample] | Lists all of the private link resources in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourcesList.json | +| [applicationCreateSample.js][applicationcreatesample] | Adds an application to the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json | +| [applicationDeleteSample.js][applicationdeletesample] | Deletes an application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json | +| [applicationGetSample.js][applicationgetsample] | Gets information about the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json | +| [applicationListSample.js][applicationlistsample] | Lists all of the applications in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json | +| [applicationPackageActivateSample.js][applicationpackageactivatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json | +| [applicationPackageCreateSample.js][applicationpackagecreatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json | +| [applicationPackageDeleteSample.js][applicationpackagedeletesample] | Deletes an application package record and its associated binary file. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json | +| [applicationPackageGetSample.js][applicationpackagegetsample] | Gets information about the specified application package. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json | +| [applicationPackageListSample.js][applicationpackagelistsample] | Lists all of the application packages in the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json | +| [applicationUpdateSample.js][applicationupdatesample] | Updates settings for the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json | +| [batchAccountCreateSample.js][batchaccountcreatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json | +| [batchAccountDeleteSample.js][batchaccountdeletesample] | Deletes the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json | +| [batchAccountGetDetectorSample.js][batchaccountgetdetectorsample] | Gets information about the given detector for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json | +| [batchAccountGetKeysSample.js][batchaccountgetkeyssample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json | +| [batchAccountGetSample.js][batchaccountgetsample] | Gets information about the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json | +| [batchAccountListByResourceGroupSample.js][batchaccountlistbyresourcegroupsample] | Gets information about the Batch accounts associated with the specified resource group. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json | +| [batchAccountListDetectorsSample.js][batchaccountlistdetectorssample] | Gets information about the detectors available for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json | +| [batchAccountListOutboundNetworkDependenciesEndpointsSample.js][batchaccountlistoutboundnetworkdependenciesendpointssample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json | +| [batchAccountListSample.js][batchaccountlistsample] | Gets information about the Batch accounts associated with the subscription. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json | +| [batchAccountRegenerateKeySample.js][batchaccountregeneratekeysample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json | +| [batchAccountSynchronizeAutoStorageKeysSample.js][batchaccountsynchronizeautostoragekeyssample] | Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json | +| [batchAccountUpdateSample.js][batchaccountupdatesample] | Updates the properties of an existing Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json | +| [certificateCancelDeletionSample.js][certificatecanceldeletionsample] | 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. //@@TS-MAGIC-NEWLINE@@ 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json | +| [certificateCreateSample.js][certificatecreatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json | +| [certificateDeleteSample.js][certificatedeletesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json | +| [certificateGetSample.js][certificategetsample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json | +| [certificateListByBatchAccountSample.js][certificatelistbybatchaccountsample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json | +| [certificateUpdateSample.js][certificateupdatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json | +| [locationCheckNameAvailabilitySample.js][locationchecknameavailabilitysample] | Checks whether the Batch account name is available in the specified region. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json | +| [locationGetQuotasSample.js][locationgetquotassample] | Gets the Batch service quotas for the specified subscription at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json | +| [locationListSupportedCloudServiceSkusSample.js][locationlistsupportedcloudserviceskussample] | Gets the list of Batch supported Cloud Service VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json | +| [locationListSupportedVirtualMachineSkusSample.js][locationlistsupportedvirtualmachineskussample] | Gets the list of Batch supported Virtual Machine VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json | +| [operationsListSample.js][operationslistsample] | Lists available operations for the Microsoft.Batch provider x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json | +| [poolCreateSample.js][poolcreatesample] | Creates a new pool inside the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json | +| [poolDeleteSample.js][pooldeletesample] | Deletes the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json | +| [poolDisableAutoScaleSample.js][pooldisableautoscalesample] | Disables automatic scaling for a pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json | +| [poolGetSample.js][poolgetsample] | Gets information about the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json | +| [poolListByBatchAccountSample.js][poollistbybatchaccountsample] | Lists all of the pools in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json | +| [poolStopResizeSample.js][poolstopresizesample] | This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json | +| [poolUpdateSample.js][poolupdatesample] | Updates the properties of an existing pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json | +| [privateEndpointConnectionDeleteSample.js][privateendpointconnectiondeletesample] | Deletes the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json | +| [privateEndpointConnectionGetSample.js][privateendpointconnectiongetsample] | Gets information about the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json | +| [privateEndpointConnectionListByBatchAccountSample.js][privateendpointconnectionlistbybatchaccountsample] | Lists all of the private endpoint connections in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json | +| [privateEndpointConnectionUpdateSample.js][privateendpointconnectionupdatesample] | Updates the properties of an existing private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionUpdate.json | +| [privateLinkResourceGetSample.js][privatelinkresourcegetsample] | Gets information about the specified private link resource. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json | +| [privateLinkResourceListByBatchAccountSample.js][privatelinkresourcelistbybatchaccountsample] | Lists all of the private link resources in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourcesList.json | ## Prerequisites diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationCreateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationCreateSample.js index 5d7e48fdaead..b5db95add04f 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationCreateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Adds an application to the specified Batch account. * * @summary Adds an application to the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json */ async function applicationCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationDeleteSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationDeleteSample.js index 2b34e0ad3e85..11a00a873c16 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationDeleteSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an application. * * @summary Deletes an application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json */ async function applicationDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationGetSample.js index 7f8a00940740..65fb660a9507 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the specified application. * * @summary Gets information about the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json */ async function applicationGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationListSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationListSample.js index f5391d800a26..8b3692e173aa 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationListSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the applications in the specified account. * * @summary Lists all of the applications in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json */ async function applicationList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageActivateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageActivateSample.js index 989022c9fe70..65d3a0272dc9 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageActivateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageActivateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageActivate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json */ async function applicationPackageActivate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageCreateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageCreateSample.js index 632c0ff65e15..b9510c2a3512 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageCreateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json */ async function applicationPackageCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageDeleteSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageDeleteSample.js index b170c47c4ce1..bf517ae12f0d 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageDeleteSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an application package record and its associated binary file. * * @summary Deletes an application package record and its associated binary file. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json */ async function applicationPackageDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageGetSample.js index f3390d539e96..b16875ec3bef 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the specified application package. * * @summary Gets information about the specified application package. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json */ async function applicationPackageGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageListSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageListSample.js index d550e6632c4a..2356de10a2b0 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageListSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the application packages in the specified application. * * @summary Lists all of the application packages in the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json */ async function applicationPackageList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationUpdateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationUpdateSample.js index 9ab51e9740d6..f202ea2b005a 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationUpdateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates settings for the specified application. * * @summary Updates settings for the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json */ async function applicationUpdate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountCreateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountCreateSample.js index 6b2c1564dac9..5bbc873f81d0 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountCreateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_BYOS.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json */ async function batchAccountCreateByos() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -48,7 +48,7 @@ async function batchAccountCreateByos() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_Default.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_Default.json */ async function batchAccountCreateDefault() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -75,7 +75,7 @@ async function batchAccountCreateDefault() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_SystemAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_SystemAssignedIdentity.json */ async function batchAccountCreateSystemAssignedIdentity() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -103,7 +103,7 @@ async function batchAccountCreateSystemAssignedIdentity() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_UserAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_UserAssignedIdentity.json */ async function batchAccountCreateUserAssignedIdentity() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -137,7 +137,7 @@ async function batchAccountCreateUserAssignedIdentity() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountCreate.json */ async function privateBatchAccountCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountDeleteSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountDeleteSample.js index 47133687dae2..69cb5dc6043b 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountDeleteSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified Batch account. * * @summary Deletes the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json */ async function batchAccountDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetDetectorSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetDetectorSample.js index 3c3897978a23..976d9d6b5021 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetDetectorSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetDetectorSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the given detector for a given Batch account. * * @summary Gets information about the given detector for a given Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json */ async function getDetector() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetKeysSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetKeysSample.js index badbe550bcb9..061c3879df34 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetKeysSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetKeysSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGetKeys.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json */ async function batchAccountGetKeys() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetSample.js index b0f614cc3dd8..ff0192b6d6de 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the specified Batch account. * * @summary Gets information about the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json */ async function batchAccountGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function batchAccountGet() { * This sample demonstrates how to Gets information about the specified Batch account. * * @summary Gets information about the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountGet.json */ async function privateBatchAccountGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListByResourceGroupSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListByResourceGroupSample.js index c50860efc125..509cacc1f91d 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListByResourceGroupSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the Batch accounts associated with the specified resource group. * * @summary Gets information about the Batch accounts associated with the specified resource group. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListByResourceGroup.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json */ async function batchAccountListByResourceGroup() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListDetectorsSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListDetectorsSample.js index 0502a931c1a9..db3bb8037671 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListDetectorsSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListDetectorsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the detectors available for a given Batch account. * * @summary Gets information about the detectors available for a given Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json */ async function listDetectors() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListOutboundNetworkDependenciesEndpointsSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListOutboundNetworkDependenciesEndpointsSample.js index 739cda1b20df..cd555fdf4c1b 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListOutboundNetworkDependenciesEndpointsSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListOutboundNetworkDependenciesEndpointsSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * 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. + * 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. * - * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json + * @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. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json */ async function listOutboundNetworkDependencies() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListSample.js index 41eadc16027f..0473ec85a61c 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the Batch accounts associated with the subscription. * * @summary Gets information about the Batch accounts associated with the subscription. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json */ async function batchAccountList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountRegenerateKeySample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountRegenerateKeySample.js index b0b6a0e12df2..361e8f289826 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountRegenerateKeySample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountRegenerateKeySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountRegenerateKey.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json */ async function batchAccountRegenerateKey() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountSynchronizeAutoStorageKeysSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountSynchronizeAutoStorageKeysSample.js index dd4ff709e919..4a6d6ea96239 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountSynchronizeAutoStorageKeysSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountSynchronizeAutoStorageKeysSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * 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. * * @summary Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountSynchronizeAutoStorageKeys.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json */ async function batchAccountSynchronizeAutoStorageKeys() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountUpdateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountUpdateSample.js index 04e1fd2719a2..cb991341426f 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountUpdateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the properties of an existing Batch account. * * @summary Updates the properties of an existing Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json */ async function batchAccountUpdate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/certificateCancelDeletionSample.js b/sdk/batch/arm-batch/samples/v9/javascript/certificateCancelDeletionSample.js index 43298a033cc1..37eb9de32ab3 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/certificateCancelDeletionSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/certificateCancelDeletionSample.js @@ -20,7 +20,7 @@ Warning: This operation is deprecated and will be removed after February, 2024. * @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. 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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCancelDeletion.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json */ async function certificateCancelDeletion() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/certificateCreateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/certificateCreateSample.js index e74f3408820c..ce5cb1a1907e 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/certificateCreateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/certificateCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Full.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json */ async function createCertificateFull() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -45,7 +45,7 @@ async function createCertificateFull() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_MinimalCer.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_MinimalCer.json */ async function createCertificateMinimalCer() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -71,7 +71,7 @@ async function createCertificateMinimalCer() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Minimal.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Minimal.json */ async function createCertificateMinimalPfx() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/certificateDeleteSample.js b/sdk/batch/arm-batch/samples/v9/javascript/certificateDeleteSample.js index 5c679939dabb..40785b67927b 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/certificateDeleteSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/certificateDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json */ async function certificateDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/certificateGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/certificateGetSample.js index dad8d8da3261..e4c5e4fae699 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/certificateGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/certificateGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json */ async function getCertificate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -37,7 +37,7 @@ async function getCertificate() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGetWithDeletionError.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGetWithDeletionError.json */ async function getCertificateWithDeletionError() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/certificateListByBatchAccountSample.js b/sdk/batch/arm-batch/samples/v9/javascript/certificateListByBatchAccountSample.js index 2314eb903a7f..e2913b045ff7 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/certificateListByBatchAccountSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/certificateListByBatchAccountSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json */ async function listCertificates() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -38,7 +38,7 @@ async function listCertificates() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateListWithFilter.json */ async function listCertificatesFilterAndSelect() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/certificateUpdateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/certificateUpdateSample.js index 2c1386684443..ee646a8b1da4 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/certificateUpdateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/certificateUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json */ async function updateCertificate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/locationCheckNameAvailabilitySample.js b/sdk/batch/arm-batch/samples/v9/javascript/locationCheckNameAvailabilitySample.js index 7b527ba50814..d8407fa395c5 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/locationCheckNameAvailabilitySample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/locationCheckNameAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Checks whether the Batch account name is available in the specified region. * * @summary Checks whether the Batch account name is available in the specified region. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_AlreadyExists.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json */ async function locationCheckNameAvailabilityAlreadyExists() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -35,7 +35,7 @@ async function locationCheckNameAvailabilityAlreadyExists() { * This sample demonstrates how to Checks whether the Batch account name is available in the specified region. * * @summary Checks whether the Batch account name is available in the specified region. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_Available.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_Available.json */ async function locationCheckNameAvailabilityAvailable() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/locationGetQuotasSample.js b/sdk/batch/arm-batch/samples/v9/javascript/locationGetQuotasSample.js index 0012cec10aee..a4f4f4fa4663 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/locationGetQuotasSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/locationGetQuotasSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the Batch service quotas for the specified subscription at the given location. * * @summary Gets the Batch service quotas for the specified subscription at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationGetQuotas.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json */ async function locationGetQuotas() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedCloudServiceSkusSample.js b/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedCloudServiceSkusSample.js index ab7ef144f835..97f01ae414c9 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedCloudServiceSkusSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedCloudServiceSkusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the list of Batch supported Cloud Service VM sizes available at the given location. * * @summary Gets the list of Batch supported Cloud Service VM sizes available at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListCloudServiceSkus.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json */ async function locationListCloudServiceSkus() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedVirtualMachineSkusSample.js b/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedVirtualMachineSkusSample.js index 4ef7cb1fd31a..92fb29c6a8b8 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedVirtualMachineSkusSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedVirtualMachineSkusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the list of Batch supported Virtual Machine VM sizes available at the given location. * * @summary Gets the list of Batch supported Virtual Machine VM sizes available at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListVirtualMachineSkus.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json */ async function locationListVirtualMachineSkus() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/operationsListSample.js b/sdk/batch/arm-batch/samples/v9/javascript/operationsListSample.js index 9339ba527f8d..65713f385abd 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/operationsListSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/operationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists available operations for the Microsoft.Batch provider * * @summary Lists available operations for the Microsoft.Batch provider - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/OperationsList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json */ async function operationsList() { const subscriptionId = diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolCreateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolCreateSample.js index 72a9262ea624..828bf091d16d 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolCreateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SharedImageGallery.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json */ async function createPoolCustomImage() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -49,7 +49,7 @@ async function createPoolCustomImage() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_CloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_CloudServiceConfiguration.json */ async function createPoolFullCloudServiceConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -148,7 +148,7 @@ async function createPoolFullCloudServiceConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration.json */ async function createPoolFullVirtualMachineConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -236,7 +236,7 @@ async function createPoolFullVirtualMachineConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json */ async function createPoolMinimalCloudServiceConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -263,7 +263,7 @@ async function createPoolMinimalCloudServiceConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json */ async function createPoolMinimalVirtualMachineConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -305,7 +305,7 @@ async function createPoolMinimalVirtualMachineConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_NoPublicIPAddresses.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_NoPublicIPAddresses.json */ async function createPoolNoPublicIP() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -343,7 +343,7 @@ async function createPoolNoPublicIP() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_PublicIPs.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_PublicIPs.json */ async function createPoolPublicIPs() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -386,7 +386,7 @@ async function createPoolPublicIPs() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_ResourceTags.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_ResourceTags.json */ async function createPoolResourceTags() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -426,7 +426,7 @@ async function createPoolResourceTags() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SecurityProfile.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SecurityProfile.json */ async function createPoolSecurityProfile() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -470,7 +470,66 @@ async function createPoolSecurityProfile() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_UserAssignedIdentities.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UpgradePolicy.json + */ +async function createPoolUpgradePolicy() { + const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; + const accountName = "sampleacct"; + const poolName = "testpool"; + const parameters = { + deploymentConfiguration: { + virtualMachineConfiguration: { + imageReference: { + offer: "WindowsServer", + publisher: "MicrosoftWindowsServer", + sku: "2019-datacenter-smalldisk", + version: "latest", + }, + nodeAgentSkuId: "batch.node.windows amd64", + nodePlacementConfiguration: { policy: "Zonal" }, + windowsConfiguration: { enableAutomaticUpdates: false }, + }, + }, + scaleSettings: { + fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 }, + }, + upgradePolicy: { + automaticOSUpgradePolicy: { + disableAutomaticRollback: true, + enableAutomaticOSUpgrade: true, + osRollingUpgradeDeferral: true, + useRollingUpgradePolicy: true, + }, + mode: "automatic", + rollingUpgradePolicy: { + enableCrossZoneUpgrade: true, + maxBatchInstancePercent: 20, + maxUnhealthyInstancePercent: 20, + maxUnhealthyUpgradedInstancePercent: 20, + pauseTimeBetweenBatches: "PT0S", + prioritizeUnhealthyInstances: false, + rollbackFailedInstancesOnPolicyBreach: false, + }, + }, + vmSize: "Standard_d4s_v3", + }; + const credential = new DefaultAzureCredential(); + const client = new BatchManagementClient(credential, subscriptionId); + const result = await client.poolOperations.create( + resourceGroupName, + accountName, + poolName, + parameters, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates a new pool inside the specified account. + * + * @summary Creates a new pool inside the specified account. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UserAssignedIdentities.json */ async function createPoolUserAssignedIdentities() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -521,7 +580,7 @@ async function createPoolUserAssignedIdentities() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json */ async function createPoolVirtualMachineConfigurationExtensions() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -577,7 +636,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json */ async function createPoolVirtualMachineConfigurationOSDisk() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -621,7 +680,7 @@ async function createPoolVirtualMachineConfigurationOSDisk() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json */ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -647,6 +706,10 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { scaleSettings: { fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 }, }, + upgradePolicy: { + automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, + mode: "automatic", + }, vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); @@ -664,7 +727,7 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_AcceleratedNetworking.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_AcceleratedNetworking.json */ async function createPoolAcceleratedNetworking() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -714,6 +777,7 @@ async function main() { createPoolPublicIPs(); createPoolResourceTags(); createPoolSecurityProfile(); + createPoolUpgradePolicy(); createPoolUserAssignedIdentities(); createPoolVirtualMachineConfigurationExtensions(); createPoolVirtualMachineConfigurationOSDisk(); diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolDeleteSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolDeleteSample.js index 37c52a862a47..71f2e688210d 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolDeleteSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified pool. * * @summary Deletes the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json */ async function deletePool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolDisableAutoScaleSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolDisableAutoScaleSample.js index 5b477e10a804..f0105d8e1ab1 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolDisableAutoScaleSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolDisableAutoScaleSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Disables automatic scaling for a pool. * * @summary Disables automatic scaling for a pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDisableAutoScale.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json */ async function disableAutoScale() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolGetSample.js index 164fc18f2c9d..c7b8498614de 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json */ async function getPool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function getPool() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_AcceleratedNetworking.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_AcceleratedNetworking.json */ async function getPoolAcceleratedNetworking() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -50,7 +50,7 @@ async function getPoolAcceleratedNetworking() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_SecurityProfile.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_SecurityProfile.json */ async function getPoolSecurityProfile() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -67,7 +67,24 @@ async function getPoolSecurityProfile() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_UpgradePolicy.json + */ +async function getPoolUpgradePolicy() { + const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; + const accountName = "sampleacct"; + const poolName = "testpool"; + const credential = new DefaultAzureCredential(); + const client = new BatchManagementClient(credential, subscriptionId); + const result = await client.poolOperations.get(resourceGroupName, accountName, poolName); + console.log(result); +} + +/** + * This sample demonstrates how to Gets information about the specified pool. + * + * @summary Gets information about the specified pool. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json */ async function getPoolVirtualMachineConfigurationExtensions() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -84,7 +101,7 @@ async function getPoolVirtualMachineConfigurationExtensions() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json */ async function getPoolVirtualMachineConfigurationOSDisk() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -101,7 +118,7 @@ async function getPoolVirtualMachineConfigurationOSDisk() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json */ async function getPoolVirtualMachineConfigurationServiceArtifactReference() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -118,6 +135,7 @@ async function main() { getPool(); getPoolAcceleratedNetworking(); getPoolSecurityProfile(); + getPoolUpgradePolicy(); getPoolVirtualMachineConfigurationExtensions(); getPoolVirtualMachineConfigurationOSDisk(); getPoolVirtualMachineConfigurationServiceArtifactReference(); diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolListByBatchAccountSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolListByBatchAccountSample.js index 6d3d037aba31..eb48717bacb2 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolListByBatchAccountSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolListByBatchAccountSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the pools in the specified account. * * @summary Lists all of the pools in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json */ async function listPool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -35,7 +35,7 @@ async function listPool() { * This sample demonstrates how to Lists all of the pools in the specified account. * * @summary Lists all of the pools in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolListWithFilter.json */ async function listPoolWithFilter() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolStopResizeSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolStopResizeSample.js index b5e1916f1df0..e3732c3eab73 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolStopResizeSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolStopResizeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. * * @summary This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolStopResize.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json */ async function stopPoolResize() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolUpdateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolUpdateSample.js index 2161023bba69..d04e9ab8362e 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolUpdateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_EnableAutoScale.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json */ async function updatePoolEnableAutoscale() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -41,7 +41,7 @@ async function updatePoolEnableAutoscale() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_OtherProperties.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_OtherProperties.json */ async function updatePoolOtherProperties() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -83,7 +83,7 @@ async function updatePoolOtherProperties() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_RemoveStartTask.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_RemoveStartTask.json */ async function updatePoolRemoveStartTask() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -106,7 +106,7 @@ async function updatePoolRemoveStartTask() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_ResizePool.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_ResizePool.json */ async function updatePoolResizePool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionDeleteSample.js b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionDeleteSample.js index 60e91d3576ab..b221b30620b6 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionDeleteSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified private endpoint connection. * * @summary Deletes the specified private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json */ async function privateEndpointConnectionDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionGetSample.js index 406f8d3dc204..b63c99408b24 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the specified private endpoint connection. * * @summary Gets information about the specified private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json */ async function getPrivateEndpointConnection() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionListByBatchAccountSample.js b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionListByBatchAccountSample.js index c5693239b272..3727fb556fac 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionListByBatchAccountSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionListByBatchAccountSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the private endpoint connections in the specified account. * * @summary Lists all of the private endpoint connections in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionsList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json */ async function listPrivateEndpointConnections() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionUpdateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionUpdateSample.js index f88d0adc737d..f67960055542 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionUpdateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the properties of an existing private endpoint connection. * * @summary Updates the properties of an existing private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionUpdate.json */ async function updatePrivateEndpointConnection() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceGetSample.js index f4066398a2c6..9fd4a3eae66b 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the specified private link resource. * * @summary Gets information about the specified private link resource. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourceGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json */ async function getPrivateLinkResource() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceListByBatchAccountSample.js b/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceListByBatchAccountSample.js index d1af6bce38e1..ac05db0b9641 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceListByBatchAccountSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceListByBatchAccountSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the private link resources in the specified account. * * @summary Lists all of the private link resources in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourcesList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourcesList.json */ async function listPrivateLinkResource() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/typescript/README.md b/sdk/batch/arm-batch/samples/v9/typescript/README.md index 03256f187939..c9ef131367a0 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/README.md +++ b/sdk/batch/arm-batch/samples/v9/typescript/README.md @@ -4,52 +4,52 @@ These sample programs show how to use the TypeScript client libraries for in som | **File Name** | **Description** | | --------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [applicationCreateSample.ts][applicationcreatesample] | Adds an application to the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationCreate.json | -| [applicationDeleteSample.ts][applicationdeletesample] | Deletes an application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationDelete.json | -| [applicationGetSample.ts][applicationgetsample] | Gets information about the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationGet.json | -| [applicationListSample.ts][applicationlistsample] | Lists all of the applications in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationList.json | -| [applicationPackageActivateSample.ts][applicationpackageactivatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageActivate.json | -| [applicationPackageCreateSample.ts][applicationpackagecreatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageCreate.json | -| [applicationPackageDeleteSample.ts][applicationpackagedeletesample] | Deletes an application package record and its associated binary file. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageDelete.json | -| [applicationPackageGetSample.ts][applicationpackagegetsample] | Gets information about the specified application package. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageGet.json | -| [applicationPackageListSample.ts][applicationpackagelistsample] | Lists all of the application packages in the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageList.json | -| [applicationUpdateSample.ts][applicationupdatesample] | Updates settings for the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationUpdate.json | -| [batchAccountCreateSample.ts][batchaccountcreatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_BYOS.json | -| [batchAccountDeleteSample.ts][batchaccountdeletesample] | Deletes the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountDelete.json | -| [batchAccountGetDetectorSample.ts][batchaccountgetdetectorsample] | Gets information about the given detector for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json | -| [batchAccountGetKeysSample.ts][batchaccountgetkeyssample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGetKeys.json | -| [batchAccountGetSample.ts][batchaccountgetsample] | Gets information about the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json | -| [batchAccountListByResourceGroupSample.ts][batchaccountlistbyresourcegroupsample] | Gets information about the Batch accounts associated with the specified resource group. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListByResourceGroup.json | -| [batchAccountListDetectorsSample.ts][batchaccountlistdetectorssample] | Gets information about the detectors available for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorList.json | -| [batchAccountListOutboundNetworkDependenciesEndpointsSample.ts][batchaccountlistoutboundnetworkdependenciesendpointssample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json | -| [batchAccountListSample.ts][batchaccountlistsample] | Gets information about the Batch accounts associated with the subscription. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountList.json | -| [batchAccountRegenerateKeySample.ts][batchaccountregeneratekeysample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountRegenerateKey.json | -| [batchAccountSynchronizeAutoStorageKeysSample.ts][batchaccountsynchronizeautostoragekeyssample] | Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountSynchronizeAutoStorageKeys.json | -| [batchAccountUpdateSample.ts][batchaccountupdatesample] | Updates the properties of an existing Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountUpdate.json | -| [certificateCancelDeletionSample.ts][certificatecanceldeletionsample] | 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. //@@TS-MAGIC-NEWLINE@@ 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCancelDeletion.json | -| [certificateCreateSample.ts][certificatecreatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Full.json | -| [certificateDeleteSample.ts][certificatedeletesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateDelete.json | -| [certificateGetSample.ts][certificategetsample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json | -| [certificateListByBatchAccountSample.ts][certificatelistbybatchaccountsample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateList.json | -| [certificateUpdateSample.ts][certificateupdatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateUpdate.json | -| [locationCheckNameAvailabilitySample.ts][locationchecknameavailabilitysample] | Checks whether the Batch account name is available in the specified region. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_AlreadyExists.json | -| [locationGetQuotasSample.ts][locationgetquotassample] | Gets the Batch service quotas for the specified subscription at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationGetQuotas.json | -| [locationListSupportedCloudServiceSkusSample.ts][locationlistsupportedcloudserviceskussample] | Gets the list of Batch supported Cloud Service VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListCloudServiceSkus.json | -| [locationListSupportedVirtualMachineSkusSample.ts][locationlistsupportedvirtualmachineskussample] | Gets the list of Batch supported Virtual Machine VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListVirtualMachineSkus.json | -| [operationsListSample.ts][operationslistsample] | Lists available operations for the Microsoft.Batch provider x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/OperationsList.json | -| [poolCreateSample.ts][poolcreatesample] | Creates a new pool inside the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SharedImageGallery.json | -| [poolDeleteSample.ts][pooldeletesample] | Deletes the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDelete.json | -| [poolDisableAutoScaleSample.ts][pooldisableautoscalesample] | Disables automatic scaling for a pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDisableAutoScale.json | -| [poolGetSample.ts][poolgetsample] | Gets information about the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet.json | -| [poolListByBatchAccountSample.ts][poollistbybatchaccountsample] | Lists all of the pools in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolList.json | -| [poolStopResizeSample.ts][poolstopresizesample] | This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolStopResize.json | -| [poolUpdateSample.ts][poolupdatesample] | Updates the properties of an existing pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_EnableAutoScale.json | -| [privateEndpointConnectionDeleteSample.ts][privateendpointconnectiondeletesample] | Deletes the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionDelete.json | -| [privateEndpointConnectionGetSample.ts][privateendpointconnectiongetsample] | Gets information about the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionGet.json | -| [privateEndpointConnectionListByBatchAccountSample.ts][privateendpointconnectionlistbybatchaccountsample] | Lists all of the private endpoint connections in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionsList.json | -| [privateEndpointConnectionUpdateSample.ts][privateendpointconnectionupdatesample] | Updates the properties of an existing private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionUpdate.json | -| [privateLinkResourceGetSample.ts][privatelinkresourcegetsample] | Gets information about the specified private link resource. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourceGet.json | -| [privateLinkResourceListByBatchAccountSample.ts][privatelinkresourcelistbybatchaccountsample] | Lists all of the private link resources in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourcesList.json | +| [applicationCreateSample.ts][applicationcreatesample] | Adds an application to the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json | +| [applicationDeleteSample.ts][applicationdeletesample] | Deletes an application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json | +| [applicationGetSample.ts][applicationgetsample] | Gets information about the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json | +| [applicationListSample.ts][applicationlistsample] | Lists all of the applications in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json | +| [applicationPackageActivateSample.ts][applicationpackageactivatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json | +| [applicationPackageCreateSample.ts][applicationpackagecreatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json | +| [applicationPackageDeleteSample.ts][applicationpackagedeletesample] | Deletes an application package record and its associated binary file. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json | +| [applicationPackageGetSample.ts][applicationpackagegetsample] | Gets information about the specified application package. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json | +| [applicationPackageListSample.ts][applicationpackagelistsample] | Lists all of the application packages in the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json | +| [applicationUpdateSample.ts][applicationupdatesample] | Updates settings for the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json | +| [batchAccountCreateSample.ts][batchaccountcreatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json | +| [batchAccountDeleteSample.ts][batchaccountdeletesample] | Deletes the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json | +| [batchAccountGetDetectorSample.ts][batchaccountgetdetectorsample] | Gets information about the given detector for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json | +| [batchAccountGetKeysSample.ts][batchaccountgetkeyssample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json | +| [batchAccountGetSample.ts][batchaccountgetsample] | Gets information about the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json | +| [batchAccountListByResourceGroupSample.ts][batchaccountlistbyresourcegroupsample] | Gets information about the Batch accounts associated with the specified resource group. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json | +| [batchAccountListDetectorsSample.ts][batchaccountlistdetectorssample] | Gets information about the detectors available for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json | +| [batchAccountListOutboundNetworkDependenciesEndpointsSample.ts][batchaccountlistoutboundnetworkdependenciesendpointssample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json | +| [batchAccountListSample.ts][batchaccountlistsample] | Gets information about the Batch accounts associated with the subscription. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json | +| [batchAccountRegenerateKeySample.ts][batchaccountregeneratekeysample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json | +| [batchAccountSynchronizeAutoStorageKeysSample.ts][batchaccountsynchronizeautostoragekeyssample] | Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json | +| [batchAccountUpdateSample.ts][batchaccountupdatesample] | Updates the properties of an existing Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json | +| [certificateCancelDeletionSample.ts][certificatecanceldeletionsample] | 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. //@@TS-MAGIC-NEWLINE@@ 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json | +| [certificateCreateSample.ts][certificatecreatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json | +| [certificateDeleteSample.ts][certificatedeletesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json | +| [certificateGetSample.ts][certificategetsample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json | +| [certificateListByBatchAccountSample.ts][certificatelistbybatchaccountsample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json | +| [certificateUpdateSample.ts][certificateupdatesample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json | +| [locationCheckNameAvailabilitySample.ts][locationchecknameavailabilitysample] | Checks whether the Batch account name is available in the specified region. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json | +| [locationGetQuotasSample.ts][locationgetquotassample] | Gets the Batch service quotas for the specified subscription at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json | +| [locationListSupportedCloudServiceSkusSample.ts][locationlistsupportedcloudserviceskussample] | Gets the list of Batch supported Cloud Service VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json | +| [locationListSupportedVirtualMachineSkusSample.ts][locationlistsupportedvirtualmachineskussample] | Gets the list of Batch supported Virtual Machine VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json | +| [operationsListSample.ts][operationslistsample] | Lists available operations for the Microsoft.Batch provider x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json | +| [poolCreateSample.ts][poolcreatesample] | Creates a new pool inside the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json | +| [poolDeleteSample.ts][pooldeletesample] | Deletes the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json | +| [poolDisableAutoScaleSample.ts][pooldisableautoscalesample] | Disables automatic scaling for a pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json | +| [poolGetSample.ts][poolgetsample] | Gets information about the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json | +| [poolListByBatchAccountSample.ts][poollistbybatchaccountsample] | Lists all of the pools in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json | +| [poolStopResizeSample.ts][poolstopresizesample] | This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json | +| [poolUpdateSample.ts][poolupdatesample] | Updates the properties of an existing pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json | +| [privateEndpointConnectionDeleteSample.ts][privateendpointconnectiondeletesample] | Deletes the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json | +| [privateEndpointConnectionGetSample.ts][privateendpointconnectiongetsample] | Gets information about the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json | +| [privateEndpointConnectionListByBatchAccountSample.ts][privateendpointconnectionlistbybatchaccountsample] | Lists all of the private endpoint connections in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json | +| [privateEndpointConnectionUpdateSample.ts][privateendpointconnectionupdatesample] | Updates the properties of an existing private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionUpdate.json | +| [privateLinkResourceGetSample.ts][privatelinkresourcegetsample] | Gets information about the specified private link resource. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json | +| [privateLinkResourceListByBatchAccountSample.ts][privatelinkresourcelistbybatchaccountsample] | Lists all of the private link resources in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourcesList.json | ## Prerequisites diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationCreateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationCreateSample.ts index 64c4c2f1f6ff..a8dbd7489cc8 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationCreateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationCreateSample.ts @@ -11,7 +11,7 @@ import { Application, ApplicationCreateOptionalParams, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Adds an application to the specified Batch account. * * @summary Adds an application to the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json */ async function applicationCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function applicationCreate() { const applicationName = "app1"; const parameters: Application = { allowUpdates: false, - displayName: "myAppName" + displayName: "myAppName", }; const options: ApplicationCreateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -41,7 +41,7 @@ async function applicationCreate() { resourceGroupName, accountName, applicationName, - options + options, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationDeleteSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationDeleteSample.ts index 78302373bbf7..cc654adc53ca 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationDeleteSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an application. * * @summary Deletes an application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json */ async function applicationDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function applicationDelete() { const result = await client.applicationOperations.delete( resourceGroupName, accountName, - applicationName + applicationName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationGetSample.ts index 37ba964c881e..5c8040343af6 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified application. * * @summary Gets information about the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json */ async function applicationGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function applicationGet() { const result = await client.applicationOperations.get( resourceGroupName, accountName, - applicationName + applicationName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationListSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationListSample.ts index 0b9fbf8a43ae..7bc002d6e44c 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationListSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the applications in the specified account. * * @summary Lists all of the applications in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json */ async function applicationList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function applicationList() { const resArray = new Array(); for await (let item of client.applicationOperations.list( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageActivateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageActivateSample.ts index fdff2415ef76..300527a53c43 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageActivateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageActivateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ActivateApplicationPackageParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageActivate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json */ async function applicationPackageActivate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -38,7 +38,7 @@ async function applicationPackageActivate() { accountName, applicationName, versionName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageCreateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageCreateSample.ts index f05044dc1f76..24947565f7ee 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageCreateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json */ async function applicationPackageCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function applicationPackageCreate() { resourceGroupName, accountName, applicationName, - versionName + versionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageDeleteSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageDeleteSample.ts index a60eed70c9d5..5dfb9a724185 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageDeleteSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an application package record and its associated binary file. * * @summary Deletes an application package record and its associated binary file. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json */ async function applicationPackageDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function applicationPackageDelete() { resourceGroupName, accountName, applicationName, - versionName + versionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageGetSample.ts index 3728f051deb6..ae9deebd6509 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified application package. * * @summary Gets information about the specified application package. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json */ async function applicationPackageGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function applicationPackageGet() { resourceGroupName, accountName, applicationName, - versionName + versionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageListSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageListSample.ts index 1f9f2731ec96..d2ec0a3b8aad 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageListSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the application packages in the specified application. * * @summary Lists all of the application packages in the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json */ async function applicationPackageList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function applicationPackageList() { for await (let item of client.applicationPackageOperations.list( resourceGroupName, accountName, - applicationName + applicationName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationUpdateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationUpdateSample.ts index 6c012f8e5b44..7a2ab45754e2 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationUpdateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates settings for the specified application. * * @summary Updates settings for the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json */ async function applicationUpdate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function applicationUpdate() { const parameters: Application = { allowUpdates: true, defaultVersion: "2", - displayName: "myAppName" + displayName: "myAppName", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -37,7 +37,7 @@ async function applicationUpdate() { resourceGroupName, accountName, applicationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountCreateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountCreateSample.ts index c114b1b2edd3..b18c9a9b33f8 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountCreateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BatchAccountCreateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_BYOS.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json */ async function batchAccountCreateByos() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,22 +31,21 @@ async function batchAccountCreateByos() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, keyVaultReference: { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", - url: "http://sample.vault.azure.net/" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", + url: "http://sample.vault.azure.net/", }, location: "japaneast", - poolAllocationMode: "UserSubscription" + poolAllocationMode: "UserSubscription", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -55,7 +54,7 @@ async function batchAccountCreateByos() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_Default.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_Default.json */ async function batchAccountCreateDefault() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -65,16 +64,16 @@ async function batchAccountCreateDefault() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, - location: "japaneast" + location: "japaneast", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -83,7 +82,7 @@ async function batchAccountCreateDefault() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_SystemAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_SystemAssignedIdentity.json */ async function batchAccountCreateSystemAssignedIdentity() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -93,17 +92,17 @@ async function batchAccountCreateSystemAssignedIdentity() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, identity: { type: "SystemAssigned" }, - location: "japaneast" + location: "japaneast", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -112,7 +111,7 @@ async function batchAccountCreateSystemAssignedIdentity() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_UserAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_UserAssignedIdentity.json */ async function batchAccountCreateUserAssignedIdentity() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -122,22 +121,23 @@ async function batchAccountCreateUserAssignedIdentity() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} - } + "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": + {}, + }, }, - location: "japaneast" + location: "japaneast", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -146,7 +146,7 @@ async function batchAccountCreateUserAssignedIdentity() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountCreate.json */ async function privateBatchAccountCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -156,22 +156,21 @@ async function privateBatchAccountCreate() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, keyVaultReference: { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", - url: "http://sample.vault.azure.net/" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", + url: "http://sample.vault.azure.net/", }, location: "japaneast", - publicNetworkAccess: "Disabled" + publicNetworkAccess: "Disabled", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountDeleteSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountDeleteSample.ts index 215254b6434c..3ab28b3efbbb 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountDeleteSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Batch account. * * @summary Deletes the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json */ async function batchAccountDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountDelete() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginDeleteAndWait( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetDetectorSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetDetectorSample.ts index f21e79d7b5bd..02afade8344e 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetDetectorSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetDetectorSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the given detector for a given Batch account. * * @summary Gets information about the given detector for a given Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json */ async function getDetector() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getDetector() { const result = await client.batchAccountOperations.getDetector( resourceGroupName, accountName, - detectorId + detectorId, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetKeysSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetKeysSample.ts index 007159c908cd..146587b90ee8 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetKeysSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGetKeys.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json */ async function batchAccountGetKeys() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountGetKeys() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.getKeys( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetSample.ts index e9de30289660..1b379c7b2016 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified Batch account. * * @summary Gets information about the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json */ async function batchAccountGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountGet() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.get( resourceGroupName, - accountName + accountName, ); console.log(result); } @@ -38,7 +38,7 @@ async function batchAccountGet() { * This sample demonstrates how to Gets information about the specified Batch account. * * @summary Gets information about the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountGet.json */ async function privateBatchAccountGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -49,7 +49,7 @@ async function privateBatchAccountGet() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.get( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListByResourceGroupSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListByResourceGroupSample.ts index 474a0cf06a3f..3d89d382ca06 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListByResourceGroupSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the Batch accounts associated with the specified resource group. * * @summary Gets information about the Batch accounts associated with the specified resource group. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListByResourceGroup.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json */ async function batchAccountListByResourceGroup() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -28,7 +28,7 @@ async function batchAccountListByResourceGroup() { const client = new BatchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.batchAccountOperations.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListDetectorsSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListDetectorsSample.ts index 201e99bfec41..02c7bbb2963c 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListDetectorsSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListDetectorsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the detectors available for a given Batch account. * * @summary Gets information about the detectors available for a given Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json */ async function listDetectors() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listDetectors() { const resArray = new Array(); for await (let item of client.batchAccountOperations.listDetectors( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts index adb1740d9092..b16fc0e1eba5 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * 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. + * 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. * - * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json + * @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. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json */ async function listOutboundNetworkDependencies() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listOutboundNetworkDependencies() { const resArray = new Array(); for await (let item of client.batchAccountOperations.listOutboundNetworkDependenciesEndpoints( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListSample.ts index d3059c1cd420..7e7e86a007ca 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the Batch accounts associated with the subscription. * * @summary Gets information about the Batch accounts associated with the subscription. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json */ async function batchAccountList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountRegenerateKeySample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountRegenerateKeySample.ts index 2af55052d73c..cb32a95ec558 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountRegenerateKeySample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountRegenerateKeySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BatchAccountRegenerateKeyParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountRegenerateKey.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json */ async function batchAccountRegenerateKey() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,14 +29,14 @@ async function batchAccountRegenerateKey() { process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; const accountName = "sampleacct"; const parameters: BatchAccountRegenerateKeyParameters = { - keyName: "Primary" + keyName: "Primary", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.regenerateKey( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountSynchronizeAutoStorageKeysSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountSynchronizeAutoStorageKeysSample.ts index a1745f885316..270e29f2fe26 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountSynchronizeAutoStorageKeysSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountSynchronizeAutoStorageKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * 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. * * @summary Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountSynchronizeAutoStorageKeys.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json */ async function batchAccountSynchronizeAutoStorageKeys() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountSynchronizeAutoStorageKeys() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.synchronizeAutoStorageKeys( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountUpdateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountUpdateSample.ts index 0b9d17a48d7f..dcd5e09a8b35 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountUpdateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BatchAccountUpdateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing Batch account. * * @summary Updates the properties of an existing Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json */ async function batchAccountUpdate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,15 +31,15 @@ async function batchAccountUpdate() { const parameters: BatchAccountUpdateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" - } + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", + }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.update( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCancelDeletionSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCancelDeletionSample.ts index c5eb7f42ea6c..be9ee3b99080 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCancelDeletionSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCancelDeletionSample.ts @@ -22,7 +22,7 @@ Warning: This operation is deprecated and will be removed after February, 2024. * @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. 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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCancelDeletion.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json */ async function certificateCancelDeletion() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -35,7 +35,7 @@ async function certificateCancelDeletion() { const result = await client.certificateOperations.cancelDeletion( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCreateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCreateSample.ts index 0cf0437c6750..732c5eb1da22 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCreateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CertificateCreateOrUpdateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Full.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json */ async function createCertificateFull() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -34,7 +34,7 @@ async function createCertificateFull() { data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...", password: "", thumbprint: "0a0e4f50d51beadeac1d35afc5116098e7902e6e", - thumbprintAlgorithm: "sha1" + thumbprintAlgorithm: "sha1", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -42,7 +42,7 @@ async function createCertificateFull() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } @@ -51,7 +51,7 @@ async function createCertificateFull() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_MinimalCer.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_MinimalCer.json */ async function createCertificateMinimalCer() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -61,7 +61,7 @@ async function createCertificateMinimalCer() { const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e"; const parameters: CertificateCreateOrUpdateParameters = { format: "Cer", - data: "MIICrjCCAZagAwI..." + data: "MIICrjCCAZagAwI...", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -69,7 +69,7 @@ async function createCertificateMinimalCer() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } @@ -78,7 +78,7 @@ async function createCertificateMinimalCer() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Minimal.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Minimal.json */ async function createCertificateMinimalPfx() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -88,7 +88,7 @@ async function createCertificateMinimalPfx() { const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e"; const parameters: CertificateCreateOrUpdateParameters = { data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...", - password: "" + password: "", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -96,7 +96,7 @@ async function createCertificateMinimalPfx() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateDeleteSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateDeleteSample.ts index 6f5983bd38c2..efca48cb301a 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateDeleteSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json */ async function certificateDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function certificateDelete() { const result = await client.certificateOperations.beginDeleteAndWait( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateGetSample.ts index 35f3a497aed3..877bcc59143b 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json */ async function getCertificate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getCertificate() { const result = await client.certificateOperations.get( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } @@ -40,7 +40,7 @@ async function getCertificate() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGetWithDeletionError.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGetWithDeletionError.json */ async function getCertificateWithDeletionError() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -53,7 +53,7 @@ async function getCertificateWithDeletionError() { const result = await client.certificateOperations.get( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateListByBatchAccountSample.ts index 19c1364f0406..50d9f2df5da4 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateListByBatchAccountSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CertificateListByBatchAccountOptionalParams, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json */ async function listCertificates() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function listCertificates() { const resArray = new Array(); for await (let item of client.certificateOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } @@ -44,7 +44,7 @@ async function listCertificates() { * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateListWithFilter.json */ async function listCertificatesFilterAndSelect() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -56,7 +56,7 @@ async function listCertificatesFilterAndSelect() { "properties/provisioningStateTransitionTime gt '2017-05-01' or properties/provisioningState eq 'Failed'"; const options: CertificateListByBatchAccountOptionalParams = { select, - filter + filter, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -64,7 +64,7 @@ async function listCertificatesFilterAndSelect() { for await (let item of client.certificateOperations.listByBatchAccount( resourceGroupName, accountName, - options + options, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateUpdateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateUpdateSample.ts index e230bb7c7d5d..aefb9a6329aa 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateUpdateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CertificateCreateOrUpdateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * 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. * * @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. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json */ async function updateCertificate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function updateCertificate() { const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e"; const parameters: CertificateCreateOrUpdateParameters = { data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...", - password: "" + password: "", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function updateCertificate() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/locationCheckNameAvailabilitySample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/locationCheckNameAvailabilitySample.ts index 761b7a3991e7..a8378a706525 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/locationCheckNameAvailabilitySample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/locationCheckNameAvailabilitySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CheckNameAvailabilityParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,20 +21,20 @@ dotenv.config(); * This sample demonstrates how to Checks whether the Batch account name is available in the specified region. * * @summary Checks whether the Batch account name is available in the specified region. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_AlreadyExists.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json */ async function locationCheckNameAvailabilityAlreadyExists() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; const locationName = "japaneast"; const parameters: CheckNameAvailabilityParameters = { name: "existingaccountname", - type: "Microsoft.Batch/batchAccounts" + type: "Microsoft.Batch/batchAccounts", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.location.checkNameAvailability( locationName, - parameters + parameters, ); console.log(result); } @@ -43,20 +43,20 @@ async function locationCheckNameAvailabilityAlreadyExists() { * This sample demonstrates how to Checks whether the Batch account name is available in the specified region. * * @summary Checks whether the Batch account name is available in the specified region. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_Available.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_Available.json */ async function locationCheckNameAvailabilityAvailable() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; const locationName = "japaneast"; const parameters: CheckNameAvailabilityParameters = { name: "newaccountname", - type: "Microsoft.Batch/batchAccounts" + type: "Microsoft.Batch/batchAccounts", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.location.checkNameAvailability( locationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/locationGetQuotasSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/locationGetQuotasSample.ts index a72bd970c416..a3255897f228 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/locationGetQuotasSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/locationGetQuotasSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Batch service quotas for the specified subscription at the given location. * * @summary Gets the Batch service quotas for the specified subscription at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationGetQuotas.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json */ async function locationGetQuotas() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedCloudServiceSkusSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedCloudServiceSkusSample.ts index 126cb58c3ece..2c759a7a9f4d 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedCloudServiceSkusSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedCloudServiceSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Batch supported Cloud Service VM sizes available at the given location. * * @summary Gets the list of Batch supported Cloud Service VM sizes available at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListCloudServiceSkus.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json */ async function locationListCloudServiceSkus() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function locationListCloudServiceSkus() { const client = new BatchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.location.listSupportedCloudServiceSkus( - locationName + locationName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedVirtualMachineSkusSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedVirtualMachineSkusSample.ts index 0371db773b4c..a4542724d2eb 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedVirtualMachineSkusSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedVirtualMachineSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Batch supported Virtual Machine VM sizes available at the given location. * * @summary Gets the list of Batch supported Virtual Machine VM sizes available at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListVirtualMachineSkus.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json */ async function locationListVirtualMachineSkus() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function locationListVirtualMachineSkus() { const client = new BatchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.location.listSupportedVirtualMachineSkus( - locationName + locationName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/operationsListSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/operationsListSample.ts index 31f150fda6ec..465aa4cdc751 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/operationsListSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists available operations for the Microsoft.Batch provider * * @summary Lists available operations for the Microsoft.Batch provider - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/OperationsList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json */ async function operationsList() { const subscriptionId = diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolCreateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolCreateSample.ts index e05ac9f73010..30c2b6d5427c 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolCreateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SharedImageGallery.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json */ async function createPoolCustomImage() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,13 +30,12 @@ async function createPoolCustomImage() { deploymentConfiguration: { virtualMachineConfiguration: { imageReference: { - id: - "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1" + id: "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -44,7 +43,7 @@ async function createPoolCustomImage() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -53,7 +52,7 @@ async function createPoolCustomImage() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_CloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_CloudServiceConfiguration.json */ async function createPoolFullCloudServiceConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -65,50 +64,48 @@ async function createPoolFullCloudServiceConfiguration() { applicationLicenses: ["app-license0", "app-license1"], applicationPackages: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234", - version: "asdf" - } + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234", + version: "asdf", + }, ], certificates: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", storeLocation: "LocalMachine", storeName: "MY", - visibility: ["RemoteUser"] - } + visibility: ["RemoteUser"], + }, ], deploymentConfiguration: { cloudServiceConfiguration: { osFamily: "4", - osVersion: "WA-GUEST-OS-4.45_201708-01" - } + osVersion: "WA-GUEST-OS-4.45_201708-01", + }, }, displayName: "my-pool-name", interNodeCommunication: "Enabled", metadata: [ { name: "metadata-1", value: "value-1" }, - { name: "metadata-2", value: "value-2" } + { name: "metadata-2", value: "value-2" }, ], networkConfiguration: { publicIPAddressConfiguration: { ipAddressIds: [ "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135", - "/subscriptions/subid2/resourceGroups/rg24/providers/Microsoft.Network/publicIPAddresses/ip268" + "/subscriptions/subid2/resourceGroups/rg24/providers/Microsoft.Network/publicIPAddresses/ip268", ], - provision: "UserManaged" + provision: "UserManaged", }, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, scaleSettings: { fixedScale: { nodeDeallocationOption: "TaskCompletion", resizeTimeout: "PT8M", targetDedicatedNodes: 6, - targetLowPriorityNodes: 28 - } + targetLowPriorityNodes: 28, + }, }, startTask: { commandLine: "cmd /c SET", @@ -118,11 +115,12 @@ async function createPoolFullCloudServiceConfiguration() { { fileMode: "777", filePath: "c:\\temp\\gohere", - httpUrl: "https://testaccount.blob.core.windows.net/example-blob-file" - } + httpUrl: + "https://testaccount.blob.core.windows.net/example-blob-file", + }, ], userIdentity: { autoUser: { elevationLevel: "Admin", scope: "Pool" } }, - waitForSuccess: true + waitForSuccess: true, }, taskSchedulingPolicy: { nodeFillType: "Pack" }, taskSlotsPerNode: 13, @@ -133,12 +131,12 @@ async function createPoolFullCloudServiceConfiguration() { linuxUserConfiguration: { gid: 4567, sshPrivateKey: "sshprivatekeyvalue", - uid: 1234 + uid: 1234, }, - password: "" - } + password: "", + }, ], - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -146,7 +144,7 @@ async function createPoolFullCloudServiceConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -155,7 +153,7 @@ async function createPoolFullCloudServiceConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration.json */ async function createPoolFullVirtualMachineConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -171,28 +169,28 @@ async function createPoolFullVirtualMachineConfiguration() { caching: "ReadWrite", diskSizeGB: 30, lun: 0, - storageAccountType: "Premium_LRS" + storageAccountType: "Premium_LRS", }, { caching: "None", diskSizeGB: 200, lun: 1, - storageAccountType: "Standard_LRS" - } + storageAccountType: "Standard_LRS", + }, ], diskEncryptionConfiguration: { targets: ["OsDisk", "TemporaryDisk"] }, imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter-SmallDisk", - version: "latest" + version: "latest", }, licenseType: "Windows_Server", nodeAgentSkuId: "batch.node.windows amd64", nodePlacementConfiguration: { policy: "Zonal" }, osDisk: { ephemeralOSDiskSettings: { placement: "CacheDisk" } }, - windowsConfiguration: { enableAutomaticUpdates: false } - } + windowsConfiguration: { enableAutomaticUpdates: false }, + }, }, networkConfiguration: { endpointConfiguration: { @@ -207,27 +205,27 @@ async function createPoolFullVirtualMachineConfiguration() { access: "Allow", priority: 150, sourceAddressPrefix: "192.100.12.45", - sourcePortRanges: ["1", "2"] + sourcePortRanges: ["1", "2"], }, { access: "Deny", priority: 3500, sourceAddressPrefix: "*", - sourcePortRanges: ["*"] - } + sourcePortRanges: ["*"], + }, ], - protocol: "TCP" - } - ] - } + protocol: "TCP", + }, + ], + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -235,7 +233,7 @@ async function createPoolFullVirtualMachineConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -244,7 +242,7 @@ async function createPoolFullVirtualMachineConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json */ async function createPoolMinimalCloudServiceConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -255,7 +253,7 @@ async function createPoolMinimalCloudServiceConfiguration() { const parameters: Pool = { deploymentConfiguration: { cloudServiceConfiguration: { osFamily: "5" } }, scaleSettings: { fixedScale: { targetDedicatedNodes: 3 } }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -263,7 +261,7 @@ async function createPoolMinimalCloudServiceConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -272,7 +270,7 @@ async function createPoolMinimalCloudServiceConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json */ async function createPoolMinimalVirtualMachineConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -287,18 +285,18 @@ async function createPoolMinimalVirtualMachineConfiguration() { offer: "UbuntuServer", publisher: "Canonical", sku: "18.04-LTS", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -306,7 +304,7 @@ async function createPoolMinimalVirtualMachineConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -315,7 +313,7 @@ async function createPoolMinimalVirtualMachineConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_NoPublicIPAddresses.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_NoPublicIPAddresses.json */ async function createPoolNoPublicIP() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -327,18 +325,17 @@ async function createPoolNoPublicIP() { deploymentConfiguration: { virtualMachineConfiguration: { imageReference: { - id: - "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1" + id: "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, networkConfiguration: { publicIPAddressConfiguration: { provision: "NoPublicIPAddresses" }, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -346,7 +343,7 @@ async function createPoolNoPublicIP() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -355,7 +352,7 @@ async function createPoolNoPublicIP() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_PublicIPs.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_PublicIPs.json */ async function createPoolPublicIPs() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -367,23 +364,22 @@ async function createPoolPublicIPs() { deploymentConfiguration: { virtualMachineConfiguration: { imageReference: { - id: - "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1" + id: "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, networkConfiguration: { publicIPAddressConfiguration: { ipAddressIds: [ - "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135" + "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135", ], - provision: "UserManaged" + provision: "UserManaged", }, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -391,7 +387,7 @@ async function createPoolPublicIPs() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -400,7 +396,7 @@ async function createPoolPublicIPs() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_ResourceTags.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_ResourceTags.json */ async function createPoolResourceTags() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -415,16 +411,16 @@ async function createPoolResourceTags() { offer: "UbuntuServer", publisher: "Canonical", sku: "18_04-lts-gen2", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, resourceTags: { tagName1: "TagValue1", tagName2: "TagValue2" }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "Standard_d4s_v3" + vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -432,7 +428,7 @@ async function createPoolResourceTags() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -441,7 +437,7 @@ async function createPoolResourceTags() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SecurityProfile.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SecurityProfile.json */ async function createPoolSecurityProfile() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -456,20 +452,20 @@ async function createPoolSecurityProfile() { offer: "UbuntuServer", publisher: "Canonical", sku: "18_04-lts-gen2", - version: "latest" + version: "latest", }, nodeAgentSkuId: "batch.node.ubuntu 18.04", securityProfile: { encryptionAtHost: true, securityType: "trustedLaunch", - uefiSettings: { secureBootEnabled: undefined, vTpmEnabled: false } - } - } + uefiSettings: { secureBootEnabled: undefined, vTpmEnabled: false }, + }, + }, }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "Standard_d4s_v3" + vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -477,7 +473,7 @@ async function createPoolSecurityProfile() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -486,7 +482,67 @@ async function createPoolSecurityProfile() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_UserAssignedIdentities.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UpgradePolicy.json + */ +async function createPoolUpgradePolicy() { + const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; + const accountName = "sampleacct"; + const poolName = "testpool"; + const parameters: Pool = { + deploymentConfiguration: { + virtualMachineConfiguration: { + imageReference: { + offer: "WindowsServer", + publisher: "MicrosoftWindowsServer", + sku: "2019-datacenter-smalldisk", + version: "latest", + }, + nodeAgentSkuId: "batch.node.windows amd64", + nodePlacementConfiguration: { policy: "Zonal" }, + windowsConfiguration: { enableAutomaticUpdates: false }, + }, + }, + scaleSettings: { + fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 }, + }, + upgradePolicy: { + automaticOSUpgradePolicy: { + disableAutomaticRollback: true, + enableAutomaticOSUpgrade: true, + osRollingUpgradeDeferral: true, + useRollingUpgradePolicy: true, + }, + mode: "automatic", + rollingUpgradePolicy: { + enableCrossZoneUpgrade: true, + maxBatchInstancePercent: 20, + maxUnhealthyInstancePercent: 20, + maxUnhealthyUpgradedInstancePercent: 20, + pauseTimeBetweenBatches: "PT0S", + prioritizeUnhealthyInstances: false, + rollbackFailedInstancesOnPolicyBreach: false, + }, + }, + vmSize: "Standard_d4s_v3", + }; + const credential = new DefaultAzureCredential(); + const client = new BatchManagementClient(credential, subscriptionId); + const result = await client.poolOperations.create( + resourceGroupName, + accountName, + poolName, + parameters, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates a new pool inside the specified account. + * + * @summary Creates a new pool inside the specified account. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UserAssignedIdentities.json */ async function createPoolUserAssignedIdentities() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -501,25 +557,27 @@ async function createPoolUserAssignedIdentities() { offer: "UbuntuServer", publisher: "Canonical", sku: "18.04-LTS", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": {} - } + "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": + {}, + "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": + {}, + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -527,7 +585,7 @@ async function createPoolUserAssignedIdentities() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -536,7 +594,7 @@ async function createPoolUserAssignedIdentities() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json */ async function createPoolVirtualMachineConfigurationExtensions() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -550,7 +608,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { imageReference: { offer: "0001-com-ubuntu-server-focal", publisher: "Canonical", - sku: "20_04-lts" + sku: "20_04-lts", }, nodeAgentSkuId: "batch.node.ubuntu 20.04", extensions: [ @@ -562,21 +620,21 @@ async function createPoolVirtualMachineConfigurationExtensions() { publisher: "Microsoft.Azure.KeyVault", settings: { authenticationSettingsKey: "authenticationSettingsValue", - secretsManagementSettingsKey: "secretsManagementSettingsValue" + secretsManagementSettingsKey: "secretsManagementSettingsValue", }, - typeHandlerVersion: "2.0" - } - ] - } + typeHandlerVersion: "2.0", + }, + ], + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, targetNodeCommunicationMode: "Default", - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -584,7 +642,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -593,7 +651,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json */ async function createPoolVirtualMachineConfigurationOSDisk() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -607,21 +665,21 @@ async function createPoolVirtualMachineConfigurationOSDisk() { imageReference: { offer: "windowsserver", publisher: "microsoftwindowsserver", - sku: "2022-datacenter-smalldisk" + sku: "2022-datacenter-smalldisk", }, nodeAgentSkuId: "batch.node.windows amd64", osDisk: { caching: "ReadWrite", diskSizeGB: 100, managedDisk: { storageAccountType: "StandardSSD_LRS" }, - writeAcceleratorEnabled: false - } - } + writeAcceleratorEnabled: false, + }, + }, }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "Standard_d2s_v3" + vmSize: "Standard_d2s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -629,7 +687,7 @@ async function createPoolVirtualMachineConfigurationOSDisk() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -638,7 +696,7 @@ async function createPoolVirtualMachineConfigurationOSDisk() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json */ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -653,20 +711,23 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-datacenter-smalldisk", - version: "latest" + version: "latest", }, nodeAgentSkuId: "batch.node.windows amd64", serviceArtifactReference: { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/galleries/myGallery/serviceArtifacts/myServiceArtifact/vmArtifactsProfiles/vmArtifactsProfile" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/galleries/myGallery/serviceArtifacts/myServiceArtifact/vmArtifactsProfiles/vmArtifactsProfile", }, - windowsConfiguration: { enableAutomaticUpdates: false } - } + windowsConfiguration: { enableAutomaticUpdates: false }, + }, }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 }, + }, + upgradePolicy: { + automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, + mode: "automatic", }, - vmSize: "Standard_d4s_v3" + vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -674,7 +735,7 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -683,7 +744,7 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_AcceleratedNetworking.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_AcceleratedNetworking.json */ async function createPoolAcceleratedNetworking() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -698,20 +759,20 @@ async function createPoolAcceleratedNetworking() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-datacenter-smalldisk", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.windows amd64" - } + nodeAgentSkuId: "batch.node.windows amd64", + }, }, networkConfiguration: { enableAcceleratedNetworking: true, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "STANDARD_D1_V2" + vmSize: "STANDARD_D1_V2", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -719,7 +780,7 @@ async function createPoolAcceleratedNetworking() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -734,6 +795,7 @@ async function main() { createPoolPublicIPs(); createPoolResourceTags(); createPoolSecurityProfile(); + createPoolUpgradePolicy(); createPoolUserAssignedIdentities(); createPoolVirtualMachineConfigurationExtensions(); createPoolVirtualMachineConfigurationOSDisk(); diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolDeleteSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolDeleteSample.ts index cf18ad258e9d..a9c912eb888f 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolDeleteSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified pool. * * @summary Deletes the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json */ async function deletePool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function deletePool() { const result = await client.poolOperations.beginDeleteAndWait( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolDisableAutoScaleSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolDisableAutoScaleSample.ts index c10f630a8671..92d1ba4f00de 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolDisableAutoScaleSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolDisableAutoScaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Disables automatic scaling for a pool. * * @summary Disables automatic scaling for a pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDisableAutoScale.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json */ async function disableAutoScale() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function disableAutoScale() { const result = await client.poolOperations.disableAutoScale( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolGetSample.ts index eb208ab6a187..ee1c5fc0db34 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json */ async function getPool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getPool() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -40,7 +40,7 @@ async function getPool() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_AcceleratedNetworking.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_AcceleratedNetworking.json */ async function getPoolAcceleratedNetworking() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -53,7 +53,7 @@ async function getPoolAcceleratedNetworking() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -62,7 +62,7 @@ async function getPoolAcceleratedNetworking() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_SecurityProfile.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_SecurityProfile.json */ async function getPoolSecurityProfile() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -75,7 +75,7 @@ async function getPoolSecurityProfile() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -84,7 +84,29 @@ async function getPoolSecurityProfile() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_UpgradePolicy.json + */ +async function getPoolUpgradePolicy() { + const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; + const accountName = "sampleacct"; + const poolName = "testpool"; + const credential = new DefaultAzureCredential(); + const client = new BatchManagementClient(credential, subscriptionId); + const result = await client.poolOperations.get( + resourceGroupName, + accountName, + poolName, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Gets information about the specified pool. + * + * @summary Gets information about the specified pool. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json */ async function getPoolVirtualMachineConfigurationExtensions() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -97,7 +119,7 @@ async function getPoolVirtualMachineConfigurationExtensions() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -106,7 +128,7 @@ async function getPoolVirtualMachineConfigurationExtensions() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json */ async function getPoolVirtualMachineConfigurationOSDisk() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -119,7 +141,7 @@ async function getPoolVirtualMachineConfigurationOSDisk() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -128,7 +150,7 @@ async function getPoolVirtualMachineConfigurationOSDisk() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json */ async function getPoolVirtualMachineConfigurationServiceArtifactReference() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -141,7 +163,7 @@ async function getPoolVirtualMachineConfigurationServiceArtifactReference() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -150,6 +172,7 @@ async function main() { getPool(); getPoolAcceleratedNetworking(); getPoolSecurityProfile(); + getPoolUpgradePolicy(); getPoolVirtualMachineConfigurationExtensions(); getPoolVirtualMachineConfigurationOSDisk(); getPoolVirtualMachineConfigurationServiceArtifactReference(); diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolListByBatchAccountSample.ts index 3e76c5e8f0cd..ddd4e180cc82 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolListByBatchAccountSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PoolListByBatchAccountOptionalParams, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the pools in the specified account. * * @summary Lists all of the pools in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json */ async function listPool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function listPool() { const resArray = new Array(); for await (let item of client.poolOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } @@ -44,7 +44,7 @@ async function listPool() { * This sample demonstrates how to Lists all of the pools in the specified account. * * @summary Lists all of the pools in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolListWithFilter.json */ async function listPoolWithFilter() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -62,7 +62,7 @@ async function listPoolWithFilter() { for await (let item of client.poolOperations.listByBatchAccount( resourceGroupName, accountName, - options + options, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolStopResizeSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolStopResizeSample.ts index 1f4dd79eeccb..7a33f48c738f 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolStopResizeSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolStopResizeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. * * @summary This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolStopResize.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json */ async function stopPoolResize() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function stopPoolResize() { const result = await client.poolOperations.stopResize( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolUpdateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolUpdateSample.ts index fa0397c7b525..bfe544cbcb18 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolUpdateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_EnableAutoScale.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json */ async function updatePoolEnableAutoscale() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function updatePoolEnableAutoscale() { const accountName = "sampleacct"; const poolName = "testpool"; const parameters: Pool = { - scaleSettings: { autoScale: { formula: "$TargetDedicatedNodes=34" } } + scaleSettings: { autoScale: { formula: "$TargetDedicatedNodes=34" } }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -35,7 +35,7 @@ async function updatePoolEnableAutoscale() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -44,7 +44,7 @@ async function updatePoolEnableAutoscale() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_OtherProperties.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_OtherProperties.json */ async function updatePoolOtherProperties() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -55,25 +55,22 @@ async function updatePoolOtherProperties() { const parameters: Pool = { applicationPackages: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234", }, { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_5678", - version: "1.0" - } + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_5678", + version: "1.0", + }, ], certificates: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", storeLocation: "LocalMachine", - storeName: "MY" - } + storeName: "MY", + }, ], metadata: [{ name: "key1", value: "value1" }], - targetNodeCommunicationMode: "Simplified" + targetNodeCommunicationMode: "Simplified", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -81,7 +78,7 @@ async function updatePoolOtherProperties() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -90,7 +87,7 @@ async function updatePoolOtherProperties() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_RemoveStartTask.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_RemoveStartTask.json */ async function updatePoolRemoveStartTask() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -105,7 +102,7 @@ async function updatePoolRemoveStartTask() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -114,7 +111,7 @@ async function updatePoolRemoveStartTask() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_ResizePool.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_ResizePool.json */ async function updatePoolResizePool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -128,9 +125,9 @@ async function updatePoolResizePool() { nodeDeallocationOption: "TaskCompletion", resizeTimeout: "PT8M", targetDedicatedNodes: 5, - targetLowPriorityNodes: 0 - } - } + targetLowPriorityNodes: 0, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -138,7 +135,7 @@ async function updatePoolResizePool() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionDeleteSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionDeleteSample.ts index d8e0c7ef64fe..f5562067e058 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionDeleteSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified private endpoint connection. * * @summary Deletes the specified private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json */ async function privateEndpointConnectionDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,11 +29,12 @@ async function privateEndpointConnectionDelete() { "testprivateEndpointConnection5testprivateEndpointConnection5.24d6b4b5-e65c-4330-bbe9-3a290d62f8e0"; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); - const result = await client.privateEndpointConnectionOperations.beginDeleteAndWait( - resourceGroupName, - accountName, - privateEndpointConnectionName - ); + const result = + await client.privateEndpointConnectionOperations.beginDeleteAndWait( + resourceGroupName, + accountName, + privateEndpointConnectionName, + ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionGetSample.ts index b83b8adf4525..f21885b1e9dc 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified private endpoint connection. * * @summary Gets information about the specified private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json */ async function getPrivateEndpointConnection() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function getPrivateEndpointConnection() { const result = await client.privateEndpointConnectionOperations.get( resourceGroupName, accountName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionListByBatchAccountSample.ts index 488f066105a5..e93316acdb2d 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionListByBatchAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the private endpoint connections in the specified account. * * @summary Lists all of the private endpoint connections in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionsList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json */ async function listPrivateEndpointConnections() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listPrivateEndpointConnections() { const resArray = new Array(); for await (let item of client.privateEndpointConnectionOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionUpdateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionUpdateSample.ts index dda28f162d82..055c113527c2 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionUpdateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointConnection, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing private endpoint connection. * * @summary Updates the properties of an existing private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionUpdate.json */ async function updatePrivateEndpointConnection() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,17 +33,18 @@ async function updatePrivateEndpointConnection() { const parameters: PrivateEndpointConnection = { privateLinkServiceConnectionState: { description: "Approved by xyz.abc@company.com", - status: "Approved" - } + status: "Approved", + }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); - const result = await client.privateEndpointConnectionOperations.beginUpdateAndWait( - resourceGroupName, - accountName, - privateEndpointConnectionName, - parameters - ); + const result = + await client.privateEndpointConnectionOperations.beginUpdateAndWait( + resourceGroupName, + accountName, + privateEndpointConnectionName, + parameters, + ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceGetSample.ts index c00ae2cf0c01..08a2c9e9186f 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified private link resource. * * @summary Gets information about the specified private link resource. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourceGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json */ async function getPrivateLinkResource() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getPrivateLinkResource() { const result = await client.privateLinkResourceOperations.get( resourceGroupName, accountName, - privateLinkResourceName + privateLinkResourceName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceListByBatchAccountSample.ts index bc3d78c558cc..285583c8a39a 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceListByBatchAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the private link resources in the specified account. * * @summary Lists all of the private link resources in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourcesList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourcesList.json */ async function listPrivateLinkResource() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listPrivateLinkResource() { const resArray = new Array(); for await (let item of client.privateLinkResourceOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/src/batchManagementClient.ts b/sdk/batch/arm-batch/src/batchManagementClient.ts index 2b4559093aad..93ad312c92be 100644 --- a/sdk/batch/arm-batch/src/batchManagementClient.ts +++ b/sdk/batch/arm-batch/src/batchManagementClient.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { @@ -23,7 +23,7 @@ import { CertificateOperationsImpl, PrivateLinkResourceOperationsImpl, PrivateEndpointConnectionOperationsImpl, - PoolOperationsImpl + PoolOperationsImpl, } from "./operations"; import { BatchAccountOperations, @@ -34,7 +34,7 @@ import { CertificateOperations, PrivateLinkResourceOperations, PrivateEndpointConnectionOperations, - PoolOperations + PoolOperations, } from "./operationsInterfaces"; import { BatchManagementClientOptionalParams } from "./models"; @@ -53,7 +53,7 @@ export class BatchManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: BatchManagementClientOptionalParams + options?: BatchManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -68,10 +68,10 @@ export class BatchManagementClient extends coreClient.ServiceClient { } const defaults: BatchManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-batch/9.1.1`; + const packageDetails = `azsdk-js-arm-batch/9.2.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -81,20 +81,21 @@ export class BatchManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -104,7 +105,7 @@ export class BatchManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -114,9 +115,9 @@ export class BatchManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -124,21 +125,20 @@ export class BatchManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-11-01"; + this.apiVersion = options.apiVersion || "2024-02-01"; this.batchAccountOperations = new BatchAccountOperationsImpl(this); this.applicationPackageOperations = new ApplicationPackageOperationsImpl( - this + this, ); this.applicationOperations = new ApplicationOperationsImpl(this); this.location = new LocationImpl(this); this.operations = new OperationsImpl(this); this.certificateOperations = new CertificateOperationsImpl(this); this.privateLinkResourceOperations = new PrivateLinkResourceOperationsImpl( - this - ); - this.privateEndpointConnectionOperations = new PrivateEndpointConnectionOperationsImpl( - this + this, ); + this.privateEndpointConnectionOperations = + new PrivateEndpointConnectionOperationsImpl(this); this.poolOperations = new PoolOperationsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -152,7 +152,7 @@ export class BatchManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -166,7 +166,7 @@ export class BatchManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/batch/arm-batch/src/lroImpl.ts b/sdk/batch/arm-batch/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/batch/arm-batch/src/lroImpl.ts +++ b/sdk/batch/arm-batch/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/batch/arm-batch/src/models/index.ts b/sdk/batch/arm-batch/src/models/index.ts index b0b18caad87d..8d31af50a25f 100644 --- a/sdk/batch/arm-batch/src/models/index.ts +++ b/sdk/batch/arm-batch/src/models/index.ts @@ -349,6 +349,11 @@ export interface SupportedSku { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly capabilities?: SkuCapability[]; + /** + * The time when Azure Batch service will retire this SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly batchSupportEndOfLife?: Date; } /** A SKU capability, such as the number of cores. */ @@ -1021,6 +1026,46 @@ export interface AzureFileShareConfiguration { mountOptions?: string; } +/** Describes an upgrade policy - automatic, manual, or rolling. */ +export interface UpgradePolicy { + /** Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

**Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

**Automatic** - All virtual machines in the scale set are automatically updated at the same time.

**Rolling** - Scale set performs updates in batches with an optional pause time in between. */ + mode: UpgradeMode; + /** The configuration parameters used for performing automatic OS upgrade. */ + automaticOSUpgradePolicy?: AutomaticOSUpgradePolicy; + /** This property is only supported on Pools with the virtualMachineConfiguration property. */ + rollingUpgradePolicy?: RollingUpgradePolicy; +} + +/** The configuration parameters used for performing automatic OS upgrade. */ +export interface AutomaticOSUpgradePolicy { + /** Whether OS image rollback feature should be disabled. */ + disableAutomaticRollback?: boolean; + /** Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available.

If this is set to true for Windows based pools, [WindowsConfiguration.enableAutomaticUpdates](https://learn.microsoft.com/en-us/rest/api/batchmanagement/pool/create?tabs=HTTP#windowsconfiguration) cannot be set to true. */ + enableAutomaticOSUpgrade?: boolean; + /** Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS. */ + useRollingUpgradePolicy?: boolean; + /** Defer OS upgrades on the TVMs if they are running tasks. */ + osRollingUpgradeDeferral?: boolean; +} + +/** The configuration parameters used while performing a rolling upgrade. */ +export interface RollingUpgradePolicy { + /** Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size. If this field is not set, Azure Azure Batch will not set its default value. The value of enableCrossZoneUpgrade on the created VirtualMachineScaleSet will be decided by the default configurations on VirtualMachineScaleSet. This field is able to be set to true or false only when using NodePlacementConfiguration as Zonal. */ + enableCrossZoneUpgrade?: boolean; + /** The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent. */ + maxBatchInstancePercent?: number; + /** The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent. */ + maxUnhealthyInstancePercent?: number; + /** The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The value of this field should be between 0 and 100, inclusive. */ + maxUnhealthyUpgradedInstancePercent?: number; + /** The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. */ + pauseTimeBetweenBatches?: string; + /** Upgrade all unhealthy instances in a scale set before any healthy instances. */ + prioritizeUnhealthyInstances?: boolean; + /** Rollback failed instances to previous model if the Rolling Upgrade policy is violated. */ + rollbackFailedInstancesOnPolicyBreach?: boolean; +} + /** The identity of the Batch pool, if configured. If the pool identity is updated during update an existing pool, only the new vms which are created after the pool shrinks to 0 will have the updated identities */ export interface BatchPoolIdentity { /** The type of identity used for the Batch Pool. */ @@ -1319,6 +1364,8 @@ export interface Pool extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentNodeCommunicationMode?: NodeCommunicationMode; + /** Describes an upgrade policy - automatic, manual, or rolling. */ + upgradePolicy?: UpgradePolicy; /** The user-defined tags to be associated with the Azure Batch Pool. When specified, these tags are propagated to the backing Azure resources associated with the pool. This property can only be specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'. */ resourceTags?: { [propertyName: string]: string }; } @@ -1555,7 +1602,7 @@ export enum KnownContainerType { /** A Docker compatible container technology will be used to launch the containers. */ DockerCompatible = "DockerCompatible", /** A CRI based technology will be used to launch the containers. */ - CriCompatible = "CriCompatible" + CriCompatible = "CriCompatible", } /** @@ -1670,6 +1717,8 @@ export type CertificateStoreLocation = "CurrentUser" | "LocalMachine"; export type CertificateVisibility = "StartTask" | "Task" | "RemoteUser"; /** Defines values for NodeCommunicationMode. */ export type NodeCommunicationMode = "Default" | "Classic" | "Simplified"; +/** Defines values for UpgradeMode. */ +export type UpgradeMode = "automatic" | "manual" | "rolling"; /** Defines values for PoolIdentityType. */ export type PoolIdentityType = "UserAssigned" | "None"; @@ -1759,7 +1808,8 @@ export interface BatchAccountListOutboundNetworkDependenciesEndpointsOptionalPar extends coreClient.OperationOptions {} /** Contains response data for the listOutboundNetworkDependenciesEndpoints operation. */ -export type BatchAccountListOutboundNetworkDependenciesEndpointsResponse = OutboundEnvironmentEndpointCollection; +export type BatchAccountListOutboundNetworkDependenciesEndpointsResponse = + OutboundEnvironmentEndpointCollection; /** Optional parameters. */ export interface BatchAccountListNextOptionalParams @@ -1773,7 +1823,8 @@ export interface BatchAccountListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type BatchAccountListByResourceGroupNextResponse = BatchAccountListResult; +export type BatchAccountListByResourceGroupNextResponse = + BatchAccountListResult; /** Optional parameters. */ export interface BatchAccountListDetectorsNextOptionalParams @@ -1787,7 +1838,8 @@ export interface BatchAccountListOutboundNetworkDependenciesEndpointsNextOptiona extends coreClient.OperationOptions {} /** Contains response data for the listOutboundNetworkDependenciesEndpointsNext operation. */ -export type BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse = OutboundEnvironmentEndpointCollection; +export type BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse = + OutboundEnvironmentEndpointCollection; /** Optional parameters. */ export interface ApplicationPackageActivateOptionalParams @@ -1896,7 +1948,8 @@ export interface LocationListSupportedVirtualMachineSkusOptionalParams } /** Contains response data for the listSupportedVirtualMachineSkus operation. */ -export type LocationListSupportedVirtualMachineSkusResponse = SupportedSkusResult; +export type LocationListSupportedVirtualMachineSkusResponse = + SupportedSkusResult; /** Optional parameters. */ export interface LocationListSupportedCloudServiceSkusOptionalParams @@ -1922,14 +1975,16 @@ export interface LocationListSupportedVirtualMachineSkusNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSupportedVirtualMachineSkusNext operation. */ -export type LocationListSupportedVirtualMachineSkusNextResponse = SupportedSkusResult; +export type LocationListSupportedVirtualMachineSkusNextResponse = + SupportedSkusResult; /** Optional parameters. */ export interface LocationListSupportedCloudServiceSkusNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSupportedCloudServiceSkusNext operation. */ -export type LocationListSupportedCloudServiceSkusNextResponse = SupportedSkusResult; +export type LocationListSupportedCloudServiceSkusNextResponse = + SupportedSkusResult; /** Optional parameters. */ export interface OperationsListOptionalParams @@ -2002,8 +2057,8 @@ export interface CertificateCancelDeletionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the cancelDeletion operation. */ -export type CertificateCancelDeletionResponse = CertificateCancelDeletionHeaders & - Certificate; +export type CertificateCancelDeletionResponse = + CertificateCancelDeletionHeaders & Certificate; /** Optional parameters. */ export interface CertificateListByBatchAccountNextOptionalParams @@ -2020,7 +2075,8 @@ export interface PrivateLinkResourceListByBatchAccountOptionalParams } /** Contains response data for the listByBatchAccount operation. */ -export type PrivateLinkResourceListByBatchAccountResponse = ListPrivateLinkResourcesResult; +export type PrivateLinkResourceListByBatchAccountResponse = + ListPrivateLinkResourcesResult; /** Optional parameters. */ export interface PrivateLinkResourceGetOptionalParams @@ -2034,7 +2090,8 @@ export interface PrivateLinkResourceListByBatchAccountNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByBatchAccountNext operation. */ -export type PrivateLinkResourceListByBatchAccountNextResponse = ListPrivateLinkResourcesResult; +export type PrivateLinkResourceListByBatchAccountNextResponse = + ListPrivateLinkResourcesResult; /** Optional parameters. */ export interface PrivateEndpointConnectionListByBatchAccountOptionalParams @@ -2044,7 +2101,8 @@ export interface PrivateEndpointConnectionListByBatchAccountOptionalParams } /** Contains response data for the listByBatchAccount operation. */ -export type PrivateEndpointConnectionListByBatchAccountResponse = ListPrivateEndpointConnectionsResult; +export type PrivateEndpointConnectionListByBatchAccountResponse = + ListPrivateEndpointConnectionsResult; /** Optional parameters. */ export interface PrivateEndpointConnectionGetOptionalParams @@ -2077,14 +2135,16 @@ export interface PrivateEndpointConnectionDeleteOptionalParams } /** Contains response data for the delete operation. */ -export type PrivateEndpointConnectionDeleteResponse = PrivateEndpointConnectionDeleteHeaders; +export type PrivateEndpointConnectionDeleteResponse = + PrivateEndpointConnectionDeleteHeaders; /** Optional parameters. */ export interface PrivateEndpointConnectionListByBatchAccountNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByBatchAccountNext operation. */ -export type PrivateEndpointConnectionListByBatchAccountNextResponse = ListPrivateEndpointConnectionsResult; +export type PrivateEndpointConnectionListByBatchAccountNextResponse = + ListPrivateEndpointConnectionsResult; /** Optional parameters. */ export interface PoolListByBatchAccountOptionalParams diff --git a/sdk/batch/arm-batch/src/models/mappers.ts b/sdk/batch/arm-batch/src/models/mappers.ts index 21edbbf89a6a..a95cce97add6 100644 --- a/sdk/batch/arm-batch/src/models/mappers.ts +++ b/sdk/batch/arm-batch/src/models/mappers.ts @@ -17,65 +17,65 @@ export const BatchAccountCreateParameters: coreClient.CompositeMapper = { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "BatchAccountIdentity" - } + className: "BatchAccountIdentity", + }, }, autoStorage: { serializedName: "properties.autoStorage", type: { name: "Composite", - className: "AutoStorageBaseProperties" - } + className: "AutoStorageBaseProperties", + }, }, poolAllocationMode: { serializedName: "properties.poolAllocationMode", type: { name: "Enum", - allowedValues: ["BatchService", "UserSubscription"] - } + allowedValues: ["BatchService", "UserSubscription"], + }, }, keyVaultReference: { serializedName: "properties.keyVaultReference", type: { name: "Composite", - className: "KeyVaultReference" - } + className: "KeyVaultReference", + }, }, publicNetworkAccess: { defaultValue: "Enabled", serializedName: "properties.publicNetworkAccess", type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } + allowedValues: ["Enabled", "Disabled"], + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "NetworkProfile" - } + className: "NetworkProfile", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "EncryptionProperties" - } + className: "EncryptionProperties", + }, }, allowedAuthenticationModes: { serializedName: "properties.allowedAuthenticationModes", @@ -85,13 +85,13 @@ export const BatchAccountCreateParameters: coreClient.CompositeMapper = { element: { type: { name: "Enum", - allowedValues: ["SharedKey", "AAD", "TaskAuthenticationToken"] - } - } - } - } - } - } + allowedValues: ["SharedKey", "AAD", "TaskAuthenticationToken"], + }, + }, + }, + }, + }, + }, }; export const AutoStorageBaseProperties: coreClient.CompositeMapper = { @@ -103,26 +103,26 @@ export const AutoStorageBaseProperties: coreClient.CompositeMapper = { serializedName: "storageAccountId", required: true, type: { - name: "String" - } + name: "String", + }, }, authenticationMode: { defaultValue: "StorageKeys", serializedName: "authenticationMode", type: { name: "Enum", - allowedValues: ["StorageKeys", "BatchAccountManagedIdentity"] - } + allowedValues: ["StorageKeys", "BatchAccountManagedIdentity"], + }, }, nodeIdentityReference: { serializedName: "nodeIdentityReference", type: { name: "Composite", - className: "ComputeNodeIdentityReference" - } - } - } - } + className: "ComputeNodeIdentityReference", + }, + }, + }, + }, }; export const ComputeNodeIdentityReference: coreClient.CompositeMapper = { @@ -133,11 +133,11 @@ export const ComputeNodeIdentityReference: coreClient.CompositeMapper = { resourceId: { serializedName: "resourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KeyVaultReference: coreClient.CompositeMapper = { @@ -149,18 +149,18 @@ export const KeyVaultReference: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, url: { serializedName: "url", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetworkProfile: coreClient.CompositeMapper = { @@ -172,18 +172,18 @@ export const NetworkProfile: coreClient.CompositeMapper = { serializedName: "accountAccess", type: { name: "Composite", - className: "EndpointAccessProfile" - } + className: "EndpointAccessProfile", + }, }, nodeManagementAccess: { serializedName: "nodeManagementAccess", type: { name: "Composite", - className: "EndpointAccessProfile" - } - } - } - } + className: "EndpointAccessProfile", + }, + }, + }, + }, }; export const EndpointAccessProfile: coreClient.CompositeMapper = { @@ -196,8 +196,8 @@ export const EndpointAccessProfile: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["Allow", "Deny"] - } + allowedValues: ["Allow", "Deny"], + }, }, ipRules: { serializedName: "ipRules", @@ -206,13 +206,13 @@ export const EndpointAccessProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IPRule" - } - } - } - } - } - } + className: "IPRule", + }, + }, + }, + }, + }, + }, }; export const IPRule: coreClient.CompositeMapper = { @@ -225,18 +225,18 @@ export const IPRule: coreClient.CompositeMapper = { isConstant: true, serializedName: "action", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EncryptionProperties: coreClient.CompositeMapper = { @@ -248,18 +248,18 @@ export const EncryptionProperties: coreClient.CompositeMapper = { serializedName: "keySource", type: { name: "Enum", - allowedValues: ["Microsoft.Batch", "Microsoft.KeyVault"] - } + allowedValues: ["Microsoft.Batch", "Microsoft.KeyVault"], + }, }, keyVaultProperties: { serializedName: "keyVaultProperties", type: { name: "Composite", - className: "KeyVaultProperties" - } - } - } - } + className: "KeyVaultProperties", + }, + }, + }, + }, }; export const KeyVaultProperties: coreClient.CompositeMapper = { @@ -270,11 +270,11 @@ export const KeyVaultProperties: coreClient.CompositeMapper = { keyIdentifier: { serializedName: "keyIdentifier", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BatchAccountIdentity: coreClient.CompositeMapper = { @@ -286,35 +286,35 @@ export const BatchAccountIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, type: { name: "Enum", - allowedValues: ["SystemAssigned", "UserAssigned", "None"] - } + allowedValues: ["SystemAssigned", "UserAssigned", "None"], + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "UserAssignedIdentities" } - } - } - } - } - } + type: { name: "Composite", className: "UserAssignedIdentities" }, + }, + }, + }, + }, + }, }; export const UserAssignedIdentities: coreClient.CompositeMapper = { @@ -326,18 +326,18 @@ export const UserAssignedIdentities: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpoint: coreClient.CompositeMapper = { @@ -349,11 +349,11 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { @@ -366,24 +366,24 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["Approved", "Pending", "Rejected", "Disconnected"] - } + allowedValues: ["Approved", "Pending", "Rejected", "Disconnected"], + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, actionsRequired: { serializedName: "actionsRequired", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProxyResource: coreClient.CompositeMapper = { @@ -395,32 +395,32 @@ export const ProxyResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, etag: { serializedName: "etag", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineFamilyCoreQuota: coreClient.CompositeMapper = { @@ -432,18 +432,18 @@ export const VirtualMachineFamilyCoreQuota: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, coreQuota: { serializedName: "coreQuota", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -455,40 +455,40 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const CloudError: coreClient.CompositeMapper = { @@ -500,11 +500,11 @@ export const CloudError: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "CloudErrorBody" - } - } - } - } + className: "CloudErrorBody", + }, + }, + }, + }, }; export const CloudErrorBody: coreClient.CompositeMapper = { @@ -515,20 +515,20 @@ export const CloudErrorBody: coreClient.CompositeMapper = { code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -537,13 +537,13 @@ export const CloudErrorBody: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudErrorBody" - } - } - } - } - } - } + className: "CloudErrorBody", + }, + }, + }, + }, + }, + }, }; export const BatchAccountUpdateParameters: coreClient.CompositeMapper = { @@ -555,29 +555,29 @@ export const BatchAccountUpdateParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "BatchAccountIdentity" - } + className: "BatchAccountIdentity", + }, }, autoStorage: { serializedName: "properties.autoStorage", type: { name: "Composite", - className: "AutoStorageBaseProperties" - } + className: "AutoStorageBaseProperties", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "EncryptionProperties" - } + className: "EncryptionProperties", + }, }, allowedAuthenticationModes: { serializedName: "properties.allowedAuthenticationModes", @@ -587,28 +587,28 @@ export const BatchAccountUpdateParameters: coreClient.CompositeMapper = { element: { type: { name: "Enum", - allowedValues: ["SharedKey", "AAD", "TaskAuthenticationToken"] - } - } - } + allowedValues: ["SharedKey", "AAD", "TaskAuthenticationToken"], + }, + }, + }, }, publicNetworkAccess: { defaultValue: "Enabled", serializedName: "properties.publicNetworkAccess", type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } + allowedValues: ["Enabled", "Disabled"], + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "NetworkProfile" - } - } - } - } + className: "NetworkProfile", + }, + }, + }, + }, }; export const BatchAccountListResult: coreClient.CompositeMapper = { @@ -623,19 +623,19 @@ export const BatchAccountListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BatchAccount" - } - } - } + className: "BatchAccount", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BatchAccountRegenerateKeyParameters: coreClient.CompositeMapper = { @@ -648,11 +648,11 @@ export const BatchAccountRegenerateKeyParameters: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["Primary", "Secondary"] - } - } - } - } + allowedValues: ["Primary", "Secondary"], + }, + }, + }, + }, }; export const BatchAccountKeys: coreClient.CompositeMapper = { @@ -664,42 +664,43 @@ export const BatchAccountKeys: coreClient.CompositeMapper = { serializedName: "accountName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, primary: { serializedName: "primary", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, secondary: { serializedName: "secondary", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ActivateApplicationPackageParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ActivateApplicationPackageParameters", - modelProperties: { - format: { - serializedName: "format", - required: true, - type: { - name: "String" - } - } - } - } -}; +export const ActivateApplicationPackageParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ActivateApplicationPackageParameters", + modelProperties: { + format: { + serializedName: "format", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const ListApplicationsResult: coreClient.CompositeMapper = { type: { @@ -713,19 +714,19 @@ export const ListApplicationsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Application" - } - } - } + className: "Application", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListApplicationPackagesResult: coreClient.CompositeMapper = { @@ -740,19 +741,19 @@ export const ListApplicationPackagesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApplicationPackage" - } - } - } + className: "ApplicationPackage", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BatchLocationQuota: coreClient.CompositeMapper = { @@ -764,11 +765,11 @@ export const BatchLocationQuota: coreClient.CompositeMapper = { serializedName: "accountQuota", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const SupportedSkusResult: coreClient.CompositeMapper = { @@ -784,20 +785,20 @@ export const SupportedSkusResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SupportedSku" - } - } - } + className: "SupportedSku", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SupportedSku: coreClient.CompositeMapper = { @@ -809,15 +810,15 @@ export const SupportedSku: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, familyName: { serializedName: "familyName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, capabilities: { serializedName: "capabilities", @@ -827,13 +828,20 @@ export const SupportedSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SkuCapability" - } - } - } - } - } - } + className: "SkuCapability", + }, + }, + }, + }, + batchSupportEndOfLife: { + serializedName: "batchSupportEndOfLife", + readOnly: true, + type: { + name: "DateTime", + }, + }, + }, + }, }; export const SkuCapability: coreClient.CompositeMapper = { @@ -845,18 +853,18 @@ export const SkuCapability: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationListResult: coreClient.CompositeMapper = { @@ -871,19 +879,19 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -894,37 +902,37 @@ export const Operation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, isDataAction: { serializedName: "isDataAction", type: { - name: "Boolean" - } + name: "Boolean", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, origin: { serializedName: "origin", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -935,29 +943,29 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckNameAvailabilityParameters: coreClient.CompositeMapper = { @@ -969,19 +977,19 @@ export const CheckNameAvailabilityParameters: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { defaultValue: "Microsoft.Batch/batchAccounts", isConstant: true, serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckNameAvailabilityResult: coreClient.CompositeMapper = { @@ -993,26 +1001,26 @@ export const CheckNameAvailabilityResult: coreClient.CompositeMapper = { serializedName: "nameAvailable", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, reason: { serializedName: "reason", readOnly: true, type: { name: "Enum", - allowedValues: ["Invalid", "AlreadyExists"] - } + allowedValues: ["Invalid", "AlreadyExists"], + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListCertificatesResult: coreClient.CompositeMapper = { @@ -1027,19 +1035,19 @@ export const ListCertificatesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Certificate" - } - } - } + className: "Certificate", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeleteCertificateError: coreClient.CompositeMapper = { @@ -1051,21 +1059,21 @@ export const DeleteCertificateError: coreClient.CompositeMapper = { serializedName: "code", required: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", required: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -1074,13 +1082,13 @@ export const DeleteCertificateError: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeleteCertificateError" - } - } - } - } - } - } + className: "DeleteCertificateError", + }, + }, + }, + }, + }, + }, }; export const CertificateBaseProperties: coreClient.CompositeMapper = { @@ -1091,24 +1099,24 @@ export const CertificateBaseProperties: coreClient.CompositeMapper = { thumbprintAlgorithm: { serializedName: "thumbprintAlgorithm", type: { - name: "String" - } + name: "String", + }, }, thumbprint: { serializedName: "thumbprint", type: { - name: "String" - } + name: "String", + }, }, format: { serializedName: "format", type: { name: "Enum", - allowedValues: ["Pfx", "Cer"] - } - } - } - } + allowedValues: ["Pfx", "Cer"], + }, + }, + }, + }, }; export const DetectorListResult: coreClient.CompositeMapper = { @@ -1123,19 +1131,19 @@ export const DetectorListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DetectorResponse" - } - } - } + className: "DetectorResponse", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListPrivateLinkResourcesResult: coreClient.CompositeMapper = { @@ -1150,48 +1158,49 @@ export const ListPrivateLinkResourcesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } + className: "PrivateLinkResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const ListPrivateEndpointConnectionsResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ListPrivateEndpointConnectionsResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; +export const ListPrivateEndpointConnectionsResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ListPrivateEndpointConnectionsResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; + export const ListPoolsResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1204,19 +1213,19 @@ export const ListPoolsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Pool" - } - } - } + className: "Pool", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeploymentConfiguration: coreClient.CompositeMapper = { @@ -1228,18 +1237,18 @@ export const DeploymentConfiguration: coreClient.CompositeMapper = { serializedName: "cloudServiceConfiguration", type: { name: "Composite", - className: "CloudServiceConfiguration" - } + className: "CloudServiceConfiguration", + }, }, virtualMachineConfiguration: { serializedName: "virtualMachineConfiguration", type: { name: "Composite", - className: "VirtualMachineConfiguration" - } - } - } - } + className: "VirtualMachineConfiguration", + }, + }, + }, + }, }; export const CloudServiceConfiguration: coreClient.CompositeMapper = { @@ -1251,17 +1260,17 @@ export const CloudServiceConfiguration: coreClient.CompositeMapper = { serializedName: "osFamily", required: true, type: { - name: "String" - } + name: "String", + }, }, osVersion: { serializedName: "osVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineConfiguration: coreClient.CompositeMapper = { @@ -1273,22 +1282,22 @@ export const VirtualMachineConfiguration: coreClient.CompositeMapper = { serializedName: "imageReference", type: { name: "Composite", - className: "ImageReference" - } + className: "ImageReference", + }, }, nodeAgentSkuId: { serializedName: "nodeAgentSkuId", required: true, type: { - name: "String" - } + name: "String", + }, }, windowsConfiguration: { serializedName: "windowsConfiguration", type: { name: "Composite", - className: "WindowsConfiguration" - } + className: "WindowsConfiguration", + }, }, dataDisks: { serializedName: "dataDisks", @@ -1297,37 +1306,37 @@ export const VirtualMachineConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDisk" - } - } - } + className: "DataDisk", + }, + }, + }, }, licenseType: { serializedName: "licenseType", type: { - name: "String" - } + name: "String", + }, }, containerConfiguration: { serializedName: "containerConfiguration", type: { name: "Composite", - className: "ContainerConfiguration" - } + className: "ContainerConfiguration", + }, }, diskEncryptionConfiguration: { serializedName: "diskEncryptionConfiguration", type: { name: "Composite", - className: "DiskEncryptionConfiguration" - } + className: "DiskEncryptionConfiguration", + }, }, nodePlacementConfiguration: { serializedName: "nodePlacementConfiguration", type: { name: "Composite", - className: "NodePlacementConfiguration" - } + className: "NodePlacementConfiguration", + }, }, extensions: { serializedName: "extensions", @@ -1336,34 +1345,34 @@ export const VirtualMachineConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VMExtension" - } - } - } + className: "VMExtension", + }, + }, + }, }, osDisk: { serializedName: "osDisk", type: { name: "Composite", - className: "OSDisk" - } + className: "OSDisk", + }, }, securityProfile: { serializedName: "securityProfile", type: { name: "Composite", - className: "SecurityProfile" - } + className: "SecurityProfile", + }, }, serviceArtifactReference: { serializedName: "serviceArtifactReference", type: { name: "Composite", - className: "ServiceArtifactReference" - } - } - } - } + className: "ServiceArtifactReference", + }, + }, + }, + }, }; export const ImageReference: coreClient.CompositeMapper = { @@ -1374,36 +1383,35 @@ export const ImageReference: coreClient.CompositeMapper = { publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, offer: { serializedName: "offer", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { - name: "String" - } + name: "String", + }, }, version: { - defaultValue: "latest", serializedName: "version", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WindowsConfiguration: coreClient.CompositeMapper = { @@ -1414,11 +1422,11 @@ export const WindowsConfiguration: coreClient.CompositeMapper = { enableAutomaticUpdates: { serializedName: "enableAutomaticUpdates", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const DataDisk: coreClient.CompositeMapper = { @@ -1430,32 +1438,32 @@ export const DataDisk: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } + name: "Number", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, diskSizeGB: { serializedName: "diskSizeGB", required: true, type: { - name: "Number" - } + name: "Number", + }, }, storageAccountType: { serializedName: "storageAccountType", type: { name: "Enum", - allowedValues: ["Standard_LRS", "Premium_LRS", "StandardSSD_LRS"] - } - } - } - } + allowedValues: ["Standard_LRS", "Premium_LRS", "StandardSSD_LRS"], + }, + }, + }, + }, }; export const ContainerConfiguration: coreClient.CompositeMapper = { @@ -1467,8 +1475,8 @@ export const ContainerConfiguration: coreClient.CompositeMapper = { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, containerImageNames: { serializedName: "containerImageNames", @@ -1476,10 +1484,10 @@ export const ContainerConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, containerRegistries: { serializedName: "containerRegistries", @@ -1488,13 +1496,13 @@ export const ContainerConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ContainerRegistry" - } - } - } - } - } - } + className: "ContainerRegistry", + }, + }, + }, + }, + }, + }, }; export const ContainerRegistry: coreClient.CompositeMapper = { @@ -1505,30 +1513,30 @@ export const ContainerRegistry: coreClient.CompositeMapper = { userName: { serializedName: "username", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", type: { - name: "String" - } + name: "String", + }, }, registryServer: { serializedName: "registryServer", type: { - name: "String" - } + name: "String", + }, }, identityReference: { serializedName: "identityReference", type: { name: "Composite", - className: "ComputeNodeIdentityReference" - } - } - } - } + className: "ComputeNodeIdentityReference", + }, + }, + }, + }, }; export const DiskEncryptionConfiguration: coreClient.CompositeMapper = { @@ -1543,13 +1551,13 @@ export const DiskEncryptionConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Enum", - allowedValues: ["OsDisk", "TemporaryDisk"] - } - } - } - } - } - } + allowedValues: ["OsDisk", "TemporaryDisk"], + }, + }, + }, + }, + }, + }, }; export const NodePlacementConfiguration: coreClient.CompositeMapper = { @@ -1561,11 +1569,11 @@ export const NodePlacementConfiguration: coreClient.CompositeMapper = { serializedName: "policy", type: { name: "Enum", - allowedValues: ["Regional", "Zonal"] - } - } - } - } + allowedValues: ["Regional", "Zonal"], + }, + }, + }, + }, }; export const VMExtension: coreClient.CompositeMapper = { @@ -1577,54 +1585,54 @@ export const VMExtension: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "publisher", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, autoUpgradeMinorVersion: { serializedName: "autoUpgradeMinorVersion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpgrade: { serializedName: "enableAutomaticUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, settings: { serializedName: "settings", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, protectedSettings: { serializedName: "protectedSettings", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, provisionAfterExtensions: { serializedName: "provisionAfterExtensions", @@ -1632,13 +1640,13 @@ export const VMExtension: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const OSDisk: coreClient.CompositeMapper = { @@ -1650,37 +1658,37 @@ export const OSDisk: coreClient.CompositeMapper = { serializedName: "ephemeralOSDiskSettings", type: { name: "Composite", - className: "DiffDiskSettings" - } + className: "DiffDiskSettings", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "ManagedDisk" - } + className: "ManagedDisk", + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const DiffDiskSettings: coreClient.CompositeMapper = { @@ -1693,11 +1701,11 @@ export const DiffDiskSettings: coreClient.CompositeMapper = { isConstant: true, serializedName: "placement", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedDisk: coreClient.CompositeMapper = { @@ -1709,11 +1717,11 @@ export const ManagedDisk: coreClient.CompositeMapper = { serializedName: "storageAccountType", type: { name: "Enum", - allowedValues: ["Standard_LRS", "Premium_LRS", "StandardSSD_LRS"] - } - } - } - } + allowedValues: ["Standard_LRS", "Premium_LRS", "StandardSSD_LRS"], + }, + }, + }, + }, }; export const SecurityProfile: coreClient.CompositeMapper = { @@ -1726,24 +1734,24 @@ export const SecurityProfile: coreClient.CompositeMapper = { isConstant: true, serializedName: "securityType", type: { - name: "String" - } + name: "String", + }, }, encryptionAtHost: { serializedName: "encryptionAtHost", type: { - name: "Boolean" - } + name: "Boolean", + }, }, uefiSettings: { serializedName: "uefiSettings", type: { name: "Composite", - className: "UefiSettings" - } - } - } - } + className: "UefiSettings", + }, + }, + }, + }, }; export const UefiSettings: coreClient.CompositeMapper = { @@ -1754,17 +1762,17 @@ export const UefiSettings: coreClient.CompositeMapper = { secureBootEnabled: { serializedName: "secureBootEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, vTpmEnabled: { serializedName: "vTpmEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ServiceArtifactReference: coreClient.CompositeMapper = { @@ -1776,11 +1784,11 @@ export const ServiceArtifactReference: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ScaleSettings: coreClient.CompositeMapper = { @@ -1792,18 +1800,18 @@ export const ScaleSettings: coreClient.CompositeMapper = { serializedName: "fixedScale", type: { name: "Composite", - className: "FixedScaleSettings" - } + className: "FixedScaleSettings", + }, }, autoScale: { serializedName: "autoScale", type: { name: "Composite", - className: "AutoScaleSettings" - } - } - } - } + className: "AutoScaleSettings", + }, + }, + }, + }, }; export const FixedScaleSettings: coreClient.CompositeMapper = { @@ -1815,20 +1823,20 @@ export const FixedScaleSettings: coreClient.CompositeMapper = { defaultValue: "PT15M", serializedName: "resizeTimeout", type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, targetDedicatedNodes: { serializedName: "targetDedicatedNodes", type: { - name: "Number" - } + name: "Number", + }, }, targetLowPriorityNodes: { serializedName: "targetLowPriorityNodes", type: { - name: "Number" - } + name: "Number", + }, }, nodeDeallocationOption: { serializedName: "nodeDeallocationOption", @@ -1838,12 +1846,12 @@ export const FixedScaleSettings: coreClient.CompositeMapper = { "Requeue", "Terminate", "TaskCompletion", - "RetainedData" - ] - } - } - } - } + "RetainedData", + ], + }, + }, + }, + }, }; export const AutoScaleSettings: coreClient.CompositeMapper = { @@ -1855,17 +1863,17 @@ export const AutoScaleSettings: coreClient.CompositeMapper = { serializedName: "formula", required: true, type: { - name: "String" - } + name: "String", + }, }, evaluationInterval: { serializedName: "evaluationInterval", type: { - name: "TimeSpan" - } - } - } - } + name: "TimeSpan", + }, + }, + }, + }, }; export const AutoScaleRun: coreClient.CompositeMapper = { @@ -1877,24 +1885,24 @@ export const AutoScaleRun: coreClient.CompositeMapper = { serializedName: "evaluationTime", required: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, results: { serializedName: "results", type: { - name: "String" - } + name: "String", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "AutoScaleRunError" - } - } - } - } + className: "AutoScaleRunError", + }, + }, + }, + }, }; export const AutoScaleRunError: coreClient.CompositeMapper = { @@ -1906,15 +1914,15 @@ export const AutoScaleRunError: coreClient.CompositeMapper = { serializedName: "code", required: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", required: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -1923,13 +1931,13 @@ export const AutoScaleRunError: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AutoScaleRunError" - } - } - } - } - } - } + className: "AutoScaleRunError", + }, + }, + }, + }, + }, + }, }; export const NetworkConfiguration: coreClient.CompositeMapper = { @@ -1940,39 +1948,39 @@ export const NetworkConfiguration: coreClient.CompositeMapper = { subnetId: { serializedName: "subnetId", type: { - name: "String" - } + name: "String", + }, }, dynamicVnetAssignmentScope: { defaultValue: "none", serializedName: "dynamicVnetAssignmentScope", type: { name: "Enum", - allowedValues: ["none", "job"] - } + allowedValues: ["none", "job"], + }, }, endpointConfiguration: { serializedName: "endpointConfiguration", type: { name: "Composite", - className: "PoolEndpointConfiguration" - } + className: "PoolEndpointConfiguration", + }, }, publicIPAddressConfiguration: { serializedName: "publicIPAddressConfiguration", type: { name: "Composite", - className: "PublicIPAddressConfiguration" - } + className: "PublicIPAddressConfiguration", + }, }, enableAcceleratedNetworking: { serializedName: "enableAcceleratedNetworking", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const PoolEndpointConfiguration: coreClient.CompositeMapper = { @@ -1988,13 +1996,13 @@ export const PoolEndpointConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InboundNatPool" - } - } - } - } - } - } + className: "InboundNatPool", + }, + }, + }, + }, + }, + }, }; export const InboundNatPool: coreClient.CompositeMapper = { @@ -2006,37 +2014,37 @@ export const InboundNatPool: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, protocol: { serializedName: "protocol", required: true, type: { name: "Enum", - allowedValues: ["TCP", "UDP"] - } + allowedValues: ["TCP", "UDP"], + }, }, backendPort: { serializedName: "backendPort", required: true, type: { - name: "Number" - } + name: "Number", + }, }, frontendPortRangeStart: { serializedName: "frontendPortRangeStart", required: true, type: { - name: "Number" - } + name: "Number", + }, }, frontendPortRangeEnd: { serializedName: "frontendPortRangeEnd", required: true, type: { - name: "Number" - } + name: "Number", + }, }, networkSecurityGroupRules: { serializedName: "networkSecurityGroupRules", @@ -2045,13 +2053,13 @@ export const InboundNatPool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetworkSecurityGroupRule" - } - } - } - } - } - } + className: "NetworkSecurityGroupRule", + }, + }, + }, + }, + }, + }, }; export const NetworkSecurityGroupRule: coreClient.CompositeMapper = { @@ -2063,23 +2071,23 @@ export const NetworkSecurityGroupRule: coreClient.CompositeMapper = { serializedName: "priority", required: true, type: { - name: "Number" - } + name: "Number", + }, }, access: { serializedName: "access", required: true, type: { name: "Enum", - allowedValues: ["Allow", "Deny"] - } + allowedValues: ["Allow", "Deny"], + }, }, sourceAddressPrefix: { serializedName: "sourceAddressPrefix", required: true, type: { - name: "String" - } + name: "String", + }, }, sourcePortRanges: { serializedName: "sourcePortRanges", @@ -2087,13 +2095,13 @@ export const NetworkSecurityGroupRule: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const PublicIPAddressConfiguration: coreClient.CompositeMapper = { @@ -2105,8 +2113,8 @@ export const PublicIPAddressConfiguration: coreClient.CompositeMapper = { serializedName: "provision", type: { name: "Enum", - allowedValues: ["BatchManaged", "UserManaged", "NoPublicIPAddresses"] - } + allowedValues: ["BatchManaged", "UserManaged", "NoPublicIPAddresses"], + }, }, ipAddressIds: { serializedName: "ipAddressIds", @@ -2114,13 +2122,13 @@ export const PublicIPAddressConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const TaskSchedulingPolicy: coreClient.CompositeMapper = { @@ -2134,11 +2142,11 @@ export const TaskSchedulingPolicy: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["Spread", "Pack"] - } - } - } - } + allowedValues: ["Spread", "Pack"], + }, + }, + }, + }, }; export const UserAccount: coreClient.CompositeMapper = { @@ -2150,39 +2158,39 @@ export const UserAccount: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", required: true, type: { - name: "String" - } + name: "String", + }, }, elevationLevel: { serializedName: "elevationLevel", type: { name: "Enum", - allowedValues: ["NonAdmin", "Admin"] - } + allowedValues: ["NonAdmin", "Admin"], + }, }, linuxUserConfiguration: { serializedName: "linuxUserConfiguration", type: { name: "Composite", - className: "LinuxUserConfiguration" - } + className: "LinuxUserConfiguration", + }, }, windowsUserConfiguration: { serializedName: "windowsUserConfiguration", type: { name: "Composite", - className: "WindowsUserConfiguration" - } - } - } - } + className: "WindowsUserConfiguration", + }, + }, + }, + }, }; export const LinuxUserConfiguration: coreClient.CompositeMapper = { @@ -2193,23 +2201,23 @@ export const LinuxUserConfiguration: coreClient.CompositeMapper = { uid: { serializedName: "uid", type: { - name: "Number" - } + name: "Number", + }, }, gid: { serializedName: "gid", type: { - name: "Number" - } + name: "Number", + }, }, sshPrivateKey: { serializedName: "sshPrivateKey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WindowsUserConfiguration: coreClient.CompositeMapper = { @@ -2221,11 +2229,11 @@ export const WindowsUserConfiguration: coreClient.CompositeMapper = { serializedName: "loginMode", type: { name: "Enum", - allowedValues: ["Batch", "Interactive"] - } - } - } - } + allowedValues: ["Batch", "Interactive"], + }, + }, + }, + }, }; export const MetadataItem: coreClient.CompositeMapper = { @@ -2237,18 +2245,18 @@ export const MetadataItem: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StartTask: coreClient.CompositeMapper = { @@ -2259,8 +2267,8 @@ export const StartTask: coreClient.CompositeMapper = { commandLine: { serializedName: "commandLine", type: { - name: "String" - } + name: "String", + }, }, resourceFiles: { serializedName: "resourceFiles", @@ -2269,10 +2277,10 @@ export const StartTask: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceFile" - } - } - } + className: "ResourceFile", + }, + }, + }, }, environmentSettings: { serializedName: "environmentSettings", @@ -2281,40 +2289,40 @@ export const StartTask: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EnvironmentSetting" - } - } - } + className: "EnvironmentSetting", + }, + }, + }, }, userIdentity: { serializedName: "userIdentity", type: { name: "Composite", - className: "UserIdentity" - } + className: "UserIdentity", + }, }, maxTaskRetryCount: { defaultValue: 0, serializedName: "maxTaskRetryCount", type: { - name: "Number" - } + name: "Number", + }, }, waitForSuccess: { serializedName: "waitForSuccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, containerSettings: { serializedName: "containerSettings", type: { name: "Composite", - className: "TaskContainerSettings" - } - } - } - } + className: "TaskContainerSettings", + }, + }, + }, + }, }; export const ResourceFile: coreClient.CompositeMapper = { @@ -2325,48 +2333,48 @@ export const ResourceFile: coreClient.CompositeMapper = { autoStorageContainerName: { serializedName: "autoStorageContainerName", type: { - name: "String" - } + name: "String", + }, }, storageContainerUrl: { serializedName: "storageContainerUrl", type: { - name: "String" - } + name: "String", + }, }, httpUrl: { serializedName: "httpUrl", type: { - name: "String" - } + name: "String", + }, }, blobPrefix: { serializedName: "blobPrefix", type: { - name: "String" - } + name: "String", + }, }, filePath: { serializedName: "filePath", type: { - name: "String" - } + name: "String", + }, }, fileMode: { serializedName: "fileMode", type: { - name: "String" - } + name: "String", + }, }, identityReference: { serializedName: "identityReference", type: { name: "Composite", - className: "ComputeNodeIdentityReference" - } - } - } - } + className: "ComputeNodeIdentityReference", + }, + }, + }, + }, }; export const EnvironmentSetting: coreClient.CompositeMapper = { @@ -2378,17 +2386,17 @@ export const EnvironmentSetting: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserIdentity: coreClient.CompositeMapper = { @@ -2399,18 +2407,18 @@ export const UserIdentity: coreClient.CompositeMapper = { userName: { serializedName: "userName", type: { - name: "String" - } + name: "String", + }, }, autoUser: { serializedName: "autoUser", type: { name: "Composite", - className: "AutoUserSpecification" - } - } - } - } + className: "AutoUserSpecification", + }, + }, + }, + }, }; export const AutoUserSpecification: coreClient.CompositeMapper = { @@ -2422,18 +2430,18 @@ export const AutoUserSpecification: coreClient.CompositeMapper = { serializedName: "scope", type: { name: "Enum", - allowedValues: ["Task", "Pool"] - } + allowedValues: ["Task", "Pool"], + }, }, elevationLevel: { serializedName: "elevationLevel", type: { name: "Enum", - allowedValues: ["NonAdmin", "Admin"] - } - } - } - } + allowedValues: ["NonAdmin", "Admin"], + }, + }, + }, + }, }; export const TaskContainerSettings: coreClient.CompositeMapper = { @@ -2444,32 +2452,32 @@ export const TaskContainerSettings: coreClient.CompositeMapper = { containerRunOptions: { serializedName: "containerRunOptions", type: { - name: "String" - } + name: "String", + }, }, imageName: { serializedName: "imageName", required: true, type: { - name: "String" - } + name: "String", + }, }, registry: { serializedName: "registry", type: { name: "Composite", - className: "ContainerRegistry" - } + className: "ContainerRegistry", + }, }, workingDirectory: { serializedName: "workingDirectory", type: { name: "Enum", - allowedValues: ["TaskWorkingDirectory", "ContainerImageDefault"] - } - } - } - } + allowedValues: ["TaskWorkingDirectory", "ContainerImageDefault"], + }, + }, + }, + }, }; export const CertificateReference: coreClient.CompositeMapper = { @@ -2481,21 +2489,21 @@ export const CertificateReference: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, storeLocation: { serializedName: "storeLocation", type: { name: "Enum", - allowedValues: ["CurrentUser", "LocalMachine"] - } + allowedValues: ["CurrentUser", "LocalMachine"], + }, }, storeName: { serializedName: "storeName", type: { - name: "String" - } + name: "String", + }, }, visibility: { serializedName: "visibility", @@ -2504,13 +2512,13 @@ export const CertificateReference: coreClient.CompositeMapper = { element: { type: { name: "Enum", - allowedValues: ["StartTask", "Task", "RemoteUser"] - } - } - } - } - } - } + allowedValues: ["StartTask", "Task", "RemoteUser"], + }, + }, + }, + }, + }, + }, }; export const ApplicationPackageReference: coreClient.CompositeMapper = { @@ -2522,17 +2530,17 @@ export const ApplicationPackageReference: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResizeOperationStatus: coreClient.CompositeMapper = { @@ -2543,20 +2551,20 @@ export const ResizeOperationStatus: coreClient.CompositeMapper = { targetDedicatedNodes: { serializedName: "targetDedicatedNodes", type: { - name: "Number" - } + name: "Number", + }, }, targetLowPriorityNodes: { serializedName: "targetLowPriorityNodes", type: { - name: "Number" - } + name: "Number", + }, }, resizeTimeout: { serializedName: "resizeTimeout", type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, nodeDeallocationOption: { serializedName: "nodeDeallocationOption", @@ -2566,15 +2574,15 @@ export const ResizeOperationStatus: coreClient.CompositeMapper = { "Requeue", "Terminate", "TaskCompletion", - "RetainedData" - ] - } + "RetainedData", + ], + }, }, startTime: { serializedName: "startTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, errors: { serializedName: "errors", @@ -2583,13 +2591,13 @@ export const ResizeOperationStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResizeError" - } - } - } - } - } - } + className: "ResizeError", + }, + }, + }, + }, + }, + }, }; export const ResizeError: coreClient.CompositeMapper = { @@ -2601,15 +2609,15 @@ export const ResizeError: coreClient.CompositeMapper = { serializedName: "code", required: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", required: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -2618,13 +2626,13 @@ export const ResizeError: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResizeError" - } - } - } - } - } - } + className: "ResizeError", + }, + }, + }, + }, + }, + }, }; export const MountConfiguration: coreClient.CompositeMapper = { @@ -2636,32 +2644,32 @@ export const MountConfiguration: coreClient.CompositeMapper = { serializedName: "azureBlobFileSystemConfiguration", type: { name: "Composite", - className: "AzureBlobFileSystemConfiguration" - } + className: "AzureBlobFileSystemConfiguration", + }, }, nfsMountConfiguration: { serializedName: "nfsMountConfiguration", type: { name: "Composite", - className: "NFSMountConfiguration" - } + className: "NFSMountConfiguration", + }, }, cifsMountConfiguration: { serializedName: "cifsMountConfiguration", type: { name: "Composite", - className: "CifsMountConfiguration" - } + className: "CifsMountConfiguration", + }, }, azureFileShareConfiguration: { serializedName: "azureFileShareConfiguration", type: { name: "Composite", - className: "AzureFileShareConfiguration" - } - } - } - } + className: "AzureFileShareConfiguration", + }, + }, + }, + }, }; export const AzureBlobFileSystemConfiguration: coreClient.CompositeMapper = { @@ -2673,50 +2681,50 @@ export const AzureBlobFileSystemConfiguration: coreClient.CompositeMapper = { serializedName: "accountName", required: true, type: { - name: "String" - } + name: "String", + }, }, containerName: { serializedName: "containerName", required: true, type: { - name: "String" - } + name: "String", + }, }, accountKey: { serializedName: "accountKey", type: { - name: "String" - } + name: "String", + }, }, sasKey: { serializedName: "sasKey", type: { - name: "String" - } + name: "String", + }, }, blobfuseOptions: { serializedName: "blobfuseOptions", type: { - name: "String" - } + name: "String", + }, }, relativeMountPath: { serializedName: "relativeMountPath", required: true, type: { - name: "String" - } + name: "String", + }, }, identityReference: { serializedName: "identityReference", type: { name: "Composite", - className: "ComputeNodeIdentityReference" - } - } - } - } + className: "ComputeNodeIdentityReference", + }, + }, + }, + }, }; export const NFSMountConfiguration: coreClient.CompositeMapper = { @@ -2728,24 +2736,24 @@ export const NFSMountConfiguration: coreClient.CompositeMapper = { serializedName: "source", required: true, type: { - name: "String" - } + name: "String", + }, }, relativeMountPath: { serializedName: "relativeMountPath", required: true, type: { - name: "String" - } + name: "String", + }, }, mountOptions: { serializedName: "mountOptions", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CifsMountConfiguration: coreClient.CompositeMapper = { @@ -2757,38 +2765,38 @@ export const CifsMountConfiguration: coreClient.CompositeMapper = { serializedName: "userName", required: true, type: { - name: "String" - } + name: "String", + }, }, source: { serializedName: "source", required: true, type: { - name: "String" - } + name: "String", + }, }, relativeMountPath: { serializedName: "relativeMountPath", required: true, type: { - name: "String" - } + name: "String", + }, }, mountOptions: { serializedName: "mountOptions", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AzureFileShareConfiguration: coreClient.CompositeMapper = { @@ -2800,38 +2808,165 @@ export const AzureFileShareConfiguration: coreClient.CompositeMapper = { serializedName: "accountName", required: true, type: { - name: "String" - } + name: "String", + }, }, azureFileUrl: { serializedName: "azureFileUrl", required: true, type: { - name: "String" - } + name: "String", + }, }, accountKey: { serializedName: "accountKey", required: true, type: { - name: "String" - } + name: "String", + }, }, relativeMountPath: { serializedName: "relativeMountPath", required: true, type: { - name: "String" - } + name: "String", + }, }, mountOptions: { serializedName: "mountOptions", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const UpgradePolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpgradePolicy", + modelProperties: { + mode: { + serializedName: "mode", + required: true, + type: { + name: "Enum", + allowedValues: ["automatic", "manual", "rolling"], + }, + }, + automaticOSUpgradePolicy: { + serializedName: "automaticOSUpgradePolicy", + type: { + name: "Composite", + className: "AutomaticOSUpgradePolicy", + }, + }, + rollingUpgradePolicy: { + serializedName: "rollingUpgradePolicy", + type: { + name: "Composite", + className: "RollingUpgradePolicy", + }, + }, + }, + }, +}; + +export const AutomaticOSUpgradePolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutomaticOSUpgradePolicy", + modelProperties: { + disableAutomaticRollback: { + serializedName: "disableAutomaticRollback", + type: { + name: "Boolean", + }, + }, + enableAutomaticOSUpgrade: { + serializedName: "enableAutomaticOSUpgrade", + type: { + name: "Boolean", + }, + }, + useRollingUpgradePolicy: { + serializedName: "useRollingUpgradePolicy", + type: { + name: "Boolean", + }, + }, + osRollingUpgradeDeferral: { + serializedName: "osRollingUpgradeDeferral", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const RollingUpgradePolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RollingUpgradePolicy", + modelProperties: { + enableCrossZoneUpgrade: { + serializedName: "enableCrossZoneUpgrade", + type: { + name: "Boolean", + }, + }, + maxBatchInstancePercent: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 5, + }, + serializedName: "maxBatchInstancePercent", + type: { + name: "Number", + }, + }, + maxUnhealthyInstancePercent: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 5, + }, + serializedName: "maxUnhealthyInstancePercent", + type: { + name: "Number", + }, + }, + maxUnhealthyUpgradedInstancePercent: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0, + }, + serializedName: "maxUnhealthyUpgradedInstancePercent", + type: { + name: "Number", + }, + }, + pauseTimeBetweenBatches: { + serializedName: "pauseTimeBetweenBatches", + type: { + name: "String", + }, + }, + prioritizeUnhealthyInstances: { + serializedName: "prioritizeUnhealthyInstances", + type: { + name: "Boolean", + }, + }, + rollbackFailedInstancesOnPolicyBreach: { + serializedName: "rollbackFailedInstancesOnPolicyBreach", + type: { + name: "Boolean", + }, + }, + }, + }, }; export const BatchPoolIdentity: coreClient.CompositeMapper = { @@ -2844,50 +2979,51 @@ export const BatchPoolIdentity: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["UserAssigned", "None"] - } + allowedValues: ["UserAssigned", "None"], + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "UserAssignedIdentities" } - } - } - } - } - } -}; - -export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OutboundEnvironmentEndpointCollection", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OutboundEnvironmentEndpoint" - } - } - } + type: { name: "Composite", className: "UserAssignedIdentities" }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; +export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "OutboundEnvironmentEndpointCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundEnvironmentEndpoint", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; + export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2897,8 +3033,8 @@ export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { serializedName: "category", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, endpoints: { serializedName: "endpoints", @@ -2908,13 +3044,13 @@ export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EndpointDependency" - } - } - } - } - } - } + className: "EndpointDependency", + }, + }, + }, + }, + }, + }, }; export const EndpointDependency: coreClient.CompositeMapper = { @@ -2926,15 +3062,15 @@ export const EndpointDependency: coreClient.CompositeMapper = { serializedName: "domainName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, endpointDetails: { serializedName: "endpointDetails", @@ -2944,13 +3080,13 @@ export const EndpointDependency: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EndpointDetail" - } - } - } - } - } - } + className: "EndpointDetail", + }, + }, + }, + }, + }, + }, }; export const EndpointDetail: coreClient.CompositeMapper = { @@ -2962,11 +3098,11 @@ export const EndpointDetail: coreClient.CompositeMapper = { serializedName: "port", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const AutoStorageProperties: coreClient.CompositeMapper = { @@ -2979,11 +3115,11 @@ export const AutoStorageProperties: coreClient.CompositeMapper = { serializedName: "lastKeySync", required: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const PrivateEndpointConnection: coreClient.CompositeMapper = { @@ -3003,16 +3139,16 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { "Deleting", "Succeeded", "Failed", - "Cancelled" - ] - } + "Cancelled", + ], + }, }, privateEndpoint: { serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "PrivateEndpoint" - } + className: "PrivateEndpoint", + }, }, groupIds: { serializedName: "properties.groupIds", @@ -3021,20 +3157,20 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" - } - } - } - } + className: "PrivateLinkServiceConnectionState", + }, + }, + }, + }, }; export const ApplicationPackage: coreClient.CompositeMapper = { @@ -3048,39 +3184,39 @@ export const ApplicationPackage: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["Pending", "Active"] - } + allowedValues: ["Pending", "Active"], + }, }, format: { serializedName: "properties.format", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageUrl: { serializedName: "properties.storageUrl", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageUrlExpiry: { serializedName: "properties.storageUrlExpiry", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastActivationTime: { serializedName: "properties.lastActivationTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const Application: coreClient.CompositeMapper = { @@ -3092,23 +3228,23 @@ export const Application: coreClient.CompositeMapper = { displayName: { serializedName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, allowUpdates: { serializedName: "properties.allowUpdates", type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultVersion: { serializedName: "properties.defaultVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Certificate: coreClient.CompositeMapper = { @@ -3120,68 +3256,68 @@ export const Certificate: coreClient.CompositeMapper = { thumbprintAlgorithm: { serializedName: "properties.thumbprintAlgorithm", type: { - name: "String" - } + name: "String", + }, }, thumbprint: { serializedName: "properties.thumbprint", type: { - name: "String" - } + name: "String", + }, }, format: { serializedName: "properties.format", type: { name: "Enum", - allowedValues: ["Pfx", "Cer"] - } + allowedValues: ["Pfx", "Cer"], + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { name: "Enum", - allowedValues: ["Succeeded", "Deleting", "Failed"] - } + allowedValues: ["Succeeded", "Deleting", "Failed"], + }, }, provisioningStateTransitionTime: { serializedName: "properties.provisioningStateTransitionTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, previousProvisioningState: { serializedName: "properties.previousProvisioningState", readOnly: true, type: { name: "Enum", - allowedValues: ["Succeeded", "Deleting", "Failed"] - } + allowedValues: ["Succeeded", "Deleting", "Failed"], + }, }, previousProvisioningStateTransitionTime: { serializedName: "properties.previousProvisioningStateTransitionTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, publicData: { serializedName: "properties.publicData", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, deleteCertificateError: { serializedName: "properties.deleteCertificateError", type: { name: "Composite", - className: "DeleteCertificateError" - } - } - } - } + className: "DeleteCertificateError", + }, + }, + }, + }, }; export const CertificateCreateOrUpdateParameters: coreClient.CompositeMapper = { @@ -3193,36 +3329,36 @@ export const CertificateCreateOrUpdateParameters: coreClient.CompositeMapper = { thumbprintAlgorithm: { serializedName: "properties.thumbprintAlgorithm", type: { - name: "String" - } + name: "String", + }, }, thumbprint: { serializedName: "properties.thumbprint", type: { - name: "String" - } + name: "String", + }, }, format: { serializedName: "properties.format", type: { name: "Enum", - allowedValues: ["Pfx", "Cer"] - } + allowedValues: ["Pfx", "Cer"], + }, }, data: { serializedName: "properties.data", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "properties.password", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DetectorResponse: coreClient.CompositeMapper = { @@ -3234,11 +3370,11 @@ export const DetectorResponse: coreClient.CompositeMapper = { value: { serializedName: "properties.value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResource: coreClient.CompositeMapper = { @@ -3251,8 +3387,8 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { serializedName: "properties.groupId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "properties.requiredMembers", @@ -3261,10 +3397,10 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "properties.requiredZoneNames", @@ -3273,13 +3409,13 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const Pool: coreClient.CompositeMapper = { @@ -3292,127 +3428,127 @@ export const Pool: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "BatchPoolIdentity" - } + className: "BatchPoolIdentity", + }, }, displayName: { serializedName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, lastModified: { serializedName: "properties.lastModified", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, creationTime: { serializedName: "properties.creationTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { name: "Enum", - allowedValues: ["Succeeded", "Deleting"] - } + allowedValues: ["Succeeded", "Deleting"], + }, }, provisioningStateTransitionTime: { serializedName: "properties.provisioningStateTransitionTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, allocationState: { serializedName: "properties.allocationState", readOnly: true, type: { name: "Enum", - allowedValues: ["Steady", "Resizing", "Stopping"] - } + allowedValues: ["Steady", "Resizing", "Stopping"], + }, }, allocationStateTransitionTime: { serializedName: "properties.allocationStateTransitionTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, vmSize: { serializedName: "properties.vmSize", type: { - name: "String" - } + name: "String", + }, }, deploymentConfiguration: { serializedName: "properties.deploymentConfiguration", type: { name: "Composite", - className: "DeploymentConfiguration" - } + className: "DeploymentConfiguration", + }, }, currentDedicatedNodes: { serializedName: "properties.currentDedicatedNodes", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, currentLowPriorityNodes: { serializedName: "properties.currentLowPriorityNodes", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, scaleSettings: { serializedName: "properties.scaleSettings", type: { name: "Composite", - className: "ScaleSettings" - } + className: "ScaleSettings", + }, }, autoScaleRun: { serializedName: "properties.autoScaleRun", type: { name: "Composite", - className: "AutoScaleRun" - } + className: "AutoScaleRun", + }, }, interNodeCommunication: { serializedName: "properties.interNodeCommunication", type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } + allowedValues: ["Enabled", "Disabled"], + }, }, networkConfiguration: { serializedName: "properties.networkConfiguration", type: { name: "Composite", - className: "NetworkConfiguration" - } + className: "NetworkConfiguration", + }, }, taskSlotsPerNode: { defaultValue: 1, serializedName: "properties.taskSlotsPerNode", type: { - name: "Number" - } + name: "Number", + }, }, taskSchedulingPolicy: { serializedName: "properties.taskSchedulingPolicy", type: { name: "Composite", - className: "TaskSchedulingPolicy" - } + className: "TaskSchedulingPolicy", + }, }, userAccounts: { serializedName: "properties.userAccounts", @@ -3421,10 +3557,10 @@ export const Pool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserAccount" - } - } - } + className: "UserAccount", + }, + }, + }, }, metadata: { serializedName: "properties.metadata", @@ -3433,17 +3569,17 @@ export const Pool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MetadataItem" - } - } - } + className: "MetadataItem", + }, + }, + }, }, startTask: { serializedName: "properties.startTask", type: { name: "Composite", - className: "StartTask" - } + className: "StartTask", + }, }, certificates: { serializedName: "properties.certificates", @@ -3452,10 +3588,10 @@ export const Pool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CertificateReference" - } - } - } + className: "CertificateReference", + }, + }, + }, }, applicationPackages: { serializedName: "properties.applicationPackages", @@ -3464,10 +3600,10 @@ export const Pool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApplicationPackageReference" - } - } - } + className: "ApplicationPackageReference", + }, + }, + }, }, applicationLicenses: { serializedName: "properties.applicationLicenses", @@ -3475,17 +3611,17 @@ export const Pool: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, resizeOperationStatus: { serializedName: "properties.resizeOperationStatus", type: { name: "Composite", - className: "ResizeOperationStatus" - } + className: "ResizeOperationStatus", + }, }, mountConfiguration: { serializedName: "properties.mountConfiguration", @@ -3494,17 +3630,17 @@ export const Pool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MountConfiguration" - } - } - } + className: "MountConfiguration", + }, + }, + }, }, targetNodeCommunicationMode: { serializedName: "properties.targetNodeCommunicationMode", type: { name: "Enum", - allowedValues: ["Default", "Classic", "Simplified"] - } + allowedValues: ["Default", "Classic", "Simplified"], + }, }, currentNodeCommunicationMode: { serializedName: "properties.currentNodeCommunicationMode", @@ -3512,18 +3648,25 @@ export const Pool: coreClient.CompositeMapper = { nullable: true, type: { name: "Enum", - allowedValues: ["Default", "Classic", "Simplified"] - } + allowedValues: ["Default", "Classic", "Simplified"], + }, + }, + upgradePolicy: { + serializedName: "properties.upgradePolicy", + type: { + name: "Composite", + className: "UpgradePolicy", + }, }, resourceTags: { serializedName: "properties.resourceTags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const BatchAccount: coreClient.CompositeMapper = { @@ -3536,22 +3679,22 @@ export const BatchAccount: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "BatchAccountIdentity" - } + className: "BatchAccountIdentity", + }, }, accountEndpoint: { serializedName: "properties.accountEndpoint", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, nodeManagementEndpoint: { serializedName: "properties.nodeManagementEndpoint", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", @@ -3564,24 +3707,24 @@ export const BatchAccount: coreClient.CompositeMapper = { "Deleting", "Succeeded", "Failed", - "Cancelled" - ] - } + "Cancelled", + ], + }, }, poolAllocationMode: { serializedName: "properties.poolAllocationMode", readOnly: true, type: { name: "Enum", - allowedValues: ["BatchService", "UserSubscription"] - } + allowedValues: ["BatchService", "UserSubscription"], + }, }, keyVaultReference: { serializedName: "properties.keyVaultReference", type: { name: "Composite", - className: "KeyVaultReference" - } + className: "KeyVaultReference", + }, }, publicNetworkAccess: { defaultValue: "Enabled", @@ -3589,15 +3732,15 @@ export const BatchAccount: coreClient.CompositeMapper = { nullable: true, type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } + allowedValues: ["Enabled", "Disabled"], + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "NetworkProfile" - } + className: "NetworkProfile", + }, }, privateEndpointConnections: { serializedName: "properties.privateEndpointConnections", @@ -3608,40 +3751,40 @@ export const BatchAccount: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, autoStorage: { serializedName: "properties.autoStorage", type: { name: "Composite", - className: "AutoStorageProperties" - } + className: "AutoStorageProperties", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "EncryptionProperties" - } + className: "EncryptionProperties", + }, }, dedicatedCoreQuota: { serializedName: "properties.dedicatedCoreQuota", readOnly: true, nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, lowPriorityCoreQuota: { serializedName: "properties.lowPriorityCoreQuota", readOnly: true, nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, dedicatedCoreQuotaPerVMFamily: { serializedName: "properties.dedicatedCoreQuotaPerVMFamily", @@ -3652,31 +3795,31 @@ export const BatchAccount: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineFamilyCoreQuota" - } - } - } + className: "VirtualMachineFamilyCoreQuota", + }, + }, + }, }, dedicatedCoreQuotaPerVMFamilyEnforced: { serializedName: "properties.dedicatedCoreQuotaPerVMFamilyEnforced", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, poolQuota: { serializedName: "properties.poolQuota", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, activeJobAndJobScheduleQuota: { serializedName: "properties.activeJobAndJobScheduleQuota", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, allowedAuthenticationModes: { serializedName: "properties.allowedAuthenticationModes", @@ -3687,13 +3830,13 @@ export const BatchAccount: coreClient.CompositeMapper = { element: { type: { name: "Enum", - allowedValues: ["SharedKey", "AAD", "TaskAuthenticationToken"] - } - } - } - } - } - } + allowedValues: ["SharedKey", "AAD", "TaskAuthenticationToken"], + }, + }, + }, + }, + }, + }, }; export const CertificateProperties: coreClient.CompositeMapper = { @@ -3707,47 +3850,47 @@ export const CertificateProperties: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["Succeeded", "Deleting", "Failed"] - } + allowedValues: ["Succeeded", "Deleting", "Failed"], + }, }, provisioningStateTransitionTime: { serializedName: "provisioningStateTransitionTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, previousProvisioningState: { serializedName: "previousProvisioningState", readOnly: true, type: { name: "Enum", - allowedValues: ["Succeeded", "Deleting", "Failed"] - } + allowedValues: ["Succeeded", "Deleting", "Failed"], + }, }, previousProvisioningStateTransitionTime: { serializedName: "previousProvisioningStateTransitionTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, publicData: { serializedName: "publicData", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, deleteCertificateError: { serializedName: "deleteCertificateError", type: { name: "Composite", - className: "DeleteCertificateError" - } - } - } - } + className: "DeleteCertificateError", + }, + }, + }, + }, }; export const CertificateCreateOrUpdateProperties: coreClient.CompositeMapper = { @@ -3760,17 +3903,17 @@ export const CertificateCreateOrUpdateProperties: coreClient.CompositeMapper = { serializedName: "data", required: true, type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BatchAccountCreateHeaders: coreClient.CompositeMapper = { @@ -3781,17 +3924,17 @@ export const BatchAccountCreateHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, retryAfter: { serializedName: "retry-after", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const BatchAccountDeleteHeaders: coreClient.CompositeMapper = { @@ -3802,17 +3945,17 @@ export const BatchAccountDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, retryAfter: { serializedName: "retry-after", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CertificateCreateHeaders: coreClient.CompositeMapper = { @@ -3823,11 +3966,11 @@ export const CertificateCreateHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CertificateUpdateHeaders: coreClient.CompositeMapper = { @@ -3838,11 +3981,11 @@ export const CertificateUpdateHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CertificateDeleteHeaders: coreClient.CompositeMapper = { @@ -3853,17 +3996,17 @@ export const CertificateDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, retryAfter: { serializedName: "retry-after", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CertificateGetHeaders: coreClient.CompositeMapper = { @@ -3874,11 +4017,11 @@ export const CertificateGetHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CertificateCancelDeletionHeaders: coreClient.CompositeMapper = { @@ -3889,54 +4032,56 @@ export const CertificateCancelDeletionHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointConnectionUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } + name: "String", + }, }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } + }, + }, }; -export const PrivateEndpointConnectionDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } -}; +export const PrivateEndpointConnectionUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateEndpointConnectionUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, + }; + +export const PrivateEndpointConnectionDeleteHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateEndpointConnectionDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, + }; export const PoolCreateHeaders: coreClient.CompositeMapper = { type: { @@ -3946,11 +4091,11 @@ export const PoolCreateHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PoolUpdateHeaders: coreClient.CompositeMapper = { @@ -3961,11 +4106,11 @@ export const PoolUpdateHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PoolDeleteHeaders: coreClient.CompositeMapper = { @@ -3976,17 +4121,17 @@ export const PoolDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, retryAfter: { serializedName: "retry-after", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const PoolGetHeaders: coreClient.CompositeMapper = { @@ -3997,11 +4142,11 @@ export const PoolGetHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PoolDisableAutoScaleHeaders: coreClient.CompositeMapper = { @@ -4012,11 +4157,11 @@ export const PoolDisableAutoScaleHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PoolStopResizeHeaders: coreClient.CompositeMapper = { @@ -4027,9 +4172,9 @@ export const PoolStopResizeHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/batch/arm-batch/src/models/parameters.ts b/sdk/batch/arm-batch/src/models/parameters.ts index 7705fbad524e..1a7a4ef11930 100644 --- a/sdk/batch/arm-batch/src/models/parameters.ts +++ b/sdk/batch/arm-batch/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { BatchAccountCreateParameters as BatchAccountCreateParametersMapper, @@ -21,7 +21,7 @@ import { CheckNameAvailabilityParameters as CheckNameAvailabilityParametersMapper, CertificateCreateOrUpdateParameters as CertificateCreateOrUpdateParametersMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, - Pool as PoolMapper + Pool as PoolMapper, } from "../models/mappers"; export const contentType: OperationParameter = { @@ -31,14 +31,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: BatchAccountCreateParametersMapper + mapper: BatchAccountCreateParametersMapper, }; export const accept: OperationParameter = { @@ -48,9 +48,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -59,10 +59,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceGroupName: OperationURLParameter = { @@ -71,9 +71,9 @@ export const resourceGroupName: OperationURLParameter = { serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const accountName: OperationURLParameter = { @@ -82,26 +82,26 @@ export const accountName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-z0-9]+$"), MaxLength: 24, - MinLength: 3 + MinLength: 3, }, serializedName: "accountName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-11-01", + defaultValue: "2024-02-01", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -110,14 +110,14 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: BatchAccountUpdateParametersMapper + mapper: BatchAccountUpdateParametersMapper, }; export const accountName1: OperationURLParameter = { @@ -126,19 +126,19 @@ export const accountName1: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9]+$"), MaxLength: 24, - MinLength: 3 + MinLength: 3, }, serializedName: "accountName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: BatchAccountRegenerateKeyParametersMapper + mapper: BatchAccountRegenerateKeyParametersMapper, }; export const detectorId: OperationURLParameter = { @@ -147,9 +147,9 @@ export const detectorId: OperationURLParameter = { serializedName: "detectorId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -158,15 +158,15 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: ActivateApplicationPackageParametersMapper + mapper: ActivateApplicationPackageParametersMapper, }; export const applicationName: OperationURLParameter = { @@ -175,14 +175,14 @@ export const applicationName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9_-]+$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "applicationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const versionName: OperationURLParameter = { @@ -191,19 +191,19 @@ export const versionName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9_-][a-zA-Z0-9_.-]*$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "versionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters4: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: ApplicationPackageMapper + mapper: ApplicationPackageMapper, }; export const maxresults: OperationQueryParameter = { @@ -211,19 +211,19 @@ export const maxresults: OperationQueryParameter = { mapper: { serializedName: "maxresults", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const parameters5: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: ApplicationMapper + mapper: ApplicationMapper, }; export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: ApplicationMapper + mapper: ApplicationMapper, }; export const locationName: OperationURLParameter = { @@ -232,9 +232,9 @@ export const locationName: OperationURLParameter = { serializedName: "locationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const filter: OperationQueryParameter = { @@ -242,14 +242,14 @@ export const filter: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: CheckNameAvailabilityParametersMapper + mapper: CheckNameAvailabilityParametersMapper, }; export const select: OperationQueryParameter = { @@ -257,14 +257,14 @@ export const select: OperationQueryParameter = { mapper: { serializedName: "$select", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters8: OperationParameter = { parameterPath: "parameters", - mapper: CertificateCreateOrUpdateParametersMapper + mapper: CertificateCreateOrUpdateParametersMapper, }; export const certificateName: OperationURLParameter = { @@ -273,14 +273,14 @@ export const certificateName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[\\w]+-[\\w]+$"), MaxLength: 45, - MinLength: 5 + MinLength: 5, }, serializedName: "certificateName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const ifMatch: OperationParameter = { @@ -288,9 +288,9 @@ export const ifMatch: OperationParameter = { mapper: { serializedName: "If-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const ifNoneMatch: OperationParameter = { @@ -298,9 +298,9 @@ export const ifNoneMatch: OperationParameter = { mapper: { serializedName: "If-None-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const privateLinkResourceName: OperationURLParameter = { @@ -309,14 +309,14 @@ export const privateLinkResourceName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9_-]+\\.?[a-fA-F0-9-]*$"), MaxLength: 101, - MinLength: 1 + MinLength: 1, }, serializedName: "privateLinkResourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -325,24 +325,24 @@ export const privateEndpointConnectionName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9_-]+\\.?[a-fA-F0-9-]*$"), MaxLength: 101, - MinLength: 1 + MinLength: 1, }, serializedName: "privateEndpointConnectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters9: OperationParameter = { parameterPath: "parameters", - mapper: PrivateEndpointConnectionMapper + mapper: PrivateEndpointConnectionMapper, }; export const parameters10: OperationParameter = { parameterPath: "parameters", - mapper: PoolMapper + mapper: PoolMapper, }; export const poolName: OperationURLParameter = { @@ -351,12 +351,12 @@ export const poolName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9_-]+$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "poolName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; diff --git a/sdk/batch/arm-batch/src/operations/applicationOperations.ts b/sdk/batch/arm-batch/src/operations/applicationOperations.ts index f48191b33b65..7746f9c21924 100644 --- a/sdk/batch/arm-batch/src/operations/applicationOperations.ts +++ b/sdk/batch/arm-batch/src/operations/applicationOperations.ts @@ -25,7 +25,7 @@ import { ApplicationGetResponse, ApplicationUpdateOptionalParams, ApplicationUpdateResponse, - ApplicationListNextResponse + ApplicationListNextResponse, } from "../models"; /// @@ -50,7 +50,7 @@ export class ApplicationOperationsImpl implements ApplicationOperations { public list( resourceGroupName: string, accountName: string, - options?: ApplicationListOptionalParams + options?: ApplicationListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, accountName, options); return { @@ -68,9 +68,9 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -78,7 +78,7 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName: string, accountName: string, options?: ApplicationListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApplicationListResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -106,12 +106,12 @@ export class ApplicationOperationsImpl implements ApplicationOperations { private async *listPagingAll( resourceGroupName: string, accountName: string, - options?: ApplicationListOptionalParams + options?: ApplicationListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -128,11 +128,11 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationCreateOptionalParams + options?: ApplicationCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, options }, - createOperationSpec + createOperationSpec, ); } @@ -147,11 +147,11 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationDeleteOptionalParams + options?: ApplicationDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -166,11 +166,11 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationGetOptionalParams + options?: ApplicationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, options }, - getOperationSpec + getOperationSpec, ); } @@ -187,11 +187,11 @@ export class ApplicationOperationsImpl implements ApplicationOperations { accountName: string, applicationName: string, parameters: Application, - options?: ApplicationUpdateOptionalParams + options?: ApplicationUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -204,11 +204,11 @@ export class ApplicationOperationsImpl implements ApplicationOperations { private _list( resourceGroupName: string, accountName: string, - options?: ApplicationListOptionalParams + options?: ApplicationListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listOperationSpec + listOperationSpec, ); } @@ -223,11 +223,11 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName: string, accountName: string, nextLink: string, - options?: ApplicationListNextOptionalParams + options?: ApplicationListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -235,16 +235,15 @@ export class ApplicationOperationsImpl implements ApplicationOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Application + bodyMapper: Mappers.Application, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], @@ -253,22 +252,21 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.applicationName + Parameters.applicationName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -276,22 +274,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.applicationName + Parameters.applicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Application + bodyMapper: Mappers.Application, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -299,22 +296,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.applicationName + Parameters.applicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Application + bodyMapper: Mappers.Application, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], @@ -323,52 +319,51 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.applicationName + Parameters.applicationName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListApplicationsResult + bodyMapper: Mappers.ListApplicationsResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.maxresults], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListApplicationsResult + bodyMapper: Mappers.ListApplicationsResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operations/applicationPackageOperations.ts b/sdk/batch/arm-batch/src/operations/applicationPackageOperations.ts index 7ff1fbc2349c..414725719472 100644 --- a/sdk/batch/arm-batch/src/operations/applicationPackageOperations.ts +++ b/sdk/batch/arm-batch/src/operations/applicationPackageOperations.ts @@ -26,13 +26,14 @@ import { ApplicationPackageDeleteOptionalParams, ApplicationPackageGetOptionalParams, ApplicationPackageGetResponse, - ApplicationPackageListNextResponse + ApplicationPackageListNextResponse, } from "../models"; /// /** Class containing ApplicationPackageOperations operations. */ export class ApplicationPackageOperationsImpl - implements ApplicationPackageOperations { + implements ApplicationPackageOperations +{ private readonly client: BatchManagementClient; /** @@ -54,13 +55,13 @@ export class ApplicationPackageOperationsImpl resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationPackageListOptionalParams + options?: ApplicationPackageListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, accountName, applicationName, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class ApplicationPackageOperationsImpl accountName, applicationName, options, - settings + settings, ); - } + }, }; } @@ -89,7 +90,7 @@ export class ApplicationPackageOperationsImpl accountName: string, applicationName: string, options?: ApplicationPackageListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApplicationPackageListResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class ApplicationPackageOperationsImpl resourceGroupName, accountName, applicationName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +112,7 @@ export class ApplicationPackageOperationsImpl accountName, applicationName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -124,13 +125,13 @@ export class ApplicationPackageOperationsImpl resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationPackageListOptionalParams + options?: ApplicationPackageListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, applicationName, - options + options, )) { yield* page; } @@ -153,7 +154,7 @@ export class ApplicationPackageOperationsImpl applicationName: string, versionName: string, parameters: ActivateApplicationPackageParameters, - options?: ApplicationPackageActivateOptionalParams + options?: ApplicationPackageActivateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -162,9 +163,9 @@ export class ApplicationPackageOperationsImpl applicationName, versionName, parameters, - options + options, }, - activateOperationSpec + activateOperationSpec, ); } @@ -184,11 +185,11 @@ export class ApplicationPackageOperationsImpl accountName: string, applicationName: string, versionName: string, - options?: ApplicationPackageCreateOptionalParams + options?: ApplicationPackageCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, versionName, options }, - createOperationSpec + createOperationSpec, ); } @@ -205,11 +206,11 @@ export class ApplicationPackageOperationsImpl accountName: string, applicationName: string, versionName: string, - options?: ApplicationPackageDeleteOptionalParams + options?: ApplicationPackageDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, versionName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -226,11 +227,11 @@ export class ApplicationPackageOperationsImpl accountName: string, applicationName: string, versionName: string, - options?: ApplicationPackageGetOptionalParams + options?: ApplicationPackageGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, versionName, options }, - getOperationSpec + getOperationSpec, ); } @@ -245,11 +246,11 @@ export class ApplicationPackageOperationsImpl resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationPackageListOptionalParams + options?: ApplicationPackageListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, options }, - listOperationSpec + listOperationSpec, ); } @@ -266,11 +267,11 @@ export class ApplicationPackageOperationsImpl accountName: string, applicationName: string, nextLink: string, - options?: ApplicationPackageListNextOptionalParams + options?: ApplicationPackageListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -278,16 +279,15 @@ export class ApplicationPackageOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const activateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApplicationPackage + bodyMapper: Mappers.ApplicationPackage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], @@ -297,23 +297,22 @@ const activateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.accountName1, Parameters.applicationName, - Parameters.versionName + Parameters.versionName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApplicationPackage + bodyMapper: Mappers.ApplicationPackage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], @@ -323,22 +322,21 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.accountName1, Parameters.applicationName, - Parameters.versionName + Parameters.versionName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -347,22 +345,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.accountName1, Parameters.applicationName, - Parameters.versionName + Parameters.versionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationPackage + bodyMapper: Mappers.ApplicationPackage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -371,22 +368,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.accountName1, Parameters.applicationName, - Parameters.versionName + Parameters.versionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListApplicationPackagesResult + bodyMapper: Mappers.ListApplicationPackagesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.maxresults], urlParameters: [ @@ -394,21 +390,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.applicationName + Parameters.applicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListApplicationPackagesResult + bodyMapper: Mappers.ListApplicationPackagesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -416,8 +412,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.accountName1, Parameters.nextLink, - Parameters.applicationName + Parameters.applicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operations/batchAccountOperations.ts b/sdk/batch/arm-batch/src/operations/batchAccountOperations.ts index 212f700e901f..b7b7eedac253 100644 --- a/sdk/batch/arm-batch/src/operations/batchAccountOperations.ts +++ b/sdk/batch/arm-batch/src/operations/batchAccountOperations.ts @@ -16,7 +16,7 @@ import { BatchManagementClient } from "../batchManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -55,7 +55,7 @@ import { BatchAccountListNextResponse, BatchAccountListByResourceGroupNextResponse, BatchAccountListDetectorsNextResponse, - BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse + BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse, } from "../models"; /// @@ -76,7 +76,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { * @param options The options parameters. */ public list( - options?: BatchAccountListOptionalParams + options?: BatchAccountListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -91,13 +91,13 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: BatchAccountListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BatchAccountListResponse; let continuationToken = settings?.continuationToken; @@ -118,7 +118,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { } private async *listPagingAll( - options?: BatchAccountListOptionalParams + options?: BatchAccountListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -132,7 +132,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { */ public listByResourceGroup( resourceGroupName: string, - options?: BatchAccountListByResourceGroupOptionalParams + options?: BatchAccountListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -149,16 +149,16 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: BatchAccountListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BatchAccountListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -173,7 +173,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -184,11 +184,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: BatchAccountListByResourceGroupOptionalParams + options?: BatchAccountListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -203,12 +203,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { public listDetectors( resourceGroupName: string, accountName: string, - options?: BatchAccountListDetectorsOptionalParams + options?: BatchAccountListDetectorsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listDetectorsPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -225,9 +225,9 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -235,7 +235,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, options?: BatchAccountListDetectorsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BatchAccountListDetectorsResponse; let continuationToken = settings?.continuationToken; @@ -243,7 +243,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { result = await this._listDetectors( resourceGroupName, accountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -255,7 +255,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -267,12 +267,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { private async *listDetectorsPagingAll( resourceGroupName: string, accountName: string, - options?: BatchAccountListDetectorsOptionalParams + options?: BatchAccountListDetectorsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listDetectorsPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -284,7 +284,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { * 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. + * https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network. * @param resourceGroupName The name of the resource group that contains the Batch account. * @param accountName The name of the Batch account. * @param options The options parameters. @@ -292,12 +292,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { public listOutboundNetworkDependenciesEndpoints( resourceGroupName: string, accountName: string, - options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams + options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listOutboundNetworkDependenciesEndpointsPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -314,9 +314,9 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -324,7 +324,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BatchAccountListOutboundNetworkDependenciesEndpointsResponse; let continuationToken = settings?.continuationToken; @@ -332,7 +332,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { result = await this._listOutboundNetworkDependenciesEndpoints( resourceGroupName, accountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -344,7 +344,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -356,12 +356,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { private async *listOutboundNetworkDependenciesEndpointsPagingAll( resourceGroupName: string, accountName: string, - options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams + options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listOutboundNetworkDependenciesEndpointsPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -382,7 +382,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountCreateParameters, - options?: BatchAccountCreateOptionalParams + options?: BatchAccountCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -391,21 +391,20 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -414,8 +413,8 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -423,15 +422,15 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, parameters, options }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< BatchAccountCreateResponse, @@ -439,7 +438,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -460,13 +459,13 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountCreateParameters, - options?: BatchAccountCreateOptionalParams + options?: BatchAccountCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, accountName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -482,11 +481,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountUpdateParameters, - options?: BatchAccountUpdateOptionalParams + options?: BatchAccountUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -499,25 +498,24 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { async beginDelete( resourceGroupName: string, accountName: string, - options?: BatchAccountDeleteOptionalParams + options?: BatchAccountDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -526,8 +524,8 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -535,20 +533,20 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -563,12 +561,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { async beginDeleteAndWait( resourceGroupName: string, accountName: string, - options?: BatchAccountDeleteOptionalParams + options?: BatchAccountDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, - options + options, ); return poller.pollUntilDone(); } @@ -582,11 +580,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { get( resourceGroupName: string, accountName: string, - options?: BatchAccountGetOptionalParams + options?: BatchAccountGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - getOperationSpec + getOperationSpec, ); } @@ -595,7 +593,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { * @param options The options parameters. */ private _list( - options?: BatchAccountListOptionalParams + options?: BatchAccountListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -607,11 +605,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { */ private _listByResourceGroup( resourceGroupName: string, - options?: BatchAccountListByResourceGroupOptionalParams + options?: BatchAccountListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -625,11 +623,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { synchronizeAutoStorageKeys( resourceGroupName: string, accountName: string, - options?: BatchAccountSynchronizeAutoStorageKeysOptionalParams + options?: BatchAccountSynchronizeAutoStorageKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - synchronizeAutoStorageKeysOperationSpec + synchronizeAutoStorageKeysOperationSpec, ); } @@ -647,11 +645,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountRegenerateKeyParameters, - options?: BatchAccountRegenerateKeyOptionalParams + options?: BatchAccountRegenerateKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, parameters, options }, - regenerateKeyOperationSpec + regenerateKeyOperationSpec, ); } @@ -667,11 +665,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { getKeys( resourceGroupName: string, accountName: string, - options?: BatchAccountGetKeysOptionalParams + options?: BatchAccountGetKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - getKeysOperationSpec + getKeysOperationSpec, ); } @@ -684,11 +682,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { private _listDetectors( resourceGroupName: string, accountName: string, - options?: BatchAccountListDetectorsOptionalParams + options?: BatchAccountListDetectorsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listDetectorsOperationSpec + listDetectorsOperationSpec, ); } @@ -703,11 +701,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, detectorId: string, - options?: BatchAccountGetDetectorOptionalParams + options?: BatchAccountGetDetectorOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, detectorId, options }, - getDetectorOperationSpec + getDetectorOperationSpec, ); } @@ -717,7 +715,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { * 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. + * https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network. * @param resourceGroupName The name of the resource group that contains the Batch account. * @param accountName The name of the Batch account. * @param options The options parameters. @@ -725,11 +723,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { private _listOutboundNetworkDependenciesEndpoints( resourceGroupName: string, accountName: string, - options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams + options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listOutboundNetworkDependenciesEndpointsOperationSpec + listOutboundNetworkDependenciesEndpointsOperationSpec, ); } @@ -740,11 +738,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { */ private _listNext( nextLink: string, - options?: BatchAccountListNextOptionalParams + options?: BatchAccountListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -757,11 +755,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: BatchAccountListByResourceGroupNextOptionalParams + options?: BatchAccountListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -776,11 +774,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, nextLink: string, - options?: BatchAccountListDetectorsNextOptionalParams + options?: BatchAccountListDetectorsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listDetectorsNextOperationSpec + listDetectorsNextOperationSpec, ); } @@ -796,11 +794,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, nextLink: string, - options?: BatchAccountListOutboundNetworkDependenciesEndpointsNextOptionalParams + options?: BatchAccountListOutboundNetworkDependenciesEndpointsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listOutboundNetworkDependenciesEndpointsNextOperationSpec + listOutboundNetworkDependenciesEndpointsNextOperationSpec, ); } } @@ -808,25 +806,24 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BatchAccount + bodyMapper: Mappers.BatchAccount, }, 201: { - bodyMapper: Mappers.BatchAccount + bodyMapper: Mappers.BatchAccount, }, 202: { - bodyMapper: Mappers.BatchAccount + bodyMapper: Mappers.BatchAccount, }, 204: { - bodyMapper: Mappers.BatchAccount + bodyMapper: Mappers.BatchAccount, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], @@ -834,23 +831,22 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.accountName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.BatchAccount + bodyMapper: Mappers.BatchAccount, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], @@ -858,15 +854,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", httpMethod: "DELETE", responses: { 200: {}, @@ -874,110 +869,105 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BatchAccount + bodyMapper: Mappers.BatchAccount, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BatchAccountListResult + bodyMapper: Mappers.BatchAccountListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BatchAccountListResult + bodyMapper: Mappers.BatchAccountListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const synchronizeAutoStorageKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.BatchAccountKeys + bodyMapper: Mappers.BatchAccountKeys, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], @@ -985,67 +975,64 @@ const regenerateKeyOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const getKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.BatchAccountKeys + bodyMapper: Mappers.BatchAccountKeys, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listDetectorsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DetectorListResult + bodyMapper: Mappers.DetectorListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getDetectorOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors/{detectorId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors/{detectorId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DetectorResponse + bodyMapper: Mappers.DetectorResponse, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1053,111 +1040,112 @@ const getDetectorOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.detectorId + Parameters.detectorId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OutboundEnvironmentEndpointCollection +const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundEnvironmentEndpointCollection, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.accountName1 - ], - headerParameters: [Parameters.accept], - serializer -}; + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.accountName1, + ], + headerParameters: [Parameters.accept], + serializer, + }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BatchAccountListResult + bodyMapper: Mappers.BatchAccountListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BatchAccountListResult + bodyMapper: Mappers.BatchAccountListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listDetectorsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DetectorListResult + bodyMapper: Mappers.DetectorListResult, }, default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.accountName1, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; -const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OutboundEnvironmentEndpointCollection + bodyMapper: Mappers.CloudError, }, - default: { - bodyMapper: Mappers.CloudError - } }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; +const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundEnvironmentEndpointCollection, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.accountName1, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/batch/arm-batch/src/operations/certificateOperations.ts b/sdk/batch/arm-batch/src/operations/certificateOperations.ts index faf4b1e9145a..476b5ff3a10e 100644 --- a/sdk/batch/arm-batch/src/operations/certificateOperations.ts +++ b/sdk/batch/arm-batch/src/operations/certificateOperations.ts @@ -16,7 +16,7 @@ import { BatchManagementClient } from "../batchManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -34,7 +34,7 @@ import { CertificateGetResponse, CertificateCancelDeletionOptionalParams, CertificateCancelDeletionResponse, - CertificateListByBatchAccountNextResponse + CertificateListByBatchAccountNextResponse, } from "../models"; /// @@ -61,12 +61,12 @@ export class CertificateOperationsImpl implements CertificateOperations { public listByBatchAccount( resourceGroupName: string, accountName: string, - options?: CertificateListByBatchAccountOptionalParams + options?: CertificateListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByBatchAccountPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -83,9 +83,9 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -93,7 +93,7 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, accountName: string, options?: CertificateListByBatchAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CertificateListByBatchAccountResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +101,7 @@ export class CertificateOperationsImpl implements CertificateOperations { result = await this._listByBatchAccount( resourceGroupName, accountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -113,7 +113,7 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -125,12 +125,12 @@ export class CertificateOperationsImpl implements CertificateOperations { private async *listByBatchAccountPagingAll( resourceGroupName: string, accountName: string, - options?: CertificateListByBatchAccountOptionalParams + options?: CertificateListByBatchAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByBatchAccountPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -147,11 +147,11 @@ export class CertificateOperationsImpl implements CertificateOperations { private _listByBatchAccount( resourceGroupName: string, accountName: string, - options?: CertificateListByBatchAccountOptionalParams + options?: CertificateListByBatchAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listByBatchAccountOperationSpec + listByBatchAccountOperationSpec, ); } @@ -172,11 +172,11 @@ export class CertificateOperationsImpl implements CertificateOperations { accountName: string, certificateName: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateCreateOptionalParams + options?: CertificateCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, certificateName, parameters, options }, - createOperationSpec + createOperationSpec, ); } @@ -197,11 +197,11 @@ export class CertificateOperationsImpl implements CertificateOperations { accountName: string, certificateName: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateUpdateOptionalParams + options?: CertificateUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, certificateName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -220,25 +220,24 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -247,8 +246,8 @@ export class CertificateOperationsImpl implements CertificateOperations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -256,20 +255,20 @@ export class CertificateOperationsImpl implements CertificateOperations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, certificateName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -290,13 +289,13 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, certificateName, - options + options, ); return poller.pollUntilDone(); } @@ -316,11 +315,11 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateGetOptionalParams + options?: CertificateGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, certificateName, options }, - getOperationSpec + getOperationSpec, ); } @@ -346,11 +345,11 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateCancelDeletionOptionalParams + options?: CertificateCancelDeletionOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, certificateName, options }, - cancelDeletionOperationSpec + cancelDeletionOperationSpec, ); } @@ -365,11 +364,11 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, accountName: string, nextLink: string, - options?: CertificateListByBatchAccountNextOptionalParams + options?: CertificateListByBatchAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listByBatchAccountNextOperationSpec + listByBatchAccountNextOperationSpec, ); } } @@ -377,44 +376,42 @@ export class CertificateOperationsImpl implements CertificateOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByBatchAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListCertificatesResult + bodyMapper: Mappers.ListCertificatesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.maxresults, Parameters.filter, - Parameters.select + Parameters.select, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.Certificate, - headersMapper: Mappers.CertificateCreateHeaders + headersMapper: Mappers.CertificateCreateHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], @@ -423,29 +420,28 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [ Parameters.contentType, Parameters.accept, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.Certificate, - headersMapper: Mappers.CertificateUpdateHeaders + headersMapper: Mappers.CertificateUpdateHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], @@ -454,19 +450,18 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [ Parameters.contentType, Parameters.accept, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", httpMethod: "DELETE", responses: { 200: {}, @@ -474,8 +469,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -483,23 +478,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.Certificate, - headersMapper: Mappers.CertificateGetHeaders + headersMapper: Mappers.CertificateGetHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -507,23 +501,22 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const cancelDeletionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.Certificate, - headersMapper: Mappers.CertificateCancelDeletionHeaders + headersMapper: Mappers.CertificateCancelDeletionHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -531,29 +524,29 @@ const cancelDeletionOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListCertificatesResult + bodyMapper: Mappers.ListCertificatesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operations/location.ts b/sdk/batch/arm-batch/src/operations/location.ts index 2efa1d7f3919..8d6d8e9f7262 100644 --- a/sdk/batch/arm-batch/src/operations/location.ts +++ b/sdk/batch/arm-batch/src/operations/location.ts @@ -27,7 +27,7 @@ import { LocationCheckNameAvailabilityOptionalParams, LocationCheckNameAvailabilityResponse, LocationListSupportedVirtualMachineSkusNextResponse, - LocationListSupportedCloudServiceSkusNextResponse + LocationListSupportedCloudServiceSkusNextResponse, } from "../models"; /// @@ -50,11 +50,11 @@ export class LocationImpl implements Location { */ public listSupportedVirtualMachineSkus( locationName: string, - options?: LocationListSupportedVirtualMachineSkusOptionalParams + options?: LocationListSupportedVirtualMachineSkusOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listSupportedVirtualMachineSkusPagingAll( locationName, - options + options, ); return { next() { @@ -70,23 +70,23 @@ export class LocationImpl implements Location { return this.listSupportedVirtualMachineSkusPagingPage( locationName, options, - settings + settings, ); - } + }, }; } private async *listSupportedVirtualMachineSkusPagingPage( locationName: string, options?: LocationListSupportedVirtualMachineSkusOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: LocationListSupportedVirtualMachineSkusResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listSupportedVirtualMachineSkus( locationName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -97,7 +97,7 @@ export class LocationImpl implements Location { result = await this._listSupportedVirtualMachineSkusNext( locationName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -108,11 +108,11 @@ export class LocationImpl implements Location { private async *listSupportedVirtualMachineSkusPagingAll( locationName: string, - options?: LocationListSupportedVirtualMachineSkusOptionalParams + options?: LocationListSupportedVirtualMachineSkusOptionalParams, ): AsyncIterableIterator { for await (const page of this.listSupportedVirtualMachineSkusPagingPage( locationName, - options + options, )) { yield* page; } @@ -125,11 +125,11 @@ export class LocationImpl implements Location { */ public listSupportedCloudServiceSkus( locationName: string, - options?: LocationListSupportedCloudServiceSkusOptionalParams + options?: LocationListSupportedCloudServiceSkusOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listSupportedCloudServiceSkusPagingAll( locationName, - options + options, ); return { next() { @@ -145,16 +145,16 @@ export class LocationImpl implements Location { return this.listSupportedCloudServiceSkusPagingPage( locationName, options, - settings + settings, ); - } + }, }; } private async *listSupportedCloudServiceSkusPagingPage( locationName: string, options?: LocationListSupportedCloudServiceSkusOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: LocationListSupportedCloudServiceSkusResponse; let continuationToken = settings?.continuationToken; @@ -169,7 +169,7 @@ export class LocationImpl implements Location { result = await this._listSupportedCloudServiceSkusNext( locationName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -180,11 +180,11 @@ export class LocationImpl implements Location { private async *listSupportedCloudServiceSkusPagingAll( locationName: string, - options?: LocationListSupportedCloudServiceSkusOptionalParams + options?: LocationListSupportedCloudServiceSkusOptionalParams, ): AsyncIterableIterator { for await (const page of this.listSupportedCloudServiceSkusPagingPage( locationName, - options + options, )) { yield* page; } @@ -197,11 +197,11 @@ export class LocationImpl implements Location { */ getQuotas( locationName: string, - options?: LocationGetQuotasOptionalParams + options?: LocationGetQuotasOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, options }, - getQuotasOperationSpec + getQuotasOperationSpec, ); } @@ -212,11 +212,11 @@ export class LocationImpl implements Location { */ private _listSupportedVirtualMachineSkus( locationName: string, - options?: LocationListSupportedVirtualMachineSkusOptionalParams + options?: LocationListSupportedVirtualMachineSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, options }, - listSupportedVirtualMachineSkusOperationSpec + listSupportedVirtualMachineSkusOperationSpec, ); } @@ -227,11 +227,11 @@ export class LocationImpl implements Location { */ private _listSupportedCloudServiceSkus( locationName: string, - options?: LocationListSupportedCloudServiceSkusOptionalParams + options?: LocationListSupportedCloudServiceSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, options }, - listSupportedCloudServiceSkusOperationSpec + listSupportedCloudServiceSkusOperationSpec, ); } @@ -244,11 +244,11 @@ export class LocationImpl implements Location { checkNameAvailability( locationName: string, parameters: CheckNameAvailabilityParameters, - options?: LocationCheckNameAvailabilityOptionalParams + options?: LocationCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, parameters, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -262,11 +262,11 @@ export class LocationImpl implements Location { private _listSupportedVirtualMachineSkusNext( locationName: string, nextLink: string, - options?: LocationListSupportedVirtualMachineSkusNextOptionalParams + options?: LocationListSupportedVirtualMachineSkusNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, nextLink, options }, - listSupportedVirtualMachineSkusNextOperationSpec + listSupportedVirtualMachineSkusNextOperationSpec, ); } @@ -280,11 +280,11 @@ export class LocationImpl implements Location { private _listSupportedCloudServiceSkusNext( locationName: string, nextLink: string, - options?: LocationListSupportedCloudServiceSkusNextOptionalParams + options?: LocationListSupportedCloudServiceSkusNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, nextLink, options }, - listSupportedCloudServiceSkusNextOperationSpec + listSupportedCloudServiceSkusNextOperationSpec, ); } } @@ -292,136 +292,134 @@ export class LocationImpl implements Location { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getQuotasOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BatchLocationQuota + bodyMapper: Mappers.BatchLocationQuota, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSupportedVirtualMachineSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/virtualMachineSkus", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/virtualMachineSkus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SupportedSkusResult + bodyMapper: Mappers.SupportedSkusResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.maxresults, - Parameters.filter + Parameters.filter, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSupportedCloudServiceSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/cloudServiceSkus", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/cloudServiceSkus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SupportedSkusResult + bodyMapper: Mappers.SupportedSkusResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.maxresults, - Parameters.filter + Parameters.filter, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckNameAvailabilityResult + bodyMapper: Mappers.CheckNameAvailabilityResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; -const listSupportedVirtualMachineSkusNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SupportedSkusResult +const listSupportedVirtualMachineSkusNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SupportedSkusResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.locationName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listSupportedCloudServiceSkusNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SupportedSkusResult + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.locationName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const listSupportedCloudServiceSkusNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SupportedSkusResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.locationName - ], - headerParameters: [Parameters.accept], - serializer -}; + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.locationName, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/batch/arm-batch/src/operations/operations.ts b/sdk/batch/arm-batch/src/operations/operations.ts index 517211c24fa2..a52f58db23c0 100644 --- a/sdk/batch/arm-batch/src/operations/operations.ts +++ b/sdk/batch/arm-batch/src/operations/operations.ts @@ -18,7 +18,7 @@ import { OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operations/poolOperations.ts b/sdk/batch/arm-batch/src/operations/poolOperations.ts index f4338b80c41c..f86c261cf03d 100644 --- a/sdk/batch/arm-batch/src/operations/poolOperations.ts +++ b/sdk/batch/arm-batch/src/operations/poolOperations.ts @@ -16,7 +16,7 @@ import { BatchManagementClient } from "../batchManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -35,7 +35,7 @@ import { PoolDisableAutoScaleResponse, PoolStopResizeOptionalParams, PoolStopResizeResponse, - PoolListByBatchAccountNextResponse + PoolListByBatchAccountNextResponse, } from "../models"; /// @@ -60,12 +60,12 @@ export class PoolOperationsImpl implements PoolOperations { public listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PoolListByBatchAccountOptionalParams + options?: PoolListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByBatchAccountPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -82,9 +82,9 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -92,7 +92,7 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, options?: PoolListByBatchAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PoolListByBatchAccountResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class PoolOperationsImpl implements PoolOperations { result = await this._listByBatchAccount( resourceGroupName, accountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -112,7 +112,7 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -124,12 +124,12 @@ export class PoolOperationsImpl implements PoolOperations { private async *listByBatchAccountPagingAll( resourceGroupName: string, accountName: string, - options?: PoolListByBatchAccountOptionalParams + options?: PoolListByBatchAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByBatchAccountPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -144,11 +144,11 @@ export class PoolOperationsImpl implements PoolOperations { private _listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PoolListByBatchAccountOptionalParams + options?: PoolListByBatchAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listByBatchAccountOperationSpec + listByBatchAccountOperationSpec, ); } @@ -165,11 +165,11 @@ export class PoolOperationsImpl implements PoolOperations { accountName: string, poolName: string, parameters: Pool, - options?: PoolCreateOptionalParams + options?: PoolCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, parameters, options }, - createOperationSpec + createOperationSpec, ); } @@ -187,11 +187,11 @@ export class PoolOperationsImpl implements PoolOperations { accountName: string, poolName: string, parameters: Pool, - options?: PoolUpdateOptionalParams + options?: PoolUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -206,25 +206,24 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolDeleteOptionalParams + options?: PoolDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -233,8 +232,8 @@ export class PoolOperationsImpl implements PoolOperations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -242,20 +241,20 @@ export class PoolOperationsImpl implements PoolOperations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -272,13 +271,13 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolDeleteOptionalParams + options?: PoolDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, poolName, - options + options, ); return poller.pollUntilDone(); } @@ -294,11 +293,11 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolGetOptionalParams + options?: PoolGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, options }, - getOperationSpec + getOperationSpec, ); } @@ -313,11 +312,11 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolDisableAutoScaleOptionalParams + options?: PoolDisableAutoScaleOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, options }, - disableAutoScaleOperationSpec + disableAutoScaleOperationSpec, ); } @@ -337,11 +336,11 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolStopResizeOptionalParams + options?: PoolStopResizeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, options }, - stopResizeOperationSpec + stopResizeOperationSpec, ); } @@ -356,11 +355,11 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, nextLink: string, - options?: PoolListByBatchAccountNextOptionalParams + options?: PoolListByBatchAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listByBatchAccountNextOperationSpec + listByBatchAccountNextOperationSpec, ); } } @@ -368,44 +367,42 @@ export class PoolOperationsImpl implements PoolOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByBatchAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListPoolsResult + bodyMapper: Mappers.ListPoolsResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.maxresults, Parameters.filter, - Parameters.select + Parameters.select, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.Pool, - headersMapper: Mappers.PoolCreateHeaders + headersMapper: Mappers.PoolCreateHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], @@ -414,29 +411,28 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.poolName + Parameters.poolName, ], headerParameters: [ Parameters.contentType, Parameters.accept, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.Pool, - headersMapper: Mappers.PoolUpdateHeaders + headersMapper: Mappers.PoolUpdateHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], @@ -445,19 +441,18 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.poolName + Parameters.poolName, ], headerParameters: [ Parameters.contentType, Parameters.accept, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", httpMethod: "DELETE", responses: { 200: {}, @@ -465,8 +460,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -474,23 +469,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.Pool, - headersMapper: Mappers.PoolGetHeaders + headersMapper: Mappers.PoolGetHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -498,23 +492,22 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const disableAutoScaleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.Pool, - headersMapper: Mappers.PoolDisableAutoScaleHeaders + headersMapper: Mappers.PoolDisableAutoScaleHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -522,23 +515,22 @@ const disableAutoScaleOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const stopResizeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.Pool, - headersMapper: Mappers.PoolStopResizeHeaders + headersMapper: Mappers.PoolStopResizeHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -546,29 +538,29 @@ const stopResizeOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListPoolsResult + bodyMapper: Mappers.ListPoolsResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operations/privateEndpointConnectionOperations.ts b/sdk/batch/arm-batch/src/operations/privateEndpointConnectionOperations.ts index 9b9a50fda5b7..fa382ce0dd81 100644 --- a/sdk/batch/arm-batch/src/operations/privateEndpointConnectionOperations.ts +++ b/sdk/batch/arm-batch/src/operations/privateEndpointConnectionOperations.ts @@ -16,7 +16,7 @@ import { BatchManagementClient } from "../batchManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -30,13 +30,14 @@ import { PrivateEndpointConnectionUpdateResponse, PrivateEndpointConnectionDeleteOptionalParams, PrivateEndpointConnectionDeleteResponse, - PrivateEndpointConnectionListByBatchAccountNextResponse + PrivateEndpointConnectionListByBatchAccountNextResponse, } from "../models"; /// /** Class containing PrivateEndpointConnectionOperations operations. */ export class PrivateEndpointConnectionOperationsImpl - implements PrivateEndpointConnectionOperations { + implements PrivateEndpointConnectionOperations +{ private readonly client: BatchManagementClient; /** @@ -56,12 +57,12 @@ export class PrivateEndpointConnectionOperationsImpl public listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PrivateEndpointConnectionListByBatchAccountOptionalParams + options?: PrivateEndpointConnectionListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByBatchAccountPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +89,7 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, accountName: string, options?: PrivateEndpointConnectionListByBatchAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateEndpointConnectionListByBatchAccountResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +97,7 @@ export class PrivateEndpointConnectionOperationsImpl result = await this._listByBatchAccount( resourceGroupName, accountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +109,7 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,12 +121,12 @@ export class PrivateEndpointConnectionOperationsImpl private async *listByBatchAccountPagingAll( resourceGroupName: string, accountName: string, - options?: PrivateEndpointConnectionListByBatchAccountOptionalParams + options?: PrivateEndpointConnectionListByBatchAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByBatchAccountPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -140,11 +141,11 @@ export class PrivateEndpointConnectionOperationsImpl private _listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PrivateEndpointConnectionListByBatchAccountOptionalParams + options?: PrivateEndpointConnectionListByBatchAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listByBatchAccountOperationSpec + listByBatchAccountOperationSpec, ); } @@ -160,16 +161,16 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionGetOptionalParams + options?: PrivateEndpointConnectionGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, privateEndpointConnectionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -188,7 +189,7 @@ export class PrivateEndpointConnectionOperationsImpl accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionUpdateOptionalParams + options?: PrivateEndpointConnectionUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -197,21 +198,20 @@ export class PrivateEndpointConnectionOperationsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -220,8 +220,8 @@ export class PrivateEndpointConnectionOperationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -229,8 +229,8 @@ export class PrivateEndpointConnectionOperationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -241,9 +241,9 @@ export class PrivateEndpointConnectionOperationsImpl accountName, privateEndpointConnectionName, parameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< PrivateEndpointConnectionUpdateResponse, @@ -251,7 +251,7 @@ export class PrivateEndpointConnectionOperationsImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -272,14 +272,14 @@ export class PrivateEndpointConnectionOperationsImpl accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionUpdateOptionalParams + options?: PrivateEndpointConnectionUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, accountName, privateEndpointConnectionName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -296,7 +296,7 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -305,21 +305,20 @@ export class PrivateEndpointConnectionOperationsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -328,8 +327,8 @@ export class PrivateEndpointConnectionOperationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -337,8 +336,8 @@ export class PrivateEndpointConnectionOperationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -348,9 +347,9 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName, accountName, privateEndpointConnectionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller< PrivateEndpointConnectionDeleteResponse, @@ -358,7 +357,7 @@ export class PrivateEndpointConnectionOperationsImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -376,13 +375,13 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, privateEndpointConnectionName, - options + options, ); return poller.pollUntilDone(); } @@ -398,11 +397,11 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, accountName: string, nextLink: string, - options?: PrivateEndpointConnectionListByBatchAccountNextOptionalParams + options?: PrivateEndpointConnectionListByBatchAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listByBatchAccountNextOperationSpec + listByBatchAccountNextOperationSpec, ); } } @@ -410,38 +409,36 @@ export class PrivateEndpointConnectionOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByBatchAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListPrivateEndpointConnectionsResult + bodyMapper: Mappers.ListPrivateEndpointConnectionsResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.maxresults], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -449,31 +446,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 201: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 202: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 204: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], @@ -482,36 +478,35 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [ Parameters.contentType, Parameters.accept, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: { - headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders + headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders, }, 201: { - headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders + headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders, }, 202: { - headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders + headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders, }, 204: { - headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders + headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -519,29 +514,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListPrivateEndpointConnectionsResult + bodyMapper: Mappers.ListPrivateEndpointConnectionsResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operations/privateLinkResourceOperations.ts b/sdk/batch/arm-batch/src/operations/privateLinkResourceOperations.ts index b5bde5b736b5..d623320f73d5 100644 --- a/sdk/batch/arm-batch/src/operations/privateLinkResourceOperations.ts +++ b/sdk/batch/arm-batch/src/operations/privateLinkResourceOperations.ts @@ -20,13 +20,14 @@ import { PrivateLinkResourceListByBatchAccountResponse, PrivateLinkResourceGetOptionalParams, PrivateLinkResourceGetResponse, - PrivateLinkResourceListByBatchAccountNextResponse + PrivateLinkResourceListByBatchAccountNextResponse, } from "../models"; /// /** Class containing PrivateLinkResourceOperations operations. */ export class PrivateLinkResourceOperationsImpl - implements PrivateLinkResourceOperations { + implements PrivateLinkResourceOperations +{ private readonly client: BatchManagementClient; /** @@ -46,12 +47,12 @@ export class PrivateLinkResourceOperationsImpl public listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PrivateLinkResourceListByBatchAccountOptionalParams + options?: PrivateLinkResourceListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByBatchAccountPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -68,9 +69,9 @@ export class PrivateLinkResourceOperationsImpl resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -78,7 +79,7 @@ export class PrivateLinkResourceOperationsImpl resourceGroupName: string, accountName: string, options?: PrivateLinkResourceListByBatchAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateLinkResourceListByBatchAccountResponse; let continuationToken = settings?.continuationToken; @@ -86,7 +87,7 @@ export class PrivateLinkResourceOperationsImpl result = await this._listByBatchAccount( resourceGroupName, accountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -98,7 +99,7 @@ export class PrivateLinkResourceOperationsImpl resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -110,12 +111,12 @@ export class PrivateLinkResourceOperationsImpl private async *listByBatchAccountPagingAll( resourceGroupName: string, accountName: string, - options?: PrivateLinkResourceListByBatchAccountOptionalParams + options?: PrivateLinkResourceListByBatchAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByBatchAccountPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -130,11 +131,11 @@ export class PrivateLinkResourceOperationsImpl private _listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PrivateLinkResourceListByBatchAccountOptionalParams + options?: PrivateLinkResourceListByBatchAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listByBatchAccountOperationSpec + listByBatchAccountOperationSpec, ); } @@ -150,11 +151,11 @@ export class PrivateLinkResourceOperationsImpl resourceGroupName: string, accountName: string, privateLinkResourceName: string, - options?: PrivateLinkResourceGetOptionalParams + options?: PrivateLinkResourceGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, privateLinkResourceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -169,11 +170,11 @@ export class PrivateLinkResourceOperationsImpl resourceGroupName: string, accountName: string, nextLink: string, - options?: PrivateLinkResourceListByBatchAccountNextOptionalParams + options?: PrivateLinkResourceListByBatchAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listByBatchAccountNextOperationSpec + listByBatchAccountNextOperationSpec, ); } } @@ -181,38 +182,36 @@ export class PrivateLinkResourceOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByBatchAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListPrivateLinkResourcesResult + bodyMapper: Mappers.ListPrivateLinkResourcesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.maxresults], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources/{privateLinkResourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources/{privateLinkResourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResource + bodyMapper: Mappers.PrivateLinkResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -220,29 +219,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.privateLinkResourceName + Parameters.privateLinkResourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListPrivateLinkResourcesResult + bodyMapper: Mappers.ListPrivateLinkResourcesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/applicationOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/applicationOperations.ts index 3f4ee2745ef6..54afaa1c9773 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/applicationOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/applicationOperations.ts @@ -16,7 +16,7 @@ import { ApplicationGetOptionalParams, ApplicationGetResponse, ApplicationUpdateOptionalParams, - ApplicationUpdateResponse + ApplicationUpdateResponse, } from "../models"; /// @@ -31,7 +31,7 @@ export interface ApplicationOperations { list( resourceGroupName: string, accountName: string, - options?: ApplicationListOptionalParams + options?: ApplicationListOptionalParams, ): PagedAsyncIterableIterator; /** * Adds an application to the specified Batch account. @@ -44,7 +44,7 @@ export interface ApplicationOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationCreateOptionalParams + options?: ApplicationCreateOptionalParams, ): Promise; /** * Deletes an application. @@ -57,7 +57,7 @@ export interface ApplicationOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationDeleteOptionalParams + options?: ApplicationDeleteOptionalParams, ): Promise; /** * Gets information about the specified application. @@ -70,7 +70,7 @@ export interface ApplicationOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationGetOptionalParams + options?: ApplicationGetOptionalParams, ): Promise; /** * Updates settings for the specified application. @@ -85,6 +85,6 @@ export interface ApplicationOperations { accountName: string, applicationName: string, parameters: Application, - options?: ApplicationUpdateOptionalParams + options?: ApplicationUpdateOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/applicationPackageOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/applicationPackageOperations.ts index 4f2fea8c6fb8..51b1989f82d0 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/applicationPackageOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/applicationPackageOperations.ts @@ -17,7 +17,7 @@ import { ApplicationPackageCreateResponse, ApplicationPackageDeleteOptionalParams, ApplicationPackageGetOptionalParams, - ApplicationPackageGetResponse + ApplicationPackageGetResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface ApplicationPackageOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationPackageListOptionalParams + options?: ApplicationPackageListOptionalParams, ): PagedAsyncIterableIterator; /** * Activates the specified application package. This should be done after the `ApplicationPackage` was @@ -53,7 +53,7 @@ export interface ApplicationPackageOperations { applicationName: string, versionName: string, parameters: ActivateApplicationPackageParameters, - options?: ApplicationPackageActivateOptionalParams + options?: ApplicationPackageActivateOptionalParams, ): Promise; /** * Creates an application package record. The record contains a storageUrl where the package should be @@ -71,7 +71,7 @@ export interface ApplicationPackageOperations { accountName: string, applicationName: string, versionName: string, - options?: ApplicationPackageCreateOptionalParams + options?: ApplicationPackageCreateOptionalParams, ): Promise; /** * Deletes an application package record and its associated binary file. @@ -86,7 +86,7 @@ export interface ApplicationPackageOperations { accountName: string, applicationName: string, versionName: string, - options?: ApplicationPackageDeleteOptionalParams + options?: ApplicationPackageDeleteOptionalParams, ): Promise; /** * Gets information about the specified application package. @@ -101,6 +101,6 @@ export interface ApplicationPackageOperations { accountName: string, applicationName: string, versionName: string, - options?: ApplicationPackageGetOptionalParams + options?: ApplicationPackageGetOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/batchAccountOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/batchAccountOperations.ts index eaf5581f29f0..973966fb8a00 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/batchAccountOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/batchAccountOperations.ts @@ -32,7 +32,7 @@ import { BatchAccountGetKeysOptionalParams, BatchAccountGetKeysResponse, BatchAccountGetDetectorOptionalParams, - BatchAccountGetDetectorResponse + BatchAccountGetDetectorResponse, } from "../models"; /// @@ -43,7 +43,7 @@ export interface BatchAccountOperations { * @param options The options parameters. */ list( - options?: BatchAccountListOptionalParams + options?: BatchAccountListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets information about the Batch accounts associated with the specified resource group. @@ -52,7 +52,7 @@ export interface BatchAccountOperations { */ listByResourceGroup( resourceGroupName: string, - options?: BatchAccountListByResourceGroupOptionalParams + options?: BatchAccountListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Gets information about the detectors available for a given Batch account. @@ -63,7 +63,7 @@ export interface BatchAccountOperations { listDetectors( resourceGroupName: string, accountName: string, - options?: BatchAccountListDetectorsOptionalParams + options?: BatchAccountListDetectorsOptionalParams, ): PagedAsyncIterableIterator; /** * Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch @@ -71,7 +71,7 @@ export interface BatchAccountOperations { * 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. + * https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network. * @param resourceGroupName The name of the resource group that contains the Batch account. * @param accountName The name of the Batch account. * @param options The options parameters. @@ -79,7 +79,7 @@ export interface BatchAccountOperations { listOutboundNetworkDependenciesEndpoints( resourceGroupName: string, accountName: string, - options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams + options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams, ): PagedAsyncIterableIterator; /** * Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with @@ -96,7 +96,7 @@ export interface BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountCreateParameters, - options?: BatchAccountCreateOptionalParams + options?: BatchAccountCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -118,7 +118,7 @@ export interface BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountCreateParameters, - options?: BatchAccountCreateOptionalParams + options?: BatchAccountCreateOptionalParams, ): Promise; /** * Updates the properties of an existing Batch account. @@ -131,7 +131,7 @@ export interface BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountUpdateParameters, - options?: BatchAccountUpdateOptionalParams + options?: BatchAccountUpdateOptionalParams, ): Promise; /** * Deletes the specified Batch account. @@ -142,7 +142,7 @@ export interface BatchAccountOperations { beginDelete( resourceGroupName: string, accountName: string, - options?: BatchAccountDeleteOptionalParams + options?: BatchAccountDeleteOptionalParams, ): Promise, void>>; /** * Deletes the specified Batch account. @@ -153,7 +153,7 @@ export interface BatchAccountOperations { beginDeleteAndWait( resourceGroupName: string, accountName: string, - options?: BatchAccountDeleteOptionalParams + options?: BatchAccountDeleteOptionalParams, ): Promise; /** * Gets information about the specified Batch account. @@ -164,7 +164,7 @@ export interface BatchAccountOperations { get( resourceGroupName: string, accountName: string, - options?: BatchAccountGetOptionalParams + options?: BatchAccountGetOptionalParams, ): Promise; /** * Synchronizes access keys for the auto-storage account configured for the specified Batch account, @@ -176,7 +176,7 @@ export interface BatchAccountOperations { synchronizeAutoStorageKeys( resourceGroupName: string, accountName: string, - options?: BatchAccountSynchronizeAutoStorageKeysOptionalParams + options?: BatchAccountSynchronizeAutoStorageKeysOptionalParams, ): Promise; /** * This operation applies only to Batch accounts with allowedAuthenticationModes containing @@ -192,7 +192,7 @@ export interface BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountRegenerateKeyParameters, - options?: BatchAccountRegenerateKeyOptionalParams + options?: BatchAccountRegenerateKeyOptionalParams, ): Promise; /** * This operation applies only to Batch accounts with allowedAuthenticationModes containing @@ -206,7 +206,7 @@ export interface BatchAccountOperations { getKeys( resourceGroupName: string, accountName: string, - options?: BatchAccountGetKeysOptionalParams + options?: BatchAccountGetKeysOptionalParams, ): Promise; /** * Gets information about the given detector for a given Batch account. @@ -219,6 +219,6 @@ export interface BatchAccountOperations { resourceGroupName: string, accountName: string, detectorId: string, - options?: BatchAccountGetDetectorOptionalParams + options?: BatchAccountGetDetectorOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/certificateOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/certificateOperations.ts index 0d1dcf9ae7d9..a4bc93abed5f 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/certificateOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/certificateOperations.ts @@ -20,7 +20,7 @@ import { CertificateGetOptionalParams, CertificateGetResponse, CertificateCancelDeletionOptionalParams, - CertificateCancelDeletionResponse + CertificateCancelDeletionResponse, } from "../models"; /// @@ -37,7 +37,7 @@ export interface CertificateOperations { listByBatchAccount( resourceGroupName: string, accountName: string, - options?: CertificateListByBatchAccountOptionalParams + options?: CertificateListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Warning: This operation is deprecated and will be removed after February, 2024. Please use the @@ -56,7 +56,7 @@ export interface CertificateOperations { accountName: string, certificateName: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateCreateOptionalParams + options?: CertificateCreateOptionalParams, ): Promise; /** * Warning: This operation is deprecated and will be removed after February, 2024. Please use the @@ -75,7 +75,7 @@ export interface CertificateOperations { accountName: string, certificateName: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateUpdateOptionalParams + options?: CertificateUpdateOptionalParams, ): Promise; /** * Warning: This operation is deprecated and will be removed after February, 2024. Please use the @@ -92,7 +92,7 @@ export interface CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise, void>>; /** * Warning: This operation is deprecated and will be removed after February, 2024. Please use the @@ -109,7 +109,7 @@ export interface CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise; /** * Warning: This operation is deprecated and will be removed after February, 2024. Please use the @@ -126,7 +126,7 @@ export interface CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateGetOptionalParams + options?: CertificateGetOptionalParams, ): Promise; /** * If you try to delete a certificate that is being used by a pool or compute node, the status of the @@ -150,6 +150,6 @@ export interface CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateCancelDeletionOptionalParams + options?: CertificateCancelDeletionOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/location.ts b/sdk/batch/arm-batch/src/operationsInterfaces/location.ts index c7d73327a815..1c488bb65dd4 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/location.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/location.ts @@ -15,7 +15,7 @@ import { LocationGetQuotasResponse, CheckNameAvailabilityParameters, LocationCheckNameAvailabilityOptionalParams, - LocationCheckNameAvailabilityResponse + LocationCheckNameAvailabilityResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface Location { */ listSupportedVirtualMachineSkus( locationName: string, - options?: LocationListSupportedVirtualMachineSkusOptionalParams + options?: LocationListSupportedVirtualMachineSkusOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the list of Batch supported Cloud Service VM sizes available at the given location. @@ -37,7 +37,7 @@ export interface Location { */ listSupportedCloudServiceSkus( locationName: string, - options?: LocationListSupportedCloudServiceSkusOptionalParams + options?: LocationListSupportedCloudServiceSkusOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the Batch service quotas for the specified subscription at the given location. @@ -46,7 +46,7 @@ export interface Location { */ getQuotas( locationName: string, - options?: LocationGetQuotasOptionalParams + options?: LocationGetQuotasOptionalParams, ): Promise; /** * Checks whether the Batch account name is available in the specified region. @@ -57,6 +57,6 @@ export interface Location { checkNameAvailability( locationName: string, parameters: CheckNameAvailabilityParameters, - options?: LocationCheckNameAvailabilityOptionalParams + options?: LocationCheckNameAvailabilityOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/operations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/operations.ts index f80e7aeb4620..e0110fed929d 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/operations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/poolOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/poolOperations.ts index 0949ed1456a7..39c49e4cab1a 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/poolOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/poolOperations.ts @@ -21,7 +21,7 @@ import { PoolDisableAutoScaleOptionalParams, PoolDisableAutoScaleResponse, PoolStopResizeOptionalParams, - PoolStopResizeResponse + PoolStopResizeResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export interface PoolOperations { listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PoolListByBatchAccountOptionalParams + options?: PoolListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Creates a new pool inside the specified account. @@ -51,7 +51,7 @@ export interface PoolOperations { accountName: string, poolName: string, parameters: Pool, - options?: PoolCreateOptionalParams + options?: PoolCreateOptionalParams, ): Promise; /** * Updates the properties of an existing pool. @@ -67,7 +67,7 @@ export interface PoolOperations { accountName: string, poolName: string, parameters: Pool, - options?: PoolUpdateOptionalParams + options?: PoolUpdateOptionalParams, ): Promise; /** * Deletes the specified pool. @@ -80,7 +80,7 @@ export interface PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolDeleteOptionalParams + options?: PoolDeleteOptionalParams, ): Promise, void>>; /** * Deletes the specified pool. @@ -93,7 +93,7 @@ export interface PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolDeleteOptionalParams + options?: PoolDeleteOptionalParams, ): Promise; /** * Gets information about the specified pool. @@ -106,7 +106,7 @@ export interface PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolGetOptionalParams + options?: PoolGetOptionalParams, ): Promise; /** * Disables automatic scaling for a pool. @@ -119,7 +119,7 @@ export interface PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolDisableAutoScaleOptionalParams + options?: PoolDisableAutoScaleOptionalParams, ): Promise; /** * This does not restore the pool to its previous state before the resize operation: it only stops any @@ -137,6 +137,6 @@ export interface PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolStopResizeOptionalParams + options?: PoolStopResizeOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/privateEndpointConnectionOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/privateEndpointConnectionOperations.ts index 04bd4b2bf8db..5edc5ba3ade6 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/privateEndpointConnectionOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/privateEndpointConnectionOperations.ts @@ -16,7 +16,7 @@ import { PrivateEndpointConnectionUpdateOptionalParams, PrivateEndpointConnectionUpdateResponse, PrivateEndpointConnectionDeleteOptionalParams, - PrivateEndpointConnectionDeleteResponse + PrivateEndpointConnectionDeleteResponse, } from "../models"; /// @@ -31,7 +31,7 @@ export interface PrivateEndpointConnectionOperations { listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PrivateEndpointConnectionListByBatchAccountOptionalParams + options?: PrivateEndpointConnectionListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Gets information about the specified private endpoint connection. @@ -45,7 +45,7 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionGetOptionalParams + options?: PrivateEndpointConnectionGetOptionalParams, ): Promise; /** * Updates the properties of an existing private endpoint connection. @@ -62,7 +62,7 @@ export interface PrivateEndpointConnectionOperations { accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionUpdateOptionalParams + options?: PrivateEndpointConnectionUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -84,7 +84,7 @@ export interface PrivateEndpointConnectionOperations { accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionUpdateOptionalParams + options?: PrivateEndpointConnectionUpdateOptionalParams, ): Promise; /** * Deletes the specified private endpoint connection. @@ -98,7 +98,7 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -117,6 +117,6 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/privateLinkResourceOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/privateLinkResourceOperations.ts index 2c921d998b7e..75252ea84733 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/privateLinkResourceOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/privateLinkResourceOperations.ts @@ -11,7 +11,7 @@ import { PrivateLinkResource, PrivateLinkResourceListByBatchAccountOptionalParams, PrivateLinkResourceGetOptionalParams, - PrivateLinkResourceGetResponse + PrivateLinkResourceGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface PrivateLinkResourceOperations { listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PrivateLinkResourceListByBatchAccountOptionalParams + options?: PrivateLinkResourceListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Gets information about the specified private link resource. @@ -40,6 +40,6 @@ export interface PrivateLinkResourceOperations { resourceGroupName: string, accountName: string, privateLinkResourceName: string, - options?: PrivateLinkResourceGetOptionalParams + options?: PrivateLinkResourceGetOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/pagingHelper.ts b/sdk/batch/arm-batch/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/batch/arm-batch/src/pagingHelper.ts +++ b/sdk/batch/arm-batch/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/batch/arm-batch/test/batch_examples.ts b/sdk/batch/arm-batch/test/batch_examples.ts index 173f6fa0cc0c..9b93e5126cdb 100644 --- a/sdk/batch/arm-batch/test/batch_examples.ts +++ b/sdk/batch/arm-batch/test/batch_examples.ts @@ -60,7 +60,7 @@ describe("Batch test", () => { resourceGroup = "myjstest"; accountName = "myaccountxxx"; applicationName = "myapplicationxxx"; - storageaccountName = "mystorageaccountxxx111"; + storageaccountName = "myjsstorageaccount111"; certificateName = "sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7"; poolName = "mypoolxxx"; }); From 9dae14a4b9354ef7d7383291318e50a1a2a4237b Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Wed, 13 Mar 2024 14:48:20 +0800 Subject: [PATCH 2/2] update --- sdk/batch/arm-batch/samples/v9/javascript/README.md | 2 +- ...chAccountListOutboundNetworkDependenciesEndpointsSample.js | 4 ++-- sdk/batch/arm-batch/samples/v9/typescript/README.md | 2 +- ...chAccountListOutboundNetworkDependenciesEndpointsSample.ts | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sdk/batch/arm-batch/samples/v9/javascript/README.md b/sdk/batch/arm-batch/samples/v9/javascript/README.md index 607a85fcd9f9..137d817992f9 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/README.md +++ b/sdk/batch/arm-batch/samples/v9/javascript/README.md @@ -21,7 +21,7 @@ These sample programs show how to use the JavaScript client libraries for in som | [batchAccountGetSample.js][batchaccountgetsample] | Gets information about the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json | | [batchAccountListByResourceGroupSample.js][batchaccountlistbyresourcegroupsample] | Gets information about the Batch accounts associated with the specified resource group. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json | | [batchAccountListDetectorsSample.js][batchaccountlistdetectorssample] | Gets information about the detectors available for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json | -| [batchAccountListOutboundNetworkDependenciesEndpointsSample.js][batchaccountlistoutboundnetworkdependenciesendpointssample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json | +| [batchAccountListOutboundNetworkDependenciesEndpointsSample.js][batchaccountlistoutboundnetworkdependenciesendpointssample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json | | [batchAccountListSample.js][batchaccountlistsample] | Gets information about the Batch accounts associated with the subscription. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json | | [batchAccountRegenerateKeySample.js][batchaccountregeneratekeysample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json | | [batchAccountSynchronizeAutoStorageKeysSample.js][batchaccountsynchronizeautostoragekeyssample] | Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json | diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListOutboundNetworkDependenciesEndpointsSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListOutboundNetworkDependenciesEndpointsSample.js index cd555fdf4c1b..95bb8e3b20f4 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListOutboundNetworkDependenciesEndpointsSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListOutboundNetworkDependenciesEndpointsSample.js @@ -13,9 +13,9 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * 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. + * 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. * - * @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. + * @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. * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json */ async function listOutboundNetworkDependencies() { diff --git a/sdk/batch/arm-batch/samples/v9/typescript/README.md b/sdk/batch/arm-batch/samples/v9/typescript/README.md index c9ef131367a0..739c846dfee7 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/README.md +++ b/sdk/batch/arm-batch/samples/v9/typescript/README.md @@ -21,7 +21,7 @@ These sample programs show how to use the TypeScript client libraries for in som | [batchAccountGetSample.ts][batchaccountgetsample] | Gets information about the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json | | [batchAccountListByResourceGroupSample.ts][batchaccountlistbyresourcegroupsample] | Gets information about the Batch accounts associated with the specified resource group. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json | | [batchAccountListDetectorsSample.ts][batchaccountlistdetectorssample] | Gets information about the detectors available for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json | -| [batchAccountListOutboundNetworkDependenciesEndpointsSample.ts][batchaccountlistoutboundnetworkdependenciesendpointssample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json | +| [batchAccountListOutboundNetworkDependenciesEndpointsSample.ts][batchaccountlistoutboundnetworkdependenciesendpointssample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json | | [batchAccountListSample.ts][batchaccountlistsample] | Gets information about the Batch accounts associated with the subscription. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json | | [batchAccountRegenerateKeySample.ts][batchaccountregeneratekeysample] | 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. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json | | [batchAccountSynchronizeAutoStorageKeysSample.ts][batchaccountsynchronizeautostoragekeyssample] | Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json | diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts index b16fc0e1eba5..6ee9127b744e 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts @@ -15,9 +15,9 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * 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. + * 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. * - * @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. + * @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. * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json */ async function listOutboundNetworkDependencies() {