From d09302a0c644693e8f66fce69cf4f397888e22c4 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 11 Dec 2024 17:20:41 +0000 Subject: [PATCH] CodeGen from PR 31838 in Azure/azure-rest-api-specs Merge 5ff1bdac4c21802a1401945539a7f7612aac962e into faebe07bdf8bab920fbecdef2426772179984932 --- common/config/rush/pnpm-lock.yaml | 3 +- .../arm-computefleet/CHANGELOG.md | 41 +- sdk/computefleet/arm-computefleet/README.md | 11 +- sdk/computefleet/arm-computefleet/assets.json | 6 - .../arm-computefleet/eslint.config.mjs | 11 +- .../arm-computefleet/package.json | 41 +- .../review/arm-computefleet-api.api.md | 58 - .../review/arm-computefleet-models.api.md | 49 +- .../review/arm-computefleet.api.md | 49 +- sdk/computefleet/arm-computefleet/sample.env | 2 +- .../samples-dev/fleetsCreateOrUpdateSample.ts | 449 ------- .../samples-dev/fleetsDeleteSample.ts | 24 - .../samples-dev/fleetsGetSample.ts | 25 - .../fleetsListByResourceGroupSample.ts | 29 - .../fleetsListBySubscriptionSample.ts | 29 - ...fleetsListVirtualMachineScaleSetsSample.ts | 29 - .../samples-dev/fleetsUpdateSample.ts | 353 ------ .../samples-dev/operationsListSample.ts | 29 - .../samples/v1/javascript/README.md | 64 - .../javascript/fleetsCreateOrUpdateSample.js | 449 ------- .../v1/javascript/fleetsDeleteSample.js | 24 - .../samples/v1/javascript/fleetsGetSample.js | 25 - .../fleetsListByResourceGroupSample.js | 29 - .../fleetsListBySubscriptionSample.js | 29 - ...fleetsListVirtualMachineScaleSetsSample.js | 29 - .../v1/javascript/fleetsUpdateSample.js | 353 ------ .../v1/javascript/operationsListSample.js | 29 - .../samples/v1/javascript/package.json | 33 - .../samples/v1/javascript/sample.env | 1 - .../samples/v1/typescript/README.md | 77 -- .../samples/v1/typescript/package.json | 42 - .../samples/v1/typescript/sample.env | 1 - .../src/fleetsCreateOrUpdateSample.ts | 462 ------- .../v1/typescript/src/fleetsDeleteSample.ts | 24 - .../v1/typescript/src/fleetsGetSample.ts | 25 - .../src/fleetsListByResourceGroupSample.ts | 29 - .../src/fleetsListBySubscriptionSample.ts | 29 - ...fleetsListVirtualMachineScaleSetsSample.ts | 32 - .../v1/typescript/src/fleetsUpdateSample.ts | 358 ------ .../v1/typescript/src/operationsListSample.ts | 29 - .../samples/v1/typescript/tsconfig.json | 17 - .../src/api/azureFleetContext.ts | 8 +- .../arm-computefleet/src/api/fleets/index.ts | 111 +- .../src/api/operations/index.ts | 5 +- .../arm-computefleet/src/api/options.ts | 9 +- .../arm-computefleet/src/azureFleetClient.ts | 12 +- .../src/classic/fleets/index.ts | 52 +- .../src/classic/operations/index.ts | 11 +- .../src/helpers/serializerHelpers.ts | 12 +- .../arm-computefleet/src/index.ts | 6 +- .../arm-computefleet/src/models/index.ts | 4 + .../arm-computefleet/src/models/models.ts | 1087 +++++++++++------ .../src/restorePollerHelpers.ts | 26 +- .../src/static-helpers/pagingHelpers.ts | 55 +- .../src/static-helpers/pollingHelpers.ts | 19 +- .../computefleet_operations_test.spec.ts | 176 --- .../test/public/sampleTest.spec.ts | 21 + .../test/public/utils/recordedClient.ts | 14 +- .../tsconfig.browser.config.json | 4 +- .../arm-computefleet/tsconfig.json | 14 +- .../arm-computefleet/tsp-location.yaml | 5 +- .../arm-computefleet/vitest.browser.config.ts | 2 +- .../arm-computefleet/vitest.config.ts | 2 +- sdk/computefleet/ci.mgmt.yml | 2 - 64 files changed, 1131 insertions(+), 3954 deletions(-) delete mode 100644 sdk/computefleet/arm-computefleet/assets.json delete mode 100644 sdk/computefleet/arm-computefleet/review/arm-computefleet-api.api.md delete mode 100644 sdk/computefleet/arm-computefleet/samples-dev/fleetsCreateOrUpdateSample.ts delete mode 100644 sdk/computefleet/arm-computefleet/samples-dev/fleetsDeleteSample.ts delete mode 100644 sdk/computefleet/arm-computefleet/samples-dev/fleetsGetSample.ts delete mode 100644 sdk/computefleet/arm-computefleet/samples-dev/fleetsListByResourceGroupSample.ts delete mode 100644 sdk/computefleet/arm-computefleet/samples-dev/fleetsListBySubscriptionSample.ts delete mode 100644 sdk/computefleet/arm-computefleet/samples-dev/fleetsListVirtualMachineScaleSetsSample.ts delete mode 100644 sdk/computefleet/arm-computefleet/samples-dev/fleetsUpdateSample.ts delete mode 100644 sdk/computefleet/arm-computefleet/samples-dev/operationsListSample.ts delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/javascript/README.md delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsCreateOrUpdateSample.js delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsDeleteSample.js delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsGetSample.js delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsListByResourceGroupSample.js delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsListBySubscriptionSample.js delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsListVirtualMachineScaleSetsSample.js delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsUpdateSample.js delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/javascript/operationsListSample.js delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/javascript/package.json delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/javascript/sample.env delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/typescript/README.md delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/typescript/package.json delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/typescript/sample.env delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsCreateOrUpdateSample.ts delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsDeleteSample.ts delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsGetSample.ts delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsListByResourceGroupSample.ts delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsListBySubscriptionSample.ts delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsListVirtualMachineScaleSetsSample.ts delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsUpdateSample.ts delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/typescript/src/operationsListSample.ts delete mode 100644 sdk/computefleet/arm-computefleet/samples/v1/typescript/tsconfig.json delete mode 100644 sdk/computefleet/arm-computefleet/test/public/computefleet_operations_test.spec.ts create mode 100644 sdk/computefleet/arm-computefleet/test/public/sampleTest.spec.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 5dd9e21f2f51..a2803cc46fbf 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -13659,10 +13659,11 @@ packages: dev: false file:projects/arm-computefleet.tgz: - resolution: {integrity: sha512-KNacYssZkHv1/lsUIsCMJ1wsVZw6ssf4feH9W6Pmnz8R/K0rHDiF7E7ambEa+euPWPT6kHal7J9fjxAA1rOIWg==, tarball: file:projects/arm-computefleet.tgz} + resolution: {integrity: sha512-bQySHfepx+vHo1uG/5w4NcXYEEmAf2XgmJG4C2ZCAjRUv4QcBgV7OUGFWAcs19O75BjrTjfRmL3q70XjTshkxA==, tarball: file:projects/arm-computefleet.tgz} name: '@rush-temp/arm-computefleet' version: 0.0.0 dependencies: + '@microsoft/api-extractor': 7.48.0(@types/node@18.19.67) '@types/node': 18.19.67 '@vitest/browser': 2.1.8(@types/node@18.19.67)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.8) '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8) diff --git a/sdk/computefleet/arm-computefleet/CHANGELOG.md b/sdk/computefleet/arm-computefleet/CHANGELOG.md index 8e12a1068edd..3bda565a5ef9 100644 --- a/sdk/computefleet/arm-computefleet/CHANGELOG.md +++ b/sdk/computefleet/arm-computefleet/CHANGELOG.md @@ -1,15 +1,42 @@ # Release History - -## 1.0.1 (Unreleased) - + +## 2.0.0 (2024-12-11) + ### Features Added -### Breaking Changes + - Added Interface ErrorAdditionalInfo + - Added Interface ErrorDetail + - Added Interface ErrorResponse + - Added Enum KnownVersions + - Enum KnownManagedServiceIdentityType has a new value "SystemAssigned,UserAssigned" + - Enum KnownNetworkApiVersion has a new value v2020_11_01 + - Enum KnownOrigin has a new value "user,system" + - Enum KnownOrigin has a new value system + - Enum KnownOrigin has a new value user + - Enum KnownStorageAccountTypes has a new value Premium_LRS + - Enum KnownStorageAccountTypes has a new value Premium_ZRS + - Enum KnownStorageAccountTypes has a new value PremiumV2_LRS + - Enum KnownStorageAccountTypes has a new value Standard_LRS + - Enum KnownStorageAccountTypes has a new value StandardSSD_LRS + - Enum KnownStorageAccountTypes has a new value StandardSSD_ZRS + - Enum KnownStorageAccountTypes has a new value UltraSSD_LRS -### Bugs Fixed - -### Other Changes +### Breaking Changes + - Enum KnownManagedServiceIdentityType no longer has value SystemAssignedUserAssigned + - Enum KnownNetworkApiVersion no longer has value V20201101 + - Enum KnownOrigin no longer has value System + - Enum KnownOrigin no longer has value User + - Enum KnownOrigin no longer has value UserSystem + - Enum KnownStorageAccountTypes no longer has value PremiumLRS + - Enum KnownStorageAccountTypes no longer has value PremiumV2LRS + - Enum KnownStorageAccountTypes no longer has value PremiumZRS + - Enum KnownStorageAccountTypes no longer has value StandardLRS + - Enum KnownStorageAccountTypes no longer has value StandardSSDLRS + - Enum KnownStorageAccountTypes no longer has value StandardSSDZRS + - Enum KnownStorageAccountTypes no longer has value UltraSSDLRS + + ## 1.0.0 (2024-10-21) ### Features Added diff --git a/sdk/computefleet/arm-computefleet/README.md b/sdk/computefleet/arm-computefleet/README.md index 79b65bb2da61..b239105634fb 100644 --- a/sdk/computefleet/arm-computefleet/README.md +++ b/sdk/computefleet/arm-computefleet/README.md @@ -2,11 +2,13 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureFleet client. -Azure Fleet Service -[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/computefleet/arm-computefleet) | -[Package (NPM)](https://www.npmjs.com/package/@azure/arm-computefleet) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-computefleet?view=azure-node-preview) | + +Key links: + +- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/computefleet/arm-computefleet) +- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-computefleet) +- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-computefleet?view=azure-node-preview) ## Getting started @@ -43,7 +45,6 @@ npm install @azure/identity ``` You will also need to **register a new AAD application and grant access to AzureFleet** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). diff --git a/sdk/computefleet/arm-computefleet/assets.json b/sdk/computefleet/arm-computefleet/assets.json deleted file mode 100644 index 5ed95e23612d..000000000000 --- a/sdk/computefleet/arm-computefleet/assets.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "AssetsRepo": "Azure/azure-sdk-assets", - "AssetsRepoPrefixPath": "js", - "TagPrefix": "js/computefleet/arm-computefleet", - "Tag": "js/computefleet/arm-computefleet_d190f033a9" -} diff --git a/sdk/computefleet/arm-computefleet/eslint.config.mjs b/sdk/computefleet/arm-computefleet/eslint.config.mjs index 91a2b5a50cd0..113bdc3eaf5f 100644 --- a/sdk/computefleet/arm-computefleet/eslint.config.mjs +++ b/sdk/computefleet/arm-computefleet/eslint.config.mjs @@ -1,16 +1,17 @@ import azsdkEslint from "@azure/eslint-plugin-azure-sdk"; -export default azsdkEslint.config([ +export default [ + ...azsdkEslint.configs.recommended, { rules: { "@azure/azure-sdk/ts-modules-only-named": "warn", "@azure/azure-sdk/ts-apiextractor-json-types": "warn", "@azure/azure-sdk/ts-package-json-types": "warn", "@azure/azure-sdk/ts-package-json-engine-is-present": "warn", - "tsdoc/syntax": "warn", "@azure/azure-sdk/ts-package-json-module": "off", "@azure/azure-sdk/ts-package-json-files-required": "off", "@azure/azure-sdk/ts-package-json-main-is-cjs": "off", - }, - }, -]); + "tsdoc/syntax": "warn" + } + } +]; diff --git a/sdk/computefleet/arm-computefleet/package.json b/sdk/computefleet/arm-computefleet/package.json index 17cffd45e82d..4852fe11f7d1 100644 --- a/sdk/computefleet/arm-computefleet/package.json +++ b/sdk/computefleet/arm-computefleet/package.json @@ -1,7 +1,7 @@ { "name": "@azure/arm-computefleet", - "version": "1.0.1", - "description": "Azure Fleet Service", + "version": "2.0.0", + "description": "A generated SDK for AzureFleetClient.", "engines": { "node": ">=18.0.0" }, @@ -46,6 +46,7 @@ "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/computefleet/arm-computefleet/README.md", "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", "//metadata": { "constantPaths": [ @@ -57,7 +58,7 @@ }, "dependencies": { "@azure/core-util": "^1.9.2", - "@azure-rest/core-client": "^2.1.0", + "@azure-rest/core-client": "^2.3.1", "@azure/core-auth": "^1.6.0", "@azure/core-rest-pipeline": "^1.5.0", "@azure/logger": "^1.0.0", @@ -67,6 +68,7 @@ }, "devDependencies": { "dotenv": "^16.0.0", + "@microsoft/api-extractor": "^7.40.3", "@types/node": "^18.0.0", "eslint": "^9.9.0", "typescript": "~5.6.2", @@ -82,78 +84,63 @@ }, "scripts": { "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", - "extract-api": "dev-tool run vendored rimraf review && mkdirp ./review && dev-tool run extract-api", + "extract-api": "dev-tool run vendored rimraf review && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", "pack": "npm pack 2>&1", - "lint": "echo skipped", - "lint:fix": "echo skipped", + "lint": "eslint package.json api-extractor.json src test", + "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser", "unit-test:node": "dev-tool run test:vitest", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", - "build:samples": "dev-tool run typecheck --paths samples-dev/*.ts && dev-tool samples publish -f", - "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"", - "execute:samples": "dev-tool samples run samples-dev", - "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"", + "build:samples": "echo skipped", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ", + "execute:samples": "echo skipped", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ", "generate:client": "echo skipped", "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser", "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test", "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", "test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node", - "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test" - }, - "//sampleConfiguration": { - "productName": "@azure/arm-computefleet", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-computefleet?view=azure-node-preview" + "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test", + "update-snippets": "echo skipped" }, "exports": { "./package.json": "./package.json", ".": { "browser": { - "source": "./src/index.ts", "types": "./dist/browser/index.d.ts", "default": "./dist/browser/index.js" }, "react-native": { - "source": "./src/index.ts", "types": "./dist/react-native/index.d.ts", "default": "./dist/react-native/index.js" }, "import": { - "source": "./src/index.ts", "types": "./dist/esm/index.d.ts", "default": "./dist/esm/index.js" }, "require": { - "source": "./src/index.ts", "types": "./dist/commonjs/index.d.ts", "default": "./dist/commonjs/index.js" } }, "./models": { "browser": { - "source": "./src/models/index.ts", "types": "./dist/browser/models/index.d.ts", "default": "./dist/browser/models/index.js" }, "react-native": { - "source": "./src/models/index.ts", "types": "./dist/react-native/models/index.d.ts", "default": "./dist/react-native/models/index.js" }, "import": { - "source": "./src/models/index.ts", "types": "./dist/esm/models/index.d.ts", "default": "./dist/esm/models/index.js" }, "require": { - "source": "./src/models/index.ts", "types": "./dist/commonjs/models/index.d.ts", "default": "./dist/commonjs/models/index.js" } diff --git a/sdk/computefleet/arm-computefleet/review/arm-computefleet-api.api.md b/sdk/computefleet/arm-computefleet/review/arm-computefleet-api.api.md deleted file mode 100644 index 31312edb9456..000000000000 --- a/sdk/computefleet/arm-computefleet/review/arm-computefleet-api.api.md +++ /dev/null @@ -1,58 +0,0 @@ -## API Report File for "@azure/arm-computefleet" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import { Client } from '@azure-rest/core-client'; -import { ClientOptions } from '@azure-rest/core-client'; -import { HttpResponse } from '@azure-rest/core-client'; -import { OperationOptions } from '@azure-rest/core-client'; -import { OperationState } from '@azure/core-lro'; -import { Paged } from '@azure/core-paging'; -import { PollerLike } from '@azure/core-lro'; -import { RawHttpHeaders } from '@azure/core-rest-pipeline'; -import { RequestParameters } from '@azure-rest/core-client'; -import { StreamableMethod } from '@azure-rest/core-client'; -import { TokenCredential } from '@azure/core-auth'; - -// @public -export interface AzureFleetClientOptionalParams extends ClientOptions { - apiVersion?: string; -} - -// @public (undocumented) -export type AzureFleetContext = Client & { - path: Routes; -}; - -// @public (undocumented) -export function createAzureFleet(credential: TokenCredential, options?: AzureFleetClientOptionalParams): AzureFleetContext; - -// @public -export function fleetsCreateOrUpdate(context: AzureFleetContext, subscriptionId: string, resourceGroupName: string, fleetName: string, resource: Fleet_2, options?: FleetsCreateOrUpdateOptionalParams): PollerLike, Fleet_2>; - -// @public -export function fleetsDelete(context: AzureFleetContext, subscriptionId: string, resourceGroupName: string, fleetName: string, options?: FleetsDeleteOptionalParams): PollerLike, void>; - -// @public -export function fleetsGet(context: AzureFleetContext, subscriptionId: string, resourceGroupName: string, fleetName: string, options?: FleetsGetOptionalParams): Promise; - -// @public -export function fleetsListByResourceGroup(context: AzureFleetContext, subscriptionId: string, resourceGroupName: string, options?: FleetsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - -// @public -export function fleetsListBySubscription(context: AzureFleetContext, subscriptionId: string, options?: FleetsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - -// @public -export function fleetsListVirtualMachineScaleSets(context: AzureFleetContext, subscriptionId: string, resourceGroupName: string, name: string, options?: FleetsListVirtualMachineScaleSetsOptionalParams): PagedAsyncIterableIterator; - -// @public -export function fleetsUpdate(context: AzureFleetContext, subscriptionId: string, resourceGroupName: string, fleetName: string, properties: FleetUpdate_2, options?: FleetsUpdateOptionalParams): PollerLike, Fleet_2>; - -// @public -export function operationsList(context: AzureFleetContext, options?: OperationsListOptionalParams): PagedAsyncIterableIterator; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/sdk/computefleet/arm-computefleet/review/arm-computefleet-models.api.md b/sdk/computefleet/arm-computefleet/review/arm-computefleet-models.api.md index 0a6f8c1f510b..6e03699dcb5d 100644 --- a/sdk/computefleet/arm-computefleet/review/arm-computefleet-models.api.md +++ b/sdk/computefleet/arm-computefleet/review/arm-computefleet-models.api.md @@ -150,6 +150,26 @@ export interface EncryptionIdentity { userAssignedIdentityResourceId?: string; } +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + +// @public +export interface ErrorResponse { + error?: ErrorDetail; +} + // @public export type EvictionPolicy = string; @@ -343,9 +363,9 @@ export enum KnownLocalStorageDiskType { // @public export enum KnownManagedServiceIdentityType { + "SystemAssigned,UserAssigned" = "SystemAssigned,UserAssigned", None = "None", SystemAssigned = "SystemAssigned", - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", UserAssigned = "UserAssigned" } @@ -357,7 +377,7 @@ export enum KnownMode { // @public export enum KnownNetworkApiVersion { - V20201101 = "2020-11-01" + v2020_11_01 = "2020-11-01" } // @public @@ -384,9 +404,9 @@ export enum KnownOperatingSystemTypes { // @public export enum KnownOrigin { - System = "system", - User = "user", - UserSystem = "user,system" + "user,system" = "user,system", + system = "system", + user = "user" } // @public @@ -452,13 +472,18 @@ export enum KnownSpotAllocationStrategy { // @public export enum KnownStorageAccountTypes { - PremiumLRS = "Premium_LRS", - PremiumV2LRS = "PremiumV2_LRS", - PremiumZRS = "Premium_ZRS", - StandardLRS = "Standard_LRS", - StandardSSDLRS = "StandardSSD_LRS", - StandardSSDZRS = "StandardSSD_ZRS", - UltraSSDLRS = "UltraSSD_LRS" + Premium_LRS = "Premium_LRS", + Premium_ZRS = "Premium_ZRS", + PremiumV2_LRS = "PremiumV2_LRS", + Standard_LRS = "Standard_LRS", + StandardSSD_LRS = "StandardSSD_LRS", + StandardSSD_ZRS = "StandardSSD_ZRS", + UltraSSD_LRS = "UltraSSD_LRS" +} + +// @public +export enum KnownVersions { + v2024_11_01 = "2024-11-01" } // @public diff --git a/sdk/computefleet/arm-computefleet/review/arm-computefleet.api.md b/sdk/computefleet/arm-computefleet/review/arm-computefleet.api.md index 88c428d81178..22dd907c43a2 100644 --- a/sdk/computefleet/arm-computefleet/review/arm-computefleet.api.md +++ b/sdk/computefleet/arm-computefleet/review/arm-computefleet.api.md @@ -177,6 +177,26 @@ export interface EncryptionIdentity { userAssignedIdentityResourceId?: string; } +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + +// @public +export interface ErrorResponse { + error?: ErrorDetail; +} + // @public export type EvictionPolicy = string; @@ -412,9 +432,9 @@ export enum KnownLocalStorageDiskType { // @public export enum KnownManagedServiceIdentityType { + "SystemAssigned,UserAssigned" = "SystemAssigned,UserAssigned", None = "None", SystemAssigned = "SystemAssigned", - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", UserAssigned = "UserAssigned" } @@ -426,7 +446,7 @@ export enum KnownMode { // @public export enum KnownNetworkApiVersion { - V20201101 = "2020-11-01" + v2020_11_01 = "2020-11-01" } // @public @@ -453,9 +473,9 @@ export enum KnownOperatingSystemTypes { // @public export enum KnownOrigin { - System = "system", - User = "user", - UserSystem = "user,system" + "user,system" = "user,system", + system = "system", + user = "user" } // @public @@ -521,13 +541,18 @@ export enum KnownSpotAllocationStrategy { // @public export enum KnownStorageAccountTypes { - PremiumLRS = "Premium_LRS", - PremiumV2LRS = "PremiumV2_LRS", - PremiumZRS = "Premium_ZRS", - StandardLRS = "Standard_LRS", - StandardSSDLRS = "StandardSSD_LRS", - StandardSSDZRS = "StandardSSD_ZRS", - UltraSSDLRS = "UltraSSD_LRS" + Premium_LRS = "Premium_LRS", + Premium_ZRS = "Premium_ZRS", + PremiumV2_LRS = "PremiumV2_LRS", + Standard_LRS = "Standard_LRS", + StandardSSD_LRS = "StandardSSD_LRS", + StandardSSD_ZRS = "StandardSSD_ZRS", + UltraSSD_LRS = "UltraSSD_LRS" +} + +// @public +export enum KnownVersions { + v2024_11_01 = "2024-11-01" } // @public diff --git a/sdk/computefleet/arm-computefleet/sample.env b/sdk/computefleet/arm-computefleet/sample.env index efbc7787bd3b..508439fc7d62 100644 --- a/sdk/computefleet/arm-computefleet/sample.env +++ b/sdk/computefleet/arm-computefleet/sample.env @@ -1 +1 @@ -# Feel free to add your own environment variables. +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/computefleet/arm-computefleet/samples-dev/fleetsCreateOrUpdateSample.ts b/sdk/computefleet/arm-computefleet/samples-dev/fleetsCreateOrUpdateSample.ts deleted file mode 100644 index e88938e130a6..000000000000 --- a/sdk/computefleet/arm-computefleet/samples-dev/fleetsCreateOrUpdateSample.ts +++ /dev/null @@ -1,449 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureFleetClient } from "@azure/arm-computefleet"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to create a Fleet - * - * @summary create a Fleet - * x-ms-original-file: 2024-11-01/Fleets_CreateOrUpdate.json - */ -async function fleetsCreateOrUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const result = await client.fleets.createOrUpdate("rgazurefleet", "testFleet", { - properties: { - spotPriorityProfile: { - capacity: 20, - minCapacity: 10, - maxPricePerVM: 0.00865, - evictionPolicy: "Delete", - allocationStrategy: "PriceCapacityOptimized", - maintain: true, - }, - regularPriorityProfile: { - capacity: 20, - minCapacity: 10, - allocationStrategy: "LowestPrice", - }, - vmSizesProfile: [{ name: "Standard_d1_v2", rank: 19225 }], - computeProfile: { - baseVirtualMachineProfile: { - osProfile: { - computerNamePrefix: "o", - adminUsername: "nrgzqciiaaxjrqldbmjbqkyhntp", - adminPassword: "adfbrdxpv", - customData: "xjjib", - windowsConfiguration: { - provisionVMAgent: true, - enableAutomaticUpdates: true, - timeZone: "hlyjiqcfksgrpjrct", - additionalUnattendContent: [ - { - passName: "OobeSystem", - componentName: "Microsoft-Windows-Shell-Setup", - settingName: "AutoLogon", - content: "bubmqbxjkj", - }, - ], - patchSettings: { - patchMode: "Manual", - enableHotpatching: true, - assessmentMode: "ImageDefault", - automaticByPlatformSettings: { - rebootSetting: "Unknown", - bypassPlatformSafetyChecksOnUserSchedule: true, - }, - }, - winRM: { - listeners: [ - { - protocol: "Https", - certificateUrl: "https://myVaultName.vault.azure.net/secrets/myCertName", - }, - ], - }, - enableVMAgentPlatformUpdates: true, - }, - linuxConfiguration: { - disablePasswordAuthentication: true, - ssh: { - publicKeys: [{ path: "kmqz", keyData: "kivgsubusvpprwqaqpjcmhsv" }], - }, - provisionVMAgent: true, - patchSettings: { - patchMode: "ImageDefault", - assessmentMode: "ImageDefault", - automaticByPlatformSettings: { - rebootSetting: "Unknown", - bypassPlatformSafetyChecksOnUserSchedule: true, - }, - }, - enableVMAgentPlatformUpdates: true, - }, - secrets: [ - { - sourceVault: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", - }, - vaultCertificates: [ - { - certificateUrl: "https://myVaultName.vault.azure.net/secrets/myCertName", - certificateStore: "nlxrwavpzhueffxsshlun", - }, - ], - }, - ], - allowExtensionOperations: true, - requireGuestProvisionSignal: true, - }, - storageProfile: { - imageReference: { - publisher: "mqxgwbiyjzmxavhbkd", - offer: "isxgumkarlkomp", - sku: "eojmppqcrnpmxirtp", - version: "wvpcqefgtmqdgltiuz", - sharedGalleryImageId: "kmkgihoxwlawuuhcinfirktdwkmx", - communityGalleryImageId: "vlqe", - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}", - }, - osDisk: { - name: "wfttw", - caching: "None", - writeAcceleratorEnabled: true, - createOption: "FromImage", - diffDiskSettings: { option: "Local", placement: "CacheDisk" }, - diskSizeGB: 14, - osType: "Windows", - image: { - uri: "https://myStorageAccountName.blob.core.windows.net/myContainerName/myVhdName.vhd", - }, - vhdContainers: ["tkzcwddtinkfpnfklatw"], - managedDisk: { - storageAccountType: "Standard_LRS", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - securityProfile: { - securityEncryptionType: "VMGuestStateOnly", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - }, - }, - deleteOption: "Delete", - }, - dataDisks: [ - { - name: "eogiykmdmeikswxmigjws", - lun: 14, - caching: "None", - writeAcceleratorEnabled: true, - createOption: "FromImage", - diskSizeGB: 6, - managedDisk: { - storageAccountType: "Standard_LRS", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - securityProfile: { - securityEncryptionType: "VMGuestStateOnly", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - }, - }, - diskIOPSReadWrite: 27, - diskMBpsReadWrite: 2, - deleteOption: "Delete", - }, - ], - }, - networkProfile: { - healthProbe: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}", - }, - networkInterfaceConfigurations: [ - { - name: "i", - properties: { - primary: true, - enableAcceleratedNetworking: true, - disableTcpStateTracking: true, - enableFpga: true, - networkSecurityGroup: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", - }, - dnsSettings: { dnsServers: ["nxmmfolhclsesu"] }, - ipConfigurations: [ - { - name: "oezqhkidfhyywlfzwuotilrpbqnjg", - properties: { - subnet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}", - }, - primary: true, - publicIPAddressConfiguration: { - name: "fvpqf", - properties: { - idleTimeoutInMinutes: 9, - dnsSettings: { - domainNameLabel: "ukrddzvmorpmfsczjwtbvp", - domainNameLabelScope: "TenantReuse", - }, - ipTags: [ - { - ipTagType: "sddgsoemnzgqizale", - tag: "wufmhrjsakbiaetyara", - }, - ], - publicIPPrefix: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}", - }, - publicIPAddressVersion: "IPv4", - deleteOption: "Delete", - }, - sku: { name: "Basic", tier: "Regional" }, - }, - privateIPAddressVersion: "IPv4", - applicationGatewayBackendAddressPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}", - }, - ], - applicationSecurityGroups: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", - }, - ], - loadBalancerBackendAddressPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}", - }, - ], - loadBalancerInboundNatPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}", - }, - ], - }, - }, - ], - enableIPForwarding: true, - deleteOption: "Delete", - auxiliaryMode: "None", - auxiliarySku: "None", - }, - }, - ], - networkApiVersion: "2020-11-01", - }, - securityProfile: { - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, - encryptionAtHost: true, - securityType: "TrustedLaunch", - encryptionIdentity: { - userAssignedIdentityResourceId: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}", - }, - proxyAgentSettings: { - enabled: true, - mode: "Audit", - keyIncarnationId: 20, - }, - }, - diagnosticsProfile: { - bootDiagnostics: { - enabled: true, - storageUri: "http://myStorageAccountName.blob.core.windows.net", - }, - }, - extensionProfile: { - extensions: [ - { - name: "bndxuxx", - properties: { - forceUpdateTag: "yhgxw", - publisher: "kpxtirxjfprhs", - type: "pgjilctjjwaa", - typeHandlerVersion: "zevivcoilxmbwlrihhhibq", - autoUpgradeMinorVersion: true, - enableAutomaticUpgrade: true, - settings: {}, - protectedSettings: {}, - provisionAfterExtensions: ["nftzosroolbcwmpupujzqwqe"], - suppressFailures: true, - protectedSettingsFromKeyVault: { - secretUrl: "https://myvaultName.vault.azure.net/secrets/secret/mySecretName", - sourceVault: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", - }, - }, - }, - }, - ], - extensionsTimeBudget: "mbhjahtdygwgyszdwjtvlvtgchdwil", - }, - licenseType: "v", - scheduledEventsProfile: { - terminateNotificationProfile: { - notBeforeTimeout: "iljppmmw", - enable: true, - }, - osImageNotificationProfile: { - notBeforeTimeout: "olbpadmevekyczfokodtfprxti", - enable: true, - }, - }, - userData: "s", - capacityReservation: { - capacityReservationGroup: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", - }, - }, - applicationProfile: { - galleryApplications: [ - { - tags: "eyrqjbib", - order: 5, - packageReferenceId: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}", - configurationReference: "ulztmiavpojpbpbddgnuuiimxcpau", - treatFailureAsDeploymentFailure: true, - enableAutomaticUpgrade: true, - }, - ], - }, - hardwareProfile: { - vmSizeProperties: { vCPUsAvailable: 16, vCPUsPerCore: 23 }, - }, - serviceArtifactReference: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}", - }, - securityPostureReference: { - id: "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest", - excludeExtensions: ["{securityPostureVMExtensionName}"], - isOverridable: true, - }, - }, - computeApiVersion: "2023-07-01", - platformFaultDomainCount: 1, - }, - }, - zones: ["zone1", "zone2"], - identity: { - type: "UserAssigned", - userAssignedIdentities: { key9851: {} }, - }, - tags: { key3518: "luvrnuvsgdpbuofdskkcoqhfh" }, - location: "westus", - plan: { - name: "jwgrcrnrtfoxn", - publisher: "iozjbiqqckqm", - product: "cgopbyvdyqikahwyxfpzwaqk", - promotionCode: "naglezezplcaruqogtxnuizslqnnbr", - version: "wa", - }, - }); - console.log(result); -} - -/** - * This sample demonstrates how to create a Fleet - * - * @summary create a Fleet - * x-ms-original-file: 2024-11-01/Fleets_CreateOrUpdate_MinimumSet.json - */ -async function fleetsCreateOrUpdateMinimumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const result = await client.fleets.createOrUpdate("rgazurefleet", "testFleet", { - properties: { - spotPriorityProfile: { - capacity: 2, - minCapacity: 1, - evictionPolicy: "Delete", - allocationStrategy: "PriceCapacityOptimized", - maintain: true, - }, - regularPriorityProfile: { - capacity: 2, - minCapacity: 1, - allocationStrategy: "LowestPrice", - }, - vmSizesProfile: [ - { name: "Standard_D2s_v3" }, - { name: "Standard_D4s_v3" }, - { name: "Standard_E2s_v3" }, - ], - computeProfile: { - baseVirtualMachineProfile: { - storageProfile: { - imageReference: { - publisher: "canonical", - offer: "0001-com-ubuntu-server-focal", - sku: "20_04-lts-gen2", - version: "latest", - }, - osDisk: { - caching: "ReadWrite", - createOption: "FromImage", - osType: "Linux", - managedDisk: { storageAccountType: "Standard_LRS" }, - }, - }, - osProfile: { - computerNamePrefix: "prefix", - adminUsername: "azureuser", - adminPassword: "TestPassword$0", - linuxConfiguration: { disablePasswordAuthentication: false }, - }, - networkProfile: { - networkInterfaceConfigurations: [ - { - name: "vmNameTest", - properties: { - primary: true, - enableAcceleratedNetworking: false, - ipConfigurations: [ - { - name: "vmNameTest", - properties: { - subnet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}", - }, - primary: true, - loadBalancerBackendAddressPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}", - }, - ], - }, - }, - ], - enableIPForwarding: true, - }, - }, - ], - }, - }, - computeApiVersion: "2023-09-01", - platformFaultDomainCount: 1, - }, - }, - tags: { key: "fleets-test" }, - location: "eastus2euap", - }); - console.log(result); -} - -async function main() { - fleetsCreateOrUpdate(); - fleetsCreateOrUpdateMinimumSet(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples-dev/fleetsDeleteSample.ts b/sdk/computefleet/arm-computefleet/samples-dev/fleetsDeleteSample.ts deleted file mode 100644 index ea1cd420bc3a..000000000000 --- a/sdk/computefleet/arm-computefleet/samples-dev/fleetsDeleteSample.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureFleetClient } from "@azure/arm-computefleet"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to delete a Fleet - * - * @summary delete a Fleet - * x-ms-original-file: 2024-11-01/Fleets_Delete.json - */ -async function fleetsDelete() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - await client.fleets.delete("rgazurefleet", "testFleet"); -} - -async function main() { - fleetsDelete(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples-dev/fleetsGetSample.ts b/sdk/computefleet/arm-computefleet/samples-dev/fleetsGetSample.ts deleted file mode 100644 index a4e18baccbc5..000000000000 --- a/sdk/computefleet/arm-computefleet/samples-dev/fleetsGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureFleetClient } from "@azure/arm-computefleet"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a Fleet - * - * @summary get a Fleet - * x-ms-original-file: 2024-11-01/Fleets_Get.json - */ -async function fleetsGet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const result = await client.fleets.get("rgazurefleet", "testFleet"); - console.log(result); -} - -async function main() { - fleetsGet(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples-dev/fleetsListByResourceGroupSample.ts b/sdk/computefleet/arm-computefleet/samples-dev/fleetsListByResourceGroupSample.ts deleted file mode 100644 index f2554d4c183c..000000000000 --- a/sdk/computefleet/arm-computefleet/samples-dev/fleetsListByResourceGroupSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureFleetClient } from "@azure/arm-computefleet"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list Fleet resources by resource group - * - * @summary list Fleet resources by resource group - * x-ms-original-file: 2024-11-01/Fleets_ListByResourceGroup.json - */ -async function fleetsListByResourceGroup() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.fleets.listByResourceGroup("rgazurefleet")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - fleetsListByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples-dev/fleetsListBySubscriptionSample.ts b/sdk/computefleet/arm-computefleet/samples-dev/fleetsListBySubscriptionSample.ts deleted file mode 100644 index fe781d15ecf2..000000000000 --- a/sdk/computefleet/arm-computefleet/samples-dev/fleetsListBySubscriptionSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureFleetClient } from "@azure/arm-computefleet"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list Fleet resources by subscription ID - * - * @summary list Fleet resources by subscription ID - * x-ms-original-file: 2024-11-01/Fleets_ListBySubscription.json - */ -async function fleetsListBySubscription() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.fleets.listBySubscription()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - fleetsListBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples-dev/fleetsListVirtualMachineScaleSetsSample.ts b/sdk/computefleet/arm-computefleet/samples-dev/fleetsListVirtualMachineScaleSetsSample.ts deleted file mode 100644 index 737ca059007a..000000000000 --- a/sdk/computefleet/arm-computefleet/samples-dev/fleetsListVirtualMachineScaleSetsSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureFleetClient } from "@azure/arm-computefleet"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list VirtualMachineScaleSet resources by Fleet - * - * @summary list VirtualMachineScaleSet resources by Fleet - * x-ms-original-file: 2024-11-01/Fleets_ListVirtualMachineScaleSets.json - */ -async function fleetsListVirtualMachineScaleSets() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.fleets.listVirtualMachineScaleSets("rgazurefleet", "myFleet")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - fleetsListVirtualMachineScaleSets(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples-dev/fleetsUpdateSample.ts b/sdk/computefleet/arm-computefleet/samples-dev/fleetsUpdateSample.ts deleted file mode 100644 index eca21aaecf6a..000000000000 --- a/sdk/computefleet/arm-computefleet/samples-dev/fleetsUpdateSample.ts +++ /dev/null @@ -1,353 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureFleetClient } from "@azure/arm-computefleet"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to update a Fleet - * - * @summary update a Fleet - * x-ms-original-file: 2024-11-01/Fleets_Update.json - */ -async function fleetsUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const result = await client.fleets.update("rgazurefleet", "testFleet", { - identity: { type: "UserAssigned", userAssignedIdentities: {} }, - tags: {}, - properties: { - spotPriorityProfile: { - capacity: 20, - minCapacity: 10, - maxPricePerVM: 0.00865, - evictionPolicy: "Delete", - allocationStrategy: "PriceCapacityOptimized", - maintain: true, - }, - regularPriorityProfile: { - capacity: 20, - minCapacity: 10, - allocationStrategy: "LowestPrice", - }, - vmSizesProfile: [{ name: "Standard_d1_v2", rank: 19225 }], - computeProfile: { - baseVirtualMachineProfile: { - osProfile: { - computerNamePrefix: "o", - adminUsername: "nrgzqciiaaxjrqldbmjbqkyhntp", - adminPassword: "adfbrdxpv", - customData: "xjjib", - windowsConfiguration: { - provisionVMAgent: true, - enableAutomaticUpdates: true, - timeZone: "hlyjiqcfksgrpjrct", - additionalUnattendContent: [ - { - passName: "OobeSystem", - componentName: "Microsoft-Windows-Shell-Setup", - settingName: "AutoLogon", - content: "bubmqbxjkj", - }, - ], - patchSettings: { - patchMode: "Manual", - enableHotpatching: true, - assessmentMode: "ImageDefault", - automaticByPlatformSettings: { - rebootSetting: "Unknown", - bypassPlatformSafetyChecksOnUserSchedule: true, - }, - }, - winRM: { - listeners: [ - { - protocol: "Http", - certificateUrl: "https://myVaultName.vault.azure.net/secrets/myCertName", - }, - ], - }, - enableVMAgentPlatformUpdates: true, - }, - linuxConfiguration: { - disablePasswordAuthentication: true, - ssh: { - publicKeys: [{ path: "kmqz", keyData: "kivgsubusvpprwqaqpjcmhsv" }], - }, - provisionVMAgent: true, - patchSettings: { - patchMode: "ImageDefault", - assessmentMode: "ImageDefault", - automaticByPlatformSettings: { - rebootSetting: "Unknown", - bypassPlatformSafetyChecksOnUserSchedule: true, - }, - }, - enableVMAgentPlatformUpdates: true, - }, - secrets: [ - { - sourceVault: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", - }, - vaultCertificates: [ - { - certificateUrl: "https://myVaultName.vault.azure.net/secrets/myCertName", - certificateStore: "nlxrwavpzhueffxsshlun", - }, - ], - }, - ], - allowExtensionOperations: true, - requireGuestProvisionSignal: true, - }, - storageProfile: { - imageReference: { - publisher: "mqxgwbiyjzmxavhbkd", - offer: "isxgumkarlkomp", - sku: "eojmppqcrnpmxirtp", - version: "wvpcqefgtmqdgltiuz", - sharedGalleryImageId: "kmkgihoxwlawuuhcinfirktdwkmx", - communityGalleryImageId: "vlqe", - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}", - }, - osDisk: { - name: "wfttw", - caching: "None", - writeAcceleratorEnabled: true, - createOption: "FromImage", - diffDiskSettings: { option: "Local", placement: "CacheDisk" }, - diskSizeGB: 14, - osType: "Windows", - image: { - uri: "https://myStorageAccountName.blob.core.windows.net/myContainerName/myVhdName.vhd", - }, - vhdContainers: ["tkzcwddtinkfpnfklatw"], - managedDisk: { - storageAccountType: "Standard_LRS", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - securityProfile: { - securityEncryptionType: "VMGuestStateOnly", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - }, - }, - deleteOption: "Delete", - }, - dataDisks: [ - { - name: "eogiykmdmeikswxmigjws", - lun: 14, - caching: "None", - writeAcceleratorEnabled: true, - createOption: "FromImage", - diskSizeGB: 6, - managedDisk: { - storageAccountType: "Standard_LRS", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - securityProfile: { - securityEncryptionType: "VMGuestStateOnly", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - }, - }, - diskIOPSReadWrite: 27, - diskMBpsReadWrite: 2, - deleteOption: "Delete", - }, - ], - }, - networkProfile: { - healthProbe: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}", - }, - networkInterfaceConfigurations: [ - { - name: "i", - properties: { - primary: true, - enableAcceleratedNetworking: true, - disableTcpStateTracking: true, - enableFpga: true, - networkSecurityGroup: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", - }, - dnsSettings: { dnsServers: ["nxmmfolhclsesu"] }, - ipConfigurations: [ - { - name: "oezqhkidfhyywlfzwuotilrpbqnjg", - properties: { - subnet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}", - }, - primary: true, - publicIPAddressConfiguration: { - name: "fvpqf", - properties: { - idleTimeoutInMinutes: 9, - dnsSettings: { - domainNameLabel: "ukrddzvmorpmfsczjwtbvp", - domainNameLabelScope: "TenantReuse", - }, - ipTags: [ - { - ipTagType: "sddgsoemnzgqizale", - tag: "wufmhrjsakbiaetyara", - }, - ], - publicIPPrefix: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}", - }, - publicIPAddressVersion: "IPv4", - deleteOption: "Delete", - }, - sku: { name: "Basic", tier: "Regional" }, - }, - privateIPAddressVersion: "IPv4", - applicationGatewayBackendAddressPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}", - }, - ], - applicationSecurityGroups: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", - }, - ], - loadBalancerBackendAddressPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}", - }, - ], - loadBalancerInboundNatPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}", - }, - ], - }, - }, - ], - enableIPForwarding: true, - deleteOption: "Delete", - auxiliaryMode: "None", - auxiliarySku: "None", - }, - }, - ], - networkApiVersion: "2020-11-01", - }, - securityProfile: { - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, - encryptionAtHost: true, - securityType: "TrustedLaunch", - encryptionIdentity: { - userAssignedIdentityResourceId: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}", - }, - proxyAgentSettings: { - enabled: true, - mode: "Audit", - keyIncarnationId: 20, - }, - }, - diagnosticsProfile: { - bootDiagnostics: { - enabled: true, - storageUri: "http://myStorageAccountName.blob.core.windows.net", - }, - }, - extensionProfile: { - extensions: [ - { - name: "bndxuxx", - properties: { - forceUpdateTag: "yhgxw", - publisher: "kpxtirxjfprhs", - type: "pgjilctjjwaa", - typeHandlerVersion: "zevivcoilxmbwlrihhhibq", - autoUpgradeMinorVersion: true, - enableAutomaticUpgrade: true, - settings: {}, - protectedSettings: {}, - provisionAfterExtensions: ["nftzosroolbcwmpupujzqwqe"], - suppressFailures: true, - protectedSettingsFromKeyVault: { - secretUrl: "https://myVaultName.vault.azure.net/secrets/secret/mySecretName", - sourceVault: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", - }, - }, - }, - }, - ], - extensionsTimeBudget: "mbhjahtdygwgyszdwjtvlvtgchdwil", - }, - licenseType: "v", - scheduledEventsProfile: { - terminateNotificationProfile: { - notBeforeTimeout: "iljppmmw", - enable: true, - }, - osImageNotificationProfile: { - notBeforeTimeout: "olbpadmevekyczfokodtfprxti", - enable: true, - }, - }, - userData: "s", - capacityReservation: { - capacityReservationGroup: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", - }, - }, - applicationProfile: { - galleryApplications: [ - { - tags: "eyrqjbib", - order: 5, - packageReferenceId: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}", - configurationReference: "ulztmiavpojpbpbddgnuuiimxcpau", - treatFailureAsDeploymentFailure: true, - enableAutomaticUpgrade: true, - }, - ], - }, - hardwareProfile: { - vmSizeProperties: { vCPUsAvailable: 16, vCPUsPerCore: 23 }, - }, - serviceArtifactReference: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}", - }, - securityPostureReference: { - id: "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest", - excludeExtensions: ["{securityPostureVMExtensionName}"], - isOverridable: true, - }, - }, - computeApiVersion: "2023-07-01", - platformFaultDomainCount: 1, - }, - }, - plan: { - name: "jwgrcrnrtfoxn", - publisher: "iozjbiqqckqm", - product: "cgopbyvdyqikahwyxfpzwaqk", - promotionCode: "naglezezplcaruqogtxnuizslqnnbr", - version: "wa", - }, - }); - console.log(result); -} - -async function main() { - fleetsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples-dev/operationsListSample.ts b/sdk/computefleet/arm-computefleet/samples-dev/operationsListSample.ts deleted file mode 100644 index 73943c59772a..000000000000 --- a/sdk/computefleet/arm-computefleet/samples-dev/operationsListSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureFleetClient } from "@azure/arm-computefleet"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list the operations for the provider - * - * @summary list the operations for the provider - * x-ms-original-file: 2024-11-01/Operations_List.json - */ -async function operationsList() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-00000000000"; - const client = new AzureFleetClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - operationsList(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples/v1/javascript/README.md b/sdk/computefleet/arm-computefleet/samples/v1/javascript/README.md deleted file mode 100644 index ba3547f0f4c0..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/javascript/README.md +++ /dev/null @@ -1,64 +0,0 @@ -# @azure/arm-computefleet client library samples for JavaScript - -These sample programs show how to use the JavaScript client libraries for @azure/arm-computefleet in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| [fleetsCreateOrUpdateSample.js][fleetscreateorupdatesample] | create a Fleet x-ms-original-file: 2024-11-01/Fleets_CreateOrUpdate.json | -| [fleetsDeleteSample.js][fleetsdeletesample] | delete a Fleet x-ms-original-file: 2024-11-01/Fleets_Delete.json | -| [fleetsGetSample.js][fleetsgetsample] | get a Fleet x-ms-original-file: 2024-11-01/Fleets_Get.json | -| [fleetsListByResourceGroupSample.js][fleetslistbyresourcegroupsample] | list Fleet resources by resource group x-ms-original-file: 2024-11-01/Fleets_ListByResourceGroup.json | -| [fleetsListBySubscriptionSample.js][fleetslistbysubscriptionsample] | list Fleet resources by subscription ID x-ms-original-file: 2024-11-01/Fleets_ListBySubscription.json | -| [fleetsListVirtualMachineScaleSetsSample.js][fleetslistvirtualmachinescalesetssample] | list VirtualMachineScaleSet resources by Fleet x-ms-original-file: 2024-11-01/Fleets_ListVirtualMachineScaleSets.json | -| [fleetsUpdateSample.js][fleetsupdatesample] | update a Fleet x-ms-original-file: 2024-11-01/Fleets_Update.json | -| [operationsListSample.js][operationslistsample] | list the operations for the provider x-ms-original-file: 2024-11-01/Operations_List.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node fleetsCreateOrUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx dev-tool run vendored cross-env node fleetsCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[fleetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsCreateOrUpdateSample.js -[fleetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsDeleteSample.js -[fleetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsGetSample.js -[fleetslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsListByResourceGroupSample.js -[fleetslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsListBySubscriptionSample.js -[fleetslistvirtualmachinescalesetssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsListVirtualMachineScaleSetsSample.js -[fleetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsUpdateSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/computefleet/arm-computefleet/samples/v1/javascript/operationsListSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-computefleet?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/computefleet/arm-computefleet/README.md diff --git a/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsCreateOrUpdateSample.js b/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsCreateOrUpdateSample.js deleted file mode 100644 index d539be964959..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsCreateOrUpdateSample.js +++ /dev/null @@ -1,449 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureFleetClient } = require("@azure/arm-computefleet"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to create a Fleet - * - * @summary create a Fleet - * x-ms-original-file: 2024-11-01/Fleets_CreateOrUpdate.json - */ -async function fleetsCreateOrUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const result = await client.fleets.createOrUpdate("rgazurefleet", "testFleet", { - properties: { - spotPriorityProfile: { - capacity: 20, - minCapacity: 10, - maxPricePerVM: 0.00865, - evictionPolicy: "Delete", - allocationStrategy: "PriceCapacityOptimized", - maintain: true, - }, - regularPriorityProfile: { - capacity: 20, - minCapacity: 10, - allocationStrategy: "LowestPrice", - }, - vmSizesProfile: [{ name: "Standard_d1_v2", rank: 19225 }], - computeProfile: { - baseVirtualMachineProfile: { - osProfile: { - computerNamePrefix: "o", - adminUsername: "nrgzqciiaaxjrqldbmjbqkyhntp", - adminPassword: "adfbrdxpv", - customData: "xjjib", - windowsConfiguration: { - provisionVMAgent: true, - enableAutomaticUpdates: true, - timeZone: "hlyjiqcfksgrpjrct", - additionalUnattendContent: [ - { - passName: "OobeSystem", - componentName: "Microsoft-Windows-Shell-Setup", - settingName: "AutoLogon", - content: "bubmqbxjkj", - }, - ], - patchSettings: { - patchMode: "Manual", - enableHotpatching: true, - assessmentMode: "ImageDefault", - automaticByPlatformSettings: { - rebootSetting: "Unknown", - bypassPlatformSafetyChecksOnUserSchedule: true, - }, - }, - winRM: { - listeners: [ - { - protocol: "Https", - certificateUrl: "https://myVaultName.vault.azure.net/secrets/myCertName", - }, - ], - }, - enableVMAgentPlatformUpdates: true, - }, - linuxConfiguration: { - disablePasswordAuthentication: true, - ssh: { - publicKeys: [{ path: "kmqz", keyData: "kivgsubusvpprwqaqpjcmhsv" }], - }, - provisionVMAgent: true, - patchSettings: { - patchMode: "ImageDefault", - assessmentMode: "ImageDefault", - automaticByPlatformSettings: { - rebootSetting: "Unknown", - bypassPlatformSafetyChecksOnUserSchedule: true, - }, - }, - enableVMAgentPlatformUpdates: true, - }, - secrets: [ - { - sourceVault: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", - }, - vaultCertificates: [ - { - certificateUrl: "https://myVaultName.vault.azure.net/secrets/myCertName", - certificateStore: "nlxrwavpzhueffxsshlun", - }, - ], - }, - ], - allowExtensionOperations: true, - requireGuestProvisionSignal: true, - }, - storageProfile: { - imageReference: { - publisher: "mqxgwbiyjzmxavhbkd", - offer: "isxgumkarlkomp", - sku: "eojmppqcrnpmxirtp", - version: "wvpcqefgtmqdgltiuz", - sharedGalleryImageId: "kmkgihoxwlawuuhcinfirktdwkmx", - communityGalleryImageId: "vlqe", - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}", - }, - osDisk: { - name: "wfttw", - caching: "None", - writeAcceleratorEnabled: true, - createOption: "FromImage", - diffDiskSettings: { option: "Local", placement: "CacheDisk" }, - diskSizeGB: 14, - osType: "Windows", - image: { - uri: "https://myStorageAccountName.blob.core.windows.net/myContainerName/myVhdName.vhd", - }, - vhdContainers: ["tkzcwddtinkfpnfklatw"], - managedDisk: { - storageAccountType: "Standard_LRS", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - securityProfile: { - securityEncryptionType: "VMGuestStateOnly", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - }, - }, - deleteOption: "Delete", - }, - dataDisks: [ - { - name: "eogiykmdmeikswxmigjws", - lun: 14, - caching: "None", - writeAcceleratorEnabled: true, - createOption: "FromImage", - diskSizeGB: 6, - managedDisk: { - storageAccountType: "Standard_LRS", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - securityProfile: { - securityEncryptionType: "VMGuestStateOnly", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - }, - }, - diskIOPSReadWrite: 27, - diskMBpsReadWrite: 2, - deleteOption: "Delete", - }, - ], - }, - networkProfile: { - healthProbe: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}", - }, - networkInterfaceConfigurations: [ - { - name: "i", - properties: { - primary: true, - enableAcceleratedNetworking: true, - disableTcpStateTracking: true, - enableFpga: true, - networkSecurityGroup: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", - }, - dnsSettings: { dnsServers: ["nxmmfolhclsesu"] }, - ipConfigurations: [ - { - name: "oezqhkidfhyywlfzwuotilrpbqnjg", - properties: { - subnet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}", - }, - primary: true, - publicIPAddressConfiguration: { - name: "fvpqf", - properties: { - idleTimeoutInMinutes: 9, - dnsSettings: { - domainNameLabel: "ukrddzvmorpmfsczjwtbvp", - domainNameLabelScope: "TenantReuse", - }, - ipTags: [ - { - ipTagType: "sddgsoemnzgqizale", - tag: "wufmhrjsakbiaetyara", - }, - ], - publicIPPrefix: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}", - }, - publicIPAddressVersion: "IPv4", - deleteOption: "Delete", - }, - sku: { name: "Basic", tier: "Regional" }, - }, - privateIPAddressVersion: "IPv4", - applicationGatewayBackendAddressPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}", - }, - ], - applicationSecurityGroups: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", - }, - ], - loadBalancerBackendAddressPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}", - }, - ], - loadBalancerInboundNatPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}", - }, - ], - }, - }, - ], - enableIPForwarding: true, - deleteOption: "Delete", - auxiliaryMode: "None", - auxiliarySku: "None", - }, - }, - ], - networkApiVersion: "2020-11-01", - }, - securityProfile: { - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, - encryptionAtHost: true, - securityType: "TrustedLaunch", - encryptionIdentity: { - userAssignedIdentityResourceId: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}", - }, - proxyAgentSettings: { - enabled: true, - mode: "Audit", - keyIncarnationId: 20, - }, - }, - diagnosticsProfile: { - bootDiagnostics: { - enabled: true, - storageUri: "http://myStorageAccountName.blob.core.windows.net", - }, - }, - extensionProfile: { - extensions: [ - { - name: "bndxuxx", - properties: { - forceUpdateTag: "yhgxw", - publisher: "kpxtirxjfprhs", - type: "pgjilctjjwaa", - typeHandlerVersion: "zevivcoilxmbwlrihhhibq", - autoUpgradeMinorVersion: true, - enableAutomaticUpgrade: true, - settings: {}, - protectedSettings: {}, - provisionAfterExtensions: ["nftzosroolbcwmpupujzqwqe"], - suppressFailures: true, - protectedSettingsFromKeyVault: { - secretUrl: "https://myvaultName.vault.azure.net/secrets/secret/mySecretName", - sourceVault: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", - }, - }, - }, - }, - ], - extensionsTimeBudget: "mbhjahtdygwgyszdwjtvlvtgchdwil", - }, - licenseType: "v", - scheduledEventsProfile: { - terminateNotificationProfile: { - notBeforeTimeout: "iljppmmw", - enable: true, - }, - osImageNotificationProfile: { - notBeforeTimeout: "olbpadmevekyczfokodtfprxti", - enable: true, - }, - }, - userData: "s", - capacityReservation: { - capacityReservationGroup: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", - }, - }, - applicationProfile: { - galleryApplications: [ - { - tags: "eyrqjbib", - order: 5, - packageReferenceId: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}", - configurationReference: "ulztmiavpojpbpbddgnuuiimxcpau", - treatFailureAsDeploymentFailure: true, - enableAutomaticUpgrade: true, - }, - ], - }, - hardwareProfile: { - vmSizeProperties: { vCPUsAvailable: 16, vCPUsPerCore: 23 }, - }, - serviceArtifactReference: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}", - }, - securityPostureReference: { - id: "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest", - excludeExtensions: ["{securityPostureVMExtensionName}"], - isOverridable: true, - }, - }, - computeApiVersion: "2023-07-01", - platformFaultDomainCount: 1, - }, - }, - zones: ["zone1", "zone2"], - identity: { - type: "UserAssigned", - userAssignedIdentities: { key9851: {} }, - }, - tags: { key3518: "luvrnuvsgdpbuofdskkcoqhfh" }, - location: "westus", - plan: { - name: "jwgrcrnrtfoxn", - publisher: "iozjbiqqckqm", - product: "cgopbyvdyqikahwyxfpzwaqk", - promotionCode: "naglezezplcaruqogtxnuizslqnnbr", - version: "wa", - }, - }); - console.log(result); -} - -/** - * This sample demonstrates how to create a Fleet - * - * @summary create a Fleet - * x-ms-original-file: 2024-11-01/Fleets_CreateOrUpdate_MinimumSet.json - */ -async function fleetsCreateOrUpdateMinimumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const result = await client.fleets.createOrUpdate("rgazurefleet", "testFleet", { - properties: { - spotPriorityProfile: { - capacity: 2, - minCapacity: 1, - evictionPolicy: "Delete", - allocationStrategy: "PriceCapacityOptimized", - maintain: true, - }, - regularPriorityProfile: { - capacity: 2, - minCapacity: 1, - allocationStrategy: "LowestPrice", - }, - vmSizesProfile: [ - { name: "Standard_D2s_v3" }, - { name: "Standard_D4s_v3" }, - { name: "Standard_E2s_v3" }, - ], - computeProfile: { - baseVirtualMachineProfile: { - storageProfile: { - imageReference: { - publisher: "canonical", - offer: "0001-com-ubuntu-server-focal", - sku: "20_04-lts-gen2", - version: "latest", - }, - osDisk: { - caching: "ReadWrite", - createOption: "FromImage", - osType: "Linux", - managedDisk: { storageAccountType: "Standard_LRS" }, - }, - }, - osProfile: { - computerNamePrefix: "prefix", - adminUsername: "azureuser", - adminPassword: "TestPassword$0", - linuxConfiguration: { disablePasswordAuthentication: false }, - }, - networkProfile: { - networkInterfaceConfigurations: [ - { - name: "vmNameTest", - properties: { - primary: true, - enableAcceleratedNetworking: false, - ipConfigurations: [ - { - name: "vmNameTest", - properties: { - subnet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}", - }, - primary: true, - loadBalancerBackendAddressPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}", - }, - ], - }, - }, - ], - enableIPForwarding: true, - }, - }, - ], - }, - }, - computeApiVersion: "2023-09-01", - platformFaultDomainCount: 1, - }, - }, - tags: { key: "fleets-test" }, - location: "eastus2euap", - }); - console.log(result); -} - -async function main() { - fleetsCreateOrUpdate(); - fleetsCreateOrUpdateMinimumSet(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsDeleteSample.js b/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsDeleteSample.js deleted file mode 100644 index 01a14231eec9..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsDeleteSample.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureFleetClient } = require("@azure/arm-computefleet"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to delete a Fleet - * - * @summary delete a Fleet - * x-ms-original-file: 2024-11-01/Fleets_Delete.json - */ -async function fleetsDelete() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - await client.fleets.delete("rgazurefleet", "testFleet"); -} - -async function main() { - fleetsDelete(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsGetSample.js b/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsGetSample.js deleted file mode 100644 index 147910874d74..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsGetSample.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureFleetClient } = require("@azure/arm-computefleet"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to get a Fleet - * - * @summary get a Fleet - * x-ms-original-file: 2024-11-01/Fleets_Get.json - */ -async function fleetsGet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const result = await client.fleets.get("rgazurefleet", "testFleet"); - console.log(result); -} - -async function main() { - fleetsGet(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsListByResourceGroupSample.js b/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsListByResourceGroupSample.js deleted file mode 100644 index c67b316f73d1..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsListByResourceGroupSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureFleetClient } = require("@azure/arm-computefleet"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list Fleet resources by resource group - * - * @summary list Fleet resources by resource group - * x-ms-original-file: 2024-11-01/Fleets_ListByResourceGroup.json - */ -async function fleetsListByResourceGroup() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.fleets.listByResourceGroup("rgazurefleet")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - fleetsListByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsListBySubscriptionSample.js b/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsListBySubscriptionSample.js deleted file mode 100644 index 9e5df9d0d10c..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsListBySubscriptionSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureFleetClient } = require("@azure/arm-computefleet"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list Fleet resources by subscription ID - * - * @summary list Fleet resources by subscription ID - * x-ms-original-file: 2024-11-01/Fleets_ListBySubscription.json - */ -async function fleetsListBySubscription() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.fleets.listBySubscription()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - fleetsListBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsListVirtualMachineScaleSetsSample.js b/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsListVirtualMachineScaleSetsSample.js deleted file mode 100644 index b08be0d0b00e..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsListVirtualMachineScaleSetsSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureFleetClient } = require("@azure/arm-computefleet"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list VirtualMachineScaleSet resources by Fleet - * - * @summary list VirtualMachineScaleSet resources by Fleet - * x-ms-original-file: 2024-11-01/Fleets_ListVirtualMachineScaleSets.json - */ -async function fleetsListVirtualMachineScaleSets() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.fleets.listVirtualMachineScaleSets("rgazurefleet", "myFleet")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - fleetsListVirtualMachineScaleSets(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsUpdateSample.js b/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsUpdateSample.js deleted file mode 100644 index f136d7c94f28..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/javascript/fleetsUpdateSample.js +++ /dev/null @@ -1,353 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureFleetClient } = require("@azure/arm-computefleet"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to update a Fleet - * - * @summary update a Fleet - * x-ms-original-file: 2024-11-01/Fleets_Update.json - */ -async function fleetsUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const result = await client.fleets.update("rgazurefleet", "testFleet", { - identity: { type: "UserAssigned", userAssignedIdentities: {} }, - tags: {}, - properties: { - spotPriorityProfile: { - capacity: 20, - minCapacity: 10, - maxPricePerVM: 0.00865, - evictionPolicy: "Delete", - allocationStrategy: "PriceCapacityOptimized", - maintain: true, - }, - regularPriorityProfile: { - capacity: 20, - minCapacity: 10, - allocationStrategy: "LowestPrice", - }, - vmSizesProfile: [{ name: "Standard_d1_v2", rank: 19225 }], - computeProfile: { - baseVirtualMachineProfile: { - osProfile: { - computerNamePrefix: "o", - adminUsername: "nrgzqciiaaxjrqldbmjbqkyhntp", - adminPassword: "adfbrdxpv", - customData: "xjjib", - windowsConfiguration: { - provisionVMAgent: true, - enableAutomaticUpdates: true, - timeZone: "hlyjiqcfksgrpjrct", - additionalUnattendContent: [ - { - passName: "OobeSystem", - componentName: "Microsoft-Windows-Shell-Setup", - settingName: "AutoLogon", - content: "bubmqbxjkj", - }, - ], - patchSettings: { - patchMode: "Manual", - enableHotpatching: true, - assessmentMode: "ImageDefault", - automaticByPlatformSettings: { - rebootSetting: "Unknown", - bypassPlatformSafetyChecksOnUserSchedule: true, - }, - }, - winRM: { - listeners: [ - { - protocol: "Http", - certificateUrl: "https://myVaultName.vault.azure.net/secrets/myCertName", - }, - ], - }, - enableVMAgentPlatformUpdates: true, - }, - linuxConfiguration: { - disablePasswordAuthentication: true, - ssh: { - publicKeys: [{ path: "kmqz", keyData: "kivgsubusvpprwqaqpjcmhsv" }], - }, - provisionVMAgent: true, - patchSettings: { - patchMode: "ImageDefault", - assessmentMode: "ImageDefault", - automaticByPlatformSettings: { - rebootSetting: "Unknown", - bypassPlatformSafetyChecksOnUserSchedule: true, - }, - }, - enableVMAgentPlatformUpdates: true, - }, - secrets: [ - { - sourceVault: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", - }, - vaultCertificates: [ - { - certificateUrl: "https://myVaultName.vault.azure.net/secrets/myCertName", - certificateStore: "nlxrwavpzhueffxsshlun", - }, - ], - }, - ], - allowExtensionOperations: true, - requireGuestProvisionSignal: true, - }, - storageProfile: { - imageReference: { - publisher: "mqxgwbiyjzmxavhbkd", - offer: "isxgumkarlkomp", - sku: "eojmppqcrnpmxirtp", - version: "wvpcqefgtmqdgltiuz", - sharedGalleryImageId: "kmkgihoxwlawuuhcinfirktdwkmx", - communityGalleryImageId: "vlqe", - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}", - }, - osDisk: { - name: "wfttw", - caching: "None", - writeAcceleratorEnabled: true, - createOption: "FromImage", - diffDiskSettings: { option: "Local", placement: "CacheDisk" }, - diskSizeGB: 14, - osType: "Windows", - image: { - uri: "https://myStorageAccountName.blob.core.windows.net/myContainerName/myVhdName.vhd", - }, - vhdContainers: ["tkzcwddtinkfpnfklatw"], - managedDisk: { - storageAccountType: "Standard_LRS", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - securityProfile: { - securityEncryptionType: "VMGuestStateOnly", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - }, - }, - deleteOption: "Delete", - }, - dataDisks: [ - { - name: "eogiykmdmeikswxmigjws", - lun: 14, - caching: "None", - writeAcceleratorEnabled: true, - createOption: "FromImage", - diskSizeGB: 6, - managedDisk: { - storageAccountType: "Standard_LRS", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - securityProfile: { - securityEncryptionType: "VMGuestStateOnly", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - }, - }, - diskIOPSReadWrite: 27, - diskMBpsReadWrite: 2, - deleteOption: "Delete", - }, - ], - }, - networkProfile: { - healthProbe: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}", - }, - networkInterfaceConfigurations: [ - { - name: "i", - properties: { - primary: true, - enableAcceleratedNetworking: true, - disableTcpStateTracking: true, - enableFpga: true, - networkSecurityGroup: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", - }, - dnsSettings: { dnsServers: ["nxmmfolhclsesu"] }, - ipConfigurations: [ - { - name: "oezqhkidfhyywlfzwuotilrpbqnjg", - properties: { - subnet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}", - }, - primary: true, - publicIPAddressConfiguration: { - name: "fvpqf", - properties: { - idleTimeoutInMinutes: 9, - dnsSettings: { - domainNameLabel: "ukrddzvmorpmfsczjwtbvp", - domainNameLabelScope: "TenantReuse", - }, - ipTags: [ - { - ipTagType: "sddgsoemnzgqizale", - tag: "wufmhrjsakbiaetyara", - }, - ], - publicIPPrefix: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}", - }, - publicIPAddressVersion: "IPv4", - deleteOption: "Delete", - }, - sku: { name: "Basic", tier: "Regional" }, - }, - privateIPAddressVersion: "IPv4", - applicationGatewayBackendAddressPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}", - }, - ], - applicationSecurityGroups: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", - }, - ], - loadBalancerBackendAddressPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}", - }, - ], - loadBalancerInboundNatPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}", - }, - ], - }, - }, - ], - enableIPForwarding: true, - deleteOption: "Delete", - auxiliaryMode: "None", - auxiliarySku: "None", - }, - }, - ], - networkApiVersion: "2020-11-01", - }, - securityProfile: { - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, - encryptionAtHost: true, - securityType: "TrustedLaunch", - encryptionIdentity: { - userAssignedIdentityResourceId: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}", - }, - proxyAgentSettings: { - enabled: true, - mode: "Audit", - keyIncarnationId: 20, - }, - }, - diagnosticsProfile: { - bootDiagnostics: { - enabled: true, - storageUri: "http://myStorageAccountName.blob.core.windows.net", - }, - }, - extensionProfile: { - extensions: [ - { - name: "bndxuxx", - properties: { - forceUpdateTag: "yhgxw", - publisher: "kpxtirxjfprhs", - type: "pgjilctjjwaa", - typeHandlerVersion: "zevivcoilxmbwlrihhhibq", - autoUpgradeMinorVersion: true, - enableAutomaticUpgrade: true, - settings: {}, - protectedSettings: {}, - provisionAfterExtensions: ["nftzosroolbcwmpupujzqwqe"], - suppressFailures: true, - protectedSettingsFromKeyVault: { - secretUrl: "https://myVaultName.vault.azure.net/secrets/secret/mySecretName", - sourceVault: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", - }, - }, - }, - }, - ], - extensionsTimeBudget: "mbhjahtdygwgyszdwjtvlvtgchdwil", - }, - licenseType: "v", - scheduledEventsProfile: { - terminateNotificationProfile: { - notBeforeTimeout: "iljppmmw", - enable: true, - }, - osImageNotificationProfile: { - notBeforeTimeout: "olbpadmevekyczfokodtfprxti", - enable: true, - }, - }, - userData: "s", - capacityReservation: { - capacityReservationGroup: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", - }, - }, - applicationProfile: { - galleryApplications: [ - { - tags: "eyrqjbib", - order: 5, - packageReferenceId: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}", - configurationReference: "ulztmiavpojpbpbddgnuuiimxcpau", - treatFailureAsDeploymentFailure: true, - enableAutomaticUpgrade: true, - }, - ], - }, - hardwareProfile: { - vmSizeProperties: { vCPUsAvailable: 16, vCPUsPerCore: 23 }, - }, - serviceArtifactReference: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}", - }, - securityPostureReference: { - id: "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest", - excludeExtensions: ["{securityPostureVMExtensionName}"], - isOverridable: true, - }, - }, - computeApiVersion: "2023-07-01", - platformFaultDomainCount: 1, - }, - }, - plan: { - name: "jwgrcrnrtfoxn", - publisher: "iozjbiqqckqm", - product: "cgopbyvdyqikahwyxfpzwaqk", - promotionCode: "naglezezplcaruqogtxnuizslqnnbr", - version: "wa", - }, - }); - console.log(result); -} - -async function main() { - fleetsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples/v1/javascript/operationsListSample.js b/sdk/computefleet/arm-computefleet/samples/v1/javascript/operationsListSample.js deleted file mode 100644 index f1beeb87f55b..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/javascript/operationsListSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureFleetClient } = require("@azure/arm-computefleet"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list the operations for the provider - * - * @summary list the operations for the provider - * x-ms-original-file: 2024-11-01/Operations_List.json - */ -async function operationsList() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-00000000000"; - const client = new AzureFleetClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - operationsList(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples/v1/javascript/package.json b/sdk/computefleet/arm-computefleet/samples/v1/javascript/package.json deleted file mode 100644 index bd291fc6653e..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/javascript/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "@azure-samples/arm-computefleet-js", - "private": true, - "version": "1.0.0", - "description": "@azure/arm-computefleet client library samples for JavaScript", - "engines": { - "node": ">=18.0.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/computefleet/arm-computefleet" - }, - "keywords": [ - "node", - "azure", - "cloud", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/computefleet/arm-computefleet", - "dependencies": { - "@azure/arm-computefleet": "latest", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - } -} diff --git a/sdk/computefleet/arm-computefleet/samples/v1/javascript/sample.env b/sdk/computefleet/arm-computefleet/samples/v1/javascript/sample.env deleted file mode 100644 index efbc7787bd3b..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/javascript/sample.env +++ /dev/null @@ -1 +0,0 @@ -# Feel free to add your own environment variables. diff --git a/sdk/computefleet/arm-computefleet/samples/v1/typescript/README.md b/sdk/computefleet/arm-computefleet/samples/v1/typescript/README.md deleted file mode 100644 index 27f6277653f7..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/typescript/README.md +++ /dev/null @@ -1,77 +0,0 @@ -# @azure/arm-computefleet client library samples for TypeScript - -These sample programs show how to use the TypeScript client libraries for @azure/arm-computefleet in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| [fleetsCreateOrUpdateSample.ts][fleetscreateorupdatesample] | create a Fleet x-ms-original-file: 2024-11-01/Fleets_CreateOrUpdate.json | -| [fleetsDeleteSample.ts][fleetsdeletesample] | delete a Fleet x-ms-original-file: 2024-11-01/Fleets_Delete.json | -| [fleetsGetSample.ts][fleetsgetsample] | get a Fleet x-ms-original-file: 2024-11-01/Fleets_Get.json | -| [fleetsListByResourceGroupSample.ts][fleetslistbyresourcegroupsample] | list Fleet resources by resource group x-ms-original-file: 2024-11-01/Fleets_ListByResourceGroup.json | -| [fleetsListBySubscriptionSample.ts][fleetslistbysubscriptionsample] | list Fleet resources by subscription ID x-ms-original-file: 2024-11-01/Fleets_ListBySubscription.json | -| [fleetsListVirtualMachineScaleSetsSample.ts][fleetslistvirtualmachinescalesetssample] | list VirtualMachineScaleSet resources by Fleet x-ms-original-file: 2024-11-01/Fleets_ListVirtualMachineScaleSets.json | -| [fleetsUpdateSample.ts][fleetsupdatesample] | update a Fleet x-ms-original-file: 2024-11-01/Fleets_Update.json | -| [operationsListSample.ts][operationslistsample] | list the operations for the provider x-ms-original-file: 2024-11-01/Operations_List.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/fleetsCreateOrUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx dev-tool run vendored cross-env node dist/fleetsCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[fleetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsCreateOrUpdateSample.ts -[fleetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsDeleteSample.ts -[fleetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsGetSample.ts -[fleetslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsListByResourceGroupSample.ts -[fleetslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsListBySubscriptionSample.ts -[fleetslistvirtualmachinescalesetssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsListVirtualMachineScaleSetsSample.ts -[fleetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsUpdateSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/operationsListSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-computefleet?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/computefleet/arm-computefleet/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/computefleet/arm-computefleet/samples/v1/typescript/package.json b/sdk/computefleet/arm-computefleet/samples/v1/typescript/package.json deleted file mode 100644 index df6749026e0b..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/typescript/package.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "@azure-samples/arm-computefleet-ts", - "private": true, - "version": "1.0.0", - "description": "@azure/arm-computefleet client library samples for TypeScript", - "engines": { - "node": ">=18.0.0" - }, - "scripts": { - "build": "tsc", - "prebuild": "rimraf dist/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/computefleet/arm-computefleet" - }, - "keywords": [ - "node", - "azure", - "cloud", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/computefleet/arm-computefleet", - "dependencies": { - "@azure/arm-computefleet": "latest", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - }, - "devDependencies": { - "@types/node": "^18.0.0", - "typescript": "~5.6.2", - "rimraf": "latest" - } -} diff --git a/sdk/computefleet/arm-computefleet/samples/v1/typescript/sample.env b/sdk/computefleet/arm-computefleet/samples/v1/typescript/sample.env deleted file mode 100644 index efbc7787bd3b..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/typescript/sample.env +++ /dev/null @@ -1 +0,0 @@ -# Feel free to add your own environment variables. diff --git a/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsCreateOrUpdateSample.ts b/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsCreateOrUpdateSample.ts deleted file mode 100644 index a0a73fc5d1ac..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsCreateOrUpdateSample.ts +++ /dev/null @@ -1,462 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureFleetClient } from "@azure/arm-computefleet"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to create a Fleet - * - * @summary create a Fleet - * x-ms-original-file: 2024-11-01/Fleets_CreateOrUpdate.json - */ -async function fleetsCreateOrUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const result = await client.fleets.createOrUpdate( - "rgazurefleet", - "testFleet", - { - properties: { - spotPriorityProfile: { - capacity: 20, - minCapacity: 10, - maxPricePerVM: 0.00865, - evictionPolicy: "Delete", - allocationStrategy: "PriceCapacityOptimized", - maintain: true, - }, - regularPriorityProfile: { - capacity: 20, - minCapacity: 10, - allocationStrategy: "LowestPrice", - }, - vmSizesProfile: [{ name: "Standard_d1_v2", rank: 19225 }], - computeProfile: { - baseVirtualMachineProfile: { - osProfile: { - computerNamePrefix: "o", - adminUsername: "nrgzqciiaaxjrqldbmjbqkyhntp", - adminPassword: "adfbrdxpv", - customData: "xjjib", - windowsConfiguration: { - provisionVMAgent: true, - enableAutomaticUpdates: true, - timeZone: "hlyjiqcfksgrpjrct", - additionalUnattendContent: [ - { - passName: "OobeSystem", - componentName: "Microsoft-Windows-Shell-Setup", - settingName: "AutoLogon", - content: "bubmqbxjkj", - }, - ], - patchSettings: { - patchMode: "Manual", - enableHotpatching: true, - assessmentMode: "ImageDefault", - automaticByPlatformSettings: { - rebootSetting: "Unknown", - bypassPlatformSafetyChecksOnUserSchedule: true, - }, - }, - winRM: { - listeners: [ - { - protocol: "Https", - certificateUrl: - "https://myVaultName.vault.azure.net/secrets/myCertName", - }, - ], - }, - enableVMAgentPlatformUpdates: true, - }, - linuxConfiguration: { - disablePasswordAuthentication: true, - ssh: { - publicKeys: [ - { path: "kmqz", keyData: "kivgsubusvpprwqaqpjcmhsv" }, - ], - }, - provisionVMAgent: true, - patchSettings: { - patchMode: "ImageDefault", - assessmentMode: "ImageDefault", - automaticByPlatformSettings: { - rebootSetting: "Unknown", - bypassPlatformSafetyChecksOnUserSchedule: true, - }, - }, - enableVMAgentPlatformUpdates: true, - }, - secrets: [ - { - sourceVault: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", - }, - vaultCertificates: [ - { - certificateUrl: - "https://myVaultName.vault.azure.net/secrets/myCertName", - certificateStore: "nlxrwavpzhueffxsshlun", - }, - ], - }, - ], - allowExtensionOperations: true, - requireGuestProvisionSignal: true, - }, - storageProfile: { - imageReference: { - publisher: "mqxgwbiyjzmxavhbkd", - offer: "isxgumkarlkomp", - sku: "eojmppqcrnpmxirtp", - version: "wvpcqefgtmqdgltiuz", - sharedGalleryImageId: "kmkgihoxwlawuuhcinfirktdwkmx", - communityGalleryImageId: "vlqe", - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}", - }, - osDisk: { - name: "wfttw", - caching: "None", - writeAcceleratorEnabled: true, - createOption: "FromImage", - diffDiskSettings: { option: "Local", placement: "CacheDisk" }, - diskSizeGB: 14, - osType: "Windows", - image: { - uri: "https://myStorageAccountName.blob.core.windows.net/myContainerName/myVhdName.vhd", - }, - vhdContainers: ["tkzcwddtinkfpnfklatw"], - managedDisk: { - storageAccountType: "Standard_LRS", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - securityProfile: { - securityEncryptionType: "VMGuestStateOnly", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - }, - }, - deleteOption: "Delete", - }, - dataDisks: [ - { - name: "eogiykmdmeikswxmigjws", - lun: 14, - caching: "None", - writeAcceleratorEnabled: true, - createOption: "FromImage", - diskSizeGB: 6, - managedDisk: { - storageAccountType: "Standard_LRS", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - securityProfile: { - securityEncryptionType: "VMGuestStateOnly", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - }, - }, - diskIOPSReadWrite: 27, - diskMBpsReadWrite: 2, - deleteOption: "Delete", - }, - ], - }, - networkProfile: { - healthProbe: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}", - }, - networkInterfaceConfigurations: [ - { - name: "i", - properties: { - primary: true, - enableAcceleratedNetworking: true, - disableTcpStateTracking: true, - enableFpga: true, - networkSecurityGroup: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", - }, - dnsSettings: { dnsServers: ["nxmmfolhclsesu"] }, - ipConfigurations: [ - { - name: "oezqhkidfhyywlfzwuotilrpbqnjg", - properties: { - subnet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}", - }, - primary: true, - publicIPAddressConfiguration: { - name: "fvpqf", - properties: { - idleTimeoutInMinutes: 9, - dnsSettings: { - domainNameLabel: "ukrddzvmorpmfsczjwtbvp", - domainNameLabelScope: "TenantReuse", - }, - ipTags: [ - { - ipTagType: "sddgsoemnzgqizale", - tag: "wufmhrjsakbiaetyara", - }, - ], - publicIPPrefix: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}", - }, - publicIPAddressVersion: "IPv4", - deleteOption: "Delete", - }, - sku: { name: "Basic", tier: "Regional" }, - }, - privateIPAddressVersion: "IPv4", - applicationGatewayBackendAddressPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}", - }, - ], - applicationSecurityGroups: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", - }, - ], - loadBalancerBackendAddressPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}", - }, - ], - loadBalancerInboundNatPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}", - }, - ], - }, - }, - ], - enableIPForwarding: true, - deleteOption: "Delete", - auxiliaryMode: "None", - auxiliarySku: "None", - }, - }, - ], - networkApiVersion: "2020-11-01", - }, - securityProfile: { - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, - encryptionAtHost: true, - securityType: "TrustedLaunch", - encryptionIdentity: { - userAssignedIdentityResourceId: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}", - }, - proxyAgentSettings: { - enabled: true, - mode: "Audit", - keyIncarnationId: 20, - }, - }, - diagnosticsProfile: { - bootDiagnostics: { - enabled: true, - storageUri: "http://myStorageAccountName.blob.core.windows.net", - }, - }, - extensionProfile: { - extensions: [ - { - name: "bndxuxx", - properties: { - forceUpdateTag: "yhgxw", - publisher: "kpxtirxjfprhs", - type: "pgjilctjjwaa", - typeHandlerVersion: "zevivcoilxmbwlrihhhibq", - autoUpgradeMinorVersion: true, - enableAutomaticUpgrade: true, - settings: {}, - protectedSettings: {}, - provisionAfterExtensions: ["nftzosroolbcwmpupujzqwqe"], - suppressFailures: true, - protectedSettingsFromKeyVault: { - secretUrl: - "https://myvaultName.vault.azure.net/secrets/secret/mySecretName", - sourceVault: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", - }, - }, - }, - }, - ], - extensionsTimeBudget: "mbhjahtdygwgyszdwjtvlvtgchdwil", - }, - licenseType: "v", - scheduledEventsProfile: { - terminateNotificationProfile: { - notBeforeTimeout: "iljppmmw", - enable: true, - }, - osImageNotificationProfile: { - notBeforeTimeout: "olbpadmevekyczfokodtfprxti", - enable: true, - }, - }, - userData: "s", - capacityReservation: { - capacityReservationGroup: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", - }, - }, - applicationProfile: { - galleryApplications: [ - { - tags: "eyrqjbib", - order: 5, - packageReferenceId: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}", - configurationReference: "ulztmiavpojpbpbddgnuuiimxcpau", - treatFailureAsDeploymentFailure: true, - enableAutomaticUpgrade: true, - }, - ], - }, - hardwareProfile: { - vmSizeProperties: { vCPUsAvailable: 16, vCPUsPerCore: 23 }, - }, - serviceArtifactReference: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}", - }, - securityPostureReference: { - id: "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest", - excludeExtensions: ["{securityPostureVMExtensionName}"], - isOverridable: true, - }, - }, - computeApiVersion: "2023-07-01", - platformFaultDomainCount: 1, - }, - }, - zones: ["zone1", "zone2"], - identity: { - type: "UserAssigned", - userAssignedIdentities: { key9851: {} }, - }, - tags: { key3518: "luvrnuvsgdpbuofdskkcoqhfh" }, - location: "westus", - plan: { - name: "jwgrcrnrtfoxn", - publisher: "iozjbiqqckqm", - product: "cgopbyvdyqikahwyxfpzwaqk", - promotionCode: "naglezezplcaruqogtxnuizslqnnbr", - version: "wa", - }, - }, - ); - console.log(result); -} - -/** - * This sample demonstrates how to create a Fleet - * - * @summary create a Fleet - * x-ms-original-file: 2024-11-01/Fleets_CreateOrUpdate_MinimumSet.json - */ -async function fleetsCreateOrUpdateMinimumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const result = await client.fleets.createOrUpdate( - "rgazurefleet", - "testFleet", - { - properties: { - spotPriorityProfile: { - capacity: 2, - minCapacity: 1, - evictionPolicy: "Delete", - allocationStrategy: "PriceCapacityOptimized", - maintain: true, - }, - regularPriorityProfile: { - capacity: 2, - minCapacity: 1, - allocationStrategy: "LowestPrice", - }, - vmSizesProfile: [ - { name: "Standard_D2s_v3" }, - { name: "Standard_D4s_v3" }, - { name: "Standard_E2s_v3" }, - ], - computeProfile: { - baseVirtualMachineProfile: { - storageProfile: { - imageReference: { - publisher: "canonical", - offer: "0001-com-ubuntu-server-focal", - sku: "20_04-lts-gen2", - version: "latest", - }, - osDisk: { - caching: "ReadWrite", - createOption: "FromImage", - osType: "Linux", - managedDisk: { storageAccountType: "Standard_LRS" }, - }, - }, - osProfile: { - computerNamePrefix: "prefix", - adminUsername: "azureuser", - adminPassword: "TestPassword$0", - linuxConfiguration: { disablePasswordAuthentication: false }, - }, - networkProfile: { - networkInterfaceConfigurations: [ - { - name: "vmNameTest", - properties: { - primary: true, - enableAcceleratedNetworking: false, - ipConfigurations: [ - { - name: "vmNameTest", - properties: { - subnet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}", - }, - primary: true, - loadBalancerBackendAddressPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}", - }, - ], - }, - }, - ], - enableIPForwarding: true, - }, - }, - ], - }, - }, - computeApiVersion: "2023-09-01", - platformFaultDomainCount: 1, - }, - }, - tags: { key: "fleets-test" }, - location: "eastus2euap", - }, - ); - console.log(result); -} - -async function main() { - fleetsCreateOrUpdate(); - fleetsCreateOrUpdateMinimumSet(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsDeleteSample.ts b/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsDeleteSample.ts deleted file mode 100644 index ea1cd420bc3a..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsDeleteSample.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureFleetClient } from "@azure/arm-computefleet"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to delete a Fleet - * - * @summary delete a Fleet - * x-ms-original-file: 2024-11-01/Fleets_Delete.json - */ -async function fleetsDelete() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - await client.fleets.delete("rgazurefleet", "testFleet"); -} - -async function main() { - fleetsDelete(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsGetSample.ts b/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsGetSample.ts deleted file mode 100644 index a4e18baccbc5..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureFleetClient } from "@azure/arm-computefleet"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a Fleet - * - * @summary get a Fleet - * x-ms-original-file: 2024-11-01/Fleets_Get.json - */ -async function fleetsGet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const result = await client.fleets.get("rgazurefleet", "testFleet"); - console.log(result); -} - -async function main() { - fleetsGet(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsListByResourceGroupSample.ts b/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsListByResourceGroupSample.ts deleted file mode 100644 index f2554d4c183c..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsListByResourceGroupSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureFleetClient } from "@azure/arm-computefleet"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list Fleet resources by resource group - * - * @summary list Fleet resources by resource group - * x-ms-original-file: 2024-11-01/Fleets_ListByResourceGroup.json - */ -async function fleetsListByResourceGroup() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.fleets.listByResourceGroup("rgazurefleet")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - fleetsListByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsListBySubscriptionSample.ts b/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsListBySubscriptionSample.ts deleted file mode 100644 index fe781d15ecf2..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsListBySubscriptionSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureFleetClient } from "@azure/arm-computefleet"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list Fleet resources by subscription ID - * - * @summary list Fleet resources by subscription ID - * x-ms-original-file: 2024-11-01/Fleets_ListBySubscription.json - */ -async function fleetsListBySubscription() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.fleets.listBySubscription()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - fleetsListBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsListVirtualMachineScaleSetsSample.ts b/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsListVirtualMachineScaleSetsSample.ts deleted file mode 100644 index 3c98a324877d..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsListVirtualMachineScaleSetsSample.ts +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureFleetClient } from "@azure/arm-computefleet"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list VirtualMachineScaleSet resources by Fleet - * - * @summary list VirtualMachineScaleSet resources by Fleet - * x-ms-original-file: 2024-11-01/Fleets_ListVirtualMachineScaleSets.json - */ -async function fleetsListVirtualMachineScaleSets() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.fleets.listVirtualMachineScaleSets( - "rgazurefleet", - "myFleet", - )) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - fleetsListVirtualMachineScaleSets(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsUpdateSample.ts b/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsUpdateSample.ts deleted file mode 100644 index 60aa095f74c3..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/fleetsUpdateSample.ts +++ /dev/null @@ -1,358 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureFleetClient } from "@azure/arm-computefleet"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to update a Fleet - * - * @summary update a Fleet - * x-ms-original-file: 2024-11-01/Fleets_Update.json - */ -async function fleetsUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "1DC2F28C-A625-4B0E-9748-9885A3C9E9EB"; - const client = new AzureFleetClient(credential, subscriptionId); - const result = await client.fleets.update("rgazurefleet", "testFleet", { - identity: { type: "UserAssigned", userAssignedIdentities: {} }, - tags: {}, - properties: { - spotPriorityProfile: { - capacity: 20, - minCapacity: 10, - maxPricePerVM: 0.00865, - evictionPolicy: "Delete", - allocationStrategy: "PriceCapacityOptimized", - maintain: true, - }, - regularPriorityProfile: { - capacity: 20, - minCapacity: 10, - allocationStrategy: "LowestPrice", - }, - vmSizesProfile: [{ name: "Standard_d1_v2", rank: 19225 }], - computeProfile: { - baseVirtualMachineProfile: { - osProfile: { - computerNamePrefix: "o", - adminUsername: "nrgzqciiaaxjrqldbmjbqkyhntp", - adminPassword: "adfbrdxpv", - customData: "xjjib", - windowsConfiguration: { - provisionVMAgent: true, - enableAutomaticUpdates: true, - timeZone: "hlyjiqcfksgrpjrct", - additionalUnattendContent: [ - { - passName: "OobeSystem", - componentName: "Microsoft-Windows-Shell-Setup", - settingName: "AutoLogon", - content: "bubmqbxjkj", - }, - ], - patchSettings: { - patchMode: "Manual", - enableHotpatching: true, - assessmentMode: "ImageDefault", - automaticByPlatformSettings: { - rebootSetting: "Unknown", - bypassPlatformSafetyChecksOnUserSchedule: true, - }, - }, - winRM: { - listeners: [ - { - protocol: "Http", - certificateUrl: - "https://myVaultName.vault.azure.net/secrets/myCertName", - }, - ], - }, - enableVMAgentPlatformUpdates: true, - }, - linuxConfiguration: { - disablePasswordAuthentication: true, - ssh: { - publicKeys: [ - { path: "kmqz", keyData: "kivgsubusvpprwqaqpjcmhsv" }, - ], - }, - provisionVMAgent: true, - patchSettings: { - patchMode: "ImageDefault", - assessmentMode: "ImageDefault", - automaticByPlatformSettings: { - rebootSetting: "Unknown", - bypassPlatformSafetyChecksOnUserSchedule: true, - }, - }, - enableVMAgentPlatformUpdates: true, - }, - secrets: [ - { - sourceVault: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", - }, - vaultCertificates: [ - { - certificateUrl: - "https://myVaultName.vault.azure.net/secrets/myCertName", - certificateStore: "nlxrwavpzhueffxsshlun", - }, - ], - }, - ], - allowExtensionOperations: true, - requireGuestProvisionSignal: true, - }, - storageProfile: { - imageReference: { - publisher: "mqxgwbiyjzmxavhbkd", - offer: "isxgumkarlkomp", - sku: "eojmppqcrnpmxirtp", - version: "wvpcqefgtmqdgltiuz", - sharedGalleryImageId: "kmkgihoxwlawuuhcinfirktdwkmx", - communityGalleryImageId: "vlqe", - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}", - }, - osDisk: { - name: "wfttw", - caching: "None", - writeAcceleratorEnabled: true, - createOption: "FromImage", - diffDiskSettings: { option: "Local", placement: "CacheDisk" }, - diskSizeGB: 14, - osType: "Windows", - image: { - uri: "https://myStorageAccountName.blob.core.windows.net/myContainerName/myVhdName.vhd", - }, - vhdContainers: ["tkzcwddtinkfpnfklatw"], - managedDisk: { - storageAccountType: "Standard_LRS", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - securityProfile: { - securityEncryptionType: "VMGuestStateOnly", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - }, - }, - deleteOption: "Delete", - }, - dataDisks: [ - { - name: "eogiykmdmeikswxmigjws", - lun: 14, - caching: "None", - writeAcceleratorEnabled: true, - createOption: "FromImage", - diskSizeGB: 6, - managedDisk: { - storageAccountType: "Standard_LRS", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - securityProfile: { - securityEncryptionType: "VMGuestStateOnly", - diskEncryptionSet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - }, - }, - }, - diskIOPSReadWrite: 27, - diskMBpsReadWrite: 2, - deleteOption: "Delete", - }, - ], - }, - networkProfile: { - healthProbe: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}", - }, - networkInterfaceConfigurations: [ - { - name: "i", - properties: { - primary: true, - enableAcceleratedNetworking: true, - disableTcpStateTracking: true, - enableFpga: true, - networkSecurityGroup: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", - }, - dnsSettings: { dnsServers: ["nxmmfolhclsesu"] }, - ipConfigurations: [ - { - name: "oezqhkidfhyywlfzwuotilrpbqnjg", - properties: { - subnet: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}", - }, - primary: true, - publicIPAddressConfiguration: { - name: "fvpqf", - properties: { - idleTimeoutInMinutes: 9, - dnsSettings: { - domainNameLabel: "ukrddzvmorpmfsczjwtbvp", - domainNameLabelScope: "TenantReuse", - }, - ipTags: [ - { - ipTagType: "sddgsoemnzgqizale", - tag: "wufmhrjsakbiaetyara", - }, - ], - publicIPPrefix: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}", - }, - publicIPAddressVersion: "IPv4", - deleteOption: "Delete", - }, - sku: { name: "Basic", tier: "Regional" }, - }, - privateIPAddressVersion: "IPv4", - applicationGatewayBackendAddressPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}", - }, - ], - applicationSecurityGroups: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", - }, - ], - loadBalancerBackendAddressPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}", - }, - ], - loadBalancerInboundNatPools: [ - { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}", - }, - ], - }, - }, - ], - enableIPForwarding: true, - deleteOption: "Delete", - auxiliaryMode: "None", - auxiliarySku: "None", - }, - }, - ], - networkApiVersion: "2020-11-01", - }, - securityProfile: { - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, - encryptionAtHost: true, - securityType: "TrustedLaunch", - encryptionIdentity: { - userAssignedIdentityResourceId: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}", - }, - proxyAgentSettings: { - enabled: true, - mode: "Audit", - keyIncarnationId: 20, - }, - }, - diagnosticsProfile: { - bootDiagnostics: { - enabled: true, - storageUri: "http://myStorageAccountName.blob.core.windows.net", - }, - }, - extensionProfile: { - extensions: [ - { - name: "bndxuxx", - properties: { - forceUpdateTag: "yhgxw", - publisher: "kpxtirxjfprhs", - type: "pgjilctjjwaa", - typeHandlerVersion: "zevivcoilxmbwlrihhhibq", - autoUpgradeMinorVersion: true, - enableAutomaticUpgrade: true, - settings: {}, - protectedSettings: {}, - provisionAfterExtensions: ["nftzosroolbcwmpupujzqwqe"], - suppressFailures: true, - protectedSettingsFromKeyVault: { - secretUrl: - "https://myVaultName.vault.azure.net/secrets/secret/mySecretName", - sourceVault: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", - }, - }, - }, - }, - ], - extensionsTimeBudget: "mbhjahtdygwgyszdwjtvlvtgchdwil", - }, - licenseType: "v", - scheduledEventsProfile: { - terminateNotificationProfile: { - notBeforeTimeout: "iljppmmw", - enable: true, - }, - osImageNotificationProfile: { - notBeforeTimeout: "olbpadmevekyczfokodtfprxti", - enable: true, - }, - }, - userData: "s", - capacityReservation: { - capacityReservationGroup: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", - }, - }, - applicationProfile: { - galleryApplications: [ - { - tags: "eyrqjbib", - order: 5, - packageReferenceId: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}", - configurationReference: "ulztmiavpojpbpbddgnuuiimxcpau", - treatFailureAsDeploymentFailure: true, - enableAutomaticUpgrade: true, - }, - ], - }, - hardwareProfile: { - vmSizeProperties: { vCPUsAvailable: 16, vCPUsPerCore: 23 }, - }, - serviceArtifactReference: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}", - }, - securityPostureReference: { - id: "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest", - excludeExtensions: ["{securityPostureVMExtensionName}"], - isOverridable: true, - }, - }, - computeApiVersion: "2023-07-01", - platformFaultDomainCount: 1, - }, - }, - plan: { - name: "jwgrcrnrtfoxn", - publisher: "iozjbiqqckqm", - product: "cgopbyvdyqikahwyxfpzwaqk", - promotionCode: "naglezezplcaruqogtxnuizslqnnbr", - version: "wa", - }, - }); - console.log(result); -} - -async function main() { - fleetsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/operationsListSample.ts b/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/operationsListSample.ts deleted file mode 100644 index 73943c59772a..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/typescript/src/operationsListSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureFleetClient } from "@azure/arm-computefleet"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list the operations for the provider - * - * @summary list the operations for the provider - * x-ms-original-file: 2024-11-01/Operations_List.json - */ -async function operationsList() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-00000000000"; - const client = new AzureFleetClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - operationsList(); -} - -main().catch(console.error); diff --git a/sdk/computefleet/arm-computefleet/samples/v1/typescript/tsconfig.json b/sdk/computefleet/arm-computefleet/samples/v1/typescript/tsconfig.json deleted file mode 100644 index 984eed535aa8..000000000000 --- a/sdk/computefleet/arm-computefleet/samples/v1/typescript/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2020", - "module": "commonjs", - "moduleResolution": "node", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "alwaysStrict": true, - "outDir": "dist", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts" - ] -} diff --git a/sdk/computefleet/arm-computefleet/src/api/azureFleetContext.ts b/sdk/computefleet/arm-computefleet/src/api/azureFleetContext.ts index 89318b87b149..19cf288445c0 100644 --- a/sdk/computefleet/arm-computefleet/src/api/azureFleetContext.ts +++ b/sdk/computefleet/arm-computefleet/src/api/azureFleetContext.ts @@ -2,6 +2,7 @@ // Licensed under the MIT License. import { logger } from "../logger.js"; +import { KnownVersions } from "../models/models.js"; import { Client, ClientOptions, getClient } from "@azure-rest/core-client"; import { TokenCredential } from "@azure/core-auth"; @@ -10,6 +11,7 @@ export interface AzureFleetContext extends Client {} /** Optional parameters for the client. */ export interface AzureFleetClientOptionalParams extends ClientOptions { /** The API version to use for this operation. */ + /** Known values of {@link KnownVersions} that the service accepts. */ apiVersion?: string; } @@ -17,10 +19,10 @@ export function createAzureFleet( credential: TokenCredential, options: AzureFleetClientOptionalParams = {}, ): AzureFleetContext { - const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`; - + const endpointUrl = + options.endpoint ?? options.baseUrl ?? `https://management.azure.com`; const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix; - const userAgentInfo = `azsdk-js-arm-computefleet/1.0.1`; + const userAgentInfo = `azsdk-js-arm-computefleet/1.0.0-beta.1`; const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}` : `azsdk-js-api ${userAgentInfo}`; diff --git a/sdk/computefleet/arm-computefleet/src/api/fleets/index.ts b/sdk/computefleet/arm-computefleet/src/api/fleets/index.ts index 46e4df1ab7e7..2a23b84db91d 100644 --- a/sdk/computefleet/arm-computefleet/src/api/fleets/index.ts +++ b/sdk/computefleet/arm-computefleet/src/api/fleets/index.ts @@ -23,11 +23,11 @@ import { _virtualMachineScaleSetListResultDeserializer, VirtualMachineScaleSet, } from "../../models/models.js"; -import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js"; import { PagedAsyncIterableIterator, buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js"; +import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js"; import { StreamableMethod, PathUncheckedResponse, @@ -53,7 +53,9 @@ export function _fleetsGetSend( .get({ ...operationOptionsToRequestParameters(options) }); } -export async function _fleetsGetDeserialize(result: PathUncheckedResponse): Promise { +export async function _fleetsGetDeserialize( + result: PathUncheckedResponse, +): Promise { const expectedStatuses = ["200"]; if (!expectedStatuses.includes(result.status)) { throw createRestError(result); @@ -121,20 +123,25 @@ export function fleetsCreateOrUpdate( resource: Fleet, options: FleetsCreateOrUpdateOptionalParams = { requestOptions: {} }, ): PollerLike, Fleet> { - return getLongRunningPoller(context, _fleetsCreateOrUpdateDeserialize, ["200", "201"], { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _fleetsCreateOrUpdateSend( - context, - subscriptionId, - resourceGroupName, - fleetName, - resource, - options, - ), - resourceLocationConfig: "azure-async-operation", - }) as PollerLike, Fleet>; + return getLongRunningPoller( + context, + _fleetsCreateOrUpdateDeserialize, + ["200", "201"], + { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _fleetsCreateOrUpdateSend( + context, + subscriptionId, + resourceGroupName, + fleetName, + resource, + options, + ), + resourceLocationConfig: "azure-async-operation", + }, + ) as PollerLike, Fleet>; } export function _fleetsUpdateSend( @@ -158,7 +165,9 @@ export function _fleetsUpdateSend( }); } -export async function _fleetsUpdateDeserialize(result: PathUncheckedResponse): Promise { +export async function _fleetsUpdateDeserialize( + result: PathUncheckedResponse, +): Promise { const expectedStatuses = ["200", "202"]; if (!expectedStatuses.includes(result.status)) { throw createRestError(result); @@ -176,13 +185,25 @@ export function fleetsUpdate( properties: FleetUpdate, options: FleetsUpdateOptionalParams = { requestOptions: {} }, ): PollerLike, Fleet> { - return getLongRunningPoller(context, _fleetsUpdateDeserialize, ["200", "202"], { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _fleetsUpdateSend(context, subscriptionId, resourceGroupName, fleetName, properties, options), - resourceLocationConfig: "location", - }) as PollerLike, Fleet>; + return getLongRunningPoller( + context, + _fleetsUpdateDeserialize, + ["200", "202"], + { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _fleetsUpdateSend( + context, + subscriptionId, + resourceGroupName, + fleetName, + properties, + options, + ), + resourceLocationConfig: "location", + }, + ) as PollerLike, Fleet>; } export function _fleetsDeleteSend( @@ -202,7 +223,9 @@ export function _fleetsDeleteSend( .delete({ ...operationOptionsToRequestParameters(options) }); } -export async function _fleetsDeleteDeserialize(result: PathUncheckedResponse): Promise { +export async function _fleetsDeleteDeserialize( + result: PathUncheckedResponse, +): Promise { const expectedStatuses = ["202", "204", "200"]; if (!expectedStatuses.includes(result.status)) { throw createRestError(result); @@ -219,13 +242,24 @@ export function fleetsDelete( fleetName: string, options: FleetsDeleteOptionalParams = { requestOptions: {} }, ): PollerLike, void> { - return getLongRunningPoller(context, _fleetsDeleteDeserialize, ["202", "204", "200"], { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _fleetsDeleteSend(context, subscriptionId, resourceGroupName, fleetName, options), - resourceLocationConfig: "location", - }) as PollerLike, void>; + return getLongRunningPoller( + context, + _fleetsDeleteDeserialize, + ["202", "204", "200"], + { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _fleetsDeleteSend( + context, + subscriptionId, + resourceGroupName, + fleetName, + options, + ), + resourceLocationConfig: "location", + }, + ) as PollerLike, void>; } export function _fleetsListByResourceGroupSend( @@ -263,7 +297,13 @@ export function fleetsListByResourceGroup( ): PagedAsyncIterableIterator { return buildPagedAsyncIterator( context, - () => _fleetsListByResourceGroupSend(context, subscriptionId, resourceGroupName, options), + () => + _fleetsListByResourceGroupSend( + context, + subscriptionId, + resourceGroupName, + options, + ), _fleetsListByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" }, @@ -276,7 +316,10 @@ export function _fleetsListBySubscriptionSend( options: FleetsListBySubscriptionOptionalParams = { requestOptions: {} }, ): StreamableMethod { return context - .path("/subscriptions/{subscriptionId}/providers/Microsoft.AzureFleet/fleets", subscriptionId) + .path( + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureFleet/fleets", + subscriptionId, + ) .get({ ...operationOptionsToRequestParameters(options) }); } diff --git a/sdk/computefleet/arm-computefleet/src/api/operations/index.ts b/sdk/computefleet/arm-computefleet/src/api/operations/index.ts index 5d8898a5339f..a3cd5d9dcc96 100644 --- a/sdk/computefleet/arm-computefleet/src/api/operations/index.ts +++ b/sdk/computefleet/arm-computefleet/src/api/operations/index.ts @@ -1,7 +1,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { AzureFleetContext as Client, OperationsListOptionalParams } from "../index.js"; +import { + AzureFleetContext as Client, + OperationsListOptionalParams, +} from "../index.js"; import { _OperationListResult, _operationListResultDeserializer, diff --git a/sdk/computefleet/arm-computefleet/src/api/options.ts b/sdk/computefleet/arm-computefleet/src/api/options.ts index c05380ef26d4..80bbf73f797f 100644 --- a/sdk/computefleet/arm-computefleet/src/api/options.ts +++ b/sdk/computefleet/arm-computefleet/src/api/options.ts @@ -28,10 +28,13 @@ export interface FleetsDeleteOptionalParams extends OperationOptions { } /** Optional parameters. */ -export interface FleetsListByResourceGroupOptionalParams extends OperationOptions {} +export interface FleetsListByResourceGroupOptionalParams + extends OperationOptions {} /** Optional parameters. */ -export interface FleetsListBySubscriptionOptionalParams extends OperationOptions {} +export interface FleetsListBySubscriptionOptionalParams + extends OperationOptions {} /** Optional parameters. */ -export interface FleetsListVirtualMachineScaleSetsOptionalParams extends OperationOptions {} +export interface FleetsListVirtualMachineScaleSetsOptionalParams + extends OperationOptions {} diff --git a/sdk/computefleet/arm-computefleet/src/azureFleetClient.ts b/sdk/computefleet/arm-computefleet/src/azureFleetClient.ts index 0f32eb1c7d1c..758af7bbf2a4 100644 --- a/sdk/computefleet/arm-computefleet/src/azureFleetClient.ts +++ b/sdk/computefleet/arm-computefleet/src/azureFleetClient.ts @@ -1,8 +1,14 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { getOperationsOperations, OperationsOperations } from "./classic/operations/index.js"; -import { getFleetsOperations, FleetsOperations } from "./classic/fleets/index.js"; +import { + getOperationsOperations, + OperationsOperations, +} from "./classic/operations/index.js"; +import { + getFleetsOperations, + FleetsOperations, +} from "./classic/fleets/index.js"; import { createAzureFleet, AzureFleetContext, @@ -26,7 +32,7 @@ export class AzureFleetClient { const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix; const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} azsdk-js-client` - : "azsdk-js-client"; + : `azsdk-js-client`; this._client = createAzureFleet(credential, { ...options, userAgentOptions: { userAgentPrefix }, diff --git a/sdk/computefleet/arm-computefleet/src/classic/fleets/index.ts b/sdk/computefleet/arm-computefleet/src/classic/fleets/index.ts index 5a53a58fe900..6046aacd40da 100644 --- a/sdk/computefleet/arm-computefleet/src/classic/fleets/index.ts +++ b/sdk/computefleet/arm-computefleet/src/classic/fleets/index.ts @@ -20,7 +20,11 @@ import { FleetsListBySubscriptionOptionalParams, FleetsListVirtualMachineScaleSetsOptionalParams, } from "../../api/options.js"; -import { Fleet, FleetUpdate, VirtualMachineScaleSet } from "../../models/models.js"; +import { + Fleet, + FleetUpdate, + VirtualMachineScaleSet, +} from "../../models/models.js"; import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; import { PollerLike, OperationState } from "@azure/core-lro"; @@ -71,7 +75,11 @@ export interface FleetsOperations { export function getFleets(context: AzureFleetContext, subscriptionId: string) { return { - get: (resourceGroupName: string, fleetName: string, options?: FleetsGetOptionalParams) => + get: ( + resourceGroupName: string, + fleetName: string, + options?: FleetsGetOptionalParams, + ) => fleetsGet(context, subscriptionId, resourceGroupName, fleetName, options), createOrUpdate: ( resourceGroupName: string, @@ -92,13 +100,37 @@ export function getFleets(context: AzureFleetContext, subscriptionId: string) { fleetName: string, properties: FleetUpdate, options?: FleetsUpdateOptionalParams, - ) => fleetsUpdate(context, subscriptionId, resourceGroupName, fleetName, properties, options), - delete: (resourceGroupName: string, fleetName: string, options?: FleetsDeleteOptionalParams) => - fleetsDelete(context, subscriptionId, resourceGroupName, fleetName, options), + ) => + fleetsUpdate( + context, + subscriptionId, + resourceGroupName, + fleetName, + properties, + options, + ), + delete: ( + resourceGroupName: string, + fleetName: string, + options?: FleetsDeleteOptionalParams, + ) => + fleetsDelete( + context, + subscriptionId, + resourceGroupName, + fleetName, + options, + ), listByResourceGroup: ( resourceGroupName: string, options?: FleetsListByResourceGroupOptionalParams, - ) => fleetsListByResourceGroup(context, subscriptionId, resourceGroupName, options), + ) => + fleetsListByResourceGroup( + context, + subscriptionId, + resourceGroupName, + options, + ), listBySubscription: (options?: FleetsListBySubscriptionOptionalParams) => fleetsListBySubscription(context, subscriptionId, options), listVirtualMachineScaleSets: ( @@ -106,7 +138,13 @@ export function getFleets(context: AzureFleetContext, subscriptionId: string) { name: string, options?: FleetsListVirtualMachineScaleSetsOptionalParams, ) => - fleetsListVirtualMachineScaleSets(context, subscriptionId, resourceGroupName, name, options), + fleetsListVirtualMachineScaleSets( + context, + subscriptionId, + resourceGroupName, + name, + options, + ), }; } diff --git a/sdk/computefleet/arm-computefleet/src/classic/operations/index.ts b/sdk/computefleet/arm-computefleet/src/classic/operations/index.ts index e389622d750f..389f1d5f5b2f 100644 --- a/sdk/computefleet/arm-computefleet/src/classic/operations/index.ts +++ b/sdk/computefleet/arm-computefleet/src/classic/operations/index.ts @@ -10,16 +10,21 @@ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.j /** Interface representing a Operations operations. */ export interface OperationsOperations { /** List the operations for the provider */ - list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator; + list: ( + options?: OperationsListOptionalParams, + ) => PagedAsyncIterableIterator; } export function getOperations(context: AzureFleetContext) { return { - list: (options?: OperationsListOptionalParams) => operationsList(context, options), + list: (options?: OperationsListOptionalParams) => + operationsList(context, options), }; } -export function getOperationsOperations(context: AzureFleetContext): OperationsOperations { +export function getOperationsOperations( + context: AzureFleetContext, +): OperationsOperations { return { ...getOperations(context), }; diff --git a/sdk/computefleet/arm-computefleet/src/helpers/serializerHelpers.ts b/sdk/computefleet/arm-computefleet/src/helpers/serializerHelpers.ts index 7518a16c2ee9..4baaac77c8be 100644 --- a/sdk/computefleet/arm-computefleet/src/helpers/serializerHelpers.ts +++ b/sdk/computefleet/arm-computefleet/src/helpers/serializerHelpers.ts @@ -1,9 +1,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -export function serializeRecord( - item: Record, -): Record; +export function serializeRecord< + T extends string | number | boolean | Date | null, + R, +>(item: Record): Record; export function serializeRecord( item: Record, serializer: (item: T) => R, @@ -32,5 +33,8 @@ export function serializeRecord( } function isSupportedRecordType(t: any) { - return ["number", "string", "boolean", "null"].includes(typeof t) || t instanceof Date; + return ( + ["number", "string", "boolean", "null"].includes(typeof t) || + t instanceof Date + ); } diff --git a/sdk/computefleet/arm-computefleet/src/index.ts b/sdk/computefleet/arm-computefleet/src/index.ts index 1082b521132e..4aa7b314566f 100644 --- a/sdk/computefleet/arm-computefleet/src/index.ts +++ b/sdk/computefleet/arm-computefleet/src/index.ts @@ -12,8 +12,8 @@ export { restorePoller, RestorePollerOptions } from "./restorePollerHelpers.js"; export { Fleet, FleetProperties, - ProvisioningState, KnownProvisioningState, + ProvisioningState, SpotPriorityProfile, KnownEvictionPolicy, EvictionPolicy, @@ -165,6 +165,9 @@ export { SystemData, KnownCreatedByType, CreatedByType, + ErrorResponse, + ErrorDetail, + ErrorAdditionalInfo, FleetUpdate, ManagedServiceIdentityUpdate, ResourcePlanUpdate, @@ -178,6 +181,7 @@ export { Origin, KnownActionType, ActionType, + KnownVersions, } from "./models/index.js"; export { AzureFleetClientOptionalParams, diff --git a/sdk/computefleet/arm-computefleet/src/models/index.ts b/sdk/computefleet/arm-computefleet/src/models/index.ts index c8ccf3517a93..d1505c0cb2a2 100644 --- a/sdk/computefleet/arm-computefleet/src/models/index.ts +++ b/sdk/computefleet/arm-computefleet/src/models/index.ts @@ -157,6 +157,9 @@ export { SystemData, KnownCreatedByType, CreatedByType, + ErrorResponse, + ErrorDetail, + ErrorAdditionalInfo, FleetUpdate, ManagedServiceIdentityUpdate, ResourcePlanUpdate, @@ -170,4 +173,5 @@ export { Origin, KnownActionType, ActionType, + KnownVersions, } from "./models.js"; diff --git a/sdk/computefleet/arm-computefleet/src/models/models.ts b/sdk/computefleet/arm-computefleet/src/models/models.ts index bcd705ee2a4c..c83c66a8f8fe 100644 --- a/sdk/computefleet/arm-computefleet/src/models/models.ts +++ b/sdk/computefleet/arm-computefleet/src/models/models.ts @@ -93,16 +93,16 @@ export function fleetPropertiesSerializer(item: FleetProperties): any { : vMAttributesSerializer(item["vmAttributes"]), additionalLocationsProfile: !item["additionalLocationsProfile"] ? item["additionalLocationsProfile"] - : additionalLocationsProfileSerializer(item["additionalLocationsProfile"]), + : additionalLocationsProfileSerializer( + item["additionalLocationsProfile"], + ), computeProfile: computeProfileSerializer(item["computeProfile"]), }; } export function fleetPropertiesDeserializer(item: any): FleetProperties { return { - provisioningState: !item["provisioningState"] - ? item["provisioningState"] - : provisioningStateDeserializer(item["provisioningState"]), + provisioningState: item["provisioningState"], spotPriorityProfile: !item["spotPriorityProfile"] ? item["spotPriorityProfile"] : spotPriorityProfileDeserializer(item["spotPriorityProfile"]), @@ -115,55 +115,50 @@ export function fleetPropertiesDeserializer(item: any): FleetProperties { : vMAttributesDeserializer(item["vmAttributes"]), additionalLocationsProfile: !item["additionalLocationsProfile"] ? item["additionalLocationsProfile"] - : additionalLocationsProfileDeserializer(item["additionalLocationsProfile"]), + : additionalLocationsProfileDeserializer( + item["additionalLocationsProfile"], + ), computeProfile: computeProfileDeserializer(item["computeProfile"]), - timeCreated: !item["timeCreated"] ? item["timeCreated"] : new Date(item["timeCreated"]), + timeCreated: !item["timeCreated"] + ? item["timeCreated"] + : new Date(item["timeCreated"]), uniqueId: item["uniqueId"], }; } -/** Known values of {@link ProvisioningState} that the service accepts. */ +/** The status of the current operation. */ export enum KnownProvisioningState { - /** Succeeded */ + /** Resource has been created. */ Succeeded = "Succeeded", - /** Failed */ + /** Resource creation failed. */ Failed = "Failed", - /** Canceled */ + /** Resource creation was canceled. */ Canceled = "Canceled", - /** Creating */ + /** Initial creation in progress. */ Creating = "Creating", - /** Updating */ + /** Update in progress. */ Updating = "Updating", - /** Deleting */ + /** Deletion in progress. */ Deleting = "Deleting", - /** Migrating */ + /** Resource is being migrated from one subscription or resource group to another. */ Migrating = "Migrating", } /** - * The provisioning state of a resource type. \ - * {@link KnownProvisioningState} can be used interchangeably with ResourceProvisioningState, + * The status of the current operation. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Succeeded** \ - * **Failed** \ - * **Canceled** \ - * **Creating** \ - * **Updating** \ - * **Deleting** \ - * **Migrating** + * **Succeeded**: Resource has been created. \ + * **Failed**: Resource creation failed. \ + * **Canceled**: Resource creation was canceled. \ + * **Creating**: Initial creation in progress. \ + * **Updating**: Update in progress. \ + * **Deleting**: Deletion in progress. \ + * **Migrating**: Resource is being migrated from one subscription or resource group to another. */ - export type ProvisioningState = string; -export function provisioningStateSerializer(item: ProvisioningState): any { - return item; -} - -export function provisioningStateDeserializer(item: any): ProvisioningState { - return item; -} - /** Configuration Options for Spot instances in Compute Fleet. */ export interface SpotPriorityProfile { /** Total capacity to achieve. It is currently in terms of number of VMs. */ @@ -196,7 +191,9 @@ export function spotPriorityProfileSerializer(item: SpotPriorityProfile): any { }; } -export function spotPriorityProfileDeserializer(item: any): SpotPriorityProfile { +export function spotPriorityProfileDeserializer( + item: any, +): SpotPriorityProfile { return { capacity: item["capacity"], minCapacity: item["minCapacity"], @@ -256,7 +253,9 @@ export interface RegularPriorityProfile { allocationStrategy?: RegularPriorityAllocationStrategy; } -export function regularPriorityProfileSerializer(item: RegularPriorityProfile): any { +export function regularPriorityProfileSerializer( + item: RegularPriorityProfile, +): any { return { capacity: item["capacity"], minCapacity: item["minCapacity"], @@ -264,7 +263,9 @@ export function regularPriorityProfileSerializer(item: RegularPriorityProfile): }; } -export function regularPriorityProfileDeserializer(item: any): RegularPriorityProfile { +export function regularPriorityProfileDeserializer( + item: any, +): RegularPriorityProfile { return { capacity: item["capacity"], minCapacity: item["minCapacity"], @@ -290,6 +291,22 @@ export enum KnownRegularPriorityAllocationStrategy { */ export type RegularPriorityAllocationStrategy = string; +export function vmSizeProfileArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return vmSizeProfileSerializer(item); + }); +} + +export function vmSizeProfileArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return vmSizeProfileDeserializer(item); + }); +} + /** Specifications about a VM Size. This will also contain the corresponding rank and weight in future. */ export interface VmSizeProfile { /** The Sku name (e.g. 'Standard_DS1_v2') */ @@ -312,18 +329,6 @@ export function vmSizeProfileDeserializer(item: any): VmSizeProfile { }; } -export function vmSizeProfileArraySerializer(result: Array): any[] { - return result.map((item) => { - return vmSizeProfileSerializer(item); - }); -} - -export function vmSizeProfileArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return vmSizeProfileDeserializer(item); - }); -} - /** VMAttributes that will be used to filter VMSizes which will be used to build Fleet. */ export interface VMAttributes { /** The range of vCpuCount specified from Min to Max. Must be specified if VMAttributes are specified, either Min or Max is required if specified. */ @@ -538,11 +543,15 @@ export interface VMAttributeMinMaxInteger { max?: number; } -export function vMAttributeMinMaxIntegerSerializer(item: VMAttributeMinMaxInteger): any { +export function vMAttributeMinMaxIntegerSerializer( + item: VMAttributeMinMaxInteger, +): any { return { min: item["min"], max: item["max"] }; } -export function vMAttributeMinMaxIntegerDeserializer(item: any): VMAttributeMinMaxInteger { +export function vMAttributeMinMaxIntegerDeserializer( + item: any, +): VMAttributeMinMaxInteger { return { min: item["min"], max: item["max"], @@ -557,11 +566,15 @@ export interface VMAttributeMinMaxDouble { max?: number; } -export function vMAttributeMinMaxDoubleSerializer(item: VMAttributeMinMaxDouble): any { +export function vMAttributeMinMaxDoubleSerializer( + item: VMAttributeMinMaxDouble, +): any { return { min: item["min"], max: item["max"] }; } -export function vMAttributeMinMaxDoubleDeserializer(item: any): VMAttributeMinMaxDouble { +export function vMAttributeMinMaxDoubleDeserializer( + item: any, +): VMAttributeMinMaxDouble { return { min: item["min"], max: item["max"], @@ -749,18 +762,40 @@ export interface AdditionalLocationsProfile { locationProfiles: LocationProfile[]; } -export function additionalLocationsProfileSerializer(item: AdditionalLocationsProfile): any { +export function additionalLocationsProfileSerializer( + item: AdditionalLocationsProfile, +): any { return { locationProfiles: locationProfileArraySerializer(item["locationProfiles"]), }; } -export function additionalLocationsProfileDeserializer(item: any): AdditionalLocationsProfile { +export function additionalLocationsProfileDeserializer( + item: any, +): AdditionalLocationsProfile { return { - locationProfiles: locationProfileArrayDeserializer(item["locationProfiles"]), + locationProfiles: locationProfileArrayDeserializer( + item["locationProfiles"], + ), }; } +export function locationProfileArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return locationProfileSerializer(item); + }); +} + +export function locationProfileArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return locationProfileDeserializer(item); + }); +} + /** Represents the profile for a single additional location in the Fleet. The location and the virtualMachineProfileOverride (optional). */ export interface LocationProfile { /** The ARM location name of the additional region. If LocationProfile is specified, then location is required. */ @@ -777,7 +812,9 @@ export function locationProfileSerializer(item: LocationProfile): any { location: item["location"], virtualMachineProfileOverride: !item["virtualMachineProfileOverride"] ? item["virtualMachineProfileOverride"] - : baseVirtualMachineProfileSerializer(item["virtualMachineProfileOverride"]), + : baseVirtualMachineProfileSerializer( + item["virtualMachineProfileOverride"], + ), }; } @@ -786,7 +823,9 @@ export function locationProfileDeserializer(item: any): LocationProfile { location: item["location"], virtualMachineProfileOverride: !item["virtualMachineProfileOverride"] ? item["virtualMachineProfileOverride"] - : baseVirtualMachineProfileDeserializer(item["virtualMachineProfileOverride"]), + : baseVirtualMachineProfileDeserializer( + item["virtualMachineProfileOverride"], + ), }; } @@ -823,9 +862,9 @@ export interface BaseVirtualMachineProfile { * Server operating system are:

RHEL_BYOS (for RHEL)

SLES_BYOS * (for SUSE)

For more information, see [Azure Hybrid Use Benefit for * Windows - * Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) + * Server](https://learn.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) *

[Azure Hybrid Use Benefit for Linux - * Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) + * Server](https://learn.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) *

Minimum api-version: 2015-06-15 */ licenseType?: string; @@ -869,7 +908,9 @@ export interface BaseVirtualMachineProfile { readonly timeCreated?: Date; } -export function baseVirtualMachineProfileSerializer(item: BaseVirtualMachineProfile): any { +export function baseVirtualMachineProfileSerializer( + item: BaseVirtualMachineProfile, +): any { return { osProfile: !item["osProfile"] ? item["osProfile"] @@ -888,7 +929,9 @@ export function baseVirtualMachineProfileSerializer(item: BaseVirtualMachineProf : diagnosticsProfileSerializer(item["diagnosticsProfile"]), extensionProfile: !item["extensionProfile"] ? item["extensionProfile"] - : virtualMachineScaleSetExtensionProfileSerializer(item["extensionProfile"]), + : virtualMachineScaleSetExtensionProfileSerializer( + item["extensionProfile"], + ), licenseType: item["licenseType"], scheduledEventsProfile: !item["scheduledEventsProfile"] ? item["scheduledEventsProfile"] @@ -902,7 +945,9 @@ export function baseVirtualMachineProfileSerializer(item: BaseVirtualMachineProf : applicationProfileSerializer(item["applicationProfile"]), hardwareProfile: !item["hardwareProfile"] ? item["hardwareProfile"] - : virtualMachineScaleSetHardwareProfileSerializer(item["hardwareProfile"]), + : virtualMachineScaleSetHardwareProfileSerializer( + item["hardwareProfile"], + ), serviceArtifactReference: !item["serviceArtifactReference"] ? item["serviceArtifactReference"] : serviceArtifactReferenceSerializer(item["serviceArtifactReference"]), @@ -912,17 +957,23 @@ export function baseVirtualMachineProfileSerializer(item: BaseVirtualMachineProf }; } -export function baseVirtualMachineProfileDeserializer(item: any): BaseVirtualMachineProfile { +export function baseVirtualMachineProfileDeserializer( + item: any, +): BaseVirtualMachineProfile { return { osProfile: !item["osProfile"] ? item["osProfile"] : virtualMachineScaleSetOSProfileDeserializer(item["osProfile"]), storageProfile: !item["storageProfile"] ? item["storageProfile"] - : virtualMachineScaleSetStorageProfileDeserializer(item["storageProfile"]), + : virtualMachineScaleSetStorageProfileDeserializer( + item["storageProfile"], + ), networkProfile: !item["networkProfile"] ? item["networkProfile"] - : virtualMachineScaleSetNetworkProfileDeserializer(item["networkProfile"]), + : virtualMachineScaleSetNetworkProfileDeserializer( + item["networkProfile"], + ), securityProfile: !item["securityProfile"] ? item["securityProfile"] : securityProfileDeserializer(item["securityProfile"]), @@ -931,7 +982,9 @@ export function baseVirtualMachineProfileDeserializer(item: any): BaseVirtualMac : diagnosticsProfileDeserializer(item["diagnosticsProfile"]), extensionProfile: !item["extensionProfile"] ? item["extensionProfile"] - : virtualMachineScaleSetExtensionProfileDeserializer(item["extensionProfile"]), + : virtualMachineScaleSetExtensionProfileDeserializer( + item["extensionProfile"], + ), licenseType: item["licenseType"], scheduledEventsProfile: !item["scheduledEventsProfile"] ? item["scheduledEventsProfile"] @@ -945,14 +998,18 @@ export function baseVirtualMachineProfileDeserializer(item: any): BaseVirtualMac : applicationProfileDeserializer(item["applicationProfile"]), hardwareProfile: !item["hardwareProfile"] ? item["hardwareProfile"] - : virtualMachineScaleSetHardwareProfileDeserializer(item["hardwareProfile"]), + : virtualMachineScaleSetHardwareProfileDeserializer( + item["hardwareProfile"], + ), serviceArtifactReference: !item["serviceArtifactReference"] ? item["serviceArtifactReference"] : serviceArtifactReferenceDeserializer(item["serviceArtifactReference"]), securityPostureReference: !item["securityPostureReference"] ? item["securityPostureReference"] : securityPostureReferenceDeserializer(item["securityPostureReference"]), - timeCreated: !item["timeCreated"] ? item["timeCreated"] : new Date(item["timeCreated"]), + timeCreated: !item["timeCreated"] + ? item["timeCreated"] + : new Date(item["timeCreated"]), }; } @@ -985,10 +1042,10 @@ export interface VirtualMachineScaleSetOSProfile { * "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", * "Password22", "iloveyou!"

For resetting the password, see [How to * reset the Remote Desktop service or its login password in a Windows - * VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp) + * VM](https://learn.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp) *

For resetting root password, see [Manage users, SSH, and check or * repair disks on Azure Linux VMs using the VMAccess - * Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection) + * Extension](https://learn.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection) */ adminPassword?: string; /** @@ -996,7 +1053,7 @@ export interface VirtualMachineScaleSetOSProfile { * is decoded to a binary array that is saved as a file on the Virtual Machine. * The maximum length of the binary array is 65535 bytes. For using cloud-init for * your VM, see [Using cloud-init to customize a Linux VM during - * creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init) + * creation](https://learn.microsoft.com/azure/virtual-machines/linux/using-cloud-init) */ customData?: string; /** Specifies Windows operating system settings on the virtual machine. */ @@ -1004,16 +1061,16 @@ export interface VirtualMachineScaleSetOSProfile { /** * Specifies the Linux operating system settings on the virtual machine. For a * list of supported Linux distributions, see [Linux on Azure-Endorsed - * Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros). + * Distributions](https://learn.microsoft.com/azure/virtual-machines/linux/endorsed-distros). */ linuxConfiguration?: LinuxConfiguration; /** * Specifies set of certificates that should be installed onto the virtual * machines in the scale set. To install certificates on a virtual machine it is * recommended to use the [Azure Key Vault virtual machine extension for - * Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) + * Linux](https://learn.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) * or the [Azure Key Vault virtual machine extension for - * Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). + * Windows](https://learn.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ secrets?: VaultSecretGroup[]; /** @@ -1040,7 +1097,9 @@ export function virtualMachineScaleSetOSProfileSerializer( linuxConfiguration: !item["linuxConfiguration"] ? item["linuxConfiguration"] : linuxConfigurationSerializer(item["linuxConfiguration"]), - secrets: !item["secrets"] ? item["secrets"] : vaultSecretGroupArraySerializer(item["secrets"]), + secrets: !item["secrets"] + ? item["secrets"] + : vaultSecretGroupArraySerializer(item["secrets"]), allowExtensionOperations: item["allowExtensionOperations"], requireGuestProvisionSignal: item["requireGuestProvisionSignal"], }; @@ -1086,9 +1145,9 @@ export interface WindowsConfiguration { /** * Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". * Possible values can be - * [TimeZoneInfo.Id](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id) + * [TimeZoneInfo.Id](https://learn.microsoft.com/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id) * value from time zones returned by - * [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones). + * [TimeZoneInfo.GetSystemTimeZones](https://learn.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones). */ timeZone?: string; /** @@ -1110,38 +1169,66 @@ export interface WindowsConfiguration { enableVMAgentPlatformUpdates?: boolean; } -export function windowsConfigurationSerializer(item: WindowsConfiguration): any { +export function windowsConfigurationSerializer( + item: WindowsConfiguration, +): any { return { provisionVMAgent: item["provisionVMAgent"], enableAutomaticUpdates: item["enableAutomaticUpdates"], timeZone: item["timeZone"], additionalUnattendContent: !item["additionalUnattendContent"] ? item["additionalUnattendContent"] - : additionalUnattendContentArraySerializer(item["additionalUnattendContent"]), + : additionalUnattendContentArraySerializer( + item["additionalUnattendContent"], + ), patchSettings: !item["patchSettings"] ? item["patchSettings"] : patchSettingsSerializer(item["patchSettings"]), - winRM: !item["winRM"] ? item["winRM"] : winRMConfigurationSerializer(item["winRM"]), + winRM: !item["winRM"] + ? item["winRM"] + : winRMConfigurationSerializer(item["winRM"]), enableVMAgentPlatformUpdates: item["enableVMAgentPlatformUpdates"], }; } -export function windowsConfigurationDeserializer(item: any): WindowsConfiguration { +export function windowsConfigurationDeserializer( + item: any, +): WindowsConfiguration { return { provisionVMAgent: item["provisionVMAgent"], enableAutomaticUpdates: item["enableAutomaticUpdates"], timeZone: item["timeZone"], additionalUnattendContent: !item["additionalUnattendContent"] ? item["additionalUnattendContent"] - : additionalUnattendContentArrayDeserializer(item["additionalUnattendContent"]), + : additionalUnattendContentArrayDeserializer( + item["additionalUnattendContent"], + ), patchSettings: !item["patchSettings"] ? item["patchSettings"] : patchSettingsDeserializer(item["patchSettings"]), - winRM: !item["winRM"] ? item["winRM"] : winRMConfigurationDeserializer(item["winRM"]), + winRM: !item["winRM"] + ? item["winRM"] + : winRMConfigurationDeserializer(item["winRM"]), enableVMAgentPlatformUpdates: item["enableVMAgentPlatformUpdates"], }; } +export function additionalUnattendContentArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return additionalUnattendContentSerializer(item); + }); +} + +export function additionalUnattendContentArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return additionalUnattendContentDeserializer(item); + }); +} + /** * Specifies additional XML formatted information that can be included in the * Unattend.xml file, which is used by Windows Setup. Contents are defined by @@ -1168,7 +1255,9 @@ export interface AdditionalUnattendContent { content?: string; } -export function additionalUnattendContentSerializer(item: AdditionalUnattendContent): any { +export function additionalUnattendContentSerializer( + item: AdditionalUnattendContent, +): any { return { passName: item["passName"], componentName: item["componentName"], @@ -1177,7 +1266,9 @@ export function additionalUnattendContentSerializer(item: AdditionalUnattendCont }; } -export function additionalUnattendContentDeserializer(item: any): AdditionalUnattendContent { +export function additionalUnattendContentDeserializer( + item: any, +): AdditionalUnattendContent { return { passName: item["passName"], componentName: item["componentName"], @@ -1208,22 +1299,6 @@ export enum KnownSettingNames { */ export type SettingNames = string; -export function additionalUnattendContentArraySerializer( - result: Array, -): any[] { - return result.map((item) => { - return additionalUnattendContentSerializer(item); - }); -} - -export function additionalUnattendContentArrayDeserializer( - result: Array, -): any[] { - return result.map((item) => { - return additionalUnattendContentDeserializer(item); - }); -} - /** Specifies settings related to VM Guest Patching on Windows. */ export interface PatchSettings { /** @@ -1367,7 +1442,8 @@ export function windowsVMGuestPatchAutomaticByPlatformSettingsSerializer( ): any { return { rebootSetting: item["rebootSetting"], - bypassPlatformSafetyChecksOnUserSchedule: item["bypassPlatformSafetyChecksOnUserSchedule"], + bypassPlatformSafetyChecksOnUserSchedule: + item["bypassPlatformSafetyChecksOnUserSchedule"], }; } @@ -1376,7 +1452,8 @@ export function windowsVMGuestPatchAutomaticByPlatformSettingsDeserializer( ): WindowsVMGuestPatchAutomaticByPlatformSettings { return { rebootSetting: item["rebootSetting"], - bypassPlatformSafetyChecksOnUserSchedule: item["bypassPlatformSafetyChecksOnUserSchedule"], + bypassPlatformSafetyChecksOnUserSchedule: + item["bypassPlatformSafetyChecksOnUserSchedule"], }; } @@ -1426,6 +1503,22 @@ export function winRMConfigurationDeserializer(item: any): WinRMConfiguration { }; } +export function winRMListenerArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return winRMListenerSerializer(item); + }); +} + +export function winRMListenerArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return winRMListenerDeserializer(item); + }); +} + /** Describes Protocol and thumbprint of Windows Remote Management listener */ export interface WinRMListener { /** @@ -1437,16 +1530,16 @@ export interface WinRMListener { * This is the URL of a certificate that has been uploaded to Key Vault as a * secret. For adding a secret to the Key Vault, see [Add a key or secret to the * key - * vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). + * vault](https://learn.microsoft.com/azure/key-vault/key-vault-get-started/#add). * In this case, your certificate needs to be the Base64 encoding of the following * JSON Object which is encoded in UTF-8:

{
* "data":"",
"dataType":"pfx",
* "password":""
}
To install certificates on a virtual * machine it is recommended to use the [Azure Key Vault virtual machine extension * for - * Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) + * Linux](https://learn.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) * or the [Azure Key Vault virtual machine extension for - * Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). + * Windows](https://learn.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ certificateUrl?: string; } @@ -1484,22 +1577,10 @@ export enum KnownProtocolTypes { */ export type ProtocolTypes = string; -export function winRMListenerArraySerializer(result: Array): any[] { - return result.map((item) => { - return winRMListenerSerializer(item); - }); -} - -export function winRMListenerArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return winRMListenerDeserializer(item); - }); -} - /** * Specifies the Linux operating system settings on the virtual machine. For a * list of supported Linux distributions, see [Linux on Azure-Endorsed - * Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros). + * Distributions](https://learn.microsoft.com/azure/virtual-machines/linux/endorsed-distros). */ export interface LinuxConfiguration { /** Specifies whether password authentication should be disabled. */ @@ -1568,6 +1649,22 @@ export function sshConfigurationDeserializer(item: any): SshConfiguration { }; } +export function sshPublicKeyArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return sshPublicKeySerializer(item); + }); +} + +export function sshPublicKeyArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return sshPublicKeyDeserializer(item); + }); +} + /** * Contains information about SSH certificate public key and the path on the Linux * VM where the public key is placed. @@ -1583,7 +1680,7 @@ export interface SshPublicKey { * SSH public key certificate used to authenticate with the VM through ssh. The * key needs to be at least 2048-bit and in ssh-rsa format. For creating ssh keys, * see [Create SSH keys on Linux and Mac for Linux VMs in - * Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed). + * Azure]https://learn.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed). */ keyData?: string; } @@ -1599,18 +1696,6 @@ export function sshPublicKeyDeserializer(item: any): SshPublicKey { }; } -export function sshPublicKeyArraySerializer(result: Array): any[] { - return result.map((item) => { - return sshPublicKeySerializer(item); - }); -} - -export function sshPublicKeyArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return sshPublicKeyDeserializer(item); - }); -} - /** Specifies settings related to VM Guest Patching on Linux. */ export interface LinuxPatchSettings { /** @@ -1643,7 +1728,9 @@ export function linuxPatchSettingsSerializer(item: LinuxPatchSettings): any { assessmentMode: item["assessmentMode"], automaticByPlatformSettings: !item["automaticByPlatformSettings"] ? item["automaticByPlatformSettings"] - : linuxVMGuestPatchAutomaticByPlatformSettingsSerializer(item["automaticByPlatformSettings"]), + : linuxVMGuestPatchAutomaticByPlatformSettingsSerializer( + item["automaticByPlatformSettings"], + ), }; } @@ -1730,7 +1817,8 @@ export function linuxVMGuestPatchAutomaticByPlatformSettingsSerializer( ): any { return { rebootSetting: item["rebootSetting"], - bypassPlatformSafetyChecksOnUserSchedule: item["bypassPlatformSafetyChecksOnUserSchedule"], + bypassPlatformSafetyChecksOnUserSchedule: + item["bypassPlatformSafetyChecksOnUserSchedule"], }; } @@ -1739,7 +1827,8 @@ export function linuxVMGuestPatchAutomaticByPlatformSettingsDeserializer( ): LinuxVMGuestPatchAutomaticByPlatformSettings { return { rebootSetting: item["rebootSetting"], - bypassPlatformSafetyChecksOnUserSchedule: item["bypassPlatformSafetyChecksOnUserSchedule"], + bypassPlatformSafetyChecksOnUserSchedule: + item["bypassPlatformSafetyChecksOnUserSchedule"], }; } @@ -1771,6 +1860,22 @@ export enum KnownLinuxVMGuestPatchAutomaticByPlatformRebootSetting { */ export type LinuxVMGuestPatchAutomaticByPlatformRebootSetting = string; +export function vaultSecretGroupArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return vaultSecretGroupSerializer(item); + }); +} + +export function vaultSecretGroupArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return vaultSecretGroupDeserializer(item); + }); +} + /** Describes a set of certificates which are all in the same Key Vault. */ export interface VaultSecretGroup { /** @@ -1820,6 +1925,22 @@ export function subResourceDeserializer(item: any): SubResource { }; } +export function vaultCertificateArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return vaultCertificateSerializer(item); + }); +} + +export function vaultCertificateArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return vaultCertificateDeserializer(item); + }); +} + /** * Describes a single certificate reference in a Key Vault, and where the * certificate should reside on the VM. @@ -1829,16 +1950,16 @@ export interface VaultCertificate { * This is the URL of a certificate that has been uploaded to Key Vault as a * secret. For adding a secret to the Key Vault, see [Add a key or secret to the * key - * vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). + * vault](https://learn.microsoft.com/azure/key-vault/key-vault-get-started/#add). * In this case, your certificate needs to be It is the Base64 encoding of the * following JSON Object which is encoded in UTF-8:

{
* "data":"",
"dataType":"pfx",
* "password":""
}
To install certificates on a virtual * machine it is recommended to use the [Azure Key Vault virtual machine extension * for - * Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) + * Linux](https://learn.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) * or the [Azure Key Vault virtual machine extension for - * Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). + * Windows](https://learn.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ certificateUrl?: string; /** @@ -1867,30 +1988,6 @@ export function vaultCertificateDeserializer(item: any): VaultCertificate { }; } -export function vaultCertificateArraySerializer(result: Array): any[] { - return result.map((item) => { - return vaultCertificateSerializer(item); - }); -} - -export function vaultCertificateArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return vaultCertificateDeserializer(item); - }); -} - -export function vaultSecretGroupArraySerializer(result: Array): any[] { - return result.map((item) => { - return vaultSecretGroupSerializer(item); - }); -} - -export function vaultSecretGroupArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return vaultSecretGroupDeserializer(item); - }); -} - /** Describes a virtual machine scale set storage profile. */ export interface VirtualMachineScaleSetStorageProfile { /** @@ -1904,14 +2001,14 @@ export interface VirtualMachineScaleSetStorageProfile { * Specifies information about the operating system disk used by the virtual * machines in the scale set. For more information about disks, see [About disks * and VHDs for Azure virtual - * machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). + * machines](https://learn.microsoft.com/azure/virtual-machines/managed-disks-overview). */ osDisk?: VirtualMachineScaleSetOSDisk; /** * Specifies the parameters that are used to add data disks to the virtual * machines in the scale set. For more information about disks, see [About disks * and VHDs for Azure virtual - * machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). + * machines](https://learn.microsoft.com/azure/virtual-machines/managed-disks-overview). */ dataDisks?: VirtualMachineScaleSetDataDisk[]; /** Specifies the disk controller type configured for the virtual machines in the scale set. Minimum api-version: 2022-08-01 */ @@ -2087,7 +2184,9 @@ export interface VirtualMachineScaleSetOSDisk { deleteOption?: DiskDeleteOptionTypes; } -export function virtualMachineScaleSetOSDiskSerializer(item: VirtualMachineScaleSetOSDisk): any { +export function virtualMachineScaleSetOSDiskSerializer( + item: VirtualMachineScaleSetOSDisk, +): any { return { name: item["name"], caching: item["caching"], @@ -2098,7 +2197,9 @@ export function virtualMachineScaleSetOSDiskSerializer(item: VirtualMachineScale : diffDiskSettingsSerializer(item["diffDiskSettings"]), diskSizeGB: item["diskSizeGB"], osType: item["osType"], - image: !item["image"] ? item["image"] : virtualHardDiskSerializer(item["image"]), + image: !item["image"] + ? item["image"] + : virtualHardDiskSerializer(item["image"]), vhdContainers: !item["vhdContainers"] ? item["vhdContainers"] : item["vhdContainers"].map((p: any) => { @@ -2106,12 +2207,16 @@ export function virtualMachineScaleSetOSDiskSerializer(item: VirtualMachineScale }), managedDisk: !item["managedDisk"] ? item["managedDisk"] - : virtualMachineScaleSetManagedDiskParametersSerializer(item["managedDisk"]), + : virtualMachineScaleSetManagedDiskParametersSerializer( + item["managedDisk"], + ), deleteOption: item["deleteOption"], }; } -export function virtualMachineScaleSetOSDiskDeserializer(item: any): VirtualMachineScaleSetOSDisk { +export function virtualMachineScaleSetOSDiskDeserializer( + item: any, +): VirtualMachineScaleSetOSDisk { return { name: item["name"], caching: item["caching"], @@ -2122,7 +2227,9 @@ export function virtualMachineScaleSetOSDiskDeserializer(item: any): VirtualMach : diffDiskSettingsDeserializer(item["diffDiskSettings"]), diskSizeGB: item["diskSizeGB"], osType: item["osType"], - image: !item["image"] ? item["image"] : virtualHardDiskDeserializer(item["image"]), + image: !item["image"] + ? item["image"] + : virtualHardDiskDeserializer(item["image"]), vhdContainers: !item["vhdContainers"] ? item["vhdContainers"] : item["vhdContainers"].map((p: any) => { @@ -2130,7 +2237,9 @@ export function virtualMachineScaleSetOSDiskDeserializer(item: any): VirtualMach }), managedDisk: !item["managedDisk"] ? item["managedDisk"] - : virtualMachineScaleSetManagedDiskParametersDeserializer(item["managedDisk"]), + : virtualMachineScaleSetManagedDiskParametersDeserializer( + item["managedDisk"], + ), deleteOption: item["deleteOption"], }; } @@ -2204,8 +2313,8 @@ export interface DiffDiskSettings { * values are: **CacheDisk,** **ResourceDisk.** The defaulting behavior is: * **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** * is used. Refer to the VM size documentation for Windows VM at - * https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at - * https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM + * https://learn.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at + * https://learn.microsoft.com/azure/virtual-machines/linux/sizes to check which VM * sizes exposes a cache disk. */ placement?: DiffDiskPlacement; @@ -2243,9 +2352,9 @@ export type DiffDiskOptions = string; * resource disk space for Ephemeral OS disk provisioning. For more information on * Ephemeral OS disk size requirements, please refer Ephemeral OS disk size * requirements for Windows VM at - * https://docs.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements + * https://learn.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements * and Linux VM at - * https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements + * https://learn.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements * Minimum api-version for NvmeDisk: 2024-03-01. */ export enum KnownDiffDiskPlacement { @@ -2263,9 +2372,9 @@ export enum KnownDiffDiskPlacement { * resource disk space for Ephemeral OS disk provisioning. For more information on * Ephemeral OS disk size requirements, please refer Ephemeral OS disk size * requirements for Windows VM at - * https://docs.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements + * https://learn.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements * and Linux VM at - * https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements + * https://learn.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements * Minimum api-version for NvmeDisk: 2024-03-01. \ * {@link KnownDiffDiskPlacement} can be used interchangeably with DiffDiskPlacement, * this enum contains the known values that the service supports. @@ -2369,25 +2478,25 @@ export function virtualMachineScaleSetManagedDiskParametersDeserializer( * zone redundant storage. StandardSSD_ZRS uses Standard SSD zone redundant * storage. For more information regarding disks supported for Windows Virtual * Machines, refer to - * https://docs.microsoft.com/azure/virtual-machines/windows/disks-types and, for + * https://learn.microsoft.com/azure/virtual-machines/windows/disks-types and, for * Linux Virtual Machines, refer to - * https://docs.microsoft.com/azure/virtual-machines/linux/disks-types + * https://learn.microsoft.com/azure/virtual-machines/linux/disks-types */ export enum KnownStorageAccountTypes { /** Standard_LRS option. */ - StandardLRS = "Standard_LRS", + Standard_LRS = "Standard_LRS", /** Premium_LRS option. */ - PremiumLRS = "Premium_LRS", + Premium_LRS = "Premium_LRS", /** StandardSSD_LRS option. */ - StandardSSDLRS = "StandardSSD_LRS", + StandardSSD_LRS = "StandardSSD_LRS", /** UltraSSD_LRS option. */ - UltraSSDLRS = "UltraSSD_LRS", + UltraSSD_LRS = "UltraSSD_LRS", /** Premium_ZRS option. */ - PremiumZRS = "Premium_ZRS", + Premium_ZRS = "Premium_ZRS", /** StandardSSD_ZRS option. */ - StandardSSDZRS = "StandardSSD_ZRS", + StandardSSD_ZRS = "StandardSSD_ZRS", /** PremiumV2_LRS option. */ - PremiumV2LRS = "PremiumV2_LRS", + PremiumV2_LRS = "PremiumV2_LRS", } /** @@ -2399,9 +2508,9 @@ export enum KnownStorageAccountTypes { * zone redundant storage. StandardSSD_ZRS uses Standard SSD zone redundant * storage. For more information regarding disks supported for Windows Virtual * Machines, refer to - * https://docs.microsoft.com/azure/virtual-machines/windows/disks-types and, for + * https://learn.microsoft.com/azure/virtual-machines/windows/disks-types and, for * Linux Virtual Machines, refer to - * https://docs.microsoft.com/azure/virtual-machines/linux/disks-types \ + * https://learn.microsoft.com/azure/virtual-machines/linux/disks-types \ * {@link KnownStorageAccountTypes} can be used interchangeably with StorageAccountTypes, * this enum contains the known values that the service supports. * ### Known values supported by the service @@ -2426,11 +2535,15 @@ export interface DiskEncryptionSetParameters { id?: string; } -export function diskEncryptionSetParametersSerializer(item: DiskEncryptionSetParameters): any { +export function diskEncryptionSetParametersSerializer( + item: DiskEncryptionSetParameters, +): any { return { id: item["id"] }; } -export function diskEncryptionSetParametersDeserializer(item: any): DiskEncryptionSetParameters { +export function diskEncryptionSetParametersDeserializer( + item: any, +): DiskEncryptionSetParameters { return { id: item["id"], }; @@ -2457,7 +2570,9 @@ export interface VMDiskSecurityProfile { diskEncryptionSet?: DiskEncryptionSetParameters; } -export function vMDiskSecurityProfileSerializer(item: VMDiskSecurityProfile): any { +export function vMDiskSecurityProfileSerializer( + item: VMDiskSecurityProfile, +): any { return { securityEncryptionType: item["securityEncryptionType"], diskEncryptionSet: !item["diskEncryptionSet"] @@ -2466,7 +2581,9 @@ export function vMDiskSecurityProfileSerializer(item: VMDiskSecurityProfile): an }; } -export function vMDiskSecurityProfileDeserializer(item: any): VMDiskSecurityProfile { +export function vMDiskSecurityProfileDeserializer( + item: any, +): VMDiskSecurityProfile { return { securityEncryptionType: item["securityEncryptionType"], diskEncryptionSet: !item["diskEncryptionSet"] @@ -2540,6 +2657,22 @@ export enum KnownDiskDeleteOptionTypes { */ export type DiskDeleteOptionTypes = string; +export function virtualMachineScaleSetDataDiskArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return virtualMachineScaleSetDataDiskSerializer(item); + }); +} + +export function virtualMachineScaleSetDataDiskArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return virtualMachineScaleSetDataDiskDeserializer(item); + }); +} + /** Describes a virtual machine scale set data disk. */ export interface VirtualMachineScaleSetDataDisk { /** The disk name. */ @@ -2604,7 +2737,9 @@ export function virtualMachineScaleSetDataDiskSerializer( diskSizeGB: item["diskSizeGB"], managedDisk: !item["managedDisk"] ? item["managedDisk"] - : virtualMachineScaleSetManagedDiskParametersSerializer(item["managedDisk"]), + : virtualMachineScaleSetManagedDiskParametersSerializer( + item["managedDisk"], + ), diskIOPSReadWrite: item["diskIOPSReadWrite"], diskMBpsReadWrite: item["diskMBpsReadWrite"], deleteOption: item["deleteOption"], @@ -2623,37 +2758,23 @@ export function virtualMachineScaleSetDataDiskDeserializer( diskSizeGB: item["diskSizeGB"], managedDisk: !item["managedDisk"] ? item["managedDisk"] - : virtualMachineScaleSetManagedDiskParametersDeserializer(item["managedDisk"]), + : virtualMachineScaleSetManagedDiskParametersDeserializer( + item["managedDisk"], + ), diskIOPSReadWrite: item["diskIOPSReadWrite"], diskMBpsReadWrite: item["diskMBpsReadWrite"], deleteOption: item["deleteOption"], }; } -export function virtualMachineScaleSetDataDiskArraySerializer( - result: Array, -): any[] { - return result.map((item) => { - return virtualMachineScaleSetDataDiskSerializer(item); - }); -} - -export function virtualMachineScaleSetDataDiskArrayDeserializer( - result: Array, -): any[] { - return result.map((item) => { - return virtualMachineScaleSetDataDiskDeserializer(item); - }); -} - /** * Specifies the disk controller type configured for the VM and * VirtualMachineScaleSet. This property is only supported for virtual machines * whose operating system disk and VM sku supports Generation 2 - * (https://docs.microsoft.com/en-us/azure/virtual-machines/generation-2), please + * (https://learn.microsoft.com/en-us/azure/virtual-machines/generation-2), please * check the HyperVGenerations capability returned as part of VM sku capabilities * in the response of Microsoft.Compute SKUs api for the region contains V2 - * (https://docs.microsoft.com/rest/api/compute/resourceskus/list). For more + * (https://learn.microsoft.com/rest/api/compute/resourceskus/list). For more * information about Disk Controller Types supported please refer to * https://aka.ms/azure-diskcontrollertypes. */ @@ -2668,10 +2789,10 @@ export enum KnownDiskControllerTypes { * Specifies the disk controller type configured for the VM and * VirtualMachineScaleSet. This property is only supported for virtual machines * whose operating system disk and VM sku supports Generation 2 - * (https://docs.microsoft.com/en-us/azure/virtual-machines/generation-2), please + * (https://learn.microsoft.com/en-us/azure/virtual-machines/generation-2), please * check the HyperVGenerations capability returned as part of VM sku capabilities * in the response of Microsoft.Compute SKUs api for the region contains V2 - * (https://docs.microsoft.com/rest/api/compute/resourceskus/list). For more + * (https://learn.microsoft.com/rest/api/compute/resourceskus/list). For more * information about Disk Controller Types supported please refer to * https://aka.ms/azure-diskcontrollertypes. \ * {@link KnownDiskControllerTypes} can be used interchangeably with DiskControllerTypes, @@ -2751,6 +2872,22 @@ export function apiEntityReferenceDeserializer(item: any): ApiEntityReference { }; } +export function virtualMachineScaleSetNetworkConfigurationArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return virtualMachineScaleSetNetworkConfigurationSerializer(item); + }); +} + +export function virtualMachineScaleSetNetworkConfigurationArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return virtualMachineScaleSetNetworkConfigurationDeserializer(item); + }); +} + /** Describes a virtual machine scale set network profile's network configurations. */ export interface VirtualMachineScaleSetNetworkConfiguration { /** The network configuration name. */ @@ -2766,7 +2903,9 @@ export function virtualMachineScaleSetNetworkConfigurationSerializer( name: item["name"], properties: !item["properties"] ? item["properties"] - : virtualMachineScaleSetNetworkConfigurationPropertiesSerializer(item["properties"]), + : virtualMachineScaleSetNetworkConfigurationPropertiesSerializer( + item["properties"], + ), }; } @@ -2777,7 +2916,9 @@ export function virtualMachineScaleSetNetworkConfigurationDeserializer( name: item["name"], properties: !item["properties"] ? item["properties"] - : virtualMachineScaleSetNetworkConfigurationPropertiesDeserializer(item["properties"]), + : virtualMachineScaleSetNetworkConfigurationPropertiesDeserializer( + item["properties"], + ), }; } @@ -2829,7 +2970,9 @@ export function virtualMachineScaleSetNetworkConfigurationPropertiesSerializer( : subResourceSerializer(item["networkSecurityGroup"]), dnsSettings: !item["dnsSettings"] ? item["dnsSettings"] - : virtualMachineScaleSetNetworkConfigurationDnsSettingsSerializer(item["dnsSettings"]), + : virtualMachineScaleSetNetworkConfigurationDnsSettingsSerializer( + item["dnsSettings"], + ), ipConfigurations: virtualMachineScaleSetIPConfigurationArraySerializer( item["ipConfigurations"], ), @@ -2853,7 +2996,9 @@ export function virtualMachineScaleSetNetworkConfigurationPropertiesDeserializer : subResourceDeserializer(item["networkSecurityGroup"]), dnsSettings: !item["dnsSettings"] ? item["dnsSettings"] - : virtualMachineScaleSetNetworkConfigurationDnsSettingsDeserializer(item["dnsSettings"]), + : virtualMachineScaleSetNetworkConfigurationDnsSettingsDeserializer( + item["dnsSettings"], + ), ipConfigurations: virtualMachineScaleSetIPConfigurationArrayDeserializer( item["ipConfigurations"], ), @@ -2894,6 +3039,22 @@ export function virtualMachineScaleSetNetworkConfigurationDnsSettingsDeserialize }; } +export function virtualMachineScaleSetIPConfigurationArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return virtualMachineScaleSetIPConfigurationSerializer(item); + }); +} + +export function virtualMachineScaleSetIPConfigurationArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return virtualMachineScaleSetIPConfigurationDeserializer(item); + }); +} + /** Describes a virtual machine scale set network profile's IP configuration. */ export interface VirtualMachineScaleSetIPConfiguration { /** The IP configuration name. */ @@ -2912,7 +3073,9 @@ export function virtualMachineScaleSetIPConfigurationSerializer( name: item["name"], properties: !item["properties"] ? item["properties"] - : virtualMachineScaleSetIPConfigurationPropertiesSerializer(item["properties"]), + : virtualMachineScaleSetIPConfigurationPropertiesSerializer( + item["properties"], + ), }; } @@ -2923,7 +3086,9 @@ export function virtualMachineScaleSetIPConfigurationDeserializer( name: item["name"], properties: !item["properties"] ? item["properties"] - : virtualMachineScaleSetIPConfigurationPropertiesDeserializer(item["properties"]), + : virtualMachineScaleSetIPConfigurationPropertiesDeserializer( + item["properties"], + ), }; } @@ -2974,7 +3139,9 @@ export function virtualMachineScaleSetIPConfigurationPropertiesSerializer( item: VirtualMachineScaleSetIPConfigurationProperties, ): any { return { - subnet: !item["subnet"] ? item["subnet"] : apiEntityReferenceSerializer(item["subnet"]), + subnet: !item["subnet"] + ? item["subnet"] + : apiEntityReferenceSerializer(item["subnet"]), primary: item["primary"], publicIPAddressConfiguration: !item["publicIPAddressConfiguration"] ? item["publicIPAddressConfiguration"] @@ -2982,9 +3149,13 @@ export function virtualMachineScaleSetIPConfigurationPropertiesSerializer( item["publicIPAddressConfiguration"], ), privateIPAddressVersion: item["privateIPAddressVersion"], - applicationGatewayBackendAddressPools: !item["applicationGatewayBackendAddressPools"] + applicationGatewayBackendAddressPools: !item[ + "applicationGatewayBackendAddressPools" + ] ? item["applicationGatewayBackendAddressPools"] - : subResourceArraySerializer(item["applicationGatewayBackendAddressPools"]), + : subResourceArraySerializer( + item["applicationGatewayBackendAddressPools"], + ), applicationSecurityGroups: !item["applicationSecurityGroups"] ? item["applicationSecurityGroups"] : subResourceArraySerializer(item["applicationSecurityGroups"]), @@ -3001,7 +3172,9 @@ export function virtualMachineScaleSetIPConfigurationPropertiesDeserializer( item: any, ): VirtualMachineScaleSetIPConfigurationProperties { return { - subnet: !item["subnet"] ? item["subnet"] : apiEntityReferenceDeserializer(item["subnet"]), + subnet: !item["subnet"] + ? item["subnet"] + : apiEntityReferenceDeserializer(item["subnet"]), primary: item["primary"], publicIPAddressConfiguration: !item["publicIPAddressConfiguration"] ? item["publicIPAddressConfiguration"] @@ -3009,9 +3182,13 @@ export function virtualMachineScaleSetIPConfigurationPropertiesDeserializer( item["publicIPAddressConfiguration"], ), privateIPAddressVersion: item["privateIPAddressVersion"], - applicationGatewayBackendAddressPools: !item["applicationGatewayBackendAddressPools"] + applicationGatewayBackendAddressPools: !item[ + "applicationGatewayBackendAddressPools" + ] ? item["applicationGatewayBackendAddressPools"] - : subResourceArrayDeserializer(item["applicationGatewayBackendAddressPools"]), + : subResourceArrayDeserializer( + item["applicationGatewayBackendAddressPools"], + ), applicationSecurityGroups: !item["applicationSecurityGroups"] ? item["applicationSecurityGroups"] : subResourceArrayDeserializer(item["applicationSecurityGroups"]), @@ -3050,7 +3227,9 @@ export function virtualMachineScaleSetPublicIPAddressConfigurationSerializer( name: item["name"], properties: !item["properties"] ? item["properties"] - : virtualMachineScaleSetPublicIPAddressConfigurationPropertiesSerializer(item["properties"]), + : virtualMachineScaleSetPublicIPAddressConfigurationPropertiesSerializer( + item["properties"], + ), sku: !item["sku"] ? item["sku"] : publicIPAddressSkuSerializer(item["sku"]), }; } @@ -3065,7 +3244,9 @@ export function virtualMachineScaleSetPublicIPAddressConfigurationDeserializer( : virtualMachineScaleSetPublicIPAddressConfigurationPropertiesDeserializer( item["properties"], ), - sku: !item["sku"] ? item["sku"] : publicIPAddressSkuDeserializer(item["sku"]), + sku: !item["sku"] + ? item["sku"] + : publicIPAddressSkuDeserializer(item["sku"]), }; } @@ -3201,6 +3382,22 @@ export enum KnownDomainNameLabelScopeTypes { */ export type DomainNameLabelScopeTypes = string; +export function virtualMachineScaleSetIpTagArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return virtualMachineScaleSetIpTagSerializer(item); + }); +} + +export function virtualMachineScaleSetIpTagArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return virtualMachineScaleSetIpTagDeserializer(item); + }); +} + /** Contains the IP tag associated with the public IP address. */ export interface VirtualMachineScaleSetIpTag { /** IP tag type. Example: FirstPartyUsage. */ @@ -3209,33 +3406,21 @@ export interface VirtualMachineScaleSetIpTag { tag?: string; } -export function virtualMachineScaleSetIpTagSerializer(item: VirtualMachineScaleSetIpTag): any { +export function virtualMachineScaleSetIpTagSerializer( + item: VirtualMachineScaleSetIpTag, +): any { return { ipTagType: item["ipTagType"], tag: item["tag"] }; } -export function virtualMachineScaleSetIpTagDeserializer(item: any): VirtualMachineScaleSetIpTag { +export function virtualMachineScaleSetIpTagDeserializer( + item: any, +): VirtualMachineScaleSetIpTag { return { ipTagType: item["ipTagType"], tag: item["tag"], }; } -export function virtualMachineScaleSetIpTagArraySerializer( - result: Array, -): any[] { - return result.map((item) => { - return virtualMachineScaleSetIpTagSerializer(item); - }); -} - -export function virtualMachineScaleSetIpTagArrayDeserializer( - result: Array, -): any[] { - return result.map((item) => { - return virtualMachineScaleSetIpTagDeserializer(item); - }); -} - /** * Available from Api-Version 2017-03-30 onwards, it represents whether the * specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible @@ -3342,25 +3527,11 @@ export function subResourceArraySerializer(result: Array): any[] { }); } -export function subResourceArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return subResourceDeserializer(item); - }); -} - -export function virtualMachineScaleSetIPConfigurationArraySerializer( - result: Array, -): any[] { - return result.map((item) => { - return virtualMachineScaleSetIPConfigurationSerializer(item); - }); -} - -export function virtualMachineScaleSetIPConfigurationArrayDeserializer( - result: Array, +export function subResourceArrayDeserializer( + result: Array, ): any[] { return result.map((item) => { - return virtualMachineScaleSetIPConfigurationDeserializer(item); + return subResourceDeserializer(item); }); } @@ -3420,22 +3591,6 @@ export enum KnownNetworkInterfaceAuxiliarySku { */ export type NetworkInterfaceAuxiliarySku = string; -export function virtualMachineScaleSetNetworkConfigurationArraySerializer( - result: Array, -): any[] { - return result.map((item) => { - return virtualMachineScaleSetNetworkConfigurationSerializer(item); - }); -} - -export function virtualMachineScaleSetNetworkConfigurationArrayDeserializer( - result: Array, -): any[] { - return result.map((item) => { - return virtualMachineScaleSetNetworkConfigurationDeserializer(item); - }); -} - /** * specifies the Microsoft.Network API version used when creating networking * resources in the Network Interface Configurations for Virtual Machine Scale Set @@ -3443,7 +3598,7 @@ export function virtualMachineScaleSetNetworkConfigurationArrayDeserializer( */ export enum KnownNetworkApiVersion { /** Initial version supported. Later versions are supported as well. */ - V20201101 = "2020-11-01", + v2020_11_01 = "2020-11-01", } /** @@ -3758,6 +3913,22 @@ export function virtualMachineScaleSetExtensionProfileDeserializer( }; } +export function virtualMachineScaleSetExtensionArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return virtualMachineScaleSetExtensionSerializer(item); + }); +} + +export function virtualMachineScaleSetExtensionArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return virtualMachineScaleSetExtensionDeserializer(item); + }); +} + /** Describes a Virtual Machine Scale Set Extension. */ export interface VirtualMachineScaleSetExtension { /** Resource Id */ @@ -3790,7 +3961,9 @@ export function virtualMachineScaleSetExtensionDeserializer( type: item["type"], properties: !item["properties"] ? item["properties"] - : virtualMachineScaleSetExtensionPropertiesDeserializer(item["properties"]), + : virtualMachineScaleSetExtensionPropertiesDeserializer( + item["properties"], + ), }; } @@ -3866,7 +4039,9 @@ export function virtualMachineScaleSetExtensionPropertiesSerializer( suppressFailures: item["suppressFailures"], protectedSettingsFromKeyVault: !item["protectedSettingsFromKeyVault"] ? item["protectedSettingsFromKeyVault"] - : keyVaultSecretReferenceSerializer(item["protectedSettingsFromKeyVault"]), + : keyVaultSecretReferenceSerializer( + item["protectedSettingsFromKeyVault"], + ), }; } @@ -3891,7 +4066,9 @@ export function virtualMachineScaleSetExtensionPropertiesDeserializer( suppressFailures: item["suppressFailures"], protectedSettingsFromKeyVault: !item["protectedSettingsFromKeyVault"] ? item["protectedSettingsFromKeyVault"] - : keyVaultSecretReferenceDeserializer(item["protectedSettingsFromKeyVault"]), + : keyVaultSecretReferenceDeserializer( + item["protectedSettingsFromKeyVault"], + ), }; } @@ -3903,36 +4080,24 @@ export interface KeyVaultSecretReference { sourceVault: SubResource; } -export function keyVaultSecretReferenceSerializer(item: KeyVaultSecretReference): any { +export function keyVaultSecretReferenceSerializer( + item: KeyVaultSecretReference, +): any { return { secretUrl: item["secretUrl"], sourceVault: subResourceSerializer(item["sourceVault"]), }; } -export function keyVaultSecretReferenceDeserializer(item: any): KeyVaultSecretReference { +export function keyVaultSecretReferenceDeserializer( + item: any, +): KeyVaultSecretReference { return { secretUrl: item["secretUrl"], sourceVault: subResourceDeserializer(item["sourceVault"]), }; } -export function virtualMachineScaleSetExtensionArraySerializer( - result: Array, -): any[] { - return result.map((item) => { - return virtualMachineScaleSetExtensionSerializer(item); - }); -} - -export function virtualMachineScaleSetExtensionArrayDeserializer( - result: Array, -): any[] { - return result.map((item) => { - return virtualMachineScaleSetExtensionDeserializer(item); - }); -} - /** Specifies Scheduled Event related configurations. */ export interface ScheduledEventsProfile { /** Specifies Terminate Scheduled Event related configurations. */ @@ -3941,25 +4106,37 @@ export interface ScheduledEventsProfile { osImageNotificationProfile?: OSImageNotificationProfile; } -export function scheduledEventsProfileSerializer(item: ScheduledEventsProfile): any { +export function scheduledEventsProfileSerializer( + item: ScheduledEventsProfile, +): any { return { terminateNotificationProfile: !item["terminateNotificationProfile"] ? item["terminateNotificationProfile"] - : terminateNotificationProfileSerializer(item["terminateNotificationProfile"]), + : terminateNotificationProfileSerializer( + item["terminateNotificationProfile"], + ), osImageNotificationProfile: !item["osImageNotificationProfile"] ? item["osImageNotificationProfile"] - : oSImageNotificationProfileSerializer(item["osImageNotificationProfile"]), + : oSImageNotificationProfileSerializer( + item["osImageNotificationProfile"], + ), }; } -export function scheduledEventsProfileDeserializer(item: any): ScheduledEventsProfile { +export function scheduledEventsProfileDeserializer( + item: any, +): ScheduledEventsProfile { return { terminateNotificationProfile: !item["terminateNotificationProfile"] ? item["terminateNotificationProfile"] - : terminateNotificationProfileDeserializer(item["terminateNotificationProfile"]), + : terminateNotificationProfileDeserializer( + item["terminateNotificationProfile"], + ), osImageNotificationProfile: !item["osImageNotificationProfile"] ? item["osImageNotificationProfile"] - : oSImageNotificationProfileDeserializer(item["osImageNotificationProfile"]), + : oSImageNotificationProfileDeserializer( + item["osImageNotificationProfile"], + ), }; } @@ -3976,11 +4153,15 @@ export interface TerminateNotificationProfile { enable?: boolean; } -export function terminateNotificationProfileSerializer(item: TerminateNotificationProfile): any { +export function terminateNotificationProfileSerializer( + item: TerminateNotificationProfile, +): any { return { notBeforeTimeout: item["notBeforeTimeout"], enable: item["enable"] }; } -export function terminateNotificationProfileDeserializer(item: any): TerminateNotificationProfile { +export function terminateNotificationProfileDeserializer( + item: any, +): TerminateNotificationProfile { return { notBeforeTimeout: item["notBeforeTimeout"], enable: item["enable"], @@ -4000,11 +4181,15 @@ export interface OSImageNotificationProfile { enable?: boolean; } -export function oSImageNotificationProfileSerializer(item: OSImageNotificationProfile): any { +export function oSImageNotificationProfileSerializer( + item: OSImageNotificationProfile, +): any { return { notBeforeTimeout: item["notBeforeTimeout"], enable: item["enable"] }; } -export function oSImageNotificationProfileDeserializer(item: any): OSImageNotificationProfile { +export function oSImageNotificationProfileDeserializer( + item: any, +): OSImageNotificationProfile { return { notBeforeTimeout: item["notBeforeTimeout"], enable: item["enable"], @@ -4022,7 +4207,9 @@ export interface CapacityReservationProfile { capacityReservationGroup?: SubResource; } -export function capacityReservationProfileSerializer(item: CapacityReservationProfile): any { +export function capacityReservationProfileSerializer( + item: CapacityReservationProfile, +): any { return { capacityReservationGroup: !item["capacityReservationGroup"] ? item["capacityReservationGroup"] @@ -4030,7 +4217,9 @@ export function capacityReservationProfileSerializer(item: CapacityReservationPr }; } -export function capacityReservationProfileDeserializer(item: any): CapacityReservationProfile { +export function capacityReservationProfileDeserializer( + item: any, +): CapacityReservationProfile { return { capacityReservationGroup: !item["capacityReservationGroup"] ? item["capacityReservationGroup"] @@ -4063,6 +4252,22 @@ export function applicationProfileDeserializer(item: any): ApplicationProfile { }; } +export function vMGalleryApplicationArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return vMGalleryApplicationSerializer(item); + }); +} + +export function vMGalleryApplicationArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return vMGalleryApplicationDeserializer(item); + }); +} + /** * Specifies the required information to reference a compute gallery application * version @@ -4094,7 +4299,9 @@ export interface VMGalleryApplication { enableAutomaticUpgrade?: boolean; } -export function vMGalleryApplicationSerializer(item: VMGalleryApplication): any { +export function vMGalleryApplicationSerializer( + item: VMGalleryApplication, +): any { return { tags: item["tags"], order: item["order"], @@ -4105,7 +4312,9 @@ export function vMGalleryApplicationSerializer(item: VMGalleryApplication): any }; } -export function vMGalleryApplicationDeserializer(item: any): VMGalleryApplication { +export function vMGalleryApplicationDeserializer( + item: any, +): VMGalleryApplication { return { tags: item["tags"], order: item["order"], @@ -4116,18 +4325,6 @@ export function vMGalleryApplicationDeserializer(item: any): VMGalleryApplicatio }; } -export function vMGalleryApplicationArraySerializer(result: Array): any[] { - return result.map((item) => { - return vMGalleryApplicationSerializer(item); - }); -} - -export function vMGalleryApplicationArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return vMGalleryApplicationDeserializer(item); - }); -} - /** Specifies the hardware settings for the virtual machine scale set. */ export interface VirtualMachineScaleSetHardwareProfile { /** @@ -4165,7 +4362,7 @@ export interface VMSizeProperties { * specified in the request body the default behavior is to set it to the value of * vCPUs available for that VM size exposed in api response of [List all available * virtual machine sizes in a - * region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list). + * region](https://learn.microsoft.com/en-us/rest/api/compute/resource-skus/list). */ vCPUsAvailable?: number; /** @@ -4173,7 +4370,7 @@ export interface VMSizeProperties { * in the request body the default behavior is set to the value of vCPUsPerCore * for the VM Size exposed in api response of [List all available virtual machine * sizes in a - * region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list). + * region](https://learn.microsoft.com/en-us/rest/api/compute/resource-skus/list). * **Setting this property to 1 also means that hyper-threading is disabled.** */ vCPUsPerCore?: number; @@ -4206,11 +4403,15 @@ export interface ServiceArtifactReference { id?: string; } -export function serviceArtifactReferenceSerializer(item: ServiceArtifactReference): any { +export function serviceArtifactReferenceSerializer( + item: ServiceArtifactReference, +): any { return { id: item["id"] }; } -export function serviceArtifactReferenceDeserializer(item: any): ServiceArtifactReference { +export function serviceArtifactReferenceDeserializer( + item: any, +): ServiceArtifactReference { return { id: item["id"], }; @@ -4235,7 +4436,9 @@ export interface SecurityPostureReference { isOverridable?: boolean; } -export function securityPostureReferenceSerializer(item: SecurityPostureReference): any { +export function securityPostureReferenceSerializer( + item: SecurityPostureReference, +): any { return { id: item["id"], excludeExtensions: !item["excludeExtensions"] @@ -4247,7 +4450,9 @@ export function securityPostureReferenceSerializer(item: SecurityPostureReferenc }; } -export function securityPostureReferenceDeserializer(item: any): SecurityPostureReference { +export function securityPostureReferenceDeserializer( + item: any, +): SecurityPostureReference { return { id: item["id"], excludeExtensions: !item["excludeExtensions"] @@ -4259,18 +4464,6 @@ export function securityPostureReferenceDeserializer(item: any): SecurityPosture }; } -export function locationProfileArraySerializer(result: Array): any[] { - return result.map((item) => { - return locationProfileSerializer(item); - }); -} - -export function locationProfileArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return locationProfileDeserializer(item); - }); -} - /** Compute Profile to use for running user's workloads. */ export interface ComputeProfile { /** Base Virtual Machine Profile Properties to be specified according to "specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/{computeApiVersion}/virtualMachineScaleSet.json#/definitions/VirtualMachineScaleSetVMProfile" */ @@ -4304,9 +4497,13 @@ export function computeProfileSerializer(item: ComputeProfile): any { ), computeApiVersion: item["computeApiVersion"], platformFaultDomainCount: item["platformFaultDomainCount"], - additionalVirtualMachineCapabilities: !item["additionalVirtualMachineCapabilities"] + additionalVirtualMachineCapabilities: !item[ + "additionalVirtualMachineCapabilities" + ] ? item["additionalVirtualMachineCapabilities"] - : additionalCapabilitiesSerializer(item["additionalVirtualMachineCapabilities"]), + : additionalCapabilitiesSerializer( + item["additionalVirtualMachineCapabilities"], + ), }; } @@ -4317,9 +4514,13 @@ export function computeProfileDeserializer(item: any): ComputeProfile { ), computeApiVersion: item["computeApiVersion"], platformFaultDomainCount: item["platformFaultDomainCount"], - additionalVirtualMachineCapabilities: !item["additionalVirtualMachineCapabilities"] + additionalVirtualMachineCapabilities: !item[ + "additionalVirtualMachineCapabilities" + ] ? item["additionalVirtualMachineCapabilities"] - : additionalCapabilitiesDeserializer(item["additionalVirtualMachineCapabilities"]), + : additionalCapabilitiesDeserializer( + item["additionalVirtualMachineCapabilities"], + ), }; } @@ -4334,14 +4535,18 @@ export interface AdditionalCapabilities { hibernationEnabled?: boolean; } -export function additionalCapabilitiesSerializer(item: AdditionalCapabilities): any { +export function additionalCapabilitiesSerializer( + item: AdditionalCapabilities, +): any { return { ultraSSDEnabled: item["ultraSSDEnabled"], hibernationEnabled: item["hibernationEnabled"], }; } -export function additionalCapabilitiesDeserializer(item: any): AdditionalCapabilities { +export function additionalCapabilitiesDeserializer( + item: any, +): AdditionalCapabilities { return { ultraSSDEnabled: item["ultraSSDEnabled"], hibernationEnabled: item["hibernationEnabled"], @@ -4360,14 +4565,18 @@ export interface ManagedServiceIdentity { userAssignedIdentities?: Record; } -export function managedServiceIdentitySerializer(item: ManagedServiceIdentity): any { +export function managedServiceIdentitySerializer( + item: ManagedServiceIdentity, +): any { return { type: item["type"], userAssignedIdentities: item["userAssignedIdentities"], }; } -export function managedServiceIdentityDeserializer(item: any): ManagedServiceIdentity { +export function managedServiceIdentityDeserializer( + item: any, +): ManagedServiceIdentity { return { principalId: item["principalId"], tenantId: item["tenantId"], @@ -4385,7 +4594,7 @@ export enum KnownManagedServiceIdentityType { /** User assigned managed identity. */ UserAssigned = "UserAssigned", /** System and user assigned managed identity. */ - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", + "SystemAssigned,UserAssigned" = "SystemAssigned,UserAssigned", } /** @@ -4408,11 +4617,15 @@ export interface UserAssignedIdentity { readonly clientId?: string; } -export function userAssignedIdentitySerializer(item: UserAssignedIdentity): any { +export function userAssignedIdentitySerializer( + item: UserAssignedIdentity, +): any { return item; } -export function userAssignedIdentityDeserializer(item: any): UserAssignedIdentity { +export function userAssignedIdentityDeserializer( + item: any, +): UserAssignedIdentity { return { principalId: item["principalId"], clientId: item["clientId"], @@ -4525,7 +4738,9 @@ export function systemDataDeserializer(item: any): SystemData { return { createdBy: item["createdBy"], createdByType: item["createdByType"], - createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"]), + createdAt: !item["createdAt"] + ? item["createdAt"] + : new Date(item["createdAt"]), lastModifiedBy: item["lastModifiedBy"], lastModifiedByType: item["lastModifiedByType"], lastModifiedAt: !item["lastModifiedAt"] @@ -4558,6 +4773,92 @@ export enum KnownCreatedByType { */ export type CreatedByType = string; +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + +export function errorResponseDeserializer(item: any): ErrorResponse { + return { + error: !item["error"] + ? item["error"] + : errorDetailDeserializer(item["error"]), + }; +} + +/** The error detail. */ +export interface ErrorDetail { + /** The error code. */ + readonly code?: string; + /** The error message. */ + readonly message?: string; + /** The error target. */ + readonly target?: string; + /** The error details. */ + readonly details?: ErrorDetail[]; + /** The error additional info. */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +export function errorDetailDeserializer(item: any): ErrorDetail { + return { + code: item["code"], + message: item["message"], + target: item["target"], + details: !item["details"] + ? item["details"] + : errorDetailArrayDeserializer(item["details"]), + additionalInfo: !item["additionalInfo"] + ? item["additionalInfo"] + : errorAdditionalInfoArrayDeserializer(item["additionalInfo"]), + }; +} + +export function errorDetailArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return errorDetailDeserializer(item); + }); +} + +export function errorAdditionalInfoArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return errorAdditionalInfoDeserializer(item); + }); +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** The additional info type. */ + readonly type?: string; + /** The additional info. */ + readonly info?: Record; +} + +export function errorAdditionalInfoDeserializer( + item: any, +): ErrorAdditionalInfo { + return { + type: item["type"], + info: !item["info"] + ? item["info"] + : _errorAdditionalInfoInfoDeserializer(item["info"]), + }; +} + +/** model interface _ErrorAdditionalInfoInfo */ +export interface _ErrorAdditionalInfoInfo {} + +export function _errorAdditionalInfoInfoDeserializer( + item: any, +): _ErrorAdditionalInfoInfo { + return item; +} + /** Fleet Update Model */ export interface FleetUpdate { /** Resource tags. */ @@ -4576,7 +4877,9 @@ export function fleetUpdateSerializer(item: FleetUpdate): any { identity: !item["identity"] ? item["identity"] : managedServiceIdentityUpdateSerializer(item["identity"]), - plan: !item["plan"] ? item["plan"] : resourcePlanUpdateSerializer(item["plan"]), + plan: !item["plan"] + ? item["plan"] + : resourcePlanUpdateSerializer(item["plan"]), properties: !item["properties"] ? item["properties"] : fleetPropertiesSerializer(item["properties"]), @@ -4591,7 +4894,9 @@ export interface ManagedServiceIdentityUpdate { userAssignedIdentities?: Record; } -export function managedServiceIdentityUpdateSerializer(item: ManagedServiceIdentityUpdate): any { +export function managedServiceIdentityUpdateSerializer( + item: ManagedServiceIdentityUpdate, +): any { return { type: item["type"], userAssignedIdentities: item["userAssignedIdentities"], @@ -4666,6 +4971,14 @@ export function _virtualMachineScaleSetListResultDeserializer( }; } +export function virtualMachineScaleSetArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return virtualMachineScaleSetDeserializer(item); + }); +} + /** An AzureFleet's virtualMachineScaleSet */ export interface VirtualMachineScaleSet { /** @@ -4681,11 +4994,13 @@ export interface VirtualMachineScaleSet { readonly error?: ApiError; } -export function virtualMachineScaleSetDeserializer(item: any): VirtualMachineScaleSet { +export function virtualMachineScaleSetDeserializer( + item: any, +): VirtualMachineScaleSet { return { id: item["id"], type: item["type"], - operationStatus: provisioningStateDeserializer(item["operationStatus"]), + operationStatus: item["operationStatus"], error: !item["error"] ? item["error"] : apiErrorDeserializer(item["error"]), }; } @@ -4709,13 +5024,23 @@ export function apiErrorDeserializer(item: any): ApiError { code: item["code"], target: item["target"], message: item["message"], - details: !item["details"] ? item["details"] : apiErrorBaseArrayDeserializer(item["details"]), + details: !item["details"] + ? item["details"] + : apiErrorBaseArrayDeserializer(item["details"]), innererror: !item["innererror"] ? item["innererror"] : innerErrorDeserializer(item["innererror"]), }; } +export function apiErrorBaseArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return apiErrorBaseDeserializer(item); + }); +} + /** API error base. */ export interface ApiErrorBase { /** The error code. */ @@ -4734,12 +5059,6 @@ export function apiErrorBaseDeserializer(item: any): ApiErrorBase { }; } -export function apiErrorBaseArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return apiErrorBaseDeserializer(item); - }); -} - /** Inner error details. */ export interface InnerError { /** The exception type. */ @@ -4755,14 +5074,6 @@ export function innerErrorDeserializer(item: any): InnerError { }; } -export function virtualMachineScaleSetArrayDeserializer( - result: Array, -): any[] { - return result.map((item) => { - return virtualMachineScaleSetDeserializer(item); - }); -} - /** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ export interface _OperationListResult { /** The Operation items on this page */ @@ -4771,13 +5082,21 @@ export interface _OperationListResult { nextLink?: string; } -export function _operationListResultDeserializer(item: any): _OperationListResult { +export function _operationListResultDeserializer( + item: any, +): _OperationListResult { return { value: operationArrayDeserializer(item["value"]), nextLink: item["nextLink"], }; } +export function operationArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return operationDeserializer(item); + }); +} + /** Details of a REST API operation, returned from the Resource Provider Operations API */ export interface Operation { /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ @@ -4796,7 +5115,9 @@ export function operationDeserializer(item: any): Operation { return { name: item["name"], isDataAction: item["isDataAction"], - display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]), + display: !item["display"] + ? item["display"] + : operationDisplayDeserializer(item["display"]), origin: item["origin"], actionType: item["actionType"], }; @@ -4826,11 +5147,11 @@ export function operationDisplayDeserializer(item: any): OperationDisplay { /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ export enum KnownOrigin { /** Indicates the operation is initiated by a user. */ - User = "user", + user = "user", /** Indicates the operation is initiated by a system. */ - System = "system", + system = "system", /** Indicates the operation is initiated by a user or system. */ - UserSystem = "user,system", + "user,system" = "user,system", } /** @@ -4859,8 +5180,8 @@ export enum KnownActionType { */ export type ActionType = string; -export function operationArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return operationDeserializer(item); - }); +/** Api versions */ +export enum KnownVersions { + /** Public Api version */ + v2024_11_01 = "2024-11-01", } diff --git a/sdk/computefleet/arm-computefleet/src/restorePollerHelpers.ts b/sdk/computefleet/arm-computefleet/src/restorePollerHelpers.ts index bcb23e98509d..d085036adaed 100644 --- a/sdk/computefleet/arm-computefleet/src/restorePollerHelpers.ts +++ b/sdk/computefleet/arm-computefleet/src/restorePollerHelpers.ts @@ -8,7 +8,10 @@ import { _fleetsDeleteDeserialize, } from "./api/fleets/index.js"; import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js"; -import { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client"; +import { + OperationOptions, + PathUncheckedResponse, +} from "@azure-rest/core-client"; import { AbortSignalLike } from "@azure/abort-controller"; import { PollerLike, @@ -39,7 +42,9 @@ export interface RestorePollerOptions< export function restorePoller( client: AzureFleetClient, serializedState: string, - sourceOperation: (...args: any[]) => PollerLike, TResult>, + sourceOperation: ( + ...args: any[] + ) => PollerLike, TResult>, options?: RestorePollerOptions, ): PollerLike, TResult> { const pollerConfig = deserializeState(serializedState).config; @@ -123,17 +128,24 @@ function getDeserializationHelper( // track if we have found a match to return the values found. let found = true; - for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { - if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) { + for ( + let i = candidateParts.length - 1, j = pathParts.length - 1; + i >= 1 && j >= 1; + i--, j-- + ) { + if ( + candidateParts[i]?.startsWith("{") && + candidateParts[i]?.indexOf("}") !== -1 + ) { const start = candidateParts[i]!.indexOf("}") + 1, end = candidateParts[i]?.length; // If the current part of the candidate is a "template" part // Try to use the suffix of pattern to match the path // {guid} ==> $ // {guid}:export ==> :export$ - const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "", - ); + const isMatched = new RegExp( + `${candidateParts[i]?.slice(start, end)}`, + ).test(pathParts[j] || ""); if (!isMatched) { found = false; diff --git a/sdk/computefleet/arm-computefleet/src/static-helpers/pagingHelpers.ts b/sdk/computefleet/arm-computefleet/src/static-helpers/pagingHelpers.ts index ce33af5f4178..97a81e74e301 100644 --- a/sdk/computefleet/arm-computefleet/src/static-helpers/pagingHelpers.ts +++ b/sdk/computefleet/arm-computefleet/src/static-helpers/pagingHelpers.ts @@ -1,7 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { Client, createRestError, PathUncheckedResponse } from "@azure-rest/core-client"; +import { + Client, + createRestError, + PathUncheckedResponse, +} from "@azure-rest/core-client"; import { RestError } from "@azure/core-rest-pipeline"; /** @@ -39,11 +43,17 @@ export interface PagedAsyncIterableIterator< /** * The connection to the async iterator, part of the iteration protocol */ - [Symbol.asyncIterator](): PagedAsyncIterableIterator; + [Symbol.asyncIterator](): PagedAsyncIterableIterator< + TElement, + TPage, + TPageSettings + >; /** * Return an AsyncIterableIterator that works a page at a time */ - byPage: (settings?: TPageSettings) => AsyncIterableIterator>; + byPage: ( + settings?: TPageSettings, + ) => AsyncIterableIterator>; } /** @@ -61,11 +71,15 @@ export interface PagedResult< /** * A method that returns a page of results. */ - getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>; + getPage: ( + pageLink?: string, + ) => Promise<{ page: TPage; nextPageLink?: string } | undefined>; /** * a function to implement the `byPage` method on the paged async iterator. */ - byPage?: (settings?: TPageSettings) => AsyncIterableIterator>; + byPage?: ( + settings?: TPageSettings, + ) => AsyncIterableIterator>; /** * A function to extract elements from a page. @@ -138,7 +152,9 @@ function getPagedAsyncIterator< >( pagedResult: PagedResult, ): PagedAsyncIterableIterator { - const iter = getItemAsyncIterator(pagedResult); + const iter = getItemAsyncIterator( + pagedResult, + ); return { next() { return iter.next(); @@ -157,7 +173,11 @@ function getPagedAsyncIterator< }; } -async function* getItemAsyncIterator( +async function* getItemAsyncIterator< + TElement, + TPage, + TPageSettings extends PageSettings, +>( pagedResult: PagedResult, ): AsyncIterableIterator { const pages = getPageAsyncIterator(pagedResult); @@ -166,14 +186,20 @@ async function* getItemAsyncIterator( +async function* getPageAsyncIterator< + TElement, + TPage, + TPageSettings extends PageSettings, +>( pagedResult: PagedResult, options: { pageLink?: string; } = {}, ): AsyncIterableIterator> { const { pageLink } = options; - let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink); + let response = await pagedResult.getPage( + pageLink ?? pagedResult.firstPageLink, + ); if (!response) { return; } @@ -201,7 +227,11 @@ function getNextLink(body: unknown, nextLinkName?: string): string | undefined { const nextLink = (body as Record)[nextLinkName]; - if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) { + if ( + typeof nextLink !== "string" && + typeof nextLink !== "undefined" && + nextLink !== null + ) { throw new RestError( `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`, ); @@ -231,7 +261,10 @@ function getElements(body: unknown, itemName: string): T[] { /** * Checks if a request failed */ -function checkPagingRequest(response: PathUncheckedResponse, expectedStatuses: string[]): void { +function checkPagingRequest( + response: PathUncheckedResponse, + expectedStatuses: string[], +): void { if (!expectedStatuses.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, diff --git a/sdk/computefleet/arm-computefleet/src/static-helpers/pollingHelpers.ts b/sdk/computefleet/arm-computefleet/src/static-helpers/pollingHelpers.ts index f01c41bab69d..2edbf783be53 100644 --- a/sdk/computefleet/arm-computefleet/src/static-helpers/pollingHelpers.ts +++ b/sdk/computefleet/arm-computefleet/src/static-helpers/pollingHelpers.ts @@ -10,7 +10,11 @@ import { OperationResponse, } from "@azure/core-lro"; -import { Client, PathUncheckedResponse, createRestError } from "@azure-rest/core-client"; +import { + Client, + PathUncheckedResponse, + createRestError, +} from "@azure-rest/core-client"; import { AbortSignalLike } from "@azure/abort-controller"; export interface GetLongRunningPollerOptions { @@ -38,7 +42,10 @@ export interface GetLongRunningPollerOptions { */ getInitialResponse?: () => PromiseLike; } -export function getLongRunningPoller( +export function getLongRunningPoller< + TResponse extends PathUncheckedResponse, + TResult = void, +>( client: Client, processResponseBody: (result: TResponse) => Promise, expectedStatuses: string[], @@ -46,14 +53,18 @@ export function getLongRunningPoller, TResult> { const { restoreFrom, getInitialResponse } = options; if (!restoreFrom && !getInitialResponse) { - throw new Error("Either restoreFrom or getInitialResponse must be specified"); + throw new Error( + "Either restoreFrom or getInitialResponse must be specified", + ); } let initialResponse: TResponse | undefined = undefined; const pollAbortController = new AbortController(); const poller: RunningOperation = { sendInitialRequest: async () => { if (!getInitialResponse) { - throw new Error("getInitialResponse is required when initializing a new poller"); + throw new Error( + "getInitialResponse is required when initializing a new poller", + ); } initialResponse = await getInitialResponse(); return getLroResponse(initialResponse, expectedStatuses); diff --git a/sdk/computefleet/arm-computefleet/test/public/computefleet_operations_test.spec.ts b/sdk/computefleet/arm-computefleet/test/public/computefleet_operations_test.spec.ts deleted file mode 100644 index d5aba170985c..000000000000 --- a/sdk/computefleet/arm-computefleet/test/public/computefleet_operations_test.spec.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { env, Recorder, isPlaybackMode } from "@azure-tools/test-recorder"; -import { createTestCredential } from "@azure-tools/test-credential"; -import { assert, beforeEach, afterEach, it, describe } from "vitest"; -import { createRecorder } from "./utils/recordedClient.js"; -import { AzureFleetClient } from "../../src/azureFleetClient.js"; - -export const testPollingOptions = { - updateIntervalInMs: isPlaybackMode() ? 0 : undefined, -}; - -describe("AzureFleet test", () => { - let recorder: Recorder; - let subscriptionId: string; - let client: AzureFleetClient; - let location: string; - let resourceGroup: string; - let resourcename: string; - - beforeEach(async (context) => { - process.env.SystemRoot = process.env.SystemRoot || "C:\\Windows"; - recorder = await createRecorder(context); - subscriptionId = env.SUBSCRIPTION_ID || ""; - // This is an example of how the environment variables are used - const credential = createTestCredential(); - client = new AzureFleetClient(credential, subscriptionId, recorder.configureClientOptions({})); - location = "eastus2euap"; - resourceGroup = "myjstest"; - resourcename = "resourcetest"; - }); - - afterEach(async function () { - if (recorder?.recordingId) { - await recorder.stop(); - } - }); - - // first create a networkSecurityGroups named "testnsg" with eastus2euap on portal - // second create a virtual network named "czwtestvn" with eastus2euap and config the ip address as 172.16.0.0/16 when creating a vitrual network on portal - // third create a subnet named "testsub" and before click add button, enable private subnet and link to networkSecurityGroups - it("fleets create test", async function () { - const res = await client.fleets.createOrUpdate( - resourceGroup, - resourcename, - { - location, - properties: { - spotPriorityProfile: { - maxPricePerVM: 1, - evictionPolicy: "Delete", - allocationStrategy: "LowestPrice", - maintain: true, - capacity: 1, - }, - vmSizesProfile: [ - { - name: "Standard_D2s_v3", - }, - { - name: "Standard_D4s_v3", - }, - { - name: "Standard_E2s_v3", - }, - ], - computeProfile: { - baseVirtualMachineProfile: { - storageProfile: { - imageReference: { - publisher: "canonical", - offer: "0001-com-ubuntu-server-focal", - sku: "20_04-lts-gen2", - version: "latest", - }, - osDisk: { - createOption: "fromImage", - caching: "ReadWrite", - osType: "Linux", - managedDisk: { - storageAccountType: "Premium_LRS", - }, - }, - }, - licenseType: "None", - osProfile: { - adminUsername: "azureuser", - adminPassword: "testComputefleet01", - computerNamePrefix: "testfleet", - }, - securityProfile: { - securityType: "TrustedLaunch", - uefiSettings: { - secureBootEnabled: true, - vTpmEnabled: false, - }, - }, - networkProfile: { - networkApiVersion: "2020-11-01", - networkInterfaceConfigurations: [ - { - name: "testnsg", - properties: { - primary: true, - enableAcceleratedNetworking: false, - networkSecurityGroup: { - id: - "/subscriptions/" + - subscriptionId + - "/resourceGroups/myjstest/providers/Microsoft.Network/networkSecurityGroups/testnsg", - }, - ipConfigurations: [ - { - name: "testvn-ipConfig", - properties: { - primary: true, - subnet: { - id: - "/subscriptions/" + - subscriptionId + - "/resourceGroups/myjstest/providers/Microsoft.Network/virtualNetworks/czwtestvn/subnets/testsub", - }, - }, - }, - ], - }, - }, - ], - }, - }, - platformFaultDomainCount: 1, - computeApiVersion: "2023-09-01", - }, - }, - }, - testPollingOptions, - ); - assert.equal(res.name, resourcename); - }); - - it("fleets get test", async function () { - const res = await client.fleets.get(resourceGroup, resourcename); - assert.equal(res.name, resourcename); - }); - - it("fleets list test", async function () { - const resArray = new Array(); - for await (let item of client.fleets.listByResourceGroup(resourceGroup)) { - resArray.push(item); - } - assert.equal(resArray.length, 1); - }); - - it("fleets delete test", async function () { - const resArray = new Array(); - await client.fleets.delete(resourceGroup, resourcename); - for await (let item of client.fleets.listByResourceGroup(resourceGroup)) { - resArray.push(item); - } - assert.equal(resArray.length, 0); - }); - - it("operation list test", async function () { - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - assert.notEqual(resArray.length, 0); - }); -}); diff --git a/sdk/computefleet/arm-computefleet/test/public/sampleTest.spec.ts b/sdk/computefleet/arm-computefleet/test/public/sampleTest.spec.ts new file mode 100644 index 000000000000..d4919ac91ac5 --- /dev/null +++ b/sdk/computefleet/arm-computefleet/test/public/sampleTest.spec.ts @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { createRecorder } from "./utils/recordedClient.js"; +import { assert, beforeEach, afterEach, it, describe } from "vitest"; + +describe("My test", () => { + // let recorder: Recorder; + + beforeEach(async function () { + // recorder = await createRecorder(this); + }); + + afterEach(async function () { + // await recorder.stop(); + }); + + it("sample test", async function () { + assert.equal(1, 1); + }); +}); diff --git a/sdk/computefleet/arm-computefleet/test/public/utils/recordedClient.ts b/sdk/computefleet/arm-computefleet/test/public/utils/recordedClient.ts index 527ccc9dee86..6e425fdcfdf9 100644 --- a/sdk/computefleet/arm-computefleet/test/public/utils/recordedClient.ts +++ b/sdk/computefleet/arm-computefleet/test/public/utils/recordedClient.ts @@ -1,7 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { Recorder, RecorderStartOptions, VitestTestContext } from "@azure-tools/test-recorder"; +import { + Recorder, + RecorderStartOptions, + VitestTestContext, +} from "@azure-tools/test-recorder"; const replaceableVariables: Record = { SUBSCRIPTION_ID: "azure_subscription_id", @@ -9,10 +13,6 @@ const replaceableVariables: Record = { const recorderEnvSetup: RecorderStartOptions = { envSetupForPlayback: replaceableVariables, - removeCentralSanitizers: [ - "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section - "AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section - ], }; /** @@ -20,7 +20,9 @@ const recorderEnvSetup: RecorderStartOptions = { * Should be called first in the test suite to make sure environment variables are * read before they are being used. */ -export async function createRecorder(context: VitestTestContext): Promise { +export async function createRecorder( + context: VitestTestContext, +): Promise { const recorder = new Recorder(context); await recorder.start(recorderEnvSetup); return recorder; diff --git a/sdk/computefleet/arm-computefleet/tsconfig.browser.config.json b/sdk/computefleet/arm-computefleet/tsconfig.browser.config.json index 1b37aebc5457..091177fcb991 100644 --- a/sdk/computefleet/arm-computefleet/tsconfig.browser.config.json +++ b/sdk/computefleet/arm-computefleet/tsconfig.browser.config.json @@ -1,7 +1,7 @@ { "extends": "./.tshy/build.json", - "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts"], - "exclude": ["./test/**/node/**/*.ts"], + "include": ["src/**/*.ts", "src/**/*.mts", "test/**/*.spec.ts"], + "exclude": ["test/**/node/**/*.ts"], "compilerOptions": { "outDir": "./dist-test/browser", "rootDir": ".", diff --git a/sdk/computefleet/arm-computefleet/tsconfig.json b/sdk/computefleet/arm-computefleet/tsconfig.json index f997dcac1b4f..72266609583d 100644 --- a/sdk/computefleet/arm-computefleet/tsconfig.json +++ b/sdk/computefleet/arm-computefleet/tsconfig.json @@ -4,17 +4,13 @@ "module": "NodeNext", "moduleResolution": "NodeNext", "rootDir": ".", - "skipLibCheck": true, - "paths": { - "@azure/arm-computefleet": ["./src/index"] - } + "skipLibCheck": true }, "include": [ - "./src/**/*.ts", - "./src/**/*.mts", - "./src/**/*.cts", + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", "test/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "test/**/*.ts" ] } diff --git a/sdk/computefleet/arm-computefleet/tsp-location.yaml b/sdk/computefleet/arm-computefleet/tsp-location.yaml index f37d1c6805d5..d6e3ad9943ea 100644 --- a/sdk/computefleet/arm-computefleet/tsp-location.yaml +++ b/sdk/computefleet/arm-computefleet/tsp-location.yaml @@ -1,3 +1,4 @@ directory: specification/azurefleet/AzureFleet.Management -commit: 8ad58020cfafc5ace71d85b31272acf4d6b694d3 -repo: Azure/azure-rest-api-specs +commit: 92214b1faaad098434ae37b69fcc896fdf8ecc8c +repo: ../azure-rest-api-specs +additionalDirectories: diff --git a/sdk/computefleet/arm-computefleet/vitest.browser.config.ts b/sdk/computefleet/arm-computefleet/vitest.browser.config.ts index 93f3735b960c..da68c1d231aa 100644 --- a/sdk/computefleet/arm-computefleet/vitest.browser.config.ts +++ b/sdk/computefleet/arm-computefleet/vitest.browser.config.ts @@ -33,6 +33,6 @@ export default defineConfig({ reportsDirectory: "coverage-browser", }, testTimeout: 1200000, - hookTimeout: 1200000 + hookTimeout: 1200000, }, }); diff --git a/sdk/computefleet/arm-computefleet/vitest.config.ts b/sdk/computefleet/arm-computefleet/vitest.config.ts index 11fcb98a3ab4..2cf5d0e02c2e 100644 --- a/sdk/computefleet/arm-computefleet/vitest.config.ts +++ b/sdk/computefleet/arm-computefleet/vitest.config.ts @@ -29,6 +29,6 @@ export default defineConfig({ reportsDirectory: "coverage", }, testTimeout: 1200000, - hookTimeout: 1200000 + hookTimeout: 1200000, }, }); diff --git a/sdk/computefleet/ci.mgmt.yml b/sdk/computefleet/ci.mgmt.yml index 74e7165ed1a2..edd723b51465 100644 --- a/sdk/computefleet/ci.mgmt.yml +++ b/sdk/computefleet/ci.mgmt.yml @@ -13,7 +13,6 @@ trigger: include: - sdk/computefleet/arm-computefleet - sdk/computefleet/ci.mgmt.yml - pr: branches: include: @@ -27,7 +26,6 @@ pr: include: - sdk/computefleet/arm-computefleet - sdk/computefleet/ci.mgmt.yml - extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: