From 80bf318bed99ed1491e4437e057000bd083ab4cf Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 30 Mar 2022 20:53:07 +0000 Subject: [PATCH] CodeGen from PR 18487 in Azure/azure-rest-api-specs Merge feeab6e98a7f5a73741e99685a8174de12081ebc into ff2821aaddea6a1ee7cc40b8b984c23d1f2cf431 --- common/config/rush/pnpm-lock.yaml | 35 +- sdk/compute/arm-compute/CHANGELOG.md | 32 +- sdk/compute/arm-compute/README.md | 11 - sdk/compute/arm-compute/_meta.json | 7 +- sdk/compute/arm-compute/package.json | 37 +- .../arm-compute/review/arm-compute.api.md | 59 +- sdk/compute/arm-compute/rollup.config.js | 78 +- .../src/computeManagementClient.ts | 114 +- sdk/compute/arm-compute/src/models/index.ts | 8353 ++++++----- sdk/compute/arm-compute/src/models/mappers.ts | 12304 ++++++++-------- .../arm-compute/src/models/parameters.ts | 632 +- .../src/operations/availabilitySets.ts | 36 +- .../operations/capacityReservationGroups.ts | 20 +- .../src/operations/capacityReservations.ts | 16 +- .../cloudServiceOperatingSystems.ts | 12 +- .../operations/cloudServiceRoleInstances.ts | 24 +- .../src/operations/cloudServiceRoles.ts | 6 +- .../src/operations/cloudServices.ts | 30 +- .../operations/cloudServicesUpdateDomain.ts | 8 +- .../src/operations/communityGalleries.ts | 2 +- .../communityGalleryImageVersions.ts | 2 +- .../src/operations/communityGalleryImages.ts | 2 +- .../src/operations/dedicatedHostGroups.ts | 22 +- .../src/operations/dedicatedHosts.ts | 20 +- .../src/operations/diskAccesses.ts | 28 +- .../src/operations/diskEncryptionSets.ts | 20 +- .../operations/diskRestorePointOperations.ts | 10 +- .../arm-compute/src/operations/disks.ts | 20 +- .../arm-compute/src/operations/galleries.ts | 16 +- .../operations/galleryApplicationVersions.ts | 12 +- .../src/operations/galleryApplications.ts | 12 +- .../src/operations/galleryImageVersions.ts | 12 +- .../src/operations/galleryImages.ts | 12 +- .../src/operations/gallerySharingProfile.ts | 2 +- .../arm-compute/src/operations/images.ts | 22 +- .../arm-compute/src/operations/index.ts | 24 +- .../src/operations/logAnalytics.ts | 8 +- .../operations/proximityPlacementGroups.ts | 20 +- .../src/operations/restorePointCollections.ts | 20 +- .../src/operations/restorePoints.ts | 8 +- .../src/operations/sharedGalleries.ts | 6 +- .../operations/sharedGalleryImageVersions.ts | 6 +- .../src/operations/sharedGalleryImages.ts | 6 +- .../arm-compute/src/operations/snapshots.ts | 20 +- .../src/operations/sshPublicKeys.ts | 22 +- .../src/operations/usageOperations.ts | 8 +- .../virtualMachineExtensionImages.ts | 10 +- .../operations/virtualMachineExtensions.ts | 34 +- .../src/operations/virtualMachineImages.ts | 16 +- .../virtualMachineImagesEdgeZone.ts | 14 +- .../operations/virtualMachineRunCommands.ts | 28 +- .../virtualMachineScaleSetExtensions.ts | 18 +- .../virtualMachineScaleSetRollingUpgrades.ts | 8 +- .../virtualMachineScaleSetVMExtensions.ts | 34 +- .../virtualMachineScaleSetVMRunCommands.ts | 18 +- .../operations/virtualMachineScaleSetVMs.ts | 44 +- .../src/operations/virtualMachineScaleSets.ts | 70 +- .../src/operations/virtualMachineSizes.ts | 4 +- .../src/operations/virtualMachines.ts | 72 +- .../src/operationsInterfaces/index.ts | 24 +- sdk/compute/arm-compute/test/sampleTest.ts | 48 + sdk/compute/arm-compute/tsconfig.json | 10 +- 62 files changed, 11355 insertions(+), 11273 deletions(-) create mode 100644 sdk/compute/arm-compute/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index ac74a7777d58..048f7106cbad 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -627,6 +627,21 @@ packages: - supports-color dev: false + /@azure/arm-compute/17.3.0: + resolution: {integrity: sha512-HPU9hEKB2s3qS2kvnEu+rg/ysC/oSTxZ9NugIcAbulSSmU6g0OxsWKhGWp7m6lxjmw3070bQlGDZSPGV3j4J/w==} + engines: {node: '>=12.0.0'} + dependencies: + '@azure/abort-controller': 1.0.4 + '@azure/core-auth': 1.3.2 + '@azure/core-client': 1.5.0 + '@azure/core-lro': 2.2.4 + '@azure/core-paging': 1.2.1 + '@azure/core-rest-pipeline': 1.7.0 + tslib: 2.3.1 + transitivePeerDependencies: + - supports-color + dev: false + /@azure/arm-msi/2.0.0: resolution: {integrity: sha512-yBprEoMQRNLyHtR/RuJh8ehQCcF6rO5049Pfped79uRd/Y8EW+pNpbW0EjqWC5lVllC1VG4B89aC5PwE3XeISA==} engines: {node: '>=12.0.0'} @@ -8805,7 +8820,7 @@ packages: dev: false file:projects/ai-metrics-advisor.tgz: - resolution: {integrity: sha512-K9QmmyyQQIUQ49wITFE3k/IL7pCxUdDO7wwxOpY288lEqCgveHCoXsONSXFYElsEUSkkDgX+6AF2arlms36Phg==, tarball: file:projects/ai-metrics-advisor.tgz} + resolution: {integrity: sha512-o5Cc5OOH864YpSZKNo7b9aQgOmcieZNh8iaFPi9BHgc0LtgPuFu2DNJmIYskQp8gCSelNQbUnWzc9W+u8cPoTg==, tarball: file:projects/ai-metrics-advisor.tgz} name: '@rush-temp/ai-metrics-advisor' version: 0.0.0 dependencies: @@ -9669,28 +9684,27 @@ packages: dev: false file:projects/arm-compute.tgz: - resolution: {integrity: sha512-SXG1OOPxmuDjfmHhCOcG31GII1K7GgOEgaWBJ1ljPTcUIHkI9dVHelhX9hgUh5GOlGLpQlC6UYp6PKlJE4JVXA==, tarball: file:projects/arm-compute.tgz} + resolution: {integrity: sha512-CkJMDR3d+f00GcPgkTOQG1FbkqKiPDJoPakHKYohtZRQoPHP98UIcpTmJT6MG4KZm6dCrywUQQG66cL/QfKTxg==, tarball: file:projects/arm-compute.tgz} name: '@rush-temp/arm-compute' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 '@azure/identity': 2.0.4 '@microsoft/api-extractor': 7.19.5 - '@rollup/plugin-commonjs': 21.0.3_rollup@2.70.1 - '@rollup/plugin-json': 4.1.0_rollup@2.70.1 - '@rollup/plugin-multi-entry': 4.1.0_rollup@2.70.1 - '@rollup/plugin-node-resolve': 13.1.3_rollup@2.70.1 + '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 + '@rollup/plugin-json': 4.1.0_rollup@1.32.1 + '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 + '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 rimraf: 3.0.2 - rollup: 2.70.1 - rollup-plugin-sourcemaps: 0.6.3_rollup@2.70.1 + rollup: 1.32.1 + rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.15.3 transitivePeerDependencies: - - '@types/node' - debug - encoding - supports-color @@ -10732,11 +10746,12 @@ packages: dev: false file:projects/arm-imagebuilder.tgz: - resolution: {integrity: sha512-MIdrvaZ9seOdk3YVV0q3O5yR20B6LAAJLBt40WwqFCgPfpQTLKZjbJYQ8TjrZ+JWxVppXOAjFmPPOwO/b/xvLA==, tarball: file:projects/arm-imagebuilder.tgz} + resolution: {integrity: sha512-wzBB4rCCpMO8ATuhIZrgSN/IJqkl1CqiWbZGxTJGRfi8E1QPqs4dbFl6bf2xYabiJ8gs6NxjwRy/qiqG+gw4AA==, tarball: file:projects/arm-imagebuilder.tgz} name: '@rush-temp/arm-imagebuilder' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 + '@azure/arm-compute': 17.3.0 '@azure/arm-msi': 2.0.0 '@azure/identity': 2.0.4 '@microsoft/api-extractor': 7.19.5 diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index 546c79cf597a..89bffda6a521 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,15 +1,31 @@ # Release History + +## 18.0.0 (2022-03-30) + +**Features** -## 17.3.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added Interface DedicatedHostGroupPropertiesAdditionalCapabilities + - Added Interface ResourceWithOptionalLocation + - Add parameters of ResourceWithOptionalLocation to TypeAlias VirtualMachineExtension + - Type Alias DedicatedHostGroup has a new parameter additionalCapabilities + - Type Alias DedicatedHostGroupUpdate has a new parameter additionalCapabilities -### Other Changes +**Breaking Changes** + - Interface DiskUpdate no longer has parameter dataAccessAuthMode + - Interface SnapshotUpdate no longer has parameter dataAccessAuthMode + - Interface SupportedCapabilities no longer has parameter architecture + - Delete parameters of Resource in TypeAlias VirtualMachineExtension + - Type Alias Disk no longer has parameter dataAccessAuthMode + - Type Alias GalleryImage no longer has parameter architecture + - Type Alias GalleryImageUpdate no longer has parameter architecture + - Type Alias Snapshot no longer has parameter dataAccessAuthMode + - Type Alias VirtualMachineImage no longer has parameter architecture + - Removed Enum KnownArchitecture + - Removed Enum KnownArchitectureTypes + - Removed Enum KnownDataAccessAuthMode + + ## 17.3.0 (2022-03-02) **Features** diff --git a/sdk/compute/arm-compute/README.md b/sdk/compute/arm-compute/README.md index 9a5b8e7c17fc..cb9f06fd0eac 100644 --- a/sdk/compute/arm-compute/README.md +++ b/sdk/compute/arm-compute/README.md @@ -16,8 +16,6 @@ Compute Client - [LTS versions of Node.js](https://nodejs.org/about/releases/) - Latest versions of Safari, Chrome, Edge and Firefox. -See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details. - ### Prerequisites - An [Azure subscription][azure_sub]. @@ -51,17 +49,8 @@ For more information about how to create an Azure AD Application check out [this ```javascript const { ComputeManagementClient } = require("@azure/arm-compute"); const { DefaultAzureCredential } = require("@azure/identity"); -// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details. - const subscriptionId = "00000000-0000-0000-0000-000000000000"; const client = new ComputeManagementClient(new DefaultAzureCredential(), subscriptionId); - -// For client-side applications running in the browser, use this code instead: -// const credential = new InteractiveBrowserCredential({ -// tenantId: "", -// clientId: "" -// }); -// const client = new ComputeManagementClient(credential, subscriptionId); ``` diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index 8f1be21afd12..e54fc0ad3530 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,7 +1,8 @@ { - "commit": "4042a47cff72c950d35dd72149895b044ed79713", + "commit": "75f575515e5ee304789a859e9094fc2a57dda0de", "readme": "specification/compute/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220225.1 --generate-sample=true", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/compute/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20220225.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.2.1", + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index 75fba3649d45..c2a7712149f1 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ComputeManagementClient.", - "version": "17.3.1", + "version": "18.0.0", "engines": { "node": ">=12.0.0" }, @@ -29,21 +29,20 @@ "types": "./types/arm-compute.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.18.11", - "@rollup/plugin-commonjs": "^21.0.1", - "@rollup/plugin-json": "^4.1.0", - "@rollup/plugin-multi-entry": "^4.1.0", - "@rollup/plugin-node-resolve": "^13.1.3", + "@rollup/plugin-commonjs": "11.0.2", + "@rollup/plugin-json": "^4.0.0", + "@rollup/plugin-multi-entry": "^3.0.0", + "@rollup/plugin-node-resolve": "^8.0.0", "mkdirp": "^1.0.4", - "rollup": "^2.66.1", - "rollup-plugin-sourcemaps": "^0.6.3", + "rollup": "^1.16.3", + "rollup-plugin-sourcemaps": "^0.4.2", "typescript": "~4.2.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^1.0.0", "mocha": "^7.1.1", - "cross-env": "^7.0.2", - "@azure/arm-network": "^26.0.0" + "cross-env": "^7.0.2" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute", "repository": { @@ -99,21 +98,5 @@ "docs": "echo skipped" }, "sideEffects": false, - "//metadata": { - "constantPaths": [ - { - "path": "src/computeManagementClient.ts", - "prefix": "packageDetails" - } - ] - }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/compute/arm-compute/review/arm-compute.api.md b/sdk/compute/arm-compute/review/arm-compute.api.md index 53ef7aaacaf7..15748e23a671 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -64,12 +64,6 @@ export interface ApplicationProfile { galleryApplications?: VMGalleryApplication[]; } -// @public -export type Architecture = string; - -// @public -export type ArchitectureTypes = string; - // @public export interface AutomaticOSUpgradePolicy { disableAutomaticRollback?: boolean; @@ -1126,9 +1120,6 @@ export interface CreationData { uploadSizeBytes?: number; } -// @public -export type DataAccessAuthMode = string; - // @public export interface DataDisk { caching?: CachingTypes; @@ -1189,6 +1180,7 @@ export type DedicatedHostGroup = Resource & { readonly hosts?: SubResourceReadOnly[]; readonly instanceView?: DedicatedHostGroupInstanceView; supportAutomaticPlacement?: boolean; + additionalCapabilities?: DedicatedHostGroupPropertiesAdditionalCapabilities; }; // @public (undocumented) @@ -1202,6 +1194,11 @@ export interface DedicatedHostGroupListResult { value: DedicatedHostGroup[]; } +// @public +export interface DedicatedHostGroupPropertiesAdditionalCapabilities { + ultraSSDEnabled?: boolean; +} + // @public export interface DedicatedHostGroups { createOrUpdate(resourceGroupName: string, hostGroupName: string, parameters: DedicatedHostGroup, options?: DedicatedHostGroupsCreateOrUpdateOptionalParams): Promise; @@ -1273,6 +1270,7 @@ export type DedicatedHostGroupUpdate = UpdateResource & { readonly hosts?: SubResourceReadOnly[]; readonly instanceView?: DedicatedHostGroupInstanceView; supportAutomaticPlacement?: boolean; + additionalCapabilities?: DedicatedHostGroupPropertiesAdditionalCapabilities; }; // @public @@ -1440,7 +1438,6 @@ export type Disk = Resource & { securityProfile?: DiskSecurityProfile; completionPercent?: number; publicNetworkAccess?: PublicNetworkAccess; - dataAccessAuthMode?: DataAccessAuthMode; }; // @public @@ -1946,7 +1943,6 @@ export type DisksUpdateResponse = Disk; // @public export interface DiskUpdate { burstingEnabled?: boolean; - dataAccessAuthMode?: DataAccessAuthMode; diskAccessId?: string; diskIopsReadOnly?: number; diskIopsReadWrite?: number; @@ -2356,7 +2352,6 @@ export type GalleryImage = Resource & { purchasePlan?: ImagePurchasePlan; readonly provisioningState?: GalleryImagePropertiesProvisioningState; features?: GalleryImageFeature[]; - architecture?: Architecture; }; // @public @@ -2454,7 +2449,6 @@ export type GalleryImageUpdate = UpdateResourceDefinition & { purchasePlan?: ImagePurchasePlan; readonly provisioningState?: GalleryImagePropertiesProvisioningState; features?: GalleryImageFeature[]; - architecture?: Architecture; }; // @public @@ -2865,22 +2859,6 @@ export enum KnownAggregatedReplicationState { Unknown = "Unknown" } -// @public -export enum KnownArchitecture { - // (undocumented) - Arm64 = "Arm64", - // (undocumented) - X64 = "x64" -} - -// @public -export enum KnownArchitectureTypes { - // (undocumented) - Arm64 = "Arm64", - // (undocumented) - X64 = "x64" -} - // @public export enum KnownAvailabilitySetSkuTypes { // (undocumented) @@ -2931,12 +2909,6 @@ export enum KnownConsistencyModeTypes { FileSystemConsistent = "FileSystemConsistent" } -// @public -export enum KnownDataAccessAuthMode { - AzureActiveDirectory = "AzureActiveDirectory", - None = "None" -} - // @public export enum KnownDeleteOptions { // (undocumented) @@ -4737,6 +4709,17 @@ export interface ResourceUriList { value: string[]; } +// @public +export interface ResourceWithOptionalLocation { + readonly id?: string; + location?: string; + readonly name?: string; + tags?: { + [propertyName: string]: string; + }; + readonly type?: string; +} + // @public export type RestorePoint = ProxyResource & { excludeDisks?: ApiEntityReference[]; @@ -5304,7 +5287,6 @@ export type Snapshot = Resource & { supportsHibernation?: boolean; publicNetworkAccess?: PublicNetworkAccess; completionPercent?: number; - dataAccessAuthMode?: DataAccessAuthMode; }; // @public @@ -5415,7 +5397,6 @@ export type SnapshotsUpdateResponse = Snapshot; // @public export interface SnapshotUpdate { - dataAccessAuthMode?: DataAccessAuthMode; diskAccessId?: string; diskSizeGB?: number; encryption?: Encryption; @@ -5592,7 +5573,6 @@ export type SubResourceWithColocationStatus = SubResource & { // @public export interface SupportedCapabilities { acceleratedNetwork?: boolean; - architecture?: Architecture; } // @public @@ -5831,7 +5811,7 @@ export type VirtualMachineCaptureResult = SubResource & { export type VirtualMachineEvictionPolicyTypes = string; // @public -export type VirtualMachineExtension = Resource & { +export type VirtualMachineExtension = ResourceWithOptionalLocation & { forceUpdateTag?: string; publisher?: string; typePropertiesType?: string; @@ -5999,7 +5979,6 @@ export type VirtualMachineImage = VirtualMachineImageResource & { hyperVGeneration?: HyperVGenerationTypes; disallowed?: DisallowedConfiguration; features?: VirtualMachineImageFeature[]; - architecture?: ArchitectureTypes; }; // @public diff --git a/sdk/compute/arm-compute/rollup.config.js b/sdk/compute/arm-compute/rollup.config.js index 3f89d7309da5..9be1955eb7f1 100644 --- a/sdk/compute/arm-compute/rollup.config.js +++ b/sdk/compute/arm-compute/rollup.config.js @@ -14,14 +14,62 @@ import json from "@rollup/plugin-json"; import nodeBuiltins from "builtin-modules"; +/** + * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api. + * + * NOTE: this manual configuration is only needed because OpenTelemetry uses an + * __exportStar downleveled helper function to declare its exports which confuses + * rollup's automatic discovery mechanism. + * + * @returns an object reference that can be `...`'d into your cjs() configuration. + */ +export function openTelemetryCommonJs() { + const namedExports = {}; + + for (const key of [ + "@opentelemetry/api", + "@azure/core-tracing/node_modules/@opentelemetry/api" + ]) { + namedExports[key] = [ + "SpanKind", + "TraceFlags", + "getSpan", + "setSpan", + "SpanStatusCode", + "getSpanContext", + "setSpanContext" + ]; + } + + const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"]; + + for (const version of releasedOpenTelemetryVersions) { + namedExports[ + // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path. + `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js` + ] = [ + "SpanKind", + "TraceFlags", + "getSpan", + "setSpan", + "StatusCode", + "CanonicalCode", + "getSpanContext", + "setSpanContext" + ]; + } + + return namedExports; +} + // #region Warning Handler /** - * A function that can determine whether a rollup warning should be ignored. If + * A function that can determine whether a rollupwarning should be ignored. If * the function returns `true`, then the warning will not be displayed. */ -function ignoreNiseSinonEval(warning) { +function ignoreNiseSinonEvalWarnings(warning) { return ( warning.code === "EVAL" && warning.id && @@ -30,14 +78,17 @@ function ignoreNiseSinonEval(warning) { ); } -function ignoreChaiCircularDependency(warning) { +function ignoreChaiCircularDependencyWarnings(warning) { return ( warning.code === "CIRCULAR_DEPENDENCY" && warning.importer && warning.importer.includes("node_modules/chai") === true ); } -const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval]; +const warningInhibitors = [ + ignoreChaiCircularDependencyWarnings, + ignoreNiseSinonEvalWarnings +]; /** * Construct a warning handler for the shared rollup configuration @@ -71,7 +122,22 @@ function makeBrowserTestConfig() { nodeResolve({ mainFields: ["module", "browser"] }), - cjs(), + cjs({ + namedExports: { + // Chai's strange internal architecture makes it impossible to statically + // analyze its exports. + chai: [ + "version", + "use", + "util", + "config", + "expect", + "should", + "assert" + ], + ...openTelemetryCommonJs() + } + }), json(), sourcemaps() //viz({ filename: "dist-test/browser-stats.html", sourcemap: true }) @@ -107,7 +173,7 @@ export function makeConfig(pkg, options) { ], output: { file: "dist/index.js", format: "cjs", sourcemap: true }, preserveSymlinks: false, - plugins: [sourcemaps(), nodeResolve()] + plugins: [sourcemaps(), nodeResolve(), cjs()] }; const config = [baseConfig]; diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index e8ec334e419a..317a162e0319 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -10,28 +10,28 @@ import * as coreClient from "@azure/core-client"; import * as coreAuth from "@azure/core-auth"; import { OperationsImpl, + UsageOperationsImpl, + VirtualMachineSizesImpl, + VirtualMachineScaleSetsImpl, + VirtualMachineScaleSetExtensionsImpl, + VirtualMachineScaleSetRollingUpgradesImpl, + VirtualMachineScaleSetVMExtensionsImpl, + VirtualMachineScaleSetVMsImpl, + VirtualMachineExtensionsImpl, + VirtualMachinesImpl, + VirtualMachineImagesImpl, + VirtualMachineImagesEdgeZoneImpl, + VirtualMachineExtensionImagesImpl, AvailabilitySetsImpl, ProximityPlacementGroupsImpl, DedicatedHostGroupsImpl, DedicatedHostsImpl, SshPublicKeysImpl, - VirtualMachineExtensionImagesImpl, - VirtualMachineExtensionsImpl, - VirtualMachineImagesImpl, - VirtualMachineImagesEdgeZoneImpl, - UsageOperationsImpl, - VirtualMachinesImpl, - VirtualMachineScaleSetsImpl, - VirtualMachineSizesImpl, ImagesImpl, RestorePointCollectionsImpl, RestorePointsImpl, CapacityReservationGroupsImpl, CapacityReservationsImpl, - VirtualMachineScaleSetExtensionsImpl, - VirtualMachineScaleSetRollingUpgradesImpl, - VirtualMachineScaleSetVMExtensionsImpl, - VirtualMachineScaleSetVMsImpl, LogAnalyticsImpl, VirtualMachineRunCommandsImpl, VirtualMachineScaleSetVMRunCommandsImpl, @@ -61,28 +61,28 @@ import { } from "./operations"; import { Operations, + UsageOperations, + VirtualMachineSizes, + VirtualMachineScaleSets, + VirtualMachineScaleSetExtensions, + VirtualMachineScaleSetRollingUpgrades, + VirtualMachineScaleSetVMExtensions, + VirtualMachineScaleSetVMs, + VirtualMachineExtensions, + VirtualMachines, + VirtualMachineImages, + VirtualMachineImagesEdgeZone, + VirtualMachineExtensionImages, AvailabilitySets, ProximityPlacementGroups, DedicatedHostGroups, DedicatedHosts, SshPublicKeys, - VirtualMachineExtensionImages, - VirtualMachineExtensions, - VirtualMachineImages, - VirtualMachineImagesEdgeZone, - UsageOperations, - VirtualMachines, - VirtualMachineScaleSets, - VirtualMachineSizes, Images, RestorePointCollections, RestorePoints, CapacityReservationGroups, CapacityReservations, - VirtualMachineScaleSetExtensions, - VirtualMachineScaleSetRollingUpgrades, - VirtualMachineScaleSetVMExtensions, - VirtualMachineScaleSetVMs, LogAnalytics, VirtualMachineRunCommands, VirtualMachineScaleSetVMRunCommands, @@ -144,7 +144,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-compute/17.3.1`; + const packageDetails = `azsdk-js-arm-compute/18.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -168,28 +168,9 @@ export class ComputeManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; this.operations = new OperationsImpl(this); - this.availabilitySets = new AvailabilitySetsImpl(this); - this.proximityPlacementGroups = new ProximityPlacementGroupsImpl(this); - this.dedicatedHostGroups = new DedicatedHostGroupsImpl(this); - this.dedicatedHosts = new DedicatedHostsImpl(this); - this.sshPublicKeys = new SshPublicKeysImpl(this); - this.virtualMachineExtensionImages = new VirtualMachineExtensionImagesImpl( - this - ); - this.virtualMachineExtensions = new VirtualMachineExtensionsImpl(this); - this.virtualMachineImages = new VirtualMachineImagesImpl(this); - this.virtualMachineImagesEdgeZone = new VirtualMachineImagesEdgeZoneImpl( - this - ); this.usageOperations = new UsageOperationsImpl(this); - this.virtualMachines = new VirtualMachinesImpl(this); - this.virtualMachineScaleSets = new VirtualMachineScaleSetsImpl(this); this.virtualMachineSizes = new VirtualMachineSizesImpl(this); - this.images = new ImagesImpl(this); - this.restorePointCollections = new RestorePointCollectionsImpl(this); - this.restorePoints = new RestorePointsImpl(this); - this.capacityReservationGroups = new CapacityReservationGroupsImpl(this); - this.capacityReservations = new CapacityReservationsImpl(this); + this.virtualMachineScaleSets = new VirtualMachineScaleSetsImpl(this); this.virtualMachineScaleSetExtensions = new VirtualMachineScaleSetExtensionsImpl( this ); @@ -200,6 +181,25 @@ export class ComputeManagementClient extends coreClient.ServiceClient { this ); this.virtualMachineScaleSetVMs = new VirtualMachineScaleSetVMsImpl(this); + this.virtualMachineExtensions = new VirtualMachineExtensionsImpl(this); + this.virtualMachines = new VirtualMachinesImpl(this); + this.virtualMachineImages = new VirtualMachineImagesImpl(this); + this.virtualMachineImagesEdgeZone = new VirtualMachineImagesEdgeZoneImpl( + this + ); + this.virtualMachineExtensionImages = new VirtualMachineExtensionImagesImpl( + this + ); + this.availabilitySets = new AvailabilitySetsImpl(this); + this.proximityPlacementGroups = new ProximityPlacementGroupsImpl(this); + this.dedicatedHostGroups = new DedicatedHostGroupsImpl(this); + this.dedicatedHosts = new DedicatedHostsImpl(this); + this.sshPublicKeys = new SshPublicKeysImpl(this); + this.images = new ImagesImpl(this); + this.restorePointCollections = new RestorePointCollectionsImpl(this); + this.restorePoints = new RestorePointsImpl(this); + this.capacityReservationGroups = new CapacityReservationGroupsImpl(this); + this.capacityReservations = new CapacityReservationsImpl(this); this.logAnalytics = new LogAnalyticsImpl(this); this.virtualMachineRunCommands = new VirtualMachineRunCommandsImpl(this); this.virtualMachineScaleSetVMRunCommands = new VirtualMachineScaleSetVMRunCommandsImpl( @@ -235,28 +235,28 @@ export class ComputeManagementClient extends coreClient.ServiceClient { } operations: Operations; + usageOperations: UsageOperations; + virtualMachineSizes: VirtualMachineSizes; + virtualMachineScaleSets: VirtualMachineScaleSets; + virtualMachineScaleSetExtensions: VirtualMachineScaleSetExtensions; + virtualMachineScaleSetRollingUpgrades: VirtualMachineScaleSetRollingUpgrades; + virtualMachineScaleSetVMExtensions: VirtualMachineScaleSetVMExtensions; + virtualMachineScaleSetVMs: VirtualMachineScaleSetVMs; + virtualMachineExtensions: VirtualMachineExtensions; + virtualMachines: VirtualMachines; + virtualMachineImages: VirtualMachineImages; + virtualMachineImagesEdgeZone: VirtualMachineImagesEdgeZone; + virtualMachineExtensionImages: VirtualMachineExtensionImages; availabilitySets: AvailabilitySets; proximityPlacementGroups: ProximityPlacementGroups; dedicatedHostGroups: DedicatedHostGroups; dedicatedHosts: DedicatedHosts; sshPublicKeys: SshPublicKeys; - virtualMachineExtensionImages: VirtualMachineExtensionImages; - virtualMachineExtensions: VirtualMachineExtensions; - virtualMachineImages: VirtualMachineImages; - virtualMachineImagesEdgeZone: VirtualMachineImagesEdgeZone; - usageOperations: UsageOperations; - virtualMachines: VirtualMachines; - virtualMachineScaleSets: VirtualMachineScaleSets; - virtualMachineSizes: VirtualMachineSizes; images: Images; restorePointCollections: RestorePointCollections; restorePoints: RestorePoints; capacityReservationGroups: CapacityReservationGroups; capacityReservations: CapacityReservations; - virtualMachineScaleSetExtensions: VirtualMachineScaleSetExtensions; - virtualMachineScaleSetRollingUpgrades: VirtualMachineScaleSetRollingUpgrades; - virtualMachineScaleSetVMExtensions: VirtualMachineScaleSetVMExtensions; - virtualMachineScaleSetVMs: VirtualMachineScaleSetVMs; logAnalytics: LogAnalytics; virtualMachineRunCommands: VirtualMachineRunCommands; virtualMachineScaleSetVMRunCommands: VirtualMachineScaleSetVMRunCommands; diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index 4abb76fcfb79..138cdd8704c7 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -89,70 +89,32 @@ export interface InnerError { errordetail?: string; } -export interface SubResource { - /** Resource Id */ - id?: string; -} - -/** Instance view status. */ -export interface InstanceViewStatus { - /** The status code. */ - code?: string; - /** The level code. */ - level?: StatusLevelTypes; - /** The short localizable label for the status. */ - displayStatus?: string; - /** The detailed status message, including for alerts and error messages. */ - message?: string; - /** The time of the status. */ - time?: Date; -} - -/** Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. */ -export interface Sku { - /** The sku name. */ - name?: string; - /** Specifies the tier of virtual machines in a scale set.

Possible Values:

**Standard**

**Basic** */ - tier?: string; - /** Specifies the number of virtual machines in the scale set. */ - capacity?: number; -} - -/** The Resource model definition. */ -export interface Resource { - /** - * Resource Id - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Resource name - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Resource type - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** Resource location */ - location: string; - /** Resource tags */ - tags?: { [propertyName: string]: string }; +/** The List Usages operation response. */ +export interface ListUsagesResult { + /** The list of compute resource usages. */ + value: Usage[]; + /** The URI to fetch the next page of compute resource usage information. Call ListNext() with this to fetch the next page of compute resource usage information. */ + nextLink?: string; } -/** The Update Resource model definition. */ -export interface UpdateResource { - /** Resource tags */ - tags?: { [propertyName: string]: string }; +/** Describes Compute Resource Usage. */ +export interface Usage { + /** An enum describing the unit of usage measurement. */ + unit: "Count"; + /** The current usage of the resource. */ + currentValue: number; + /** The maximum permitted usage of the resource. */ + limit: number; + /** The name of the type of usage. */ + name: UsageName; } -/** The List Availability Set operation response. */ -export interface AvailabilitySetListResult { - /** The list of availability sets */ - value: AvailabilitySet[]; - /** The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the next page of AvailabilitySets. */ - nextLink?: string; +/** The Usage Names. */ +export interface UsageName { + /** The name of the resource. */ + value?: string; + /** The localized name of the resource. */ + localizedValue?: string; } /** The List Virtual Machine operation response. */ @@ -177,287 +139,281 @@ export interface VirtualMachineSize { maxDataDiskCount?: number; } -/** The List Proximity Placement Group operation response. */ -export interface ProximityPlacementGroupListResult { - /** The list of proximity placement groups */ - value: ProximityPlacementGroup[]; - /** The URI to fetch the next page of proximity placement groups. */ +/** The List Virtual Machine operation response. */ +export interface VirtualMachineScaleSetListResult { + /** The list of virtual machine scale sets. */ + value: VirtualMachineScaleSet[]; + /** The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of VMSS. */ nextLink?: string; } -export interface SubResourceReadOnly { - /** - * Resource Id - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; -} - -export interface DedicatedHostGroupInstanceView { - /** List of instance view of the dedicated hosts under the dedicated host group. */ - hosts?: DedicatedHostInstanceViewWithName[]; +/** Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. */ +export interface Sku { + /** The sku name. */ + name?: string; + /** Specifies the tier of virtual machines in a scale set.

Possible Values:

**Standard**

**Basic** */ + tier?: string; + /** Specifies the number of virtual machines in the scale set. */ + capacity?: number; } -/** The instance view of a dedicated host. */ -export interface DedicatedHostInstanceView { - /** - * Specifies the unique id of the dedicated physical machine on which the dedicated host resides. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly assetId?: string; - /** Unutilized capacity of the dedicated host. */ - availableCapacity?: DedicatedHostAvailableCapacity; - /** The resource status information. */ - statuses?: InstanceViewStatus[]; +/** Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. */ +export interface Plan { + /** The plan ID. */ + name?: string; + /** The publisher ID. */ + publisher?: string; + /** Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. */ + product?: string; + /** The promotion code. */ + promotionCode?: string; } -/** Dedicated host unutilized capacity. */ -export interface DedicatedHostAvailableCapacity { - /** The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the dedicated host. */ - allocatableVMs?: DedicatedHostAllocatableVM[]; +/** Describes an upgrade policy - automatic, manual, or rolling. */ +export interface UpgradePolicy { + /** Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

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

**Automatic** - All virtual machines in the scale set are automatically updated at the same time. */ + mode?: UpgradeMode; + /** The configuration parameters used while performing a rolling upgrade. */ + rollingUpgradePolicy?: RollingUpgradePolicy; + /** Configuration parameters used for performing automatic OS Upgrade. */ + automaticOSUpgradePolicy?: AutomaticOSUpgradePolicy; } -/** Represents the dedicated host unutilized capacity in terms of a specific VM size. */ -export interface DedicatedHostAllocatableVM { - /** VM size in terms of which the unutilized capacity is represented. */ - vmSize?: string; - /** Maximum number of VMs of size vmSize that can fit in the dedicated host's remaining capacity. */ - count?: number; +/** The configuration parameters used while performing a rolling upgrade. */ +export interface RollingUpgradePolicy { + /** The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. */ + maxBatchInstancePercent?: number; + /** The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%. */ + maxUnhealthyInstancePercent?: number; + /** The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%. */ + maxUnhealthyUpgradedInstancePercent?: number; + /** The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S). */ + pauseTimeBetweenBatches?: string; + /** Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size. */ + enableCrossZoneUpgrade?: boolean; + /** Upgrade all unhealthy instances in a scale set before any healthy instances. */ + prioritizeUnhealthyInstances?: boolean; } -/** The List Dedicated Host Group with resource group response. */ -export interface DedicatedHostGroupListResult { - /** The list of dedicated host groups */ - value: DedicatedHostGroup[]; - /** The URI to fetch the next page of Dedicated Host Groups. Call ListNext() with this URI to fetch the next page of Dedicated Host Groups. */ - nextLink?: string; +/** The configuration parameters used for performing automatic OS upgrade. */ +export interface AutomaticOSUpgradePolicy { + /** Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false.

If this is set to true for Windows based scale sets, [enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet) is automatically set to false and cannot be set to true. */ + enableAutomaticOSUpgrade?: boolean; + /** Whether OS image rollback feature should be disabled. Default value is false. */ + disableAutomaticRollback?: boolean; } -/** The list dedicated host operation response. */ -export interface DedicatedHostListResult { - /** The list of dedicated hosts */ - value: DedicatedHost[]; - /** The URI to fetch the next page of dedicated hosts. Call ListNext() with this URI to fetch the next page of dedicated hosts. */ - nextLink?: string; +/** Specifies the configuration parameters for automatic repairs on the virtual machine scale set. */ +export interface AutomaticRepairsPolicy { + /** Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false. */ + enabled?: boolean; + /** The amount of time for which automatic repairs are suspended due to a state change on VM. The grace time starts after the state change has completed. This helps avoid premature or accidental repairs. The time duration should be specified in ISO 8601 format. The minimum allowed grace period is 10 minutes (PT10M), which is also the default value. The maximum allowed grace period is 90 minutes (PT90M). */ + gracePeriod?: string; + /** Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual machines in the scale set. Default value is replace. */ + repairAction?: RepairAction; } -/** The list SSH public keys operation response. */ -export interface SshPublicKeysGroupListResult { - /** The list of SSH public keys */ - value: SshPublicKeyResource[]; - /** The URI to fetch the next page of SSH public keys. Call ListNext() with this URI to fetch the next page of SSH public keys. */ - nextLink?: string; +/** Describes a virtual machine scale set virtual machine profile. */ +export interface VirtualMachineScaleSetVMProfile { + /** Specifies the operating system settings for the virtual machines in the scale set. */ + osProfile?: VirtualMachineScaleSetOSProfile; + /** Specifies the storage settings for the virtual machine disks. */ + storageProfile?: VirtualMachineScaleSetStorageProfile; + /** Specifies properties of the network interfaces of the virtual machines in the scale set. */ + networkProfile?: VirtualMachineScaleSetNetworkProfile; + /** Specifies the Security related profile settings for the virtual machines in the scale set. */ + securityProfile?: SecurityProfile; + /** Specifies the boot diagnostic settings state.

Minimum api-version: 2015-06-15. */ + diagnosticsProfile?: DiagnosticsProfile; + /** Specifies a collection of settings for extensions installed on virtual machines in the scale set. */ + extensionProfile?: VirtualMachineScaleSetExtensionProfile; + /** Specifies that the image or disk that is being used was licensed on-premises.

Possible values for Windows Server operating system are:

Windows_Client

Windows_Server

Possible values for Linux 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)

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

Minimum api-version: 2015-06-15 */ + licenseType?: string; + /** Specifies the priority for the virtual machines in the scale set.

Minimum api-version: 2017-10-30-preview */ + priority?: VirtualMachinePriorityTypes; + /** Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set.

For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01.

For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. */ + evictionPolicy?: VirtualMachineEvictionPolicyTypes; + /** Specifies the billing related details of a Azure Spot VMSS.

Minimum api-version: 2019-03-01. */ + billingProfile?: BillingProfile; + /** Specifies Scheduled Event related configurations. */ + scheduledEventsProfile?: ScheduledEventsProfile; + /** UserData for the virtual machines in the scale set, which must be base-64 encoded. Customer should not pass any secrets in here.

Minimum api-version: 2021-03-01 */ + userData?: string; + /** Specifies the capacity reservation related details of a scale set.

Minimum api-version: 2021-04-01. */ + capacityReservation?: CapacityReservationProfile; + /** Specifies the gallery applications that should be made available to the VM/VMSS */ + applicationProfile?: ApplicationProfile; + /** Specifies the hardware profile related details of a scale set.

Minimum api-version: 2022-03-01. */ + hardwareProfile?: VirtualMachineScaleSetHardwareProfile; } -/** Response from generation of an SSH key pair. */ -export interface SshPublicKeyGenerateKeyPairResult { - /** Private key portion of the key pair used to authenticate to a virtual machine through ssh. The private key is returned in RFC3447 format and should be treated as a secret. */ - privateKey: string; - /** Public key portion of the key pair used to authenticate to a virtual machine through ssh. The public key is in ssh-rsa format. */ - publicKey: string; - /** The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{SshPublicKeyName} */ - id: string; +/** Describes a virtual machine scale set OS profile. */ +export interface VirtualMachineScaleSetOSProfile { + /** Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. */ + computerNamePrefix?: string; + /** Specifies the name of the administrator account.

**Windows-only restriction:** Cannot end in "."

**Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".

**Minimum-length (Linux):** 1 character

**Max-length (Linux):** 64 characters

**Max-length (Windows):** 20 characters */ + adminUsername?: string; + /** Specifies the password of the administrator account.

**Minimum-length (Windows):** 8 characters

**Minimum-length (Linux):** 6 characters

**Max-length (Windows):** 123 characters

**Max-length (Linux):** 72 characters

**Complexity requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters
Has upper characters
Has a digit
Has a special character (Regex match [\W_])

**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "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)

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) */ + adminPassword?: string; + /** Specifies a base-64 encoded string of custom data. The base-64 encoded string 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) */ + customData?: string; + /** Specifies Windows operating system settings on the virtual machine. */ + windowsConfiguration?: WindowsConfiguration; + /** 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). */ + 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) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ + secrets?: VaultSecretGroup[]; + /** Specifies whether extension operations should be allowed on the virtual machine scale set.

This may only be set to False when no extensions are present on the virtual machine scale set. */ + allowExtensionOperations?: boolean; } -/** The instance view of a virtual machine extension. */ -export interface VirtualMachineExtensionInstanceView { - /** The virtual machine extension name. */ - name?: string; - /** Specifies the type of the extension; an example is "CustomScriptExtension". */ - type?: string; - /** Specifies the version of the script handler. */ - typeHandlerVersion?: string; - /** The resource status information. */ - substatuses?: InstanceViewStatus[]; - /** The resource status information. */ - statuses?: InstanceViewStatus[]; -} - -/** The List Extension operation response */ -export interface VirtualMachineExtensionsListResult { - /** The list of extensions */ - value?: VirtualMachineExtension[]; -} - -/** Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. */ -export interface PurchasePlan { - /** The publisher ID. */ - publisher: string; - /** The plan ID. */ - name: string; - /** Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. */ - product: string; -} - -/** Contains the os disk image information. */ -export interface OSDiskImage { - /** The operating system of the osDiskImage. */ - operatingSystem: OperatingSystemTypes; -} - -/** Contains the data disk images information. */ -export interface DataDiskImage { - /** - * Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lun?: number; +/** Specifies Windows operating system settings on the virtual machine. */ +export interface WindowsConfiguration { + /** Indicates whether virtual machine agent should be provisioned on the virtual machine.

When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. */ + provisionVMAgent?: boolean; + /** Indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value is true.

For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning. */ + enableAutomaticUpdates?: boolean; + /** 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) value from time zones returned by [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones). */ + timeZone?: string; + /** Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. */ + additionalUnattendContent?: AdditionalUnattendContent[]; + /** [Preview Feature] Specifies settings related to VM Guest Patching on Windows. */ + patchSettings?: PatchSettings; + /** Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell. */ + winRM?: WinRMConfiguration; } -/** Describes automatic OS upgrade properties on the image. */ -export interface AutomaticOSUpgradeProperties { - /** Specifies whether automatic OS upgrade is supported on the image. */ - automaticOSUpgradeSupported: boolean; +/** Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. */ +export interface AdditionalUnattendContent { + /** The pass name. Currently, the only allowable value is OobeSystem. */ + passName?: "OobeSystem"; + /** The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup. */ + componentName?: "Microsoft-Windows-Shell-Setup"; + /** Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. */ + settingName?: SettingNames; + /** Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted. */ + content?: string; } -/** Specifies the disallowed configuration for a virtual machine image. */ -export interface DisallowedConfiguration { - /** VM disk types which are disallowed. */ - vmDiskType?: VmDiskTypes; +/** Specifies settings related to VM Guest Patching on Windows. */ +export interface PatchSettings { + /** Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.

Possible values are:

**Manual** - You control the application of patches to a virtual machine. You do this by applying patches manually inside the VM. In this mode, automatic updates are disabled; the property WindowsConfiguration.enableAutomaticUpdates must be false

**AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates must be true.

**AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true */ + patchMode?: WindowsVMGuestPatchMode; + /** Enables customers to patch their Azure VMs without requiring a reboot. For enableHotpatching, the 'provisionVMAgent' must be set to true and 'patchMode' must be set to 'AutomaticByPlatform'. */ + enableHotpatching?: boolean; + /** Specifies the mode of VM Guest patch assessment for the IaaS virtual machine.

Possible values are:

**ImageDefault** - You control the timing of patch assessments on a virtual machine.

**AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true. */ + assessmentMode?: WindowsPatchAssessmentMode; } -/** Specifies additional capabilities supported by the image */ -export interface VirtualMachineImageFeature { - /** The name of the feature. */ - name?: string; - /** The corresponding value for the feature. */ - value?: string; +/** Describes Windows Remote Management configuration of the VM */ +export interface WinRMConfiguration { + /** The list of Windows Remote Management listeners */ + listeners?: WinRMListener[]; } -/** The complex type of the extended location. */ -export interface ExtendedLocation { - /** The name of the extended location. */ - name?: string; - /** The type of the extended location. */ - type?: ExtendedLocationTypes; +/** Describes Protocol and thumbprint of Windows Remote Management listener */ +export interface WinRMListener { + /** Specifies the protocol of WinRM listener.

Possible values are:
**http**

**https** */ + protocol?: ProtocolTypes; + /** 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). 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) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ + certificateUrl?: string; } -/** The List Usages operation response. */ -export interface ListUsagesResult { - /** The list of compute resource usages. */ - value: Usage[]; - /** The URI to fetch the next page of compute resource usage information. Call ListNext() with this to fetch the next page of compute resource usage information. */ - nextLink?: string; +/** 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). */ +export interface LinuxConfiguration { + /** Specifies whether password authentication should be disabled. */ + disablePasswordAuthentication?: boolean; + /** Specifies the ssh key configuration for a Linux OS. */ + ssh?: SshConfiguration; + /** Indicates whether virtual machine agent should be provisioned on the virtual machine.

When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. */ + provisionVMAgent?: boolean; + /** [Preview Feature] Specifies settings related to VM Guest Patching on Linux. */ + patchSettings?: LinuxPatchSettings; } -/** Describes Compute Resource Usage. */ -export interface Usage { - /** An enum describing the unit of usage measurement. */ - unit: "Count"; - /** The current usage of the resource. */ - currentValue: number; - /** The maximum permitted usage of the resource. */ - limit: number; - /** The name of the type of usage. */ - name: UsageName; +/** SSH configuration for Linux based VMs running on Azure */ +export interface SshConfiguration { + /** The list of SSH public keys used to authenticate with linux based VMs. */ + publicKeys?: SshPublicKey[]; } -/** The Usage Names. */ -export interface UsageName { - /** The name of the resource. */ - value?: string; - /** The localized name of the resource. */ - localizedValue?: string; +/** Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. */ +export interface SshPublicKey { + /** Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys */ + path?: string; + /** 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). */ + keyData?: string; } -/** The List Virtual Machine operation response. */ -export interface VirtualMachineListResult { - /** The list of virtual machines. */ - value: VirtualMachine[]; - /** The URI to fetch the next page of VMs. Call ListNext() with this URI to fetch the next page of Virtual Machines. */ - nextLink?: string; +/** Specifies settings related to VM Guest Patching on Linux. */ +export interface LinuxPatchSettings { + /** Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.

Possible values are:

**ImageDefault** - The virtual machine's default patching configuration is used.

**AutomaticByPlatform** - The virtual machine will be automatically updated by the platform. The property provisionVMAgent must be true */ + patchMode?: LinuxVMGuestPatchMode; + /** Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.

Possible values are:

**ImageDefault** - You control the timing of patch assessments on a virtual machine.

**AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true. */ + assessmentMode?: LinuxPatchAssessmentMode; } -/** Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. */ -export interface Plan { - /** The plan ID. */ - name?: string; - /** The publisher ID. */ - publisher?: string; - /** Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. */ - product?: string; - /** The promotion code. */ - promotionCode?: string; +/** Describes a set of certificates which are all in the same Key Vault. */ +export interface VaultSecretGroup { + /** The relative URL of the Key Vault containing all of the certificates in VaultCertificates. */ + sourceVault?: SubResource; + /** The list of key vault references in SourceVault which contain certificates. */ + vaultCertificates?: VaultCertificate[]; } -/** Specifies the hardware settings for the virtual machine. */ -export interface HardwareProfile { - /** Specifies the size of the virtual machine.

The enum data type is currently deprecated and will be removed by December 23rd 2023.

Recommended way to get the list of available sizes is using these APIs:

[List all available virtual machine sizes in an availability set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes)

[List all available virtual machine sizes in a region]( https://docs.microsoft.com/rest/api/compute/resourceskus/list)

[List all available virtual machine sizes for resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/sizes).

The available VM sizes depend on region and availability set. */ - vmSize?: VirtualMachineSizeTypes; - /** Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-07-01.

This feature is still in preview mode and is not supported for VirtualMachineScaleSet.

Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details. */ - vmSizeProperties?: VMSizeProperties; +export interface SubResource { + /** Resource Id */ + id?: string; } -/** Specifies VM Size Property settings on the virtual machine. */ -export interface VMSizeProperties { - /** Specifies the number of vCPUs available for the VM.

When this property is not 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) . */ - vCPUsAvailable?: number; - /** Specifies the vCPU to physical core ratio.

When this property is not specified 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)

Setting this property to 1 also means that hyper-threading is disabled. */ - vCPUsPerCore?: number; +/** Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. */ +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). 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) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ + certificateUrl?: string; + /** For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account.

For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbprint>.prv for private key. Both of these files are .pem formatted. */ + certificateStore?: string; } -/** Specifies the storage settings for the virtual machine disks. */ -export interface StorageProfile { +/** Describes a virtual machine scale set storage profile. */ +export interface VirtualMachineScaleSetStorageProfile { /** Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. */ imageReference?: ImageReference; - /** Specifies information about the operating system disk used by the virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ - osDisk?: OSDisk; - /** Specifies the parameters that are used to add a data disk to a virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ - dataDisks?: DataDisk[]; + /** 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). */ + 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). */ + dataDisks?: VirtualMachineScaleSetDataDisk[]; } -/** Specifies information about the operating system disk used by the virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ -export interface OSDisk { - /** This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.

Possible values are:

**Windows**

**Linux** */ - osType?: OperatingSystemTypes; - /** Specifies the encryption settings for the OS Disk.

Minimum api-version: 2015-06-15 */ - encryptionSettings?: DiskEncryptionSettings; +/** Describes a virtual machine scale set operating system disk. */ +export interface VirtualMachineScaleSetOSDisk { /** The disk name. */ name?: string; - /** The virtual hard disk. */ - vhd?: VirtualHardDisk; - /** The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. */ - image?: VirtualHardDisk; - /** Specifies the caching requirements.

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

Default: **None** for Standard storage. **ReadOnly** for Premium storage. */ + /** Specifies the caching requirements.

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

Default: **None for Standard storage. ReadOnly for Premium storage** */ caching?: CachingTypes; /** Specifies whether writeAccelerator should be enabled or disabled on the disk. */ writeAcceleratorEnabled?: boolean; - /** Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. */ - diffDiskSettings?: DiffDiskSettings; - /** Specifies how the virtual machine should be created.

Possible values are:

**Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.

**FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. */ + /** Specifies how the virtual machines in the scale set should be created.

The only allowed value is: **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. */ createOption: DiskCreateOptionTypes; - /** Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

This value cannot be larger than 1023 GB */ + /** Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set. */ + diffDiskSettings?: DiffDiskSettings; + /** Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

This value cannot be larger than 1023 GB */ diskSizeGB?: number; + /** This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.

Possible values are:

**Windows**

**Linux** */ + osType?: OperatingSystemTypes; + /** Specifies information about the unmanaged user image to base the scale set on. */ + image?: VirtualHardDisk; + /** Specifies the container urls that are used to store operating system disks for the scale set. */ + vhdContainers?: string[]; /** The managed disk parameters. */ - managedDisk?: ManagedDiskParameters; - /** Specifies whether OS Disk should be deleted or detached upon VM deletion.

Possible values:

**Delete** If this value is used, the OS disk is deleted when VM is deleted.

**Detach** If this value is used, the os disk is retained after VM is deleted.

The default value is set to **detach**. For an ephemeral OS Disk, the default value is set to **Delete**. User cannot change the delete option for ephemeral OS Disk. */ - deleteOption?: DiskDeleteOptionTypes; + managedDisk?: VirtualMachineScaleSetManagedDiskParameters; } -/** Describes a Encryption Settings for a Disk */ -export interface DiskEncryptionSettings { - /** Specifies the location of the disk encryption key, which is a Key Vault Secret. */ - diskEncryptionKey?: KeyVaultSecretReference; - /** Specifies the location of the key encryption key in Key Vault. */ - keyEncryptionKey?: KeyVaultKeyReference; - /** Specifies whether disk encryption should be enabled on the virtual machine. */ - enabled?: boolean; -} - -/** Describes a reference to Key Vault Secret */ -export interface KeyVaultSecretReference { - /** The URL referencing a secret in a Key Vault. */ - secretUrl: string; - /** The relative URL of the Key Vault containing the secret. */ - sourceVault: SubResource; -} - -/** Describes a reference to Key Vault Key */ -export interface KeyVaultKeyReference { - /** The URL referencing a key encryption key in Key Vault. */ - keyUrl: string; - /** The relative URL of the Key Vault containing the key. */ - sourceVault: SubResource; +/** Describes the parameters of ephemeral disk settings that can be specified for operating system disk.

NOTE: The ephemeral disk settings can only be specified for managed disk. */ +export interface DiffDiskSettings { + /** Specifies the ephemeral disk settings for operating system disk. */ + option?: DiffDiskOptions; + /** Specifies the ephemeral disk placement for operating system disk.

Possible values are:

**CacheDisk**

**ResourceDisk**

Default: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used.

Refer to 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 sizes exposes a cache disk. */ + placement?: DiffDiskPlacement; } /** Describes the uri of a disk. */ @@ -466,12 +422,14 @@ export interface VirtualHardDisk { uri?: string; } -/** Describes the parameters of ephemeral disk settings that can be specified for operating system disk.

NOTE: The ephemeral disk settings can only be specified for managed disk. */ -export interface DiffDiskSettings { - /** Specifies the ephemeral disk settings for operating system disk. */ - option?: DiffDiskOptions; - /** Specifies the ephemeral disk placement for operating system disk.

Possible values are:

**CacheDisk**

**ResourceDisk**

Default: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used.

Refer to 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 sizes exposes a cache disk. */ - placement?: DiffDiskPlacement; +/** Describes the parameters of a ScaleSet managed disk. */ +export interface VirtualMachineScaleSetManagedDiskParameters { + /** Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. */ + storageAccountType?: StorageAccountTypes; + /** Specifies the customer managed disk encryption set resource id for the managed disk. */ + diskEncryptionSet?: DiskEncryptionSetParameters; + /** Specifies the security profile for the managed disk. */ + securityProfile?: VMDiskSecurityProfile; } /** Specifies the security profile settings for the managed disk.

NOTE: It can only be set for Confidential VMs */ @@ -482,1048 +440,1096 @@ export interface VMDiskSecurityProfile { diskEncryptionSet?: DiskEncryptionSetParameters; } -/** Describes a data disk. */ -export interface DataDisk { - /** Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. */ - lun: number; +/** Describes a virtual machine scale set data disk. */ +export interface VirtualMachineScaleSetDataDisk { /** The disk name. */ name?: string; - /** The virtual hard disk. */ - vhd?: VirtualHardDisk; - /** The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. */ - image?: VirtualHardDisk; + /** Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. */ + lun: number; /** Specifies the caching requirements.

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

Default: **None for Standard storage. ReadOnly for Premium storage** */ caching?: CachingTypes; /** Specifies whether writeAccelerator should be enabled or disabled on the disk. */ writeAcceleratorEnabled?: boolean; - /** Specifies how the virtual machine should be created.

Possible values are:

**Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.

**FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. */ + /** The create option. */ createOption: DiskCreateOptionTypes; /** Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

This value cannot be larger than 1023 GB */ diskSizeGB?: number; /** The managed disk parameters. */ - managedDisk?: ManagedDiskParameters; - /** Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset */ - toBeDetached?: boolean; - /** - * Specifies the Read-Write IOPS for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly diskIopsReadWrite?: number; - /** - * Specifies the bandwidth in MB per second for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly diskMBpsReadWrite?: number; - /** Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach**.

detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior.

This feature is still in preview mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. */ - detachOption?: DiskDetachOptionTypes; - /** Specifies whether data disk should be deleted or detached upon VM deletion.

Possible values:

**Delete** If this value is used, the data disk is deleted when VM is deleted.

**Detach** If this value is used, the data disk is retained after VM is deleted.

The default value is set to **detach** */ - deleteOption?: DiskDeleteOptionTypes; + managedDisk?: VirtualMachineScaleSetManagedDiskParameters; + /** Specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB. */ + diskIopsReadWrite?: number; + /** Specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB. */ + diskMBpsReadWrite?: number; } -/** Enables or disables a capability on the virtual machine or virtual machine scale set. */ -export interface AdditionalCapabilities { - /** The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale set only if this property is enabled. */ - ultraSSDEnabled?: boolean; - /** The flag that enables or disables hibernation capability on the VM. */ - hibernationEnabled?: boolean; +/** Describes a virtual machine scale set network profile. */ +export interface VirtualMachineScaleSetNetworkProfile { + /** A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'. */ + healthProbe?: ApiEntityReference; + /** The list of network configurations. */ + networkInterfaceConfigurations?: VirtualMachineScaleSetNetworkConfiguration[]; + /** specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set with orchestration mode 'Flexible' */ + networkApiVersion?: NetworkApiVersion; } -/** Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned. */ -export interface OSProfile { - /** Specifies the host OS name of the virtual machine.

This name cannot be updated after the VM is created.

**Max-length (Windows):** 15 characters

**Max-length (Linux):** 64 characters.

For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules). */ - computerName?: string; - /** Specifies the name of the administrator account.

This property cannot be updated after the VM is created.

**Windows-only restriction:** Cannot end in "."

**Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".

**Minimum-length (Linux):** 1 character

**Max-length (Linux):** 64 characters

**Max-length (Windows):** 20 characters. */ - adminUsername?: string; - /** Specifies the password of the administrator account.

**Minimum-length (Windows):** 8 characters

**Minimum-length (Linux):** 6 characters

**Max-length (Windows):** 123 characters

**Max-length (Linux):** 72 characters

**Complexity requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters
Has upper characters
Has a digit
Has a special character (Regex match [\W_])

**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "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)

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) */ - adminPassword?: string; - /** Specifies a base-64 encoded string of custom data. The base-64 encoded string 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.

**Note: Do not pass any secrets or passwords in customData property**

This property cannot be updated after the VM is created.

customData is passed to the VM to be saved as a file, for more information see [Custom Data on Azure VMs](https://azure.microsoft.com/blog/custom-data-and-cloud-init-on-windows-azure/)

For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init) */ - customData?: string; - /** Specifies Windows operating system settings on the virtual machine. */ - windowsConfiguration?: WindowsConfiguration; - /** 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). */ - linuxConfiguration?: LinuxConfiguration; - /** Specifies set of certificates that should be installed onto the virtual machine. 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) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ - secrets?: VaultSecretGroup[]; - /** Specifies whether extension operations should be allowed on the virtual machine.

This may only be set to False when no extensions are present on the virtual machine. */ - allowExtensionOperations?: boolean; - /** Specifies whether the guest provision signal is required to infer provision success of the virtual machine. **Note: This property is for private testing only, and all customers must not set the property to false.** */ - requireGuestProvisionSignal?: boolean; +/** The API entity reference. */ +export interface ApiEntityReference { + /** The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... */ + id?: string; } -/** Specifies Windows operating system settings on the virtual machine. */ -export interface WindowsConfiguration { - /** Indicates whether virtual machine agent should be provisioned on the virtual machine.

When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. */ - provisionVMAgent?: boolean; - /** Indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value is true.

For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning. */ - enableAutomaticUpdates?: boolean; - /** 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) value from time zones returned by [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones). */ - timeZone?: string; - /** Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. */ - additionalUnattendContent?: AdditionalUnattendContent[]; - /** [Preview Feature] Specifies settings related to VM Guest Patching on Windows. */ - patchSettings?: PatchSettings; - /** Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell. */ - winRM?: WinRMConfiguration; +/** Describes a virtual machines scale sets network configuration's DNS settings. */ +export interface VirtualMachineScaleSetNetworkConfigurationDnsSettings { + /** List of DNS servers IP addresses */ + dnsServers?: string[]; } -/** Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. */ -export interface AdditionalUnattendContent { - /** The pass name. Currently, the only allowable value is OobeSystem. */ - passName?: "OobeSystem"; - /** The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup. */ - componentName?: "Microsoft-Windows-Shell-Setup"; - /** Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. */ - settingName?: SettingNames; - /** Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted. */ - content?: string; +/** Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration */ +export interface VirtualMachineScaleSetPublicIPAddressConfiguration { + /** The publicIP address configuration name. */ + name: string; + /** Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible. */ + sku?: PublicIPAddressSku; + /** The idle timeout of the public IP address. */ + idleTimeoutInMinutes?: number; + /** The dns settings to be applied on the publicIP addresses . */ + dnsSettings?: VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings; + /** The list of IP tags associated with the public IP address. */ + ipTags?: VirtualMachineScaleSetIpTag[]; + /** The PublicIPPrefix from which to allocate publicIP addresses. */ + publicIPPrefix?: SubResource; + /** Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. */ + publicIPAddressVersion?: IPVersion; + /** Specify what happens to the public IP when the VM is deleted */ + deleteOption?: DeleteOptions; } -/** Specifies settings related to VM Guest Patching on Windows. */ -export interface PatchSettings { - /** Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.

Possible values are:

**Manual** - You control the application of patches to a virtual machine. You do this by applying patches manually inside the VM. In this mode, automatic updates are disabled; the property WindowsConfiguration.enableAutomaticUpdates must be false

**AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates must be true.

**AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true */ - patchMode?: WindowsVMGuestPatchMode; - /** Enables customers to patch their Azure VMs without requiring a reboot. For enableHotpatching, the 'provisionVMAgent' must be set to true and 'patchMode' must be set to 'AutomaticByPlatform'. */ - enableHotpatching?: boolean; - /** Specifies the mode of VM Guest patch assessment for the IaaS virtual machine.

Possible values are:

**ImageDefault** - You control the timing of patch assessments on a virtual machine.

**AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true. */ - assessmentMode?: WindowsPatchAssessmentMode; +/** Describes a virtual machines scale sets network configuration's DNS settings. */ +export interface VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings { + /** The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created */ + domainNameLabel: string; } -/** Describes Windows Remote Management configuration of the VM */ -export interface WinRMConfiguration { - /** The list of Windows Remote Management listeners */ - listeners?: WinRMListener[]; +/** Contains the IP tag associated with the public IP address. */ +export interface VirtualMachineScaleSetIpTag { + /** IP tag type. Example: FirstPartyUsage. */ + ipTagType?: string; + /** IP tag associated with the public IP. Example: SQL, Storage etc. */ + tag?: string; } -/** Describes Protocol and thumbprint of Windows Remote Management listener */ -export interface WinRMListener { - /** Specifies the protocol of WinRM listener.

Possible values are:
**http**

**https** */ - protocol?: ProtocolTypes; - /** 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). 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) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ - certificateUrl?: string; +/** Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible. */ +export interface PublicIPAddressSku { + /** Specify public IP sku name */ + name?: PublicIPAddressSkuName; + /** Specify public IP sku tier */ + tier?: PublicIPAddressSkuTier; } -/** 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). */ -export interface LinuxConfiguration { - /** Specifies whether password authentication should be disabled. */ - disablePasswordAuthentication?: boolean; - /** Specifies the ssh key configuration for a Linux OS. */ - ssh?: SshConfiguration; - /** Indicates whether virtual machine agent should be provisioned on the virtual machine.

When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. */ - provisionVMAgent?: boolean; - /** [Preview Feature] Specifies settings related to VM Guest Patching on Linux. */ - patchSettings?: LinuxPatchSettings; +/** Specifies the Security profile settings for the virtual machine or virtual machine scale set. */ +export interface SecurityProfile { + /** Specifies the security settings like secure boot and vTPM used while creating the virtual machine.

Minimum api-version: 2020-12-01 */ + uefiSettings?: UefiSettings; + /** This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself.

Default: The Encryption at host will be disabled unless this property is set to true for the resource. */ + encryptionAtHost?: boolean; + /** Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings.

Default: UefiSettings will not be enabled unless this property is set. */ + securityType?: SecurityTypes; } -/** SSH configuration for Linux based VMs running on Azure */ -export interface SshConfiguration { - /** The list of SSH public keys used to authenticate with linux based VMs. */ - publicKeys?: SshPublicKey[]; +/** Specifies the security settings like secure boot and vTPM used while creating the virtual machine.

Minimum api-version: 2020-12-01 */ +export interface UefiSettings { + /** Specifies whether secure boot should be enabled on the virtual machine.

Minimum api-version: 2020-12-01 */ + secureBootEnabled?: boolean; + /** Specifies whether vTPM should be enabled on the virtual machine.

Minimum api-version: 2020-12-01 */ + vTpmEnabled?: boolean; } -/** Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. */ -export interface SshPublicKey { - /** Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys */ - path?: string; - /** 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). */ - keyData?: string; +/** Specifies the boot diagnostic settings state.

Minimum api-version: 2015-06-15. */ +export interface DiagnosticsProfile { + /** Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.
**NOTE**: If storageUri is being specified then ensure that the storage account is in the same region and subscription as the VM.

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the VM from the hypervisor. */ + bootDiagnostics?: BootDiagnostics; } -/** Specifies settings related to VM Guest Patching on Linux. */ -export interface LinuxPatchSettings { - /** Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.

Possible values are:

**ImageDefault** - The virtual machine's default patching configuration is used.

**AutomaticByPlatform** - The virtual machine will be automatically updated by the platform. The property provisionVMAgent must be true */ - patchMode?: LinuxVMGuestPatchMode; - /** Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.

Possible values are:

**ImageDefault** - You control the timing of patch assessments on a virtual machine.

**AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true. */ - assessmentMode?: LinuxPatchAssessmentMode; +/** Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the VM from the hypervisor. */ +export interface BootDiagnostics { + /** Whether boot diagnostics should be enabled on the Virtual Machine. */ + enabled?: boolean; + /** Uri of the storage account to use for placing the console output and screenshot.

If storageUri is not specified while enabling boot diagnostics, managed storage will be used. */ + storageUri?: string; } -/** Describes a set of certificates which are all in the same Key Vault. */ -export interface VaultSecretGroup { - /** The relative URL of the Key Vault containing all of the certificates in VaultCertificates. */ - sourceVault?: SubResource; - /** The list of key vault references in SourceVault which contain certificates. */ - vaultCertificates?: VaultCertificate[]; +/** Describes a virtual machine scale set extension profile. */ +export interface VirtualMachineScaleSetExtensionProfile { + /** The virtual machine scale set child extension resources. */ + extensions?: VirtualMachineScaleSetExtension[]; + /** Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M).

Minimum api-version: 2020-06-01 */ + extensionsTimeBudget?: string; } -/** Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. */ -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). 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) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ - certificateUrl?: string; - /** For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account.

For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbprint>.prv for private key. Both of these files are .pem formatted. */ - certificateStore?: string; +export interface SubResourceReadOnly { + /** + * Resource Id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; } -/** Specifies the network interfaces or the networking configuration of the virtual machine. */ -export interface NetworkProfile { - /** Specifies the list of resource Ids for the network interfaces associated with the virtual machine. */ - networkInterfaces?: NetworkInterfaceReference[]; - /** specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations */ - networkApiVersion?: NetworkApiVersion; - /** Specifies the networking configurations that will be used to create the virtual machine networking resources. */ - networkInterfaceConfigurations?: VirtualMachineNetworkInterfaceConfiguration[]; -} - -/** Describes a virtual machine network interface configurations. */ -export interface VirtualMachineNetworkInterfaceConfiguration { - /** The network interface configuration name. */ - name: string; - /** Specifies the primary network interface in case the virtual machine has more than 1 network interface. */ - primary?: boolean; - /** Specify what happens to the network interface when the VM is deleted */ - deleteOption?: DeleteOptions; - /** Specifies whether the network interface is accelerated networking-enabled. */ - enableAcceleratedNetworking?: boolean; - /** Specifies whether the network interface is FPGA networking-enabled. */ - enableFpga?: boolean; - /** Whether IP forwarding enabled on this NIC. */ - enableIPForwarding?: boolean; - /** The network security group. */ - networkSecurityGroup?: SubResource; - /** The dns settings to be applied on the network interfaces. */ - dnsSettings?: VirtualMachineNetworkInterfaceDnsSettingsConfiguration; - /** Specifies the IP configurations of the network interface. */ - ipConfigurations?: VirtualMachineNetworkInterfaceIPConfiguration[]; - dscpConfiguration?: SubResource; +/** Specifies the billing related details of a Azure Spot VM or VMSS.

Minimum api-version: 2019-03-01. */ +export interface BillingProfile { + /** Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars.

This price will be compared with the current Azure Spot price for the VM size. Also, the prices are compared at the time of create/update of Azure Spot VM/VMSS and the operation will only succeed if the maxPrice is greater than the current Azure Spot price.

The maxPrice will also be used for evicting a Azure Spot VM/VMSS if the current Azure Spot price goes beyond the maxPrice after creation of VM/VMSS.

Possible values are:

- Any decimal value greater than zero. Example: 0.01538

-1 – indicates default price to be up-to on-demand.

You can set the maxPrice to -1 to indicate that the Azure Spot VM/VMSS should not be evicted for price reasons. Also, the default max price is -1 if it is not provided by you.

Minimum api-version: 2019-03-01. */ + maxPrice?: number; } -/** Describes a virtual machines network configuration's DNS settings. */ -export interface VirtualMachineNetworkInterfaceDnsSettingsConfiguration { - /** List of DNS servers IP addresses */ - dnsServers?: string[]; +export interface ScheduledEventsProfile { + /** Specifies Terminate Scheduled Event related configurations. */ + terminateNotificationProfile?: TerminateNotificationProfile; } -/** Describes a virtual machine network profile's IP configuration. */ -export interface VirtualMachineNetworkInterfaceIPConfiguration { - /** The IP configuration name. */ - name: string; - /** Specifies the identifier of the subnet. */ - subnet?: SubResource; - /** Specifies the primary network interface in case the virtual machine has more than 1 network interface. */ - primary?: boolean; - /** The publicIPAddressConfiguration. */ - publicIPAddressConfiguration?: VirtualMachinePublicIPAddressConfiguration; - /** Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. */ - privateIPAddressVersion?: IPVersions; - /** Specifies an array of references to application security group. */ - applicationSecurityGroups?: SubResource[]; - /** Specifies an array of references to backend address pools of application gateways. A virtual machine can reference backend address pools of multiple application gateways. Multiple virtual machines cannot use the same application gateway. */ - applicationGatewayBackendAddressPools?: SubResource[]; - /** Specifies an array of references to backend address pools of load balancers. A virtual machine can reference backend address pools of one public and one internal load balancer. [Multiple virtual machines cannot use the same basic sku load balancer]. */ - loadBalancerBackendAddressPools?: SubResource[]; +export interface TerminateNotificationProfile { + /** Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved (timed out). The configuration must be specified in ISO 8601 format, the default value is 5 minutes (PT5M) */ + notBeforeTimeout?: string; + /** Specifies whether the Terminate Scheduled event is enabled or disabled. */ + enable?: boolean; } -/** Describes a virtual machines IP Configuration's PublicIPAddress configuration */ -export interface VirtualMachinePublicIPAddressConfiguration { - /** The publicIP address configuration name. */ - name: string; - /** Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible. */ - sku?: PublicIPAddressSku; - /** The idle timeout of the public IP address. */ - idleTimeoutInMinutes?: number; - /** Specify what happens to the public IP address when the VM is deleted */ - deleteOption?: DeleteOptions; - /** The dns settings to be applied on the publicIP addresses . */ - dnsSettings?: VirtualMachinePublicIPAddressDnsSettingsConfiguration; - /** The list of IP tags associated with the public IP address. */ - ipTags?: VirtualMachineIpTag[]; - /** The PublicIPPrefix from which to allocate publicIP addresses. */ - publicIPPrefix?: SubResource; - /** Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. */ - publicIPAddressVersion?: IPVersions; - /** Specify the public IP allocation type */ - publicIPAllocationMethod?: PublicIPAllocationMethod; +/** The parameters of a capacity reservation Profile. */ +export interface CapacityReservationProfile { + /** Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset vm instances provided enough capacity has been reserved. Please refer to https://aka.ms/CapacityReservation for more details. */ + capacityReservationGroup?: SubResource; } -/** Describes a virtual machines network configuration's DNS settings. */ -export interface VirtualMachinePublicIPAddressDnsSettingsConfiguration { - /** The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm network profile unique ID. */ - domainNameLabel: string; +/** Contains the list of gallery applications that should be made available to the VM/VMSS */ +export interface ApplicationProfile { + /** Specifies the gallery applications that should be made available to the VM/VMSS */ + galleryApplications?: VMGalleryApplication[]; } -/** Contains the IP tag associated with the public IP address. */ -export interface VirtualMachineIpTag { - /** IP tag type. Example: FirstPartyUsage. */ - ipTagType?: string; - /** IP tag associated with the public IP. Example: SQL, Storage etc. */ - tag?: string; +/** Specifies the required information to reference a compute gallery application version */ +export interface VMGalleryApplication { + /** Optional, Specifies a passthrough value for more generic context. */ + tags?: string; + /** Optional, Specifies the order in which the packages have to be installed */ + order?: number; + /** Specifies the GalleryApplicationVersion resource id on the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{application}/versions/{version} */ + packageReferenceId: string; + /** Optional, Specifies the uri to an azure blob that will replace the default configuration for the package if provided */ + configurationReference?: string; } -/** Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible. */ -export interface PublicIPAddressSku { - /** Specify public IP sku name */ - name?: PublicIPAddressSkuName; - /** Specify public IP sku tier */ - tier?: PublicIPAddressSkuTier; +/** Specifies the hardware settings for the virtual machine scale set. */ +export interface VirtualMachineScaleSetHardwareProfile { + /** Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2022-03-01.

Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details. */ + vmSizeProperties?: VMSizeProperties; } -/** Specifies the Security profile settings for the virtual machine or virtual machine scale set. */ -export interface SecurityProfile { - /** Specifies the security settings like secure boot and vTPM used while creating the virtual machine.

Minimum api-version: 2020-12-01 */ - uefiSettings?: UefiSettings; - /** This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself.

Default: The Encryption at host will be disabled unless this property is set to true for the resource. */ - encryptionAtHost?: boolean; - /** Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings.

Default: UefiSettings will not be enabled unless this property is set. */ - securityType?: SecurityTypes; +/** Specifies VM Size Property settings on the virtual machine. */ +export interface VMSizeProperties { + /** Specifies the number of vCPUs available for the VM.

When this property is not 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) . */ + vCPUsAvailable?: number; + /** Specifies the vCPU to physical core ratio.

When this property is not specified 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)

Setting this property to 1 also means that hyper-threading is disabled. */ + vCPUsPerCore?: number; } -/** Specifies the security settings like secure boot and vTPM used while creating the virtual machine.

Minimum api-version: 2020-12-01 */ -export interface UefiSettings { - /** Specifies whether secure boot should be enabled on the virtual machine.

Minimum api-version: 2020-12-01 */ - secureBootEnabled?: boolean; - /** Specifies whether vTPM should be enabled on the virtual machine.

Minimum api-version: 2020-12-01 */ - vTpmEnabled?: boolean; +/** Enables or disables a capability on the virtual machine or virtual machine scale set. */ +export interface AdditionalCapabilities { + /** The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale set only if this property is enabled. */ + ultraSSDEnabled?: boolean; + /** The flag that enables or disables hibernation capability on the VM. */ + hibernationEnabled?: boolean; } -/** Specifies the boot diagnostic settings state.

Minimum api-version: 2015-06-15. */ -export interface DiagnosticsProfile { - /** Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.
**NOTE**: If storageUri is being specified then ensure that the storage account is in the same region and subscription as the VM.

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the VM from the hypervisor. */ - bootDiagnostics?: BootDiagnostics; +/** Describes a scale-in policy for a virtual machine scale set. */ +export interface ScaleInPolicy { + /** The rules to be followed when scaling-in a virtual machine scale set.

Possible values are:

**Default** When a virtual machine scale set is scaled in, the scale set will first be balanced across zones if it is a zonal scale set. Then, it will be balanced across Fault Domains as far as possible. Within each Fault Domain, the virtual machines chosen for removal will be the newest ones that are not protected from scale-in.

**OldestVM** When a virtual machine scale set is being scaled-in, the oldest virtual machines that are not protected from scale-in will be chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced across zones. Within each zone, the oldest virtual machines that are not protected will be chosen for removal.

**NewestVM** When a virtual machine scale set is being scaled-in, the newest virtual machines that are not protected from scale-in will be chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced across zones. Within each zone, the newest virtual machines that are not protected will be chosen for removal.

*/ + rules?: VirtualMachineScaleSetScaleInRules[]; + /** This property allows you to specify if virtual machines chosen for removal have to be force deleted when a virtual machine scale set is being scaled-in.(Feature in Preview) */ + forceDeletion?: boolean; } -/** Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the VM from the hypervisor. */ -export interface BootDiagnostics { - /** Whether boot diagnostics should be enabled on the Virtual Machine. */ +/** Specifies the Spot-Try-Restore properties for the virtual machine scale set.

With this property customer can enable or disable automatic restore of the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing constraint. */ +export interface SpotRestorePolicy { + /** Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing constraints */ enabled?: boolean; - /** Uri of the storage account to use for placing the console output and screenshot.

If storageUri is not specified while enabling boot diagnostics, managed storage will be used. */ - storageUri?: string; -} - -/** Specifies the billing related details of a Azure Spot VM or VMSS.

Minimum api-version: 2019-03-01. */ -export interface BillingProfile { - /** Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars.

This price will be compared with the current Azure Spot price for the VM size. Also, the prices are compared at the time of create/update of Azure Spot VM/VMSS and the operation will only succeed if the maxPrice is greater than the current Azure Spot price.

The maxPrice will also be used for evicting a Azure Spot VM/VMSS if the current Azure Spot price goes beyond the maxPrice after creation of VM/VMSS.

Possible values are:

- Any decimal value greater than zero. Example: 0.01538

-1 – indicates default price to be up-to on-demand.

You can set the maxPrice to -1 to indicate that the Azure Spot VM/VMSS should not be evicted for price reasons. Also, the default max price is -1 if it is not provided by you.

Minimum api-version: 2019-03-01. */ - maxPrice?: number; + /** Timeout value expressed as an ISO 8601 time duration after which the platform will not try to restore the VMSS SPOT instances */ + restoreTimeout?: string; } -/** The instance view of a virtual machine. */ -export interface VirtualMachineInstanceView { - /** Specifies the update domain of the virtual machine. */ - platformUpdateDomain?: number; - /** Specifies the fault domain of the virtual machine. */ - platformFaultDomain?: number; - /** The computer name assigned to the virtual machine. */ - computerName?: string; - /** The Operating System running on the virtual machine. */ - osName?: string; - /** The version of Operating System running on the virtual machine. */ - osVersion?: string; - /** Specifies the HyperVGeneration Type associated with a resource */ - hyperVGeneration?: HyperVGenerationType; - /** The Remote desktop certificate thumbprint. */ - rdpThumbPrint?: string; - /** The VM Agent running on the virtual machine. */ - vmAgent?: VirtualMachineAgentInstanceView; - /** The Maintenance Operation status on the virtual machine. */ - maintenanceRedeployStatus?: MaintenanceRedeployStatus; - /** The virtual machine disk information. */ - disks?: DiskInstanceView[]; - /** The extensions information. */ - extensions?: VirtualMachineExtensionInstanceView[]; +/** Identity for the virtual machine scale set. */ +export interface VirtualMachineScaleSetIdentity { /** - * The health status for the VM. + * The principal id of virtual machine scale set identity. This property will only be provided for a system assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly vmHealth?: VirtualMachineHealthStatus; - /** Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the VM from the hypervisor. */ - bootDiagnostics?: BootDiagnosticsInstanceView; + readonly principalId?: string; /** - * Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled.

Minimum api-version: 2020-06-01. + * The tenant id associated with the virtual machine scale set. This property will only be provided for a system assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly assignedHost?: string; - /** The resource status information. */ - statuses?: InstanceViewStatus[]; - /** [Preview Feature] The status of virtual machine patch operations. */ - patchStatus?: VirtualMachinePatchStatus; + readonly tenantId?: string; + /** The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine scale set. */ + type?: ResourceIdentityType; + /** The list of user identities associated with the virtual machine scale set. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ + userAssignedIdentities?: { + [propertyName: string]: VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue; + }; } -/** The instance view of the VM Agent running on the virtual machine. */ -export interface VirtualMachineAgentInstanceView { - /** The VM Agent full version. */ - vmAgentVersion?: string; - /** The virtual machine extension handler instance view. */ - extensionHandlers?: VirtualMachineExtensionHandlerInstanceView[]; - /** The resource status information. */ - statuses?: InstanceViewStatus[]; +export interface VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue { + /** + * The principal id of user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The client id of user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientId?: string; } -/** The instance view of a virtual machine extension handler. */ -export interface VirtualMachineExtensionHandlerInstanceView { - /** Specifies the type of the extension; an example is "CustomScriptExtension". */ - type?: string; - /** Specifies the version of the script handler. */ - typeHandlerVersion?: string; - /** The extension handler status. */ - status?: InstanceViewStatus; +/** The complex type of the extended location. */ +export interface ExtendedLocation { + /** The name of the extended location. */ + name?: string; + /** The type of the extended location. */ + type?: ExtendedLocationTypes; } -/** Maintenance Operation Status. */ -export interface MaintenanceRedeployStatus { - /** True, if customer is allowed to perform Maintenance. */ - isCustomerInitiatedMaintenanceAllowed?: boolean; - /** Start Time for the Pre Maintenance Window. */ - preMaintenanceWindowStartTime?: Date; - /** End Time for the Pre Maintenance Window. */ - preMaintenanceWindowEndTime?: Date; - /** Start Time for the Maintenance Window. */ - maintenanceWindowStartTime?: Date; - /** End Time for the Maintenance Window. */ - maintenanceWindowEndTime?: Date; - /** The Last Maintenance Operation Result Code. */ - lastOperationResultCode?: MaintenanceOperationResultCodeTypes; - /** Message returned for the last Maintenance Operation. */ - lastOperationMessage?: string; -} - -/** The instance view of the disk. */ -export interface DiskInstanceView { - /** The disk name. */ - name?: string; - /** Specifies the encryption settings for the OS Disk.

Minimum api-version: 2015-06-15 */ - encryptionSettings?: DiskEncryptionSettings[]; - /** The resource status information. */ - statuses?: InstanceViewStatus[]; -} - -/** The health status of the VM. */ -export interface VirtualMachineHealthStatus { - /** - * The health status information for the VM. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: InstanceViewStatus; -} - -/** The instance view of a virtual machine boot diagnostics. */ -export interface BootDiagnosticsInstanceView { +/** The Resource model definition. */ +export interface Resource { /** - * The console screenshot blob URI.

NOTE: This will **not** be set if boot diagnostics is currently enabled with managed storage. + * Resource Id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly consoleScreenshotBlobUri?: string; + readonly id?: string; /** - * The serial console log blob Uri.

NOTE: This will **not** be set if boot diagnostics is currently enabled with managed storage. + * Resource name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serialConsoleLogBlobUri?: string; + readonly name?: string; /** - * The boot diagnostics status information for the VM.

NOTE: It will be set only if there are errors encountered in enabling boot diagnostics. + * Resource type * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: InstanceViewStatus; + readonly type?: string; + /** Resource location */ + location: string; + /** Resource tags */ + tags?: { [propertyName: string]: string }; } -/** The status of virtual machine patch operations. */ -export interface VirtualMachinePatchStatus { - /** The available patch summary of the latest assessment operation for the virtual machine. */ - availablePatchSummary?: AvailablePatchSummary; - /** The installation summary of the latest installation operation for the virtual machine. */ - lastPatchInstallationSummary?: LastPatchInstallationSummary; - /** - * The enablement status of the specified patchMode - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly configurationStatuses?: InstanceViewStatus[]; +/** Describes a virtual machine scale set virtual machine profile. */ +export interface VirtualMachineScaleSetUpdateVMProfile { + /** The virtual machine scale set OS profile. */ + osProfile?: VirtualMachineScaleSetUpdateOSProfile; + /** The virtual machine scale set storage profile. */ + storageProfile?: VirtualMachineScaleSetUpdateStorageProfile; + /** The virtual machine scale set network profile. */ + networkProfile?: VirtualMachineScaleSetUpdateNetworkProfile; + /** The virtual machine scale set Security profile */ + securityProfile?: SecurityProfile; + /** The virtual machine scale set diagnostics profile. */ + diagnosticsProfile?: DiagnosticsProfile; + /** The virtual machine scale set extension profile. */ + extensionProfile?: VirtualMachineScaleSetExtensionProfile; + /** The license type, which is for bring your own license scenario. */ + licenseType?: string; + /** Specifies the billing related details of a Azure Spot VMSS.

Minimum api-version: 2019-03-01. */ + billingProfile?: BillingProfile; + /** Specifies Scheduled Event related configurations. */ + scheduledEventsProfile?: ScheduledEventsProfile; + /** UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here.

Minimum api-version: 2021-03-01 */ + userData?: string; } -/** Describes the properties of an virtual machine instance view for available patch summary. */ -export interface AvailablePatchSummary { - /** - * The overall success or failure status of the operation. It remains "InProgress" until the operation completes. At that point it will become "Unknown", "Failed", "Succeeded", or "CompletedWithWarnings." - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: PatchOperationStatus; - /** - * The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly assessmentActivityId?: string; +/** Describes a virtual machine scale set OS profile. */ +export interface VirtualMachineScaleSetUpdateOSProfile { + /** A base-64 encoded string of custom data. */ + customData?: string; + /** The Windows Configuration of the OS profile. */ + windowsConfiguration?: WindowsConfiguration; + /** The Linux Configuration of the OS profile. */ + linuxConfiguration?: LinuxConfiguration; + /** The List of certificates for addition to the VM. */ + secrets?: VaultSecretGroup[]; +} + +/** Describes a virtual machine scale set storage profile. */ +export interface VirtualMachineScaleSetUpdateStorageProfile { + /** The image reference. */ + imageReference?: ImageReference; + /** The OS disk. */ + osDisk?: VirtualMachineScaleSetUpdateOSDisk; + /** The data disks. */ + dataDisks?: VirtualMachineScaleSetDataDisk[]; +} + +/** Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. */ +export interface VirtualMachineScaleSetUpdateOSDisk { + /** The caching type. */ + caching?: CachingTypes; + /** Specifies whether writeAccelerator should be enabled or disabled on the disk. */ + writeAcceleratorEnabled?: boolean; + /** Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

This value cannot be larger than 1023 GB */ + diskSizeGB?: number; + /** The Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist. */ + image?: VirtualHardDisk; + /** The list of virtual hard disk container uris. */ + vhdContainers?: string[]; + /** The managed disk parameters. */ + managedDisk?: VirtualMachineScaleSetManagedDiskParameters; +} + +/** Describes a virtual machine scale set network profile. */ +export interface VirtualMachineScaleSetUpdateNetworkProfile { + /** A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'. */ + healthProbe?: ApiEntityReference; + /** The list of network configurations. */ + networkInterfaceConfigurations?: VirtualMachineScaleSetUpdateNetworkConfiguration[]; + /** specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set with orchestration mode 'Flexible' */ + networkApiVersion?: NetworkApiVersion; +} + +/** Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration */ +export interface VirtualMachineScaleSetUpdatePublicIPAddressConfiguration { + /** The publicIP address configuration name. */ + name?: string; + /** The idle timeout of the public IP address. */ + idleTimeoutInMinutes?: number; + /** The dns settings to be applied on the publicIP addresses . */ + dnsSettings?: VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings; + /** The PublicIPPrefix from which to allocate publicIP addresses. */ + publicIPPrefix?: SubResource; + /** Specify what happens to the public IP when the VM is deleted */ + deleteOption?: DeleteOptions; +} + +/** The Update Resource model definition. */ +export interface UpdateResource { + /** Resource tags */ + tags?: { [propertyName: string]: string }; +} + +/** Specifies a list of virtual machine instance IDs from the VM scale set. */ +export interface VirtualMachineScaleSetVMInstanceIDs { + /** The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set. */ + instanceIds?: string[]; +} + +/** Specifies a list of virtual machine instance IDs from the VM scale set. */ +export interface VirtualMachineScaleSetVMInstanceRequiredIDs { + /** The virtual machine scale set instance ids. */ + instanceIds: string[]; +} + +/** The instance view of a virtual machine scale set. */ +export interface VirtualMachineScaleSetInstanceView { /** - * The overall reboot status of the VM. It will be true when partially installed patches require a reboot to complete installation but the reboot has not yet occurred. + * The instance view status summary for the virtual machine scale set. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly rebootPending?: boolean; + readonly virtualMachine?: VirtualMachineScaleSetInstanceViewStatusesSummary; /** - * The number of critical or security patches that have been detected as available and not yet installed. + * The extensions information. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly criticalAndSecurityPatchCount?: number; + readonly extensions?: VirtualMachineScaleSetVMExtensionsSummary[]; + /** The resource status information. */ + statuses?: InstanceViewStatus[]; /** - * The number of all available patches excluding critical and security. + * The orchestration services information. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly otherPatchCount?: number; + readonly orchestrationServices?: OrchestrationServiceSummary[]; +} + +/** Instance view statuses summary for virtual machines of a virtual machine scale set. */ +export interface VirtualMachineScaleSetInstanceViewStatusesSummary { /** - * The UTC timestamp when the operation began. + * The extensions information. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly statusesSummary?: VirtualMachineStatusCodeCount[]; +} + +/** The status code and count of the virtual machine scale set instance view status summary. */ +export interface VirtualMachineStatusCodeCount { /** - * The UTC timestamp when the operation began. + * The instance view status code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastModifiedTime?: Date; + readonly code?: string; /** - * The errors that were encountered during execution of the operation. The details array contains the list of them. + * The number of instances having a particular status code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly error?: ApiError; + readonly count?: number; } -/** Describes the properties of the last installed patch summary. */ -export interface LastPatchInstallationSummary { - /** - * The overall success or failure status of the operation. It remains "InProgress" until the operation completes. At that point it will become "Unknown", "Failed", "Succeeded", or "CompletedWithWarnings." - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: PatchOperationStatus; +/** Extensions summary for virtual machines of a virtual machine scale set. */ +export interface VirtualMachineScaleSetVMExtensionsSummary { /** - * The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs. + * The extension name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly installationActivityId?: string; + readonly name?: string; /** - * Describes whether the operation ran out of time before it completed all its intended actions + * The extensions information. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maintenanceWindowExceeded?: boolean; + readonly statusesSummary?: VirtualMachineStatusCodeCount[]; +} + +/** Instance view status. */ +export interface InstanceViewStatus { + /** The status code. */ + code?: string; + /** The level code. */ + level?: StatusLevelTypes; + /** The short localizable label for the status. */ + displayStatus?: string; + /** The detailed status message, including for alerts and error messages. */ + message?: string; + /** The time of the status. */ + time?: Date; +} + +/** Summary for an orchestration service of a virtual machine scale set. */ +export interface OrchestrationServiceSummary { /** - * The number of all available patches but not going to be installed because it didn't match a classification or inclusion list entry. + * The name of the service. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly notSelectedPatchCount?: number; + readonly serviceName?: OrchestrationServiceNames; /** - * The number of all available patches but excluded explicitly by a customer-specified exclusion list match. + * The current state of the service. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly excludedPatchCount?: number; - /** - * The number of all available patches expected to be installed over the course of the patch installation operation. + readonly serviceState?: OrchestrationServiceState; +} + +/** The List VM scale set extension operation response. */ +export interface VirtualMachineScaleSetExtensionListResult { + /** The list of VM scale set extensions. */ + value: VirtualMachineScaleSetExtension[]; + /** The uri to fetch the next page of VM scale set extensions. Call ListNext() with this to fetch the next page of VM scale set extensions. */ + nextLink?: string; +} + +/** The List Virtual Machine operation response. */ +export interface VirtualMachineScaleSetListWithLinkResult { + /** The list of virtual machine scale sets. */ + value: VirtualMachineScaleSet[]; + /** The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of Virtual Machine Scale Sets. */ + nextLink?: string; +} + +/** The Virtual Machine Scale Set List Skus operation response. */ +export interface VirtualMachineScaleSetListSkusResult { + /** The list of skus available for the virtual machine scale set. */ + value: VirtualMachineScaleSetSku[]; + /** The uri to fetch the next page of Virtual Machine Scale Set Skus. Call ListNext() with this to fetch the next page of VMSS Skus. */ + nextLink?: string; +} + +/** Describes an available virtual machine scale set sku. */ +export interface VirtualMachineScaleSetSku { + /** + * The type of resource the sku applies to. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly pendingPatchCount?: number; + readonly resourceType?: string; /** - * The count of patches that successfully installed. + * The Sku. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly installedPatchCount?: number; + readonly sku?: Sku; /** - * The count of patches that failed installation. + * Specifies the number of virtual machines in the scale set. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly failedPatchCount?: number; + readonly capacity?: VirtualMachineScaleSetSkuCapacity; +} + +/** Describes scaling information of a sku. */ +export interface VirtualMachineScaleSetSkuCapacity { /** - * The UTC timestamp when the operation began. + * The minimum capacity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly minimum?: number; /** - * The UTC timestamp when the operation began. + * The maximum capacity that can be set. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastModifiedTime?: Date; + readonly maximum?: number; /** - * The errors that were encountered during execution of the operation. The details array contains the list of them. + * The default capacity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly error?: ApiError; -} - -export interface ScheduledEventsProfile { - /** Specifies Terminate Scheduled Event related configurations. */ - terminateNotificationProfile?: TerminateNotificationProfile; + readonly defaultCapacity?: number; + /** + * The scale type applicable to the sku. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly scaleType?: VirtualMachineScaleSetSkuScaleType; } -export interface TerminateNotificationProfile { - /** Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved (timed out). The configuration must be specified in ISO 8601 format, the default value is 5 minutes (PT5M) */ - notBeforeTimeout?: string; - /** Specifies whether the Terminate Scheduled event is enabled or disabled. */ - enable?: boolean; +/** List of Virtual Machine Scale Set OS Upgrade History operation response. */ +export interface VirtualMachineScaleSetListOSUpgradeHistory { + /** The list of OS upgrades performed on the virtual machine scale set. */ + value: UpgradeOperationHistoricalStatusInfo[]; + /** The uri to fetch the next page of OS Upgrade History. Call ListNext() with this to fetch the next page of history of upgrades. */ + nextLink?: string; } -/** The parameters of a capacity reservation Profile. */ -export interface CapacityReservationProfile { - /** Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset vm instances provided enough capacity has been reserved. Please refer to https://aka.ms/CapacityReservation for more details. */ - capacityReservationGroup?: SubResource; +/** Virtual Machine Scale Set OS Upgrade History operation response. */ +export interface UpgradeOperationHistoricalStatusInfo { + /** + * Information about the properties of the upgrade operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly properties?: UpgradeOperationHistoricalStatusInfoProperties; + /** + * Resource type + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * Resource location + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly location?: string; } -/** Contains the list of gallery applications that should be made available to the VM/VMSS */ -export interface ApplicationProfile { - /** Specifies the gallery applications that should be made available to the VM/VMSS */ - galleryApplications?: VMGalleryApplication[]; +/** Describes each OS upgrade on the Virtual Machine Scale Set. */ +export interface UpgradeOperationHistoricalStatusInfoProperties { + /** + * Information about the overall status of the upgrade operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly runningStatus?: UpgradeOperationHistoryStatus; + /** + * Counts of the VMs in each state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly progress?: RollingUpgradeProgressInfo; + /** + * Error Details for this upgrade if there are any. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly error?: ApiError; + /** + * Invoker of the Upgrade Operation + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly startedBy?: UpgradeOperationInvoker; + /** + * Image Reference details + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetImageReference?: ImageReference; + /** + * Information about OS rollback if performed + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly rollbackInfo?: RollbackStatusInfo; } -/** Specifies the required information to reference a compute gallery application version */ -export interface VMGalleryApplication { - /** Optional, Specifies a passthrough value for more generic context. */ - tags?: string; - /** Optional, Specifies the order in which the packages have to be installed */ - order?: number; - /** Specifies the GalleryApplicationVersion resource id on the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{application}/versions/{version} */ - packageReferenceId: string; - /** Optional, Specifies the uri to an azure blob that will replace the default configuration for the package if provided */ - configurationReference?: string; +/** Information about the current running state of the overall upgrade. */ +export interface UpgradeOperationHistoryStatus { + /** + * Code indicating the current status of the upgrade. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: UpgradeState; + /** + * Start time of the upgrade. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly startTime?: Date; + /** + * End time of the upgrade. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly endTime?: Date; } -/** Identity for the virtual machine. */ -export interface VirtualMachineIdentity { +/** Information about the number of virtual machine instances in each upgrade state. */ +export interface RollingUpgradeProgressInfo { /** - * The principal id of virtual machine identity. This property will only be provided for a system assigned identity. + * The number of instances that have been successfully upgraded. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly successfulInstanceCount?: number; /** - * The tenant id associated with the virtual machine. This property will only be provided for a system assigned identity. + * The number of instances that have failed to be upgraded successfully. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tenantId?: string; - /** The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine. */ - type?: ResourceIdentityType; - /** The list of user identities associated with the Virtual Machine. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ - userAssignedIdentities?: { - [propertyName: string]: UserAssignedIdentitiesValue; - }; + readonly failedInstanceCount?: number; + /** + * The number of instances that are currently being upgraded. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly inProgressInstanceCount?: number; + /** + * The number of instances that have not yet begun to be upgraded. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly pendingInstanceCount?: number; } -export interface UserAssignedIdentitiesValue { +/** Information about rollback on failed VM instances after a OS Upgrade operation. */ +export interface RollbackStatusInfo { /** - * The principal id of user assigned identity. + * The number of instances which have been successfully rolled back. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly successfullyRolledbackInstanceCount?: number; /** - * The client id of user assigned identity. + * The number of instances which failed to rollback. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientId?: string; + readonly failedRolledbackInstanceCount?: number; + /** + * Error details if OS rollback failed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly rollbackError?: ApiError; } -/** The List Virtual Machine operation response. */ -export interface VirtualMachineScaleSetListResult { - /** The list of virtual machine scale sets. */ - value: VirtualMachineScaleSet[]; - /** The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of VMSS. */ - nextLink?: string; +/** Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged */ +export interface VirtualMachineReimageParameters { + /** Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. */ + tempDisk?: boolean; } -/** Describes an upgrade policy - automatic, manual, or rolling. */ -export interface UpgradePolicy { - /** Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

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

**Automatic** - All virtual machines in the scale set are automatically updated at the same time. */ - mode?: UpgradeMode; - /** The configuration parameters used while performing a rolling upgrade. */ - rollingUpgradePolicy?: RollingUpgradePolicy; - /** Configuration parameters used for performing automatic OS Upgrade. */ - automaticOSUpgradePolicy?: AutomaticOSUpgradePolicy; +/** Information about the current running state of the overall upgrade. */ +export interface RollingUpgradeRunningStatus { + /** + * Code indicating the current status of the upgrade. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: RollingUpgradeStatusCode; + /** + * Start time of the upgrade. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly startTime?: Date; + /** + * The last action performed on the rolling upgrade. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastAction?: RollingUpgradeActionType; + /** + * Last action time of the upgrade. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastActionTime?: Date; } -/** The configuration parameters used while performing a rolling upgrade. */ -export interface RollingUpgradePolicy { - /** The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. */ - maxBatchInstancePercent?: number; - /** The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%. */ - maxUnhealthyInstancePercent?: number; - /** The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%. */ - maxUnhealthyUpgradedInstancePercent?: number; - /** The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S). */ - pauseTimeBetweenBatches?: string; - /** Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size. */ - enableCrossZoneUpgrade?: boolean; - /** Upgrade all unhealthy instances in a scale set before any healthy instances. */ - prioritizeUnhealthyInstances?: boolean; +/** Response after calling a manual recovery walk */ +export interface RecoveryWalkResponse { + /** + * Whether the recovery walk was performed + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly walkPerformed?: boolean; + /** + * The next update domain that needs to be walked. Null means walk spanning all update domains has been completed + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextPlatformUpdateDomain?: number; } -/** The configuration parameters used for performing automatic OS upgrade. */ -export interface AutomaticOSUpgradePolicy { - /** Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false.

If this is set to true for Windows based scale sets, [enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet) is automatically set to false and cannot be set to true. */ - enableAutomaticOSUpgrade?: boolean; - /** Whether OS image rollback feature should be disabled. Default value is false. */ - disableAutomaticRollback?: boolean; +export interface VMScaleSetConvertToSinglePlacementGroupInput { + /** Id of the placement group in which you want future virtual machine instances to be placed. To query placement group Id, please use Virtual Machine Scale Set VMs - Get API. If not provided, the platform will choose one with maximum number of virtual machine instances. */ + activePlacementGroupId?: string; } -/** Specifies the configuration parameters for automatic repairs on the virtual machine scale set. */ -export interface AutomaticRepairsPolicy { - /** Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false. */ - enabled?: boolean; - /** The amount of time for which automatic repairs are suspended due to a state change on VM. The grace time starts after the state change has completed. This helps avoid premature or accidental repairs. The time duration should be specified in ISO 8601 format. The minimum allowed grace period is 10 minutes (PT10M), which is also the default value. The maximum allowed grace period is 90 minutes (PT90M). */ - gracePeriod?: string; - /** Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual machines in the scale set. Default value is replace. */ - repairAction?: RepairAction; +/** The input for OrchestrationServiceState */ +export interface OrchestrationServiceStateInput { + /** The name of the service. */ + serviceName: OrchestrationServiceNames; + /** The action to be performed. */ + action: OrchestrationServiceStateAction; } -/** Describes a virtual machine scale set virtual machine profile. */ -export interface VirtualMachineScaleSetVMProfile { - /** Specifies the operating system settings for the virtual machines in the scale set. */ - osProfile?: VirtualMachineScaleSetOSProfile; - /** Specifies the storage settings for the virtual machine disks. */ - storageProfile?: VirtualMachineScaleSetStorageProfile; - /** Specifies properties of the network interfaces of the virtual machines in the scale set. */ - networkProfile?: VirtualMachineScaleSetNetworkProfile; - /** Specifies the Security related profile settings for the virtual machines in the scale set. */ - securityProfile?: SecurityProfile; - /** Specifies the boot diagnostic settings state.

Minimum api-version: 2015-06-15. */ - diagnosticsProfile?: DiagnosticsProfile; - /** Specifies a collection of settings for extensions installed on virtual machines in the scale set. */ - extensionProfile?: VirtualMachineScaleSetExtensionProfile; - /** Specifies that the image or disk that is being used was licensed on-premises.

Possible values for Windows Server operating system are:

Windows_Client

Windows_Server

Possible values for Linux 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)

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

Minimum api-version: 2015-06-15 */ - licenseType?: string; - /** Specifies the priority for the virtual machines in the scale set.

Minimum api-version: 2017-10-30-preview */ - priority?: VirtualMachinePriorityTypes; - /** Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set.

For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01.

For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. */ - evictionPolicy?: VirtualMachineEvictionPolicyTypes; - /** Specifies the billing related details of a Azure Spot VMSS.

Minimum api-version: 2019-03-01. */ - billingProfile?: BillingProfile; - /** Specifies Scheduled Event related configurations. */ - scheduledEventsProfile?: ScheduledEventsProfile; - /** UserData for the virtual machines in the scale set, which must be base-64 encoded. Customer should not pass any secrets in here.

Minimum api-version: 2021-03-01 */ - userData?: string; - /** Specifies the capacity reservation related details of a scale set.

Minimum api-version: 2021-04-01. */ - capacityReservation?: CapacityReservationProfile; - /** Specifies the gallery applications that should be made available to the VM/VMSS */ - applicationProfile?: ApplicationProfile; - /** Specifies the hardware profile related details of a scale set.

Minimum api-version: 2021-11-01. */ - hardwareProfile?: VirtualMachineScaleSetHardwareProfile; +/** The instance view of a virtual machine extension. */ +export interface VirtualMachineExtensionInstanceView { + /** The virtual machine extension name. */ + name?: string; + /** Specifies the type of the extension; an example is "CustomScriptExtension". */ + type?: string; + /** Specifies the version of the script handler. */ + typeHandlerVersion?: string; + /** The resource status information. */ + substatuses?: InstanceViewStatus[]; + /** The resource status information. */ + statuses?: InstanceViewStatus[]; } -/** Describes a virtual machine scale set OS profile. */ -export interface VirtualMachineScaleSetOSProfile { - /** Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long. */ - computerNamePrefix?: string; - /** Specifies the name of the administrator account.

**Windows-only restriction:** Cannot end in "."

**Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".

**Minimum-length (Linux):** 1 character

**Max-length (Linux):** 64 characters

**Max-length (Windows):** 20 characters */ - adminUsername?: string; - /** Specifies the password of the administrator account.

**Minimum-length (Windows):** 8 characters

**Minimum-length (Linux):** 6 characters

**Max-length (Windows):** 123 characters

**Max-length (Linux):** 72 characters

**Complexity requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters
Has upper characters
Has a digit
Has a special character (Regex match [\W_])

**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "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)

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) */ - adminPassword?: string; - /** Specifies a base-64 encoded string of custom data. The base-64 encoded string 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) */ - customData?: string; - /** Specifies Windows operating system settings on the virtual machine. */ - windowsConfiguration?: WindowsConfiguration; - /** 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). */ - 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) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ - secrets?: VaultSecretGroup[]; - /** Specifies whether extension operations should be allowed on the virtual machine scale set.

This may only be set to False when no extensions are present on the virtual machine scale set. */ - allowExtensionOperations?: boolean; +/** The List VMSS VM Extension operation response */ +export interface VirtualMachineScaleSetVMExtensionsListResult { + /** The list of VMSS VM extensions */ + value?: VirtualMachineScaleSetVMExtension[]; } -/** Describes a virtual machine scale set storage profile. */ -export interface VirtualMachineScaleSetStorageProfile { - /** Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. */ - imageReference?: ImageReference; - /** 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). */ - 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). */ - dataDisks?: VirtualMachineScaleSetDataDisk[]; +/** The instance view of a virtual machine scale set VM. */ +export interface VirtualMachineScaleSetVMInstanceView { + /** The Update Domain count. */ + platformUpdateDomain?: number; + /** The Fault Domain count. */ + platformFaultDomain?: number; + /** The Remote desktop certificate thumbprint. */ + rdpThumbPrint?: string; + /** The VM Agent running on the virtual machine. */ + vmAgent?: VirtualMachineAgentInstanceView; + /** The Maintenance Operation status on the virtual machine. */ + maintenanceRedeployStatus?: MaintenanceRedeployStatus; + /** The disks information. */ + disks?: DiskInstanceView[]; + /** The extensions information. */ + extensions?: VirtualMachineExtensionInstanceView[]; + /** + * The health status for the VM. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly vmHealth?: VirtualMachineHealthStatus; + /** Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the VM from the hypervisor. */ + bootDiagnostics?: BootDiagnosticsInstanceView; + /** The resource status information. */ + statuses?: InstanceViewStatus[]; + /** + * Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled.

Minimum api-version: 2020-06-01. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly assignedHost?: string; + /** The placement group in which the VM is running. If the VM is deallocated it will not have a placementGroupId. */ + placementGroupId?: string; } -/** Describes a virtual machine scale set operating system disk. */ -export interface VirtualMachineScaleSetOSDisk { - /** The disk name. */ - name?: string; - /** Specifies the caching requirements.

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

Default: **None for Standard storage. ReadOnly for Premium storage** */ - caching?: CachingTypes; - /** Specifies whether writeAccelerator should be enabled or disabled on the disk. */ - writeAcceleratorEnabled?: boolean; - /** Specifies how the virtual machines in the scale set should be created.

The only allowed value is: **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. */ - createOption: DiskCreateOptionTypes; - /** Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set. */ - diffDiskSettings?: DiffDiskSettings; - /** Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

This value cannot be larger than 1023 GB */ - diskSizeGB?: number; - /** This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.

Possible values are:

**Windows**

**Linux** */ - osType?: OperatingSystemTypes; - /** Specifies information about the unmanaged user image to base the scale set on. */ - image?: VirtualHardDisk; - /** Specifies the container urls that are used to store operating system disks for the scale set. */ - vhdContainers?: string[]; - /** The managed disk parameters. */ - managedDisk?: VirtualMachineScaleSetManagedDiskParameters; +/** The instance view of the VM Agent running on the virtual machine. */ +export interface VirtualMachineAgentInstanceView { + /** The VM Agent full version. */ + vmAgentVersion?: string; + /** The virtual machine extension handler instance view. */ + extensionHandlers?: VirtualMachineExtensionHandlerInstanceView[]; + /** The resource status information. */ + statuses?: InstanceViewStatus[]; } -/** Describes the parameters of a ScaleSet managed disk. */ -export interface VirtualMachineScaleSetManagedDiskParameters { - /** Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. */ - storageAccountType?: StorageAccountTypes; - /** Specifies the customer managed disk encryption set resource id for the managed disk. */ - diskEncryptionSet?: DiskEncryptionSetParameters; - /** Specifies the security profile for the managed disk. */ - securityProfile?: VMDiskSecurityProfile; +/** The instance view of a virtual machine extension handler. */ +export interface VirtualMachineExtensionHandlerInstanceView { + /** Specifies the type of the extension; an example is "CustomScriptExtension". */ + type?: string; + /** Specifies the version of the script handler. */ + typeHandlerVersion?: string; + /** The extension handler status. */ + status?: InstanceViewStatus; } -/** Describes a virtual machine scale set data disk. */ -export interface VirtualMachineScaleSetDataDisk { - /** The disk name. */ - name?: string; - /** Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. */ - lun: number; - /** Specifies the caching requirements.

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

Default: **None for Standard storage. ReadOnly for Premium storage** */ - caching?: CachingTypes; - /** Specifies whether writeAccelerator should be enabled or disabled on the disk. */ - writeAcceleratorEnabled?: boolean; - /** The create option. */ - createOption: DiskCreateOptionTypes; - /** Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

This value cannot be larger than 1023 GB */ - diskSizeGB?: number; - /** The managed disk parameters. */ - managedDisk?: VirtualMachineScaleSetManagedDiskParameters; - /** Specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB. */ - diskIopsReadWrite?: number; - /** Specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB. */ - diskMBpsReadWrite?: number; +/** Maintenance Operation Status. */ +export interface MaintenanceRedeployStatus { + /** True, if customer is allowed to perform Maintenance. */ + isCustomerInitiatedMaintenanceAllowed?: boolean; + /** Start Time for the Pre Maintenance Window. */ + preMaintenanceWindowStartTime?: Date; + /** End Time for the Pre Maintenance Window. */ + preMaintenanceWindowEndTime?: Date; + /** Start Time for the Maintenance Window. */ + maintenanceWindowStartTime?: Date; + /** End Time for the Maintenance Window. */ + maintenanceWindowEndTime?: Date; + /** The Last Maintenance Operation Result Code. */ + lastOperationResultCode?: MaintenanceOperationResultCodeTypes; + /** Message returned for the last Maintenance Operation. */ + lastOperationMessage?: string; } -/** Describes a virtual machine scale set network profile. */ -export interface VirtualMachineScaleSetNetworkProfile { - /** A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'. */ - healthProbe?: ApiEntityReference; - /** The list of network configurations. */ - networkInterfaceConfigurations?: VirtualMachineScaleSetNetworkConfiguration[]; - /** specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set with orchestration mode 'Flexible' */ - networkApiVersion?: NetworkApiVersion; +/** The instance view of the disk. */ +export interface DiskInstanceView { + /** The disk name. */ + name?: string; + /** Specifies the encryption settings for the OS Disk.

Minimum api-version: 2015-06-15 */ + encryptionSettings?: DiskEncryptionSettings[]; + /** The resource status information. */ + statuses?: InstanceViewStatus[]; } -/** The API entity reference. */ -export interface ApiEntityReference { - /** The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... */ - id?: string; +/** Describes a Encryption Settings for a Disk */ +export interface DiskEncryptionSettings { + /** Specifies the location of the disk encryption key, which is a Key Vault Secret. */ + diskEncryptionKey?: KeyVaultSecretReference; + /** Specifies the location of the key encryption key in Key Vault. */ + keyEncryptionKey?: KeyVaultKeyReference; + /** Specifies whether disk encryption should be enabled on the virtual machine. */ + enabled?: boolean; } -/** Describes a virtual machines scale sets network configuration's DNS settings. */ -export interface VirtualMachineScaleSetNetworkConfigurationDnsSettings { - /** List of DNS servers IP addresses */ - dnsServers?: string[]; -} - -/** Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration */ -export interface VirtualMachineScaleSetPublicIPAddressConfiguration { - /** The publicIP address configuration name. */ - name: string; - /** Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible. */ - sku?: PublicIPAddressSku; - /** The idle timeout of the public IP address. */ - idleTimeoutInMinutes?: number; - /** The dns settings to be applied on the publicIP addresses . */ - dnsSettings?: VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings; - /** The list of IP tags associated with the public IP address. */ - ipTags?: VirtualMachineScaleSetIpTag[]; - /** The PublicIPPrefix from which to allocate publicIP addresses. */ - publicIPPrefix?: SubResource; - /** Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. */ - publicIPAddressVersion?: IPVersion; - /** Specify what happens to the public IP when the VM is deleted */ - deleteOption?: DeleteOptions; -} - -/** Describes a virtual machines scale sets network configuration's DNS settings. */ -export interface VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings { - /** The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created */ - domainNameLabel: string; -} - -/** Contains the IP tag associated with the public IP address. */ -export interface VirtualMachineScaleSetIpTag { - /** IP tag type. Example: FirstPartyUsage. */ - ipTagType?: string; - /** IP tag associated with the public IP. Example: SQL, Storage etc. */ - tag?: string; -} - -/** Describes a virtual machine scale set extension profile. */ -export interface VirtualMachineScaleSetExtensionProfile { - /** The virtual machine scale set child extension resources. */ - extensions?: VirtualMachineScaleSetExtension[]; - /** Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M).

Minimum api-version: 2020-06-01 */ - extensionsTimeBudget?: string; -} - -/** Specifies the hardware settings for the virtual machine scale set. */ -export interface VirtualMachineScaleSetHardwareProfile { - /** Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01.

Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details. */ - vmSizeProperties?: VMSizeProperties; -} - -/** Describes a scale-in policy for a virtual machine scale set. */ -export interface ScaleInPolicy { - /** The rules to be followed when scaling-in a virtual machine scale set.

Possible values are:

**Default** When a virtual machine scale set is scaled in, the scale set will first be balanced across zones if it is a zonal scale set. Then, it will be balanced across Fault Domains as far as possible. Within each Fault Domain, the virtual machines chosen for removal will be the newest ones that are not protected from scale-in.

**OldestVM** When a virtual machine scale set is being scaled-in, the oldest virtual machines that are not protected from scale-in will be chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced across zones. Within each zone, the oldest virtual machines that are not protected will be chosen for removal.

**NewestVM** When a virtual machine scale set is being scaled-in, the newest virtual machines that are not protected from scale-in will be chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced across zones. Within each zone, the newest virtual machines that are not protected will be chosen for removal.

*/ - rules?: VirtualMachineScaleSetScaleInRules[]; - /** This property allows you to specify if virtual machines chosen for removal have to be force deleted when a virtual machine scale set is being scaled-in.(Feature in Preview) */ - forceDeletion?: boolean; +/** Describes a reference to Key Vault Secret */ +export interface KeyVaultSecretReference { + /** The URL referencing a secret in a Key Vault. */ + secretUrl: string; + /** The relative URL of the Key Vault containing the secret. */ + sourceVault: SubResource; } -/** Specifies the Spot-Try-Restore properties for the virtual machine scale set.

With this property customer can enable or disable automatic restore of the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing constraint. */ -export interface SpotRestorePolicy { - /** Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing constraints */ - enabled?: boolean; - /** Timeout value expressed as an ISO 8601 time duration after which the platform will not try to restore the VMSS SPOT instances */ - restoreTimeout?: string; +/** Describes a reference to Key Vault Key */ +export interface KeyVaultKeyReference { + /** The URL referencing a key encryption key in Key Vault. */ + keyUrl: string; + /** The relative URL of the Key Vault containing the key. */ + sourceVault: SubResource; } -/** Identity for the virtual machine scale set. */ -export interface VirtualMachineScaleSetIdentity { - /** - * The principal id of virtual machine scale set identity. This property will only be provided for a system assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; +/** The health status of the VM. */ +export interface VirtualMachineHealthStatus { /** - * The tenant id associated with the virtual machine scale set. This property will only be provided for a system assigned identity. + * The health status information for the VM. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tenantId?: string; - /** The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine scale set. */ - type?: ResourceIdentityType; - /** The list of user identities associated with the virtual machine scale set. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ - userAssignedIdentities?: { - [propertyName: string]: VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue; - }; + readonly status?: InstanceViewStatus; } -export interface VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue { +/** The instance view of a virtual machine boot diagnostics. */ +export interface BootDiagnosticsInstanceView { /** - * The principal id of user assigned identity. + * The console screenshot blob URI.

NOTE: This will **not** be set if boot diagnostics is currently enabled with managed storage. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly consoleScreenshotBlobUri?: string; /** - * The client id of user assigned identity. + * The serial console log blob Uri.

NOTE: This will **not** be set if boot diagnostics is currently enabled with managed storage. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientId?: string; -} - -/** Describes a storage profile. */ -export interface ImageStorageProfile { - /** Specifies information about the operating system disk used by the virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ - osDisk?: ImageOSDisk; - /** Specifies the parameters that are used to add a data disk to a virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ - dataDisks?: ImageDataDisk[]; - /** Specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS). */ - zoneResilient?: boolean; -} - -/** Describes a image disk. */ -export interface ImageDisk { - /** The snapshot. */ - snapshot?: SubResource; - /** The managedDisk. */ - managedDisk?: SubResource; - /** The Virtual Hard Disk. */ - blobUri?: string; - /** Specifies the caching requirements.

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

Default: **None for Standard storage. ReadOnly for Premium storage** */ - caching?: CachingTypes; - /** Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image.

This value cannot be larger than 1023 GB */ - diskSizeGB?: number; - /** Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. */ - storageAccountType?: StorageAccountTypes; - /** Specifies the customer managed disk encryption set resource id for the managed image disk. */ - diskEncryptionSet?: DiskEncryptionSetParameters; -} - -/** The List Image operation response. */ -export interface ImageListResult { - /** The list of Images. */ - value: Image[]; - /** The uri to fetch the next page of Images. Call ListNext() with this to fetch the next page of Images. */ - nextLink?: string; -} - -/** Capture Virtual Machine parameters. */ -export interface VirtualMachineCaptureParameters { - /** The captured virtual hard disk's name prefix. */ - vhdPrefix: string; - /** The destination container name. */ - destinationContainerName: string; - /** Specifies whether to overwrite the destination virtual hard disk, in case of conflict. */ - overwriteVhds: boolean; -} - -/** The properties of the source resource that this restore point collection is created from. */ -export interface RestorePointCollectionSourceProperties { + readonly serialConsoleLogBlobUri?: string; /** - * Location of the source resource used to create this restore point collection. + * The boot diagnostics status information for the VM.

NOTE: It will be set only if there are errors encountered in enabling boot diagnostics. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; - /** Resource Id of the source resource used to create this restore point collection */ - id?: string; + readonly status?: InstanceViewStatus; } -/** Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation. */ -export interface RestorePointSourceMetadata { - /** Gets the hardware profile. */ - hardwareProfile?: HardwareProfile; - /** Gets the storage profile. */ - storageProfile?: RestorePointSourceVMStorageProfile; - /** Gets the OS profile. */ - osProfile?: OSProfile; - /** Gets the diagnostics profile. */ - diagnosticsProfile?: DiagnosticsProfile; - /** Gets the license type, which is for bring your own license scenario. */ - licenseType?: string; - /** Gets the virtual machine unique id. */ - vmId?: string; - /** Gets the security profile. */ - securityProfile?: SecurityProfile; - /** Location of the VM from which the restore point was created. */ - location?: string; +/** Specifies the hardware settings for the virtual machine. */ +export interface HardwareProfile { + /** Specifies the size of the virtual machine.

The enum data type is currently deprecated and will be removed by December 23rd 2023.

Recommended way to get the list of available sizes is using these APIs:

[List all available virtual machine sizes in an availability set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes)

[List all available virtual machine sizes in a region]( https://docs.microsoft.com/rest/api/compute/resourceskus/list)

[List all available virtual machine sizes for resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/sizes).

The available VM sizes depend on region and availability set. */ + vmSize?: VirtualMachineSizeTypes; + /** Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-07-01.

This feature is still in preview mode and is not supported for VirtualMachineScaleSet.

Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details. */ + vmSizeProperties?: VMSizeProperties; } -/** Describes the storage profile. */ -export interface RestorePointSourceVMStorageProfile { - /** Gets the OS disk of the VM captured at the time of the restore point creation. */ - osDisk?: RestorePointSourceVmosDisk; - /** Gets the data disks of the VM captured at the time of the restore point creation. */ - dataDisks?: RestorePointSourceVMDataDisk[]; +/** Specifies the storage settings for the virtual machine disks. */ +export interface StorageProfile { + /** Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. */ + imageReference?: ImageReference; + /** Specifies information about the operating system disk used by the virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ + osDisk?: OSDisk; + /** Specifies the parameters that are used to add a data disk to a virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ + dataDisks?: DataDisk[]; } -/** Describes an Operating System disk. */ -export interface RestorePointSourceVmosDisk { - /** Gets the Operating System type. */ - osType?: OperatingSystemType; - /** Gets the disk encryption settings. */ +/** Specifies information about the operating system disk used by the virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ +export interface OSDisk { + /** This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.

Possible values are:

**Windows**

**Linux** */ + osType?: OperatingSystemTypes; + /** Specifies the encryption settings for the OS Disk.

Minimum api-version: 2015-06-15 */ encryptionSettings?: DiskEncryptionSettings; - /** Gets the disk name. */ + /** The disk name. */ name?: string; - /** Gets the caching type. */ + /** The virtual hard disk. */ + vhd?: VirtualHardDisk; + /** The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. */ + image?: VirtualHardDisk; + /** Specifies the caching requirements.

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

Default: **None** for Standard storage. **ReadOnly** for Premium storage. */ caching?: CachingTypes; - /** Gets the disk size in GB. */ + /** Specifies whether writeAccelerator should be enabled or disabled on the disk. */ + writeAcceleratorEnabled?: boolean; + /** Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. */ + diffDiskSettings?: DiffDiskSettings; + /** Specifies how the virtual machine should be created.

Possible values are:

**Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.

**FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. */ + createOption: DiskCreateOptionTypes; + /** Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

This value cannot be larger than 1023 GB */ diskSizeGB?: number; - /** Gets the managed disk details */ + /** The managed disk parameters. */ managedDisk?: ManagedDiskParameters; - /** Gets the disk restore point Id. */ - diskRestorePoint?: ApiEntityReference; + /** Specifies whether OS Disk should be deleted or detached upon VM deletion.

Possible values:

**Delete** If this value is used, the OS disk is deleted when VM is deleted.

**Detach** If this value is used, the os disk is retained after VM is deleted.

The default value is set to **detach**. For an ephemeral OS Disk, the default value is set to **Delete**. User cannot change the delete option for ephemeral OS Disk. */ + deleteOption?: DiskDeleteOptionTypes; } /** Describes a data disk. */ -export interface RestorePointSourceVMDataDisk { - /** Gets the logical unit number. */ - lun?: number; - /** Gets the disk name. */ +export interface DataDisk { + /** Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. */ + lun: number; + /** The disk name. */ name?: string; - /** Gets the caching type. */ + /** The virtual hard disk. */ + vhd?: VirtualHardDisk; + /** The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. */ + image?: VirtualHardDisk; + /** Specifies the caching requirements.

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

Default: **None for Standard storage. ReadOnly for Premium storage** */ caching?: CachingTypes; - /** Gets the initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks. */ + /** Specifies whether writeAccelerator should be enabled or disabled on the disk. */ + writeAcceleratorEnabled?: boolean; + /** Specifies how the virtual machine should be created.

Possible values are:

**Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.

**FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. */ + createOption: DiskCreateOptionTypes; + /** Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

This value cannot be larger than 1023 GB */ diskSizeGB?: number; - /** Gets the managed disk details */ + /** The managed disk parameters. */ managedDisk?: ManagedDiskParameters; - /** Gets the disk restore point Id. */ - diskRestorePoint?: ApiEntityReference; -} + /** Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset */ + toBeDetached?: boolean; + /** + * Specifies the Read-Write IOPS for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly diskIopsReadWrite?: number; + /** + * Specifies the bandwidth in MB per second for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly diskMBpsReadWrite?: number; + /** Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach**.

detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior.

This feature is still in preview mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. */ + detachOption?: DiskDetachOptionTypes; + /** Specifies whether data disk should be deleted or detached upon VM deletion.

Possible values:

**Delete** If this value is used, the data disk is deleted when VM is deleted.

**Detach** If this value is used, the data disk is retained after VM is deleted.

The default value is set to **detach** */ + deleteOption?: DiskDeleteOptionTypes; +} -/** The instance view of a restore point. */ -export interface RestorePointInstanceView { - /** The disk restore points information. */ - diskRestorePoints?: DiskRestorePointInstanceView[]; - /** The resource status information. */ - statuses?: InstanceViewStatus[]; +/** Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned. */ +export interface OSProfile { + /** Specifies the host OS name of the virtual machine.

This name cannot be updated after the VM is created.

**Max-length (Windows):** 15 characters

**Max-length (Linux):** 64 characters.

For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules). */ + computerName?: string; + /** Specifies the name of the administrator account.

This property cannot be updated after the VM is created.

**Windows-only restriction:** Cannot end in "."

**Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".

**Minimum-length (Linux):** 1 character

**Max-length (Linux):** 64 characters

**Max-length (Windows):** 20 characters. */ + adminUsername?: string; + /** Specifies the password of the administrator account.

**Minimum-length (Windows):** 8 characters

**Minimum-length (Linux):** 6 characters

**Max-length (Windows):** 123 characters

**Max-length (Linux):** 72 characters

**Complexity requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters
Has upper characters
Has a digit
Has a special character (Regex match [\W_])

**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "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)

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) */ + adminPassword?: string; + /** Specifies a base-64 encoded string of custom data. The base-64 encoded string 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.

**Note: Do not pass any secrets or passwords in customData property**

This property cannot be updated after the VM is created.

customData is passed to the VM to be saved as a file, for more information see [Custom Data on Azure VMs](https://azure.microsoft.com/blog/custom-data-and-cloud-init-on-windows-azure/)

For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init) */ + customData?: string; + /** Specifies Windows operating system settings on the virtual machine. */ + windowsConfiguration?: WindowsConfiguration; + /** 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). */ + linuxConfiguration?: LinuxConfiguration; + /** Specifies set of certificates that should be installed onto the virtual machine. 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) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ + secrets?: VaultSecretGroup[]; + /** Specifies whether extension operations should be allowed on the virtual machine.

This may only be set to False when no extensions are present on the virtual machine. */ + allowExtensionOperations?: boolean; + /** Specifies whether the guest provision signal is required to infer provision success of the virtual machine. **Note: This property is for private testing only, and all customers must not set the property to false.** */ + requireGuestProvisionSignal?: boolean; } -/** The instance view of a disk restore point. */ -export interface DiskRestorePointInstanceView { - /** Disk restore point Id. */ - id?: string; - /** The disk restore point replication status information. */ - replicationStatus?: Record; +/** Specifies the network interfaces or the networking configuration of the virtual machine. */ +export interface NetworkProfile { + /** Specifies the list of resource Ids for the network interfaces associated with the virtual machine. */ + networkInterfaces?: NetworkInterfaceReference[]; + /** specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations */ + networkApiVersion?: NetworkApiVersion; + /** Specifies the networking configurations that will be used to create the virtual machine networking resources. */ + networkInterfaceConfigurations?: VirtualMachineNetworkInterfaceConfiguration[]; } -/** The resource model definition for an Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource { +/** Describes a virtual machine network interface configurations. */ +export interface VirtualMachineNetworkInterfaceConfiguration { + /** The network interface configuration name. */ + name: string; + /** Specifies the primary network interface in case the virtual machine has more than 1 network interface. */ + primary?: boolean; + /** Specify what happens to the network interface when the VM is deleted */ + deleteOption?: DeleteOptions; + /** Specifies whether the network interface is accelerated networking-enabled. */ + enableAcceleratedNetworking?: boolean; + /** Specifies whether the network interface is FPGA networking-enabled. */ + enableFpga?: boolean; + /** Whether IP forwarding enabled on this NIC. */ + enableIPForwarding?: boolean; + /** The network security group. */ + networkSecurityGroup?: SubResource; + /** The dns settings to be applied on the network interfaces. */ + dnsSettings?: VirtualMachineNetworkInterfaceDnsSettingsConfiguration; + /** Specifies the IP configurations of the network interface. */ + ipConfigurations?: VirtualMachineNetworkInterfaceIPConfiguration[]; + dscpConfiguration?: SubResource; +} + +/** Describes a virtual machines network configuration's DNS settings. */ +export interface VirtualMachineNetworkInterfaceDnsSettingsConfiguration { + /** List of DNS servers IP addresses */ + dnsServers?: string[]; +} + +/** Describes a virtual machine network profile's IP configuration. */ +export interface VirtualMachineNetworkInterfaceIPConfiguration { + /** The IP configuration name. */ + name: string; + /** Specifies the identifier of the subnet. */ + subnet?: SubResource; + /** Specifies the primary network interface in case the virtual machine has more than 1 network interface. */ + primary?: boolean; + /** The publicIPAddressConfiguration. */ + publicIPAddressConfiguration?: VirtualMachinePublicIPAddressConfiguration; + /** Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. */ + privateIPAddressVersion?: IPVersions; + /** Specifies an array of references to application security group. */ + applicationSecurityGroups?: SubResource[]; + /** Specifies an array of references to backend address pools of application gateways. A virtual machine can reference backend address pools of multiple application gateways. Multiple virtual machines cannot use the same application gateway. */ + applicationGatewayBackendAddressPools?: SubResource[]; + /** Specifies an array of references to backend address pools of load balancers. A virtual machine can reference backend address pools of one public and one internal load balancer. [Multiple virtual machines cannot use the same basic sku load balancer]. */ + loadBalancerBackendAddressPools?: SubResource[]; +} + +/** Describes a virtual machines IP Configuration's PublicIPAddress configuration */ +export interface VirtualMachinePublicIPAddressConfiguration { + /** The publicIP address configuration name. */ + name: string; + /** Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible. */ + sku?: PublicIPAddressSku; + /** The idle timeout of the public IP address. */ + idleTimeoutInMinutes?: number; + /** Specify what happens to the public IP address when the VM is deleted */ + deleteOption?: DeleteOptions; + /** The dns settings to be applied on the publicIP addresses . */ + dnsSettings?: VirtualMachinePublicIPAddressDnsSettingsConfiguration; + /** The list of IP tags associated with the public IP address. */ + ipTags?: VirtualMachineIpTag[]; + /** The PublicIPPrefix from which to allocate publicIP addresses. */ + publicIPPrefix?: SubResource; + /** Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. */ + publicIPAddressVersion?: IPVersions; + /** Specify the public IP allocation type */ + publicIPAllocationMethod?: PublicIPAllocationMethod; +} + +/** Describes a virtual machines network configuration's DNS settings. */ +export interface VirtualMachinePublicIPAddressDnsSettingsConfiguration { + /** The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm network profile unique ID. */ + domainNameLabel: string; +} + +/** Contains the IP tag associated with the public IP address. */ +export interface VirtualMachineIpTag { + /** IP tag type. Example: FirstPartyUsage. */ + ipTagType?: string; + /** IP tag associated with the public IP. Example: SQL, Storage etc. */ + tag?: string; +} + +/** Describes a virtual machine scale set VM network profile. */ +export interface VirtualMachineScaleSetVMNetworkProfileConfiguration { + /** The list of network configurations. */ + networkInterfaceConfigurations?: VirtualMachineScaleSetNetworkConfiguration[]; +} + +/** The protection policy of a virtual machine scale set VM. */ +export interface VirtualMachineScaleSetVMProtectionPolicy { + /** Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation. */ + protectFromScaleIn?: boolean; + /** Indicates that model updates or actions (including scale-in) initiated on the virtual machine scale set should not be applied to the virtual machine scale set VM. */ + protectFromScaleSetActions?: boolean; +} + +/** The Resource model definition with location property as optional. */ +export interface ResourceWithOptionalLocation { + /** Resource location */ + location?: string; /** * Resource Id * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1539,75 +1545,245 @@ export interface ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; + /** Resource tags */ + tags?: { [propertyName: string]: string }; } -/** The List restore point collection operation response. */ -export interface RestorePointCollectionListResult { - /** Gets the list of restore point collections. */ - value?: RestorePointCollection[]; - /** The uri to fetch the next page of RestorePointCollections. Call ListNext() with this to fetch the next page of RestorePointCollections */ +/** The List Virtual Machine Scale Set VMs operation response. */ +export interface VirtualMachineScaleSetVMListResult { + /** The list of virtual machine scale sets VMs. */ + value: VirtualMachineScaleSetVM[]; + /** The uri to fetch the next page of Virtual Machine Scale Set VMs. Call ListNext() with this to fetch the next page of VMSS VMs */ nextLink?: string; } -export interface CapacityReservationGroupInstanceView { +/** The SAS URIs of the console screenshot and serial log blobs. */ +export interface RetrieveBootDiagnosticsDataResult { /** - * List of instance view of the capacity reservations under the capacity reservation group. + * The console screenshot blob URI * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly capacityReservations?: CapacityReservationInstanceViewWithName[]; -} - -/** The instance view of a capacity reservation that provides as snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations. */ -export interface CapacityReservationInstanceView { - /** Unutilized capacity of the capacity reservation. */ - utilizationInfo?: CapacityReservationUtilization; - /** The resource status information. */ - statuses?: InstanceViewStatus[]; -} - -/** Represents the capacity reservation utilization in terms of resources allocated. */ -export interface CapacityReservationUtilization { + readonly consoleScreenshotBlobUri?: string; /** - * A list of all virtual machines resource ids allocated against the capacity reservation. + * The serial console log blob URI. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly virtualMachinesAllocated?: SubResourceReadOnly[]; + readonly serialConsoleLogBlobUri?: string; } -/** The List capacity reservation group with resource group response. */ -export interface CapacityReservationGroupListResult { - /** The list of capacity reservation groups */ - value: CapacityReservationGroup[]; - /** The URI to fetch the next page of capacity reservation groups. Call ListNext() with this URI to fetch the next page of capacity reservation groups. */ - nextLink?: string; +/** The List Extension operation response */ +export interface VirtualMachineExtensionsListResult { + /** The list of extensions */ + value?: VirtualMachineExtension[]; } -/** The list capacity reservation operation response. */ -export interface CapacityReservationListResult { - /** The list of capacity reservations */ - value: CapacityReservation[]; - /** The URI to fetch the next page of capacity reservations. Call ListNext() with this URI to fetch the next page of capacity reservations. */ +/** The List Virtual Machine operation response. */ +export interface VirtualMachineListResult { + /** The list of virtual machines. */ + value: VirtualMachine[]; + /** The URI to fetch the next page of VMs. Call ListNext() with this URI to fetch the next page of Virtual Machines. */ nextLink?: string; } -/** Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged */ -export interface VirtualMachineReimageParameters { - /** Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. */ - tempDisk?: boolean; -} - -/** The SAS URIs of the console screenshot and serial log blobs. */ -export interface RetrieveBootDiagnosticsDataResult { +/** The instance view of a virtual machine. */ +export interface VirtualMachineInstanceView { + /** Specifies the update domain of the virtual machine. */ + platformUpdateDomain?: number; + /** Specifies the fault domain of the virtual machine. */ + platformFaultDomain?: number; + /** The computer name assigned to the virtual machine. */ + computerName?: string; + /** The Operating System running on the virtual machine. */ + osName?: string; + /** The version of Operating System running on the virtual machine. */ + osVersion?: string; + /** Specifies the HyperVGeneration Type associated with a resource */ + hyperVGeneration?: HyperVGenerationType; + /** The Remote desktop certificate thumbprint. */ + rdpThumbPrint?: string; + /** The VM Agent running on the virtual machine. */ + vmAgent?: VirtualMachineAgentInstanceView; + /** The Maintenance Operation status on the virtual machine. */ + maintenanceRedeployStatus?: MaintenanceRedeployStatus; + /** The virtual machine disk information. */ + disks?: DiskInstanceView[]; + /** The extensions information. */ + extensions?: VirtualMachineExtensionInstanceView[]; /** - * The console screenshot blob URI + * The health status for the VM. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly consoleScreenshotBlobUri?: string; + readonly vmHealth?: VirtualMachineHealthStatus; + /** Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the VM from the hypervisor. */ + bootDiagnostics?: BootDiagnosticsInstanceView; /** - * The serial console log blob URI. + * Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled.

Minimum api-version: 2020-06-01. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serialConsoleLogBlobUri?: string; + readonly assignedHost?: string; + /** The resource status information. */ + statuses?: InstanceViewStatus[]; + /** [Preview Feature] The status of virtual machine patch operations. */ + patchStatus?: VirtualMachinePatchStatus; +} + +/** The status of virtual machine patch operations. */ +export interface VirtualMachinePatchStatus { + /** The available patch summary of the latest assessment operation for the virtual machine. */ + availablePatchSummary?: AvailablePatchSummary; + /** The installation summary of the latest installation operation for the virtual machine. */ + lastPatchInstallationSummary?: LastPatchInstallationSummary; + /** + * The enablement status of the specified patchMode + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationStatuses?: InstanceViewStatus[]; +} + +/** Describes the properties of an virtual machine instance view for available patch summary. */ +export interface AvailablePatchSummary { + /** + * The overall success or failure status of the operation. It remains "InProgress" until the operation completes. At that point it will become "Unknown", "Failed", "Succeeded", or "CompletedWithWarnings." + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: PatchOperationStatus; + /** + * The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly assessmentActivityId?: string; + /** + * The overall reboot status of the VM. It will be true when partially installed patches require a reboot to complete installation but the reboot has not yet occurred. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly rebootPending?: boolean; + /** + * The number of critical or security patches that have been detected as available and not yet installed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly criticalAndSecurityPatchCount?: number; + /** + * The number of all available patches excluding critical and security. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly otherPatchCount?: number; + /** + * The UTC timestamp when the operation began. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly startTime?: Date; + /** + * The UTC timestamp when the operation began. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastModifiedTime?: Date; + /** + * The errors that were encountered during execution of the operation. The details array contains the list of them. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly error?: ApiError; +} + +/** Describes the properties of the last installed patch summary. */ +export interface LastPatchInstallationSummary { + /** + * The overall success or failure status of the operation. It remains "InProgress" until the operation completes. At that point it will become "Unknown", "Failed", "Succeeded", or "CompletedWithWarnings." + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: PatchOperationStatus; + /** + * The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly installationActivityId?: string; + /** + * Describes whether the operation ran out of time before it completed all its intended actions + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly maintenanceWindowExceeded?: boolean; + /** + * The number of all available patches but not going to be installed because it didn't match a classification or inclusion list entry. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly notSelectedPatchCount?: number; + /** + * The number of all available patches but excluded explicitly by a customer-specified exclusion list match. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly excludedPatchCount?: number; + /** + * The number of all available patches expected to be installed over the course of the patch installation operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly pendingPatchCount?: number; + /** + * The count of patches that successfully installed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly installedPatchCount?: number; + /** + * The count of patches that failed installation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly failedPatchCount?: number; + /** + * The UTC timestamp when the operation began. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly startTime?: Date; + /** + * The UTC timestamp when the operation began. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastModifiedTime?: Date; + /** + * The errors that were encountered during execution of the operation. The details array contains the list of them. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly error?: ApiError; +} + +/** Identity for the virtual machine. */ +export interface VirtualMachineIdentity { + /** + * The principal id of virtual machine identity. This property will only be provided for a system assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The tenant id associated with the virtual machine. This property will only be provided for a system assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine. */ + type?: ResourceIdentityType; + /** The list of user identities associated with the Virtual Machine. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ + userAssignedIdentities?: { + [propertyName: string]: UserAssignedIdentitiesValue; + }; +} + +export interface UserAssignedIdentitiesValue { + /** + * The principal id of user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The client id of user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientId?: string; +} + +/** Capture Virtual Machine parameters. */ +export interface VirtualMachineCaptureParameters { + /** The captured virtual hard disk's name prefix. */ + vhdPrefix: string; + /** The destination container name. */ + destinationContainerName: string; + /** Specifies whether to overwrite the destination virtual hard disk, in case of conflict. */ + overwriteVhds: boolean; } /** Describes the properties of an AssessPatches result. */ @@ -1844,523 +2020,376 @@ export interface PatchInstallationDetail { readonly installationState?: PatchInstallationState; } -/** Describes a virtual machine scale set virtual machine profile. */ -export interface VirtualMachineScaleSetUpdateVMProfile { - /** The virtual machine scale set OS profile. */ - osProfile?: VirtualMachineScaleSetUpdateOSProfile; - /** The virtual machine scale set storage profile. */ - storageProfile?: VirtualMachineScaleSetUpdateStorageProfile; - /** The virtual machine scale set network profile. */ - networkProfile?: VirtualMachineScaleSetUpdateNetworkProfile; - /** The virtual machine scale set Security profile */ - securityProfile?: SecurityProfile; - /** The virtual machine scale set diagnostics profile. */ - diagnosticsProfile?: DiagnosticsProfile; - /** The virtual machine scale set extension profile. */ - extensionProfile?: VirtualMachineScaleSetExtensionProfile; - /** The license type, which is for bring your own license scenario. */ - licenseType?: string; - /** Specifies the billing related details of a Azure Spot VMSS.

Minimum api-version: 2019-03-01. */ - billingProfile?: BillingProfile; - /** Specifies Scheduled Event related configurations. */ - scheduledEventsProfile?: ScheduledEventsProfile; - /** UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here.

Minimum api-version: 2021-03-01 */ - userData?: string; +/** Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. */ +export interface PurchasePlan { + /** The publisher ID. */ + publisher: string; + /** The plan ID. */ + name: string; + /** Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. */ + product: string; } -/** Describes a virtual machine scale set OS profile. */ -export interface VirtualMachineScaleSetUpdateOSProfile { - /** A base-64 encoded string of custom data. */ - customData?: string; - /** The Windows Configuration of the OS profile. */ - windowsConfiguration?: WindowsConfiguration; - /** The Linux Configuration of the OS profile. */ - linuxConfiguration?: LinuxConfiguration; - /** The List of certificates for addition to the VM. */ - secrets?: VaultSecretGroup[]; +/** Contains the os disk image information. */ +export interface OSDiskImage { + /** The operating system of the osDiskImage. */ + operatingSystem: OperatingSystemTypes; } -/** Describes a virtual machine scale set storage profile. */ -export interface VirtualMachineScaleSetUpdateStorageProfile { - /** The image reference. */ - imageReference?: ImageReference; - /** The OS disk. */ - osDisk?: VirtualMachineScaleSetUpdateOSDisk; - /** The data disks. */ - dataDisks?: VirtualMachineScaleSetDataDisk[]; +/** Contains the data disk images information. */ +export interface DataDiskImage { + /** + * Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lun?: number; } -/** Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. */ -export interface VirtualMachineScaleSetUpdateOSDisk { - /** The caching type. */ - caching?: CachingTypes; - /** Specifies whether writeAccelerator should be enabled or disabled on the disk. */ - writeAcceleratorEnabled?: boolean; - /** Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

This value cannot be larger than 1023 GB */ - diskSizeGB?: number; - /** The Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist. */ - image?: VirtualHardDisk; - /** The list of virtual hard disk container uris. */ - vhdContainers?: string[]; - /** The managed disk parameters. */ - managedDisk?: VirtualMachineScaleSetManagedDiskParameters; +/** Describes automatic OS upgrade properties on the image. */ +export interface AutomaticOSUpgradeProperties { + /** Specifies whether automatic OS upgrade is supported on the image. */ + automaticOSUpgradeSupported: boolean; } -/** Describes a virtual machine scale set network profile. */ -export interface VirtualMachineScaleSetUpdateNetworkProfile { - /** A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'. */ - healthProbe?: ApiEntityReference; - /** The list of network configurations. */ - networkInterfaceConfigurations?: VirtualMachineScaleSetUpdateNetworkConfiguration[]; - /** specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set with orchestration mode 'Flexible' */ - networkApiVersion?: NetworkApiVersion; +/** Specifies the disallowed configuration for a virtual machine image. */ +export interface DisallowedConfiguration { + /** VM disk types which are disallowed. */ + vmDiskType?: VmDiskTypes; } -/** Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration */ -export interface VirtualMachineScaleSetUpdatePublicIPAddressConfiguration { - /** The publicIP address configuration name. */ +/** Specifies additional capabilities supported by the image */ +export interface VirtualMachineImageFeature { + /** The name of the feature. */ name?: string; - /** The idle timeout of the public IP address. */ - idleTimeoutInMinutes?: number; - /** The dns settings to be applied on the publicIP addresses . */ - dnsSettings?: VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings; - /** The PublicIPPrefix from which to allocate publicIP addresses. */ - publicIPPrefix?: SubResource; - /** Specify what happens to the public IP when the VM is deleted */ - deleteOption?: DeleteOptions; + /** The corresponding value for the feature. */ + value?: string; } -/** Specifies a list of virtual machine instance IDs from the VM scale set. */ -export interface VirtualMachineScaleSetVMInstanceIDs { - /** The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set. */ - instanceIds?: string[]; +/** The List Availability Set operation response. */ +export interface AvailabilitySetListResult { + /** The list of availability sets */ + value: AvailabilitySet[]; + /** The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the next page of AvailabilitySets. */ + nextLink?: string; } -/** Specifies a list of virtual machine instance IDs from the VM scale set. */ -export interface VirtualMachineScaleSetVMInstanceRequiredIDs { - /** The virtual machine scale set instance ids. */ - instanceIds: string[]; +/** The List Proximity Placement Group operation response. */ +export interface ProximityPlacementGroupListResult { + /** The list of proximity placement groups */ + value: ProximityPlacementGroup[]; + /** The URI to fetch the next page of proximity placement groups. */ + nextLink?: string; } -/** The instance view of a virtual machine scale set. */ -export interface VirtualMachineScaleSetInstanceView { - /** - * The instance view status summary for the virtual machine scale set. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly virtualMachine?: VirtualMachineScaleSetInstanceViewStatusesSummary; +export interface DedicatedHostGroupInstanceView { + /** List of instance view of the dedicated hosts under the dedicated host group. */ + hosts?: DedicatedHostInstanceViewWithName[]; +} + +/** The instance view of a dedicated host. */ +export interface DedicatedHostInstanceView { /** - * The extensions information. + * Specifies the unique id of the dedicated physical machine on which the dedicated host resides. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly extensions?: VirtualMachineScaleSetVMExtensionsSummary[]; + readonly assetId?: string; + /** Unutilized capacity of the dedicated host. */ + availableCapacity?: DedicatedHostAvailableCapacity; /** The resource status information. */ statuses?: InstanceViewStatus[]; - /** - * The orchestration services information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly orchestrationServices?: OrchestrationServiceSummary[]; } -/** Instance view statuses summary for virtual machines of a virtual machine scale set. */ -export interface VirtualMachineScaleSetInstanceViewStatusesSummary { - /** - * The extensions information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly statusesSummary?: VirtualMachineStatusCodeCount[]; +/** Dedicated host unutilized capacity. */ +export interface DedicatedHostAvailableCapacity { + /** The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the dedicated host. */ + allocatableVMs?: DedicatedHostAllocatableVM[]; } -/** The status code and count of the virtual machine scale set instance view status summary. */ -export interface VirtualMachineStatusCodeCount { - /** - * The instance view status code. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly code?: string; - /** - * The number of instances having a particular status code. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly count?: number; +/** Represents the dedicated host unutilized capacity in terms of a specific VM size. */ +export interface DedicatedHostAllocatableVM { + /** VM size in terms of which the unutilized capacity is represented. */ + vmSize?: string; + /** Maximum number of VMs of size vmSize that can fit in the dedicated host's remaining capacity. */ + count?: number; } -/** Extensions summary for virtual machines of a virtual machine scale set. */ -export interface VirtualMachineScaleSetVMExtensionsSummary { - /** - * The extension name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The extensions information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly statusesSummary?: VirtualMachineStatusCodeCount[]; +/** Enables or disables a capability on the dedicated host group.

Minimum api-version: 2022-03-01. */ +export interface DedicatedHostGroupPropertiesAdditionalCapabilities { + /** The flag that enables or disables a capability to have UltraSSD Enabled Virtual Machines on Dedicated Hosts of the Dedicated Host Group. For the Virtual Machines to be UltraSSD Enabled, UltraSSDEnabled flag for the resoure needs to be set true as well. The value is defaulted to 'false' when not provided.

Minimum api-version: 2022-03-01. */ + ultraSSDEnabled?: boolean; } -/** Summary for an orchestration service of a virtual machine scale set. */ -export interface OrchestrationServiceSummary { - /** - * The name of the service. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly serviceName?: OrchestrationServiceNames; - /** - * The current state of the service. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly serviceState?: OrchestrationServiceState; +/** The List Dedicated Host Group with resource group response. */ +export interface DedicatedHostGroupListResult { + /** The list of dedicated host groups */ + value: DedicatedHostGroup[]; + /** The URI to fetch the next page of Dedicated Host Groups. Call ListNext() with this URI to fetch the next page of Dedicated Host Groups. */ + nextLink?: string; } -/** The List VM scale set extension operation response. */ -export interface VirtualMachineScaleSetExtensionListResult { - /** The list of VM scale set extensions. */ - value: VirtualMachineScaleSetExtension[]; - /** The uri to fetch the next page of VM scale set extensions. Call ListNext() with this to fetch the next page of VM scale set extensions. */ +/** The list dedicated host operation response. */ +export interface DedicatedHostListResult { + /** The list of dedicated hosts */ + value: DedicatedHost[]; + /** The URI to fetch the next page of dedicated hosts. Call ListNext() with this URI to fetch the next page of dedicated hosts. */ nextLink?: string; } -/** The List Virtual Machine operation response. */ -export interface VirtualMachineScaleSetListWithLinkResult { - /** The list of virtual machine scale sets. */ - value: VirtualMachineScaleSet[]; - /** The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of Virtual Machine Scale Sets. */ +/** The list SSH public keys operation response. */ +export interface SshPublicKeysGroupListResult { + /** The list of SSH public keys */ + value: SshPublicKeyResource[]; + /** The URI to fetch the next page of SSH public keys. Call ListNext() with this URI to fetch the next page of SSH public keys. */ nextLink?: string; } -/** The Virtual Machine Scale Set List Skus operation response. */ -export interface VirtualMachineScaleSetListSkusResult { - /** The list of skus available for the virtual machine scale set. */ - value: VirtualMachineScaleSetSku[]; - /** The uri to fetch the next page of Virtual Machine Scale Set Skus. Call ListNext() with this to fetch the next page of VMSS Skus. */ - nextLink?: string; +/** Response from generation of an SSH key pair. */ +export interface SshPublicKeyGenerateKeyPairResult { + /** Private key portion of the key pair used to authenticate to a virtual machine through ssh. The private key is returned in RFC3447 format and should be treated as a secret. */ + privateKey: string; + /** Public key portion of the key pair used to authenticate to a virtual machine through ssh. The public key is in ssh-rsa format. */ + publicKey: string; + /** The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{SshPublicKeyName} */ + id: string; } -/** Describes an available virtual machine scale set sku. */ -export interface VirtualMachineScaleSetSku { - /** - * The type of resource the sku applies to. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceType?: string; - /** - * The Sku. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sku?: Sku; - /** - * Specifies the number of virtual machines in the scale set. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly capacity?: VirtualMachineScaleSetSkuCapacity; +/** Describes a storage profile. */ +export interface ImageStorageProfile { + /** Specifies information about the operating system disk used by the virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ + osDisk?: ImageOSDisk; + /** Specifies the parameters that are used to add a data disk to a virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ + dataDisks?: ImageDataDisk[]; + /** Specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS). */ + zoneResilient?: boolean; } -/** Describes scaling information of a sku. */ -export interface VirtualMachineScaleSetSkuCapacity { - /** - * The minimum capacity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly minimum?: number; - /** - * The maximum capacity that can be set. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maximum?: number; - /** - * The default capacity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly defaultCapacity?: number; - /** - * The scale type applicable to the sku. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly scaleType?: VirtualMachineScaleSetSkuScaleType; +/** Describes a image disk. */ +export interface ImageDisk { + /** The snapshot. */ + snapshot?: SubResource; + /** The managedDisk. */ + managedDisk?: SubResource; + /** The Virtual Hard Disk. */ + blobUri?: string; + /** Specifies the caching requirements.

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

Default: **None for Standard storage. ReadOnly for Premium storage** */ + caching?: CachingTypes; + /** Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image.

This value cannot be larger than 1023 GB */ + diskSizeGB?: number; + /** Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. */ + storageAccountType?: StorageAccountTypes; + /** Specifies the customer managed disk encryption set resource id for the managed image disk. */ + diskEncryptionSet?: DiskEncryptionSetParameters; } -/** List of Virtual Machine Scale Set OS Upgrade History operation response. */ -export interface VirtualMachineScaleSetListOSUpgradeHistory { - /** The list of OS upgrades performed on the virtual machine scale set. */ - value: UpgradeOperationHistoricalStatusInfo[]; - /** The uri to fetch the next page of OS Upgrade History. Call ListNext() with this to fetch the next page of history of upgrades. */ +/** The List Image operation response. */ +export interface ImageListResult { + /** The list of Images. */ + value: Image[]; + /** The uri to fetch the next page of Images. Call ListNext() with this to fetch the next page of Images. */ nextLink?: string; } -/** Virtual Machine Scale Set OS Upgrade History operation response. */ -export interface UpgradeOperationHistoricalStatusInfo { - /** - * Information about the properties of the upgrade operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly properties?: UpgradeOperationHistoricalStatusInfoProperties; - /** - * Resource type - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; +/** The properties of the source resource that this restore point collection is created from. */ +export interface RestorePointCollectionSourceProperties { /** - * Resource location + * Location of the source resource used to create this restore point collection. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly location?: string; + /** Resource Id of the source resource used to create this restore point collection */ + id?: string; } -/** Describes each OS upgrade on the Virtual Machine Scale Set. */ -export interface UpgradeOperationHistoricalStatusInfoProperties { - /** - * Information about the overall status of the upgrade operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly runningStatus?: UpgradeOperationHistoryStatus; - /** - * Counts of the VMs in each state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly progress?: RollingUpgradeProgressInfo; - /** - * Error Details for this upgrade if there are any. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly error?: ApiError; - /** - * Invoker of the Upgrade Operation - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startedBy?: UpgradeOperationInvoker; - /** - * Image Reference details - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly targetImageReference?: ImageReference; - /** - * Information about OS rollback if performed - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly rollbackInfo?: RollbackStatusInfo; +/** Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation. */ +export interface RestorePointSourceMetadata { + /** Gets the hardware profile. */ + hardwareProfile?: HardwareProfile; + /** Gets the storage profile. */ + storageProfile?: RestorePointSourceVMStorageProfile; + /** Gets the OS profile. */ + osProfile?: OSProfile; + /** Gets the diagnostics profile. */ + diagnosticsProfile?: DiagnosticsProfile; + /** Gets the license type, which is for bring your own license scenario. */ + licenseType?: string; + /** Gets the virtual machine unique id. */ + vmId?: string; + /** Gets the security profile. */ + securityProfile?: SecurityProfile; + /** Location of the VM from which the restore point was created. */ + location?: string; } -/** Information about the current running state of the overall upgrade. */ -export interface UpgradeOperationHistoryStatus { - /** - * Code indicating the current status of the upgrade. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly code?: UpgradeState; - /** - * Start time of the upgrade. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startTime?: Date; - /** - * End time of the upgrade. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly endTime?: Date; +/** Describes the storage profile. */ +export interface RestorePointSourceVMStorageProfile { + /** Gets the OS disk of the VM captured at the time of the restore point creation. */ + osDisk?: RestorePointSourceVmosDisk; + /** Gets the data disks of the VM captured at the time of the restore point creation. */ + dataDisks?: RestorePointSourceVMDataDisk[]; } -/** Information about the number of virtual machine instances in each upgrade state. */ -export interface RollingUpgradeProgressInfo { - /** - * The number of instances that have been successfully upgraded. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly successfulInstanceCount?: number; - /** - * The number of instances that have failed to be upgraded successfully. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly failedInstanceCount?: number; - /** - * The number of instances that are currently being upgraded. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly inProgressInstanceCount?: number; - /** - * The number of instances that have not yet begun to be upgraded. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly pendingInstanceCount?: number; +/** Describes an Operating System disk. */ +export interface RestorePointSourceVmosDisk { + /** Gets the Operating System type. */ + osType?: OperatingSystemType; + /** Gets the disk encryption settings. */ + encryptionSettings?: DiskEncryptionSettings; + /** Gets the disk name. */ + name?: string; + /** Gets the caching type. */ + caching?: CachingTypes; + /** Gets the disk size in GB. */ + diskSizeGB?: number; + /** Gets the managed disk details */ + managedDisk?: ManagedDiskParameters; + /** Gets the disk restore point Id. */ + diskRestorePoint?: ApiEntityReference; } -/** Information about rollback on failed VM instances after a OS Upgrade operation. */ -export interface RollbackStatusInfo { +/** Describes a data disk. */ +export interface RestorePointSourceVMDataDisk { + /** Gets the logical unit number. */ + lun?: number; + /** Gets the disk name. */ + name?: string; + /** Gets the caching type. */ + caching?: CachingTypes; + /** Gets the initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks. */ + diskSizeGB?: number; + /** Gets the managed disk details */ + managedDisk?: ManagedDiskParameters; + /** Gets the disk restore point Id. */ + diskRestorePoint?: ApiEntityReference; +} + +/** The instance view of a restore point. */ +export interface RestorePointInstanceView { + /** The disk restore points information. */ + diskRestorePoints?: DiskRestorePointInstanceView[]; + /** The resource status information. */ + statuses?: InstanceViewStatus[]; +} + +/** The instance view of a disk restore point. */ +export interface DiskRestorePointInstanceView { + /** Disk restore point Id. */ + id?: string; + /** The disk restore point replication status information. */ + replicationStatus?: Record; +} + +/** The resource model definition for an Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource { /** - * The number of instances which have been successfully rolled back. + * Resource Id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly successfullyRolledbackInstanceCount?: number; + readonly id?: string; /** - * The number of instances which failed to rollback. + * Resource name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly failedRolledbackInstanceCount?: number; + readonly name?: string; /** - * Error details if OS rollback failed. + * Resource type * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly rollbackError?: ApiError; + readonly type?: string; } -/** Information about the current running state of the overall upgrade. */ -export interface RollingUpgradeRunningStatus { - /** - * Code indicating the current status of the upgrade. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly code?: RollingUpgradeStatusCode; - /** - * Start time of the upgrade. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startTime?: Date; +/** The List restore point collection operation response. */ +export interface RestorePointCollectionListResult { + /** Gets the list of restore point collections. */ + value?: RestorePointCollection[]; + /** The uri to fetch the next page of RestorePointCollections. Call ListNext() with this to fetch the next page of RestorePointCollections */ + nextLink?: string; +} + +export interface CapacityReservationGroupInstanceView { /** - * The last action performed on the rolling upgrade. + * List of instance view of the capacity reservations under the capacity reservation group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastAction?: RollingUpgradeActionType; + readonly capacityReservations?: CapacityReservationInstanceViewWithName[]; +} + +/** The instance view of a capacity reservation that provides as snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations. */ +export interface CapacityReservationInstanceView { + /** Unutilized capacity of the capacity reservation. */ + utilizationInfo?: CapacityReservationUtilization; + /** The resource status information. */ + statuses?: InstanceViewStatus[]; +} + +/** Represents the capacity reservation utilization in terms of resources allocated. */ +export interface CapacityReservationUtilization { /** - * Last action time of the upgrade. + * A list of all virtual machines resource ids allocated against the capacity reservation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastActionTime?: Date; + readonly virtualMachinesAllocated?: SubResourceReadOnly[]; } -/** Response after calling a manual recovery walk */ -export interface RecoveryWalkResponse { +/** The List capacity reservation group with resource group response. */ +export interface CapacityReservationGroupListResult { + /** The list of capacity reservation groups */ + value: CapacityReservationGroup[]; + /** The URI to fetch the next page of capacity reservation groups. Call ListNext() with this URI to fetch the next page of capacity reservation groups. */ + nextLink?: string; +} + +/** The list capacity reservation operation response. */ +export interface CapacityReservationListResult { + /** The list of capacity reservations */ + value: CapacityReservation[]; + /** The URI to fetch the next page of capacity reservations. Call ListNext() with this URI to fetch the next page of capacity reservations. */ + nextLink?: string; +} + +/** Api input base class for LogAnalytics Api. */ +export interface LogAnalyticsInputBase { + /** SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. */ + blobContainerSasUri: string; + /** From time of the query */ + fromTime: Date; + /** To time of the query */ + toTime: Date; + /** Group query result by Throttle Policy applied. */ + groupByThrottlePolicy?: boolean; + /** Group query result by Operation Name. */ + groupByOperationName?: boolean; + /** Group query result by Resource Name. */ + groupByResourceName?: boolean; + /** Group query result by Client Application ID. */ + groupByClientApplicationId?: boolean; + /** Group query result by User Agent. */ + groupByUserAgent?: boolean; +} + +/** LogAnalytics operation status response */ +export interface LogAnalyticsOperationResult { /** - * Whether the recovery walk was performed + * LogAnalyticsOutput * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly walkPerformed?: boolean; + readonly properties?: LogAnalyticsOutput; +} + +/** LogAnalytics output properties */ +export interface LogAnalyticsOutput { /** - * The next update domain that needs to be walked. Null means walk spanning all update domains has been completed + * Output file Uri path to blob container. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextPlatformUpdateDomain?: number; -} - -export interface VMScaleSetConvertToSinglePlacementGroupInput { - /** Id of the placement group in which you want future virtual machine instances to be placed. To query placement group Id, please use Virtual Machine Scale Set VMs - Get API. If not provided, the platform will choose one with maximum number of virtual machine instances. */ - activePlacementGroupId?: string; + readonly output?: string; } -/** The input for OrchestrationServiceState */ -export interface OrchestrationServiceStateInput { - /** The name of the service. */ - serviceName: OrchestrationServiceNames; - /** The action to be performed. */ - action: OrchestrationServiceStateAction; -} - -/** The List VMSS VM Extension operation response */ -export interface VirtualMachineScaleSetVMExtensionsListResult { - /** The list of VMSS VM extensions */ - value?: VirtualMachineScaleSetVMExtension[]; -} - -/** The instance view of a virtual machine scale set VM. */ -export interface VirtualMachineScaleSetVMInstanceView { - /** The Update Domain count. */ - platformUpdateDomain?: number; - /** The Fault Domain count. */ - platformFaultDomain?: number; - /** The Remote desktop certificate thumbprint. */ - rdpThumbPrint?: string; - /** The VM Agent running on the virtual machine. */ - vmAgent?: VirtualMachineAgentInstanceView; - /** The Maintenance Operation status on the virtual machine. */ - maintenanceRedeployStatus?: MaintenanceRedeployStatus; - /** The disks information. */ - disks?: DiskInstanceView[]; - /** The extensions information. */ - extensions?: VirtualMachineExtensionInstanceView[]; - /** - * The health status for the VM. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly vmHealth?: VirtualMachineHealthStatus; - /** Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.

You can easily view the output of your console log.

Azure also enables you to see a screenshot of the VM from the hypervisor. */ - bootDiagnostics?: BootDiagnosticsInstanceView; - /** The resource status information. */ - statuses?: InstanceViewStatus[]; - /** - * Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled.

Minimum api-version: 2020-06-01. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly assignedHost?: string; - /** The placement group in which the VM is running. If the VM is deallocated it will not have a placementGroupId. */ - placementGroupId?: string; -} - -/** Describes a virtual machine scale set VM network profile. */ -export interface VirtualMachineScaleSetVMNetworkProfileConfiguration { - /** The list of network configurations. */ - networkInterfaceConfigurations?: VirtualMachineScaleSetNetworkConfiguration[]; -} - -/** The protection policy of a virtual machine scale set VM. */ -export interface VirtualMachineScaleSetVMProtectionPolicy { - /** Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation. */ - protectFromScaleIn?: boolean; - /** Indicates that model updates or actions (including scale-in) initiated on the virtual machine scale set should not be applied to the virtual machine scale set VM. */ - protectFromScaleSetActions?: boolean; -} - -/** The List Virtual Machine Scale Set VMs operation response. */ -export interface VirtualMachineScaleSetVMListResult { - /** The list of virtual machine scale sets VMs. */ - value: VirtualMachineScaleSetVM[]; - /** The uri to fetch the next page of Virtual Machine Scale Set VMs. Call ListNext() with this to fetch the next page of VMSS VMs */ - nextLink?: string; -} - -/** Api input base class for LogAnalytics Api. */ -export interface LogAnalyticsInputBase { - /** SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. */ - blobContainerSasUri: string; - /** From time of the query */ - fromTime: Date; - /** To time of the query */ - toTime: Date; - /** Group query result by Throttle Policy applied. */ - groupByThrottlePolicy?: boolean; - /** Group query result by Operation Name. */ - groupByOperationName?: boolean; - /** Group query result by Resource Name. */ - groupByResourceName?: boolean; - /** Group query result by Client Application ID. */ - groupByClientApplicationId?: boolean; - /** Group query result by User Agent. */ - groupByUserAgent?: boolean; -} - -/** LogAnalytics operation status response */ -export interface LogAnalyticsOperationResult { - /** - * LogAnalyticsOutput - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly properties?: LogAnalyticsOutput; -} - -/** LogAnalytics output properties */ -export interface LogAnalyticsOutput { - /** - * Output file Uri path to blob container. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly output?: string; -} - -/** The List Virtual Machine operation response. */ -export interface RunCommandListResult { - /** The list of virtual machine run commands. */ - value: RunCommandDocumentBase[]; - /** The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next page of run commands. */ - nextLink?: string; +/** The List Virtual Machine operation response. */ +export interface RunCommandListResult { + /** The list of virtual machine run commands. */ + value: RunCommandDocumentBase[]; + /** The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next page of run commands. */ + nextLink?: string; } /** Describes the properties of a Run Command metadata. */ @@ -2688,12 +2717,10 @@ export interface PurchasePlanAutoGenerated { promotionCode?: string; } -/** List of supported capabilities persisted on the disk resource for VM use. */ +/** List of supported capabilities (like accelerated networking) persisted on the disk resource for VM use. */ export interface SupportedCapabilities { /** True if the image from which the OS disk is created supports accelerated networking. */ acceleratedNetwork?: boolean; - /** CPU architecture supported by an OS disk. */ - architecture?: Architecture; } /** Data used when creating a disk. */ @@ -2835,7 +2862,7 @@ export interface DiskUpdate { burstingEnabled?: boolean; /** Purchase plan information to be added on the OS disk */ purchasePlan?: PurchasePlanAutoGenerated; - /** List of supported capabilities to be added on the OS disk. */ + /** List of supported capabilities (like accelerated networking) to be added on the OS disk. */ supportedCapabilities?: SupportedCapabilities; /** * Properties of the disk for which update is pending. @@ -2846,8 +2873,6 @@ export interface DiskUpdate { supportsHibernation?: boolean; /** Policy for controlling export on the disk. */ publicNetworkAccess?: PublicNetworkAccess; - /** Additional authentication requirements when exporting or uploading to a disk or snapshot. */ - dataAccessAuthMode?: DataAccessAuthMode; } /** The List Disks operation response. */ @@ -2914,9 +2939,7 @@ export interface SnapshotUpdate { supportsHibernation?: boolean; /** Policy for controlling export on the disk. */ publicNetworkAccess?: PublicNetworkAccess; - /** Additional authentication requirements when exporting or uploading to a disk or snapshot. */ - dataAccessAuthMode?: DataAccessAuthMode; - /** List of supported capabilities for the image from which the OS disk was created. */ + /** List of supported capabilities (like accelerated networking) for the image from which the OS disk was created. */ supportedCapabilities?: SupportedCapabilities; } @@ -4131,23 +4154,6 @@ export interface ManagedArtifact { id: string; } -export type SubResourceWithColocationStatus = SubResource & { - /** Describes colocation status of a resource in the Proximity Placement Group. */ - colocationStatus?: InstanceViewStatus; -}; - -/** Virtual machine image resource information. */ -export type VirtualMachineImageResource = SubResource & { - /** The name of the resource. */ - name: string; - /** The supported Azure location of the resource. */ - location: string; - /** Specifies the tags that are assigned to the virtual machine. For more information about using tags, see [Using tags to organize your Azure resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md). */ - tags?: { [propertyName: string]: string }; - /** The extended location of the Virtual Machine. */ - extendedLocation?: ExtendedLocation; -}; - /** Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. */ export type ImageReference = SubResource & { /** The image publisher. */ @@ -4172,24 +4178,6 @@ export type ImageReference = SubResource & { /** Describes the parameter of customer managed disk encryption set resource id that can be specified for disk.

NOTE: The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. */ export type DiskEncryptionSetParameters = SubResource & {}; -/** The parameters of a managed disk. */ -export type ManagedDiskParameters = SubResource & { - /** Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. */ - storageAccountType?: StorageAccountTypes; - /** Specifies the customer managed disk encryption set resource id for the managed disk. */ - diskEncryptionSet?: DiskEncryptionSetParameters; - /** Specifies the security profile for the managed disk. */ - securityProfile?: VMDiskSecurityProfile; -}; - -/** Describes a network interface reference. */ -export type NetworkInterfaceReference = SubResource & { - /** Specifies the primary network interface in case the virtual machine has more than 1 network interface. */ - primary?: boolean; - /** Specify what happens to the network interface when the VM is deleted */ - deleteOption?: DeleteOptions; -}; - /** Describes a virtual machine scale set network profile's IP configuration. */ export type VirtualMachineScaleSetIPConfiguration = SubResource & { /** The IP configuration name. */ @@ -4234,30 +4222,6 @@ export type VirtualMachineScaleSetNetworkConfiguration = SubResource & { deleteOption?: DeleteOptions; }; -/** Output of virtual machine capture operation. */ -export type VirtualMachineCaptureResult = SubResource & { - /** - * the schema of the captured virtual machine - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly schema?: string; - /** - * the version of the content - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly contentVersion?: string; - /** - * parameters of the captured virtual machine - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly parameters?: Record; - /** - * a list of resource items of the captured virtual machine - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resources?: Record[]; -}; - /** Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual network */ export type VirtualMachineScaleSetUpdateIPConfiguration = SubResource & { /** The IP configuration name. */ @@ -4302,132 +4266,156 @@ export type VirtualMachineScaleSetUpdateNetworkConfiguration = SubResource & { deleteOption?: DeleteOptions; }; -/** Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).

For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)

Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. */ -export type AvailabilitySet = Resource & { - /** Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'. */ - sku?: Sku; - /** Update Domain count. */ - platformUpdateDomainCount?: number; - /** Fault Domain count. */ - platformFaultDomainCount?: number; - /** A list of references to all virtual machines in the availability set. */ - virtualMachines?: SubResource[]; - /** Specifies information about the proximity placement group that the availability set should be assigned to.

Minimum api-version: 2018-04-01. */ - proximityPlacementGroup?: SubResource; +/** The parameters of a managed disk. */ +export type ManagedDiskParameters = SubResource & { + /** Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. */ + storageAccountType?: StorageAccountTypes; + /** Specifies the customer managed disk encryption set resource id for the managed disk. */ + diskEncryptionSet?: DiskEncryptionSetParameters; + /** Specifies the security profile for the managed disk. */ + securityProfile?: VMDiskSecurityProfile; +}; + +/** Describes a network interface reference. */ +export type NetworkInterfaceReference = SubResource & { + /** Specifies the primary network interface in case the virtual machine has more than 1 network interface. */ + primary?: boolean; + /** Specify what happens to the network interface when the VM is deleted */ + deleteOption?: DeleteOptions; +}; + +/** Output of virtual machine capture operation. */ +export type VirtualMachineCaptureResult = SubResource & { /** - * The resource status information. + * the schema of the captured virtual machine * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly statuses?: InstanceViewStatus[]; -}; - -/** Specifies information about the proximity placement group. */ -export type ProximityPlacementGroup = Resource & { - /** Specifies the type of the proximity placement group.

Possible values are:

**Standard** : Co-locate resources within an Azure region or Availability Zone.

**Ultra** : For future use. */ - proximityPlacementGroupType?: ProximityPlacementGroupType; + readonly schema?: string; /** - * A list of references to all virtual machines in the proximity placement group. + * the version of the content * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly virtualMachines?: SubResourceWithColocationStatus[]; + readonly contentVersion?: string; /** - * A list of references to all virtual machine scale sets in the proximity placement group. + * parameters of the captured virtual machine * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly virtualMachineScaleSets?: SubResourceWithColocationStatus[]; + readonly parameters?: Record; /** - * A list of references to all availability sets in the proximity placement group. + * a list of resource items of the captured virtual machine * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly availabilitySets?: SubResourceWithColocationStatus[]; - /** Describes colocation status of the Proximity Placement Group. */ + readonly resources?: Record[]; +}; + +/** Virtual machine image resource information. */ +export type VirtualMachineImageResource = SubResource & { + /** The name of the resource. */ + name: string; + /** The supported Azure location of the resource. */ + location: string; + /** Specifies the tags that are assigned to the virtual machine. For more information about using tags, see [Using tags to organize your Azure resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md). */ + tags?: { [propertyName: string]: string }; + /** The extended location of the Virtual Machine. */ + extendedLocation?: ExtendedLocation; +}; + +export type SubResourceWithColocationStatus = SubResource & { + /** Describes colocation status of a resource in the Proximity Placement Group. */ colocationStatus?: InstanceViewStatus; }; -/** Specifies information about the dedicated host group that the dedicated hosts should be assigned to.

Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. */ -export type DedicatedHostGroup = Resource & { - /** Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone. */ - zones?: string[]; - /** Number of fault domains that the host group can span. */ - platformFaultDomainCount?: number; - /** - * A list of references to all dedicated hosts in the dedicated host group. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly hosts?: SubResourceReadOnly[]; +/** Describes a Virtual Machine Scale Set Extension. */ +export type VirtualMachineScaleSetExtension = SubResourceReadOnly & { + /** The name of the extension. */ + name?: string; /** - * The dedicated host group instance view, which has the list of instance view of the dedicated hosts under the dedicated host group. + * Resource type * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly instanceView?: DedicatedHostGroupInstanceView; - /** Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided.

Minimum api-version: 2020-06-01. */ - supportAutomaticPlacement?: boolean; -}; - -/** Specifies information about the Dedicated host. */ -export type DedicatedHost = Resource & { - /** SKU of the dedicated host for Hardware Generation and VM family. Only name is required to be set. List Microsoft.Compute SKUs for a list of possible values. */ - sku: Sku; - /** Fault domain of the dedicated host within a dedicated host group. */ - platformFaultDomain?: number; - /** Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided. */ - autoReplaceOnFailure?: boolean; + readonly type?: string; + /** If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. */ + forceUpdateTag?: string; + /** The name of the extension handler publisher. */ + publisher?: string; + /** Specifies the type of the extension; an example is "CustomScriptExtension". */ + typePropertiesType?: string; + /** Specifies the version of the script handler. */ + typeHandlerVersion?: string; + /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ + autoUpgradeMinorVersion?: boolean; + /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. */ + enableAutomaticUpgrade?: boolean; + /** Json formatted public settings for the extension. */ + settings?: Record; + /** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */ + protectedSettings?: Record; /** - * A unique id generated and assigned to the dedicated host by the platform.

Does not change throughout the lifetime of the host. + * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly hostId?: string; + readonly provisioningState?: string; + /** Collection of extension names after which this extension needs to be provisioned. */ + provisionAfterExtensions?: string[]; + /** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */ + suppressFailures?: boolean; + /** The extensions protected settings that are passed by reference, and consumed from key vault */ + protectedSettingsFromKeyVault?: Record; +}; + +/** Describes a Virtual Machine Scale Set Extension. */ +export type VirtualMachineScaleSetExtensionUpdate = SubResourceReadOnly & { /** - * A list of references to all virtual machines in the Dedicated Host. + * The name of the extension. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly virtualMachines?: SubResourceReadOnly[]; - /** Specifies the software license type that will be applied to the VMs deployed on the dedicated host.

Possible values are:

**None**

**Windows_Server_Hybrid**

**Windows_Server_Perpetual**

Default: **None** */ - licenseType?: DedicatedHostLicenseTypes; + readonly name?: string; /** - * The date when the host was first provisioned. + * Resource type * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningTime?: Date; + readonly type?: string; + /** If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. */ + forceUpdateTag?: string; + /** The name of the extension handler publisher. */ + publisher?: string; + /** Specifies the type of the extension; an example is "CustomScriptExtension". */ + typePropertiesType?: string; + /** Specifies the version of the script handler. */ + typeHandlerVersion?: string; + /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ + autoUpgradeMinorVersion?: boolean; + /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. */ + enableAutomaticUpgrade?: boolean; + /** Json formatted public settings for the extension. */ + settings?: Record; + /** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */ + protectedSettings?: Record; /** * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: string; + /** Collection of extension names after which this extension needs to be provisioned. */ + provisionAfterExtensions?: string[]; + /** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */ + suppressFailures?: boolean; + /** The extensions protected settings that are passed by reference, and consumed from key vault */ + protectedSettingsFromKeyVault?: Record; +}; + +/** Describes a VMSS VM Extension. */ +export type VirtualMachineScaleSetVMExtension = SubResourceReadOnly & { /** - * The dedicated host instance view. + * The name of the extension. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly instanceView?: DedicatedHostInstanceView; + readonly name?: string; /** - * Specifies the time at which the Dedicated Host resource was created.

Minimum api-version: 2021-11-01. + * Resource type * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timeCreated?: Date; -}; - -/** Specifies information about the SSH public key. */ -export type SshPublicKeyResource = Resource & { - /** SSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format. */ - publicKey?: string; -}; - -/** Describes a Virtual Machine Extension Image. */ -export type VirtualMachineExtensionImage = Resource & { - /** The operating system this extension supports. */ - operatingSystem?: string; - /** The type of role (IaaS or PaaS) this extension supports. */ - computeRole?: string; - /** The schema defined by publisher, where extension consumers should provide settings in a matching schema. */ - handlerSchema?: string; - /** Whether the extension can be used on xRP VMScaleSets. By default existing extensions are usable on scalesets, but there might be cases where a publisher wants to explicitly indicate the extension is only enabled for CRP VMs but not VMSS. */ - vmScaleSetEnabled?: boolean; - /** Whether the handler can support multiple extensions. */ - supportsMultipleExtensions?: boolean; -}; - -/** Describes a Virtual Machine Extension. */ -export type VirtualMachineExtension = Resource & { + readonly type?: string; /** How the extension handler should be forced to update even if the extension configuration has not changed. */ forceUpdateTag?: string; /** The name of the extension handler publisher. */ @@ -4457,85 +4445,38 @@ export type VirtualMachineExtension = Resource & { protectedSettingsFromKeyVault?: Record; }; -/** Describes a Virtual Machine. */ -export type VirtualMachine = Resource & { - /** Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. */ - plan?: Plan; - /** - * The virtual machine child extension resources. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resources?: VirtualMachineExtension[]; - /** The identity of the virtual machine, if configured. */ - identity?: VirtualMachineIdentity; - /** The virtual machine zones. */ - zones?: string[]; - /** The extended location of the Virtual Machine. */ - extendedLocation?: ExtendedLocation; - /** Specifies the hardware settings for the virtual machine. */ - hardwareProfile?: HardwareProfile; - /** Specifies the storage settings for the virtual machine disks. */ - storageProfile?: StorageProfile; - /** Specifies additional capabilities enabled or disabled on the virtual machine. */ - additionalCapabilities?: AdditionalCapabilities; - /** Specifies the operating system settings used while creating the virtual machine. Some of the settings cannot be changed once VM is provisioned. */ - osProfile?: OSProfile; - /** Specifies the network interfaces of the virtual machine. */ - networkProfile?: NetworkProfile; - /** Specifies the Security related profile settings for the virtual machine. */ - securityProfile?: SecurityProfile; - /** Specifies the boot diagnostic settings state.

Minimum api-version: 2015-06-15. */ - diagnosticsProfile?: DiagnosticsProfile; - /** Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).

For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)

Currently, a VM can only be added to availability set at creation time. The availability set to which the VM is being added should be under the same resource group as the availability set resource. An existing VM cannot be added to an availability set.

This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. */ - availabilitySet?: SubResource; - /** Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines specified in the same virtual machine scale set are allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing VM cannot be added to a virtual machine scale set.

This property cannot exist along with a non-null properties.availabilitySet reference.

Minimum api‐version: 2019‐03‐01 */ - virtualMachineScaleSet?: SubResource; - /** Specifies information about the proximity placement group that the virtual machine should be assigned to.

Minimum api-version: 2018-04-01. */ - proximityPlacementGroup?: SubResource; - /** Specifies the priority for the virtual machine.

Minimum api-version: 2019-03-01 */ - priority?: VirtualMachinePriorityTypes; - /** Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set.

For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01.

For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. */ - evictionPolicy?: VirtualMachineEvictionPolicyTypes; - /** Specifies the billing related details of a Azure Spot virtual machine.

Minimum api-version: 2019-03-01. */ - billingProfile?: BillingProfile; - /** Specifies information about the dedicated host that the virtual machine resides in.

Minimum api-version: 2018-10-01. */ - host?: SubResource; - /** Specifies information about the dedicated host group that the virtual machine resides in.

Minimum api-version: 2020-06-01.

NOTE: User cannot specify both host and hostGroup properties. */ - hostGroup?: SubResource; - /** - * The provisioning state, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** - * The virtual machine instance view. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly instanceView?: VirtualMachineInstanceView; - /** Specifies that the image or disk that is being used was licensed on-premises.

Possible values for Windows Server operating system are:

Windows_Client

Windows_Server

Possible values for Linux 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)

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

Minimum api-version: 2015-06-15 */ - licenseType?: string; +/** Describes a VMSS VM Extension. */ +export type VirtualMachineScaleSetVMExtensionUpdate = SubResourceReadOnly & { /** - * Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. + * The name of the extension. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly vmId?: string; - /** Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M).

Minimum api-version: 2020-06-01 */ - extensionsTimeBudget?: string; - /** Specifies the scale set logical fault domain into which the Virtual Machine will be created. By default, the Virtual Machine will by automatically assigned to a fault domain that best maintains balance across available fault domains.
  • This is applicable only if the 'virtualMachineScaleSet' property of this Virtual Machine is set.
  • The Virtual Machine Scale Set that is referenced, must have 'platformFaultDomainCount' > 1.
  • This property cannot be updated once the Virtual Machine is created.
  • Fault domain assignment can be viewed in the Virtual Machine Instance View.

    Minimum api‐version: 2020‐12‐01 */ - platformFaultDomain?: number; - /** Specifies Scheduled Event related configurations. */ - scheduledEventsProfile?: ScheduledEventsProfile; - /** UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here.

    Minimum api-version: 2021-03-01 */ - userData?: string; - /** Specifies information about the capacity reservation that is used to allocate virtual machine.

    Minimum api-version: 2021-04-01. */ - capacityReservation?: CapacityReservationProfile; - /** Specifies the gallery applications that should be made available to the VM/VMSS */ - applicationProfile?: ApplicationProfile; + readonly name?: string; /** - * Specifies the time at which the Virtual Machine resource was created.

    Minimum api-version: 2021-11-01. + * Resource type * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timeCreated?: Date; + readonly type?: string; + /** How the extension handler should be forced to update even if the extension configuration has not changed. */ + forceUpdateTag?: string; + /** The name of the extension handler publisher. */ + publisher?: string; + /** Specifies the type of the extension; an example is "CustomScriptExtension". */ + typePropertiesType?: string; + /** Specifies the version of the script handler. */ + typeHandlerVersion?: string; + /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ + autoUpgradeMinorVersion?: boolean; + /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. */ + enableAutomaticUpgrade?: boolean; + /** Json formatted public settings for the extension. */ + settings?: Record; + /** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */ + protectedSettings?: Record; + /** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */ + suppressFailures?: boolean; + /** The extensions protected settings that are passed by reference, and consumed from key vault */ + protectedSettingsFromKeyVault?: Record; }; /** Describes a Virtual Machine Scale Set. */ @@ -4589,142 +4530,45 @@ export type VirtualMachineScaleSet = Resource & { /** Specifies the Spot Restore properties for the virtual machine scale set. */ spotRestorePolicy?: SpotRestorePolicy; /** - * Specifies the time at which the Virtual Machine Scale Set resource was created.

    Minimum api-version: 2021-11-01. + * Specifies the time at which the Virtual Machine Scale Set resource was created.

    Minimum api-version: 2022-03-01. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeCreated?: Date; }; -/** The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. */ -export type Image = Resource & { - /** The extended location of the Image. */ - extendedLocation?: ExtendedLocation; - /** The source virtual machine from which Image is created. */ - sourceVirtualMachine?: SubResource; - /** Specifies the storage settings for the virtual machine disks. */ - storageProfile?: ImageStorageProfile; +/** The status of the latest virtual machine scale set rolling upgrade. */ +export type RollingUpgradeStatusInfo = Resource & { /** - * The provisioning state. + * The rolling upgrade policies applied for this upgrade. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; - /** Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource. */ - hyperVGeneration?: HyperVGenerationTypes; -}; - -/** Create or update Restore Point collection parameters. */ -export type RestorePointCollection = Resource & { - /** The properties of the source resource that this restore point collection is created from. */ - source?: RestorePointCollectionSourceProperties; + readonly policy?: RollingUpgradePolicy; /** - * The provisioning state of the restore point collection. + * Information about the current running state of the overall upgrade. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly runningStatus?: RollingUpgradeRunningStatus; /** - * The unique id of the restore point collection. + * Information about the number of virtual machine instances in each upgrade state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restorePointCollectionId?: string; + readonly progress?: RollingUpgradeProgressInfo; /** - * A list containing all restore points created under this restore point collection. + * Error details for this upgrade, if there are any. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restorePoints?: RestorePoint[]; + readonly error?: ApiError; }; -/** Specifies information about the capacity reservation group that the capacity reservations should be assigned to.

    Currently, a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity reservation cannot be added or moved to another capacity reservation group. */ -export type CapacityReservationGroup = Resource & { - /** Availability Zones to use for this capacity reservation group. The zones can be assigned only during creation. If not provided, the group supports only regional resources in the region. If provided, enforces each capacity reservation in the group to be in one of the zones. */ - zones?: string[]; +/** Describes a virtual machine scale set virtual machine. */ +export type VirtualMachineScaleSetVM = Resource & { /** - * A list of all capacity reservation resource ids that belong to capacity reservation group. + * The virtual machine instance ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly capacityReservations?: SubResourceReadOnly[]; + readonly instanceId?: string; /** - * A list of references to all virtual machines associated to the capacity reservation group. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly virtualMachinesAssociated?: SubResourceReadOnly[]; - /** - * The capacity reservation group instance view which has the list of instance views for all the capacity reservations that belong to the capacity reservation group. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly instanceView?: CapacityReservationGroupInstanceView; -}; - -/** Specifies information about the capacity reservation. */ -export type CapacityReservation = Resource & { - /** SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. Currently VM Skus with the capability called 'CapacityReservationSupported' set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values. */ - sku: Sku; - /** Availability Zone to use for this capacity reservation. The zone has to be single value and also should be part for the list of zones specified during the capacity reservation group creation. The zone can be assigned only during creation. If not provided, the reservation supports only non-zonal deployments. If provided, enforces VM/VMSS using this capacity reservation to be in same zone. */ - zones?: string[]; - /** - * A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly reservationId?: string; - /** - * A list of all virtual machine resource ids that are associated with the capacity reservation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly virtualMachinesAssociated?: SubResourceReadOnly[]; - /** - * The date time when the capacity reservation was last updated. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningTime?: Date; - /** - * The provisioning state, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** - * The Capacity reservation instance view. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly instanceView?: CapacityReservationInstanceView; - /** - * Specifies the time at which the Capacity Reservation resource was created.

    Minimum api-version: 2021-11-01. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeCreated?: Date; -}; - -/** The status of the latest virtual machine scale set rolling upgrade. */ -export type RollingUpgradeStatusInfo = Resource & { - /** - * The rolling upgrade policies applied for this upgrade. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly policy?: RollingUpgradePolicy; - /** - * Information about the current running state of the overall upgrade. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly runningStatus?: RollingUpgradeRunningStatus; - /** - * Information about the number of virtual machine instances in each upgrade state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly progress?: RollingUpgradeProgressInfo; - /** - * Error details for this upgrade, if there are any. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly error?: ApiError; -}; - -/** Describes a virtual machine scale set virtual machine. */ -export type VirtualMachineScaleSetVM = Resource & { - /** - * The virtual machine instance ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly instanceId?: string; - /** - * The virtual machine SKU. + * The virtual machine SKU. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sku?: Sku; @@ -4791,644 +4635,665 @@ export type VirtualMachineScaleSetVM = Resource & { userData?: string; }; -/** Describes a Virtual Machine run command. */ -export type VirtualMachineRunCommand = Resource & { - /** The source of the run command script. */ - source?: VirtualMachineRunCommandScriptSource; - /** The parameters used by the script. */ - parameters?: RunCommandInputParameter[]; - /** The parameters used by the script. */ - protectedParameters?: RunCommandInputParameter[]; - /** Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete. */ - asyncExecution?: boolean; - /** Specifies the user account on the VM when executing the run command. */ - runAsUser?: string; - /** Specifies the user account password on the VM when executing the run command. */ - runAsPassword?: string; - /** The timeout in seconds to execute the run command. */ - timeoutInSeconds?: number; - /** Specifies the Azure storage blob where script output stream will be uploaded. */ - outputBlobUri?: string; - /** Specifies the Azure storage blob where script error stream will be uploaded. */ - errorBlobUri?: string; +/** Describes a Virtual Machine. */ +export type VirtualMachine = Resource & { + /** Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. */ + plan?: Plan; /** - * The provisioning state, which only appears in the response. + * The virtual machine child extension resources. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly resources?: VirtualMachineExtension[]; + /** The identity of the virtual machine, if configured. */ + identity?: VirtualMachineIdentity; + /** The virtual machine zones. */ + zones?: string[]; + /** The extended location of the Virtual Machine. */ + extendedLocation?: ExtendedLocation; + /** Specifies the hardware settings for the virtual machine. */ + hardwareProfile?: HardwareProfile; + /** Specifies the storage settings for the virtual machine disks. */ + storageProfile?: StorageProfile; + /** Specifies additional capabilities enabled or disabled on the virtual machine. */ + additionalCapabilities?: AdditionalCapabilities; + /** Specifies the operating system settings used while creating the virtual machine. Some of the settings cannot be changed once VM is provisioned. */ + osProfile?: OSProfile; + /** Specifies the network interfaces of the virtual machine. */ + networkProfile?: NetworkProfile; + /** Specifies the Security related profile settings for the virtual machine. */ + securityProfile?: SecurityProfile; + /** Specifies the boot diagnostic settings state.

    Minimum api-version: 2015-06-15. */ + diagnosticsProfile?: DiagnosticsProfile; + /** Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).

    For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)

    Currently, a VM can only be added to availability set at creation time. The availability set to which the VM is being added should be under the same resource group as the availability set resource. An existing VM cannot be added to an availability set.

    This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. */ + availabilitySet?: SubResource; + /** Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines specified in the same virtual machine scale set are allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing VM cannot be added to a virtual machine scale set.

    This property cannot exist along with a non-null properties.availabilitySet reference.

    Minimum api‐version: 2019‐03‐01 */ + virtualMachineScaleSet?: SubResource; + /** Specifies information about the proximity placement group that the virtual machine should be assigned to.

    Minimum api-version: 2018-04-01. */ + proximityPlacementGroup?: SubResource; + /** Specifies the priority for the virtual machine.

    Minimum api-version: 2019-03-01 */ + priority?: VirtualMachinePriorityTypes; + /** Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set.

    For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01.

    For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. */ + evictionPolicy?: VirtualMachineEvictionPolicyTypes; + /** Specifies the billing related details of a Azure Spot virtual machine.

    Minimum api-version: 2019-03-01. */ + billingProfile?: BillingProfile; + /** Specifies information about the dedicated host that the virtual machine resides in.

    Minimum api-version: 2018-10-01. */ + host?: SubResource; + /** Specifies information about the dedicated host group that the virtual machine resides in.

    Minimum api-version: 2020-06-01.

    NOTE: User cannot specify both host and hostGroup properties. */ + hostGroup?: SubResource; /** - * The virtual machine run command instance view. + * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly instanceView?: VirtualMachineRunCommandInstanceView; -}; - -/** Disk resource. */ -export type Disk = Resource & { + readonly provisioningState?: string; /** - * A relative URI containing the ID of the VM that has the disk attached. + * The virtual machine instance view. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managedBy?: string; + readonly instanceView?: VirtualMachineInstanceView; + /** Specifies that the image or disk that is being used was licensed on-premises.

    Possible values for Windows Server operating system are:

    Windows_Client

    Windows_Server

    Possible values for Linux 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)

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

    Minimum api-version: 2015-06-15 */ + licenseType?: string; /** - * List of relative URIs containing the IDs of the VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs. + * Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managedByExtended?: string[]; - /** The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, or StandardSSD_ZRS. */ - sku?: DiskSku; - /** The Logical zone list for Disk. */ - zones?: string[]; - /** The extended location where the disk will be created. Extended location cannot be changed. */ - extendedLocation?: ExtendedLocation; + readonly vmId?: string; + /** Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M).

    Minimum api-version: 2020-06-01 */ + extensionsTimeBudget?: string; + /** Specifies the scale set logical fault domain into which the Virtual Machine will be created. By default, the Virtual Machine will by automatically assigned to a fault domain that best maintains balance across available fault domains.
  • This is applicable only if the 'virtualMachineScaleSet' property of this Virtual Machine is set.
  • The Virtual Machine Scale Set that is referenced, must have 'platformFaultDomainCount' > 1.
  • This property cannot be updated once the Virtual Machine is created.
  • Fault domain assignment can be viewed in the Virtual Machine Instance View.

    Minimum api‐version: 2020‐12‐01 */ + platformFaultDomain?: number; + /** Specifies Scheduled Event related configurations. */ + scheduledEventsProfile?: ScheduledEventsProfile; + /** UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here.

    Minimum api-version: 2021-03-01 */ + userData?: string; + /** Specifies information about the capacity reservation that is used to allocate virtual machine.

    Minimum api-version: 2021-04-01. */ + capacityReservation?: CapacityReservationProfile; + /** Specifies the gallery applications that should be made available to the VM/VMSS */ + applicationProfile?: ApplicationProfile; /** - * The time when the disk was created. + * Specifies the time at which the Virtual Machine resource was created.

    Minimum api-version: 2022-03-01. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeCreated?: Date; - /** The Operating System type. */ - osType?: OperatingSystemTypes; - /** The hypervisor generation of the Virtual Machine. Applicable to OS disks only. */ - hyperVGeneration?: HyperVGeneration; - /** Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer} */ - purchasePlan?: PurchasePlanAutoGenerated; - /** List of supported capabilities for the image from which the OS disk was created. */ - supportedCapabilities?: SupportedCapabilities; - /** Disk source information. CreationData information cannot be changed after the disk has been created. */ - creationData?: CreationData; - /** If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. */ - diskSizeGB?: number; +}; + +/** Describes a Virtual Machine Extension Image. */ +export type VirtualMachineExtensionImage = Resource & { + /** The operating system this extension supports. */ + operatingSystem?: string; + /** The type of role (IaaS or PaaS) this extension supports. */ + computeRole?: string; + /** The schema defined by publisher, where extension consumers should provide settings in a matching schema. */ + handlerSchema?: string; + /** Whether the extension can be used on xRP VMScaleSets. By default existing extensions are usable on scalesets, but there might be cases where a publisher wants to explicitly indicate the extension is only enabled for CRP VMs but not VMSS. */ + vmScaleSetEnabled?: boolean; + /** Whether the handler can support multiple extensions. */ + supportsMultipleExtensions?: boolean; +}; + +/** Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).

    For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)

    Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. */ +export type AvailabilitySet = Resource & { + /** Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'. */ + sku?: Sku; + /** Update Domain count. */ + platformUpdateDomainCount?: number; + /** Fault Domain count. */ + platformFaultDomainCount?: number; + /** A list of references to all virtual machines in the availability set. */ + virtualMachines?: SubResource[]; + /** Specifies information about the proximity placement group that the availability set should be assigned to.

    Minimum api-version: 2018-04-01. */ + proximityPlacementGroup?: SubResource; /** - * The size of the disk in bytes. This field is read only. + * The resource status information. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly diskSizeBytes?: number; + readonly statuses?: InstanceViewStatus[]; +}; + +/** Specifies information about the proximity placement group. */ +export type ProximityPlacementGroup = Resource & { + /** Specifies the type of the proximity placement group.

    Possible values are:

    **Standard** : Co-locate resources within an Azure region or Availability Zone.

    **Ultra** : For future use. */ + proximityPlacementGroupType?: ProximityPlacementGroupType; /** - * Unique Guid identifying the resource. + * A list of references to all virtual machines in the proximity placement group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly uniqueId?: string; - /** Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. */ - encryptionSettingsCollection?: EncryptionSettingsCollection; + readonly virtualMachines?: SubResourceWithColocationStatus[]; /** - * The disk provisioning state. + * A list of references to all virtual machine scale sets in the proximity placement group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; - /** The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes. */ - diskIopsReadWrite?: number; - /** The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10. */ - diskMBpsReadWrite?: number; - /** The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes. */ - diskIopsReadOnly?: number; - /** The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10. */ - diskMBpsReadOnly?: number; + readonly virtualMachineScaleSets?: SubResourceWithColocationStatus[]; /** - * The state of the disk. + * A list of references to all availability sets in the proximity placement group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly diskState?: DiskState; - /** Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. */ - encryption?: Encryption; - /** The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. */ - maxShares?: number; - /** - * Details of the list of all VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs. + readonly availabilitySets?: SubResourceWithColocationStatus[]; + /** Describes colocation status of the Proximity Placement Group. */ + colocationStatus?: InstanceViewStatus; +}; + +/** Specifies information about the dedicated host group that the dedicated hosts should be assigned to.

    Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. */ +export type DedicatedHostGroup = Resource & { + /** Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone. */ + zones?: string[]; + /** Number of fault domains that the host group can span. */ + platformFaultDomainCount?: number; + /** + * A list of references to all dedicated hosts in the dedicated host group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly shareInfo?: ShareInfoElement[]; - /** Policy for accessing the disk via network. */ - networkAccessPolicy?: NetworkAccessPolicy; - /** ARM id of the DiskAccess resource for using private endpoints on disks. */ - diskAccessId?: string; - /** Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks. */ - tier?: string; - /** Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks. */ - burstingEnabled?: boolean; + readonly hosts?: SubResourceReadOnly[]; /** - * Properties of the disk for which update is pending. + * The dedicated host group instance view, which has the list of instance view of the dedicated hosts under the dedicated host group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly propertyUpdatesInProgress?: PropertyUpdatesInProgress; - /** Indicates the OS on a disk supports hibernation. */ - supportsHibernation?: boolean; - /** Contains the security related information for the resource. */ - securityProfile?: DiskSecurityProfile; - /** Percentage complete for the background copy when a resource is created via the CopyStart operation. */ - completionPercent?: number; - /** Policy for controlling export on the disk. */ - publicNetworkAccess?: PublicNetworkAccess; - /** Additional authentication requirements when exporting or uploading to a disk or snapshot. */ - dataAccessAuthMode?: DataAccessAuthMode; + readonly instanceView?: DedicatedHostGroupInstanceView; + /** Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided.

    Minimum api-version: 2020-06-01. */ + supportAutomaticPlacement?: boolean; + /** Enables or disables a capability on the dedicated host group.

    Minimum api-version: 2022-03-01. */ + additionalCapabilities?: DedicatedHostGroupPropertiesAdditionalCapabilities; }; -/** Snapshot resource. */ -export type Snapshot = Resource & { +/** Specifies information about the Dedicated host. */ +export type DedicatedHost = Resource & { + /** SKU of the dedicated host for Hardware Generation and VM family. Only name is required to be set. List Microsoft.Compute SKUs for a list of possible values. */ + sku: Sku; + /** Fault domain of the dedicated host within a dedicated host group. */ + platformFaultDomain?: number; + /** Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided. */ + autoReplaceOnFailure?: boolean; /** - * Unused. Always Null. + * A unique id generated and assigned to the dedicated host by the platform.

    Does not change throughout the lifetime of the host. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managedBy?: string; - /** The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot */ - sku?: SnapshotSku; - /** The extended location where the snapshot will be created. Extended location cannot be changed. */ - extendedLocation?: ExtendedLocation; + readonly hostId?: string; /** - * The time when the snapshot was created. + * A list of references to all virtual machines in the Dedicated Host. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timeCreated?: Date; - /** The Operating System type. */ - osType?: OperatingSystemTypes; - /** The hypervisor generation of the Virtual Machine. Applicable to OS disks only. */ - hyperVGeneration?: HyperVGeneration; - /** Purchase plan information for the image from which the source disk for the snapshot was originally created. */ - purchasePlan?: PurchasePlanAutoGenerated; - /** List of supported capabilities for the image from which the source disk from the snapshot was originally created. */ - supportedCapabilities?: SupportedCapabilities; - /** Disk source information. CreationData information cannot be changed after the disk has been created. */ - creationData?: CreationData; - /** If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. */ - diskSizeGB?: number; + readonly virtualMachines?: SubResourceReadOnly[]; + /** Specifies the software license type that will be applied to the VMs deployed on the dedicated host.

    Possible values are:

    **None**

    **Windows_Server_Hybrid**

    **Windows_Server_Perpetual**

    Default: **None** */ + licenseType?: DedicatedHostLicenseTypes; /** - * The size of the disk in bytes. This field is read only. + * The date when the host was first provisioned. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly diskSizeBytes?: number; + readonly provisioningTime?: Date; /** - * The state of the snapshot. + * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly diskState?: DiskState; + readonly provisioningState?: string; /** - * Unique Guid identifying the resource. + * The dedicated host instance view. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly uniqueId?: string; - /** Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. */ - encryptionSettingsCollection?: EncryptionSettingsCollection; + readonly instanceView?: DedicatedHostInstanceView; /** - * The disk provisioning state. + * Specifies the time at which the Dedicated Host resource was created.

    Minimum api-version: 2022-03-01. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; - /** Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed. */ - incremental?: boolean; - /** Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. */ - encryption?: Encryption; - /** Policy for accessing the disk via network. */ - networkAccessPolicy?: NetworkAccessPolicy; - /** ARM id of the DiskAccess resource for using private endpoints on disks. */ - diskAccessId?: string; - /** Contains the security related information for the resource. */ - securityProfile?: DiskSecurityProfile; - /** Indicates the OS on a snapshot supports hibernation. */ - supportsHibernation?: boolean; - /** Policy for controlling export on the disk. */ - publicNetworkAccess?: PublicNetworkAccess; - /** Percentage complete for the background copy when a resource is created via the CopyStart operation. */ - completionPercent?: number; - /** Additional authentication requirements when exporting or uploading to a disk or snapshot. */ - dataAccessAuthMode?: DataAccessAuthMode; + readonly timeCreated?: Date; }; -/** disk encryption set resource. */ -export type DiskEncryptionSet = Resource & { - /** The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. */ - identity?: EncryptionSetIdentity; - /** The type of key used to encrypt the data of the disk. */ - encryptionType?: DiskEncryptionSetType; - /** The key vault key which is currently used by this disk encryption set. */ - activeKey?: KeyForDiskEncryptionSet; +/** Specifies information about the SSH public key. */ +export type SshPublicKeyResource = Resource & { + /** SSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format. */ + publicKey?: string; +}; + +/** The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. */ +export type Image = Resource & { + /** The extended location of the Image. */ + extendedLocation?: ExtendedLocation; + /** The source virtual machine from which Image is created. */ + sourceVirtualMachine?: SubResource; + /** Specifies the storage settings for the virtual machine disks. */ + storageProfile?: ImageStorageProfile; /** - * A readonly collection of key vault keys previously used by this disk encryption set while a key rotation is in progress. It will be empty if there is no ongoing key rotation. + * The provisioning state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly previousKeys?: KeyForDiskEncryptionSet[]; + readonly provisioningState?: string; + /** Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource. */ + hyperVGeneration?: HyperVGenerationTypes; +}; + +/** Create or update Restore Point collection parameters. */ +export type RestorePointCollection = Resource & { + /** The properties of the source resource that this restore point collection is created from. */ + source?: RestorePointCollectionSourceProperties; /** - * The disk encryption set provisioning state. + * The provisioning state of the restore point collection. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: string; - /** Set this flag to true to enable auto-updating of this disk encryption set to the latest key version. */ - rotationToLatestKeyVersionEnabled?: boolean; /** - * The time when the active key of this disk encryption set was updated. + * The unique id of the restore point collection. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastKeyRotationTimestamp?: Date; + readonly restorePointCollectionId?: string; /** - * The error that was encountered during auto-key rotation. If an error is present, then auto-key rotation will not be attempted until the error on this disk encryption set is fixed. + * A list containing all restore points created under this restore point collection. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly autoKeyRotationError?: ApiError; + readonly restorePoints?: RestorePoint[]; }; -/** disk access resource. */ -export type DiskAccess = Resource & { - /** The extended location where the disk access will be created. Extended location cannot be changed. */ - extendedLocation?: ExtendedLocation; +/** Specifies information about the capacity reservation group that the capacity reservations should be assigned to.

    Currently, a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity reservation cannot be added or moved to another capacity reservation group. */ +export type CapacityReservationGroup = Resource & { + /** Availability Zones to use for this capacity reservation group. The zones can be assigned only during creation. If not provided, the group supports only regional resources in the region. If provided, enforces each capacity reservation in the group to be in one of the zones. */ + zones?: string[]; /** - * A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported. + * A list of all capacity reservation resource ids that belong to capacity reservation group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointConnections?: PrivateEndpointConnection[]; + readonly capacityReservations?: SubResourceReadOnly[]; /** - * The disk access resource provisioning state. + * A list of references to all virtual machines associated to the capacity reservation group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly virtualMachinesAssociated?: SubResourceReadOnly[]; /** - * The time when the disk access was created. + * The capacity reservation group instance view which has the list of instance views for all the capacity reservations that belong to the capacity reservation group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timeCreated?: Date; + readonly instanceView?: CapacityReservationGroupInstanceView; }; -/** Specifies information about the Shared Image Gallery that you want to create or update. */ -export type Gallery = Resource & { - /** The description of this Shared Image Gallery resource. This property is updatable. */ - description?: string; - /** Describes the gallery unique name. */ - identifier?: GalleryIdentifier; +/** Specifies information about the capacity reservation. */ +export type CapacityReservation = Resource & { + /** SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. Currently VM Skus with the capability called 'CapacityReservationSupported' set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values. */ + sku: Sku; + /** Availability Zone to use for this capacity reservation. The zone has to be single value and also should be part for the list of zones specified during the capacity reservation group creation. The zone can be assigned only during creation. If not provided, the reservation supports only non-zonal deployments. If provided, enforces VM/VMSS using this capacity reservation to be in same zone. */ + zones?: string[]; /** - * The provisioning state, which only appears in the response. + * A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: GalleryPropertiesProvisioningState; - /** Profile for gallery sharing to subscription or tenant */ - sharingProfile?: SharingProfile; - /** Contains information about the soft deletion policy of the gallery. */ - softDeletePolicy?: SoftDeletePolicy; + readonly reservationId?: string; /** - * Sharing status of current gallery. + * A list of all virtual machine resource ids that are associated with the capacity reservation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sharingStatus?: SharingStatus; -}; - -/** Specifies information about the gallery image definition that you want to create or update. */ -export type GalleryImage = Resource & { - /** The description of this gallery image definition resource. This property is updatable. */ - description?: string; - /** The Eula agreement for the gallery image definition. */ - eula?: string; - /** The privacy statement uri. */ - privacyStatementUri?: string; - /** The release note uri. */ - releaseNoteUri?: string; - /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

    Possible values are:

    **Windows**

    **Linux** */ - osType?: OperatingSystemTypes; - /** This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. */ - osState?: OperatingSystemStateTypes; - /** The hypervisor generation of the Virtual Machine. Applicable to OS disks only. */ - hyperVGeneration?: HyperVGeneration; - /** The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. */ - endOfLifeDate?: Date; - /** This is the gallery image definition identifier. */ - identifier?: GalleryImageIdentifier; - /** The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. */ - recommended?: RecommendedMachineConfiguration; - /** Describes the disallowed disk types. */ - disallowed?: Disallowed; - /** Describes the gallery image definition purchase plan. This is used by marketplace images. */ - purchasePlan?: ImagePurchasePlan; + readonly virtualMachinesAssociated?: SubResourceReadOnly[]; /** - * The provisioning state, which only appears in the response. + * The date time when the capacity reservation was last updated. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: GalleryImagePropertiesProvisioningState; - /** A list of gallery image features. */ - features?: GalleryImageFeature[]; - /** The architecture of the image. Applicable to OS disks only. */ - architecture?: Architecture; -}; - -/** Specifies information about the gallery image version that you want to create or update. */ -export type GalleryImageVersion = Resource & { - /** The publishing profile of a gallery image Version. */ - publishingProfile?: GalleryImageVersionPublishingProfile; + readonly provisioningTime?: Date; /** * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: GalleryImageVersionPropertiesProvisioningState; - /** This is the storage profile of a Gallery Image Version. */ - storageProfile?: GalleryImageVersionStorageProfile; + readonly provisioningState?: string; /** - * This is the replication status of the gallery image version. + * The Capacity reservation instance view. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationStatus?: ReplicationStatus; + readonly instanceView?: CapacityReservationInstanceView; + /** + * Specifies the time at which the Capacity Reservation resource was created.

    Minimum api-version: 2022-03-01. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly timeCreated?: Date; }; -/** Specifies information about the gallery Application Definition that you want to create or update. */ -export type GalleryApplication = Resource & { - /** The description of this gallery Application Definition resource. This property is updatable. */ - description?: string; - /** The Eula agreement for the gallery Application Definition. */ - eula?: string; - /** The privacy statement uri. */ - privacyStatementUri?: string; - /** The release note uri. */ - releaseNoteUri?: string; - /** The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. */ - endOfLifeDate?: Date; - /** This property allows you to specify the supported type of the OS that application is built for.

    Possible values are:

    **Windows**

    **Linux** */ - supportedOSType?: OperatingSystemTypes; -}; - -/** Specifies information about the gallery Application Version that you want to create or update. */ -export type GalleryApplicationVersion = Resource & { - /** The publishing profile of a gallery image version. */ - publishingProfile?: GalleryApplicationVersionPublishingProfile; +/** Describes a Virtual Machine run command. */ +export type VirtualMachineRunCommand = Resource & { + /** The source of the run command script. */ + source?: VirtualMachineRunCommandScriptSource; + /** The parameters used by the script. */ + parameters?: RunCommandInputParameter[]; + /** The parameters used by the script. */ + protectedParameters?: RunCommandInputParameter[]; + /** Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete. */ + asyncExecution?: boolean; + /** Specifies the user account on the VM when executing the run command. */ + runAsUser?: string; + /** Specifies the user account password on the VM when executing the run command. */ + runAsPassword?: string; + /** The timeout in seconds to execute the run command. */ + timeoutInSeconds?: number; + /** Specifies the Azure storage blob where script output stream will be uploaded. */ + outputBlobUri?: string; + /** Specifies the Azure storage blob where script error stream will be uploaded. */ + errorBlobUri?: string; /** * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: GalleryApplicationVersionPropertiesProvisioningState; - /** - * This is the replication status of the gallery image version. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly replicationStatus?: ReplicationStatus; -}; - -/** Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. */ -export type AvailabilitySetUpdate = UpdateResource & { - /** Sku of the availability set */ - sku?: Sku; - /** Update Domain count. */ - platformUpdateDomainCount?: number; - /** Fault Domain count. */ - platformFaultDomainCount?: number; - /** A list of references to all virtual machines in the availability set. */ - virtualMachines?: SubResource[]; - /** Specifies information about the proximity placement group that the availability set should be assigned to.

    Minimum api-version: 2018-04-01. */ - proximityPlacementGroup?: SubResource; + readonly provisioningState?: string; /** - * The resource status information. + * The virtual machine run command instance view. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly statuses?: InstanceViewStatus[]; + readonly instanceView?: VirtualMachineRunCommandInstanceView; }; -/** Specifies information about the proximity placement group. */ -export type ProximityPlacementGroupUpdate = UpdateResource & {}; - -/** Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. */ -export type DedicatedHostGroupUpdate = UpdateResource & { - /** Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone. */ - zones?: string[]; - /** Number of fault domains that the host group can span. */ - platformFaultDomainCount?: number; +/** Disk resource. */ +export type Disk = Resource & { /** - * A list of references to all dedicated hosts in the dedicated host group. + * A relative URI containing the ID of the VM that has the disk attached. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly hosts?: SubResourceReadOnly[]; + readonly managedBy?: string; /** - * The dedicated host group instance view, which has the list of instance view of the dedicated hosts under the dedicated host group. + * List of relative URIs containing the IDs of the VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly instanceView?: DedicatedHostGroupInstanceView; - /** Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided.

    Minimum api-version: 2020-06-01. */ - supportAutomaticPlacement?: boolean; -}; - -/** Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated. */ -export type DedicatedHostUpdate = UpdateResource & { - /** Fault domain of the dedicated host within a dedicated host group. */ - platformFaultDomain?: number; - /** Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided. */ - autoReplaceOnFailure?: boolean; + readonly managedByExtended?: string[]; + /** The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, or StandardSSD_ZRS. */ + sku?: DiskSku; + /** The Logical zone list for Disk. */ + zones?: string[]; + /** The extended location where the disk will be created. Extended location cannot be changed. */ + extendedLocation?: ExtendedLocation; /** - * A unique id generated and assigned to the dedicated host by the platform.

    Does not change throughout the lifetime of the host. + * The time when the disk was created. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly hostId?: string; + readonly timeCreated?: Date; + /** The Operating System type. */ + osType?: OperatingSystemTypes; + /** The hypervisor generation of the Virtual Machine. Applicable to OS disks only. */ + hyperVGeneration?: HyperVGeneration; + /** Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer} */ + purchasePlan?: PurchasePlanAutoGenerated; + /** List of supported capabilities for the image from which the OS disk was created. */ + supportedCapabilities?: SupportedCapabilities; + /** Disk source information. CreationData information cannot be changed after the disk has been created. */ + creationData?: CreationData; + /** If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. */ + diskSizeGB?: number; /** - * A list of references to all virtual machines in the Dedicated Host. + * The size of the disk in bytes. This field is read only. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly virtualMachines?: SubResourceReadOnly[]; - /** Specifies the software license type that will be applied to the VMs deployed on the dedicated host.

    Possible values are:

    **None**

    **Windows_Server_Hybrid**

    **Windows_Server_Perpetual**

    Default: **None** */ - licenseType?: DedicatedHostLicenseTypes; + readonly diskSizeBytes?: number; /** - * The date when the host was first provisioned. + * Unique Guid identifying the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningTime?: Date; + readonly uniqueId?: string; + /** Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. */ + encryptionSettingsCollection?: EncryptionSettingsCollection; /** - * The provisioning state, which only appears in the response. + * The disk provisioning state. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: string; + /** The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes. */ + diskIopsReadWrite?: number; + /** The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10. */ + diskMBpsReadWrite?: number; + /** The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes. */ + diskIopsReadOnly?: number; + /** The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10. */ + diskMBpsReadOnly?: number; /** - * The dedicated host instance view. + * The state of the disk. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly instanceView?: DedicatedHostInstanceView; + readonly diskState?: DiskState; + /** Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. */ + encryption?: Encryption; + /** The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time. */ + maxShares?: number; /** - * Specifies the time at which the Dedicated Host resource was created.

    Minimum api-version: 2021-11-01. + * Details of the list of all VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timeCreated?: Date; -}; - -/** Specifies information about the SSH public key. */ -export type SshPublicKeyUpdateResource = UpdateResource & { - /** SSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format. */ - publicKey?: string; -}; - -/** Describes a Virtual Machine Extension. */ -export type VirtualMachineExtensionUpdate = UpdateResource & { - /** How the extension handler should be forced to update even if the extension configuration has not changed. */ - forceUpdateTag?: string; - /** The name of the extension handler publisher. */ - publisher?: string; - /** Specifies the type of the extension; an example is "CustomScriptExtension". */ - type?: string; - /** Specifies the version of the script handler. */ - typeHandlerVersion?: string; - /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ - autoUpgradeMinorVersion?: boolean; - /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. */ - enableAutomaticUpgrade?: boolean; - /** Json formatted public settings for the extension. */ - settings?: Record; - /** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */ - protectedSettings?: Record; - /** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */ - suppressFailures?: boolean; - /** The extensions protected settings that are passed by reference, and consumed from key vault */ - protectedSettingsFromKeyVault?: Record; -}; - -/** The source user image virtual hard disk. Only tags may be updated. */ -export type ImageUpdate = UpdateResource & { - /** The source virtual machine from which Image is created. */ - sourceVirtualMachine?: SubResource; - /** Specifies the storage settings for the virtual machine disks. */ - storageProfile?: ImageStorageProfile; + readonly shareInfo?: ShareInfoElement[]; + /** Policy for accessing the disk via network. */ + networkAccessPolicy?: NetworkAccessPolicy; + /** ARM id of the DiskAccess resource for using private endpoints on disks. */ + diskAccessId?: string; + /** Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks. */ + tier?: string; + /** Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks. */ + burstingEnabled?: boolean; /** - * The provisioning state. + * Properties of the disk for which update is pending. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; - /** Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource. */ - hyperVGeneration?: HyperVGenerationTypes; + readonly propertyUpdatesInProgress?: PropertyUpdatesInProgress; + /** Indicates the OS on a disk supports hibernation. */ + supportsHibernation?: boolean; + /** Contains the security related information for the resource. */ + securityProfile?: DiskSecurityProfile; + /** Percentage complete for the background copy when a resource is created via the CopyStart operation. */ + completionPercent?: number; + /** Policy for controlling export on the disk. */ + publicNetworkAccess?: PublicNetworkAccess; }; -/** Describes a Virtual Machine Update. */ -export type VirtualMachineUpdate = UpdateResource & { - /** Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. */ - plan?: Plan; - /** The identity of the virtual machine, if configured. */ - identity?: VirtualMachineIdentity; - /** The virtual machine zones. */ - zones?: string[]; - /** Specifies the hardware settings for the virtual machine. */ - hardwareProfile?: HardwareProfile; - /** Specifies the storage settings for the virtual machine disks. */ - storageProfile?: StorageProfile; - /** Specifies additional capabilities enabled or disabled on the virtual machine. */ - additionalCapabilities?: AdditionalCapabilities; - /** Specifies the operating system settings used while creating the virtual machine. Some of the settings cannot be changed once VM is provisioned. */ - osProfile?: OSProfile; - /** Specifies the network interfaces of the virtual machine. */ - networkProfile?: NetworkProfile; - /** Specifies the Security related profile settings for the virtual machine. */ - securityProfile?: SecurityProfile; - /** Specifies the boot diagnostic settings state.

    Minimum api-version: 2015-06-15. */ - diagnosticsProfile?: DiagnosticsProfile; - /** Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).

    For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)

    Currently, a VM can only be added to availability set at creation time. The availability set to which the VM is being added should be under the same resource group as the availability set resource. An existing VM cannot be added to an availability set.

    This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. */ - availabilitySet?: SubResource; - /** Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines specified in the same virtual machine scale set are allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing VM cannot be added to a virtual machine scale set.

    This property cannot exist along with a non-null properties.availabilitySet reference.

    Minimum api‐version: 2019‐03‐01 */ - virtualMachineScaleSet?: SubResource; - /** Specifies information about the proximity placement group that the virtual machine should be assigned to.

    Minimum api-version: 2018-04-01. */ - proximityPlacementGroup?: SubResource; - /** Specifies the priority for the virtual machine.

    Minimum api-version: 2019-03-01 */ - priority?: VirtualMachinePriorityTypes; - /** Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set.

    For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01.

    For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. */ - evictionPolicy?: VirtualMachineEvictionPolicyTypes; - /** Specifies the billing related details of a Azure Spot virtual machine.

    Minimum api-version: 2019-03-01. */ - billingProfile?: BillingProfile; - /** Specifies information about the dedicated host that the virtual machine resides in.

    Minimum api-version: 2018-10-01. */ - host?: SubResource; - /** Specifies information about the dedicated host group that the virtual machine resides in.

    Minimum api-version: 2020-06-01.

    NOTE: User cannot specify both host and hostGroup properties. */ - hostGroup?: SubResource; +/** Snapshot resource. */ +export type Snapshot = Resource & { /** - * The provisioning state, which only appears in the response. + * Unused. Always Null. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly managedBy?: string; + /** The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot */ + sku?: SnapshotSku; + /** The extended location where the snapshot will be created. Extended location cannot be changed. */ + extendedLocation?: ExtendedLocation; /** - * The virtual machine instance view. + * The time when the snapshot was created. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly instanceView?: VirtualMachineInstanceView; - /** Specifies that the image or disk that is being used was licensed on-premises.

    Possible values for Windows Server operating system are:

    Windows_Client

    Windows_Server

    Possible values for Linux 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)

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

    Minimum api-version: 2015-06-15 */ - licenseType?: string; - /** - * Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. - * NOTE: This property will not be serialized. It can only be populated by the server. + readonly timeCreated?: Date; + /** The Operating System type. */ + osType?: OperatingSystemTypes; + /** The hypervisor generation of the Virtual Machine. Applicable to OS disks only. */ + hyperVGeneration?: HyperVGeneration; + /** Purchase plan information for the image from which the source disk for the snapshot was originally created. */ + purchasePlan?: PurchasePlanAutoGenerated; + /** List of supported capabilities (like Accelerated Networking) for the image from which the source disk from the snapshot was originally created. */ + supportedCapabilities?: SupportedCapabilities; + /** Disk source information. CreationData information cannot be changed after the disk has been created. */ + creationData?: CreationData; + /** If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. */ + diskSizeGB?: number; + /** + * The size of the disk in bytes. This field is read only. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly vmId?: string; - /** Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M).

    Minimum api-version: 2020-06-01 */ - extensionsTimeBudget?: string; - /** Specifies the scale set logical fault domain into which the Virtual Machine will be created. By default, the Virtual Machine will by automatically assigned to a fault domain that best maintains balance across available fault domains.
  • This is applicable only if the 'virtualMachineScaleSet' property of this Virtual Machine is set.
  • The Virtual Machine Scale Set that is referenced, must have 'platformFaultDomainCount' > 1.
  • This property cannot be updated once the Virtual Machine is created.
  • Fault domain assignment can be viewed in the Virtual Machine Instance View.

    Minimum api‐version: 2020‐12‐01 */ - platformFaultDomain?: number; - /** Specifies Scheduled Event related configurations. */ - scheduledEventsProfile?: ScheduledEventsProfile; - /** UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here.

    Minimum api-version: 2021-03-01 */ - userData?: string; - /** Specifies information about the capacity reservation that is used to allocate virtual machine.

    Minimum api-version: 2021-04-01. */ - capacityReservation?: CapacityReservationProfile; - /** Specifies the gallery applications that should be made available to the VM/VMSS */ - applicationProfile?: ApplicationProfile; + readonly diskSizeBytes?: number; /** - * Specifies the time at which the Virtual Machine resource was created.

    Minimum api-version: 2021-11-01. + * The state of the snapshot. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timeCreated?: Date; + readonly diskState?: DiskState; + /** + * Unique Guid identifying the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly uniqueId?: string; + /** Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. */ + encryptionSettingsCollection?: EncryptionSettingsCollection; + /** + * The disk provisioning state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed. */ + incremental?: boolean; + /** Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. */ + encryption?: Encryption; + /** Policy for accessing the disk via network. */ + networkAccessPolicy?: NetworkAccessPolicy; + /** ARM id of the DiskAccess resource for using private endpoints on disks. */ + diskAccessId?: string; + /** Contains the security related information for the resource. */ + securityProfile?: DiskSecurityProfile; + /** Indicates the OS on a snapshot supports hibernation. */ + supportsHibernation?: boolean; + /** Policy for controlling export on the disk. */ + publicNetworkAccess?: PublicNetworkAccess; + /** Percentage complete for the background copy when a resource is created via the CopyStart operation. */ + completionPercent?: number; }; -/** Update Restore Point collection parameters. */ -export type RestorePointCollectionUpdate = UpdateResource & { - /** The properties of the source resource that this restore point collection is created from. */ - source?: RestorePointCollectionSourceProperties; +/** disk encryption set resource. */ +export type DiskEncryptionSet = Resource & { + /** The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. */ + identity?: EncryptionSetIdentity; + /** The type of key used to encrypt the data of the disk. */ + encryptionType?: DiskEncryptionSetType; + /** The key vault key which is currently used by this disk encryption set. */ + activeKey?: KeyForDiskEncryptionSet; /** - * The provisioning state of the restore point collection. + * A readonly collection of key vault keys previously used by this disk encryption set while a key rotation is in progress. It will be empty if there is no ongoing key rotation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly previousKeys?: KeyForDiskEncryptionSet[]; + /** + * The disk encryption set provisioning state. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: string; + /** Set this flag to true to enable auto-updating of this disk encryption set to the latest key version. */ + rotationToLatestKeyVersionEnabled?: boolean; /** - * The unique id of the restore point collection. + * The time when the active key of this disk encryption set was updated. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restorePointCollectionId?: string; + readonly lastKeyRotationTimestamp?: Date; /** - * A list containing all restore points created under this restore point collection. + * The error that was encountered during auto-key rotation. If an error is present, then auto-key rotation will not be attempted until the error on this disk encryption set is fixed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restorePoints?: RestorePoint[]; + readonly autoKeyRotationError?: ApiError; }; -/** Specifies information about the capacity reservation group. Only tags can be updated. */ -export type CapacityReservationGroupUpdate = UpdateResource & { +/** disk access resource. */ +export type DiskAccess = Resource & { + /** The extended location where the disk access will be created. Extended location cannot be changed. */ + extendedLocation?: ExtendedLocation; /** - * A list of all capacity reservation resource ids that belong to capacity reservation group. + * A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly capacityReservations?: SubResourceReadOnly[]; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; /** - * A list of references to all virtual machines associated to the capacity reservation group. + * The disk access resource provisioning state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly virtualMachinesAssociated?: SubResourceReadOnly[]; + readonly provisioningState?: string; /** - * The capacity reservation group instance view which has the list of instance views for all the capacity reservations that belong to the capacity reservation group. + * The time when the disk access was created. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly instanceView?: CapacityReservationGroupInstanceView; + readonly timeCreated?: Date; }; -/** Specifies information about the capacity reservation. Only tags and sku.capacity can be updated. */ -export type CapacityReservationUpdate = UpdateResource & { - /** SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. Currently VM Skus with the capability called 'CapacityReservationSupported' set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values. */ - sku?: Sku; +/** Specifies information about the Shared Image Gallery that you want to create or update. */ +export type Gallery = Resource & { + /** The description of this Shared Image Gallery resource. This property is updatable. */ + description?: string; + /** Describes the gallery unique name. */ + identifier?: GalleryIdentifier; /** - * A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource. + * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reservationId?: string; + readonly provisioningState?: GalleryPropertiesProvisioningState; + /** Profile for gallery sharing to subscription or tenant */ + sharingProfile?: SharingProfile; + /** Contains information about the soft deletion policy of the gallery. */ + softDeletePolicy?: SoftDeletePolicy; /** - * A list of all virtual machine resource ids that are associated with the capacity reservation. + * Sharing status of current gallery. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly virtualMachinesAssociated?: SubResourceReadOnly[]; + readonly sharingStatus?: SharingStatus; +}; + +/** Specifies information about the gallery image definition that you want to create or update. */ +export type GalleryImage = Resource & { + /** The description of this gallery image definition resource. This property is updatable. */ + description?: string; + /** The Eula agreement for the gallery image definition. */ + eula?: string; + /** The privacy statement uri. */ + privacyStatementUri?: string; + /** The release note uri. */ + releaseNoteUri?: string; + /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

    Possible values are:

    **Windows**

    **Linux** */ + osType?: OperatingSystemTypes; + /** This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. */ + osState?: OperatingSystemStateTypes; + /** The hypervisor generation of the Virtual Machine. Applicable to OS disks only. */ + hyperVGeneration?: HyperVGeneration; + /** The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. */ + endOfLifeDate?: Date; + /** This is the gallery image definition identifier. */ + identifier?: GalleryImageIdentifier; + /** The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. */ + recommended?: RecommendedMachineConfiguration; + /** Describes the disallowed disk types. */ + disallowed?: Disallowed; + /** Describes the gallery image definition purchase plan. This is used by marketplace images. */ + purchasePlan?: ImagePurchasePlan; /** - * The date time when the capacity reservation was last updated. + * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningTime?: Date; + readonly provisioningState?: GalleryImagePropertiesProvisioningState; + /** A list of gallery image features. */ + features?: GalleryImageFeature[]; +}; + +/** Specifies information about the gallery image version that you want to create or update. */ +export type GalleryImageVersion = Resource & { + /** The publishing profile of a gallery image Version. */ + publishingProfile?: GalleryImageVersionPublishingProfile; /** * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly provisioningState?: GalleryImageVersionPropertiesProvisioningState; + /** This is the storage profile of a Gallery Image Version. */ + storageProfile?: GalleryImageVersionStorageProfile; /** - * The Capacity reservation instance view. + * This is the replication status of the gallery image version. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly instanceView?: CapacityReservationInstanceView; + readonly replicationStatus?: ReplicationStatus; +}; + +/** Specifies information about the gallery Application Definition that you want to create or update. */ +export type GalleryApplication = Resource & { + /** The description of this gallery Application Definition resource. This property is updatable. */ + description?: string; + /** The Eula agreement for the gallery Application Definition. */ + eula?: string; + /** The privacy statement uri. */ + privacyStatementUri?: string; + /** The release note uri. */ + releaseNoteUri?: string; + /** The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. */ + endOfLifeDate?: Date; + /** This property allows you to specify the supported type of the OS that application is built for.

    Possible values are:

    **Windows**

    **Linux** */ + supportedOSType?: OperatingSystemTypes; +}; + +/** Specifies information about the gallery Application Version that you want to create or update. */ +export type GalleryApplicationVersion = Resource & { + /** The publishing profile of a gallery image version. */ + publishingProfile?: GalleryApplicationVersionPublishingProfile; + /** + * The provisioning state, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: GalleryApplicationVersionPropertiesProvisioningState; /** - * Specifies the time at which the Capacity Reservation resource was created.

    Minimum api-version: 2021-11-01. + * This is the replication status of the gallery image version. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timeCreated?: Date; + readonly replicationStatus?: ReplicationStatus; }; /** Describes a Virtual Machine Scale Set. */ @@ -5459,53 +5324,14 @@ export type VirtualMachineScaleSetUpdate = UpdateResource & { proximityPlacementGroup?: SubResource; }; -/** Describes a Virtual Machine run command. */ -export type VirtualMachineRunCommandUpdate = UpdateResource & { - /** The source of the run command script. */ - source?: VirtualMachineRunCommandScriptSource; - /** The parameters used by the script. */ - parameters?: RunCommandInputParameter[]; - /** The parameters used by the script. */ - protectedParameters?: RunCommandInputParameter[]; - /** Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete. */ - asyncExecution?: boolean; - /** Specifies the user account on the VM when executing the run command. */ - runAsUser?: string; - /** Specifies the user account password on the VM when executing the run command. */ - runAsPassword?: string; - /** The timeout in seconds to execute the run command. */ - timeoutInSeconds?: number; - /** Specifies the Azure storage blob where script output stream will be uploaded. */ - outputBlobUri?: string; - /** Specifies the Azure storage blob where script error stream will be uploaded. */ - errorBlobUri?: string; - /** - * The provisioning state, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** - * The virtual machine run command instance view. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly instanceView?: VirtualMachineRunCommandInstanceView; -}; - -/** Describes a Virtual Machine Scale Set Extension. */ -export type VirtualMachineScaleSetExtension = SubResourceReadOnly & { - /** The name of the extension. */ - name?: string; - /** - * Resource type - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. */ +/** Describes a Virtual Machine Extension. */ +export type VirtualMachineExtensionUpdate = UpdateResource & { + /** How the extension handler should be forced to update even if the extension configuration has not changed. */ forceUpdateTag?: string; /** The name of the extension handler publisher. */ publisher?: string; /** Specifies the type of the extension; an example is "CustomScriptExtension". */ - typePropertiesType?: string; + type?: string; /** Specifies the version of the script handler. */ typeHandlerVersion?: string; /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ @@ -5516,202 +5342,397 @@ export type VirtualMachineScaleSetExtension = SubResourceReadOnly & { settings?: Record; /** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */ protectedSettings?: Record; - /** - * The provisioning state, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** Collection of extension names after which this extension needs to be provisioned. */ - provisionAfterExtensions?: string[]; /** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */ suppressFailures?: boolean; /** The extensions protected settings that are passed by reference, and consumed from key vault */ protectedSettingsFromKeyVault?: Record; }; -/** Describes a Virtual Machine Scale Set Extension. */ -export type VirtualMachineScaleSetExtensionUpdate = SubResourceReadOnly & { - /** - * The name of the extension. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; +/** Describes a Virtual Machine Update. */ +export type VirtualMachineUpdate = UpdateResource & { + /** Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. */ + plan?: Plan; + /** The identity of the virtual machine, if configured. */ + identity?: VirtualMachineIdentity; + /** The virtual machine zones. */ + zones?: string[]; + /** Specifies the hardware settings for the virtual machine. */ + hardwareProfile?: HardwareProfile; + /** Specifies the storage settings for the virtual machine disks. */ + storageProfile?: StorageProfile; + /** Specifies additional capabilities enabled or disabled on the virtual machine. */ + additionalCapabilities?: AdditionalCapabilities; + /** Specifies the operating system settings used while creating the virtual machine. Some of the settings cannot be changed once VM is provisioned. */ + osProfile?: OSProfile; + /** Specifies the network interfaces of the virtual machine. */ + networkProfile?: NetworkProfile; + /** Specifies the Security related profile settings for the virtual machine. */ + securityProfile?: SecurityProfile; + /** Specifies the boot diagnostic settings state.

    Minimum api-version: 2015-06-15. */ + diagnosticsProfile?: DiagnosticsProfile; + /** Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).

    For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)

    Currently, a VM can only be added to availability set at creation time. The availability set to which the VM is being added should be under the same resource group as the availability set resource. An existing VM cannot be added to an availability set.

    This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. */ + availabilitySet?: SubResource; + /** Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines specified in the same virtual machine scale set are allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing VM cannot be added to a virtual machine scale set.

    This property cannot exist along with a non-null properties.availabilitySet reference.

    Minimum api‐version: 2019‐03‐01 */ + virtualMachineScaleSet?: SubResource; + /** Specifies information about the proximity placement group that the virtual machine should be assigned to.

    Minimum api-version: 2018-04-01. */ + proximityPlacementGroup?: SubResource; + /** Specifies the priority for the virtual machine.

    Minimum api-version: 2019-03-01 */ + priority?: VirtualMachinePriorityTypes; + /** Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set.

    For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01.

    For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. */ + evictionPolicy?: VirtualMachineEvictionPolicyTypes; + /** Specifies the billing related details of a Azure Spot virtual machine.

    Minimum api-version: 2019-03-01. */ + billingProfile?: BillingProfile; + /** Specifies information about the dedicated host that the virtual machine resides in.

    Minimum api-version: 2018-10-01. */ + host?: SubResource; + /** Specifies information about the dedicated host group that the virtual machine resides in.

    Minimum api-version: 2020-06-01.

    NOTE: User cannot specify both host and hostGroup properties. */ + hostGroup?: SubResource; /** - * Resource type + * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; - /** If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. */ - forceUpdateTag?: string; - /** The name of the extension handler publisher. */ - publisher?: string; - /** Specifies the type of the extension; an example is "CustomScriptExtension". */ - typePropertiesType?: string; - /** Specifies the version of the script handler. */ - typeHandlerVersion?: string; - /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ - autoUpgradeMinorVersion?: boolean; - /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. */ - enableAutomaticUpgrade?: boolean; - /** Json formatted public settings for the extension. */ - settings?: Record; - /** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */ - protectedSettings?: Record; + readonly provisioningState?: string; /** - * The provisioning state, which only appears in the response. + * The virtual machine instance view. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; - /** Collection of extension names after which this extension needs to be provisioned. */ - provisionAfterExtensions?: string[]; - /** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */ - suppressFailures?: boolean; - /** The extensions protected settings that are passed by reference, and consumed from key vault */ - protectedSettingsFromKeyVault?: Record; -}; - -/** Describes a VMSS VM Extension. */ -export type VirtualMachineScaleSetVMExtension = SubResourceReadOnly & { + readonly instanceView?: VirtualMachineInstanceView; + /** Specifies that the image or disk that is being used was licensed on-premises.

    Possible values for Windows Server operating system are:

    Windows_Client

    Windows_Server

    Possible values for Linux 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)

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

    Minimum api-version: 2015-06-15 */ + licenseType?: string; /** - * The name of the extension. + * Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly vmId?: string; + /** Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M).

    Minimum api-version: 2020-06-01 */ + extensionsTimeBudget?: string; + /** Specifies the scale set logical fault domain into which the Virtual Machine will be created. By default, the Virtual Machine will by automatically assigned to a fault domain that best maintains balance across available fault domains.
  • This is applicable only if the 'virtualMachineScaleSet' property of this Virtual Machine is set.
  • The Virtual Machine Scale Set that is referenced, must have 'platformFaultDomainCount' > 1.
  • This property cannot be updated once the Virtual Machine is created.
  • Fault domain assignment can be viewed in the Virtual Machine Instance View.

    Minimum api‐version: 2020‐12‐01 */ + platformFaultDomain?: number; + /** Specifies Scheduled Event related configurations. */ + scheduledEventsProfile?: ScheduledEventsProfile; + /** UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here.

    Minimum api-version: 2021-03-01 */ + userData?: string; + /** Specifies information about the capacity reservation that is used to allocate virtual machine.

    Minimum api-version: 2021-04-01. */ + capacityReservation?: CapacityReservationProfile; + /** Specifies the gallery applications that should be made available to the VM/VMSS */ + applicationProfile?: ApplicationProfile; /** - * Resource type + * Specifies the time at which the Virtual Machine resource was created.

    Minimum api-version: 2022-03-01. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; - /** How the extension handler should be forced to update even if the extension configuration has not changed. */ - forceUpdateTag?: string; - /** The name of the extension handler publisher. */ - publisher?: string; - /** Specifies the type of the extension; an example is "CustomScriptExtension". */ - typePropertiesType?: string; - /** Specifies the version of the script handler. */ - typeHandlerVersion?: string; - /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ - autoUpgradeMinorVersion?: boolean; - /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. */ - enableAutomaticUpgrade?: boolean; - /** Json formatted public settings for the extension. */ - settings?: Record; - /** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */ - protectedSettings?: Record; + readonly timeCreated?: Date; +}; + +/** Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. */ +export type AvailabilitySetUpdate = UpdateResource & { + /** Sku of the availability set */ + sku?: Sku; + /** Update Domain count. */ + platformUpdateDomainCount?: number; + /** Fault Domain count. */ + platformFaultDomainCount?: number; + /** A list of references to all virtual machines in the availability set. */ + virtualMachines?: SubResource[]; + /** Specifies information about the proximity placement group that the availability set should be assigned to.

    Minimum api-version: 2018-04-01. */ + proximityPlacementGroup?: SubResource; /** - * The provisioning state, which only appears in the response. + * The resource status information. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; - /** The virtual machine extension instance view. */ - instanceView?: VirtualMachineExtensionInstanceView; - /** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */ - suppressFailures?: boolean; - /** The extensions protected settings that are passed by reference, and consumed from key vault */ - protectedSettingsFromKeyVault?: Record; + readonly statuses?: InstanceViewStatus[]; }; -/** Describes a VMSS VM Extension. */ -export type VirtualMachineScaleSetVMExtensionUpdate = SubResourceReadOnly & { +/** Specifies information about the proximity placement group. */ +export type ProximityPlacementGroupUpdate = UpdateResource & {}; + +/** Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. */ +export type DedicatedHostGroupUpdate = UpdateResource & { + /** Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone. */ + zones?: string[]; + /** Number of fault domains that the host group can span. */ + platformFaultDomainCount?: number; /** - * The name of the extension. + * A list of references to all dedicated hosts in the dedicated host group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly hosts?: SubResourceReadOnly[]; /** - * Resource type + * The dedicated host group instance view, which has the list of instance view of the dedicated hosts under the dedicated host group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; - /** How the extension handler should be forced to update even if the extension configuration has not changed. */ - forceUpdateTag?: string; - /** The name of the extension handler publisher. */ - publisher?: string; - /** Specifies the type of the extension; an example is "CustomScriptExtension". */ - typePropertiesType?: string; - /** Specifies the version of the script handler. */ - typeHandlerVersion?: string; - /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ - autoUpgradeMinorVersion?: boolean; - /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. */ - enableAutomaticUpgrade?: boolean; - /** Json formatted public settings for the extension. */ - settings?: Record; - /** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */ - protectedSettings?: Record; - /** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */ - suppressFailures?: boolean; - /** The extensions protected settings that are passed by reference, and consumed from key vault */ - protectedSettingsFromKeyVault?: Record; + readonly instanceView?: DedicatedHostGroupInstanceView; + /** Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided.

    Minimum api-version: 2020-06-01. */ + supportAutomaticPlacement?: boolean; + /** Enables or disables a capability on the dedicated host group.

    Minimum api-version: 2022-03-01. */ + additionalCapabilities?: DedicatedHostGroupPropertiesAdditionalCapabilities; }; -/** The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. */ -export type DedicatedHostInstanceViewWithName = DedicatedHostInstanceView & { +/** Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated. */ +export type DedicatedHostUpdate = UpdateResource & { + /** Fault domain of the dedicated host within a dedicated host group. */ + platformFaultDomain?: number; + /** Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided. */ + autoReplaceOnFailure?: boolean; /** - * The name of the dedicated host. + * A unique id generated and assigned to the dedicated host by the platform.

    Does not change throughout the lifetime of the host. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; -}; - -/** Describes an Operating System disk. */ -export type ImageOSDisk = ImageDisk & { - /** This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image.

    Possible values are:

    **Windows**

    **Linux** */ - osType: OperatingSystemTypes; - /** The OS State. */ - osState: OperatingSystemStateTypes; -}; - -/** Describes a data disk. */ -export type ImageDataDisk = ImageDisk & { - /** Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. */ - lun: number; -}; - -/** Restore Point details. */ -export type RestorePoint = ProxyResource & { - /** List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included. */ - excludeDisks?: ApiEntityReference[]; + readonly hostId?: string; /** - * Gets the details of the VM captured at the time of the restore point creation. + * A list of references to all virtual machines in the Dedicated Host. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sourceMetadata?: RestorePointSourceMetadata; + readonly virtualMachines?: SubResourceReadOnly[]; + /** Specifies the software license type that will be applied to the VMs deployed on the dedicated host.

    Possible values are:

    **None**

    **Windows_Server_Hybrid**

    **Windows_Server_Perpetual**

    Default: **None** */ + licenseType?: DedicatedHostLicenseTypes; /** - * Gets the provisioning state of the restore point. + * The date when the host was first provisioned. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly provisioningTime?: Date; /** - * Gets the consistency mode for the restore point. Please refer to https://aka.ms/RestorePoints for more details. + * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly consistencyMode?: ConsistencyModeTypes; - /** Gets the creation time of the restore point. */ - timeCreated?: Date; - /** Resource Id of the source restore point from which a copy needs to be created. */ - sourceRestorePoint?: ApiEntityReference; + readonly provisioningState?: string; /** - * The restore point instance view. + * The dedicated host instance view. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly instanceView?: RestorePointInstanceView; -}; - -/** The instance view of a capacity reservation that includes the name of the capacity reservation. It is used for the response to the instance view of a capacity reservation group. */ -export type CapacityReservationInstanceViewWithName = CapacityReservationInstanceView & { + readonly instanceView?: DedicatedHostInstanceView; /** - * The name of the capacity reservation. + * Specifies the time at which the Dedicated Host resource was created.

    Minimum api-version: 2022-03-01. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly timeCreated?: Date; }; -/** Describes a Virtual Machine Scale Set VM Reimage Parameters. */ -export type VirtualMachineScaleSetVMReimageParameters = VirtualMachineReimageParameters & {}; +/** Specifies information about the SSH public key. */ +export type SshPublicKeyUpdateResource = UpdateResource & { + /** SSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format. */ + publicKey?: string; +}; -/** Api request input for LogAnalytics getRequestRateByInterval Api. */ -export type RequestRateByIntervalInput = LogAnalyticsInputBase & { +/** The source user image virtual hard disk. Only tags may be updated. */ +export type ImageUpdate = UpdateResource & { + /** The source virtual machine from which Image is created. */ + sourceVirtualMachine?: SubResource; + /** Specifies the storage settings for the virtual machine disks. */ + storageProfile?: ImageStorageProfile; + /** + * The provisioning state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource. */ + hyperVGeneration?: HyperVGenerationTypes; +}; + +/** Update Restore Point collection parameters. */ +export type RestorePointCollectionUpdate = UpdateResource & { + /** The properties of the source resource that this restore point collection is created from. */ + source?: RestorePointCollectionSourceProperties; + /** + * The provisioning state of the restore point collection. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * The unique id of the restore point collection. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly restorePointCollectionId?: string; + /** + * A list containing all restore points created under this restore point collection. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly restorePoints?: RestorePoint[]; +}; + +/** Specifies information about the capacity reservation group. Only tags can be updated. */ +export type CapacityReservationGroupUpdate = UpdateResource & { + /** + * A list of all capacity reservation resource ids that belong to capacity reservation group. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly capacityReservations?: SubResourceReadOnly[]; + /** + * A list of references to all virtual machines associated to the capacity reservation group. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly virtualMachinesAssociated?: SubResourceReadOnly[]; + /** + * The capacity reservation group instance view which has the list of instance views for all the capacity reservations that belong to the capacity reservation group. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly instanceView?: CapacityReservationGroupInstanceView; +}; + +/** Specifies information about the capacity reservation. Only tags and sku.capacity can be updated. */ +export type CapacityReservationUpdate = UpdateResource & { + /** SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. Currently VM Skus with the capability called 'CapacityReservationSupported' set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values. */ + sku?: Sku; + /** + * A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly reservationId?: string; + /** + * A list of all virtual machine resource ids that are associated with the capacity reservation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly virtualMachinesAssociated?: SubResourceReadOnly[]; + /** + * The date time when the capacity reservation was last updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningTime?: Date; + /** + * The provisioning state, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * The Capacity reservation instance view. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly instanceView?: CapacityReservationInstanceView; + /** + * Specifies the time at which the Capacity Reservation resource was created.

    Minimum api-version: 2022-03-01. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly timeCreated?: Date; +}; + +/** Describes a Virtual Machine run command. */ +export type VirtualMachineRunCommandUpdate = UpdateResource & { + /** The source of the run command script. */ + source?: VirtualMachineRunCommandScriptSource; + /** The parameters used by the script. */ + parameters?: RunCommandInputParameter[]; + /** The parameters used by the script. */ + protectedParameters?: RunCommandInputParameter[]; + /** Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete. */ + asyncExecution?: boolean; + /** Specifies the user account on the VM when executing the run command. */ + runAsUser?: string; + /** Specifies the user account password on the VM when executing the run command. */ + runAsPassword?: string; + /** The timeout in seconds to execute the run command. */ + timeoutInSeconds?: number; + /** Specifies the Azure storage blob where script output stream will be uploaded. */ + outputBlobUri?: string; + /** Specifies the Azure storage blob where script error stream will be uploaded. */ + errorBlobUri?: string; + /** + * The provisioning state, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * The virtual machine run command instance view. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly instanceView?: VirtualMachineRunCommandInstanceView; +}; + +/** Describes a Virtual Machine Scale Set VM Reimage Parameters. */ +export type VirtualMachineScaleSetVMReimageParameters = VirtualMachineReimageParameters & {}; + +/** Describes a Virtual Machine Extension. */ +export type VirtualMachineExtension = ResourceWithOptionalLocation & { + /** How the extension handler should be forced to update even if the extension configuration has not changed. */ + forceUpdateTag?: string; + /** The name of the extension handler publisher. */ + publisher?: string; + /** Specifies the type of the extension; an example is "CustomScriptExtension". */ + typePropertiesType?: string; + /** Specifies the version of the script handler. */ + typeHandlerVersion?: string; + /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ + autoUpgradeMinorVersion?: boolean; + /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. */ + enableAutomaticUpgrade?: boolean; + /** Json formatted public settings for the extension. */ + settings?: Record; + /** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */ + protectedSettings?: Record; + /** + * The provisioning state, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** The virtual machine extension instance view. */ + instanceView?: VirtualMachineExtensionInstanceView; + /** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */ + suppressFailures?: boolean; + /** The extensions protected settings that are passed by reference, and consumed from key vault */ + protectedSettingsFromKeyVault?: Record; +}; + +/** The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. */ +export type DedicatedHostInstanceViewWithName = DedicatedHostInstanceView & { + /** + * The name of the dedicated host. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; +}; + +/** Describes an Operating System disk. */ +export type ImageOSDisk = ImageDisk & { + /** This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image.

    Possible values are:

    **Windows**

    **Linux** */ + osType: OperatingSystemTypes; + /** The OS State. */ + osState: OperatingSystemStateTypes; +}; + +/** Describes a data disk. */ +export type ImageDataDisk = ImageDisk & { + /** Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. */ + lun: number; +}; + +/** Restore Point details. */ +export type RestorePoint = ProxyResource & { + /** List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included. */ + excludeDisks?: ApiEntityReference[]; + /** + * Gets the details of the VM captured at the time of the restore point creation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sourceMetadata?: RestorePointSourceMetadata; + /** + * Gets the provisioning state of the restore point. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * Gets the consistency mode for the restore point. Please refer to https://aka.ms/RestorePoints for more details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly consistencyMode?: ConsistencyModeTypes; + /** Gets the creation time of the restore point. */ + timeCreated?: Date; + /** Resource Id of the source restore point from which a copy needs to be created. */ + sourceRestorePoint?: ApiEntityReference; + /** + * The restore point instance view. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly instanceView?: RestorePointInstanceView; +}; + +/** The instance view of a capacity reservation that includes the name of the capacity reservation. It is used for the response to the instance view of a capacity reservation group. */ +export type CapacityReservationInstanceViewWithName = CapacityReservationInstanceView & { + /** + * The name of the capacity reservation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; +}; + +/** Api request input for LogAnalytics getRequestRateByInterval Api. */ +export type RequestRateByIntervalInput = LogAnalyticsInputBase & { /** Interval value in minutes used to create LogAnalytics call rate logs. */ intervalLength: IntervalInMins; }; @@ -5748,7 +5769,7 @@ export type DiskRestorePoint = ProxyOnlyResource & { hyperVGeneration?: HyperVGeneration; /** Purchase plan information for the the image from which the OS disk was created. */ purchasePlan?: PurchasePlanAutoGenerated; - /** List of supported capabilities for the image from which the OS disk was created. */ + /** List of supported capabilities (like accelerated networking) for the image from which the OS disk was created. */ supportedCapabilities?: SupportedCapabilities; /** * id of the backing snapshot's MIS family @@ -5842,8 +5863,6 @@ export type GalleryImageUpdate = UpdateResourceDefinition & { readonly provisioningState?: GalleryImagePropertiesProvisioningState; /** A list of gallery image features. */ features?: GalleryImageFeature[]; - /** The architecture of the image. Applicable to OS disks only. */ - architecture?: Architecture; }; /** Specifies information about the gallery image version that you want to update. */ @@ -5982,8 +6001,6 @@ export type VirtualMachineImage = VirtualMachineImageResource & { /** Specifies disallowed configuration for the VirtualMachine created from the image */ disallowed?: DisallowedConfiguration; features?: VirtualMachineImageFeature[]; - /** Specifies the Architecture Type */ - architecture?: ArchitectureTypes; }; /** Describes a Virtual Machine Scale Set VM Reimage Parameters. */ @@ -6025,427 +6042,107 @@ export type SharedGalleryImageVersion = PirSharedGalleryResource & { endOfLifeDate?: Date; }; -/** Known values of {@link ProximityPlacementGroupType} that the service accepts. */ -export enum KnownProximityPlacementGroupType { - Standard = "Standard", - Ultra = "Ultra" +/** Known values of {@link RepairAction} that the service accepts. */ +export enum KnownRepairAction { + Replace = "Replace", + Restart = "Restart", + Reimage = "Reimage" } /** - * Defines values for ProximityPlacementGroupType. \ - * {@link KnownProximityPlacementGroupType} can be used interchangeably with ProximityPlacementGroupType, + * Defines values for RepairAction. \ + * {@link KnownRepairAction} can be used interchangeably with RepairAction, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Standard** \ - * **Ultra** + * **Replace** \ + * **Restart** \ + * **Reimage** */ -export type ProximityPlacementGroupType = string; +export type RepairAction = string; -/** Known values of {@link HyperVGenerationTypes} that the service accepts. */ -export enum KnownHyperVGenerationTypes { - V1 = "V1", - V2 = "V2" +/** Known values of {@link WindowsVMGuestPatchMode} that the service accepts. */ +export enum KnownWindowsVMGuestPatchMode { + Manual = "Manual", + AutomaticByOS = "AutomaticByOS", + AutomaticByPlatform = "AutomaticByPlatform" } /** - * Defines values for HyperVGenerationTypes. \ - * {@link KnownHyperVGenerationTypes} can be used interchangeably with HyperVGenerationTypes, + * Defines values for WindowsVMGuestPatchMode. \ + * {@link KnownWindowsVMGuestPatchMode} can be used interchangeably with WindowsVMGuestPatchMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **V1** \ - * **V2** - */ -export type HyperVGenerationTypes = string; + * **Manual** \ + * **AutomaticByOS** \ + * **AutomaticByPlatform** + */ +export type WindowsVMGuestPatchMode = string; -/** Known values of {@link VmDiskTypes} that the service accepts. */ -export enum KnownVmDiskTypes { - None = "None", - Unmanaged = "Unmanaged" +/** Known values of {@link WindowsPatchAssessmentMode} that the service accepts. */ +export enum KnownWindowsPatchAssessmentMode { + ImageDefault = "ImageDefault", + AutomaticByPlatform = "AutomaticByPlatform" } /** - * Defines values for VmDiskTypes. \ - * {@link KnownVmDiskTypes} can be used interchangeably with VmDiskTypes, + * Defines values for WindowsPatchAssessmentMode. \ + * {@link KnownWindowsPatchAssessmentMode} can be used interchangeably with WindowsPatchAssessmentMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** \ - * **Unmanaged** + * **ImageDefault** \ + * **AutomaticByPlatform** */ -export type VmDiskTypes = string; +export type WindowsPatchAssessmentMode = string; -/** Known values of {@link ArchitectureTypes} that the service accepts. */ -export enum KnownArchitectureTypes { - X64 = "x64", - Arm64 = "Arm64" +/** Known values of {@link LinuxVMGuestPatchMode} that the service accepts. */ +export enum KnownLinuxVMGuestPatchMode { + ImageDefault = "ImageDefault", + AutomaticByPlatform = "AutomaticByPlatform" } /** - * Defines values for ArchitectureTypes. \ - * {@link KnownArchitectureTypes} can be used interchangeably with ArchitectureTypes, + * Defines values for LinuxVMGuestPatchMode. \ + * {@link KnownLinuxVMGuestPatchMode} can be used interchangeably with LinuxVMGuestPatchMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **x64** \ - * **Arm64** + * **ImageDefault** \ + * **AutomaticByPlatform** */ -export type ArchitectureTypes = string; +export type LinuxVMGuestPatchMode = string; -/** Known values of {@link ExtendedLocationTypes} that the service accepts. */ -export enum KnownExtendedLocationTypes { - EdgeZone = "EdgeZone" +/** Known values of {@link LinuxPatchAssessmentMode} that the service accepts. */ +export enum KnownLinuxPatchAssessmentMode { + ImageDefault = "ImageDefault", + AutomaticByPlatform = "AutomaticByPlatform" } /** - * Defines values for ExtendedLocationTypes. \ - * {@link KnownExtendedLocationTypes} can be used interchangeably with ExtendedLocationTypes, + * Defines values for LinuxPatchAssessmentMode. \ + * {@link KnownLinuxPatchAssessmentMode} can be used interchangeably with LinuxPatchAssessmentMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **EdgeZone** + * **ImageDefault** \ + * **AutomaticByPlatform** */ -export type ExtendedLocationTypes = string; +export type LinuxPatchAssessmentMode = string; -/** Known values of {@link VirtualMachineSizeTypes} that the service accepts. */ -export enum KnownVirtualMachineSizeTypes { - BasicA0 = "Basic_A0", - BasicA1 = "Basic_A1", - BasicA2 = "Basic_A2", - BasicA3 = "Basic_A3", - BasicA4 = "Basic_A4", - StandardA0 = "Standard_A0", - StandardA1 = "Standard_A1", - StandardA2 = "Standard_A2", - StandardA3 = "Standard_A3", - StandardA4 = "Standard_A4", - StandardA5 = "Standard_A5", - StandardA6 = "Standard_A6", - StandardA7 = "Standard_A7", - StandardA8 = "Standard_A8", - StandardA9 = "Standard_A9", - StandardA10 = "Standard_A10", - StandardA11 = "Standard_A11", - StandardA1V2 = "Standard_A1_v2", - StandardA2V2 = "Standard_A2_v2", - StandardA4V2 = "Standard_A4_v2", - StandardA8V2 = "Standard_A8_v2", - StandardA2MV2 = "Standard_A2m_v2", - StandardA4MV2 = "Standard_A4m_v2", - StandardA8MV2 = "Standard_A8m_v2", - StandardB1S = "Standard_B1s", - StandardB1Ms = "Standard_B1ms", - StandardB2S = "Standard_B2s", - StandardB2Ms = "Standard_B2ms", - StandardB4Ms = "Standard_B4ms", - StandardB8Ms = "Standard_B8ms", - StandardD1 = "Standard_D1", - StandardD2 = "Standard_D2", - StandardD3 = "Standard_D3", - StandardD4 = "Standard_D4", - StandardD11 = "Standard_D11", - StandardD12 = "Standard_D12", - StandardD13 = "Standard_D13", - StandardD14 = "Standard_D14", - StandardD1V2 = "Standard_D1_v2", - StandardD2V2 = "Standard_D2_v2", - StandardD3V2 = "Standard_D3_v2", - StandardD4V2 = "Standard_D4_v2", - StandardD5V2 = "Standard_D5_v2", - StandardD2V3 = "Standard_D2_v3", - StandardD4V3 = "Standard_D4_v3", - StandardD8V3 = "Standard_D8_v3", - StandardD16V3 = "Standard_D16_v3", - StandardD32V3 = "Standard_D32_v3", - StandardD64V3 = "Standard_D64_v3", - StandardD2SV3 = "Standard_D2s_v3", - StandardD4SV3 = "Standard_D4s_v3", - StandardD8SV3 = "Standard_D8s_v3", - StandardD16SV3 = "Standard_D16s_v3", - StandardD32SV3 = "Standard_D32s_v3", - StandardD64SV3 = "Standard_D64s_v3", - StandardD11V2 = "Standard_D11_v2", - StandardD12V2 = "Standard_D12_v2", - StandardD13V2 = "Standard_D13_v2", - StandardD14V2 = "Standard_D14_v2", - StandardD15V2 = "Standard_D15_v2", - StandardDS1 = "Standard_DS1", - StandardDS2 = "Standard_DS2", - StandardDS3 = "Standard_DS3", - StandardDS4 = "Standard_DS4", - StandardDS11 = "Standard_DS11", - StandardDS12 = "Standard_DS12", - StandardDS13 = "Standard_DS13", - StandardDS14 = "Standard_DS14", - StandardDS1V2 = "Standard_DS1_v2", - StandardDS2V2 = "Standard_DS2_v2", - StandardDS3V2 = "Standard_DS3_v2", - StandardDS4V2 = "Standard_DS4_v2", - StandardDS5V2 = "Standard_DS5_v2", - StandardDS11V2 = "Standard_DS11_v2", - StandardDS12V2 = "Standard_DS12_v2", - StandardDS13V2 = "Standard_DS13_v2", - StandardDS14V2 = "Standard_DS14_v2", - StandardDS15V2 = "Standard_DS15_v2", - StandardDS134V2 = "Standard_DS13-4_v2", - StandardDS132V2 = "Standard_DS13-2_v2", - StandardDS148V2 = "Standard_DS14-8_v2", - StandardDS144V2 = "Standard_DS14-4_v2", - StandardE2V3 = "Standard_E2_v3", - StandardE4V3 = "Standard_E4_v3", - StandardE8V3 = "Standard_E8_v3", - StandardE16V3 = "Standard_E16_v3", - StandardE32V3 = "Standard_E32_v3", - StandardE64V3 = "Standard_E64_v3", - StandardE2SV3 = "Standard_E2s_v3", - StandardE4SV3 = "Standard_E4s_v3", - StandardE8SV3 = "Standard_E8s_v3", - StandardE16SV3 = "Standard_E16s_v3", - StandardE32SV3 = "Standard_E32s_v3", - StandardE64SV3 = "Standard_E64s_v3", - StandardE3216V3 = "Standard_E32-16_v3", - StandardE328SV3 = "Standard_E32-8s_v3", - StandardE6432SV3 = "Standard_E64-32s_v3", - StandardE6416SV3 = "Standard_E64-16s_v3", - StandardF1 = "Standard_F1", - StandardF2 = "Standard_F2", - StandardF4 = "Standard_F4", - StandardF8 = "Standard_F8", - StandardF16 = "Standard_F16", - StandardF1S = "Standard_F1s", - StandardF2S = "Standard_F2s", - StandardF4S = "Standard_F4s", - StandardF8S = "Standard_F8s", - StandardF16S = "Standard_F16s", - StandardF2SV2 = "Standard_F2s_v2", - StandardF4SV2 = "Standard_F4s_v2", - StandardF8SV2 = "Standard_F8s_v2", - StandardF16SV2 = "Standard_F16s_v2", - StandardF32SV2 = "Standard_F32s_v2", - StandardF64SV2 = "Standard_F64s_v2", - StandardF72SV2 = "Standard_F72s_v2", - StandardG1 = "Standard_G1", - StandardG2 = "Standard_G2", - StandardG3 = "Standard_G3", - StandardG4 = "Standard_G4", - StandardG5 = "Standard_G5", - StandardGS1 = "Standard_GS1", - StandardGS2 = "Standard_GS2", - StandardGS3 = "Standard_GS3", - StandardGS4 = "Standard_GS4", - StandardGS5 = "Standard_GS5", - StandardGS48 = "Standard_GS4-8", - StandardGS44 = "Standard_GS4-4", - StandardGS516 = "Standard_GS5-16", - StandardGS58 = "Standard_GS5-8", - StandardH8 = "Standard_H8", - StandardH16 = "Standard_H16", - StandardH8M = "Standard_H8m", - StandardH16M = "Standard_H16m", - StandardH16R = "Standard_H16r", - StandardH16Mr = "Standard_H16mr", - StandardL4S = "Standard_L4s", - StandardL8S = "Standard_L8s", - StandardL16S = "Standard_L16s", - StandardL32S = "Standard_L32s", - StandardM64S = "Standard_M64s", - StandardM64Ms = "Standard_M64ms", - StandardM128S = "Standard_M128s", - StandardM128Ms = "Standard_M128ms", - StandardM6432Ms = "Standard_M64-32ms", - StandardM6416Ms = "Standard_M64-16ms", - StandardM12864Ms = "Standard_M128-64ms", - StandardM12832Ms = "Standard_M128-32ms", - StandardNC6 = "Standard_NC6", - StandardNC12 = "Standard_NC12", - StandardNC24 = "Standard_NC24", - StandardNC24R = "Standard_NC24r", - StandardNC6SV2 = "Standard_NC6s_v2", - StandardNC12SV2 = "Standard_NC12s_v2", - StandardNC24SV2 = "Standard_NC24s_v2", - StandardNC24RsV2 = "Standard_NC24rs_v2", - StandardNC6SV3 = "Standard_NC6s_v3", - StandardNC12SV3 = "Standard_NC12s_v3", - StandardNC24SV3 = "Standard_NC24s_v3", - StandardNC24RsV3 = "Standard_NC24rs_v3", - StandardND6S = "Standard_ND6s", - StandardND12S = "Standard_ND12s", - StandardND24S = "Standard_ND24s", - StandardND24Rs = "Standard_ND24rs", - StandardNV6 = "Standard_NV6", - StandardNV12 = "Standard_NV12", - StandardNV24 = "Standard_NV24" +/** Known values of {@link DiskCreateOptionTypes} that the service accepts. */ +export enum KnownDiskCreateOptionTypes { + FromImage = "FromImage", + Empty = "Empty", + Attach = "Attach" } /** - * Defines values for VirtualMachineSizeTypes. \ - * {@link KnownVirtualMachineSizeTypes} can be used interchangeably with VirtualMachineSizeTypes, + * Defines values for DiskCreateOptionTypes. \ + * {@link KnownDiskCreateOptionTypes} can be used interchangeably with DiskCreateOptionTypes, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Basic_A0** \ - * **Basic_A1** \ - * **Basic_A2** \ - * **Basic_A3** \ - * **Basic_A4** \ - * **Standard_A0** \ - * **Standard_A1** \ - * **Standard_A2** \ - * **Standard_A3** \ - * **Standard_A4** \ - * **Standard_A5** \ - * **Standard_A6** \ - * **Standard_A7** \ - * **Standard_A8** \ - * **Standard_A9** \ - * **Standard_A10** \ - * **Standard_A11** \ - * **Standard_A1_v2** \ - * **Standard_A2_v2** \ - * **Standard_A4_v2** \ - * **Standard_A8_v2** \ - * **Standard_A2m_v2** \ - * **Standard_A4m_v2** \ - * **Standard_A8m_v2** \ - * **Standard_B1s** \ - * **Standard_B1ms** \ - * **Standard_B2s** \ - * **Standard_B2ms** \ - * **Standard_B4ms** \ - * **Standard_B8ms** \ - * **Standard_D1** \ - * **Standard_D2** \ - * **Standard_D3** \ - * **Standard_D4** \ - * **Standard_D11** \ - * **Standard_D12** \ - * **Standard_D13** \ - * **Standard_D14** \ - * **Standard_D1_v2** \ - * **Standard_D2_v2** \ - * **Standard_D3_v2** \ - * **Standard_D4_v2** \ - * **Standard_D5_v2** \ - * **Standard_D2_v3** \ - * **Standard_D4_v3** \ - * **Standard_D8_v3** \ - * **Standard_D16_v3** \ - * **Standard_D32_v3** \ - * **Standard_D64_v3** \ - * **Standard_D2s_v3** \ - * **Standard_D4s_v3** \ - * **Standard_D8s_v3** \ - * **Standard_D16s_v3** \ - * **Standard_D32s_v3** \ - * **Standard_D64s_v3** \ - * **Standard_D11_v2** \ - * **Standard_D12_v2** \ - * **Standard_D13_v2** \ - * **Standard_D14_v2** \ - * **Standard_D15_v2** \ - * **Standard_DS1** \ - * **Standard_DS2** \ - * **Standard_DS3** \ - * **Standard_DS4** \ - * **Standard_DS11** \ - * **Standard_DS12** \ - * **Standard_DS13** \ - * **Standard_DS14** \ - * **Standard_DS1_v2** \ - * **Standard_DS2_v2** \ - * **Standard_DS3_v2** \ - * **Standard_DS4_v2** \ - * **Standard_DS5_v2** \ - * **Standard_DS11_v2** \ - * **Standard_DS12_v2** \ - * **Standard_DS13_v2** \ - * **Standard_DS14_v2** \ - * **Standard_DS15_v2** \ - * **Standard_DS13-4_v2** \ - * **Standard_DS13-2_v2** \ - * **Standard_DS14-8_v2** \ - * **Standard_DS14-4_v2** \ - * **Standard_E2_v3** \ - * **Standard_E4_v3** \ - * **Standard_E8_v3** \ - * **Standard_E16_v3** \ - * **Standard_E32_v3** \ - * **Standard_E64_v3** \ - * **Standard_E2s_v3** \ - * **Standard_E4s_v3** \ - * **Standard_E8s_v3** \ - * **Standard_E16s_v3** \ - * **Standard_E32s_v3** \ - * **Standard_E64s_v3** \ - * **Standard_E32-16_v3** \ - * **Standard_E32-8s_v3** \ - * **Standard_E64-32s_v3** \ - * **Standard_E64-16s_v3** \ - * **Standard_F1** \ - * **Standard_F2** \ - * **Standard_F4** \ - * **Standard_F8** \ - * **Standard_F16** \ - * **Standard_F1s** \ - * **Standard_F2s** \ - * **Standard_F4s** \ - * **Standard_F8s** \ - * **Standard_F16s** \ - * **Standard_F2s_v2** \ - * **Standard_F4s_v2** \ - * **Standard_F8s_v2** \ - * **Standard_F16s_v2** \ - * **Standard_F32s_v2** \ - * **Standard_F64s_v2** \ - * **Standard_F72s_v2** \ - * **Standard_G1** \ - * **Standard_G2** \ - * **Standard_G3** \ - * **Standard_G4** \ - * **Standard_G5** \ - * **Standard_GS1** \ - * **Standard_GS2** \ - * **Standard_GS3** \ - * **Standard_GS4** \ - * **Standard_GS5** \ - * **Standard_GS4-8** \ - * **Standard_GS4-4** \ - * **Standard_GS5-16** \ - * **Standard_GS5-8** \ - * **Standard_H8** \ - * **Standard_H16** \ - * **Standard_H8m** \ - * **Standard_H16m** \ - * **Standard_H16r** \ - * **Standard_H16mr** \ - * **Standard_L4s** \ - * **Standard_L8s** \ - * **Standard_L16s** \ - * **Standard_L32s** \ - * **Standard_M64s** \ - * **Standard_M64ms** \ - * **Standard_M128s** \ - * **Standard_M128ms** \ - * **Standard_M64-32ms** \ - * **Standard_M64-16ms** \ - * **Standard_M128-64ms** \ - * **Standard_M128-32ms** \ - * **Standard_NC6** \ - * **Standard_NC12** \ - * **Standard_NC24** \ - * **Standard_NC24r** \ - * **Standard_NC6s_v2** \ - * **Standard_NC12s_v2** \ - * **Standard_NC24s_v2** \ - * **Standard_NC24rs_v2** \ - * **Standard_NC6s_v3** \ - * **Standard_NC12s_v3** \ - * **Standard_NC24s_v3** \ - * **Standard_NC24rs_v3** \ - * **Standard_ND6s** \ - * **Standard_ND12s** \ - * **Standard_ND24s** \ - * **Standard_ND24rs** \ - * **Standard_NV6** \ - * **Standard_NV12** \ - * **Standard_NV24** + * **FromImage** \ + * **Empty** \ + * **Attach** */ -export type VirtualMachineSizeTypes = string; +export type DiskCreateOptionTypes = string; /** Known values of {@link DiffDiskOptions} that the service accepts. */ export enum KnownDiffDiskOptions { @@ -6477,24 +6174,6 @@ export enum KnownDiffDiskPlacement { */ export type DiffDiskPlacement = string; -/** Known values of {@link DiskCreateOptionTypes} that the service accepts. */ -export enum KnownDiskCreateOptionTypes { - FromImage = "FromImage", - Empty = "Empty", - Attach = "Attach" -} - -/** - * Defines values for DiskCreateOptionTypes. \ - * {@link KnownDiskCreateOptionTypes} can be used interchangeably with DiskCreateOptionTypes, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **FromImage** \ - * **Empty** \ - * **Attach** - */ -export type DiskCreateOptionTypes = string; - /** Known values of {@link StorageAccountTypes} that the service accepts. */ export enum KnownStorageAccountTypes { StandardLRS = "Standard_LRS", @@ -6535,211 +6214,99 @@ export enum KnownSecurityEncryptionTypes { */ export type SecurityEncryptionTypes = string; -/** Known values of {@link DiskDeleteOptionTypes} that the service accepts. */ -export enum KnownDiskDeleteOptionTypes { +/** Known values of {@link IPVersion} that the service accepts. */ +export enum KnownIPVersion { + IPv4 = "IPv4", + IPv6 = "IPv6" +} + +/** + * Defines values for IPVersion. \ + * {@link KnownIPVersion} can be used interchangeably with IPVersion, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **IPv4** \ + * **IPv6** + */ +export type IPVersion = string; + +/** Known values of {@link DeleteOptions} that the service accepts. */ +export enum KnownDeleteOptions { Delete = "Delete", Detach = "Detach" } /** - * Defines values for DiskDeleteOptionTypes. \ - * {@link KnownDiskDeleteOptionTypes} can be used interchangeably with DiskDeleteOptionTypes, + * Defines values for DeleteOptions. \ + * {@link KnownDeleteOptions} can be used interchangeably with DeleteOptions, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Delete** \ * **Detach** */ -export type DiskDeleteOptionTypes = string; +export type DeleteOptions = string; -/** Known values of {@link DiskDetachOptionTypes} that the service accepts. */ -export enum KnownDiskDetachOptionTypes { - ForceDetach = "ForceDetach" +/** Known values of {@link PublicIPAddressSkuName} that the service accepts. */ +export enum KnownPublicIPAddressSkuName { + Basic = "Basic", + Standard = "Standard" } /** - * Defines values for DiskDetachOptionTypes. \ - * {@link KnownDiskDetachOptionTypes} can be used interchangeably with DiskDetachOptionTypes, + * Defines values for PublicIPAddressSkuName. \ + * {@link KnownPublicIPAddressSkuName} can be used interchangeably with PublicIPAddressSkuName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ForceDetach** + * **Basic** \ + * **Standard** */ -export type DiskDetachOptionTypes = string; +export type PublicIPAddressSkuName = string; -/** Known values of {@link WindowsVMGuestPatchMode} that the service accepts. */ -export enum KnownWindowsVMGuestPatchMode { - Manual = "Manual", - AutomaticByOS = "AutomaticByOS", - AutomaticByPlatform = "AutomaticByPlatform" +/** Known values of {@link PublicIPAddressSkuTier} that the service accepts. */ +export enum KnownPublicIPAddressSkuTier { + Regional = "Regional", + Global = "Global" } /** - * Defines values for WindowsVMGuestPatchMode. \ - * {@link KnownWindowsVMGuestPatchMode} can be used interchangeably with WindowsVMGuestPatchMode, + * Defines values for PublicIPAddressSkuTier. \ + * {@link KnownPublicIPAddressSkuTier} can be used interchangeably with PublicIPAddressSkuTier, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Manual** \ - * **AutomaticByOS** \ - * **AutomaticByPlatform** + * **Regional** \ + * **Global** */ -export type WindowsVMGuestPatchMode = string; +export type PublicIPAddressSkuTier = string; -/** Known values of {@link WindowsPatchAssessmentMode} that the service accepts. */ -export enum KnownWindowsPatchAssessmentMode { - ImageDefault = "ImageDefault", - AutomaticByPlatform = "AutomaticByPlatform" +/** Known values of {@link NetworkApiVersion} that the service accepts. */ +export enum KnownNetworkApiVersion { + TwoThousandTwenty1101 = "2020-11-01" } /** - * Defines values for WindowsPatchAssessmentMode. \ - * {@link KnownWindowsPatchAssessmentMode} can be used interchangeably with WindowsPatchAssessmentMode, + * Defines values for NetworkApiVersion. \ + * {@link KnownNetworkApiVersion} can be used interchangeably with NetworkApiVersion, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ImageDefault** \ - * **AutomaticByPlatform** + * **2020-11-01** */ -export type WindowsPatchAssessmentMode = string; +export type NetworkApiVersion = string; -/** Known values of {@link LinuxVMGuestPatchMode} that the service accepts. */ -export enum KnownLinuxVMGuestPatchMode { - ImageDefault = "ImageDefault", - AutomaticByPlatform = "AutomaticByPlatform" +/** Known values of {@link SecurityTypes} that the service accepts. */ +export enum KnownSecurityTypes { + TrustedLaunch = "TrustedLaunch", + ConfidentialVM = "ConfidentialVM" } /** - * Defines values for LinuxVMGuestPatchMode. \ - * {@link KnownLinuxVMGuestPatchMode} can be used interchangeably with LinuxVMGuestPatchMode, + * Defines values for SecurityTypes. \ + * {@link KnownSecurityTypes} can be used interchangeably with SecurityTypes, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ImageDefault** \ - * **AutomaticByPlatform** + * **TrustedLaunch** \ + * **ConfidentialVM** */ -export type LinuxVMGuestPatchMode = string; - -/** Known values of {@link LinuxPatchAssessmentMode} that the service accepts. */ -export enum KnownLinuxPatchAssessmentMode { - ImageDefault = "ImageDefault", - AutomaticByPlatform = "AutomaticByPlatform" -} - -/** - * Defines values for LinuxPatchAssessmentMode. \ - * {@link KnownLinuxPatchAssessmentMode} can be used interchangeably with LinuxPatchAssessmentMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ImageDefault** \ - * **AutomaticByPlatform** - */ -export type LinuxPatchAssessmentMode = string; - -/** Known values of {@link DeleteOptions} that the service accepts. */ -export enum KnownDeleteOptions { - Delete = "Delete", - Detach = "Detach" -} - -/** - * Defines values for DeleteOptions. \ - * {@link KnownDeleteOptions} can be used interchangeably with DeleteOptions, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Delete** \ - * **Detach** - */ -export type DeleteOptions = string; - -/** Known values of {@link NetworkApiVersion} that the service accepts. */ -export enum KnownNetworkApiVersion { - TwoThousandTwenty1101 = "2020-11-01" -} - -/** - * Defines values for NetworkApiVersion. \ - * {@link KnownNetworkApiVersion} can be used interchangeably with NetworkApiVersion, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **2020-11-01** - */ -export type NetworkApiVersion = string; - -/** Known values of {@link IPVersions} that the service accepts. */ -export enum KnownIPVersions { - IPv4 = "IPv4", - IPv6 = "IPv6" -} - -/** - * Defines values for IPVersions. \ - * {@link KnownIPVersions} can be used interchangeably with IPVersions, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **IPv4** \ - * **IPv6** - */ -export type IPVersions = string; - -/** Known values of {@link PublicIPAllocationMethod} that the service accepts. */ -export enum KnownPublicIPAllocationMethod { - Dynamic = "Dynamic", - Static = "Static" -} - -/** - * Defines values for PublicIPAllocationMethod. \ - * {@link KnownPublicIPAllocationMethod} can be used interchangeably with PublicIPAllocationMethod, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Dynamic** \ - * **Static** - */ -export type PublicIPAllocationMethod = string; - -/** Known values of {@link PublicIPAddressSkuName} that the service accepts. */ -export enum KnownPublicIPAddressSkuName { - Basic = "Basic", - Standard = "Standard" -} - -/** - * Defines values for PublicIPAddressSkuName. \ - * {@link KnownPublicIPAddressSkuName} can be used interchangeably with PublicIPAddressSkuName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Basic** \ - * **Standard** - */ -export type PublicIPAddressSkuName = string; - -/** Known values of {@link PublicIPAddressSkuTier} that the service accepts. */ -export enum KnownPublicIPAddressSkuTier { - Regional = "Regional", - Global = "Global" -} - -/** - * Defines values for PublicIPAddressSkuTier. \ - * {@link KnownPublicIPAddressSkuTier} can be used interchangeably with PublicIPAddressSkuTier, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Regional** \ - * **Global** - */ -export type PublicIPAddressSkuTier = string; - -/** Known values of {@link SecurityTypes} that the service accepts. */ -export enum KnownSecurityTypes { - TrustedLaunch = "TrustedLaunch", - ConfidentialVM = "ConfidentialVM" -} - -/** - * Defines values for SecurityTypes. \ - * {@link KnownSecurityTypes} can be used interchangeably with SecurityTypes, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **TrustedLaunch** \ - * **ConfidentialVM** - */ -export type SecurityTypes = string; +export type SecurityTypes = string; /** Known values of {@link VirtualMachinePriorityTypes} that the service accepts. */ export enum KnownVirtualMachinePriorityTypes { @@ -6775,217 +6342,561 @@ export enum KnownVirtualMachineEvictionPolicyTypes { */ export type VirtualMachineEvictionPolicyTypes = string; -/** Known values of {@link HyperVGenerationType} that the service accepts. */ -export enum KnownHyperVGenerationType { - V1 = "V1", - V2 = "V2" +/** Known values of {@link VirtualMachineScaleSetScaleInRules} that the service accepts. */ +export enum KnownVirtualMachineScaleSetScaleInRules { + Default = "Default", + OldestVM = "OldestVM", + NewestVM = "NewestVM" } /** - * Defines values for HyperVGenerationType. \ - * {@link KnownHyperVGenerationType} can be used interchangeably with HyperVGenerationType, + * Defines values for VirtualMachineScaleSetScaleInRules. \ + * {@link KnownVirtualMachineScaleSetScaleInRules} can be used interchangeably with VirtualMachineScaleSetScaleInRules, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **V1** \ - * **V2** + * **Default** \ + * **OldestVM** \ + * **NewestVM** */ -export type HyperVGenerationType = string; +export type VirtualMachineScaleSetScaleInRules = string; -/** Known values of {@link PatchOperationStatus} that the service accepts. */ -export enum KnownPatchOperationStatus { - Unknown = "Unknown", - InProgress = "InProgress", - Failed = "Failed", - Succeeded = "Succeeded", - CompletedWithWarnings = "CompletedWithWarnings" +/** Known values of {@link OrchestrationMode} that the service accepts. */ +export enum KnownOrchestrationMode { + Uniform = "Uniform", + Flexible = "Flexible" } /** - * Defines values for PatchOperationStatus. \ - * {@link KnownPatchOperationStatus} can be used interchangeably with PatchOperationStatus, + * Defines values for OrchestrationMode. \ + * {@link KnownOrchestrationMode} can be used interchangeably with OrchestrationMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Unknown** \ - * **InProgress** \ - * **Failed** \ - * **Succeeded** \ - * **CompletedWithWarnings** + * **Uniform** \ + * **Flexible** */ -export type PatchOperationStatus = string; +export type OrchestrationMode = string; -/** Known values of {@link RepairAction} that the service accepts. */ -export enum KnownRepairAction { - Replace = "Replace", - Restart = "Restart", - Reimage = "Reimage" +/** Known values of {@link ExtendedLocationTypes} that the service accepts. */ +export enum KnownExtendedLocationTypes { + EdgeZone = "EdgeZone" } /** - * Defines values for RepairAction. \ - * {@link KnownRepairAction} can be used interchangeably with RepairAction, + * Defines values for ExtendedLocationTypes. \ + * {@link KnownExtendedLocationTypes} can be used interchangeably with ExtendedLocationTypes, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Replace** \ - * **Restart** \ - * **Reimage** + * **EdgeZone** */ -export type RepairAction = string; +export type ExtendedLocationTypes = string; -/** Known values of {@link IPVersion} that the service accepts. */ -export enum KnownIPVersion { - IPv4 = "IPv4", - IPv6 = "IPv6" +/** Known values of {@link ExpandTypesForGetVMScaleSets} that the service accepts. */ +export enum KnownExpandTypesForGetVMScaleSets { + UserData = "userData" } /** - * Defines values for IPVersion. \ - * {@link KnownIPVersion} can be used interchangeably with IPVersion, + * Defines values for ExpandTypesForGetVMScaleSets. \ + * {@link KnownExpandTypesForGetVMScaleSets} can be used interchangeably with ExpandTypesForGetVMScaleSets, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **IPv4** \ - * **IPv6** + * **userData** */ -export type IPVersion = string; +export type ExpandTypesForGetVMScaleSets = string; -/** Known values of {@link VirtualMachineScaleSetScaleInRules} that the service accepts. */ -export enum KnownVirtualMachineScaleSetScaleInRules { - Default = "Default", - OldestVM = "OldestVM", - NewestVM = "NewestVM" +/** Known values of {@link OrchestrationServiceNames} that the service accepts. */ +export enum KnownOrchestrationServiceNames { + AutomaticRepairs = "AutomaticRepairs", + DummyOrchestrationServiceName = "DummyOrchestrationServiceName" } /** - * Defines values for VirtualMachineScaleSetScaleInRules. \ - * {@link KnownVirtualMachineScaleSetScaleInRules} can be used interchangeably with VirtualMachineScaleSetScaleInRules, + * Defines values for OrchestrationServiceNames. \ + * {@link KnownOrchestrationServiceNames} can be used interchangeably with OrchestrationServiceNames, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** \ - * **OldestVM** \ - * **NewestVM** + * **AutomaticRepairs** \ + * **DummyOrchestrationServiceName** */ -export type VirtualMachineScaleSetScaleInRules = string; +export type OrchestrationServiceNames = string; -/** Known values of {@link OrchestrationMode} that the service accepts. */ -export enum KnownOrchestrationMode { - Uniform = "Uniform", - Flexible = "Flexible" +/** Known values of {@link OrchestrationServiceState} that the service accepts. */ +export enum KnownOrchestrationServiceState { + NotRunning = "NotRunning", + Running = "Running", + Suspended = "Suspended" } /** - * Defines values for OrchestrationMode. \ - * {@link KnownOrchestrationMode} can be used interchangeably with OrchestrationMode, + * Defines values for OrchestrationServiceState. \ + * {@link KnownOrchestrationServiceState} can be used interchangeably with OrchestrationServiceState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Uniform** \ - * **Flexible** + * **NotRunning** \ + * **Running** \ + * **Suspended** */ -export type OrchestrationMode = string; +export type OrchestrationServiceState = string; -/** Known values of {@link OperatingSystemType} that the service accepts. */ -export enum KnownOperatingSystemType { - Windows = "Windows", - Linux = "Linux" +/** Known values of {@link OrchestrationServiceStateAction} that the service accepts. */ +export enum KnownOrchestrationServiceStateAction { + Resume = "Resume", + Suspend = "Suspend" } /** - * Defines values for OperatingSystemType. \ - * {@link KnownOperatingSystemType} can be used interchangeably with OperatingSystemType, + * Defines values for OrchestrationServiceStateAction. \ + * {@link KnownOrchestrationServiceStateAction} can be used interchangeably with OrchestrationServiceStateAction, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Windows** \ - * **Linux** + * **Resume** \ + * **Suspend** + */ +export type OrchestrationServiceStateAction = string; + +/** Known values of {@link VirtualMachineSizeTypes} that the service accepts. */ +export enum KnownVirtualMachineSizeTypes { + BasicA0 = "Basic_A0", + BasicA1 = "Basic_A1", + BasicA2 = "Basic_A2", + BasicA3 = "Basic_A3", + BasicA4 = "Basic_A4", + StandardA0 = "Standard_A0", + StandardA1 = "Standard_A1", + StandardA2 = "Standard_A2", + StandardA3 = "Standard_A3", + StandardA4 = "Standard_A4", + StandardA5 = "Standard_A5", + StandardA6 = "Standard_A6", + StandardA7 = "Standard_A7", + StandardA8 = "Standard_A8", + StandardA9 = "Standard_A9", + StandardA10 = "Standard_A10", + StandardA11 = "Standard_A11", + StandardA1V2 = "Standard_A1_v2", + StandardA2V2 = "Standard_A2_v2", + StandardA4V2 = "Standard_A4_v2", + StandardA8V2 = "Standard_A8_v2", + StandardA2MV2 = "Standard_A2m_v2", + StandardA4MV2 = "Standard_A4m_v2", + StandardA8MV2 = "Standard_A8m_v2", + StandardB1S = "Standard_B1s", + StandardB1Ms = "Standard_B1ms", + StandardB2S = "Standard_B2s", + StandardB2Ms = "Standard_B2ms", + StandardB4Ms = "Standard_B4ms", + StandardB8Ms = "Standard_B8ms", + StandardD1 = "Standard_D1", + StandardD2 = "Standard_D2", + StandardD3 = "Standard_D3", + StandardD4 = "Standard_D4", + StandardD11 = "Standard_D11", + StandardD12 = "Standard_D12", + StandardD13 = "Standard_D13", + StandardD14 = "Standard_D14", + StandardD1V2 = "Standard_D1_v2", + StandardD2V2 = "Standard_D2_v2", + StandardD3V2 = "Standard_D3_v2", + StandardD4V2 = "Standard_D4_v2", + StandardD5V2 = "Standard_D5_v2", + StandardD2V3 = "Standard_D2_v3", + StandardD4V3 = "Standard_D4_v3", + StandardD8V3 = "Standard_D8_v3", + StandardD16V3 = "Standard_D16_v3", + StandardD32V3 = "Standard_D32_v3", + StandardD64V3 = "Standard_D64_v3", + StandardD2SV3 = "Standard_D2s_v3", + StandardD4SV3 = "Standard_D4s_v3", + StandardD8SV3 = "Standard_D8s_v3", + StandardD16SV3 = "Standard_D16s_v3", + StandardD32SV3 = "Standard_D32s_v3", + StandardD64SV3 = "Standard_D64s_v3", + StandardD11V2 = "Standard_D11_v2", + StandardD12V2 = "Standard_D12_v2", + StandardD13V2 = "Standard_D13_v2", + StandardD14V2 = "Standard_D14_v2", + StandardD15V2 = "Standard_D15_v2", + StandardDS1 = "Standard_DS1", + StandardDS2 = "Standard_DS2", + StandardDS3 = "Standard_DS3", + StandardDS4 = "Standard_DS4", + StandardDS11 = "Standard_DS11", + StandardDS12 = "Standard_DS12", + StandardDS13 = "Standard_DS13", + StandardDS14 = "Standard_DS14", + StandardDS1V2 = "Standard_DS1_v2", + StandardDS2V2 = "Standard_DS2_v2", + StandardDS3V2 = "Standard_DS3_v2", + StandardDS4V2 = "Standard_DS4_v2", + StandardDS5V2 = "Standard_DS5_v2", + StandardDS11V2 = "Standard_DS11_v2", + StandardDS12V2 = "Standard_DS12_v2", + StandardDS13V2 = "Standard_DS13_v2", + StandardDS14V2 = "Standard_DS14_v2", + StandardDS15V2 = "Standard_DS15_v2", + StandardDS134V2 = "Standard_DS13-4_v2", + StandardDS132V2 = "Standard_DS13-2_v2", + StandardDS148V2 = "Standard_DS14-8_v2", + StandardDS144V2 = "Standard_DS14-4_v2", + StandardE2V3 = "Standard_E2_v3", + StandardE4V3 = "Standard_E4_v3", + StandardE8V3 = "Standard_E8_v3", + StandardE16V3 = "Standard_E16_v3", + StandardE32V3 = "Standard_E32_v3", + StandardE64V3 = "Standard_E64_v3", + StandardE2SV3 = "Standard_E2s_v3", + StandardE4SV3 = "Standard_E4s_v3", + StandardE8SV3 = "Standard_E8s_v3", + StandardE16SV3 = "Standard_E16s_v3", + StandardE32SV3 = "Standard_E32s_v3", + StandardE64SV3 = "Standard_E64s_v3", + StandardE3216V3 = "Standard_E32-16_v3", + StandardE328SV3 = "Standard_E32-8s_v3", + StandardE6432SV3 = "Standard_E64-32s_v3", + StandardE6416SV3 = "Standard_E64-16s_v3", + StandardF1 = "Standard_F1", + StandardF2 = "Standard_F2", + StandardF4 = "Standard_F4", + StandardF8 = "Standard_F8", + StandardF16 = "Standard_F16", + StandardF1S = "Standard_F1s", + StandardF2S = "Standard_F2s", + StandardF4S = "Standard_F4s", + StandardF8S = "Standard_F8s", + StandardF16S = "Standard_F16s", + StandardF2SV2 = "Standard_F2s_v2", + StandardF4SV2 = "Standard_F4s_v2", + StandardF8SV2 = "Standard_F8s_v2", + StandardF16SV2 = "Standard_F16s_v2", + StandardF32SV2 = "Standard_F32s_v2", + StandardF64SV2 = "Standard_F64s_v2", + StandardF72SV2 = "Standard_F72s_v2", + StandardG1 = "Standard_G1", + StandardG2 = "Standard_G2", + StandardG3 = "Standard_G3", + StandardG4 = "Standard_G4", + StandardG5 = "Standard_G5", + StandardGS1 = "Standard_GS1", + StandardGS2 = "Standard_GS2", + StandardGS3 = "Standard_GS3", + StandardGS4 = "Standard_GS4", + StandardGS5 = "Standard_GS5", + StandardGS48 = "Standard_GS4-8", + StandardGS44 = "Standard_GS4-4", + StandardGS516 = "Standard_GS5-16", + StandardGS58 = "Standard_GS5-8", + StandardH8 = "Standard_H8", + StandardH16 = "Standard_H16", + StandardH8M = "Standard_H8m", + StandardH16M = "Standard_H16m", + StandardH16R = "Standard_H16r", + StandardH16Mr = "Standard_H16mr", + StandardL4S = "Standard_L4s", + StandardL8S = "Standard_L8s", + StandardL16S = "Standard_L16s", + StandardL32S = "Standard_L32s", + StandardM64S = "Standard_M64s", + StandardM64Ms = "Standard_M64ms", + StandardM128S = "Standard_M128s", + StandardM128Ms = "Standard_M128ms", + StandardM6432Ms = "Standard_M64-32ms", + StandardM6416Ms = "Standard_M64-16ms", + StandardM12864Ms = "Standard_M128-64ms", + StandardM12832Ms = "Standard_M128-32ms", + StandardNC6 = "Standard_NC6", + StandardNC12 = "Standard_NC12", + StandardNC24 = "Standard_NC24", + StandardNC24R = "Standard_NC24r", + StandardNC6SV2 = "Standard_NC6s_v2", + StandardNC12SV2 = "Standard_NC12s_v2", + StandardNC24SV2 = "Standard_NC24s_v2", + StandardNC24RsV2 = "Standard_NC24rs_v2", + StandardNC6SV3 = "Standard_NC6s_v3", + StandardNC12SV3 = "Standard_NC12s_v3", + StandardNC24SV3 = "Standard_NC24s_v3", + StandardNC24RsV3 = "Standard_NC24rs_v3", + StandardND6S = "Standard_ND6s", + StandardND12S = "Standard_ND12s", + StandardND24S = "Standard_ND24s", + StandardND24Rs = "Standard_ND24rs", + StandardNV6 = "Standard_NV6", + StandardNV12 = "Standard_NV12", + StandardNV24 = "Standard_NV24" +} + +/** + * Defines values for VirtualMachineSizeTypes. \ + * {@link KnownVirtualMachineSizeTypes} can be used interchangeably with VirtualMachineSizeTypes, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Basic_A0** \ + * **Basic_A1** \ + * **Basic_A2** \ + * **Basic_A3** \ + * **Basic_A4** \ + * **Standard_A0** \ + * **Standard_A1** \ + * **Standard_A2** \ + * **Standard_A3** \ + * **Standard_A4** \ + * **Standard_A5** \ + * **Standard_A6** \ + * **Standard_A7** \ + * **Standard_A8** \ + * **Standard_A9** \ + * **Standard_A10** \ + * **Standard_A11** \ + * **Standard_A1_v2** \ + * **Standard_A2_v2** \ + * **Standard_A4_v2** \ + * **Standard_A8_v2** \ + * **Standard_A2m_v2** \ + * **Standard_A4m_v2** \ + * **Standard_A8m_v2** \ + * **Standard_B1s** \ + * **Standard_B1ms** \ + * **Standard_B2s** \ + * **Standard_B2ms** \ + * **Standard_B4ms** \ + * **Standard_B8ms** \ + * **Standard_D1** \ + * **Standard_D2** \ + * **Standard_D3** \ + * **Standard_D4** \ + * **Standard_D11** \ + * **Standard_D12** \ + * **Standard_D13** \ + * **Standard_D14** \ + * **Standard_D1_v2** \ + * **Standard_D2_v2** \ + * **Standard_D3_v2** \ + * **Standard_D4_v2** \ + * **Standard_D5_v2** \ + * **Standard_D2_v3** \ + * **Standard_D4_v3** \ + * **Standard_D8_v3** \ + * **Standard_D16_v3** \ + * **Standard_D32_v3** \ + * **Standard_D64_v3** \ + * **Standard_D2s_v3** \ + * **Standard_D4s_v3** \ + * **Standard_D8s_v3** \ + * **Standard_D16s_v3** \ + * **Standard_D32s_v3** \ + * **Standard_D64s_v3** \ + * **Standard_D11_v2** \ + * **Standard_D12_v2** \ + * **Standard_D13_v2** \ + * **Standard_D14_v2** \ + * **Standard_D15_v2** \ + * **Standard_DS1** \ + * **Standard_DS2** \ + * **Standard_DS3** \ + * **Standard_DS4** \ + * **Standard_DS11** \ + * **Standard_DS12** \ + * **Standard_DS13** \ + * **Standard_DS14** \ + * **Standard_DS1_v2** \ + * **Standard_DS2_v2** \ + * **Standard_DS3_v2** \ + * **Standard_DS4_v2** \ + * **Standard_DS5_v2** \ + * **Standard_DS11_v2** \ + * **Standard_DS12_v2** \ + * **Standard_DS13_v2** \ + * **Standard_DS14_v2** \ + * **Standard_DS15_v2** \ + * **Standard_DS13-4_v2** \ + * **Standard_DS13-2_v2** \ + * **Standard_DS14-8_v2** \ + * **Standard_DS14-4_v2** \ + * **Standard_E2_v3** \ + * **Standard_E4_v3** \ + * **Standard_E8_v3** \ + * **Standard_E16_v3** \ + * **Standard_E32_v3** \ + * **Standard_E64_v3** \ + * **Standard_E2s_v3** \ + * **Standard_E4s_v3** \ + * **Standard_E8s_v3** \ + * **Standard_E16s_v3** \ + * **Standard_E32s_v3** \ + * **Standard_E64s_v3** \ + * **Standard_E32-16_v3** \ + * **Standard_E32-8s_v3** \ + * **Standard_E64-32s_v3** \ + * **Standard_E64-16s_v3** \ + * **Standard_F1** \ + * **Standard_F2** \ + * **Standard_F4** \ + * **Standard_F8** \ + * **Standard_F16** \ + * **Standard_F1s** \ + * **Standard_F2s** \ + * **Standard_F4s** \ + * **Standard_F8s** \ + * **Standard_F16s** \ + * **Standard_F2s_v2** \ + * **Standard_F4s_v2** \ + * **Standard_F8s_v2** \ + * **Standard_F16s_v2** \ + * **Standard_F32s_v2** \ + * **Standard_F64s_v2** \ + * **Standard_F72s_v2** \ + * **Standard_G1** \ + * **Standard_G2** \ + * **Standard_G3** \ + * **Standard_G4** \ + * **Standard_G5** \ + * **Standard_GS1** \ + * **Standard_GS2** \ + * **Standard_GS3** \ + * **Standard_GS4** \ + * **Standard_GS5** \ + * **Standard_GS4-8** \ + * **Standard_GS4-4** \ + * **Standard_GS5-16** \ + * **Standard_GS5-8** \ + * **Standard_H8** \ + * **Standard_H16** \ + * **Standard_H8m** \ + * **Standard_H16m** \ + * **Standard_H16r** \ + * **Standard_H16mr** \ + * **Standard_L4s** \ + * **Standard_L8s** \ + * **Standard_L16s** \ + * **Standard_L32s** \ + * **Standard_M64s** \ + * **Standard_M64ms** \ + * **Standard_M128s** \ + * **Standard_M128ms** \ + * **Standard_M64-32ms** \ + * **Standard_M64-16ms** \ + * **Standard_M128-64ms** \ + * **Standard_M128-32ms** \ + * **Standard_NC6** \ + * **Standard_NC12** \ + * **Standard_NC24** \ + * **Standard_NC24r** \ + * **Standard_NC6s_v2** \ + * **Standard_NC12s_v2** \ + * **Standard_NC24s_v2** \ + * **Standard_NC24rs_v2** \ + * **Standard_NC6s_v3** \ + * **Standard_NC12s_v3** \ + * **Standard_NC24s_v3** \ + * **Standard_NC24rs_v3** \ + * **Standard_ND6s** \ + * **Standard_ND12s** \ + * **Standard_ND24s** \ + * **Standard_ND24rs** \ + * **Standard_NV6** \ + * **Standard_NV12** \ + * **Standard_NV24** */ -export type OperatingSystemType = string; +export type VirtualMachineSizeTypes = string; -/** Known values of {@link ConsistencyModeTypes} that the service accepts. */ -export enum KnownConsistencyModeTypes { - CrashConsistent = "CrashConsistent", - FileSystemConsistent = "FileSystemConsistent", - ApplicationConsistent = "ApplicationConsistent" +/** Known values of {@link DiskDeleteOptionTypes} that the service accepts. */ +export enum KnownDiskDeleteOptionTypes { + Delete = "Delete", + Detach = "Detach" } /** - * Defines values for ConsistencyModeTypes. \ - * {@link KnownConsistencyModeTypes} can be used interchangeably with ConsistencyModeTypes, + * Defines values for DiskDeleteOptionTypes. \ + * {@link KnownDiskDeleteOptionTypes} can be used interchangeably with DiskDeleteOptionTypes, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **CrashConsistent** \ - * **FileSystemConsistent** \ - * **ApplicationConsistent** + * **Delete** \ + * **Detach** */ -export type ConsistencyModeTypes = string; +export type DiskDeleteOptionTypes = string; -/** Known values of {@link RestorePointCollectionExpandOptions} that the service accepts. */ -export enum KnownRestorePointCollectionExpandOptions { - RestorePoints = "restorePoints" +/** Known values of {@link DiskDetachOptionTypes} that the service accepts. */ +export enum KnownDiskDetachOptionTypes { + ForceDetach = "ForceDetach" } /** - * Defines values for RestorePointCollectionExpandOptions. \ - * {@link KnownRestorePointCollectionExpandOptions} can be used interchangeably with RestorePointCollectionExpandOptions, + * Defines values for DiskDetachOptionTypes. \ + * {@link KnownDiskDetachOptionTypes} can be used interchangeably with DiskDetachOptionTypes, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **restorePoints** + * **ForceDetach** */ -export type RestorePointCollectionExpandOptions = string; +export type DiskDetachOptionTypes = string; -/** Known values of {@link RestorePointExpandOptions} that the service accepts. */ -export enum KnownRestorePointExpandOptions { - InstanceView = "instanceView" +/** Known values of {@link IPVersions} that the service accepts. */ +export enum KnownIPVersions { + IPv4 = "IPv4", + IPv6 = "IPv6" } /** - * Defines values for RestorePointExpandOptions. \ - * {@link KnownRestorePointExpandOptions} can be used interchangeably with RestorePointExpandOptions, + * Defines values for IPVersions. \ + * {@link KnownIPVersions} can be used interchangeably with IPVersions, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **instanceView** + * **IPv4** \ + * **IPv6** */ -export type RestorePointExpandOptions = string; +export type IPVersions = string; -/** Known values of {@link CapacityReservationGroupInstanceViewTypes} that the service accepts. */ -export enum KnownCapacityReservationGroupInstanceViewTypes { - InstanceView = "instanceView" +/** Known values of {@link PublicIPAllocationMethod} that the service accepts. */ +export enum KnownPublicIPAllocationMethod { + Dynamic = "Dynamic", + Static = "Static" } /** - * Defines values for CapacityReservationGroupInstanceViewTypes. \ - * {@link KnownCapacityReservationGroupInstanceViewTypes} can be used interchangeably with CapacityReservationGroupInstanceViewTypes, + * Defines values for PublicIPAllocationMethod. \ + * {@link KnownPublicIPAllocationMethod} can be used interchangeably with PublicIPAllocationMethod, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **instanceView** + * **Dynamic** \ + * **Static** */ -export type CapacityReservationGroupInstanceViewTypes = string; +export type PublicIPAllocationMethod = string; -/** Known values of {@link ExpandTypesForGetCapacityReservationGroups} that the service accepts. */ -export enum KnownExpandTypesForGetCapacityReservationGroups { - VirtualMachineScaleSetVMsRef = "virtualMachineScaleSetVMs/$ref", - VirtualMachinesRef = "virtualMachines/$ref" +/** Known values of {@link HyperVGenerationType} that the service accepts. */ +export enum KnownHyperVGenerationType { + V1 = "V1", + V2 = "V2" } /** - * Defines values for ExpandTypesForGetCapacityReservationGroups. \ - * {@link KnownExpandTypesForGetCapacityReservationGroups} can be used interchangeably with ExpandTypesForGetCapacityReservationGroups, + * Defines values for HyperVGenerationType. \ + * {@link KnownHyperVGenerationType} can be used interchangeably with HyperVGenerationType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **virtualMachineScaleSetVMs\/$ref** \ - * **virtualMachines\/$ref** + * **V1** \ + * **V2** */ -export type ExpandTypesForGetCapacityReservationGroups = string; +export type HyperVGenerationType = string; -/** Known values of {@link CapacityReservationInstanceViewTypes} that the service accepts. */ -export enum KnownCapacityReservationInstanceViewTypes { - InstanceView = "instanceView" +/** Known values of {@link PatchOperationStatus} that the service accepts. */ +export enum KnownPatchOperationStatus { + Unknown = "Unknown", + InProgress = "InProgress", + Failed = "Failed", + Succeeded = "Succeeded", + CompletedWithWarnings = "CompletedWithWarnings" } /** - * Defines values for CapacityReservationInstanceViewTypes. \ - * {@link KnownCapacityReservationInstanceViewTypes} can be used interchangeably with CapacityReservationInstanceViewTypes, + * Defines values for PatchOperationStatus. \ + * {@link KnownPatchOperationStatus} can be used interchangeably with PatchOperationStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **instanceView** + * **Unknown** \ + * **InProgress** \ + * **Failed** \ + * **Succeeded** \ + * **CompletedWithWarnings** */ -export type CapacityReservationInstanceViewTypes = string; +export type PatchOperationStatus = string; /** Known values of {@link VMGuestPatchRebootBehavior} that the service accepts. */ export enum KnownVMGuestPatchRebootBehavior { @@ -7135,69 +7046,159 @@ export enum KnownPatchInstallationState { */ export type PatchInstallationState = string; -/** Known values of {@link ExpandTypesForGetVMScaleSets} that the service accepts. */ -export enum KnownExpandTypesForGetVMScaleSets { - UserData = "userData" +/** Known values of {@link HyperVGenerationTypes} that the service accepts. */ +export enum KnownHyperVGenerationTypes { + V1 = "V1", + V2 = "V2" } /** - * Defines values for ExpandTypesForGetVMScaleSets. \ - * {@link KnownExpandTypesForGetVMScaleSets} can be used interchangeably with ExpandTypesForGetVMScaleSets, + * Defines values for HyperVGenerationTypes. \ + * {@link KnownHyperVGenerationTypes} can be used interchangeably with HyperVGenerationTypes, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **userData** + * **V1** \ + * **V2** */ -export type ExpandTypesForGetVMScaleSets = string; +export type HyperVGenerationTypes = string; -/** Known values of {@link OrchestrationServiceNames} that the service accepts. */ -export enum KnownOrchestrationServiceNames { - AutomaticRepairs = "AutomaticRepairs", - DummyOrchestrationServiceName = "DummyOrchestrationServiceName" +/** Known values of {@link VmDiskTypes} that the service accepts. */ +export enum KnownVmDiskTypes { + None = "None", + Unmanaged = "Unmanaged" } /** - * Defines values for OrchestrationServiceNames. \ - * {@link KnownOrchestrationServiceNames} can be used interchangeably with OrchestrationServiceNames, + * Defines values for VmDiskTypes. \ + * {@link KnownVmDiskTypes} can be used interchangeably with VmDiskTypes, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AutomaticRepairs** \ - * **DummyOrchestrationServiceName** + * **None** \ + * **Unmanaged** */ -export type OrchestrationServiceNames = string; +export type VmDiskTypes = string; -/** Known values of {@link OrchestrationServiceState} that the service accepts. */ -export enum KnownOrchestrationServiceState { - NotRunning = "NotRunning", - Running = "Running", - Suspended = "Suspended" +/** Known values of {@link ProximityPlacementGroupType} that the service accepts. */ +export enum KnownProximityPlacementGroupType { + Standard = "Standard", + Ultra = "Ultra" } /** - * Defines values for OrchestrationServiceState. \ - * {@link KnownOrchestrationServiceState} can be used interchangeably with OrchestrationServiceState, + * Defines values for ProximityPlacementGroupType. \ + * {@link KnownProximityPlacementGroupType} can be used interchangeably with ProximityPlacementGroupType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Standard** \ + * **Ultra** + */ +export type ProximityPlacementGroupType = string; + +/** Known values of {@link OperatingSystemType} that the service accepts. */ +export enum KnownOperatingSystemType { + Windows = "Windows", + Linux = "Linux" +} + +/** + * Defines values for OperatingSystemType. \ + * {@link KnownOperatingSystemType} can be used interchangeably with OperatingSystemType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Windows** \ + * **Linux** + */ +export type OperatingSystemType = string; + +/** Known values of {@link ConsistencyModeTypes} that the service accepts. */ +export enum KnownConsistencyModeTypes { + CrashConsistent = "CrashConsistent", + FileSystemConsistent = "FileSystemConsistent", + ApplicationConsistent = "ApplicationConsistent" +} + +/** + * Defines values for ConsistencyModeTypes. \ + * {@link KnownConsistencyModeTypes} can be used interchangeably with ConsistencyModeTypes, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CrashConsistent** \ + * **FileSystemConsistent** \ + * **ApplicationConsistent** + */ +export type ConsistencyModeTypes = string; + +/** Known values of {@link RestorePointCollectionExpandOptions} that the service accepts. */ +export enum KnownRestorePointCollectionExpandOptions { + RestorePoints = "restorePoints" +} + +/** + * Defines values for RestorePointCollectionExpandOptions. \ + * {@link KnownRestorePointCollectionExpandOptions} can be used interchangeably with RestorePointCollectionExpandOptions, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **restorePoints** + */ +export type RestorePointCollectionExpandOptions = string; + +/** Known values of {@link RestorePointExpandOptions} that the service accepts. */ +export enum KnownRestorePointExpandOptions { + InstanceView = "instanceView" +} + +/** + * Defines values for RestorePointExpandOptions. \ + * {@link KnownRestorePointExpandOptions} can be used interchangeably with RestorePointExpandOptions, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **instanceView** + */ +export type RestorePointExpandOptions = string; + +/** Known values of {@link CapacityReservationGroupInstanceViewTypes} that the service accepts. */ +export enum KnownCapacityReservationGroupInstanceViewTypes { + InstanceView = "instanceView" +} + +/** + * Defines values for CapacityReservationGroupInstanceViewTypes. \ + * {@link KnownCapacityReservationGroupInstanceViewTypes} can be used interchangeably with CapacityReservationGroupInstanceViewTypes, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **instanceView** + */ +export type CapacityReservationGroupInstanceViewTypes = string; + +/** Known values of {@link ExpandTypesForGetCapacityReservationGroups} that the service accepts. */ +export enum KnownExpandTypesForGetCapacityReservationGroups { + VirtualMachineScaleSetVMsRef = "virtualMachineScaleSetVMs/$ref", + VirtualMachinesRef = "virtualMachines/$ref" +} + +/** + * Defines values for ExpandTypesForGetCapacityReservationGroups. \ + * {@link KnownExpandTypesForGetCapacityReservationGroups} can be used interchangeably with ExpandTypesForGetCapacityReservationGroups, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NotRunning** \ - * **Running** \ - * **Suspended** + * **virtualMachineScaleSetVMs\/$ref** \ + * **virtualMachines\/$ref** */ -export type OrchestrationServiceState = string; +export type ExpandTypesForGetCapacityReservationGroups = string; -/** Known values of {@link OrchestrationServiceStateAction} that the service accepts. */ -export enum KnownOrchestrationServiceStateAction { - Resume = "Resume", - Suspend = "Suspend" +/** Known values of {@link CapacityReservationInstanceViewTypes} that the service accepts. */ +export enum KnownCapacityReservationInstanceViewTypes { + InstanceView = "instanceView" } /** - * Defines values for OrchestrationServiceStateAction. \ - * {@link KnownOrchestrationServiceStateAction} can be used interchangeably with OrchestrationServiceStateAction, + * Defines values for CapacityReservationInstanceViewTypes. \ + * {@link KnownCapacityReservationInstanceViewTypes} can be used interchangeably with CapacityReservationInstanceViewTypes, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Resume** \ - * **Suspend** + * **instanceView** */ -export type OrchestrationServiceStateAction = string; +export type CapacityReservationInstanceViewTypes = string; /** Known values of {@link ExecutionState} that the service accepts. */ export enum KnownExecutionState { @@ -7285,22 +7286,6 @@ export enum KnownHyperVGeneration { */ export type HyperVGeneration = string; -/** Known values of {@link Architecture} that the service accepts. */ -export enum KnownArchitecture { - X64 = "x64", - Arm64 = "Arm64" -} - -/** - * Defines values for Architecture. \ - * {@link KnownArchitecture} can be used interchangeably with Architecture, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **x64** \ - * **Arm64** - */ -export type Architecture = string; - /** Known values of {@link DiskCreateOption} that the service accepts. */ export enum KnownDiskCreateOption { /** Create an empty data disk of a size given by diskSizeGB. */ @@ -7463,24 +7448,6 @@ export enum KnownPublicNetworkAccess { */ export type PublicNetworkAccess = string; -/** Known values of {@link DataAccessAuthMode} that the service accepts. */ -export enum KnownDataAccessAuthMode { - /** When export/upload URL is used, the system checks if the user has an identity in Azure Active Directory and has necessary permissions to export/upload the data. Please refer to aka.ms/DisksAzureADAuth. */ - AzureActiveDirectory = "AzureActiveDirectory", - /** No additional authentication would be performed when accessing export/upload URL. */ - None = "None" -} - -/** - * Defines values for DataAccessAuthMode. \ - * {@link KnownDataAccessAuthMode} can be used interchangeably with DataAccessAuthMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AzureActiveDirectory**: When export\/upload URL is used, the system checks if the user has an identity in Azure Active Directory and has necessary permissions to export\/upload the data. Please refer to aka.ms\/DisksAzureADAuth. \ - * **None**: No additional authentication would be performed when accessing export\/upload URL. - */ -export type DataAccessAuthMode = string; - /** Known values of {@link AccessLevel} that the service accepts. */ export enum KnownAccessLevel { None = "None", @@ -7956,267 +7923,116 @@ export enum KnownAvailabilitySetSkuTypes { /** * Defines values for AvailabilitySetSkuTypes. \ * {@link KnownAvailabilitySetSkuTypes} can be used interchangeably with AvailabilitySetSkuTypes, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Classic** \ - * **Aligned** - */ -export type AvailabilitySetSkuTypes = string; -/** Defines values for StatusLevelTypes. */ -export type StatusLevelTypes = "Info" | "Warning" | "Error"; -/** Defines values for InstanceViewTypes. */ -export type InstanceViewTypes = "instanceView" | "userData"; -/** Defines values for DedicatedHostLicenseTypes. */ -export type DedicatedHostLicenseTypes = - | "None" - | "Windows_Server_Hybrid" - | "Windows_Server_Perpetual"; -/** Defines values for OperatingSystemTypes. */ -export type OperatingSystemTypes = "Windows" | "Linux"; -/** Defines values for CachingTypes. */ -export type CachingTypes = "None" | "ReadOnly" | "ReadWrite"; -/** Defines values for SettingNames. */ -export type SettingNames = "AutoLogon" | "FirstLogonCommands"; -/** Defines values for ProtocolTypes. */ -export type ProtocolTypes = "Http" | "Https"; -/** Defines values for MaintenanceOperationResultCodeTypes. */ -export type MaintenanceOperationResultCodeTypes = - | "None" - | "RetryLater" - | "MaintenanceAborted" - | "MaintenanceCompleted"; -/** Defines values for ResourceIdentityType. */ -export type ResourceIdentityType = - | "SystemAssigned" - | "UserAssigned" - | "SystemAssigned, UserAssigned" - | "None"; -/** Defines values for UpgradeMode. */ -export type UpgradeMode = "Automatic" | "Manual" | "Rolling"; -/** Defines values for OperatingSystemStateTypes. */ -export type OperatingSystemStateTypes = "Generalized" | "Specialized"; -/** Defines values for VirtualMachineScaleSetSkuScaleType. */ -export type VirtualMachineScaleSetSkuScaleType = "Automatic" | "None"; -/** Defines values for UpgradeState. */ -export type UpgradeState = - | "RollingForward" - | "Cancelled" - | "Completed" - | "Faulted"; -/** Defines values for UpgradeOperationInvoker. */ -export type UpgradeOperationInvoker = "Unknown" | "User" | "Platform"; -/** Defines values for RollingUpgradeStatusCode. */ -export type RollingUpgradeStatusCode = - | "RollingForward" - | "Cancelled" - | "Completed" - | "Faulted"; -/** Defines values for RollingUpgradeActionType. */ -export type RollingUpgradeActionType = "Start" | "Cancel"; -/** Defines values for IntervalInMins. */ -export type IntervalInMins = - | "ThreeMins" - | "FiveMins" - | "ThirtyMins" - | "SixtyMins"; -/** Defines values for ResourceSkuCapacityScaleType. */ -export type ResourceSkuCapacityScaleType = "Automatic" | "Manual" | "None"; -/** Defines values for ResourceSkuRestrictionsType. */ -export type ResourceSkuRestrictionsType = "Location" | "Zone"; -/** Defines values for ResourceSkuRestrictionsReasonCode. */ -export type ResourceSkuRestrictionsReasonCode = - | "QuotaId" - | "NotAvailableForSubscription"; -/** Defines values for HostCaching. */ -export type HostCaching = "None" | "ReadOnly" | "ReadWrite"; - -/** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type OperationsListResponse = ComputeOperationListResult; - -/** Optional parameters. */ -export interface AvailabilitySetsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type AvailabilitySetsCreateOrUpdateResponse = AvailabilitySet; - -/** Optional parameters. */ -export interface AvailabilitySetsUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type AvailabilitySetsUpdateResponse = AvailabilitySet; - -/** Optional parameters. */ -export interface AvailabilitySetsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface AvailabilitySetsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type AvailabilitySetsGetResponse = AvailabilitySet; - -/** Optional parameters. */ -export interface AvailabilitySetsListBySubscriptionOptionalParams - extends coreClient.OperationOptions { - /** The expand expression to apply to the operation. Allowed values are 'instanceView'. */ - expand?: string; -} - -/** Contains response data for the listBySubscription operation. */ -export type AvailabilitySetsListBySubscriptionResponse = AvailabilitySetListResult; - -/** Optional parameters. */ -export interface AvailabilitySetsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type AvailabilitySetsListResponse = AvailabilitySetListResult; - -/** Optional parameters. */ -export interface AvailabilitySetsListAvailableSizesOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listAvailableSizes operation. */ -export type AvailabilitySetsListAvailableSizesResponse = VirtualMachineSizeListResult; - -/** Optional parameters. */ -export interface AvailabilitySetsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions { - /** The expand expression to apply to the operation. Allowed values are 'instanceView'. */ - expand?: string; -} - -/** Contains response data for the listBySubscriptionNext operation. */ -export type AvailabilitySetsListBySubscriptionNextResponse = AvailabilitySetListResult; - -/** Optional parameters. */ -export interface AvailabilitySetsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type AvailabilitySetsListNextResponse = AvailabilitySetListResult; - -/** Optional parameters. */ -export interface ProximityPlacementGroupsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type ProximityPlacementGroupsCreateOrUpdateResponse = ProximityPlacementGroup; - -/** Optional parameters. */ -export interface ProximityPlacementGroupsUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type ProximityPlacementGroupsUpdateResponse = ProximityPlacementGroup; - -/** Optional parameters. */ -export interface ProximityPlacementGroupsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface ProximityPlacementGroupsGetOptionalParams - extends coreClient.OperationOptions { - /** includeColocationStatus=true enables fetching the colocation status of all the resources in the proximity placement group. */ - includeColocationStatus?: string; -} - -/** Contains response data for the get operation. */ -export type ProximityPlacementGroupsGetResponse = ProximityPlacementGroup; - -/** Optional parameters. */ -export interface ProximityPlacementGroupsListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscription operation. */ -export type ProximityPlacementGroupsListBySubscriptionResponse = ProximityPlacementGroupListResult; - -/** Optional parameters. */ -export interface ProximityPlacementGroupsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type ProximityPlacementGroupsListByResourceGroupResponse = ProximityPlacementGroupListResult; - -/** Optional parameters. */ -export interface ProximityPlacementGroupsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscriptionNext operation. */ -export type ProximityPlacementGroupsListBySubscriptionNextResponse = ProximityPlacementGroupListResult; - -/** Optional parameters. */ -export interface ProximityPlacementGroupsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type ProximityPlacementGroupsListByResourceGroupNextResponse = ProximityPlacementGroupListResult; - -/** Optional parameters. */ -export interface DedicatedHostGroupsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type DedicatedHostGroupsCreateOrUpdateResponse = DedicatedHostGroup; - -/** Optional parameters. */ -export interface DedicatedHostGroupsUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type DedicatedHostGroupsUpdateResponse = DedicatedHostGroup; + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Classic** \ + * **Aligned** + */ +export type AvailabilitySetSkuTypes = string; +/** Defines values for UpgradeMode. */ +export type UpgradeMode = "Automatic" | "Manual" | "Rolling"; +/** Defines values for SettingNames. */ +export type SettingNames = "AutoLogon" | "FirstLogonCommands"; +/** Defines values for ProtocolTypes. */ +export type ProtocolTypes = "Http" | "Https"; +/** Defines values for CachingTypes. */ +export type CachingTypes = "None" | "ReadOnly" | "ReadWrite"; +/** Defines values for OperatingSystemTypes. */ +export type OperatingSystemTypes = "Windows" | "Linux"; +/** Defines values for ResourceIdentityType. */ +export type ResourceIdentityType = + | "SystemAssigned" + | "UserAssigned" + | "SystemAssigned, UserAssigned" + | "None"; +/** Defines values for StatusLevelTypes. */ +export type StatusLevelTypes = "Info" | "Warning" | "Error"; +/** Defines values for VirtualMachineScaleSetSkuScaleType. */ +export type VirtualMachineScaleSetSkuScaleType = "Automatic" | "None"; +/** Defines values for UpgradeState. */ +export type UpgradeState = + | "RollingForward" + | "Cancelled" + | "Completed" + | "Faulted"; +/** Defines values for UpgradeOperationInvoker. */ +export type UpgradeOperationInvoker = "Unknown" | "User" | "Platform"; +/** Defines values for RollingUpgradeStatusCode. */ +export type RollingUpgradeStatusCode = + | "RollingForward" + | "Cancelled" + | "Completed" + | "Faulted"; +/** Defines values for RollingUpgradeActionType. */ +export type RollingUpgradeActionType = "Start" | "Cancel"; +/** Defines values for MaintenanceOperationResultCodeTypes. */ +export type MaintenanceOperationResultCodeTypes = + | "None" + | "RetryLater" + | "MaintenanceAborted" + | "MaintenanceCompleted"; +/** Defines values for InstanceViewTypes. */ +export type InstanceViewTypes = "instanceView" | "userData"; +/** Defines values for DedicatedHostLicenseTypes. */ +export type DedicatedHostLicenseTypes = + | "None" + | "Windows_Server_Hybrid" + | "Windows_Server_Perpetual"; +/** Defines values for OperatingSystemStateTypes. */ +export type OperatingSystemStateTypes = "Generalized" | "Specialized"; +/** Defines values for IntervalInMins. */ +export type IntervalInMins = + | "ThreeMins" + | "FiveMins" + | "ThirtyMins" + | "SixtyMins"; +/** Defines values for ResourceSkuCapacityScaleType. */ +export type ResourceSkuCapacityScaleType = "Automatic" | "Manual" | "None"; +/** Defines values for ResourceSkuRestrictionsType. */ +export type ResourceSkuRestrictionsType = "Location" | "Zone"; +/** Defines values for ResourceSkuRestrictionsReasonCode. */ +export type ResourceSkuRestrictionsReasonCode = + | "QuotaId" + | "NotAvailableForSubscription"; +/** Defines values for HostCaching. */ +export type HostCaching = "None" | "ReadOnly" | "ReadWrite"; /** Optional parameters. */ -export interface DedicatedHostGroupsDeleteOptionalParams +export interface OperationsListOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface DedicatedHostGroupsGetOptionalParams - extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated hosts under the dedicated host group. 'UserData' is not supported for dedicated host group. */ - expand?: InstanceViewTypes; -} - -/** Contains response data for the get operation. */ -export type DedicatedHostGroupsGetResponse = DedicatedHostGroup; +/** Contains response data for the list operation. */ +export type OperationsListResponse = ComputeOperationListResult; /** Optional parameters. */ -export interface DedicatedHostGroupsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} +export interface UsageListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type DedicatedHostGroupsListByResourceGroupResponse = DedicatedHostGroupListResult; +/** Contains response data for the list operation. */ +export type UsageListResponse = ListUsagesResult; /** Optional parameters. */ -export interface DedicatedHostGroupsListBySubscriptionOptionalParams +export interface UsageListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupListResult; +/** Contains response data for the listNext operation. */ +export type UsageListNextResponse = ListUsagesResult; /** Optional parameters. */ -export interface DedicatedHostGroupsListByResourceGroupNextOptionalParams +export interface VirtualMachineSizesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type DedicatedHostGroupsListByResourceGroupNextResponse = DedicatedHostGroupListResult; +/** Contains response data for the list operation. */ +export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult; /** Optional parameters. */ -export interface DedicatedHostGroupsListBySubscriptionNextOptionalParams +export interface VirtualMachineScaleSetsListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGroupListResult; +/** Contains response data for the listByLocation operation. */ +export type VirtualMachineScaleSetsListByLocationResponse = VirtualMachineScaleSetListResult; /** Optional parameters. */ -export interface DedicatedHostsCreateOrUpdateOptionalParams +export interface VirtualMachineScaleSetsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8225,10 +8041,10 @@ export interface DedicatedHostsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type DedicatedHostsCreateOrUpdateResponse = DedicatedHost; +export type VirtualMachineScaleSetsCreateOrUpdateResponse = VirtualMachineScaleSet; /** Optional parameters. */ -export interface DedicatedHostsUpdateOptionalParams +export interface VirtualMachineScaleSetsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8237,11 +8053,13 @@ export interface DedicatedHostsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type DedicatedHostsUpdateResponse = DedicatedHost; +export type VirtualMachineScaleSetsUpdateResponse = VirtualMachineScaleSet; /** Optional parameters. */ -export interface DedicatedHostsDeleteOptionalParams +export interface VirtualMachineScaleSetsDeleteOptionalParams extends coreClient.OperationOptions { + /** Optional parameter to force delete a VM scale set. (Feature in Preview) */ + forceDeletion?: boolean; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -8249,25 +8067,20 @@ export interface DedicatedHostsDeleteOptionalParams } /** Optional parameters. */ -export interface DedicatedHostsGetOptionalParams +export interface VirtualMachineScaleSetsGetOptionalParams extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated host. 'UserData' is not supported for dedicated host. */ - expand?: InstanceViewTypes; + /** The expand expression to apply on the operation. 'UserData' retrieves the UserData property of the VM scale set that was provided by the user during the VM scale set Create/Update operation */ + expand?: ExpandTypesForGetVMScaleSets; } /** Contains response data for the get operation. */ -export type DedicatedHostsGetResponse = DedicatedHost; - -/** Optional parameters. */ -export interface DedicatedHostsListByHostGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByHostGroup operation. */ -export type DedicatedHostsListByHostGroupResponse = DedicatedHostListResult; +export type VirtualMachineScaleSetsGetResponse = VirtualMachineScaleSet; /** Optional parameters. */ -export interface DedicatedHostsRestartOptionalParams +export interface VirtualMachineScaleSetsDeallocateOptionalParams extends coreClient.OperationOptions { + /** A list of virtual machine instance IDs from the VM scale set. */ + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -8275,112 +8088,110 @@ export interface DedicatedHostsRestartOptionalParams } /** Optional parameters. */ -export interface DedicatedHostsListByHostGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByHostGroupNext operation. */ -export type DedicatedHostsListByHostGroupNextResponse = DedicatedHostListResult; - -/** Optional parameters. */ -export interface SshPublicKeysListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscription operation. */ -export type SshPublicKeysListBySubscriptionResponse = SshPublicKeysGroupListResult; - -/** Optional parameters. */ -export interface SshPublicKeysListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListResult; +export interface VirtualMachineScaleSetsDeleteInstancesOptionalParams + extends coreClient.OperationOptions { + /** Optional parameter to force delete virtual machines from the VM scale set. (Feature in Preview) */ + forceDeletion?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface SshPublicKeysCreateOptionalParams +export interface VirtualMachineScaleSetsGetInstanceViewOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type SshPublicKeysCreateResponse = SshPublicKeyResource; +/** Contains response data for the getInstanceView operation. */ +export type VirtualMachineScaleSetsGetInstanceViewResponse = VirtualMachineScaleSetInstanceView; /** Optional parameters. */ -export interface SshPublicKeysUpdateOptionalParams +export interface VirtualMachineScaleSetsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type SshPublicKeysUpdateResponse = SshPublicKeyResource; - -/** Optional parameters. */ -export interface SshPublicKeysDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type VirtualMachineScaleSetsListResponse = VirtualMachineScaleSetListResult; /** Optional parameters. */ -export interface SshPublicKeysGetOptionalParams +export interface VirtualMachineScaleSetsListAllOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SshPublicKeysGetResponse = SshPublicKeyResource; +/** Contains response data for the listAll operation. */ +export type VirtualMachineScaleSetsListAllResponse = VirtualMachineScaleSetListWithLinkResult; /** Optional parameters. */ -export interface SshPublicKeysGenerateKeyPairOptionalParams +export interface VirtualMachineScaleSetsListSkusOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateKeyPair operation. */ -export type SshPublicKeysGenerateKeyPairResponse = SshPublicKeyGenerateKeyPairResult; +/** Contains response data for the listSkus operation. */ +export type VirtualMachineScaleSetsListSkusResponse = VirtualMachineScaleSetListSkusResult; /** Optional parameters. */ -export interface SshPublicKeysListBySubscriptionNextOptionalParams +export interface VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type SshPublicKeysListBySubscriptionNextResponse = SshPublicKeysGroupListResult; +/** Contains response data for the getOSUpgradeHistory operation. */ +export type VirtualMachineScaleSetsGetOSUpgradeHistoryResponse = VirtualMachineScaleSetListOSUpgradeHistory; /** Optional parameters. */ -export interface SshPublicKeysListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type SshPublicKeysListByResourceGroupNextResponse = SshPublicKeysGroupListResult; +export interface VirtualMachineScaleSetsPowerOffOptionalParams + extends coreClient.OperationOptions { + /** A list of virtual machine instance IDs from the VM scale set. */ + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + /** The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified */ + skipShutdown?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface VirtualMachineExtensionImagesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionImage; +export interface VirtualMachineScaleSetsRestartOptionalParams + extends coreClient.OperationOptions { + /** A list of virtual machine instance IDs from the VM scale set. */ + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface VirtualMachineExtensionImagesListTypesOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listTypes operation. */ -export type VirtualMachineExtensionImagesListTypesResponse = VirtualMachineExtensionImage[]; +export interface VirtualMachineScaleSetsStartOptionalParams + extends coreClient.OperationOptions { + /** A list of virtual machine instance IDs from the VM scale set. */ + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface VirtualMachineExtensionImagesListVersionsOptionalParams +export interface VirtualMachineScaleSetsRedeployOptionalParams extends coreClient.OperationOptions { - /** The filter to apply on the operation. */ - filter?: string; - top?: number; - orderby?: string; + /** A list of virtual machine instance IDs from the VM scale set. */ + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listVersions operation. */ -export type VirtualMachineExtensionImagesListVersionsResponse = VirtualMachineExtensionImage[]; - /** Optional parameters. */ -export interface VirtualMachineExtensionsCreateOrUpdateOptionalParams +export interface VirtualMachineScaleSetsPerformMaintenanceOptionalParams extends coreClient.OperationOptions { + /** A list of virtual machine instance IDs from the VM scale set. */ + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineExtensionsCreateOrUpdateResponse = VirtualMachineExtension; - /** Optional parameters. */ -export interface VirtualMachineExtensionsUpdateOptionalParams +export interface VirtualMachineScaleSetsUpdateInstancesOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8388,12 +8199,11 @@ export interface VirtualMachineExtensionsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type VirtualMachineExtensionsUpdateResponse = VirtualMachineExtension; - /** Optional parameters. */ -export interface VirtualMachineExtensionsDeleteOptionalParams +export interface VirtualMachineScaleSetsReimageOptionalParams extends coreClient.OperationOptions { + /** Parameters for Reimaging VM ScaleSet. */ + vmScaleSetReimageInput?: VirtualMachineScaleSetReimageParameters; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -8401,129 +8211,153 @@ export interface VirtualMachineExtensionsDeleteOptionalParams } /** Optional parameters. */ -export interface VirtualMachineExtensionsGetOptionalParams +export interface VirtualMachineScaleSetsReimageAllOptionalParams extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. */ - expand?: string; + /** A list of virtual machine instance IDs from the VM scale set. */ + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the get operation. */ -export type VirtualMachineExtensionsGetResponse = VirtualMachineExtension; - /** Optional parameters. */ -export interface VirtualMachineExtensionsListOptionalParams +export interface VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. */ - expand?: string; + /** The zone in which the manual recovery walk is requested for cross zone virtual machine scale set */ + zone?: string; + /** The placement group id for which the manual recovery walk is requested. */ + placementGroupId?: string; } -/** Contains response data for the list operation. */ -export type VirtualMachineExtensionsListResponse = VirtualMachineExtensionsListResult; +/** Contains response data for the forceRecoveryServiceFabricPlatformUpdateDomainWalk operation. */ +export type VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse = RecoveryWalkResponse; /** Optional parameters. */ -export interface VirtualMachineImagesGetOptionalParams +export interface VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type VirtualMachineImagesGetResponse = VirtualMachineImage; - /** Optional parameters. */ -export interface VirtualMachineImagesListOptionalParams +export interface VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. */ - expand?: string; - top?: number; - orderby?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the list operation. */ -export type VirtualMachineImagesListResponse = VirtualMachineImageResource[]; +/** Optional parameters. */ +export interface VirtualMachineScaleSetsListByLocationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByLocationNext operation. */ +export type VirtualMachineScaleSetsListByLocationNextResponse = VirtualMachineScaleSetListResult; /** Optional parameters. */ -export interface VirtualMachineImagesListOffersOptionalParams +export interface VirtualMachineScaleSetsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listOffers operation. */ -export type VirtualMachineImagesListOffersResponse = VirtualMachineImageResource[]; +/** Contains response data for the listNext operation. */ +export type VirtualMachineScaleSetsListNextResponse = VirtualMachineScaleSetListResult; /** Optional parameters. */ -export interface VirtualMachineImagesListPublishersOptionalParams +export interface VirtualMachineScaleSetsListAllNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listPublishers operation. */ -export type VirtualMachineImagesListPublishersResponse = VirtualMachineImageResource[]; +/** Contains response data for the listAllNext operation. */ +export type VirtualMachineScaleSetsListAllNextResponse = VirtualMachineScaleSetListWithLinkResult; /** Optional parameters. */ -export interface VirtualMachineImagesListSkusOptionalParams +export interface VirtualMachineScaleSetsListSkusNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSkus operation. */ -export type VirtualMachineImagesListSkusResponse = VirtualMachineImageResource[]; +/** Contains response data for the listSkusNext operation. */ +export type VirtualMachineScaleSetsListSkusNextResponse = VirtualMachineScaleSetListSkusResult; /** Optional parameters. */ -export interface VirtualMachineImagesEdgeZoneGetOptionalParams +export interface VirtualMachineScaleSetsGetOSUpgradeHistoryNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type VirtualMachineImagesEdgeZoneGetResponse = VirtualMachineImage; +/** Contains response data for the getOSUpgradeHistoryNext operation. */ +export type VirtualMachineScaleSetsGetOSUpgradeHistoryNextResponse = VirtualMachineScaleSetListOSUpgradeHistory; /** Optional parameters. */ -export interface VirtualMachineImagesEdgeZoneListOptionalParams +export interface VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. */ - expand?: string; - /** An integer value specifying the number of images to return that matches supplied values. */ - top?: number; - /** Specifies the order of the results returned. Formatted as an OData query. */ - orderby?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the list operation. */ -export type VirtualMachineImagesEdgeZoneListResponse = VirtualMachineImageResource[]; +/** Contains response data for the createOrUpdate operation. */ +export type VirtualMachineScaleSetExtensionsCreateOrUpdateResponse = VirtualMachineScaleSetExtension; /** Optional parameters. */ -export interface VirtualMachineImagesEdgeZoneListOffersOptionalParams - extends coreClient.OperationOptions {} +export interface VirtualMachineScaleSetExtensionsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listOffers operation. */ -export type VirtualMachineImagesEdgeZoneListOffersResponse = VirtualMachineImageResource[]; +/** Contains response data for the update operation. */ +export type VirtualMachineScaleSetExtensionsUpdateResponse = VirtualMachineScaleSetExtension; /** Optional parameters. */ -export interface VirtualMachineImagesEdgeZoneListPublishersOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listPublishers operation. */ -export type VirtualMachineImagesEdgeZoneListPublishersResponse = VirtualMachineImageResource[]; +export interface VirtualMachineScaleSetExtensionsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface VirtualMachineImagesEdgeZoneListSkusOptionalParams - extends coreClient.OperationOptions {} +export interface VirtualMachineScaleSetExtensionsGetOptionalParams + extends coreClient.OperationOptions { + /** The expand expression to apply on the operation. */ + expand?: string; +} -/** Contains response data for the listSkus operation. */ -export type VirtualMachineImagesEdgeZoneListSkusResponse = VirtualMachineImageResource[]; +/** Contains response data for the get operation. */ +export type VirtualMachineScaleSetExtensionsGetResponse = VirtualMachineScaleSetExtension; /** Optional parameters. */ -export interface UsageListOptionalParams extends coreClient.OperationOptions {} +export interface VirtualMachineScaleSetExtensionsListOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type UsageListResponse = ListUsagesResult; +export type VirtualMachineScaleSetExtensionsListResponse = VirtualMachineScaleSetExtensionListResult; /** Optional parameters. */ -export interface UsageListNextOptionalParams +export interface VirtualMachineScaleSetExtensionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type UsageListNextResponse = ListUsagesResult; +export type VirtualMachineScaleSetExtensionsListNextResponse = VirtualMachineScaleSetExtensionListResult; /** Optional parameters. */ -export interface VirtualMachinesListByLocationOptionalParams - extends coreClient.OperationOptions {} +export interface VirtualMachineScaleSetRollingUpgradesCancelOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByLocation operation. */ -export type VirtualMachinesListByLocationResponse = VirtualMachineListResult; +/** Optional parameters. */ +export interface VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface VirtualMachinesCaptureOptionalParams +export interface VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8531,11 +8365,15 @@ export interface VirtualMachinesCaptureOptionalParams resumeFrom?: string; } -/** Contains response data for the capture operation. */ -export type VirtualMachinesCaptureResponse = VirtualMachineCaptureResult; +/** Optional parameters. */ +export interface VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getLatest operation. */ +export type VirtualMachineScaleSetRollingUpgradesGetLatestResponse = RollingUpgradeStatusInfo; /** Optional parameters. */ -export interface VirtualMachinesCreateOrUpdateOptionalParams +export interface VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8544,10 +8382,10 @@ export interface VirtualMachinesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachinesCreateOrUpdateResponse = VirtualMachine; +export type VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse = VirtualMachineScaleSetVMExtension; /** Optional parameters. */ -export interface VirtualMachinesUpdateOptionalParams +export interface VirtualMachineScaleSetVMExtensionsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8556,13 +8394,11 @@ export interface VirtualMachinesUpdateOptionalParams } /** Contains response data for the update operation. */ -export type VirtualMachinesUpdateResponse = VirtualMachine; +export type VirtualMachineScaleSetVMExtensionsUpdateResponse = VirtualMachineScaleSetVMExtension; /** Optional parameters. */ -export interface VirtualMachinesDeleteOptionalParams +export interface VirtualMachineScaleSetVMExtensionsDeleteOptionalParams extends coreClient.OperationOptions { - /** Optional parameter to force delete virtual machines. */ - forceDeletion?: boolean; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -8570,25 +8406,30 @@ export interface VirtualMachinesDeleteOptionalParams } /** Optional parameters. */ -export interface VirtualMachinesGetOptionalParams +export interface VirtualMachineScaleSetVMExtensionsGetOptionalParams extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the virtual machine that is managed by the platform and can change outside of control plane operations. 'UserData' retrieves the UserData property as part of the VM model view that was provided by the user during the VM Create/Update operation. */ - expand?: InstanceViewTypes; + /** The expand expression to apply on the operation. */ + expand?: string; } /** Contains response data for the get operation. */ -export type VirtualMachinesGetResponse = VirtualMachine; +export type VirtualMachineScaleSetVMExtensionsGetResponse = VirtualMachineScaleSetVMExtension; /** Optional parameters. */ -export interface VirtualMachinesInstanceViewOptionalParams - extends coreClient.OperationOptions {} +export interface VirtualMachineScaleSetVMExtensionsListOptionalParams + extends coreClient.OperationOptions { + /** The expand expression to apply on the operation. */ + expand?: string; +} -/** Contains response data for the instanceView operation. */ -export type VirtualMachinesInstanceViewResponse = VirtualMachineInstanceView; +/** Contains response data for the list operation. */ +export type VirtualMachineScaleSetVMExtensionsListResponse = VirtualMachineScaleSetVMExtensionsListResult; /** Optional parameters. */ -export interface VirtualMachinesConvertToManagedDisksOptionalParams +export interface VirtualMachineScaleSetVMsReimageOptionalParams extends coreClient.OperationOptions { + /** Parameters for the Reimaging Virtual machine in ScaleSet. */ + vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -8596,10 +8437,8 @@ export interface VirtualMachinesConvertToManagedDisksOptionalParams } /** Optional parameters. */ -export interface VirtualMachinesDeallocateOptionalParams +export interface VirtualMachineScaleSetVMsReimageAllOptionalParams extends coreClient.OperationOptions { - /** Optional parameter to hibernate a virtual machine. (Feature in Preview) */ - hibernate?: boolean; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -8607,40 +8446,70 @@ export interface VirtualMachinesDeallocateOptionalParams } /** Optional parameters. */ -export interface VirtualMachinesGeneralizeOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface VirtualMachinesListOptionalParams +export interface VirtualMachineScaleSetVMsDeallocateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface VirtualMachineScaleSetVMsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type VirtualMachineScaleSetVMsUpdateResponse = VirtualMachineScaleSetVM; + +/** Optional parameters. */ +export interface VirtualMachineScaleSetVMsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview) */ + forceDeletion?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface VirtualMachineScaleSetVMsGetOptionalParams extends coreClient.OperationOptions { - /** The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' */ - filter?: string; + /** The expand expression to apply on the operation. 'InstanceView' will retrieve the instance view of the virtual machine. 'UserData' will retrieve the UserData of the virtual machine. */ + expand?: InstanceViewTypes; } -/** Contains response data for the list operation. */ -export type VirtualMachinesListResponse = VirtualMachineListResult; +/** Contains response data for the get operation. */ +export type VirtualMachineScaleSetVMsGetResponse = VirtualMachineScaleSetVM; /** Optional parameters. */ -export interface VirtualMachinesListAllOptionalParams - extends coreClient.OperationOptions { - /** The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' */ - filter?: string; - /** statusOnly=true enables fetching run time status of all Virtual Machines in the subscription. */ - statusOnly?: string; -} +export interface VirtualMachineScaleSetVMsGetInstanceViewOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listAll operation. */ -export type VirtualMachinesListAllResponse = VirtualMachineListResult; +/** Contains response data for the getInstanceView operation. */ +export type VirtualMachineScaleSetVMsGetInstanceViewResponse = VirtualMachineScaleSetVMInstanceView; /** Optional parameters. */ -export interface VirtualMachinesListAvailableSizesOptionalParams - extends coreClient.OperationOptions {} +export interface VirtualMachineScaleSetVMsListOptionalParams + extends coreClient.OperationOptions { + /** The expand expression to apply to the operation. Allowed values are 'instanceView'. */ + expand?: string; + /** The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'. */ + filter?: string; + /** The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'. */ + select?: string; +} -/** Contains response data for the listAvailableSizes operation. */ -export type VirtualMachinesListAvailableSizesResponse = VirtualMachineSizeListResult; +/** Contains response data for the list operation. */ +export type VirtualMachineScaleSetVMsListResponse = VirtualMachineScaleSetVMListResult; /** Optional parameters. */ -export interface VirtualMachinesPowerOffOptionalParams +export interface VirtualMachineScaleSetVMsPowerOffOptionalParams extends coreClient.OperationOptions { /** The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified */ skipShutdown?: boolean; @@ -8651,7 +8520,7 @@ export interface VirtualMachinesPowerOffOptionalParams } /** Optional parameters. */ -export interface VirtualMachinesReapplyOptionalParams +export interface VirtualMachineScaleSetVMsRestartOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8660,7 +8529,7 @@ export interface VirtualMachinesReapplyOptionalParams } /** Optional parameters. */ -export interface VirtualMachinesRestartOptionalParams +export interface VirtualMachineScaleSetVMsStartOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8669,7 +8538,7 @@ export interface VirtualMachinesRestartOptionalParams } /** Optional parameters. */ -export interface VirtualMachinesStartOptionalParams +export interface VirtualMachineScaleSetVMsRedeployOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8678,19 +8547,18 @@ export interface VirtualMachinesStartOptionalParams } /** Optional parameters. */ -export interface VirtualMachinesRedeployOptionalParams +export interface VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes.

    NOTE: If not specified, SAS URIs will be generated with a default expiration duration of 120 minutes. */ + sasUriExpirationTimeInMinutes?: number; } +/** Contains response data for the retrieveBootDiagnosticsData operation. */ +export type VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse = RetrieveBootDiagnosticsDataResult; + /** Optional parameters. */ -export interface VirtualMachinesReimageOptionalParams +export interface VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams extends coreClient.OperationOptions { - /** Parameters supplied to the Reimage Virtual Machine operation. */ - parameters?: VirtualMachineReimageParameters; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -8698,17 +8566,11 @@ export interface VirtualMachinesReimageOptionalParams } /** Optional parameters. */ -export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams - extends coreClient.OperationOptions { - /** Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes.

    NOTE: If not specified, SAS URIs will be generated with a default expiration duration of 120 minutes. */ - sasUriExpirationTimeInMinutes?: number; -} - -/** Contains response data for the retrieveBootDiagnosticsData operation. */ -export type VirtualMachinesRetrieveBootDiagnosticsDataResponse = RetrieveBootDiagnosticsDataResult; +export interface VirtualMachineScaleSetVMsSimulateEvictionOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface VirtualMachinesPerformMaintenanceOptionalParams +export interface VirtualMachineScaleSetVMsRunCommandOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8716,12 +8578,25 @@ export interface VirtualMachinesPerformMaintenanceOptionalParams resumeFrom?: string; } +/** Contains response data for the runCommand operation. */ +export type VirtualMachineScaleSetVMsRunCommandResponse = RunCommandResult; + /** Optional parameters. */ -export interface VirtualMachinesSimulateEvictionOptionalParams - extends coreClient.OperationOptions {} +export interface VirtualMachineScaleSetVMsListNextOptionalParams + extends coreClient.OperationOptions { + /** The expand expression to apply to the operation. Allowed values are 'instanceView'. */ + expand?: string; + /** The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'. */ + filter?: string; + /** The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'. */ + select?: string; +} + +/** Contains response data for the listNext operation. */ +export type VirtualMachineScaleSetVMsListNextResponse = VirtualMachineScaleSetVMListResult; /** Optional parameters. */ -export interface VirtualMachinesAssessPatchesOptionalParams +export interface VirtualMachineExtensionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8729,11 +8604,11 @@ export interface VirtualMachinesAssessPatchesOptionalParams resumeFrom?: string; } -/** Contains response data for the assessPatches operation. */ -export type VirtualMachinesAssessPatchesResponse = VirtualMachineAssessPatchesResult; +/** Contains response data for the createOrUpdate operation. */ +export type VirtualMachineExtensionsCreateOrUpdateResponse = VirtualMachineExtension; /** Optional parameters. */ -export interface VirtualMachinesInstallPatchesOptionalParams +export interface VirtualMachineExtensionsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8741,11 +8616,11 @@ export interface VirtualMachinesInstallPatchesOptionalParams resumeFrom?: string; } -/** Contains response data for the installPatches operation. */ -export type VirtualMachinesInstallPatchesResponse = VirtualMachineInstallPatchesResult; +/** Contains response data for the update operation. */ +export type VirtualMachineExtensionsUpdateResponse = VirtualMachineExtension; /** Optional parameters. */ -export interface VirtualMachinesRunCommandOptionalParams +export interface VirtualMachineExtensionsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8753,47 +8628,47 @@ export interface VirtualMachinesRunCommandOptionalParams resumeFrom?: string; } -/** Contains response data for the runCommand operation. */ -export type VirtualMachinesRunCommandResponse = RunCommandResult; - -/** Optional parameters. */ -export interface VirtualMachinesListByLocationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocationNext operation. */ -export type VirtualMachinesListByLocationNextResponse = VirtualMachineListResult; - /** Optional parameters. */ -export interface VirtualMachinesListNextOptionalParams +export interface VirtualMachineExtensionsGetOptionalParams extends coreClient.OperationOptions { - /** The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' */ - filter?: string; + /** The expand expression to apply on the operation. */ + expand?: string; } -/** Contains response data for the listNext operation. */ -export type VirtualMachinesListNextResponse = VirtualMachineListResult; +/** Contains response data for the get operation. */ +export type VirtualMachineExtensionsGetResponse = VirtualMachineExtension; /** Optional parameters. */ -export interface VirtualMachinesListAllNextOptionalParams +export interface VirtualMachineExtensionsListOptionalParams extends coreClient.OperationOptions { - /** The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' */ - filter?: string; - /** statusOnly=true enables fetching run time status of all Virtual Machines in the subscription. */ - statusOnly?: string; + /** The expand expression to apply on the operation. */ + expand?: string; } -/** Contains response data for the listAllNext operation. */ -export type VirtualMachinesListAllNextResponse = VirtualMachineListResult; +/** Contains response data for the list operation. */ +export type VirtualMachineExtensionsListResponse = VirtualMachineExtensionsListResult; /** Optional parameters. */ -export interface VirtualMachineScaleSetsListByLocationOptionalParams +export interface VirtualMachinesListByLocationOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByLocation operation. */ -export type VirtualMachineScaleSetsListByLocationResponse = VirtualMachineScaleSetListResult; +export type VirtualMachinesListByLocationResponse = VirtualMachineListResult; /** Optional parameters. */ -export interface VirtualMachineScaleSetsCreateOrUpdateOptionalParams +export interface VirtualMachinesCaptureOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the capture operation. */ +export type VirtualMachinesCaptureResponse = VirtualMachineCaptureResult; + +/** Optional parameters. */ +export interface VirtualMachinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8802,10 +8677,10 @@ export interface VirtualMachineScaleSetsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetsCreateOrUpdateResponse = VirtualMachineScaleSet; +export type VirtualMachinesCreateOrUpdateResponse = VirtualMachine; /** Optional parameters. */ -export interface VirtualMachineScaleSetsUpdateOptionalParams +export interface VirtualMachinesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8814,12 +8689,12 @@ export interface VirtualMachineScaleSetsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type VirtualMachineScaleSetsUpdateResponse = VirtualMachineScaleSet; +export type VirtualMachinesUpdateResponse = VirtualMachine; /** Optional parameters. */ -export interface VirtualMachineScaleSetsDeleteOptionalParams +export interface VirtualMachinesDeleteOptionalParams extends coreClient.OperationOptions { - /** Optional parameter to force delete a VM scale set. (Feature in Preview) */ + /** Optional parameter to force delete virtual machines. */ forceDeletion?: boolean; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8828,20 +8703,25 @@ export interface VirtualMachineScaleSetsDeleteOptionalParams } /** Optional parameters. */ -export interface VirtualMachineScaleSetsGetOptionalParams +export interface VirtualMachinesGetOptionalParams extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. 'UserData' retrieves the UserData property of the VM scale set that was provided by the user during the VM scale set Create/Update operation */ - expand?: ExpandTypesForGetVMScaleSets; + /** The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the virtual machine that is managed by the platform and can change outside of control plane operations. 'UserData' retrieves the UserData property as part of the VM model view that was provided by the user during the VM Create/Update operation. */ + expand?: InstanceViewTypes; } /** Contains response data for the get operation. */ -export type VirtualMachineScaleSetsGetResponse = VirtualMachineScaleSet; +export type VirtualMachinesGetResponse = VirtualMachine; /** Optional parameters. */ -export interface VirtualMachineScaleSetsDeallocateOptionalParams +export interface VirtualMachinesInstanceViewOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the instanceView operation. */ +export type VirtualMachinesInstanceViewResponse = VirtualMachineInstanceView; + +/** Optional parameters. */ +export interface VirtualMachinesConvertToManagedDisksOptionalParams extends coreClient.OperationOptions { - /** A list of virtual machine instance IDs from the VM scale set. */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -8849,10 +8729,10 @@ export interface VirtualMachineScaleSetsDeallocateOptionalParams } /** Optional parameters. */ -export interface VirtualMachineScaleSetsDeleteInstancesOptionalParams +export interface VirtualMachinesDeallocateOptionalParams extends coreClient.OperationOptions { - /** Optional parameter to force delete virtual machines from the VM scale set. (Feature in Preview) */ - forceDeletion?: boolean; + /** Optional parameter to hibernate a virtual machine. (Feature in Preview) */ + hibernate?: boolean; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -8860,47 +8740,43 @@ export interface VirtualMachineScaleSetsDeleteInstancesOptionalParams } /** Optional parameters. */ -export interface VirtualMachineScaleSetsGetInstanceViewOptionalParams +export interface VirtualMachinesGeneralizeOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getInstanceView operation. */ -export type VirtualMachineScaleSetsGetInstanceViewResponse = VirtualMachineScaleSetInstanceView; - /** Optional parameters. */ -export interface VirtualMachineScaleSetsListOptionalParams - extends coreClient.OperationOptions {} +export interface VirtualMachinesListOptionalParams + extends coreClient.OperationOptions { + /** The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' */ + filter?: string; +} /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetsListResponse = VirtualMachineScaleSetListResult; +export type VirtualMachinesListResponse = VirtualMachineListResult; /** Optional parameters. */ -export interface VirtualMachineScaleSetsListAllOptionalParams - extends coreClient.OperationOptions {} +export interface VirtualMachinesListAllOptionalParams + extends coreClient.OperationOptions { + /** The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' */ + filter?: string; + /** statusOnly=true enables fetching run time status of all Virtual Machines in the subscription. */ + statusOnly?: string; +} /** Contains response data for the listAll operation. */ -export type VirtualMachineScaleSetsListAllResponse = VirtualMachineScaleSetListWithLinkResult; - -/** Optional parameters. */ -export interface VirtualMachineScaleSetsListSkusOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listSkus operation. */ -export type VirtualMachineScaleSetsListSkusResponse = VirtualMachineScaleSetListSkusResult; +export type VirtualMachinesListAllResponse = VirtualMachineListResult; /** Optional parameters. */ -export interface VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams +export interface VirtualMachinesListAvailableSizesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getOSUpgradeHistory operation. */ -export type VirtualMachineScaleSetsGetOSUpgradeHistoryResponse = VirtualMachineScaleSetListOSUpgradeHistory; +/** Contains response data for the listAvailableSizes operation. */ +export type VirtualMachinesListAvailableSizesResponse = VirtualMachineSizeListResult; /** Optional parameters. */ -export interface VirtualMachineScaleSetsPowerOffOptionalParams +export interface VirtualMachinesPowerOffOptionalParams extends coreClient.OperationOptions { /** The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified */ skipShutdown?: boolean; - /** A list of virtual machine instance IDs from the VM scale set. */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -8908,10 +8784,26 @@ export interface VirtualMachineScaleSetsPowerOffOptionalParams } /** Optional parameters. */ -export interface VirtualMachineScaleSetsRestartOptionalParams +export interface VirtualMachinesReapplyOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface VirtualMachinesRestartOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface VirtualMachinesStartOptionalParams extends coreClient.OperationOptions { - /** A list of virtual machine instance IDs from the VM scale set. */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -8919,10 +8811,8 @@ export interface VirtualMachineScaleSetsRestartOptionalParams } /** Optional parameters. */ -export interface VirtualMachineScaleSetsStartOptionalParams +export interface VirtualMachinesRedeployOptionalParams extends coreClient.OperationOptions { - /** A list of virtual machine instance IDs from the VM scale set. */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -8930,10 +8820,10 @@ export interface VirtualMachineScaleSetsStartOptionalParams } /** Optional parameters. */ -export interface VirtualMachineScaleSetsRedeployOptionalParams +export interface VirtualMachinesReimageOptionalParams extends coreClient.OperationOptions { - /** A list of virtual machine instance IDs from the VM scale set. */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + /** Parameters supplied to the Reimage Virtual Machine operation. */ + parameters?: VirtualMachineReimageParameters; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -8941,10 +8831,18 @@ export interface VirtualMachineScaleSetsRedeployOptionalParams } /** Optional parameters. */ -export interface VirtualMachineScaleSetsPerformMaintenanceOptionalParams +export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams + extends coreClient.OperationOptions { + /** Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes.

    NOTE: If not specified, SAS URIs will be generated with a default expiration duration of 120 minutes. */ + sasUriExpirationTimeInMinutes?: number; +} + +/** Contains response data for the retrieveBootDiagnosticsData operation. */ +export type VirtualMachinesRetrieveBootDiagnosticsDataResponse = RetrieveBootDiagnosticsDataResult; + +/** Optional parameters. */ +export interface VirtualMachinesPerformMaintenanceOptionalParams extends coreClient.OperationOptions { - /** A list of virtual machine instance IDs from the VM scale set. */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -8952,7 +8850,11 @@ export interface VirtualMachineScaleSetsPerformMaintenanceOptionalParams } /** Optional parameters. */ -export interface VirtualMachineScaleSetsUpdateInstancesOptionalParams +export interface VirtualMachinesSimulateEvictionOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface VirtualMachinesAssessPatchesOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8960,326 +8862,350 @@ export interface VirtualMachineScaleSetsUpdateInstancesOptionalParams resumeFrom?: string; } +/** Contains response data for the assessPatches operation. */ +export type VirtualMachinesAssessPatchesResponse = VirtualMachineAssessPatchesResult; + /** Optional parameters. */ -export interface VirtualMachineScaleSetsReimageOptionalParams +export interface VirtualMachinesInstallPatchesOptionalParams extends coreClient.OperationOptions { - /** Parameters for Reimaging VM ScaleSet. */ - vmScaleSetReimageInput?: VirtualMachineScaleSetReimageParameters; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } +/** Contains response data for the installPatches operation. */ +export type VirtualMachinesInstallPatchesResponse = VirtualMachineInstallPatchesResult; + /** Optional parameters. */ -export interface VirtualMachineScaleSetsReimageAllOptionalParams +export interface VirtualMachinesRunCommandOptionalParams extends coreClient.OperationOptions { - /** A list of virtual machine instance IDs from the VM scale set. */ - vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } +/** Contains response data for the runCommand operation. */ +export type VirtualMachinesRunCommandResponse = RunCommandResult; + /** Optional parameters. */ -export interface VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams +export interface VirtualMachinesListByLocationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByLocationNext operation. */ +export type VirtualMachinesListByLocationNextResponse = VirtualMachineListResult; + +/** Optional parameters. */ +export interface VirtualMachinesListNextOptionalParams extends coreClient.OperationOptions { - /** The zone in which the manual recovery walk is requested for cross zone virtual machine scale set */ - zone?: string; - /** The placement group id for which the manual recovery walk is requested. */ - placementGroupId?: string; + /** The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' */ + filter?: string; } -/** Contains response data for the forceRecoveryServiceFabricPlatformUpdateDomainWalk operation. */ -export type VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse = RecoveryWalkResponse; +/** Contains response data for the listNext operation. */ +export type VirtualMachinesListNextResponse = VirtualMachineListResult; /** Optional parameters. */ -export interface VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams +export interface VirtualMachinesListAllNextOptionalParams + extends coreClient.OperationOptions { + /** The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' */ + filter?: string; + /** statusOnly=true enables fetching run time status of all Virtual Machines in the subscription. */ + statusOnly?: string; +} + +/** Contains response data for the listAllNext operation. */ +export type VirtualMachinesListAllNextResponse = VirtualMachineListResult; + +/** Optional parameters. */ +export interface VirtualMachineImagesGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type VirtualMachineImagesGetResponse = VirtualMachineImage; + /** Optional parameters. */ -export interface VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams +export interface VirtualMachineImagesListOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The expand expression to apply on the operation. */ + expand?: string; + top?: number; + orderby?: string; } +/** Contains response data for the list operation. */ +export type VirtualMachineImagesListResponse = VirtualMachineImageResource[]; + /** Optional parameters. */ -export interface VirtualMachineScaleSetsListByLocationNextOptionalParams +export interface VirtualMachineImagesListOffersOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type VirtualMachineScaleSetsListByLocationNextResponse = VirtualMachineScaleSetListResult; +/** Contains response data for the listOffers operation. */ +export type VirtualMachineImagesListOffersResponse = VirtualMachineImageResource[]; /** Optional parameters. */ -export interface VirtualMachineScaleSetsListNextOptionalParams +export interface VirtualMachineImagesListPublishersOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type VirtualMachineScaleSetsListNextResponse = VirtualMachineScaleSetListResult; +/** Contains response data for the listPublishers operation. */ +export type VirtualMachineImagesListPublishersResponse = VirtualMachineImageResource[]; /** Optional parameters. */ -export interface VirtualMachineScaleSetsListAllNextOptionalParams +export interface VirtualMachineImagesListSkusOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAllNext operation. */ -export type VirtualMachineScaleSetsListAllNextResponse = VirtualMachineScaleSetListWithLinkResult; +/** Contains response data for the listSkus operation. */ +export type VirtualMachineImagesListSkusResponse = VirtualMachineImageResource[]; /** Optional parameters. */ -export interface VirtualMachineScaleSetsListSkusNextOptionalParams +export interface VirtualMachineImagesEdgeZoneGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSkusNext operation. */ -export type VirtualMachineScaleSetsListSkusNextResponse = VirtualMachineScaleSetListSkusResult; +/** Contains response data for the get operation. */ +export type VirtualMachineImagesEdgeZoneGetResponse = VirtualMachineImage; /** Optional parameters. */ -export interface VirtualMachineScaleSetsGetOSUpgradeHistoryNextOptionalParams +export interface VirtualMachineImagesEdgeZoneListOptionalParams + extends coreClient.OperationOptions { + /** The expand expression to apply on the operation. */ + expand?: string; + /** An integer value specifying the number of images to return that matches supplied values. */ + top?: number; + /** Specifies the order of the results returned. Formatted as an OData query. */ + orderby?: string; +} + +/** Contains response data for the list operation. */ +export type VirtualMachineImagesEdgeZoneListResponse = VirtualMachineImageResource[]; + +/** Optional parameters. */ +export interface VirtualMachineImagesEdgeZoneListOffersOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getOSUpgradeHistoryNext operation. */ -export type VirtualMachineScaleSetsGetOSUpgradeHistoryNextResponse = VirtualMachineScaleSetListOSUpgradeHistory; +/** Contains response data for the listOffers operation. */ +export type VirtualMachineImagesEdgeZoneListOffersResponse = VirtualMachineImageResource[]; /** Optional parameters. */ -export interface VirtualMachineSizesListOptionalParams +export interface VirtualMachineImagesEdgeZoneListPublishersOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult; +/** Contains response data for the listPublishers operation. */ +export type VirtualMachineImagesEdgeZoneListPublishersResponse = VirtualMachineImageResource[]; /** Optional parameters. */ -export interface ImagesCreateOrUpdateOptionalParams +export interface VirtualMachineImagesEdgeZoneListSkusOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSkus operation. */ +export type VirtualMachineImagesEdgeZoneListSkusResponse = VirtualMachineImageResource[]; + +/** Optional parameters. */ +export interface VirtualMachineExtensionImagesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionImage; + +/** Optional parameters. */ +export interface VirtualMachineExtensionImagesListTypesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listTypes operation. */ +export type VirtualMachineExtensionImagesListTypesResponse = VirtualMachineExtensionImage[]; + +/** Optional parameters. */ +export interface VirtualMachineExtensionImagesListVersionsOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The filter to apply on the operation. */ + filter?: string; + top?: number; + orderby?: string; } +/** Contains response data for the listVersions operation. */ +export type VirtualMachineExtensionImagesListVersionsResponse = VirtualMachineExtensionImage[]; + +/** Optional parameters. */ +export interface AvailabilitySetsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the createOrUpdate operation. */ -export type ImagesCreateOrUpdateResponse = Image; +export type AvailabilitySetsCreateOrUpdateResponse = AvailabilitySet; /** Optional parameters. */ -export interface ImagesUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface AvailabilitySetsUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ImagesUpdateResponse = Image; +export type AvailabilitySetsUpdateResponse = AvailabilitySet; /** Optional parameters. */ -export interface ImagesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface AvailabilitySetsDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ImagesGetOptionalParams extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. */ - expand?: string; -} +export interface AvailabilitySetsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ImagesGetResponse = Image; +export type AvailabilitySetsGetResponse = AvailabilitySet; /** Optional parameters. */ -export interface ImagesListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} +export interface AvailabilitySetsListBySubscriptionOptionalParams + extends coreClient.OperationOptions { + /** The expand expression to apply to the operation. Allowed values are 'instanceView'. */ + expand?: string; +} -/** Contains response data for the listByResourceGroup operation. */ -export type ImagesListByResourceGroupResponse = ImageListResult; +/** Contains response data for the listBySubscription operation. */ +export type AvailabilitySetsListBySubscriptionResponse = AvailabilitySetListResult; /** Optional parameters. */ -export interface ImagesListOptionalParams extends coreClient.OperationOptions {} +export interface AvailabilitySetsListOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ImagesListResponse = ImageListResult; +export type AvailabilitySetsListResponse = AvailabilitySetListResult; /** Optional parameters. */ -export interface ImagesListByResourceGroupNextOptionalParams +export interface AvailabilitySetsListAvailableSizesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ImagesListByResourceGroupNextResponse = ImageListResult; +/** Contains response data for the listAvailableSizes operation. */ +export type AvailabilitySetsListAvailableSizesResponse = VirtualMachineSizeListResult; /** Optional parameters. */ -export interface ImagesListNextOptionalParams +export interface AvailabilitySetsListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions { + /** The expand expression to apply to the operation. Allowed values are 'instanceView'. */ + expand?: string; +} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type AvailabilitySetsListBySubscriptionNextResponse = AvailabilitySetListResult; + +/** Optional parameters. */ +export interface AvailabilitySetsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ImagesListNextResponse = ImageListResult; +export type AvailabilitySetsListNextResponse = AvailabilitySetListResult; /** Optional parameters. */ -export interface RestorePointCollectionsCreateOrUpdateOptionalParams +export interface ProximityPlacementGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type RestorePointCollectionsCreateOrUpdateResponse = RestorePointCollection; +export type ProximityPlacementGroupsCreateOrUpdateResponse = ProximityPlacementGroup; /** Optional parameters. */ -export interface RestorePointCollectionsUpdateOptionalParams +export interface ProximityPlacementGroupsUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type RestorePointCollectionsUpdateResponse = RestorePointCollection; +export type ProximityPlacementGroupsUpdateResponse = ProximityPlacementGroup; /** Optional parameters. */ -export interface RestorePointCollectionsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ProximityPlacementGroupsDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface RestorePointCollectionsGetOptionalParams +export interface ProximityPlacementGroupsGetOptionalParams extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. If expand=restorePoints, server will return all contained restore points in the restorePointCollection. */ - expand?: RestorePointCollectionExpandOptions; + /** includeColocationStatus=true enables fetching the colocation status of all the resources in the proximity placement group. */ + includeColocationStatus?: string; } /** Contains response data for the get operation. */ -export type RestorePointCollectionsGetResponse = RestorePointCollection; +export type ProximityPlacementGroupsGetResponse = ProximityPlacementGroup; /** Optional parameters. */ -export interface RestorePointCollectionsListOptionalParams +export interface ProximityPlacementGroupsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type RestorePointCollectionsListResponse = RestorePointCollectionListResult; +/** Contains response data for the listBySubscription operation. */ +export type ProximityPlacementGroupsListBySubscriptionResponse = ProximityPlacementGroupListResult; /** Optional parameters. */ -export interface RestorePointCollectionsListAllOptionalParams +export interface ProximityPlacementGroupsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAll operation. */ -export type RestorePointCollectionsListAllResponse = RestorePointCollectionListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type ProximityPlacementGroupsListByResourceGroupResponse = ProximityPlacementGroupListResult; /** Optional parameters. */ -export interface RestorePointCollectionsListNextOptionalParams +export interface ProximityPlacementGroupsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type RestorePointCollectionsListNextResponse = RestorePointCollectionListResult; +/** Contains response data for the listBySubscriptionNext operation. */ +export type ProximityPlacementGroupsListBySubscriptionNextResponse = ProximityPlacementGroupListResult; /** Optional parameters. */ -export interface RestorePointCollectionsListAllNextOptionalParams +export interface ProximityPlacementGroupsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAllNext operation. */ -export type RestorePointCollectionsListAllNextResponse = RestorePointCollectionListResult; - -/** Optional parameters. */ -export interface RestorePointsCreateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the create operation. */ -export type RestorePointsCreateResponse = RestorePoint; - -/** Optional parameters. */ -export interface RestorePointsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface RestorePointsGetOptionalParams - extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. 'InstanceView' retrieves information about the run-time state of a restore point. */ - expand?: RestorePointExpandOptions; -} - -/** Contains response data for the get operation. */ -export type RestorePointsGetResponse = RestorePoint; +/** Contains response data for the listByResourceGroupNext operation. */ +export type ProximityPlacementGroupsListByResourceGroupNextResponse = ProximityPlacementGroupListResult; /** Optional parameters. */ -export interface CapacityReservationGroupsCreateOrUpdateOptionalParams +export interface DedicatedHostGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type CapacityReservationGroupsCreateOrUpdateResponse = CapacityReservationGroup; +export type DedicatedHostGroupsCreateOrUpdateResponse = DedicatedHostGroup; /** Optional parameters. */ -export interface CapacityReservationGroupsUpdateOptionalParams +export interface DedicatedHostGroupsUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type CapacityReservationGroupsUpdateResponse = CapacityReservationGroup; +export type DedicatedHostGroupsUpdateResponse = DedicatedHostGroup; /** Optional parameters. */ -export interface CapacityReservationGroupsDeleteOptionalParams +export interface DedicatedHostGroupsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface CapacityReservationGroupsGetOptionalParams +export interface DedicatedHostGroupsGetOptionalParams extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the capacity reservations under the capacity reservation group which is a snapshot of the runtime properties of a capacity reservation that is managed by the platform and can change outside of control plane operations. */ - expand?: CapacityReservationGroupInstanceViewTypes; + /** The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated hosts under the dedicated host group. 'UserData' is not supported for dedicated host group. */ + expand?: InstanceViewTypes; } /** Contains response data for the get operation. */ -export type CapacityReservationGroupsGetResponse = CapacityReservationGroup; +export type DedicatedHostGroupsGetResponse = DedicatedHostGroup; /** Optional parameters. */ -export interface CapacityReservationGroupsListByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. Based on the expand param(s) specified we return Virtual Machine or ScaleSet VM Instance or both resource Ids which are associated to capacity reservation group in the response. */ - expand?: ExpandTypesForGetCapacityReservationGroups; -} +export interface DedicatedHostGroupsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type CapacityReservationGroupsListByResourceGroupResponse = CapacityReservationGroupListResult; +export type DedicatedHostGroupsListByResourceGroupResponse = DedicatedHostGroupListResult; /** Optional parameters. */ -export interface CapacityReservationGroupsListBySubscriptionOptionalParams - extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. Based on the expand param(s) specified we return Virtual Machine or ScaleSet VM Instance or both resource Ids which are associated to capacity reservation group in the response. */ - expand?: ExpandTypesForGetCapacityReservationGroups; -} +export interface DedicatedHostGroupsListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type CapacityReservationGroupsListBySubscriptionResponse = CapacityReservationGroupListResult; +export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupListResult; /** Optional parameters. */ -export interface CapacityReservationGroupsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. Based on the expand param(s) specified we return Virtual Machine or ScaleSet VM Instance or both resource Ids which are associated to capacity reservation group in the response. */ - expand?: ExpandTypesForGetCapacityReservationGroups; -} +export interface DedicatedHostGroupsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type CapacityReservationGroupsListByResourceGroupNextResponse = CapacityReservationGroupListResult; +export type DedicatedHostGroupsListByResourceGroupNextResponse = DedicatedHostGroupListResult; /** Optional parameters. */ -export interface CapacityReservationGroupsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. Based on the expand param(s) specified we return Virtual Machine or ScaleSet VM Instance or both resource Ids which are associated to capacity reservation group in the response. */ - expand?: ExpandTypesForGetCapacityReservationGroups; -} +export interface DedicatedHostGroupsListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type CapacityReservationGroupsListBySubscriptionNextResponse = CapacityReservationGroupListResult; +export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGroupListResult; /** Optional parameters. */ -export interface CapacityReservationsCreateOrUpdateOptionalParams +export interface DedicatedHostsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9288,10 +9214,10 @@ export interface CapacityReservationsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type CapacityReservationsCreateOrUpdateResponse = CapacityReservation; +export type DedicatedHostsCreateOrUpdateResponse = DedicatedHost; /** Optional parameters. */ -export interface CapacityReservationsUpdateOptionalParams +export interface DedicatedHostsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9300,10 +9226,10 @@ export interface CapacityReservationsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type CapacityReservationsUpdateResponse = CapacityReservation; +export type DedicatedHostsUpdateResponse = DedicatedHost; /** Optional parameters. */ -export interface CapacityReservationsDeleteOptionalParams +export interface DedicatedHostsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9312,31 +9238,24 @@ export interface CapacityReservationsDeleteOptionalParams } /** Optional parameters. */ -export interface CapacityReservationsGetOptionalParams +export interface DedicatedHostsGetOptionalParams extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations. */ - expand?: CapacityReservationInstanceViewTypes; + /** The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated host. 'UserData' is not supported for dedicated host. */ + expand?: InstanceViewTypes; } /** Contains response data for the get operation. */ -export type CapacityReservationsGetResponse = CapacityReservation; - -/** Optional parameters. */ -export interface CapacityReservationsListByCapacityReservationGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByCapacityReservationGroup operation. */ -export type CapacityReservationsListByCapacityReservationGroupResponse = CapacityReservationListResult; +export type DedicatedHostsGetResponse = DedicatedHost; /** Optional parameters. */ -export interface CapacityReservationsListByCapacityReservationGroupNextOptionalParams +export interface DedicatedHostsListByHostGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByCapacityReservationGroupNext operation. */ -export type CapacityReservationsListByCapacityReservationGroupNextResponse = CapacityReservationListResult; +/** Contains response data for the listByHostGroup operation. */ +export type DedicatedHostsListByHostGroupResponse = DedicatedHostListResult; /** Optional parameters. */ -export interface VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams +export interface DedicatedHostsRestartOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9344,90 +9263,75 @@ export interface VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetExtensionsCreateOrUpdateResponse = VirtualMachineScaleSetExtension; - /** Optional parameters. */ -export interface VirtualMachineScaleSetExtensionsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DedicatedHostsListByHostGroupNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type VirtualMachineScaleSetExtensionsUpdateResponse = VirtualMachineScaleSetExtension; +/** Contains response data for the listByHostGroupNext operation. */ +export type DedicatedHostsListByHostGroupNextResponse = DedicatedHostListResult; /** Optional parameters. */ -export interface VirtualMachineScaleSetExtensionsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SshPublicKeysListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type SshPublicKeysListBySubscriptionResponse = SshPublicKeysGroupListResult; /** Optional parameters. */ -export interface VirtualMachineScaleSetExtensionsGetOptionalParams - extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. */ - expand?: string; -} +export interface SshPublicKeysListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type VirtualMachineScaleSetExtensionsGetResponse = VirtualMachineScaleSetExtension; +/** Contains response data for the listByResourceGroup operation. */ +export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListResult; /** Optional parameters. */ -export interface VirtualMachineScaleSetExtensionsListOptionalParams +export interface SshPublicKeysCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type VirtualMachineScaleSetExtensionsListResponse = VirtualMachineScaleSetExtensionListResult; +/** Contains response data for the create operation. */ +export type SshPublicKeysCreateResponse = SshPublicKeyResource; /** Optional parameters. */ -export interface VirtualMachineScaleSetExtensionsListNextOptionalParams +export interface SshPublicKeysUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type VirtualMachineScaleSetExtensionsListNextResponse = VirtualMachineScaleSetExtensionListResult; +/** Contains response data for the update operation. */ +export type SshPublicKeysUpdateResponse = SshPublicKeyResource; /** Optional parameters. */ -export interface VirtualMachineScaleSetRollingUpgradesCancelOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SshPublicKeysDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SshPublicKeysGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SshPublicKeysGetResponse = SshPublicKeyResource; /** Optional parameters. */ -export interface VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SshPublicKeysGenerateKeyPairOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the generateKeyPair operation. */ +export type SshPublicKeysGenerateKeyPairResponse = SshPublicKeyGenerateKeyPairResult; /** Optional parameters. */ -export interface VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams +export interface SshPublicKeysListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getLatest operation. */ -export type VirtualMachineScaleSetRollingUpgradesGetLatestResponse = RollingUpgradeStatusInfo; +/** Contains response data for the listBySubscriptionNext operation. */ +export type SshPublicKeysListBySubscriptionNextResponse = SshPublicKeysGroupListResult; + +/** Optional parameters. */ +export interface SshPublicKeysListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type SshPublicKeysListByResourceGroupNextResponse = SshPublicKeysGroupListResult; /** Optional parameters. */ -export interface VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams +export interface ImagesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9436,10 +9340,10 @@ export interface VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse = VirtualMachineScaleSetVMExtension; +export type ImagesCreateOrUpdateResponse = Image; /** Optional parameters. */ -export interface VirtualMachineScaleSetVMExtensionsUpdateOptionalParams +export interface ImagesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9448,10 +9352,10 @@ export interface VirtualMachineScaleSetVMExtensionsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type VirtualMachineScaleSetVMExtensionsUpdateResponse = VirtualMachineScaleSetVMExtension; +export type ImagesUpdateResponse = Image; /** Optional parameters. */ -export interface VirtualMachineScaleSetVMExtensionsDeleteOptionalParams +export interface ImagesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9460,38 +9364,57 @@ export interface VirtualMachineScaleSetVMExtensionsDeleteOptionalParams } /** Optional parameters. */ -export interface VirtualMachineScaleSetVMExtensionsGetOptionalParams - extends coreClient.OperationOptions { +export interface ImagesGetOptionalParams extends coreClient.OperationOptions { /** The expand expression to apply on the operation. */ expand?: string; } /** Contains response data for the get operation. */ -export type VirtualMachineScaleSetVMExtensionsGetResponse = VirtualMachineScaleSetVMExtension; +export type ImagesGetResponse = Image; /** Optional parameters. */ -export interface VirtualMachineScaleSetVMExtensionsListOptionalParams - extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. */ - expand?: string; -} +export interface ImagesListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type ImagesListByResourceGroupResponse = ImageListResult; + +/** Optional parameters. */ +export interface ImagesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetVMExtensionsListResponse = VirtualMachineScaleSetVMExtensionsListResult; +export type ImagesListResponse = ImageListResult; /** Optional parameters. */ -export interface VirtualMachineScaleSetVMsReimageOptionalParams - extends coreClient.OperationOptions { - /** Parameters for the Reimaging Virtual machine in ScaleSet. */ - vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ImagesListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type ImagesListByResourceGroupNextResponse = ImageListResult; /** Optional parameters. */ -export interface VirtualMachineScaleSetVMsReimageAllOptionalParams +export interface ImagesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ImagesListNextResponse = ImageListResult; + +/** Optional parameters. */ +export interface RestorePointCollectionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type RestorePointCollectionsCreateOrUpdateResponse = RestorePointCollection; + +/** Optional parameters. */ +export interface RestorePointCollectionsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type RestorePointCollectionsUpdateResponse = RestorePointCollection; + +/** Optional parameters. */ +export interface RestorePointCollectionsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9500,16 +9423,45 @@ export interface VirtualMachineScaleSetVMsReimageAllOptionalParams } /** Optional parameters. */ -export interface VirtualMachineScaleSetVMsDeallocateOptionalParams +export interface RestorePointCollectionsGetOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The expand expression to apply on the operation. If expand=restorePoints, server will return all contained restore points in the restorePointCollection. */ + expand?: RestorePointCollectionExpandOptions; } +/** Contains response data for the get operation. */ +export type RestorePointCollectionsGetResponse = RestorePointCollection; + /** Optional parameters. */ -export interface VirtualMachineScaleSetVMsUpdateOptionalParams +export interface RestorePointCollectionsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type RestorePointCollectionsListResponse = RestorePointCollectionListResult; + +/** Optional parameters. */ +export interface RestorePointCollectionsListAllOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAll operation. */ +export type RestorePointCollectionsListAllResponse = RestorePointCollectionListResult; + +/** Optional parameters. */ +export interface RestorePointCollectionsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type RestorePointCollectionsListNextResponse = RestorePointCollectionListResult; + +/** Optional parameters. */ +export interface RestorePointCollectionsListAllNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllNext operation. */ +export type RestorePointCollectionsListAllNextResponse = RestorePointCollectionListResult; + +/** Optional parameters. */ +export interface RestorePointsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9517,14 +9469,12 @@ export interface VirtualMachineScaleSetVMsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type VirtualMachineScaleSetVMsUpdateResponse = VirtualMachineScaleSetVM; +/** Contains response data for the create operation. */ +export type RestorePointsCreateResponse = RestorePoint; /** Optional parameters. */ -export interface VirtualMachineScaleSetVMsDeleteOptionalParams +export interface RestorePointsDeleteOptionalParams extends coreClient.OperationOptions { - /** Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview) */ - forceDeletion?: boolean; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -9532,67 +9482,85 @@ export interface VirtualMachineScaleSetVMsDeleteOptionalParams } /** Optional parameters. */ -export interface VirtualMachineScaleSetVMsGetOptionalParams +export interface RestorePointsGetOptionalParams extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. 'InstanceView' will retrieve the instance view of the virtual machine. 'UserData' will retrieve the UserData of the virtual machine. */ - expand?: InstanceViewTypes; + /** The expand expression to apply on the operation. 'InstanceView' retrieves information about the run-time state of a restore point. */ + expand?: RestorePointExpandOptions; } /** Contains response data for the get operation. */ -export type VirtualMachineScaleSetVMsGetResponse = VirtualMachineScaleSetVM; +export type RestorePointsGetResponse = RestorePoint; /** Optional parameters. */ -export interface VirtualMachineScaleSetVMsGetInstanceViewOptionalParams +export interface CapacityReservationGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getInstanceView operation. */ -export type VirtualMachineScaleSetVMsGetInstanceViewResponse = VirtualMachineScaleSetVMInstanceView; +/** Contains response data for the createOrUpdate operation. */ +export type CapacityReservationGroupsCreateOrUpdateResponse = CapacityReservationGroup; /** Optional parameters. */ -export interface VirtualMachineScaleSetVMsListOptionalParams +export interface CapacityReservationGroupsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type CapacityReservationGroupsUpdateResponse = CapacityReservationGroup; + +/** Optional parameters. */ +export interface CapacityReservationGroupsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CapacityReservationGroupsGetOptionalParams extends coreClient.OperationOptions { - /** The expand expression to apply to the operation. Allowed values are 'instanceView'. */ - expand?: string; - /** The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'. */ - filter?: string; - /** The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'. */ - select?: string; + /** The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the capacity reservations under the capacity reservation group which is a snapshot of the runtime properties of a capacity reservation that is managed by the platform and can change outside of control plane operations. */ + expand?: CapacityReservationGroupInstanceViewTypes; } -/** Contains response data for the list operation. */ -export type VirtualMachineScaleSetVMsListResponse = VirtualMachineScaleSetVMListResult; +/** Contains response data for the get operation. */ +export type CapacityReservationGroupsGetResponse = CapacityReservationGroup; /** Optional parameters. */ -export interface VirtualMachineScaleSetVMsPowerOffOptionalParams +export interface CapacityReservationGroupsListByResourceGroupOptionalParams extends coreClient.OperationOptions { - /** The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified */ - skipShutdown?: boolean; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The expand expression to apply on the operation. Based on the expand param(s) specified we return Virtual Machine or ScaleSet VM Instance or both resource Ids which are associated to capacity reservation group in the response. */ + expand?: ExpandTypesForGetCapacityReservationGroups; } +/** Contains response data for the listByResourceGroup operation. */ +export type CapacityReservationGroupsListByResourceGroupResponse = CapacityReservationGroupListResult; + /** Optional parameters. */ -export interface VirtualMachineScaleSetVMsRestartOptionalParams +export interface CapacityReservationGroupsListBySubscriptionOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The expand expression to apply on the operation. Based on the expand param(s) specified we return Virtual Machine or ScaleSet VM Instance or both resource Ids which are associated to capacity reservation group in the response. */ + expand?: ExpandTypesForGetCapacityReservationGroups; } +/** Contains response data for the listBySubscription operation. */ +export type CapacityReservationGroupsListBySubscriptionResponse = CapacityReservationGroupListResult; + /** Optional parameters. */ -export interface VirtualMachineScaleSetVMsStartOptionalParams +export interface CapacityReservationGroupsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The expand expression to apply on the operation. Based on the expand param(s) specified we return Virtual Machine or ScaleSet VM Instance or both resource Ids which are associated to capacity reservation group in the response. */ + expand?: ExpandTypesForGetCapacityReservationGroups; +} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type CapacityReservationGroupsListByResourceGroupNextResponse = CapacityReservationGroupListResult; + +/** Optional parameters. */ +export interface CapacityReservationGroupsListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions { + /** The expand expression to apply on the operation. Based on the expand param(s) specified we return Virtual Machine or ScaleSet VM Instance or both resource Ids which are associated to capacity reservation group in the response. */ + expand?: ExpandTypesForGetCapacityReservationGroups; } +/** Contains response data for the listBySubscriptionNext operation. */ +export type CapacityReservationGroupsListBySubscriptionNextResponse = CapacityReservationGroupListResult; + /** Optional parameters. */ -export interface VirtualMachineScaleSetVMsRedeployOptionalParams +export interface CapacityReservationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9600,18 +9568,11 @@ export interface VirtualMachineScaleSetVMsRedeployOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams - extends coreClient.OperationOptions { - /** Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes.

    NOTE: If not specified, SAS URIs will be generated with a default expiration duration of 120 minutes. */ - sasUriExpirationTimeInMinutes?: number; -} - -/** Contains response data for the retrieveBootDiagnosticsData operation. */ -export type VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse = RetrieveBootDiagnosticsDataResult; +/** Contains response data for the createOrUpdate operation. */ +export type CapacityReservationsCreateOrUpdateResponse = CapacityReservation; /** Optional parameters. */ -export interface VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams +export interface CapacityReservationsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9619,12 +9580,11 @@ export interface VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface VirtualMachineScaleSetVMsSimulateEvictionOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type CapacityReservationsUpdateResponse = CapacityReservation; /** Optional parameters. */ -export interface VirtualMachineScaleSetVMsRunCommandOptionalParams +export interface CapacityReservationsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9632,22 +9592,29 @@ export interface VirtualMachineScaleSetVMsRunCommandOptionalParams resumeFrom?: string; } -/** Contains response data for the runCommand operation. */ -export type VirtualMachineScaleSetVMsRunCommandResponse = RunCommandResult; - /** Optional parameters. */ -export interface VirtualMachineScaleSetVMsListNextOptionalParams +export interface CapacityReservationsGetOptionalParams extends coreClient.OperationOptions { - /** The expand expression to apply to the operation. Allowed values are 'instanceView'. */ - expand?: string; - /** The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'. */ - filter?: string; - /** The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'. */ - select?: string; + /** The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations. */ + expand?: CapacityReservationInstanceViewTypes; } -/** Contains response data for the listNext operation. */ -export type VirtualMachineScaleSetVMsListNextResponse = VirtualMachineScaleSetVMListResult; +/** Contains response data for the get operation. */ +export type CapacityReservationsGetResponse = CapacityReservation; + +/** Optional parameters. */ +export interface CapacityReservationsListByCapacityReservationGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByCapacityReservationGroup operation. */ +export type CapacityReservationsListByCapacityReservationGroupResponse = CapacityReservationListResult; + +/** Optional parameters. */ +export interface CapacityReservationsListByCapacityReservationGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByCapacityReservationGroupNext operation. */ +export type CapacityReservationsListByCapacityReservationGroupNextResponse = CapacityReservationListResult; /** Optional parameters. */ export interface LogAnalyticsExportRequestRateByIntervalOptionalParams diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index 12978d03ca18..3cb0af9f535d 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -191,168 +191,85 @@ export const InnerError: coreClient.CompositeMapper = { } }; -export const SubResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SubResource", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const InstanceViewStatus: coreClient.CompositeMapper = { +export const ListUsagesResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceViewStatus", + className: "ListUsagesResult", modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - level: { - serializedName: "level", - type: { - name: "Enum", - allowedValues: ["Info", "Warning", "Error"] - } - }, - displayStatus: { - serializedName: "displayStatus", + value: { + serializedName: "value", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Usage" + } + } } }, - message: { - serializedName: "message", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - time: { - serializedName: "time", - type: { - name: "DateTime" - } } } } }; -export const Sku: coreClient.CompositeMapper = { +export const Usage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Sku", + className: "Usage", modelProperties: { - name: { - serializedName: "name", + unit: { + defaultValue: "Count", + isConstant: true, + serializedName: "unit", type: { name: "String" } }, - tier: { - serializedName: "tier", + currentValue: { + serializedName: "currentValue", + required: true, type: { - name: "String" + name: "Number" } }, - capacity: { - serializedName: "capacity", + limit: { + serializedName: "limit", + required: true, type: { name: "Number" } - } - } - } -}; - -export const Resource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } }, name: { serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - location: { - serializedName: "location", - required: true, - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const UpdateResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpdateResource", - modelProperties: { - tags: { - serializedName: "tags", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "UsageName" } } } } }; -export const AvailabilitySetListResult: coreClient.CompositeMapper = { +export const UsageName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailabilitySetListResult", + className: "UsageName", modelProperties: { value: { serializedName: "value", - required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AvailabilitySet" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + localizedValue: { + serializedName: "localizedValue", type: { name: "String" } @@ -427,10 +344,10 @@ export const VirtualMachineSize: coreClient.CompositeMapper = { } }; -export const ProximityPlacementGroupListResult: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProximityPlacementGroupListResult", + className: "VirtualMachineScaleSetListResult", modelProperties: { value: { serializedName: "value", @@ -440,7 +357,7 @@ export const ProximityPlacementGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ProximityPlacementGroup" + className: "VirtualMachineScaleSet" } } } @@ -455,226 +372,193 @@ export const ProximityPlacementGroupListResult: coreClient.CompositeMapper = { } }; -export const SubResourceReadOnly: coreClient.CompositeMapper = { +export const Sku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubResourceReadOnly", + className: "Sku", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", type: { name: "String" } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } } } } }; -export const DedicatedHostGroupInstanceView: coreClient.CompositeMapper = { +export const Plan: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DedicatedHostGroupInstanceView", + className: "Plan", modelProperties: { - hosts: { - serializedName: "hosts", + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DedicatedHostInstanceViewWithName" - } - } + name: "String" + } + }, + publisher: { + serializedName: "publisher", + type: { + name: "String" + } + }, + product: { + serializedName: "product", + type: { + name: "String" + } + }, + promotionCode: { + serializedName: "promotionCode", + type: { + name: "String" } } } } }; -export const DedicatedHostInstanceView: coreClient.CompositeMapper = { +export const UpgradePolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DedicatedHostInstanceView", + className: "UpgradePolicy", modelProperties: { - assetId: { - serializedName: "assetId", - readOnly: true, + mode: { + serializedName: "mode", type: { - name: "String" + name: "Enum", + allowedValues: ["Automatic", "Manual", "Rolling"] } }, - availableCapacity: { - serializedName: "availableCapacity", + rollingUpgradePolicy: { + serializedName: "rollingUpgradePolicy", type: { name: "Composite", - className: "DedicatedHostAvailableCapacity" + className: "RollingUpgradePolicy" } }, - statuses: { - serializedName: "statuses", + automaticOSUpgradePolicy: { + serializedName: "automaticOSUpgradePolicy", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } + name: "Composite", + className: "AutomaticOSUpgradePolicy" } } } } }; -export const DedicatedHostAvailableCapacity: coreClient.CompositeMapper = { +export const RollingUpgradePolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DedicatedHostAvailableCapacity", + className: "RollingUpgradePolicy", modelProperties: { - allocatableVMs: { - serializedName: "allocatableVMs", + maxBatchInstancePercent: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 5 + }, + serializedName: "maxBatchInstancePercent", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DedicatedHostAllocatableVM" - } - } - } - } - } - } -}; - -export const DedicatedHostAllocatableVM: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHostAllocatableVM", - modelProperties: { - vmSize: { - serializedName: "vmSize", - type: { - name: "String" + name: "Number" } }, - count: { - serializedName: "count", + maxUnhealthyInstancePercent: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 5 + }, + serializedName: "maxUnhealthyInstancePercent", type: { name: "Number" } - } - } - } -}; - -export const DedicatedHostGroupListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHostGroupListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, + }, + maxUnhealthyUpgradedInstancePercent: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "maxUnhealthyUpgradedInstancePercent", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DedicatedHostGroup" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + pauseTimeBetweenBatches: { + serializedName: "pauseTimeBetweenBatches", type: { name: "String" } - } - } - } -}; - -export const DedicatedHostListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHostListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, + }, + enableCrossZoneUpgrade: { + serializedName: "enableCrossZoneUpgrade", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DedicatedHost" - } - } + name: "Boolean" } }, - nextLink: { - serializedName: "nextLink", + prioritizeUnhealthyInstances: { + serializedName: "prioritizeUnhealthyInstances", type: { - name: "String" + name: "Boolean" } } } } }; -export const SshPublicKeysGroupListResult: coreClient.CompositeMapper = { +export const AutomaticOSUpgradePolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SshPublicKeysGroupListResult", + className: "AutomaticOSUpgradePolicy", modelProperties: { - value: { - serializedName: "value", - required: true, + enableAutomaticOSUpgrade: { + serializedName: "enableAutomaticOSUpgrade", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SshPublicKeyResource" - } - } + name: "Boolean" } }, - nextLink: { - serializedName: "nextLink", + disableAutomaticRollback: { + serializedName: "disableAutomaticRollback", type: { - name: "String" + name: "Boolean" } } } } }; -export const SshPublicKeyGenerateKeyPairResult: coreClient.CompositeMapper = { +export const AutomaticRepairsPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SshPublicKeyGenerateKeyPairResult", + className: "AutomaticRepairsPolicy", modelProperties: { - privateKey: { - serializedName: "privateKey", - required: true, + enabled: { + serializedName: "enabled", type: { - name: "String" + name: "Boolean" } }, - publicKey: { - serializedName: "publicKey", - required: true, + gracePeriod: { + serializedName: "gracePeriod", type: { name: "String" } }, - id: { - serializedName: "id", - required: true, + repairAction: { + serializedName: "repairAction", type: { name: "String" } @@ -683,293 +567,291 @@ export const SshPublicKeyGenerateKeyPairResult: coreClient.CompositeMapper = { } }; -export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVMProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineExtensionInstanceView", + className: "VirtualMachineScaleSetVMProfile", modelProperties: { - name: { - serializedName: "name", + osProfile: { + serializedName: "osProfile", type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetOSProfile" } }, - type: { - serializedName: "type", + storageProfile: { + serializedName: "storageProfile", type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetStorageProfile" } }, - typeHandlerVersion: { - serializedName: "typeHandlerVersion", + networkProfile: { + serializedName: "networkProfile", type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetNetworkProfile" } }, - substatuses: { - serializedName: "substatuses", + securityProfile: { + serializedName: "securityProfile", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } + name: "Composite", + className: "SecurityProfile" } }, - statuses: { - serializedName: "statuses", + diagnosticsProfile: { + serializedName: "diagnosticsProfile", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } + name: "Composite", + className: "DiagnosticsProfile" } - } - } - } -}; - -export const VirtualMachineExtensionsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineExtensionsListResult", - modelProperties: { - value: { - serializedName: "value", + }, + extensionProfile: { + serializedName: "extensionProfile", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineExtension" - } - } + name: "Composite", + className: "VirtualMachineScaleSetExtensionProfile" } - } - } - } -}; - -export const PurchasePlan: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PurchasePlan", - modelProperties: { - publisher: { - serializedName: "publisher", - required: true, + }, + licenseType: { + serializedName: "licenseType", type: { name: "String" } }, - name: { - serializedName: "name", - required: true, + priority: { + serializedName: "priority", type: { name: "String" } }, - product: { - serializedName: "product", - required: true, + evictionPolicy: { + serializedName: "evictionPolicy", type: { name: "String" } - } - } - } -}; - -export const OSDiskImage: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OSDiskImage", - modelProperties: { - operatingSystem: { - serializedName: "operatingSystem", - required: true, + }, + billingProfile: { + serializedName: "billingProfile", type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] - } - } - } - } -}; - -export const DataDiskImage: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataDiskImage", - modelProperties: { - lun: { - serializedName: "lun", - readOnly: true, - type: { - name: "Number" + name: "Composite", + className: "BillingProfile" } - } - } - } -}; - -export const AutomaticOSUpgradeProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutomaticOSUpgradeProperties", - modelProperties: { - automaticOSUpgradeSupported: { - serializedName: "automaticOSUpgradeSupported", - required: true, + }, + scheduledEventsProfile: { + serializedName: "scheduledEventsProfile", type: { - name: "Boolean" + name: "Composite", + className: "ScheduledEventsProfile" } - } - } - } -}; - -export const DisallowedConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DisallowedConfiguration", - modelProperties: { - vmDiskType: { - serializedName: "vmDiskType", + }, + userData: { + serializedName: "userData", type: { name: "String" } + }, + capacityReservation: { + serializedName: "capacityReservation", + type: { + name: "Composite", + className: "CapacityReservationProfile" + } + }, + applicationProfile: { + serializedName: "applicationProfile", + type: { + name: "Composite", + className: "ApplicationProfile" + } + }, + hardwareProfile: { + serializedName: "hardwareProfile", + type: { + name: "Composite", + className: "VirtualMachineScaleSetHardwareProfile" + } } } } }; -export const VirtualMachineImageFeature: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetOSProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineImageFeature", + className: "VirtualMachineScaleSetOSProfile", modelProperties: { - name: { - serializedName: "name", + computerNamePrefix: { + serializedName: "computerNamePrefix", type: { name: "String" } }, - value: { - serializedName: "value", + adminUsername: { + serializedName: "adminUsername", type: { name: "String" } - } - } - } -}; - -export const ExtendedLocation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExtendedLocation", - modelProperties: { - name: { - serializedName: "name", + }, + adminPassword: { + serializedName: "adminPassword", type: { name: "String" } }, - type: { - serializedName: "type", + customData: { + serializedName: "customData", type: { name: "String" } + }, + windowsConfiguration: { + serializedName: "windowsConfiguration", + type: { + name: "Composite", + className: "WindowsConfiguration" + } + }, + linuxConfiguration: { + serializedName: "linuxConfiguration", + type: { + name: "Composite", + className: "LinuxConfiguration" + } + }, + secrets: { + serializedName: "secrets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VaultSecretGroup" + } + } + } + }, + allowExtensionOperations: { + serializedName: "allowExtensionOperations", + type: { + name: "Boolean" + } } } } }; -export const ListUsagesResult: coreClient.CompositeMapper = { +export const WindowsConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListUsagesResult", + className: "WindowsConfiguration", modelProperties: { - value: { - serializedName: "value", - required: true, + provisionVMAgent: { + serializedName: "provisionVMAgent", + type: { + name: "Boolean" + } + }, + enableAutomaticUpdates: { + serializedName: "enableAutomaticUpdates", + type: { + name: "Boolean" + } + }, + timeZone: { + serializedName: "timeZone", + type: { + name: "String" + } + }, + additionalUnattendContent: { + serializedName: "additionalUnattendContent", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Usage" + className: "AdditionalUnattendContent" } } } }, - nextLink: { - serializedName: "nextLink", + patchSettings: { + serializedName: "patchSettings", type: { - name: "String" + name: "Composite", + className: "PatchSettings" + } + }, + winRM: { + serializedName: "winRM", + type: { + name: "Composite", + className: "WinRMConfiguration" } } } } }; -export const Usage: coreClient.CompositeMapper = { +export const AdditionalUnattendContent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Usage", + className: "AdditionalUnattendContent", modelProperties: { - unit: { - defaultValue: "Count", + passName: { + defaultValue: "OobeSystem", isConstant: true, - serializedName: "unit", + serializedName: "passName", type: { name: "String" } }, - currentValue: { - serializedName: "currentValue", - required: true, + componentName: { + defaultValue: "Microsoft-Windows-Shell-Setup", + isConstant: true, + serializedName: "componentName", type: { - name: "Number" + name: "String" } }, - limit: { - serializedName: "limit", - required: true, + settingName: { + serializedName: "settingName", type: { - name: "Number" + name: "Enum", + allowedValues: ["AutoLogon", "FirstLogonCommands"] } }, - name: { - serializedName: "name", + content: { + serializedName: "content", type: { - name: "Composite", - className: "UsageName" + name: "String" } } } } }; -export const UsageName: coreClient.CompositeMapper = { +export const PatchSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsageName", + className: "PatchSettings", modelProperties: { - value: { - serializedName: "value", + patchMode: { + serializedName: "patchMode", type: { name: "String" } }, - localizedValue: { - serializedName: "localizedValue", + enableHotpatching: { + serializedName: "enableHotpatching", + type: { + name: "Boolean" + } + }, + assessmentMode: { + serializedName: "assessmentMode", type: { name: "String" } @@ -978,59 +860,118 @@ export const UsageName: coreClient.CompositeMapper = { } }; -export const VirtualMachineListResult: coreClient.CompositeMapper = { +export const WinRMConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineListResult", + className: "WinRMConfiguration", modelProperties: { - value: { - serializedName: "value", - required: true, + listeners: { + serializedName: "listeners", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachine" + className: "WinRMListener" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const Plan: coreClient.CompositeMapper = { +export const WinRMListener: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Plan", + className: "WinRMListener", modelProperties: { - name: { - serializedName: "name", + protocol: { + serializedName: "protocol", type: { - name: "String" + name: "Enum", + allowedValues: ["Http", "Https"] } }, - publisher: { - serializedName: "publisher", + certificateUrl: { + serializedName: "certificateUrl", type: { name: "String" } + } + } + } +}; + +export const LinuxConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LinuxConfiguration", + modelProperties: { + disablePasswordAuthentication: { + serializedName: "disablePasswordAuthentication", + type: { + name: "Boolean" + } }, - product: { - serializedName: "product", + ssh: { + serializedName: "ssh", + type: { + name: "Composite", + className: "SshConfiguration" + } + }, + provisionVMAgent: { + serializedName: "provisionVMAgent", + type: { + name: "Boolean" + } + }, + patchSettings: { + serializedName: "patchSettings", + type: { + name: "Composite", + className: "LinuxPatchSettings" + } + } + } + } +}; + +export const SshConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SshConfiguration", + modelProperties: { + publicKeys: { + serializedName: "publicKeys", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SshPublicKey" + } + } + } + } + } + } +}; + +export const SshPublicKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SshPublicKey", + modelProperties: { + path: { + serializedName: "path", type: { name: "String" } }, - promotionCode: { - serializedName: "promotionCode", + keyData: { + serializedName: "keyData", type: { name: "String" } @@ -1039,53 +980,95 @@ export const Plan: coreClient.CompositeMapper = { } }; -export const HardwareProfile: coreClient.CompositeMapper = { +export const LinuxPatchSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HardwareProfile", + className: "LinuxPatchSettings", modelProperties: { - vmSize: { - serializedName: "vmSize", + patchMode: { + serializedName: "patchMode", type: { name: "String" } }, - vmSizeProperties: { - serializedName: "vmSizeProperties", + assessmentMode: { + serializedName: "assessmentMode", + type: { + name: "String" + } + } + } + } +}; + +export const VaultSecretGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VaultSecretGroup", + modelProperties: { + sourceVault: { + serializedName: "sourceVault", type: { name: "Composite", - className: "VMSizeProperties" + className: "SubResource" + } + }, + vaultCertificates: { + serializedName: "vaultCertificates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VaultCertificate" + } + } } } } } }; -export const VMSizeProperties: coreClient.CompositeMapper = { +export const SubResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VMSizeProperties", + className: "SubResource", modelProperties: { - vCPUsAvailable: { - serializedName: "vCPUsAvailable", + id: { + serializedName: "id", type: { - name: "Number" + name: "String" + } + } + } + } +}; + +export const VaultCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VaultCertificate", + modelProperties: { + certificateUrl: { + serializedName: "certificateUrl", + type: { + name: "String" } }, - vCPUsPerCore: { - serializedName: "vCPUsPerCore", + certificateStore: { + serializedName: "certificateStore", type: { - name: "Number" + name: "String" } } } } }; -export const StorageProfile: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetStorageProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageProfile", + className: "VirtualMachineScaleSetStorageProfile", modelProperties: { imageReference: { serializedName: "imageReference", @@ -1098,7 +1081,7 @@ export const StorageProfile: coreClient.CompositeMapper = { serializedName: "osDisk", type: { name: "Composite", - className: "OSDisk" + className: "VirtualMachineScaleSetOSDisk" } }, dataDisks: { @@ -1108,7 +1091,7 @@ export const StorageProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDisk" + className: "VirtualMachineScaleSetDataDisk" } } } @@ -1117,45 +1100,17 @@ export const StorageProfile: coreClient.CompositeMapper = { } }; -export const OSDisk: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetOSDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OSDisk", + className: "VirtualMachineScaleSetOSDisk", modelProperties: { - osType: { - serializedName: "osType", - type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] - } - }, - encryptionSettings: { - serializedName: "encryptionSettings", - type: { - name: "Composite", - className: "DiskEncryptionSettings" - } - }, name: { serializedName: "name", type: { name: "String" } }, - vhd: { - serializedName: "vhd", - type: { - name: "Composite", - className: "VirtualHardDisk" - } - }, - image: { - serializedName: "image", - type: { - name: "Composite", - className: "VirtualHardDisk" - } - }, caching: { serializedName: "caching", type: { @@ -1169,13 +1124,6 @@ export const OSDisk: coreClient.CompositeMapper = { name: "Boolean" } }, - diffDiskSettings: { - serializedName: "diffDiskSettings", - type: { - name: "Composite", - className: "DiffDiskSettings" - } - }, createOption: { serializedName: "createOption", required: true, @@ -1183,99 +1131,71 @@ export const OSDisk: coreClient.CompositeMapper = { name: "String" } }, + diffDiskSettings: { + serializedName: "diffDiskSettings", + type: { + name: "Composite", + className: "DiffDiskSettings" + } + }, diskSizeGB: { serializedName: "diskSizeGB", type: { name: "Number" } }, - managedDisk: { - serializedName: "managedDisk", + osType: { + serializedName: "osType", type: { - name: "Composite", - className: "ManagedDiskParameters" + name: "Enum", + allowedValues: ["Windows", "Linux"] } }, - deleteOption: { - serializedName: "deleteOption", - type: { - name: "String" - } - } - } - } -}; - -export const DiskEncryptionSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiskEncryptionSettings", - modelProperties: { - diskEncryptionKey: { - serializedName: "diskEncryptionKey", + image: { + serializedName: "image", type: { name: "Composite", - className: "KeyVaultSecretReference" + className: "VirtualHardDisk" } }, - keyEncryptionKey: { - serializedName: "keyEncryptionKey", + vhdContainers: { + serializedName: "vhdContainers", type: { - name: "Composite", - className: "KeyVaultKeyReference" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - enabled: { - serializedName: "enabled", + managedDisk: { + serializedName: "managedDisk", type: { - name: "Boolean" + name: "Composite", + className: "VirtualMachineScaleSetManagedDiskParameters" } } } } }; -export const KeyVaultSecretReference: coreClient.CompositeMapper = { +export const DiffDiskSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyVaultSecretReference", + className: "DiffDiskSettings", modelProperties: { - secretUrl: { - serializedName: "secretUrl", - required: true, + option: { + serializedName: "option", type: { name: "String" } }, - sourceVault: { - serializedName: "sourceVault", - type: { - name: "Composite", - className: "SubResource" - } - } - } - } -}; - -export const KeyVaultKeyReference: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "KeyVaultKeyReference", - modelProperties: { - keyUrl: { - serializedName: "keyUrl", - required: true, + placement: { + serializedName: "placement", type: { name: "String" } - }, - sourceVault: { - serializedName: "sourceVault", - type: { - name: "Composite", - className: "SubResource" - } } } } @@ -1296,21 +1216,29 @@ export const VirtualHardDisk: coreClient.CompositeMapper = { } }; -export const DiffDiskSettings: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetManagedDiskParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiffDiskSettings", + className: "VirtualMachineScaleSetManagedDiskParameters", modelProperties: { - option: { - serializedName: "option", + storageAccountType: { + serializedName: "storageAccountType", type: { name: "String" } }, - placement: { - serializedName: "placement", + diskEncryptionSet: { + serializedName: "diskEncryptionSet", type: { - name: "String" + name: "Composite", + className: "DiskEncryptionSetParameters" + } + }, + securityProfile: { + serializedName: "securityProfile", + type: { + name: "Composite", + className: "VMDiskSecurityProfile" } } } @@ -1339,36 +1267,22 @@ export const VMDiskSecurityProfile: coreClient.CompositeMapper = { } }; -export const DataDisk: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetDataDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataDisk", + className: "VirtualMachineScaleSetDataDisk", modelProperties: { - lun: { - serializedName: "lun", - required: true, - type: { - name: "Number" - } - }, name: { serializedName: "name", type: { name: "String" } }, - vhd: { - serializedName: "vhd", - type: { - name: "Composite", - className: "VirtualHardDisk" - } - }, - image: { - serializedName: "image", + lun: { + serializedName: "lun", + required: true, type: { - name: "Composite", - className: "VirtualHardDisk" + name: "Number" } }, caching: { @@ -1401,37 +1315,51 @@ export const DataDisk: coreClient.CompositeMapper = { serializedName: "managedDisk", type: { name: "Composite", - className: "ManagedDiskParameters" - } - }, - toBeDetached: { - serializedName: "toBeDetached", - type: { - name: "Boolean" + className: "VirtualMachineScaleSetManagedDiskParameters" } }, diskIopsReadWrite: { serializedName: "diskIOPSReadWrite", - readOnly: true, type: { name: "Number" } }, diskMBpsReadWrite: { serializedName: "diskMBpsReadWrite", - readOnly: true, type: { name: "Number" } + } + } + } +}; + +export const VirtualMachineScaleSetNetworkProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkProfile", + modelProperties: { + healthProbe: { + serializedName: "healthProbe", + type: { + name: "Composite", + className: "ApiEntityReference" + } }, - detachOption: { - serializedName: "detachOption", + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfiguration" + } + } } }, - deleteOption: { - serializedName: "deleteOption", + networkApiVersion: { + serializedName: "networkApiVersion", type: { name: "String" } @@ -1440,181 +1368,159 @@ export const DataDisk: coreClient.CompositeMapper = { } }; -export const AdditionalCapabilities: coreClient.CompositeMapper = { +export const ApiEntityReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdditionalCapabilities", + className: "ApiEntityReference", modelProperties: { - ultraSSDEnabled: { - serializedName: "ultraSSDEnabled", - type: { - name: "Boolean" - } - }, - hibernationEnabled: { - serializedName: "hibernationEnabled", + id: { + serializedName: "id", type: { - name: "Boolean" + name: "String" } } } } }; -export const OSProfile: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetNetworkConfigurationDnsSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OSProfile", + className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings", modelProperties: { - computerName: { - serializedName: "computerName", - type: { - name: "String" - } - }, - adminUsername: { - serializedName: "adminUsername", + dnsServers: { + serializedName: "dnsServers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - adminPassword: { - serializedName: "adminPassword", + } + } + } +}; + +export const VirtualMachineScaleSetPublicIPAddressConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetPublicIPAddressConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - customData: { - serializedName: "customData", + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "PublicIPAddressSku" } }, - windowsConfiguration: { - serializedName: "windowsConfiguration", + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", type: { - name: "Composite", - className: "WindowsConfiguration" + name: "Number" } }, - linuxConfiguration: { - serializedName: "linuxConfiguration", + dnsSettings: { + serializedName: "properties.dnsSettings", type: { name: "Composite", - className: "LinuxConfiguration" + className: + "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" } }, - secrets: { - serializedName: "secrets", + ipTags: { + serializedName: "properties.ipTags", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VaultSecretGroup" + className: "VirtualMachineScaleSetIpTag" } } } }, - allowExtensionOperations: { - serializedName: "allowExtensionOperations", + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", type: { - name: "Boolean" + name: "Composite", + className: "SubResource" } }, - requireGuestProvisionSignal: { - serializedName: "requireGuestProvisionSignal", + publicIPAddressVersion: { + serializedName: "properties.publicIPAddressVersion", type: { - name: "Boolean" + name: "String" + } + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String" } } } } }; -export const WindowsConfiguration: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WindowsConfiguration", + className: "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", modelProperties: { - provisionVMAgent: { - serializedName: "provisionVMAgent", + domainNameLabel: { + serializedName: "domainNameLabel", + required: true, type: { - name: "Boolean" + name: "String" } - }, - enableAutomaticUpdates: { - serializedName: "enableAutomaticUpdates", + } + } + } +}; + +export const VirtualMachineScaleSetIpTag: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetIpTag", + modelProperties: { + ipTagType: { + serializedName: "ipTagType", type: { - name: "Boolean" + name: "String" } }, - timeZone: { - serializedName: "timeZone", + tag: { + serializedName: "tag", type: { name: "String" } - }, - additionalUnattendContent: { - serializedName: "additionalUnattendContent", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdditionalUnattendContent" - } - } - } - }, - patchSettings: { - serializedName: "patchSettings", - type: { - name: "Composite", - className: "PatchSettings" - } - }, - winRM: { - serializedName: "winRM", - type: { - name: "Composite", - className: "WinRMConfiguration" - } } } } }; -export const AdditionalUnattendContent: coreClient.CompositeMapper = { +export const PublicIPAddressSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdditionalUnattendContent", + className: "PublicIPAddressSku", modelProperties: { - passName: { - defaultValue: "OobeSystem", - isConstant: true, - serializedName: "passName", - type: { - name: "String" - } - }, - componentName: { - defaultValue: "Microsoft-Windows-Shell-Setup", - isConstant: true, - serializedName: "componentName", + name: { + serializedName: "name", type: { name: "String" } }, - settingName: { - serializedName: "settingName", - type: { - name: "Enum", - allowedValues: ["AutoLogon", "FirstLogonCommands"] - } - }, - content: { - serializedName: "content", + tier: { + serializedName: "tier", type: { name: "String" } @@ -1623,25 +1529,26 @@ export const AdditionalUnattendContent: coreClient.CompositeMapper = { } }; -export const PatchSettings: coreClient.CompositeMapper = { +export const SecurityProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PatchSettings", + className: "SecurityProfile", modelProperties: { - patchMode: { - serializedName: "patchMode", + uefiSettings: { + serializedName: "uefiSettings", type: { - name: "String" + name: "Composite", + className: "UefiSettings" } }, - enableHotpatching: { - serializedName: "enableHotpatching", + encryptionAtHost: { + serializedName: "encryptionAtHost", type: { name: "Boolean" } }, - assessmentMode: { - serializedName: "assessmentMode", + securityType: { + serializedName: "securityType", type: { name: "String" } @@ -1650,118 +1557,99 @@ export const PatchSettings: coreClient.CompositeMapper = { } }; -export const WinRMConfiguration: coreClient.CompositeMapper = { +export const UefiSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WinRMConfiguration", + className: "UefiSettings", modelProperties: { - listeners: { - serializedName: "listeners", + secureBootEnabled: { + serializedName: "secureBootEnabled", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WinRMListener" - } - } + name: "Boolean" + } + }, + vTpmEnabled: { + serializedName: "vTpmEnabled", + type: { + name: "Boolean" } } } } }; -export const WinRMListener: coreClient.CompositeMapper = { +export const DiagnosticsProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WinRMListener", + className: "DiagnosticsProfile", modelProperties: { - protocol: { - serializedName: "protocol", - type: { - name: "Enum", - allowedValues: ["Http", "Https"] - } - }, - certificateUrl: { - serializedName: "certificateUrl", + bootDiagnostics: { + serializedName: "bootDiagnostics", type: { - name: "String" + name: "Composite", + className: "BootDiagnostics" } } } } }; -export const LinuxConfiguration: coreClient.CompositeMapper = { +export const BootDiagnostics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LinuxConfiguration", + className: "BootDiagnostics", modelProperties: { - disablePasswordAuthentication: { - serializedName: "disablePasswordAuthentication", - type: { - name: "Boolean" - } - }, - ssh: { - serializedName: "ssh", - type: { - name: "Composite", - className: "SshConfiguration" - } - }, - provisionVMAgent: { - serializedName: "provisionVMAgent", + enabled: { + serializedName: "enabled", type: { name: "Boolean" } }, - patchSettings: { - serializedName: "patchSettings", + storageUri: { + serializedName: "storageUri", type: { - name: "Composite", - className: "LinuxPatchSettings" + name: "String" } } } } }; -export const SshConfiguration: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetExtensionProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SshConfiguration", + className: "VirtualMachineScaleSetExtensionProfile", modelProperties: { - publicKeys: { - serializedName: "publicKeys", + extensions: { + serializedName: "extensions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SshPublicKey" + className: "VirtualMachineScaleSetExtension" } } } + }, + extensionsTimeBudget: { + serializedName: "extensionsTimeBudget", + type: { + name: "String" + } } } } }; -export const SshPublicKey: coreClient.CompositeMapper = { +export const SubResourceReadOnly: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SshPublicKey", + className: "SubResourceReadOnly", modelProperties: { - path: { - serializedName: "path", - type: { - name: "String" - } - }, - keyData: { - serializedName: "keyData", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } @@ -1770,107 +1658,87 @@ export const SshPublicKey: coreClient.CompositeMapper = { } }; -export const LinuxPatchSettings: coreClient.CompositeMapper = { +export const BillingProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LinuxPatchSettings", + className: "BillingProfile", modelProperties: { - patchMode: { - serializedName: "patchMode", - type: { - name: "String" - } - }, - assessmentMode: { - serializedName: "assessmentMode", + maxPrice: { + serializedName: "maxPrice", type: { - name: "String" + name: "Number" } } } } }; -export const VaultSecretGroup: coreClient.CompositeMapper = { +export const ScheduledEventsProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VaultSecretGroup", + className: "ScheduledEventsProfile", modelProperties: { - sourceVault: { - serializedName: "sourceVault", + terminateNotificationProfile: { + serializedName: "terminateNotificationProfile", type: { name: "Composite", - className: "SubResource" - } - }, - vaultCertificates: { - serializedName: "vaultCertificates", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VaultCertificate" - } - } + className: "TerminateNotificationProfile" } } } } }; -export const VaultCertificate: coreClient.CompositeMapper = { +export const TerminateNotificationProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VaultCertificate", + className: "TerminateNotificationProfile", modelProperties: { - certificateUrl: { - serializedName: "certificateUrl", + notBeforeTimeout: { + serializedName: "notBeforeTimeout", type: { name: "String" } }, - certificateStore: { - serializedName: "certificateStore", + enable: { + serializedName: "enable", type: { - name: "String" + name: "Boolean" } } } } }; -export const NetworkProfile: coreClient.CompositeMapper = { +export const CapacityReservationProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkProfile", + className: "CapacityReservationProfile", modelProperties: { - networkInterfaces: { - serializedName: "networkInterfaces", + capacityReservationGroup: { + serializedName: "capacityReservationGroup", + type: { + name: "Composite", + className: "SubResource" + } + } + } + } +}; + +export const ApplicationProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationProfile", + modelProperties: { + galleryApplications: { + serializedName: "galleryApplications", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NetworkInterfaceReference" - } - } - } - }, - networkApiVersion: { - serializedName: "networkApiVersion", - type: { - name: "String" - } - }, - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceConfiguration" + className: "VMGalleryApplication" } } } @@ -1879,92 +1747,105 @@ export const NetworkProfile: coreClient.CompositeMapper = { } }; -export const VirtualMachineNetworkInterfaceConfiguration: coreClient.CompositeMapper = { +export const VMGalleryApplication: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineNetworkInterfaceConfiguration", + className: "VMGalleryApplication", modelProperties: { - name: { - serializedName: "name", - required: true, + tags: { + serializedName: "tags", type: { name: "String" } }, - primary: { - serializedName: "properties.primary", + order: { + serializedName: "order", type: { - name: "Boolean" + name: "Number" } }, - deleteOption: { - serializedName: "properties.deleteOption", + packageReferenceId: { + serializedName: "packageReferenceId", + required: true, type: { name: "String" } }, - enableAcceleratedNetworking: { - serializedName: "properties.enableAcceleratedNetworking", - type: { - name: "Boolean" - } - }, - enableFpga: { - serializedName: "properties.enableFpga", + configurationReference: { + serializedName: "configurationReference", type: { - name: "Boolean" + name: "String" } - }, - enableIPForwarding: { - serializedName: "properties.enableIPForwarding", + } + } + } +}; + +export const VirtualMachineScaleSetHardwareProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetHardwareProfile", + modelProperties: { + vmSizeProperties: { + serializedName: "vmSizeProperties", type: { - name: "Boolean" + name: "Composite", + className: "VMSizeProperties" } - }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", + } + } + } +}; + +export const VMSizeProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VMSizeProperties", + modelProperties: { + vCPUsAvailable: { + serializedName: "vCPUsAvailable", type: { - name: "Composite", - className: "SubResource" + name: "Number" } }, - dnsSettings: { - serializedName: "properties.dnsSettings", + vCPUsPerCore: { + serializedName: "vCPUsPerCore", type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration" + name: "Number" } - }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + } + } + } +}; + +export const AdditionalCapabilities: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AdditionalCapabilities", + modelProperties: { + ultraSSDEnabled: { + serializedName: "ultraSSDEnabled", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceIPConfiguration" - } - } + name: "Boolean" } }, - dscpConfiguration: { - serializedName: "properties.dscpConfiguration", + hibernationEnabled: { + serializedName: "hibernationEnabled", type: { - name: "Composite", - className: "SubResource" + name: "Boolean" } } } } }; -export const VirtualMachineNetworkInterfaceDnsSettingsConfiguration: coreClient.CompositeMapper = { +export const ScaleInPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration", + className: "ScaleInPolicy", modelProperties: { - dnsServers: { - serializedName: "dnsServers", + rules: { + serializedName: "rules", type: { name: "Sequence", element: { @@ -1973,240 +1854,243 @@ export const VirtualMachineNetworkInterfaceDnsSettingsConfiguration: coreClient. } } } + }, + forceDeletion: { + serializedName: "forceDeletion", + type: { + name: "Boolean" + } } } } }; -export const VirtualMachineNetworkInterfaceIPConfiguration: coreClient.CompositeMapper = { +export const SpotRestorePolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineNetworkInterfaceIPConfiguration", + className: "SpotRestorePolicy", modelProperties: { - name: { - serializedName: "name", - required: true, + enabled: { + serializedName: "enabled", type: { - name: "String" + name: "Boolean" } }, - subnet: { - serializedName: "properties.subnet", + restoreTimeout: { + serializedName: "restoreTimeout", type: { - name: "Composite", - className: "SubResource" + name: "String" } - }, - primary: { - serializedName: "properties.primary", + } + } + } +}; + +export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - publicIPAddressConfiguration: { - serializedName: "properties.publicIPAddressConfiguration", + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { - name: "Composite", - className: "VirtualMachinePublicIPAddressConfiguration" + name: "String" } }, - privateIPAddressVersion: { - serializedName: "properties.privateIPAddressVersion", + type: { + serializedName: "type", type: { - name: "String" + name: "Enum", + allowedValues: [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ] } }, - applicationSecurityGroups: { - serializedName: "properties.applicationSecurityGroups", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { name: "Composite", - className: "SubResource" + className: + "VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue" } } } - }, - applicationGatewayBackendAddressPools: { - serializedName: "properties.applicationGatewayBackendAddressPools", + } + } + } +}; + +export const VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } }, - loadBalancerBackendAddressPools: { - serializedName: "properties.loadBalancerBackendAddressPools", + clientId: { + serializedName: "clientId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } } } } }; -export const VirtualMachinePublicIPAddressConfiguration: coreClient.CompositeMapper = { +export const ExtendedLocation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachinePublicIPAddressConfiguration", + className: "ExtendedLocation", modelProperties: { name: { serializedName: "name", - required: true, type: { name: "String" } }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "PublicIPAddressSku" - } - }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", + type: { + serializedName: "type", type: { - name: "Number" + name: "String" } - }, - deleteOption: { - serializedName: "properties.deleteOption", + } + } + } +}; + +export const Resource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - dnsSettings: { - serializedName: "properties.dnsSettings", - type: { - name: "Composite", - className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration" - } - }, - ipTags: { - serializedName: "properties.ipTags", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineIpTag" - } - } + name: "String" } }, - publicIPPrefix: { - serializedName: "properties.publicIPPrefix", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - publicIPAddressVersion: { - serializedName: "properties.publicIPAddressVersion", + location: { + serializedName: "location", + required: true, type: { name: "String" } }, - publicIPAllocationMethod: { - serializedName: "properties.publicIPAllocationMethod", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const VirtualMachinePublicIPAddressDnsSettingsConfiguration: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdateVMProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration", + className: "VirtualMachineScaleSetUpdateVMProfile", modelProperties: { - domainNameLabel: { - serializedName: "domainNameLabel", - required: true, + osProfile: { + serializedName: "osProfile", type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetUpdateOSProfile" } - } - } - } -}; - -export const VirtualMachineIpTag: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineIpTag", - modelProperties: { - ipTagType: { - serializedName: "ipTagType", + }, + storageProfile: { + serializedName: "storageProfile", type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetUpdateStorageProfile" } }, - tag: { - serializedName: "tag", + networkProfile: { + serializedName: "networkProfile", type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetUpdateNetworkProfile" } - } - } - } -}; - -export const PublicIPAddressSku: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PublicIPAddressSku", - modelProperties: { - name: { - serializedName: "name", + }, + securityProfile: { + serializedName: "securityProfile", type: { - name: "String" + name: "Composite", + className: "SecurityProfile" } }, - tier: { - serializedName: "tier", + diagnosticsProfile: { + serializedName: "diagnosticsProfile", + type: { + name: "Composite", + className: "DiagnosticsProfile" + } + }, + extensionProfile: { + serializedName: "extensionProfile", + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtensionProfile" + } + }, + licenseType: { + serializedName: "licenseType", type: { name: "String" } - } - } - } -}; - -export const SecurityProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityProfile", - modelProperties: { - uefiSettings: { - serializedName: "uefiSettings", + }, + billingProfile: { + serializedName: "billingProfile", type: { name: "Composite", - className: "UefiSettings" + className: "BillingProfile" } }, - encryptionAtHost: { - serializedName: "encryptionAtHost", + scheduledEventsProfile: { + serializedName: "scheduledEventsProfile", type: { - name: "Boolean" + name: "Composite", + className: "ScheduledEventsProfile" } }, - securityType: { - serializedName: "securityType", + userData: { + serializedName: "userData", type: { name: "String" } @@ -2215,227 +2099,289 @@ export const SecurityProfile: coreClient.CompositeMapper = { } }; -export const UefiSettings: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdateOSProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UefiSettings", + className: "VirtualMachineScaleSetUpdateOSProfile", modelProperties: { - secureBootEnabled: { - serializedName: "secureBootEnabled", + customData: { + serializedName: "customData", type: { - name: "Boolean" + name: "String" } }, - vTpmEnabled: { - serializedName: "vTpmEnabled", + windowsConfiguration: { + serializedName: "windowsConfiguration", type: { - name: "Boolean" + name: "Composite", + className: "WindowsConfiguration" } - } - } - } -}; - -export const DiagnosticsProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiagnosticsProfile", - modelProperties: { - bootDiagnostics: { - serializedName: "bootDiagnostics", + }, + linuxConfiguration: { + serializedName: "linuxConfiguration", type: { name: "Composite", - className: "BootDiagnostics" + className: "LinuxConfiguration" + } + }, + secrets: { + serializedName: "secrets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VaultSecretGroup" + } + } } } } } }; -export const BootDiagnostics: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdateStorageProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BootDiagnostics", + className: "VirtualMachineScaleSetUpdateStorageProfile", modelProperties: { - enabled: { - serializedName: "enabled", + imageReference: { + serializedName: "imageReference", type: { - name: "Boolean" + name: "Composite", + className: "ImageReference" } }, - storageUri: { - serializedName: "storageUri", + osDisk: { + serializedName: "osDisk", type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetUpdateOSDisk" } - } - } - } -}; - -export const BillingProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BillingProfile", - modelProperties: { - maxPrice: { - serializedName: "maxPrice", + }, + dataDisks: { + serializedName: "dataDisks", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetDataDisk" + } + } } } } } }; -export const VirtualMachineInstanceView: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdateOSDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineInstanceView", + className: "VirtualMachineScaleSetUpdateOSDisk", modelProperties: { - platformUpdateDomain: { - serializedName: "platformUpdateDomain", + caching: { + serializedName: "caching", type: { - name: "Number" + name: "Enum", + allowedValues: ["None", "ReadOnly", "ReadWrite"] } }, - platformFaultDomain: { - serializedName: "platformFaultDomain", + writeAcceleratorEnabled: { + serializedName: "writeAcceleratorEnabled", type: { - name: "Number" - } - }, - computerName: { - serializedName: "computerName", - type: { - name: "String" - } - }, - osName: { - serializedName: "osName", - type: { - name: "String" + name: "Boolean" } }, - osVersion: { - serializedName: "osVersion", + diskSizeGB: { + serializedName: "diskSizeGB", type: { - name: "String" + name: "Number" } }, - hyperVGeneration: { - serializedName: "hyperVGeneration", + image: { + serializedName: "image", type: { - name: "String" + name: "Composite", + className: "VirtualHardDisk" } }, - rdpThumbPrint: { - serializedName: "rdpThumbPrint", + vhdContainers: { + serializedName: "vhdContainers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - vmAgent: { - serializedName: "vmAgent", + managedDisk: { + serializedName: "managedDisk", type: { name: "Composite", - className: "VirtualMachineAgentInstanceView" + className: "VirtualMachineScaleSetManagedDiskParameters" } - }, - maintenanceRedeployStatus: { - serializedName: "maintenanceRedeployStatus", + } + } + } +}; + +export const VirtualMachineScaleSetUpdateNetworkProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateNetworkProfile", + modelProperties: { + healthProbe: { + serializedName: "healthProbe", type: { name: "Composite", - className: "MaintenanceRedeployStatus" + className: "ApiEntityReference" } }, - disks: { - serializedName: "disks", + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DiskInstanceView" + className: "VirtualMachineScaleSetUpdateNetworkConfiguration" } } } }, - extensions: { - serializedName: "extensions", + networkApiVersion: { + serializedName: "networkApiVersion", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineExtensionInstanceView" - } - } + name: "String" + } + } + } + } +}; + +export const VirtualMachineScaleSetUpdatePublicIPAddressConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" } }, - vmHealth: { - serializedName: "vmHealth", + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number" + } + }, + dnsSettings: { + serializedName: "properties.dnsSettings", type: { name: "Composite", - className: "VirtualMachineHealthStatus" + className: + "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" } }, - bootDiagnostics: { - serializedName: "bootDiagnostics", + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", type: { name: "Composite", - className: "BootDiagnosticsInstanceView" + className: "SubResource" } }, - assignedHost: { - serializedName: "assignedHost", - readOnly: true, + deleteOption: { + serializedName: "properties.deleteOption", type: { name: "String" } - }, - statuses: { - serializedName: "statuses", + } + } + } +}; + +export const UpdateResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateResource", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const VirtualMachineScaleSetVMInstanceIDs: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMInstanceIDs", + modelProperties: { + instanceIds: { + serializedName: "instanceIds", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "InstanceViewStatus" + name: "String" } } } - }, - patchStatus: { - serializedName: "patchStatus", + } + } + } +}; + +export const VirtualMachineScaleSetVMInstanceRequiredIDs: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMInstanceRequiredIDs", + modelProperties: { + instanceIds: { + serializedName: "instanceIds", + required: true, type: { - name: "Composite", - className: "VirtualMachinePatchStatus" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineAgentInstanceView", + className: "VirtualMachineScaleSetInstanceView", modelProperties: { - vmAgentVersion: { - serializedName: "vmAgentVersion", + virtualMachine: { + serializedName: "virtualMachine", type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetInstanceViewStatusesSummary" } }, - extensionHandlers: { - serializedName: "extensionHandlers", + extensions: { + serializedName: "extensions", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineExtensionHandlerInstanceView" + className: "VirtualMachineScaleSetVMExtensionsSummary" } } } @@ -2451,359 +2397,512 @@ export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { } } } + }, + orchestrationServices: { + serializedName: "orchestrationServices", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OrchestrationServiceSummary" + } + } + } } } } }; -export const VirtualMachineExtensionHandlerInstanceView: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetInstanceViewStatusesSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineExtensionHandlerInstanceView", + className: "VirtualMachineScaleSetInstanceViewStatusesSummary", modelProperties: { - type: { - serializedName: "type", + statusesSummary: { + serializedName: "statusesSummary", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineStatusCodeCount" + } + } } - }, - typeHandlerVersion: { - serializedName: "typeHandlerVersion", + } + } + } +}; + +export const VirtualMachineStatusCodeCount: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineStatusCodeCount", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, type: { name: "String" } }, - status: { - serializedName: "status", + count: { + serializedName: "count", + readOnly: true, type: { - name: "Composite", - className: "InstanceViewStatus" + name: "Number" } } } } }; -export const MaintenanceRedeployStatus: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVMExtensionsSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceRedeployStatus", + className: "VirtualMachineScaleSetVMExtensionsSummary", modelProperties: { - isCustomerInitiatedMaintenanceAllowed: { - serializedName: "isCustomerInitiatedMaintenanceAllowed", - type: { - name: "Boolean" + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" } }, - preMaintenanceWindowStartTime: { - serializedName: "preMaintenanceWindowStartTime", + statusesSummary: { + serializedName: "statusesSummary", + readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineStatusCodeCount" + } + } } - }, - preMaintenanceWindowEndTime: { - serializedName: "preMaintenanceWindowEndTime", + } + } + } +}; + +export const InstanceViewStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceViewStatus", + modelProperties: { + code: { + serializedName: "code", type: { - name: "DateTime" + name: "String" } }, - maintenanceWindowStartTime: { - serializedName: "maintenanceWindowStartTime", + level: { + serializedName: "level", type: { - name: "DateTime" + name: "Enum", + allowedValues: ["Info", "Warning", "Error"] } }, - maintenanceWindowEndTime: { - serializedName: "maintenanceWindowEndTime", + displayStatus: { + serializedName: "displayStatus", type: { - name: "DateTime" + name: "String" } }, - lastOperationResultCode: { - serializedName: "lastOperationResultCode", + message: { + serializedName: "message", type: { - name: "Enum", - allowedValues: [ - "None", - "RetryLater", - "MaintenanceAborted", - "MaintenanceCompleted" - ] + name: "String" } }, - lastOperationMessage: { - serializedName: "lastOperationMessage", + time: { + serializedName: "time", type: { - name: "String" + name: "DateTime" } } } } }; -export const DiskInstanceView: coreClient.CompositeMapper = { +export const OrchestrationServiceSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskInstanceView", + className: "OrchestrationServiceSummary", modelProperties: { - name: { - serializedName: "name", + serviceName: { + serializedName: "serviceName", + readOnly: true, type: { name: "String" } }, - encryptionSettings: { - serializedName: "encryptionSettings", + serviceState: { + serializedName: "serviceState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachineScaleSetExtensionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtensionListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DiskEncryptionSettings" + className: "VirtualMachineScaleSetExtension" } } } }, - statuses: { - serializedName: "statuses", + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachineScaleSetListWithLinkResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetListWithLinkResult", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "InstanceViewStatus" + className: "VirtualMachineScaleSet" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const VirtualMachineHealthStatus: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetListSkusResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineHealthStatus", + className: "VirtualMachineScaleSetListSkusResult", modelProperties: { - status: { - serializedName: "status", + value: { + serializedName: "value", + required: true, type: { - name: "Composite", - className: "InstanceViewStatus" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetSku" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" } } } } }; -export const BootDiagnosticsInstanceView: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BootDiagnosticsInstanceView", + className: "VirtualMachineScaleSetSku", modelProperties: { - consoleScreenshotBlobUri: { - serializedName: "consoleScreenshotBlobUri", + resourceType: { + serializedName: "resourceType", readOnly: true, type: { name: "String" } }, - serialConsoleLogBlobUri: { - serializedName: "serialConsoleLogBlobUri", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - status: { - serializedName: "status", + capacity: { + serializedName: "capacity", type: { name: "Composite", - className: "InstanceViewStatus" + className: "VirtualMachineScaleSetSkuCapacity" } } } } }; -export const VirtualMachinePatchStatus: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetSkuCapacity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachinePatchStatus", + className: "VirtualMachineScaleSetSkuCapacity", modelProperties: { - availablePatchSummary: { - serializedName: "availablePatchSummary", + minimum: { + serializedName: "minimum", + readOnly: true, type: { - name: "Composite", - className: "AvailablePatchSummary" + name: "Number" } }, - lastPatchInstallationSummary: { - serializedName: "lastPatchInstallationSummary", + maximum: { + serializedName: "maximum", + readOnly: true, type: { - name: "Composite", - className: "LastPatchInstallationSummary" + name: "Number" } }, - configurationStatuses: { - serializedName: "configurationStatuses", + defaultCapacity: { + serializedName: "defaultCapacity", + readOnly: true, + type: { + name: "Number" + } + }, + scaleType: { + serializedName: "scaleType", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Automatic", "None"] + } + } + } + } +}; + +export const VirtualMachineScaleSetListOSUpgradeHistory: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetListOSUpgradeHistory", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "InstanceViewStatus" + className: "UpgradeOperationHistoricalStatusInfo" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const AvailablePatchSummary: coreClient.CompositeMapper = { +export const UpgradeOperationHistoricalStatusInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailablePatchSummary", + className: "UpgradeOperationHistoricalStatusInfo", modelProperties: { - status: { - serializedName: "status", - readOnly: true, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "UpgradeOperationHistoricalStatusInfoProperties" } }, - assessmentActivityId: { - serializedName: "assessmentActivityId", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - rebootPending: { - serializedName: "rebootPending", + location: { + serializedName: "location", readOnly: true, type: { - name: "Boolean" + name: "String" } - }, - criticalAndSecurityPatchCount: { - serializedName: "criticalAndSecurityPatchCount", - readOnly: true, - type: { - name: "Number" + } + } + } +}; + +export const UpgradeOperationHistoricalStatusInfoProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpgradeOperationHistoricalStatusInfoProperties", + modelProperties: { + runningStatus: { + serializedName: "runningStatus", + type: { + name: "Composite", + className: "UpgradeOperationHistoryStatus" } }, - otherPatchCount: { - serializedName: "otherPatchCount", - readOnly: true, + progress: { + serializedName: "progress", type: { - name: "Number" + name: "Composite", + className: "RollingUpgradeProgressInfo" } }, - startTime: { - serializedName: "startTime", - readOnly: true, + error: { + serializedName: "error", type: { - name: "DateTime" + name: "Composite", + className: "ApiError" } }, - lastModifiedTime: { - serializedName: "lastModifiedTime", + startedBy: { + serializedName: "startedBy", readOnly: true, type: { - name: "DateTime" + name: "Enum", + allowedValues: ["Unknown", "User", "Platform"] } }, - error: { - serializedName: "error", + targetImageReference: { + serializedName: "targetImageReference", type: { name: "Composite", - className: "ApiError" + className: "ImageReference" + } + }, + rollbackInfo: { + serializedName: "rollbackInfo", + type: { + name: "Composite", + className: "RollbackStatusInfo" } } } } }; -export const LastPatchInstallationSummary: coreClient.CompositeMapper = { +export const UpgradeOperationHistoryStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LastPatchInstallationSummary", + className: "UpgradeOperationHistoryStatus", modelProperties: { - status: { - serializedName: "status", + code: { + serializedName: "code", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["RollingForward", "Cancelled", "Completed", "Faulted"] } }, - installationActivityId: { - serializedName: "installationActivityId", + startTime: { + serializedName: "startTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - maintenanceWindowExceeded: { - serializedName: "maintenanceWindowExceeded", + endTime: { + serializedName: "endTime", readOnly: true, type: { - name: "Boolean" + name: "DateTime" } - }, - notSelectedPatchCount: { - serializedName: "notSelectedPatchCount", + } + } + } +}; + +export const RollingUpgradeProgressInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RollingUpgradeProgressInfo", + modelProperties: { + successfulInstanceCount: { + serializedName: "successfulInstanceCount", readOnly: true, type: { name: "Number" } }, - excludedPatchCount: { - serializedName: "excludedPatchCount", + failedInstanceCount: { + serializedName: "failedInstanceCount", readOnly: true, type: { name: "Number" } }, - pendingPatchCount: { - serializedName: "pendingPatchCount", + inProgressInstanceCount: { + serializedName: "inProgressInstanceCount", readOnly: true, type: { name: "Number" } }, - installedPatchCount: { - serializedName: "installedPatchCount", + pendingInstanceCount: { + serializedName: "pendingInstanceCount", readOnly: true, type: { name: "Number" } - }, - failedPatchCount: { - serializedName: "failedPatchCount", + } + } + } +}; + +export const RollbackStatusInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RollbackStatusInfo", + modelProperties: { + successfullyRolledbackInstanceCount: { + serializedName: "successfullyRolledbackInstanceCount", readOnly: true, type: { name: "Number" } }, - startTime: { - serializedName: "startTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - lastModifiedTime: { - serializedName: "lastModifiedTime", + failedRolledbackInstanceCount: { + serializedName: "failedRolledbackInstanceCount", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - error: { - serializedName: "error", + rollbackError: { + serializedName: "rollbackError", type: { name: "Composite", className: "ApiError" @@ -2813,106 +2912,113 @@ export const LastPatchInstallationSummary: coreClient.CompositeMapper = { } }; -export const ScheduledEventsProfile: coreClient.CompositeMapper = { +export const VirtualMachineReimageParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduledEventsProfile", + className: "VirtualMachineReimageParameters", modelProperties: { - terminateNotificationProfile: { - serializedName: "terminateNotificationProfile", + tempDisk: { + serializedName: "tempDisk", type: { - name: "Composite", - className: "TerminateNotificationProfile" + name: "Boolean" } } } } }; -export const TerminateNotificationProfile: coreClient.CompositeMapper = { +export const RollingUpgradeRunningStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TerminateNotificationProfile", + className: "RollingUpgradeRunningStatus", modelProperties: { - notBeforeTimeout: { - serializedName: "notBeforeTimeout", + code: { + serializedName: "code", + readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["RollingForward", "Cancelled", "Completed", "Faulted"] } }, - enable: { - serializedName: "enable", + startTime: { + serializedName: "startTime", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" + } + }, + lastAction: { + serializedName: "lastAction", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Start", "Cancel"] + } + }, + lastActionTime: { + serializedName: "lastActionTime", + readOnly: true, + type: { + name: "DateTime" } } } } }; -export const CapacityReservationProfile: coreClient.CompositeMapper = { +export const RecoveryWalkResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CapacityReservationProfile", + className: "RecoveryWalkResponse", modelProperties: { - capacityReservationGroup: { - serializedName: "capacityReservationGroup", + walkPerformed: { + serializedName: "walkPerformed", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "Boolean" + } + }, + nextPlatformUpdateDomain: { + serializedName: "nextPlatformUpdateDomain", + readOnly: true, + type: { + name: "Number" } } } } }; -export const ApplicationProfile: coreClient.CompositeMapper = { +export const VMScaleSetConvertToSinglePlacementGroupInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationProfile", + className: "VMScaleSetConvertToSinglePlacementGroupInput", modelProperties: { - galleryApplications: { - serializedName: "galleryApplications", + activePlacementGroupId: { + serializedName: "activePlacementGroupId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VMGalleryApplication" - } - } + name: "String" } } } } }; -export const VMGalleryApplication: coreClient.CompositeMapper = { +export const OrchestrationServiceStateInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VMGalleryApplication", + className: "OrchestrationServiceStateInput", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "String" - } - }, - order: { - serializedName: "order", - type: { - name: "Number" - } - }, - packageReferenceId: { - serializedName: "packageReferenceId", + serviceName: { + serializedName: "serviceName", required: true, type: { name: "String" } }, - configurationReference: { - serializedName: "configurationReference", + action: { + serializedName: "action", + required: true, type: { name: "String" } @@ -2921,418 +3027,492 @@ export const VMGalleryApplication: coreClient.CompositeMapper = { } }; -export const VirtualMachineIdentity: coreClient.CompositeMapper = { +export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineIdentity", + className: "VirtualMachineExtensionInstanceView", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", - readOnly: true, + type: { + serializedName: "type", type: { name: "String" } }, - type: { - serializedName: "type", + typeHandlerVersion: { + serializedName: "typeHandlerVersion", type: { - name: "Enum", - allowedValues: [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned, UserAssigned", - "None" - ] + name: "String" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + substatuses: { + serializedName: "substatuses", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { name: "Composite", - className: "UserAssignedIdentitiesValue" + className: "InstanceViewStatus" } } } - } - } - } -}; - -export const UserAssignedIdentitiesValue: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserAssignedIdentitiesValue", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String" - } }, - clientId: { - serializedName: "clientId", - readOnly: true, + statuses: { + serializedName: "statuses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } } } } } }; -export const VirtualMachineScaleSetListResult: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVMExtensionsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetListResult", + className: "VirtualMachineScaleSetVMExtensionsListResult", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineScaleSet" + className: "VirtualMachineScaleSetVMExtension" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const UpgradePolicy: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVMInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpgradePolicy", + className: "VirtualMachineScaleSetVMInstanceView", modelProperties: { - mode: { - serializedName: "mode", + platformUpdateDomain: { + serializedName: "platformUpdateDomain", type: { - name: "Enum", - allowedValues: ["Automatic", "Manual", "Rolling"] + name: "Number" } }, - rollingUpgradePolicy: { - serializedName: "rollingUpgradePolicy", + platformFaultDomain: { + serializedName: "platformFaultDomain", + type: { + name: "Number" + } + }, + rdpThumbPrint: { + serializedName: "rdpThumbPrint", + type: { + name: "String" + } + }, + vmAgent: { + serializedName: "vmAgent", type: { name: "Composite", - className: "RollingUpgradePolicy" + className: "VirtualMachineAgentInstanceView" } }, - automaticOSUpgradePolicy: { - serializedName: "automaticOSUpgradePolicy", + maintenanceRedeployStatus: { + serializedName: "maintenanceRedeployStatus", type: { name: "Composite", - className: "AutomaticOSUpgradePolicy" + className: "MaintenanceRedeployStatus" } - } - } - } -}; - -export const RollingUpgradePolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RollingUpgradePolicy", - modelProperties: { - maxBatchInstancePercent: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 5 - }, - serializedName: "maxBatchInstancePercent", + }, + disks: { + serializedName: "disks", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskInstanceView" + } + } } }, - maxUnhealthyInstancePercent: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 5 - }, - serializedName: "maxUnhealthyInstancePercent", + extensions: { + serializedName: "extensions", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineExtensionInstanceView" + } + } } }, - maxUnhealthyUpgradedInstancePercent: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0 - }, - serializedName: "maxUnhealthyUpgradedInstancePercent", + vmHealth: { + serializedName: "vmHealth", type: { - name: "Number" + name: "Composite", + className: "VirtualMachineHealthStatus" } }, - pauseTimeBetweenBatches: { - serializedName: "pauseTimeBetweenBatches", + bootDiagnostics: { + serializedName: "bootDiagnostics", type: { - name: "String" + name: "Composite", + className: "BootDiagnosticsInstanceView" } }, - enableCrossZoneUpgrade: { - serializedName: "enableCrossZoneUpgrade", + statuses: { + serializedName: "statuses", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } } }, - prioritizeUnhealthyInstances: { - serializedName: "prioritizeUnhealthyInstances", + assignedHost: { + serializedName: "assignedHost", + readOnly: true, type: { - name: "Boolean" + name: "String" + } + }, + placementGroupId: { + serializedName: "placementGroupId", + type: { + name: "String" } } } } }; -export const AutomaticOSUpgradePolicy: coreClient.CompositeMapper = { +export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomaticOSUpgradePolicy", + className: "VirtualMachineAgentInstanceView", modelProperties: { - enableAutomaticOSUpgrade: { - serializedName: "enableAutomaticOSUpgrade", + vmAgentVersion: { + serializedName: "vmAgentVersion", type: { - name: "Boolean" + name: "String" } }, - disableAutomaticRollback: { - serializedName: "disableAutomaticRollback", + extensionHandlers: { + serializedName: "extensionHandlers", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineExtensionHandlerInstanceView" + } + } + } + }, + statuses: { + serializedName: "statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } } } } } }; -export const AutomaticRepairsPolicy: coreClient.CompositeMapper = { +export const VirtualMachineExtensionHandlerInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomaticRepairsPolicy", + className: "VirtualMachineExtensionHandlerInstanceView", modelProperties: { - enabled: { - serializedName: "enabled", + type: { + serializedName: "type", type: { - name: "Boolean" + name: "String" } }, - gracePeriod: { - serializedName: "gracePeriod", + typeHandlerVersion: { + serializedName: "typeHandlerVersion", type: { name: "String" } }, - repairAction: { - serializedName: "repairAction", + status: { + serializedName: "status", type: { - name: "String" + name: "Composite", + className: "InstanceViewStatus" } } } } }; -export const VirtualMachineScaleSetVMProfile: coreClient.CompositeMapper = { +export const MaintenanceRedeployStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMProfile", + className: "MaintenanceRedeployStatus", modelProperties: { - osProfile: { - serializedName: "osProfile", + isCustomerInitiatedMaintenanceAllowed: { + serializedName: "isCustomerInitiatedMaintenanceAllowed", type: { - name: "Composite", - className: "VirtualMachineScaleSetOSProfile" + name: "Boolean" } }, - storageProfile: { - serializedName: "storageProfile", + preMaintenanceWindowStartTime: { + serializedName: "preMaintenanceWindowStartTime", type: { - name: "Composite", - className: "VirtualMachineScaleSetStorageProfile" + name: "DateTime" } }, - networkProfile: { - serializedName: "networkProfile", + preMaintenanceWindowEndTime: { + serializedName: "preMaintenanceWindowEndTime", type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkProfile" + name: "DateTime" } }, - securityProfile: { - serializedName: "securityProfile", + maintenanceWindowStartTime: { + serializedName: "maintenanceWindowStartTime", type: { - name: "Composite", - className: "SecurityProfile" + name: "DateTime" } }, - diagnosticsProfile: { - serializedName: "diagnosticsProfile", + maintenanceWindowEndTime: { + serializedName: "maintenanceWindowEndTime", type: { - name: "Composite", - className: "DiagnosticsProfile" + name: "DateTime" } }, - extensionProfile: { - serializedName: "extensionProfile", + lastOperationResultCode: { + serializedName: "lastOperationResultCode", type: { - name: "Composite", - className: "VirtualMachineScaleSetExtensionProfile" + name: "Enum", + allowedValues: [ + "None", + "RetryLater", + "MaintenanceAborted", + "MaintenanceCompleted" + ] } }, - licenseType: { - serializedName: "licenseType", + lastOperationMessage: { + serializedName: "lastOperationMessage", type: { name: "String" } - }, - priority: { - serializedName: "priority", + } + } + } +}; + +export const DiskInstanceView: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskInstanceView", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - evictionPolicy: { - serializedName: "evictionPolicy", + encryptionSettings: { + serializedName: "encryptionSettings", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskEncryptionSettings" + } + } } }, - billingProfile: { - serializedName: "billingProfile", + statuses: { + serializedName: "statuses", type: { - name: "Composite", - className: "BillingProfile" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } } - }, - scheduledEventsProfile: { - serializedName: "scheduledEventsProfile", + } + } + } +}; + +export const DiskEncryptionSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskEncryptionSettings", + modelProperties: { + diskEncryptionKey: { + serializedName: "diskEncryptionKey", type: { name: "Composite", - className: "ScheduledEventsProfile" + className: "KeyVaultSecretReference" } }, - userData: { - serializedName: "userData", + keyEncryptionKey: { + serializedName: "keyEncryptionKey", type: { - name: "String" + name: "Composite", + className: "KeyVaultKeyReference" } }, - capacityReservation: { - serializedName: "capacityReservation", + enabled: { + serializedName: "enabled", type: { - name: "Composite", - className: "CapacityReservationProfile" + name: "Boolean" } - }, - applicationProfile: { - serializedName: "applicationProfile", + } + } + } +}; + +export const KeyVaultSecretReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyVaultSecretReference", + modelProperties: { + secretUrl: { + serializedName: "secretUrl", + required: true, type: { - name: "Composite", - className: "ApplicationProfile" + name: "String" } }, - hardwareProfile: { - serializedName: "hardwareProfile", + sourceVault: { + serializedName: "sourceVault", type: { name: "Composite", - className: "VirtualMachineScaleSetHardwareProfile" + className: "SubResource" } } } } }; -export const VirtualMachineScaleSetOSProfile: coreClient.CompositeMapper = { +export const KeyVaultKeyReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetOSProfile", + className: "KeyVaultKeyReference", modelProperties: { - computerNamePrefix: { - serializedName: "computerNamePrefix", + keyUrl: { + serializedName: "keyUrl", + required: true, type: { name: "String" } }, - adminUsername: { - serializedName: "adminUsername", + sourceVault: { + serializedName: "sourceVault", type: { - name: "String" + name: "Composite", + className: "SubResource" } - }, - adminPassword: { - serializedName: "adminPassword", + } + } + } +}; + +export const VirtualMachineHealthStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineHealthStatus", + modelProperties: { + status: { + serializedName: "status", type: { - name: "String" + name: "Composite", + className: "InstanceViewStatus" } - }, - customData: { - serializedName: "customData", + } + } + } +}; + +export const BootDiagnosticsInstanceView: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BootDiagnosticsInstanceView", + modelProperties: { + consoleScreenshotBlobUri: { + serializedName: "consoleScreenshotBlobUri", + readOnly: true, type: { name: "String" } }, - windowsConfiguration: { - serializedName: "windowsConfiguration", + serialConsoleLogBlobUri: { + serializedName: "serialConsoleLogBlobUri", + readOnly: true, type: { - name: "Composite", - className: "WindowsConfiguration" + name: "String" } }, - linuxConfiguration: { - serializedName: "linuxConfiguration", + status: { + serializedName: "status", type: { name: "Composite", - className: "LinuxConfiguration" + className: "InstanceViewStatus" } - }, - secrets: { - serializedName: "secrets", + } + } + } +}; + +export const HardwareProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HardwareProfile", + modelProperties: { + vmSize: { + serializedName: "vmSize", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VaultSecretGroup" - } - } + name: "String" } }, - allowExtensionOperations: { - serializedName: "allowExtensionOperations", + vmSizeProperties: { + serializedName: "vmSizeProperties", type: { - name: "Boolean" + name: "Composite", + className: "VMSizeProperties" } } } } }; -export const VirtualMachineScaleSetStorageProfile: coreClient.CompositeMapper = { +export const StorageProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetStorageProfile", + className: "StorageProfile", modelProperties: { imageReference: { serializedName: "imageReference", @@ -3345,7 +3525,7 @@ export const VirtualMachineScaleSetStorageProfile: coreClient.CompositeMapper = serializedName: "osDisk", type: { name: "Composite", - className: "VirtualMachineScaleSetOSDisk" + className: "OSDisk" } }, dataDisks: { @@ -3355,7 +3535,7 @@ export const VirtualMachineScaleSetStorageProfile: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "VirtualMachineScaleSetDataDisk" + className: "DataDisk" } } } @@ -3364,19 +3544,47 @@ export const VirtualMachineScaleSetStorageProfile: coreClient.CompositeMapper = } }; -export const VirtualMachineScaleSetOSDisk: coreClient.CompositeMapper = { +export const OSDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetOSDisk", + className: "OSDisk", modelProperties: { + osType: { + serializedName: "osType", + type: { + name: "Enum", + allowedValues: ["Windows", "Linux"] + } + }, + encryptionSettings: { + serializedName: "encryptionSettings", + type: { + name: "Composite", + className: "DiskEncryptionSettings" + } + }, name: { serializedName: "name", type: { name: "String" } }, - caching: { - serializedName: "caching", + vhd: { + serializedName: "vhd", + type: { + name: "Composite", + className: "VirtualHardDisk" + } + }, + image: { + serializedName: "image", + type: { + name: "Composite", + className: "VirtualHardDisk" + } + }, + caching: { + serializedName: "caching", type: { name: "Enum", allowedValues: ["None", "ReadOnly", "ReadWrite"] @@ -3388,13 +3596,6 @@ export const VirtualMachineScaleSetOSDisk: coreClient.CompositeMapper = { name: "Boolean" } }, - createOption: { - serializedName: "createOption", - required: true, - type: { - name: "String" - } - }, diffDiskSettings: { serializedName: "diffDiskSettings", type: { @@ -3402,93 +3603,66 @@ export const VirtualMachineScaleSetOSDisk: coreClient.CompositeMapper = { className: "DiffDiskSettings" } }, - diskSizeGB: { - serializedName: "diskSizeGB", + createOption: { + serializedName: "createOption", + required: true, type: { - name: "Number" + name: "String" } }, - osType: { - serializedName: "osType", + diskSizeGB: { + serializedName: "diskSizeGB", type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] + name: "Number" } }, - image: { - serializedName: "image", + managedDisk: { + serializedName: "managedDisk", type: { name: "Composite", - className: "VirtualHardDisk" - } - }, - vhdContainers: { - serializedName: "vhdContainers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + className: "ManagedDiskParameters" } }, - managedDisk: { - serializedName: "managedDisk", + deleteOption: { + serializedName: "deleteOption", type: { - name: "Composite", - className: "VirtualMachineScaleSetManagedDiskParameters" + name: "String" } } } } }; -export const VirtualMachineScaleSetManagedDiskParameters: coreClient.CompositeMapper = { +export const DataDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetManagedDiskParameters", + className: "DataDisk", modelProperties: { - storageAccountType: { - serializedName: "storageAccountType", + lun: { + serializedName: "lun", + required: true, type: { - name: "String" + name: "Number" } }, - diskEncryptionSet: { - serializedName: "diskEncryptionSet", + name: { + serializedName: "name", type: { - name: "Composite", - className: "DiskEncryptionSetParameters" + name: "String" } }, - securityProfile: { - serializedName: "securityProfile", + vhd: { + serializedName: "vhd", type: { name: "Composite", - className: "VMDiskSecurityProfile" - } - } - } - } -}; - -export const VirtualMachineScaleSetDataDisk: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetDataDisk", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" + className: "VirtualHardDisk" } }, - lun: { - serializedName: "lun", - required: true, + image: { + serializedName: "image", type: { - name: "Number" + name: "Composite", + className: "VirtualHardDisk" } }, caching: { @@ -3521,86 +3695,147 @@ export const VirtualMachineScaleSetDataDisk: coreClient.CompositeMapper = { serializedName: "managedDisk", type: { name: "Composite", - className: "VirtualMachineScaleSetManagedDiskParameters" + className: "ManagedDiskParameters" + } + }, + toBeDetached: { + serializedName: "toBeDetached", + type: { + name: "Boolean" } }, diskIopsReadWrite: { serializedName: "diskIOPSReadWrite", + readOnly: true, type: { name: "Number" } }, diskMBpsReadWrite: { serializedName: "diskMBpsReadWrite", + readOnly: true, type: { name: "Number" } + }, + detachOption: { + serializedName: "detachOption", + type: { + name: "String" + } + }, + deleteOption: { + serializedName: "deleteOption", + type: { + name: "String" + } } } } }; -export const VirtualMachineScaleSetNetworkProfile: coreClient.CompositeMapper = { +export const OSProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetNetworkProfile", + className: "OSProfile", modelProperties: { - healthProbe: { - serializedName: "healthProbe", + computerName: { + serializedName: "computerName", + type: { + name: "String" + } + }, + adminUsername: { + serializedName: "adminUsername", + type: { + name: "String" + } + }, + adminPassword: { + serializedName: "adminPassword", + type: { + name: "String" + } + }, + customData: { + serializedName: "customData", + type: { + name: "String" + } + }, + windowsConfiguration: { + serializedName: "windowsConfiguration", type: { name: "Composite", - className: "ApiEntityReference" + className: "WindowsConfiguration" } }, - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", + linuxConfiguration: { + serializedName: "linuxConfiguration", + type: { + name: "Composite", + className: "LinuxConfiguration" + } + }, + secrets: { + serializedName: "secrets", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineScaleSetNetworkConfiguration" + className: "VaultSecretGroup" } } } }, - networkApiVersion: { - serializedName: "networkApiVersion", + allowExtensionOperations: { + serializedName: "allowExtensionOperations", type: { - name: "String" + name: "Boolean" + } + }, + requireGuestProvisionSignal: { + serializedName: "requireGuestProvisionSignal", + type: { + name: "Boolean" } } } } }; -export const ApiEntityReference: coreClient.CompositeMapper = { +export const NetworkProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApiEntityReference", + className: "NetworkProfile", modelProperties: { - id: { - serializedName: "id", + networkInterfaces: { + serializedName: "networkInterfaces", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterfaceReference" + } + } + } + }, + networkApiVersion: { + serializedName: "networkApiVersion", type: { name: "String" } - } - } - } -}; - -export const VirtualMachineScaleSetNetworkConfigurationDnsSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings", - modelProperties: { - dnsServers: { - serializedName: "dnsServers", + }, + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "VirtualMachineNetworkInterfaceConfiguration" } } } @@ -3609,10 +3844,10 @@ export const VirtualMachineScaleSetNetworkConfigurationDnsSettings: coreClient.C } }; -export const VirtualMachineScaleSetPublicIPAddressConfiguration: coreClient.CompositeMapper = { +export const VirtualMachineNetworkInterfaceConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetPublicIPAddressConfiguration", + className: "VirtualMachineNetworkInterfaceConfiguration", modelProperties: { name: { serializedName: "name", @@ -3621,118 +3856,236 @@ export const VirtualMachineScaleSetPublicIPAddressConfiguration: coreClient.Comp name: "String" } }, - sku: { - serializedName: "sku", + primary: { + serializedName: "properties.primary", type: { - name: "Composite", - className: "PublicIPAddressSku" + name: "Boolean" } }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", + deleteOption: { + serializedName: "properties.deleteOption", type: { - name: "Number" + name: "String" } }, - dnsSettings: { - serializedName: "properties.dnsSettings", + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", type: { - name: "Composite", - className: - "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" + name: "Boolean" } }, - ipTags: { - serializedName: "properties.ipTags", + enableFpga: { + serializedName: "properties.enableFpga", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetIpTag" - } - } + name: "Boolean" } }, - publicIPPrefix: { - serializedName: "properties.publicIPPrefix", + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean" + } + }, + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", type: { name: "Composite", className: "SubResource" } }, - publicIPAddressVersion: { - serializedName: "properties.publicIPAddressVersion", + dnsSettings: { + serializedName: "properties.dnsSettings", type: { - name: "String" + name: "Composite", + className: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration" } }, - deleteOption: { - serializedName: "properties.deleteOption", + ipConfigurations: { + serializedName: "properties.ipConfigurations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineNetworkInterfaceIPConfiguration" + } + } + } + }, + dscpConfiguration: { + serializedName: "properties.dscpConfiguration", + type: { + name: "Composite", + className: "SubResource" } } } } }; -export const VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings: coreClient.CompositeMapper = { +export const VirtualMachineNetworkInterfaceDnsSettingsConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", + className: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration", modelProperties: { - domainNameLabel: { - serializedName: "domainNameLabel", - required: true, + dnsServers: { + serializedName: "dnsServers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const VirtualMachineScaleSetIpTag: coreClient.CompositeMapper = { +export const VirtualMachineNetworkInterfaceIPConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetIpTag", + className: "VirtualMachineNetworkInterfaceIPConfiguration", modelProperties: { - ipTagType: { - serializedName: "ipTagType", + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - tag: { - serializedName: "tag", + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "SubResource" + } + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean" + } + }, + publicIPAddressConfiguration: { + serializedName: "properties.publicIPAddressConfiguration", + type: { + name: "Composite", + className: "VirtualMachinePublicIPAddressConfiguration" + } + }, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", type: { name: "String" } + }, + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + applicationGatewayBackendAddressPools: { + serializedName: "properties.applicationGatewayBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + loadBalancerBackendAddressPools: { + serializedName: "properties.loadBalancerBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } } } } }; -export const VirtualMachineScaleSetExtensionProfile: coreClient.CompositeMapper = { +export const VirtualMachinePublicIPAddressConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetExtensionProfile", + className: "VirtualMachinePublicIPAddressConfiguration", modelProperties: { - extensions: { - serializedName: "extensions", + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PublicIPAddressSku" + } + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number" + } + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String" + } + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration" + } + }, + ipTags: { + serializedName: "properties.ipTags", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineScaleSetExtension" + className: "VirtualMachineIpTag" } } } }, - extensionsTimeBudget: { - serializedName: "extensionsTimeBudget", + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", + type: { + name: "Composite", + className: "SubResource" + } + }, + publicIPAddressVersion: { + serializedName: "properties.publicIPAddressVersion", + type: { + name: "String" + } + }, + publicIPAllocationMethod: { + serializedName: "properties.publicIPAllocationMethod", type: { name: "String" } @@ -3741,521 +4094,379 @@ export const VirtualMachineScaleSetExtensionProfile: coreClient.CompositeMapper } }; -export const VirtualMachineScaleSetHardwareProfile: coreClient.CompositeMapper = { +export const VirtualMachinePublicIPAddressDnsSettingsConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetHardwareProfile", + className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration", modelProperties: { - vmSizeProperties: { - serializedName: "vmSizeProperties", + domainNameLabel: { + serializedName: "domainNameLabel", + required: true, type: { - name: "Composite", - className: "VMSizeProperties" + name: "String" } } } } }; -export const ScaleInPolicy: coreClient.CompositeMapper = { +export const VirtualMachineIpTag: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScaleInPolicy", + className: "VirtualMachineIpTag", modelProperties: { - rules: { - serializedName: "rules", + ipTagType: { + serializedName: "ipTagType", + type: { + name: "String" + } + }, + tag: { + serializedName: "tag", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachineScaleSetVMNetworkProfileConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMNetworkProfileConfiguration", + modelProperties: { + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfiguration" } } } - }, - forceDeletion: { - serializedName: "forceDeletion", - type: { - name: "Boolean" - } } } } }; -export const SpotRestorePolicy: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVMProtectionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SpotRestorePolicy", + className: "VirtualMachineScaleSetVMProtectionPolicy", modelProperties: { - enabled: { - serializedName: "enabled", + protectFromScaleIn: { + serializedName: "protectFromScaleIn", type: { name: "Boolean" } }, - restoreTimeout: { - serializedName: "restoreTimeout", + protectFromScaleSetActions: { + serializedName: "protectFromScaleSetActions", type: { - name: "String" + name: "Boolean" } } } } }; -export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { +export const ResourceWithOptionalLocation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetIdentity", + className: "ResourceWithOptionalLocation", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + location: { + serializedName: "location", type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", + id: { + serializedName: "id", readOnly: true, type: { name: "String" } }, - type: { - serializedName: "type", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Enum", - allowedValues: [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned, UserAssigned", - "None" - ] + name: "String" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: - "VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue", - modelProperties: { - principalId: { - serializedName: "principalId", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - clientId: { - serializedName: "clientId", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const ImageStorageProfile: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVMListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageStorageProfile", + className: "VirtualMachineScaleSetVMListResult", modelProperties: { - osDisk: { - serializedName: "osDisk", - type: { - name: "Composite", - className: "ImageOSDisk" - } - }, - dataDisks: { - serializedName: "dataDisks", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ImageDataDisk" + className: "VirtualMachineScaleSetVM" } } } }, - zoneResilient: { - serializedName: "zoneResilient", + nextLink: { + serializedName: "nextLink", type: { - name: "Boolean" + name: "String" } } } } }; -export const ImageDisk: coreClient.CompositeMapper = { +export const RetrieveBootDiagnosticsDataResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageDisk", + className: "RetrieveBootDiagnosticsDataResult", modelProperties: { - snapshot: { - serializedName: "snapshot", - type: { - name: "Composite", - className: "SubResource" - } - }, - managedDisk: { - serializedName: "managedDisk", - type: { - name: "Composite", - className: "SubResource" - } - }, - blobUri: { - serializedName: "blobUri", + consoleScreenshotBlobUri: { + serializedName: "consoleScreenshotBlobUri", + readOnly: true, type: { name: "String" } }, - caching: { - serializedName: "caching", - type: { - name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } - }, - diskSizeGB: { - serializedName: "diskSizeGB", - type: { - name: "Number" - } - }, - storageAccountType: { - serializedName: "storageAccountType", + serialConsoleLogBlobUri: { + serializedName: "serialConsoleLogBlobUri", + readOnly: true, type: { name: "String" } - }, - diskEncryptionSet: { - serializedName: "diskEncryptionSet", - type: { - name: "Composite", - className: "DiskEncryptionSetParameters" - } } } } }; -export const ImageListResult: coreClient.CompositeMapper = { +export const VirtualMachineExtensionsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageListResult", + className: "VirtualMachineExtensionsListResult", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Image" + className: "VirtualMachineExtension" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const VirtualMachineCaptureParameters: coreClient.CompositeMapper = { +export const VirtualMachineListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineCaptureParameters", + className: "VirtualMachineListResult", modelProperties: { - vhdPrefix: { - serializedName: "vhdPrefix", + value: { + serializedName: "value", required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachine" + } + } } }, - destinationContainerName: { - serializedName: "destinationContainerName", - required: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - overwriteVhds: { - serializedName: "overwriteVhds", - required: true, - type: { - name: "Boolean" - } } } } }; -export const RestorePointCollectionSourceProperties: coreClient.CompositeMapper = { +export const VirtualMachineInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePointCollectionSourceProperties", + className: "VirtualMachineInstanceView", modelProperties: { - location: { - serializedName: "location", - readOnly: true, + platformUpdateDomain: { + serializedName: "platformUpdateDomain", type: { - name: "String" + name: "Number" } }, - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const RestorePointSourceMetadata: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePointSourceMetadata", - modelProperties: { - hardwareProfile: { - serializedName: "hardwareProfile", + platformFaultDomain: { + serializedName: "platformFaultDomain", type: { - name: "Composite", - className: "HardwareProfile" + name: "Number" } }, - storageProfile: { - serializedName: "storageProfile", + computerName: { + serializedName: "computerName", type: { - name: "Composite", - className: "RestorePointSourceVMStorageProfile" + name: "String" } }, - osProfile: { - serializedName: "osProfile", + osName: { + serializedName: "osName", type: { - name: "Composite", - className: "OSProfile" + name: "String" } }, - diagnosticsProfile: { - serializedName: "diagnosticsProfile", + osVersion: { + serializedName: "osVersion", type: { - name: "Composite", - className: "DiagnosticsProfile" + name: "String" } }, - licenseType: { - serializedName: "licenseType", + hyperVGeneration: { + serializedName: "hyperVGeneration", type: { name: "String" } }, - vmId: { - serializedName: "vmId", + rdpThumbPrint: { + serializedName: "rdpThumbPrint", type: { name: "String" } }, - securityProfile: { - serializedName: "securityProfile", + vmAgent: { + serializedName: "vmAgent", type: { name: "Composite", - className: "SecurityProfile" + className: "VirtualMachineAgentInstanceView" } }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const RestorePointSourceVMStorageProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePointSourceVMStorageProfile", - modelProperties: { - osDisk: { - serializedName: "osDisk", + maintenanceRedeployStatus: { + serializedName: "maintenanceRedeployStatus", type: { name: "Composite", - className: "RestorePointSourceVmosDisk" + className: "MaintenanceRedeployStatus" } }, - dataDisks: { - serializedName: "dataDisks", + disks: { + serializedName: "disks", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RestorePointSourceVMDataDisk" + className: "DiskInstanceView" } } } - } - } - } -}; - -export const RestorePointSourceVmosDisk: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePointSourceVmosDisk", - modelProperties: { - osType: { - serializedName: "osType", - type: { - name: "String" - } }, - encryptionSettings: { - serializedName: "encryptionSettings", + extensions: { + serializedName: "extensions", type: { - name: "Composite", - className: "DiskEncryptionSettings" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineExtensionInstanceView" + } + } } }, - name: { - serializedName: "name", + vmHealth: { + serializedName: "vmHealth", type: { - name: "String" + name: "Composite", + className: "VirtualMachineHealthStatus" } }, - caching: { - serializedName: "caching", + bootDiagnostics: { + serializedName: "bootDiagnostics", type: { - name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] + name: "Composite", + className: "BootDiagnosticsInstanceView" } }, - diskSizeGB: { - serializedName: "diskSizeGB", + assignedHost: { + serializedName: "assignedHost", + readOnly: true, type: { - name: "Number" + name: "String" } }, - managedDisk: { - serializedName: "managedDisk", + statuses: { + serializedName: "statuses", type: { - name: "Composite", - className: "ManagedDiskParameters" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } } }, - diskRestorePoint: { - serializedName: "diskRestorePoint", + patchStatus: { + serializedName: "patchStatus", type: { name: "Composite", - className: "ApiEntityReference" + className: "VirtualMachinePatchStatus" } } } } }; -export const RestorePointSourceVMDataDisk: coreClient.CompositeMapper = { +export const VirtualMachinePatchStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePointSourceVMDataDisk", + className: "VirtualMachinePatchStatus", modelProperties: { - lun: { - serializedName: "lun", - type: { - name: "Number" - } - }, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - caching: { - serializedName: "caching", - type: { - name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } - }, - diskSizeGB: { - serializedName: "diskSizeGB", - type: { - name: "Number" - } - }, - managedDisk: { - serializedName: "managedDisk", + availablePatchSummary: { + serializedName: "availablePatchSummary", type: { name: "Composite", - className: "ManagedDiskParameters" + className: "AvailablePatchSummary" } }, - diskRestorePoint: { - serializedName: "diskRestorePoint", + lastPatchInstallationSummary: { + serializedName: "lastPatchInstallationSummary", type: { name: "Composite", - className: "ApiEntityReference" - } - } - } - } -}; - -export const RestorePointInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePointInstanceView", - modelProperties: { - diskRestorePoints: { - serializedName: "diskRestorePoints", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiskRestorePointInstanceView" - } - } + className: "LastPatchInstallationSummary" } }, - statuses: { - serializedName: "statuses", + configurationStatuses: { + serializedName: "configurationStatuses", + readOnly: true, type: { name: "Sequence", element: { @@ -4270,246 +4481,252 @@ export const RestorePointInstanceView: coreClient.CompositeMapper = { } }; -export const DiskRestorePointInstanceView: coreClient.CompositeMapper = { +export const AvailablePatchSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskRestorePointInstanceView", + className: "AvailablePatchSummary", modelProperties: { - id: { - serializedName: "id", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } }, - replicationStatus: { - serializedName: "replicationStatus", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } -}; - -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - id: { - serializedName: "id", + assessmentActivityId: { + serializedName: "assessmentActivityId", readOnly: true, type: { name: "String" } }, - name: { - serializedName: "name", + rebootPending: { + serializedName: "rebootPending", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - type: { - serializedName: "type", + criticalAndSecurityPatchCount: { + serializedName: "criticalAndSecurityPatchCount", readOnly: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const RestorePointCollectionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePointCollectionListResult", - modelProperties: { - value: { - serializedName: "value", + }, + otherPatchCount: { + serializedName: "otherPatchCount", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorePointCollection" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + startTime: { + serializedName: "startTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const CapacityReservationGroupInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationGroupInstanceView", - modelProperties: { - capacityReservations: { - serializedName: "capacityReservations", + }, + lastModifiedTime: { + serializedName: "lastModifiedTime", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CapacityReservationInstanceViewWithName" - } - } + name: "DateTime" + } + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ApiError" } } } } }; -export const CapacityReservationInstanceView: coreClient.CompositeMapper = { +export const LastPatchInstallationSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CapacityReservationInstanceView", + className: "LastPatchInstallationSummary", modelProperties: { - utilizationInfo: { - serializedName: "utilizationInfo", + status: { + serializedName: "status", + readOnly: true, type: { - name: "Composite", - className: "CapacityReservationUtilization" + name: "String" } }, - statuses: { - serializedName: "statuses", + installationActivityId: { + serializedName: "installationActivityId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } + name: "String" } - } - } - } -}; - -export const CapacityReservationUtilization: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationUtilization", - modelProperties: { - virtualMachinesAllocated: { - serializedName: "virtualMachinesAllocated", + }, + maintenanceWindowExceeded: { + serializedName: "maintenanceWindowExceeded", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } + name: "Boolean" + } + }, + notSelectedPatchCount: { + serializedName: "notSelectedPatchCount", + readOnly: true, + type: { + name: "Number" + } + }, + excludedPatchCount: { + serializedName: "excludedPatchCount", + readOnly: true, + type: { + name: "Number" + } + }, + pendingPatchCount: { + serializedName: "pendingPatchCount", + readOnly: true, + type: { + name: "Number" + } + }, + installedPatchCount: { + serializedName: "installedPatchCount", + readOnly: true, + type: { + name: "Number" + } + }, + failedPatchCount: { + serializedName: "failedPatchCount", + readOnly: true, + type: { + name: "Number" + } + }, + startTime: { + serializedName: "startTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + serializedName: "lastModifiedTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ApiError" } } } } }; -export const CapacityReservationGroupListResult: coreClient.CompositeMapper = { +export const VirtualMachineIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CapacityReservationGroupListResult", + className: "VirtualMachineIdentity", modelProperties: { - value: { - serializedName: "value", - required: true, + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CapacityReservationGroup" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const CapacityReservationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, + }, + type: { + serializedName: "type", type: { - name: "Sequence", - element: { + name: "Enum", + allowedValues: [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ] + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { type: { name: "Composite", - className: "CapacityReservation" + className: "UserAssignedIdentitiesValue" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const VirtualMachineReimageParameters: coreClient.CompositeMapper = { +export const UserAssignedIdentitiesValue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineReimageParameters", + className: "UserAssignedIdentitiesValue", modelProperties: { - tempDisk: { - serializedName: "tempDisk", + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "Boolean" + name: "String" + } + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "String" } } } } }; -export const RetrieveBootDiagnosticsDataResult: coreClient.CompositeMapper = { +export const VirtualMachineCaptureParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RetrieveBootDiagnosticsDataResult", + className: "VirtualMachineCaptureParameters", modelProperties: { - consoleScreenshotBlobUri: { - serializedName: "consoleScreenshotBlobUri", - readOnly: true, + vhdPrefix: { + serializedName: "vhdPrefix", + required: true, type: { name: "String" } }, - serialConsoleLogBlobUri: { - serializedName: "serialConsoleLogBlobUri", - readOnly: true, + destinationContainerName: { + serializedName: "destinationContainerName", + required: true, type: { name: "String" } + }, + overwriteVhds: { + serializedName: "overwriteVhds", + required: true, + type: { + name: "Boolean" + } } } } @@ -4963,75 +5180,92 @@ export const PatchInstallationDetail: coreClient.CompositeMapper = { } }; -export const VirtualMachineScaleSetUpdateVMProfile: coreClient.CompositeMapper = { +export const PurchasePlan: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateVMProfile", + className: "PurchasePlan", modelProperties: { - osProfile: { - serializedName: "osProfile", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateOSProfile" - } - }, - storageProfile: { - serializedName: "storageProfile", + publisher: { + serializedName: "publisher", + required: true, type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateStorageProfile" + name: "String" } }, - networkProfile: { - serializedName: "networkProfile", + name: { + serializedName: "name", + required: true, type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkProfile" + name: "String" } }, - securityProfile: { - serializedName: "securityProfile", + product: { + serializedName: "product", + required: true, type: { - name: "Composite", - className: "SecurityProfile" + name: "String" } - }, - diagnosticsProfile: { - serializedName: "diagnosticsProfile", + } + } + } +}; + +export const OSDiskImage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OSDiskImage", + modelProperties: { + operatingSystem: { + serializedName: "operatingSystem", + required: true, type: { - name: "Composite", - className: "DiagnosticsProfile" + name: "Enum", + allowedValues: ["Windows", "Linux"] } - }, - extensionProfile: { - serializedName: "extensionProfile", - type: { - name: "Composite", - className: "VirtualMachineScaleSetExtensionProfile" - } - }, - licenseType: { - serializedName: "licenseType", - type: { - name: "String" - } - }, - billingProfile: { - serializedName: "billingProfile", + } + } + } +}; + +export const DataDiskImage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataDiskImage", + modelProperties: { + lun: { + serializedName: "lun", + readOnly: true, type: { - name: "Composite", - className: "BillingProfile" + name: "Number" } - }, - scheduledEventsProfile: { - serializedName: "scheduledEventsProfile", + } + } + } +}; + +export const AutomaticOSUpgradeProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutomaticOSUpgradeProperties", + modelProperties: { + automaticOSUpgradeSupported: { + serializedName: "automaticOSUpgradeSupported", + required: true, type: { - name: "Composite", - className: "ScheduledEventsProfile" + name: "Boolean" } - }, - userData: { - serializedName: "userData", + } + } + } +}; + +export const DisallowedConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DisallowedConfiguration", + modelProperties: { + vmDiskType: { + serializedName: "vmDiskType", type: { name: "String" } @@ -5040,223 +5274,131 @@ export const VirtualMachineScaleSetUpdateVMProfile: coreClient.CompositeMapper = } }; -export const VirtualMachineScaleSetUpdateOSProfile: coreClient.CompositeMapper = { +export const VirtualMachineImageFeature: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateOSProfile", + className: "VirtualMachineImageFeature", modelProperties: { - customData: { - serializedName: "customData", + name: { + serializedName: "name", type: { name: "String" } }, - windowsConfiguration: { - serializedName: "windowsConfiguration", - type: { - name: "Composite", - className: "WindowsConfiguration" - } - }, - linuxConfiguration: { - serializedName: "linuxConfiguration", - type: { - name: "Composite", - className: "LinuxConfiguration" - } - }, - secrets: { - serializedName: "secrets", + value: { + serializedName: "value", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VaultSecretGroup" - } - } + name: "String" } } } } }; -export const VirtualMachineScaleSetUpdateStorageProfile: coreClient.CompositeMapper = { +export const AvailabilitySetListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateStorageProfile", + className: "AvailabilitySetListResult", modelProperties: { - imageReference: { - serializedName: "imageReference", - type: { - name: "Composite", - className: "ImageReference" - } - }, - osDisk: { - serializedName: "osDisk", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateOSDisk" - } - }, - dataDisks: { - serializedName: "dataDisks", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineScaleSetDataDisk" + className: "AvailabilitySet" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const VirtualMachineScaleSetUpdateOSDisk: coreClient.CompositeMapper = { +export const ProximityPlacementGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateOSDisk", + className: "ProximityPlacementGroupListResult", modelProperties: { - caching: { - serializedName: "caching", - type: { - name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } - }, - writeAcceleratorEnabled: { - serializedName: "writeAcceleratorEnabled", - type: { - name: "Boolean" - } - }, - diskSizeGB: { - serializedName: "diskSizeGB", - type: { - name: "Number" - } - }, - image: { - serializedName: "image", - type: { - name: "Composite", - className: "VirtualHardDisk" - } - }, - vhdContainers: { - serializedName: "vhdContainers", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ProximityPlacementGroup" } } } }, - managedDisk: { - serializedName: "managedDisk", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "VirtualMachineScaleSetManagedDiskParameters" + name: "String" } } } } }; -export const VirtualMachineScaleSetUpdateNetworkProfile: coreClient.CompositeMapper = { +export const DedicatedHostGroupInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkProfile", + className: "DedicatedHostGroupInstanceView", modelProperties: { - healthProbe: { - serializedName: "healthProbe", - type: { - name: "Composite", - className: "ApiEntityReference" - } - }, - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", + hosts: { + serializedName: "hosts", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkConfiguration" + className: "DedicatedHostInstanceViewWithName" } } } - }, - networkApiVersion: { - serializedName: "networkApiVersion", - type: { - name: "String" - } } } } }; -export const VirtualMachineScaleSetUpdatePublicIPAddressConfiguration: coreClient.CompositeMapper = { +export const DedicatedHostInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration", + className: "DedicatedHostInstanceView", modelProperties: { - name: { - serializedName: "name", + assetId: { + serializedName: "assetId", + readOnly: true, type: { name: "String" } }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", - type: { - name: "Number" - } - }, - dnsSettings: { - serializedName: "properties.dnsSettings", - type: { - name: "Composite", - className: - "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" - } - }, - publicIPPrefix: { - serializedName: "properties.publicIPPrefix", + availableCapacity: { + serializedName: "availableCapacity", type: { name: "Composite", - className: "SubResource" + className: "DedicatedHostAvailableCapacity" } }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetVMInstanceIDs: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMInstanceIDs", - modelProperties: { - instanceIds: { - serializedName: "instanceIds", + statuses: { + serializedName: "statuses", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "InstanceViewStatus" } } } @@ -5265,19 +5407,19 @@ export const VirtualMachineScaleSetVMInstanceIDs: coreClient.CompositeMapper = { } }; -export const VirtualMachineScaleSetVMInstanceRequiredIDs: coreClient.CompositeMapper = { +export const DedicatedHostAvailableCapacity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMInstanceRequiredIDs", + className: "DedicatedHostAvailableCapacity", modelProperties: { - instanceIds: { - serializedName: "instanceIds", - required: true, + allocatableVMs: { + serializedName: "allocatableVMs", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "DedicatedHostAllocatableVM" } } } @@ -5286,149 +5428,62 @@ export const VirtualMachineScaleSetVMInstanceRequiredIDs: coreClient.CompositeMa } }; -export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { +export const DedicatedHostAllocatableVM: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetInstanceView", + className: "DedicatedHostAllocatableVM", modelProperties: { - virtualMachine: { - serializedName: "virtualMachine", - type: { - name: "Composite", - className: "VirtualMachineScaleSetInstanceViewStatusesSummary" - } - }, - extensions: { - serializedName: "extensions", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMExtensionsSummary" - } - } - } - }, - statuses: { - serializedName: "statuses", + vmSize: { + serializedName: "vmSize", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } + name: "String" } }, - orchestrationServices: { - serializedName: "orchestrationServices", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OrchestrationServiceSummary" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetInstanceViewStatusesSummary: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetInstanceViewStatusesSummary", - modelProperties: { - statusesSummary: { - serializedName: "statusesSummary", - readOnly: true, + count: { + serializedName: "count", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineStatusCodeCount" - } - } + name: "Number" } } } } }; -export const VirtualMachineStatusCodeCount: coreClient.CompositeMapper = { +export const DedicatedHostGroupPropertiesAdditionalCapabilities: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineStatusCodeCount", + className: "DedicatedHostGroupPropertiesAdditionalCapabilities", modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String" - } - }, - count: { - serializedName: "count", - readOnly: true, + ultraSSDEnabled: { + serializedName: "ultraSSDEnabled", type: { - name: "Number" + name: "Boolean" } } } } }; -export const VirtualMachineScaleSetVMExtensionsSummary: coreClient.CompositeMapper = { +export const DedicatedHostGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMExtensionsSummary", + className: "DedicatedHostGroupListResult", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - statusesSummary: { - serializedName: "statusesSummary", - readOnly: true, + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineStatusCodeCount" + className: "DedicatedHostGroup" } } } - } - } - } -}; - -export const OrchestrationServiceSummary: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OrchestrationServiceSummary", - modelProperties: { - serviceName: { - serializedName: "serviceName", - readOnly: true, - type: { - name: "String" - } }, - serviceState: { - serializedName: "serviceState", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -5437,10 +5492,10 @@ export const OrchestrationServiceSummary: coreClient.CompositeMapper = { } }; -export const VirtualMachineScaleSetExtensionListResult: coreClient.CompositeMapper = { +export const DedicatedHostListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetExtensionListResult", + className: "DedicatedHostListResult", modelProperties: { value: { serializedName: "value", @@ -5450,7 +5505,7 @@ export const VirtualMachineScaleSetExtensionListResult: coreClient.CompositeMapp element: { type: { name: "Composite", - className: "VirtualMachineScaleSetExtension" + className: "DedicatedHost" } } } @@ -5465,10 +5520,10 @@ export const VirtualMachineScaleSetExtensionListResult: coreClient.CompositeMapp } }; -export const VirtualMachineScaleSetListWithLinkResult: coreClient.CompositeMapper = { +export const SshPublicKeysGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetListWithLinkResult", + className: "SshPublicKeysGroupListResult", modelProperties: { value: { serializedName: "value", @@ -5478,7 +5533,7 @@ export const VirtualMachineScaleSetListWithLinkResult: coreClient.CompositeMappe element: { type: { name: "Composite", - className: "VirtualMachineScaleSet" + className: "SshPublicKeyResource" } } } @@ -5493,26 +5548,28 @@ export const VirtualMachineScaleSetListWithLinkResult: coreClient.CompositeMappe } }; -export const VirtualMachineScaleSetListSkusResult: coreClient.CompositeMapper = { +export const SshPublicKeyGenerateKeyPairResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetListSkusResult", + className: "SshPublicKeyGenerateKeyPairResult", modelProperties: { - value: { - serializedName: "value", + privateKey: { + serializedName: "privateKey", required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetSku" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + publicKey: { + serializedName: "publicKey", + required: true, + type: { + name: "String" + } + }, + id: { + serializedName: "id", + required: true, type: { name: "String" } @@ -5521,78 +5578,99 @@ export const VirtualMachineScaleSetListSkusResult: coreClient.CompositeMapper = } }; -export const VirtualMachineScaleSetSku: coreClient.CompositeMapper = { +export const ImageStorageProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetSku", + className: "ImageStorageProfile", modelProperties: { - resourceType: { - serializedName: "resourceType", - readOnly: true, + osDisk: { + serializedName: "osDisk", type: { - name: "String" + name: "Composite", + className: "ImageOSDisk" } }, - sku: { - serializedName: "sku", + dataDisks: { + serializedName: "dataDisks", type: { - name: "Composite", - className: "Sku" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageDataDisk" + } + } } }, - capacity: { - serializedName: "capacity", + zoneResilient: { + serializedName: "zoneResilient", type: { - name: "Composite", - className: "VirtualMachineScaleSetSkuCapacity" + name: "Boolean" } } } } }; -export const VirtualMachineScaleSetSkuCapacity: coreClient.CompositeMapper = { +export const ImageDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetSkuCapacity", + className: "ImageDisk", modelProperties: { - minimum: { - serializedName: "minimum", - readOnly: true, + snapshot: { + serializedName: "snapshot", type: { - name: "Number" + name: "Composite", + className: "SubResource" } }, - maximum: { - serializedName: "maximum", - readOnly: true, + managedDisk: { + serializedName: "managedDisk", type: { - name: "Number" + name: "Composite", + className: "SubResource" } }, - defaultCapacity: { - serializedName: "defaultCapacity", - readOnly: true, + blobUri: { + serializedName: "blobUri", type: { - name: "Number" + name: "String" } }, - scaleType: { - serializedName: "scaleType", - readOnly: true, + caching: { + serializedName: "caching", type: { name: "Enum", - allowedValues: ["Automatic", "None"] + allowedValues: ["None", "ReadOnly", "ReadWrite"] + } + }, + diskSizeGB: { + serializedName: "diskSizeGB", + type: { + name: "Number" + } + }, + storageAccountType: { + serializedName: "storageAccountType", + type: { + name: "String" + } + }, + diskEncryptionSet: { + serializedName: "diskEncryptionSet", + type: { + name: "Composite", + className: "DiskEncryptionSetParameters" } } } } }; -export const VirtualMachineScaleSetListOSUpgradeHistory: coreClient.CompositeMapper = { +export const ImageListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetListOSUpgradeHistory", + className: "ImageListResult", modelProperties: { value: { serializedName: "value", @@ -5602,7 +5680,7 @@ export const VirtualMachineScaleSetListOSUpgradeHistory: coreClient.CompositeMap element: { type: { name: "Composite", - className: "UpgradeOperationHistoricalStatusInfo" + className: "Image" } } } @@ -5617,28 +5695,20 @@ export const VirtualMachineScaleSetListOSUpgradeHistory: coreClient.CompositeMap } }; -export const UpgradeOperationHistoricalStatusInfo: coreClient.CompositeMapper = { +export const RestorePointCollectionSourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpgradeOperationHistoricalStatusInfo", + className: "RestorePointCollectionSourceProperties", modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "UpgradeOperationHistoricalStatusInfoProperties" - } - }, - type: { - serializedName: "type", + location: { + serializedName: "location", readOnly: true, type: { name: "String" } }, - location: { - serializedName: "location", - readOnly: true, + id: { + serializedName: "id", type: { name: "String" } @@ -5647,248 +5717,276 @@ export const UpgradeOperationHistoricalStatusInfo: coreClient.CompositeMapper = } }; -export const UpgradeOperationHistoricalStatusInfoProperties: coreClient.CompositeMapper = { +export const RestorePointSourceMetadata: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpgradeOperationHistoricalStatusInfoProperties", + className: "RestorePointSourceMetadata", modelProperties: { - runningStatus: { - serializedName: "runningStatus", + hardwareProfile: { + serializedName: "hardwareProfile", type: { name: "Composite", - className: "UpgradeOperationHistoryStatus" + className: "HardwareProfile" } }, - progress: { - serializedName: "progress", + storageProfile: { + serializedName: "storageProfile", type: { name: "Composite", - className: "RollingUpgradeProgressInfo" + className: "RestorePointSourceVMStorageProfile" } }, - error: { - serializedName: "error", + osProfile: { + serializedName: "osProfile", type: { name: "Composite", - className: "ApiError" + className: "OSProfile" } }, - startedBy: { - serializedName: "startedBy", - readOnly: true, + diagnosticsProfile: { + serializedName: "diagnosticsProfile", type: { - name: "Enum", - allowedValues: ["Unknown", "User", "Platform"] + name: "Composite", + className: "DiagnosticsProfile" } }, - targetImageReference: { - serializedName: "targetImageReference", + licenseType: { + serializedName: "licenseType", type: { - name: "Composite", - className: "ImageReference" + name: "String" } }, - rollbackInfo: { - serializedName: "rollbackInfo", + vmId: { + serializedName: "vmId", + type: { + name: "String" + } + }, + securityProfile: { + serializedName: "securityProfile", type: { name: "Composite", - className: "RollbackStatusInfo" + className: "SecurityProfile" + } + }, + location: { + serializedName: "location", + type: { + name: "String" } } } } }; -export const UpgradeOperationHistoryStatus: coreClient.CompositeMapper = { +export const RestorePointSourceVMStorageProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpgradeOperationHistoryStatus", + className: "RestorePointSourceVMStorageProfile", modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["RollingForward", "Cancelled", "Completed", "Faulted"] - } - }, - startTime: { - serializedName: "startTime", - readOnly: true, + osDisk: { + serializedName: "osDisk", type: { - name: "DateTime" + name: "Composite", + className: "RestorePointSourceVmosDisk" } }, - endTime: { - serializedName: "endTime", - readOnly: true, + dataDisks: { + serializedName: "dataDisks", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorePointSourceVMDataDisk" + } + } } } } } }; -export const RollingUpgradeProgressInfo: coreClient.CompositeMapper = { +export const RestorePointSourceVmosDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RollingUpgradeProgressInfo", + className: "RestorePointSourceVmosDisk", modelProperties: { - successfulInstanceCount: { - serializedName: "successfulInstanceCount", - readOnly: true, + osType: { + serializedName: "osType", type: { - name: "Number" + name: "String" } }, - failedInstanceCount: { - serializedName: "failedInstanceCount", - readOnly: true, + encryptionSettings: { + serializedName: "encryptionSettings", type: { - name: "Number" + name: "Composite", + className: "DiskEncryptionSettings" } }, - inProgressInstanceCount: { - serializedName: "inProgressInstanceCount", - readOnly: true, + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - pendingInstanceCount: { - serializedName: "pendingInstanceCount", - readOnly: true, + caching: { + serializedName: "caching", type: { - name: "Number" + name: "Enum", + allowedValues: ["None", "ReadOnly", "ReadWrite"] } - } - } - } -}; - -export const RollbackStatusInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RollbackStatusInfo", - modelProperties: { - successfullyRolledbackInstanceCount: { - serializedName: "successfullyRolledbackInstanceCount", - readOnly: true, + }, + diskSizeGB: { + serializedName: "diskSizeGB", type: { name: "Number" } }, - failedRolledbackInstanceCount: { - serializedName: "failedRolledbackInstanceCount", - readOnly: true, + managedDisk: { + serializedName: "managedDisk", type: { - name: "Number" + name: "Composite", + className: "ManagedDiskParameters" } }, - rollbackError: { - serializedName: "rollbackError", + diskRestorePoint: { + serializedName: "diskRestorePoint", type: { name: "Composite", - className: "ApiError" + className: "ApiEntityReference" } } } } }; -export const RollingUpgradeRunningStatus: coreClient.CompositeMapper = { +export const RestorePointSourceVMDataDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RollingUpgradeRunningStatus", + className: "RestorePointSourceVMDataDisk", modelProperties: { - code: { - serializedName: "code", - readOnly: true, + lun: { + serializedName: "lun", type: { - name: "Enum", - allowedValues: ["RollingForward", "Cancelled", "Completed", "Faulted"] + name: "Number" } }, - startTime: { - serializedName: "startTime", - readOnly: true, + name: { + serializedName: "name", type: { - name: "DateTime" + name: "String" } }, - lastAction: { - serializedName: "lastAction", - readOnly: true, + caching: { + serializedName: "caching", type: { name: "Enum", - allowedValues: ["Start", "Cancel"] + allowedValues: ["None", "ReadOnly", "ReadWrite"] } }, - lastActionTime: { - serializedName: "lastActionTime", - readOnly: true, + diskSizeGB: { + serializedName: "diskSizeGB", type: { - name: "DateTime" + name: "Number" + } + }, + managedDisk: { + serializedName: "managedDisk", + type: { + name: "Composite", + className: "ManagedDiskParameters" + } + }, + diskRestorePoint: { + serializedName: "diskRestorePoint", + type: { + name: "Composite", + className: "ApiEntityReference" } } } } }; -export const RecoveryWalkResponse: coreClient.CompositeMapper = { +export const RestorePointInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoveryWalkResponse", + className: "RestorePointInstanceView", modelProperties: { - walkPerformed: { - serializedName: "walkPerformed", - readOnly: true, + diskRestorePoints: { + serializedName: "diskRestorePoints", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskRestorePointInstanceView" + } + } } }, - nextPlatformUpdateDomain: { - serializedName: "nextPlatformUpdateDomain", - readOnly: true, + statuses: { + serializedName: "statuses", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } } } } } }; -export const VMScaleSetConvertToSinglePlacementGroupInput: coreClient.CompositeMapper = { +export const DiskRestorePointInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VMScaleSetConvertToSinglePlacementGroupInput", + className: "DiskRestorePointInstanceView", modelProperties: { - activePlacementGroupId: { - serializedName: "activePlacementGroupId", + id: { + serializedName: "id", type: { name: "String" } + }, + replicationStatus: { + serializedName: "replicationStatus", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } } } } }; -export const OrchestrationServiceStateInput: coreClient.CompositeMapper = { +export const ProxyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OrchestrationServiceStateInput", + className: "ProxyResource", modelProperties: { - serviceName: { - serializedName: "serviceName", - required: true, + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - action: { - serializedName: "action", - required: true, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } @@ -5897,10 +5995,10 @@ export const OrchestrationServiceStateInput: coreClient.CompositeMapper = { } }; -export const VirtualMachineScaleSetVMExtensionsListResult: coreClient.CompositeMapper = { +export const RestorePointCollectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMExtensionsListResult", + className: "RestorePointCollectionListResult", modelProperties: { value: { serializedName: "value", @@ -5909,88 +6007,53 @@ export const VirtualMachineScaleSetVMExtensionsListResult: coreClient.CompositeM element: { type: { name: "Composite", - className: "VirtualMachineScaleSetVMExtension" + className: "RestorePointCollection" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const VirtualMachineScaleSetVMInstanceView: coreClient.CompositeMapper = { +export const CapacityReservationGroupInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMInstanceView", + className: "CapacityReservationGroupInstanceView", modelProperties: { - platformUpdateDomain: { - serializedName: "platformUpdateDomain", - type: { - name: "Number" - } - }, - platformFaultDomain: { - serializedName: "platformFaultDomain", - type: { - name: "Number" - } - }, - rdpThumbPrint: { - serializedName: "rdpThumbPrint", - type: { - name: "String" - } - }, - vmAgent: { - serializedName: "vmAgent", - type: { - name: "Composite", - className: "VirtualMachineAgentInstanceView" - } - }, - maintenanceRedeployStatus: { - serializedName: "maintenanceRedeployStatus", - type: { - name: "Composite", - className: "MaintenanceRedeployStatus" - } - }, - disks: { - serializedName: "disks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiskInstanceView" - } - } - } - }, - extensions: { - serializedName: "extensions", + capacityReservations: { + serializedName: "capacityReservations", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineExtensionInstanceView" + className: "CapacityReservationInstanceViewWithName" } } } - }, - vmHealth: { - serializedName: "vmHealth", - type: { - name: "Composite", - className: "VirtualMachineHealthStatus" - } - }, - bootDiagnostics: { - serializedName: "bootDiagnostics", + } + } + } +}; + +export const CapacityReservationInstanceView: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CapacityReservationInstanceView", + modelProperties: { + utilizationInfo: { + serializedName: "utilizationInfo", type: { name: "Composite", - className: "BootDiagnosticsInstanceView" + className: "CapacityReservationUtilization" } }, statuses: { @@ -6004,37 +6067,25 @@ export const VirtualMachineScaleSetVMInstanceView: coreClient.CompositeMapper = } } } - }, - assignedHost: { - serializedName: "assignedHost", - readOnly: true, - type: { - name: "String" - } - }, - placementGroupId: { - serializedName: "placementGroupId", - type: { - name: "String" - } } } } }; -export const VirtualMachineScaleSetVMNetworkProfileConfiguration: coreClient.CompositeMapper = { +export const CapacityReservationUtilization: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMNetworkProfileConfiguration", + className: "CapacityReservationUtilization", modelProperties: { - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", + virtualMachinesAllocated: { + serializedName: "virtualMachinesAllocated", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineScaleSetNetworkConfiguration" + className: "SubResourceReadOnly" } } } @@ -6043,31 +6094,38 @@ export const VirtualMachineScaleSetVMNetworkProfileConfiguration: coreClient.Com } }; -export const VirtualMachineScaleSetVMProtectionPolicy: coreClient.CompositeMapper = { +export const CapacityReservationGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMProtectionPolicy", + className: "CapacityReservationGroupListResult", modelProperties: { - protectFromScaleIn: { - serializedName: "protectFromScaleIn", + value: { + serializedName: "value", + required: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CapacityReservationGroup" + } + } } }, - protectFromScaleSetActions: { - serializedName: "protectFromScaleSetActions", + nextLink: { + serializedName: "nextLink", type: { - name: "Boolean" + name: "String" } } } } }; -export const VirtualMachineScaleSetVMListResult: coreClient.CompositeMapper = { +export const CapacityReservationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMListResult", + className: "CapacityReservationListResult", modelProperties: { value: { serializedName: "value", @@ -6077,7 +6135,7 @@ export const VirtualMachineScaleSetVMListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineScaleSetVM" + className: "CapacityReservation" } } } @@ -6877,51 +6935,627 @@ export const ResourceSkuRestrictions: coreClient.CompositeMapper = { serializedName: "reasonCode", readOnly: true, type: { - name: "Enum", - allowedValues: ["QuotaId", "NotAvailableForSubscription"] + name: "Enum", + allowedValues: ["QuotaId", "NotAvailableForSubscription"] + } + } + } + } +}; + +export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuRestrictionInfo", + modelProperties: { + locations: { + serializedName: "locations", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + zones: { + serializedName: "zones", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const DiskSku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskSku", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PurchasePlanAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PurchasePlanAutoGenerated", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + publisher: { + serializedName: "publisher", + required: true, + type: { + name: "String" + } + }, + product: { + serializedName: "product", + required: true, + type: { + name: "String" + } + }, + promotionCode: { + serializedName: "promotionCode", + type: { + name: "String" + } + } + } + } +}; + +export const SupportedCapabilities: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SupportedCapabilities", + modelProperties: { + acceleratedNetwork: { + serializedName: "acceleratedNetwork", + type: { + name: "Boolean" + } + } + } + } +}; + +export const CreationData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CreationData", + modelProperties: { + createOption: { + serializedName: "createOption", + required: true, + type: { + name: "String" + } + }, + storageAccountId: { + serializedName: "storageAccountId", + type: { + name: "String" + } + }, + imageReference: { + serializedName: "imageReference", + type: { + name: "Composite", + className: "ImageDiskReference" + } + }, + galleryImageReference: { + serializedName: "galleryImageReference", + type: { + name: "Composite", + className: "ImageDiskReference" + } + }, + sourceUri: { + serializedName: "sourceUri", + type: { + name: "String" + } + }, + sourceResourceId: { + serializedName: "sourceResourceId", + type: { + name: "String" + } + }, + sourceUniqueId: { + serializedName: "sourceUniqueId", + readOnly: true, + type: { + name: "String" + } + }, + uploadSizeBytes: { + serializedName: "uploadSizeBytes", + type: { + name: "Number" + } + }, + logicalSectorSize: { + serializedName: "logicalSectorSize", + type: { + name: "Number" + } + }, + securityDataUri: { + serializedName: "securityDataUri", + type: { + name: "String" + } + } + } + } +}; + +export const ImageDiskReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageDiskReference", + modelProperties: { + id: { + serializedName: "id", + required: true, + type: { + name: "String" + } + }, + lun: { + serializedName: "lun", + type: { + name: "Number" + } + } + } + } +}; + +export const EncryptionSettingsCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionSettingsCollection", + modelProperties: { + enabled: { + serializedName: "enabled", + required: true, + type: { + name: "Boolean" + } + }, + encryptionSettings: { + serializedName: "encryptionSettings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EncryptionSettingsElement" + } + } + } + }, + encryptionSettingsVersion: { + serializedName: "encryptionSettingsVersion", + type: { + name: "String" + } + } + } + } +}; + +export const EncryptionSettingsElement: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionSettingsElement", + modelProperties: { + diskEncryptionKey: { + serializedName: "diskEncryptionKey", + type: { + name: "Composite", + className: "KeyVaultAndSecretReference" + } + }, + keyEncryptionKey: { + serializedName: "keyEncryptionKey", + type: { + name: "Composite", + className: "KeyVaultAndKeyReference" + } + } + } + } +}; + +export const KeyVaultAndSecretReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyVaultAndSecretReference", + modelProperties: { + sourceVault: { + serializedName: "sourceVault", + type: { + name: "Composite", + className: "SourceVault" + } + }, + secretUrl: { + serializedName: "secretUrl", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const SourceVault: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SourceVault", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const KeyVaultAndKeyReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyVaultAndKeyReference", + modelProperties: { + sourceVault: { + serializedName: "sourceVault", + type: { + name: "Composite", + className: "SourceVault" + } + }, + keyUrl: { + serializedName: "keyUrl", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const Encryption: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Encryption", + modelProperties: { + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const ShareInfoElement: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ShareInfoElement", + modelProperties: { + vmUri: { + serializedName: "vmUri", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PropertyUpdatesInProgress", + modelProperties: { + targetTier: { + serializedName: "targetTier", + type: { + name: "String" + } + } + } + } +}; + +export const DiskSecurityProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskSecurityProfile", + modelProperties: { + securityType: { + serializedName: "securityType", + type: { + name: "String" + } + }, + secureVMDiskEncryptionSetId: { + serializedName: "secureVMDiskEncryptionSetId", + type: { + name: "String" + } + } + } + } +}; + +export const DiskUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskUpdate", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "DiskSku" + } + }, + osType: { + serializedName: "properties.osType", + type: { + name: "Enum", + allowedValues: ["Windows", "Linux"] + } + }, + diskSizeGB: { + serializedName: "properties.diskSizeGB", + type: { + name: "Number" + } + }, + encryptionSettingsCollection: { + serializedName: "properties.encryptionSettingsCollection", + type: { + name: "Composite", + className: "EncryptionSettingsCollection" + } + }, + diskIopsReadWrite: { + serializedName: "properties.diskIOPSReadWrite", + type: { + name: "Number" + } + }, + diskMBpsReadWrite: { + serializedName: "properties.diskMBpsReadWrite", + type: { + name: "Number" + } + }, + diskIopsReadOnly: { + serializedName: "properties.diskIOPSReadOnly", + type: { + name: "Number" + } + }, + diskMBpsReadOnly: { + serializedName: "properties.diskMBpsReadOnly", + type: { + name: "Number" + } + }, + maxShares: { + serializedName: "properties.maxShares", + type: { + name: "Number" + } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "Encryption" + } + }, + networkAccessPolicy: { + serializedName: "properties.networkAccessPolicy", + type: { + name: "String" + } + }, + diskAccessId: { + serializedName: "properties.diskAccessId", + type: { + name: "String" + } + }, + tier: { + serializedName: "properties.tier", + type: { + name: "String" + } + }, + burstingEnabled: { + serializedName: "properties.burstingEnabled", + type: { + name: "Boolean" + } + }, + purchasePlan: { + serializedName: "properties.purchasePlan", + type: { + name: "Composite", + className: "PurchasePlanAutoGenerated" + } + }, + supportedCapabilities: { + serializedName: "properties.supportedCapabilities", + type: { + name: "Composite", + className: "SupportedCapabilities" + } + }, + propertyUpdatesInProgress: { + serializedName: "properties.propertyUpdatesInProgress", + type: { + name: "Composite", + className: "PropertyUpdatesInProgress" + } + }, + supportsHibernation: { + serializedName: "properties.supportsHibernation", + type: { + name: "Boolean" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + } + } + } +}; + +export const DiskList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskList", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Disk" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const GrantAccessData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GrantAccessData", + modelProperties: { + access: { + serializedName: "access", + required: true, + type: { + name: "String" + } + }, + durationInSeconds: { + serializedName: "durationInSeconds", + required: true, + type: { + name: "Number" + } + }, + getSecureVMGuestStateSAS: { + serializedName: "getSecureVMGuestStateSAS", + type: { + name: "Boolean" } } } } }; -export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { +export const AccessUri: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuRestrictionInfo", + className: "AccessUri", modelProperties: { - locations: { - serializedName: "locations", + accessSAS: { + serializedName: "accessSAS", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - zones: { - serializedName: "zones", + securityDataAccessSAS: { + serializedName: "securityDataAccessSAS", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const DiskSku: coreClient.CompositeMapper = { +export const SnapshotSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskSku", + className: "SnapshotSku", modelProperties: { name: { serializedName: "name", @@ -6940,55 +7574,107 @@ export const DiskSku: coreClient.CompositeMapper = { } }; -export const PurchasePlanAutoGenerated: coreClient.CompositeMapper = { +export const SnapshotUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PurchasePlanAutoGenerated", + className: "SnapshotUpdate", modelProperties: { - name: { - serializedName: "name", - required: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - publisher: { - serializedName: "publisher", - required: true, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "SnapshotSku" + } + }, + osType: { + serializedName: "properties.osType", + type: { + name: "Enum", + allowedValues: ["Windows", "Linux"] + } + }, + diskSizeGB: { + serializedName: "properties.diskSizeGB", + type: { + name: "Number" + } + }, + encryptionSettingsCollection: { + serializedName: "properties.encryptionSettingsCollection", + type: { + name: "Composite", + className: "EncryptionSettingsCollection" + } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "Encryption" + } + }, + networkAccessPolicy: { + serializedName: "properties.networkAccessPolicy", type: { name: "String" } }, - product: { - serializedName: "product", - required: true, + diskAccessId: { + serializedName: "properties.diskAccessId", type: { name: "String" } }, - promotionCode: { - serializedName: "promotionCode", + supportsHibernation: { + serializedName: "properties.supportsHibernation", + type: { + name: "Boolean" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { name: "String" } + }, + supportedCapabilities: { + serializedName: "properties.supportedCapabilities", + type: { + name: "Composite", + className: "SupportedCapabilities" + } } } } }; -export const SupportedCapabilities: coreClient.CompositeMapper = { +export const SnapshotList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SupportedCapabilities", + className: "SnapshotList", modelProperties: { - acceleratedNetwork: { - serializedName: "acceleratedNetwork", + value: { + serializedName: "value", + required: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Snapshot" + } + } } }, - architecture: { - serializedName: "architecture", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -6997,127 +7683,147 @@ export const SupportedCapabilities: coreClient.CompositeMapper = { } }; -export const CreationData: coreClient.CompositeMapper = { +export const EncryptionSetIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CreationData", + className: "EncryptionSetIdentity", modelProperties: { - createOption: { - serializedName: "createOption", - required: true, + type: { + serializedName: "type", type: { name: "String" } }, - storageAccountId: { - serializedName: "storageAccountId", + principalId: { + serializedName: "principalId", + readOnly: true, type: { name: "String" } }, - imageReference: { - serializedName: "imageReference", + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { - name: "Composite", - className: "ImageDiskReference" + name: "String" } - }, - galleryImageReference: { - serializedName: "galleryImageReference", + } + } + } +}; + +export const KeyForDiskEncryptionSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyForDiskEncryptionSet", + modelProperties: { + sourceVault: { + serializedName: "sourceVault", type: { name: "Composite", - className: "ImageDiskReference" + className: "SourceVault" } }, - sourceUri: { - serializedName: "sourceUri", + keyUrl: { + serializedName: "keyUrl", + required: true, type: { name: "String" } - }, - sourceResourceId: { - serializedName: "sourceResourceId", + } + } + } +}; + +export const DiskEncryptionSetUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskEncryptionSetUpdate", + modelProperties: { + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - sourceUniqueId: { - serializedName: "sourceUniqueId", - readOnly: true, + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "EncryptionSetIdentity" } }, - uploadSizeBytes: { - serializedName: "uploadSizeBytes", + encryptionType: { + serializedName: "properties.encryptionType", type: { - name: "Number" + name: "String" } }, - logicalSectorSize: { - serializedName: "logicalSectorSize", + activeKey: { + serializedName: "properties.activeKey", type: { - name: "Number" + name: "Composite", + className: "KeyForDiskEncryptionSet" } }, - securityDataUri: { - serializedName: "securityDataUri", + rotationToLatestKeyVersionEnabled: { + serializedName: "properties.rotationToLatestKeyVersionEnabled", type: { - name: "String" + name: "Boolean" } } } } }; -export const ImageDiskReference: coreClient.CompositeMapper = { +export const DiskEncryptionSetList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageDiskReference", + className: "DiskEncryptionSetList", modelProperties: { - id: { - serializedName: "id", + value: { + serializedName: "value", required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskEncryptionSet" + } + } } }, - lun: { - serializedName: "lun", + nextLink: { + serializedName: "nextLink", type: { - name: "Number" + name: "String" } } } } }; -export const EncryptionSettingsCollection: coreClient.CompositeMapper = { +export const ResourceUriList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionSettingsCollection", + className: "ResourceUriList", modelProperties: { - enabled: { - serializedName: "enabled", + value: { + serializedName: "value", required: true, - type: { - name: "Boolean" - } - }, - encryptionSettings: { - serializedName: "encryptionSettings", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "EncryptionSettingsElement" + name: "String" } } } }, - encryptionSettingsVersion: { - serializedName: "encryptionSettingsVersion", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -7126,44 +7832,49 @@ export const EncryptionSettingsCollection: coreClient.CompositeMapper = { } }; -export const EncryptionSettingsElement: coreClient.CompositeMapper = { +export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionSettingsElement", + className: "PrivateEndpointConnection", modelProperties: { - diskEncryptionKey: { - serializedName: "diskEncryptionKey", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Composite", - className: "KeyVaultAndSecretReference" + name: "String" } }, - keyEncryptionKey: { - serializedName: "keyEncryptionKey", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "KeyVaultAndKeyReference" + className: "PrivateEndpoint" } - } - } - } -}; - -export const KeyVaultAndSecretReference: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "KeyVaultAndSecretReference", - modelProperties: { - sourceVault: { - serializedName: "sourceVault", + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "SourceVault" + className: "PrivateLinkServiceConnectionState" } }, - secretUrl: { - serializedName: "secretUrl", - required: true, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } @@ -7172,13 +7883,14 @@ export const KeyVaultAndSecretReference: coreClient.CompositeMapper = { } }; -export const SourceVault: coreClient.CompositeMapper = { +export const PrivateEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceVault", + className: "PrivateEndpoint", modelProperties: { id: { serializedName: "id", + readOnly: true, type: { name: "String" } @@ -7187,42 +7899,25 @@ export const SourceVault: coreClient.CompositeMapper = { } }; -export const KeyVaultAndKeyReference: coreClient.CompositeMapper = { +export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyVaultAndKeyReference", + className: "PrivateLinkServiceConnectionState", modelProperties: { - sourceVault: { - serializedName: "sourceVault", - type: { - name: "Composite", - className: "SourceVault" - } - }, - keyUrl: { - serializedName: "keyUrl", - required: true, + status: { + serializedName: "status", type: { name: "String" } - } - } - } -}; - -export const Encryption: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Encryption", - modelProperties: { - diskEncryptionSetId: { - serializedName: "diskEncryptionSetId", + }, + description: { + serializedName: "description", type: { name: "String" } }, - type: { - serializedName: "type", + actionsRequired: { + serializedName: "actionsRequired", type: { name: "String" } @@ -7231,29 +7926,42 @@ export const Encryption: coreClient.CompositeMapper = { } }; -export const ShareInfoElement: coreClient.CompositeMapper = { +export const DiskAccessUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ShareInfoElement", + className: "DiskAccessUpdate", modelProperties: { - vmUri: { - serializedName: "vmUri", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { +export const DiskAccessList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PropertyUpdatesInProgress", + className: "DiskAccessList", modelProperties: { - targetTier: { - serializedName: "targetTier", + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskAccess" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -7262,184 +7970,100 @@ export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { } }; -export const DiskSecurityProfile: coreClient.CompositeMapper = { +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskSecurityProfile", + className: "PrivateLinkResourceListResult", modelProperties: { - securityType: { - serializedName: "securityType", - type: { - name: "String" - } - }, - secureVMDiskEncryptionSetId: { - serializedName: "secureVMDiskEncryptionSetId", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } } } } } }; -export const DiskUpdate: coreClient.CompositeMapper = { +export const PrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskUpdate", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "DiskSku" - } - }, - osType: { - serializedName: "properties.osType", - type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] - } - }, - diskSizeGB: { - serializedName: "properties.diskSizeGB", - type: { - name: "Number" - } - }, - encryptionSettingsCollection: { - serializedName: "properties.encryptionSettingsCollection", - type: { - name: "Composite", - className: "EncryptionSettingsCollection" - } - }, - diskIopsReadWrite: { - serializedName: "properties.diskIOPSReadWrite", - type: { - name: "Number" - } - }, - diskMBpsReadWrite: { - serializedName: "properties.diskMBpsReadWrite", - type: { - name: "Number" - } - }, - diskIopsReadOnly: { - serializedName: "properties.diskIOPSReadOnly", - type: { - name: "Number" - } - }, - diskMBpsReadOnly: { - serializedName: "properties.diskMBpsReadOnly", - type: { - name: "Number" - } - }, - maxShares: { - serializedName: "properties.maxShares", - type: { - name: "Number" - } - }, - encryption: { - serializedName: "properties.encryption", - type: { - name: "Composite", - className: "Encryption" - } - }, - networkAccessPolicy: { - serializedName: "properties.networkAccessPolicy", - type: { - name: "String" - } - }, - diskAccessId: { - serializedName: "properties.diskAccessId", - type: { - name: "String" - } - }, - tier: { - serializedName: "properties.tier", - type: { - name: "String" - } - }, - burstingEnabled: { - serializedName: "properties.burstingEnabled", - type: { - name: "Boolean" - } - }, - purchasePlan: { - serializedName: "properties.purchasePlan", + className: "PrivateLinkResource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, type: { - name: "Composite", - className: "PurchasePlanAutoGenerated" + name: "String" } }, - supportedCapabilities: { - serializedName: "properties.supportedCapabilities", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Composite", - className: "SupportedCapabilities" + name: "String" } }, - propertyUpdatesInProgress: { - serializedName: "properties.propertyUpdatesInProgress", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Composite", - className: "PropertyUpdatesInProgress" + name: "String" } }, - supportsHibernation: { - serializedName: "properties.supportsHibernation", + groupId: { + serializedName: "properties.groupId", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + requiredMembers: { + serializedName: "properties.requiredMembers", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - dataAccessAuthMode: { - serializedName: "properties.dataAccessAuthMode", + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const DiskList: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskList", + className: "PrivateEndpointConnectionListResult", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Disk" + className: "PrivateEndpointConnection" } } } @@ -7454,50 +8078,56 @@ export const DiskList: coreClient.CompositeMapper = { } }; -export const GrantAccessData: coreClient.CompositeMapper = { +export const ProxyOnlyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GrantAccessData", + className: "ProxyOnlyResource", modelProperties: { - access: { - serializedName: "access", - required: true, + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - durationInSeconds: { - serializedName: "durationInSeconds", - required: true, + name: { + serializedName: "name", + readOnly: true, type: { - name: "Number" + name: "String" } }, - getSecureVMGuestStateSAS: { - serializedName: "getSecureVMGuestStateSAS", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const AccessUri: coreClient.CompositeMapper = { +export const DiskRestorePointList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccessUri", + className: "DiskRestorePointList", modelProperties: { - accessSAS: { - serializedName: "accessSAS", - readOnly: true, + value: { + serializedName: "value", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskRestorePoint" + } + } } }, - securityDataAccessSAS: { - serializedName: "securityDataAccessSAS", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -7506,19 +8136,13 @@ export const AccessUri: coreClient.CompositeMapper = { } }; -export const SnapshotSku: coreClient.CompositeMapper = { +export const GalleryIdentifier: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SnapshotSku", + className: "GalleryIdentifier", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", + uniqueName: { + serializedName: "uniqueName", readOnly: true, type: { name: "String" @@ -7528,142 +8152,129 @@ export const SnapshotSku: coreClient.CompositeMapper = { } }; -export const SnapshotUpdate: coreClient.CompositeMapper = { +export const SharingProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SnapshotUpdate", + className: "SharingProfile", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "SnapshotSku" - } - }, - osType: { - serializedName: "properties.osType", - type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] - } - }, - diskSizeGB: { - serializedName: "properties.diskSizeGB", - type: { - name: "Number" - } - }, - encryptionSettingsCollection: { - serializedName: "properties.encryptionSettingsCollection", - type: { - name: "Composite", - className: "EncryptionSettingsCollection" - } - }, - encryption: { - serializedName: "properties.encryption", - type: { - name: "Composite", - className: "Encryption" - } - }, - networkAccessPolicy: { - serializedName: "properties.networkAccessPolicy", + permissions: { + serializedName: "permissions", type: { name: "String" } }, - diskAccessId: { - serializedName: "properties.diskAccessId", + groups: { + serializedName: "groups", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharingProfileGroup" + } + } } }, - supportsHibernation: { - serializedName: "properties.supportsHibernation", + communityGalleryInfo: { + serializedName: "communityGalleryInfo", type: { - name: "Boolean" + name: "any" } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + } + } + } +}; + +export const SharingProfileGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SharingProfileGroup", + modelProperties: { + type: { + serializedName: "type", type: { name: "String" } }, - dataAccessAuthMode: { - serializedName: "properties.dataAccessAuthMode", + ids: { + serializedName: "ids", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - supportedCapabilities: { - serializedName: "properties.supportedCapabilities", + } + } + } +}; + +export const SoftDeletePolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SoftDeletePolicy", + modelProperties: { + isSoftDeleteEnabled: { + serializedName: "isSoftDeleteEnabled", type: { - name: "Composite", - className: "SupportedCapabilities" + name: "Boolean" } } } } }; -export const SnapshotList: coreClient.CompositeMapper = { +export const SharingStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SnapshotList", + className: "SharingStatus", modelProperties: { - value: { - serializedName: "value", - required: true, + aggregatedState: { + serializedName: "aggregatedState", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Snapshot" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + summary: { + serializedName: "summary", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegionalSharingStatus" + } + } } } } } }; -export const EncryptionSetIdentity: coreClient.CompositeMapper = { +export const RegionalSharingStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionSetIdentity", + className: "RegionalSharingStatus", modelProperties: { - type: { - serializedName: "type", + region: { + serializedName: "region", type: { name: "String" } }, - principalId: { - serializedName: "principalId", + state: { + serializedName: "state", readOnly: true, type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", - readOnly: true, + details: { + serializedName: "details", type: { name: "String" } @@ -7672,107 +8283,124 @@ export const EncryptionSetIdentity: coreClient.CompositeMapper = { } }; -export const KeyForDiskEncryptionSet: coreClient.CompositeMapper = { +export const UpdateResourceDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyForDiskEncryptionSet", + className: "UpdateResourceDefinition", modelProperties: { - sourceVault: { - serializedName: "sourceVault", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Composite", - className: "SourceVault" + name: "String" } }, - keyUrl: { - serializedName: "keyUrl", - required: true, + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } }; -export const DiskEncryptionSetUpdate: coreClient.CompositeMapper = { +export const GalleryImageIdentifier: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskEncryptionSetUpdate", + className: "GalleryImageIdentifier", modelProperties: { - tags: { - serializedName: "tags", + publisher: { + serializedName: "publisher", + required: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - identity: { - serializedName: "identity", + offer: { + serializedName: "offer", + required: true, type: { - name: "Composite", - className: "EncryptionSetIdentity" + name: "String" } }, - encryptionType: { - serializedName: "properties.encryptionType", + sku: { + serializedName: "sku", + required: true, type: { name: "String" } - }, - activeKey: { - serializedName: "properties.activeKey", + } + } + } +}; + +export const RecommendedMachineConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecommendedMachineConfiguration", + modelProperties: { + vCPUs: { + serializedName: "vCPUs", type: { name: "Composite", - className: "KeyForDiskEncryptionSet" + className: "ResourceRange" } }, - rotationToLatestKeyVersionEnabled: { - serializedName: "properties.rotationToLatestKeyVersionEnabled", + memory: { + serializedName: "memory", type: { - name: "Boolean" + name: "Composite", + className: "ResourceRange" } } } } }; -export const DiskEncryptionSetList: coreClient.CompositeMapper = { +export const ResourceRange: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskEncryptionSetList", + className: "ResourceRange", modelProperties: { - value: { - serializedName: "value", - required: true, + min: { + serializedName: "min", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiskEncryptionSet" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + max: { + serializedName: "max", type: { - name: "String" + name: "Number" } } } } }; -export const ResourceUriList: coreClient.CompositeMapper = { +export const Disallowed: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceUriList", + className: "Disallowed", modelProperties: { - value: { - serializedName: "value", - required: true, + diskTypes: { + serializedName: "diskTypes", type: { name: "Sequence", element: { @@ -7781,60 +8409,30 @@ export const ResourceUriList: coreClient.CompositeMapper = { } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { +export const ImagePurchasePlan: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "ImagePurchasePlan", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, name: { serializedName: "name", - readOnly: true, type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + publisher: { + serializedName: "publisher", type: { name: "String" } }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpoint" - } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + product: { + serializedName: "product", type: { name: "String" } @@ -7843,14 +8441,19 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { } }; -export const PrivateEndpoint: coreClient.CompositeMapper = { +export const GalleryImageFeature: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpoint", + className: "GalleryImageFeature", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", type: { name: "String" } @@ -7859,90 +8462,68 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { } }; -export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { +export const GalleryArtifactPublishingProfileBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkServiceConnectionState", + className: "GalleryArtifactPublishingProfileBase", modelProperties: { - status: { - serializedName: "status", + targetRegions: { + serializedName: "targetRegions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TargetRegion" + } + } } }, - description: { - serializedName: "description", + replicaCount: { + serializedName: "replicaCount", type: { - name: "String" + name: "Number" } }, - actionsRequired: { - serializedName: "actionsRequired", + excludeFromLatest: { + serializedName: "excludeFromLatest", type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const DiskAccessUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiskAccessUpdate", - modelProperties: { - tags: { - serializedName: "tags", + }, + publishedDate: { + serializedName: "publishedDate", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "DateTime" } - } - } - } -}; - -export const DiskAccessList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiskAccessList", - modelProperties: { - value: { - serializedName: "value", - required: true, + }, + endOfLifeDate: { + serializedName: "endOfLifeDate", + type: { + name: "DateTime" + } + }, + storageAccountType: { + serializedName: "storageAccountType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiskAccess" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + replicationMode: { + serializedName: "replicationMode", type: { name: "String" } - } - } - } -}; - -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkResourceListResult", - modelProperties: { - value: { - serializedName: "value", + }, + targetExtendedLocations: { + serializedName: "targetExtendedLocations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateLinkResource" + className: "GalleryTargetExtendedLocation" } } } @@ -7951,115 +8532,97 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { } }; -export const PrivateLinkResource: coreClient.CompositeMapper = { +export const TargetRegion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResource", + className: "TargetRegion", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, name: { serializedName: "name", - readOnly: true, + required: true, type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + regionalReplicaCount: { + serializedName: "regionalReplicaCount", type: { - name: "String" + name: "Number" } }, - groupId: { - serializedName: "properties.groupId", - readOnly: true, + storageAccountType: { + serializedName: "storageAccountType", type: { name: "String" } }, - requiredMembers: { - serializedName: "properties.requiredMembers", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", + encryption: { + serializedName: "encryption", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "EncryptionImages" } } } } }; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { +export const EncryptionImages: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "EncryptionImages", modelProperties: { - value: { - serializedName: "value", + osDiskImage: { + serializedName: "osDiskImage", + type: { + name: "Composite", + className: "OSDiskImageEncryption" + } + }, + dataDiskImages: { + serializedName: "dataDiskImages", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateEndpointConnection" + className: "DataDiskImageEncryption" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const ProxyOnlyResource: coreClient.CompositeMapper = { +export const OSDiskImageSecurityProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProxyOnlyResource", + className: "OSDiskImageSecurityProfile", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + confidentialVMEncryptionType: { + serializedName: "confidentialVMEncryptionType", type: { name: "String" } }, - name: { - serializedName: "name", - readOnly: true, + secureVMDiskEncryptionSetId: { + serializedName: "secureVMDiskEncryptionSetId", type: { name: "String" } - }, - type: { - serializedName: "type", - readOnly: true, + } + } + } +}; + +export const DiskImageEncryption: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskImageEncryption", + modelProperties: { + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", type: { name: "String" } @@ -8068,42 +8631,60 @@ export const ProxyOnlyResource: coreClient.CompositeMapper = { } }; -export const DiskRestorePointList: coreClient.CompositeMapper = { +export const GalleryTargetExtendedLocation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskRestorePointList", + className: "GalleryTargetExtendedLocation", modelProperties: { - value: { - serializedName: "value", - required: true, + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiskRestorePoint" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + extendedLocation: { + serializedName: "extendedLocation", + type: { + name: "Composite", + className: "GalleryExtendedLocation" + } + }, + extendedLocationReplicaCount: { + serializedName: "extendedLocationReplicaCount", + type: { + name: "Number" + } + }, + storageAccountType: { + serializedName: "storageAccountType", type: { name: "String" } + }, + encryption: { + serializedName: "encryption", + type: { + name: "Composite", + className: "EncryptionImages" + } } } } }; -export const GalleryIdentifier: coreClient.CompositeMapper = { +export const GalleryExtendedLocation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryIdentifier", + className: "GalleryExtendedLocation", modelProperties: { - uniqueName: { - serializedName: "uniqueName", - readOnly: true, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", type: { name: "String" } @@ -8112,85 +8693,96 @@ export const GalleryIdentifier: coreClient.CompositeMapper = { } }; -export const SharingProfile: coreClient.CompositeMapper = { +export const GalleryImageVersionStorageProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharingProfile", + className: "GalleryImageVersionStorageProfile", modelProperties: { - permissions: { - serializedName: "permissions", + source: { + serializedName: "source", type: { - name: "String" + name: "Composite", + className: "GalleryArtifactVersionSource" } }, - groups: { - serializedName: "groups", - readOnly: true, + osDiskImage: { + serializedName: "osDiskImage", + type: { + name: "Composite", + className: "GalleryOSDiskImage" + } + }, + dataDiskImages: { + serializedName: "dataDiskImages", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SharingProfileGroup" + className: "GalleryDataDiskImage" } } } - }, - communityGalleryInfo: { - serializedName: "communityGalleryInfo", - type: { - name: "any" - } } } } }; -export const SharingProfileGroup: coreClient.CompositeMapper = { +export const GalleryArtifactVersionSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharingProfileGroup", + className: "GalleryArtifactVersionSource", modelProperties: { - type: { - serializedName: "type", + id: { + serializedName: "id", type: { name: "String" } }, - ids: { - serializedName: "ids", + uri: { + serializedName: "uri", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const SoftDeletePolicy: coreClient.CompositeMapper = { +export const GalleryDiskImage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SoftDeletePolicy", + className: "GalleryDiskImage", modelProperties: { - isSoftDeleteEnabled: { - serializedName: "isSoftDeleteEnabled", + sizeInGB: { + serializedName: "sizeInGB", + readOnly: true, + type: { + name: "Number" + } + }, + hostCaching: { + serializedName: "hostCaching", type: { - name: "Boolean" + name: "Enum", + allowedValues: ["None", "ReadOnly", "ReadWrite"] + } + }, + source: { + serializedName: "source", + type: { + name: "Composite", + className: "GalleryArtifactVersionSource" } } } } }; -export const SharingStatus: coreClient.CompositeMapper = { +export const ReplicationStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharingStatus", + className: "ReplicationStatus", modelProperties: { aggregatedState: { serializedName: "aggregatedState", @@ -8201,12 +8793,13 @@ export const SharingStatus: coreClient.CompositeMapper = { }, summary: { serializedName: "summary", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "RegionalSharingStatus" + className: "RegionalReplicationStatus" } } } @@ -8215,13 +8808,14 @@ export const SharingStatus: coreClient.CompositeMapper = { } }; -export const RegionalSharingStatus: coreClient.CompositeMapper = { +export const RegionalReplicationStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegionalSharingStatus", + className: "RegionalReplicationStatus", modelProperties: { region: { serializedName: "region", + readOnly: true, type: { name: "String" } @@ -8235,73 +8829,36 @@ export const RegionalSharingStatus: coreClient.CompositeMapper = { }, details: { serializedName: "details", - type: { - name: "String" - } - } - } - } -}; - -export const UpdateResourceDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpdateResourceDefinition", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", readOnly: true, type: { name: "String" } }, - type: { - serializedName: "type", + progress: { + serializedName: "progress", readOnly: true, type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Number" } } } } }; -export const GalleryImageIdentifier: coreClient.CompositeMapper = { +export const UserArtifactSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryImageIdentifier", + className: "UserArtifactSource", modelProperties: { - publisher: { - serializedName: "publisher", - required: true, - type: { - name: "String" - } - }, - offer: { - serializedName: "offer", + mediaLink: { + serializedName: "mediaLink", required: true, type: { name: "String" } }, - sku: { - serializedName: "sku", - required: true, + defaultConfigurationLink: { + serializedName: "defaultConfigurationLink", type: { name: "String" } @@ -8310,89 +8867,55 @@ export const GalleryImageIdentifier: coreClient.CompositeMapper = { } }; -export const RecommendedMachineConfiguration: coreClient.CompositeMapper = { +export const UserArtifactManage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecommendedMachineConfiguration", + className: "UserArtifactManage", modelProperties: { - vCPUs: { - serializedName: "vCPUs", + install: { + serializedName: "install", + required: true, type: { - name: "Composite", - className: "ResourceRange" + name: "String" } }, - memory: { - serializedName: "memory", - type: { - name: "Composite", - className: "ResourceRange" - } - } - } - } -}; - -export const ResourceRange: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceRange", - modelProperties: { - min: { - serializedName: "min", + remove: { + serializedName: "remove", + required: true, type: { - name: "Number" + name: "String" } }, - max: { - serializedName: "max", + update: { + serializedName: "update", type: { - name: "Number" + name: "String" } } } } }; -export const Disallowed: coreClient.CompositeMapper = { +export const GalleryList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Disallowed", + className: "GalleryList", modelProperties: { - diskTypes: { - serializedName: "diskTypes", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "Gallery" } } } - } - } - } -}; - -export const ImagePurchasePlan: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImagePurchasePlan", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - publisher: { - serializedName: "publisher", - type: { - name: "String" - } }, - product: { - serializedName: "product", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -8401,173 +8924,110 @@ export const ImagePurchasePlan: coreClient.CompositeMapper = { } }; -export const GalleryImageFeature: coreClient.CompositeMapper = { +export const GalleryImageList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryImageFeature", + className: "GalleryImageList", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, value: { serializedName: "value", - type: { - name: "String" - } - } - } - } -}; - -export const GalleryArtifactPublishingProfileBase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryArtifactPublishingProfileBase", - modelProperties: { - targetRegions: { - serializedName: "targetRegions", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "TargetRegion" + className: "GalleryImage" } } } }, - replicaCount: { - serializedName: "replicaCount", - type: { - name: "Number" - } - }, - excludeFromLatest: { - serializedName: "excludeFromLatest", - type: { - name: "Boolean" - } - }, - publishedDate: { - serializedName: "publishedDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - endOfLifeDate: { - serializedName: "endOfLifeDate", - type: { - name: "DateTime" - } - }, - storageAccountType: { - serializedName: "storageAccountType", - type: { - name: "String" - } - }, - replicationMode: { - serializedName: "replicationMode", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - targetExtendedLocations: { - serializedName: "targetExtendedLocations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryTargetExtendedLocation" - } - } - } } } } }; -export const TargetRegion: coreClient.CompositeMapper = { +export const GalleryImageVersionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TargetRegion", + className: "GalleryImageVersionList", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", required: true, type: { - name: "String" - } - }, - regionalReplicaCount: { - serializedName: "regionalReplicaCount", - type: { - name: "Number" - } - }, - storageAccountType: { - serializedName: "storageAccountType", - type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryImageVersion" + } + } } }, - encryption: { - serializedName: "encryption", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "EncryptionImages" + name: "String" } } } } }; -export const EncryptionImages: coreClient.CompositeMapper = { +export const GalleryApplicationList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionImages", + className: "GalleryApplicationList", modelProperties: { - osDiskImage: { - serializedName: "osDiskImage", - type: { - name: "Composite", - className: "OSDiskImageEncryption" - } - }, - dataDiskImages: { - serializedName: "dataDiskImages", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DataDiskImageEncryption" + className: "GalleryApplication" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const OSDiskImageSecurityProfile: coreClient.CompositeMapper = { +export const GalleryApplicationVersionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OSDiskImageSecurityProfile", + className: "GalleryApplicationVersionList", modelProperties: { - confidentialVMEncryptionType: { - serializedName: "confidentialVMEncryptionType", + value: { + serializedName: "value", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryApplicationVersion" + } + } } }, - secureVMDiskEncryptionSetId: { - serializedName: "secureVMDiskEncryptionSetId", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -8576,75 +9036,77 @@ export const OSDiskImageSecurityProfile: coreClient.CompositeMapper = { } }; -export const DiskImageEncryption: coreClient.CompositeMapper = { +export const SharingUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskImageEncryption", + className: "SharingUpdate", modelProperties: { - diskEncryptionSetId: { - serializedName: "diskEncryptionSetId", + operationType: { + serializedName: "operationType", + required: true, type: { name: "String" } + }, + groups: { + serializedName: "groups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharingProfileGroup" + } + } + } } } } }; -export const GalleryTargetExtendedLocation: coreClient.CompositeMapper = { +export const SharedGalleryList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryTargetExtendedLocation", + className: "SharedGalleryList", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - extendedLocation: { - serializedName: "extendedLocation", - type: { - name: "Composite", - className: "GalleryExtendedLocation" - } - }, - extendedLocationReplicaCount: { - serializedName: "extendedLocationReplicaCount", + value: { + serializedName: "value", + required: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedGallery" + } + } } }, - storageAccountType: { - serializedName: "storageAccountType", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - encryption: { - serializedName: "encryption", - type: { - name: "Composite", - className: "EncryptionImages" - } } } } }; -export const GalleryExtendedLocation: coreClient.CompositeMapper = { +export const PirResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryExtendedLocation", + className: "PirResource", modelProperties: { name: { serializedName: "name", + readOnly: true, type: { name: "String" } }, - type: { - serializedName: "type", + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } @@ -8653,54 +9115,54 @@ export const GalleryExtendedLocation: coreClient.CompositeMapper = { } }; -export const GalleryImageVersionStorageProfile: coreClient.CompositeMapper = { +export const SharedGalleryImageList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryImageVersionStorageProfile", + className: "SharedGalleryImageList", modelProperties: { - source: { - serializedName: "source", - type: { - name: "Composite", - className: "GalleryArtifactVersionSource" - } - }, - osDiskImage: { - serializedName: "osDiskImage", - type: { - name: "Composite", - className: "GalleryOSDiskImage" - } - }, - dataDiskImages: { - serializedName: "dataDiskImages", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "GalleryDataDiskImage" + className: "SharedGalleryImage" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const GalleryArtifactVersionSource: coreClient.CompositeMapper = { +export const SharedGalleryImageVersionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryArtifactVersionSource", + className: "SharedGalleryImageVersionList", modelProperties: { - id: { - serializedName: "id", + value: { + serializedName: "value", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedGalleryImageVersion" + } + } } }, - uri: { - serializedName: "uri", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -8709,116 +9171,116 @@ export const GalleryArtifactVersionSource: coreClient.CompositeMapper = { } }; -export const GalleryDiskImage: coreClient.CompositeMapper = { +export const PirCommunityGalleryResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryDiskImage", + className: "PirCommunityGalleryResource", modelProperties: { - sizeInGB: { - serializedName: "sizeInGB", + name: { + serializedName: "name", readOnly: true, type: { - name: "Number" + name: "String" } }, - hostCaching: { - serializedName: "hostCaching", + location: { + serializedName: "location", + readOnly: true, type: { - name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] + name: "String" } }, - source: { - serializedName: "source", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Composite", - className: "GalleryArtifactVersionSource" + name: "String" + } + }, + uniqueId: { + serializedName: "identifier.uniqueId", + type: { + name: "String" } } } } }; -export const ReplicationStatus: coreClient.CompositeMapper = { +export const RoleInstance: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ReplicationStatus", + className: "RoleInstance", modelProperties: { - aggregatedState: { - serializedName: "aggregatedState", + id: { + serializedName: "id", readOnly: true, type: { name: "String" } }, - summary: { - serializedName: "summary", + name: { + serializedName: "name", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RegionalReplicationStatus" - } - } + name: "String" } - } - } - } -}; - -export const RegionalReplicationStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RegionalReplicationStatus", - modelProperties: { - region: { - serializedName: "region", + }, + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - state: { - serializedName: "state", + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", readOnly: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - details: { - serializedName: "details", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "InstanceSku" } }, - progress: { - serializedName: "progress", - readOnly: true, + properties: { + serializedName: "properties", type: { - name: "Number" + name: "Composite", + className: "RoleInstanceProperties" } } } } }; -export const UserArtifactSource: coreClient.CompositeMapper = { +export const InstanceSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserArtifactSource", + className: "InstanceSku", modelProperties: { - mediaLink: { - serializedName: "mediaLink", - required: true, + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - defaultConfigurationLink: { - serializedName: "defaultConfigurationLink", + tier: { + serializedName: "tier", + readOnly: true, type: { name: "String" } @@ -8827,151 +9289,142 @@ export const UserArtifactSource: coreClient.CompositeMapper = { } }; -export const UserArtifactManage: coreClient.CompositeMapper = { +export const RoleInstanceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserArtifactManage", + className: "RoleInstanceProperties", modelProperties: { - install: { - serializedName: "install", - required: true, - type: { - name: "String" - } - }, - remove: { - serializedName: "remove", - required: true, + networkProfile: { + serializedName: "networkProfile", type: { - name: "String" + name: "Composite", + className: "RoleInstanceNetworkProfile" } }, - update: { - serializedName: "update", + instanceView: { + serializedName: "instanceView", type: { - name: "String" + name: "Composite", + className: "RoleInstanceView" } } } } }; -export const GalleryList: coreClient.CompositeMapper = { +export const RoleInstanceNetworkProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryList", + className: "RoleInstanceNetworkProfile", modelProperties: { - value: { - serializedName: "value", - required: true, + networkInterfaces: { + serializedName: "networkInterfaces", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Gallery" + className: "SubResource" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const GalleryImageList: coreClient.CompositeMapper = { +export const RoleInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryImageList", + className: "RoleInstanceView", modelProperties: { - value: { - serializedName: "value", - required: true, + platformUpdateDomain: { + serializedName: "platformUpdateDomain", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryImage" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + platformFaultDomain: { + serializedName: "platformFaultDomain", + readOnly: true, + type: { + name: "Number" + } + }, + privateId: { + serializedName: "privateId", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const GalleryImageVersionList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryImageVersionList", - modelProperties: { - value: { - serializedName: "value", - required: true, + }, + statuses: { + serializedName: "statuses", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "GalleryImageVersion" + className: "ResourceInstanceViewStatus" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const GalleryApplicationList: coreClient.CompositeMapper = { +export const ResourceInstanceViewStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryApplicationList", + className: "ResourceInstanceViewStatus", modelProperties: { - value: { - serializedName: "value", - required: true, + code: { + serializedName: "code", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryApplication" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + displayStatus: { + serializedName: "displayStatus", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, type: { name: "String" } + }, + time: { + serializedName: "time", + readOnly: true, + type: { + name: "DateTime" + } + }, + level: { + serializedName: "level", + type: { + name: "Enum", + allowedValues: ["Info", "Warning", "Error"] + } } } } }; -export const GalleryApplicationVersionList: coreClient.CompositeMapper = { +export const RoleInstanceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryApplicationVersionList", + className: "RoleInstanceListResult", modelProperties: { value: { serializedName: "value", @@ -8981,7 +9434,7 @@ export const GalleryApplicationVersionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryApplicationVersion" + className: "RoleInstance" } } } @@ -8996,105 +9449,92 @@ export const GalleryApplicationVersionList: coreClient.CompositeMapper = { } }; -export const SharingUpdate: coreClient.CompositeMapper = { +export const CloudServiceRole: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharingUpdate", + className: "CloudServiceRole", modelProperties: { - operationType: { - serializedName: "operationType", - required: true, + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - groups: { - serializedName: "groups", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharingProfileGroup" - } - } + name: "String" } - } - } - } -}; - -export const SharedGalleryList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SharedGalleryList", - modelProperties: { - value: { - serializedName: "value", - required: true, + }, + type: { + serializedName: "type", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedGallery" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "CloudServiceRoleSku" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CloudServiceRoleProperties" + } } } } }; -export const PirResource: coreClient.CompositeMapper = { +export const CloudServiceRoleSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PirResource", + className: "CloudServiceRoleSku", modelProperties: { name: { serializedName: "name", - readOnly: true, type: { name: "String" } }, - location: { - serializedName: "location", - readOnly: true, + tier: { + serializedName: "tier", type: { name: "String" } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } } } } }; -export const SharedGalleryImageList: coreClient.CompositeMapper = { +export const CloudServiceRoleProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedGalleryImageList", + className: "CloudServiceRoleProperties", modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedGalleryImage" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + uniqueId: { + serializedName: "uniqueId", + readOnly: true, type: { name: "String" } @@ -9103,10 +9543,10 @@ export const SharedGalleryImageList: coreClient.CompositeMapper = { } }; -export const SharedGalleryImageVersionList: coreClient.CompositeMapper = { +export const CloudServiceRoleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedGalleryImageVersionList", + className: "CloudServiceRoleListResult", modelProperties: { value: { serializedName: "value", @@ -9116,7 +9556,7 @@ export const SharedGalleryImageVersionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharedGalleryImageVersion" + className: "CloudServiceRole" } } } @@ -9131,20 +9571,20 @@ export const SharedGalleryImageVersionList: coreClient.CompositeMapper = { } }; -export const PirCommunityGalleryResource: coreClient.CompositeMapper = { +export const CloudService: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PirCommunityGalleryResource", + className: "CloudService", modelProperties: { - name: { - serializedName: "name", + id: { + serializedName: "id", readOnly: true, type: { name: "String" } }, - location: { - serializedName: "location", + name: { + serializedName: "name", readOnly: true, type: { name: "String" @@ -9157,135 +9597,174 @@ export const PirCommunityGalleryResource: coreClient.CompositeMapper = { name: "String" } }, - uniqueId: { - serializedName: "identifier.uniqueId", + location: { + serializedName: "location", + required: true, type: { name: "String" } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CloudServiceProperties" + } } } } }; -export const RoleInstance: coreClient.CompositeMapper = { +export const CloudServiceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleInstance", + className: "CloudServiceProperties", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + packageUrl: { + serializedName: "packageUrl", type: { name: "String" } }, - name: { - serializedName: "name", - readOnly: true, + configuration: { + serializedName: "configuration", type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + configurationUrl: { + serializedName: "configurationUrl", type: { name: "String" } }, - location: { - serializedName: "location", - readOnly: true, + startCloudService: { + serializedName: "startCloudService", + type: { + name: "Boolean" + } + }, + allowModelOverride: { + serializedName: "allowModelOverride", + type: { + name: "Boolean" + } + }, + upgradeMode: { + serializedName: "upgradeMode", type: { name: "String" } }, - tags: { - serializedName: "tags", - readOnly: true, + roleProfile: { + serializedName: "roleProfile", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "CloudServiceRoleProfile" } }, - sku: { - serializedName: "sku", + osProfile: { + serializedName: "osProfile", type: { name: "Composite", - className: "InstanceSku" + className: "CloudServiceOsProfile" } }, - properties: { - serializedName: "properties", + networkProfile: { + serializedName: "networkProfile", type: { name: "Composite", - className: "RoleInstanceProperties" + className: "CloudServiceNetworkProfile" + } + }, + extensionProfile: { + serializedName: "extensionProfile", + type: { + name: "Composite", + className: "CloudServiceExtensionProfile" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + uniqueId: { + serializedName: "uniqueId", + readOnly: true, + type: { + name: "String" } } } } }; -export const InstanceSku: coreClient.CompositeMapper = { +export const CloudServiceRoleProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceSku", + className: "CloudServiceRoleProfile", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", - readOnly: true, + roles: { + serializedName: "roles", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudServiceRoleProfileProperties" + } + } } } } } }; -export const RoleInstanceProperties: coreClient.CompositeMapper = { +export const CloudServiceRoleProfileProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleInstanceProperties", + className: "CloudServiceRoleProfileProperties", modelProperties: { - networkProfile: { - serializedName: "networkProfile", + name: { + serializedName: "name", type: { - name: "Composite", - className: "RoleInstanceNetworkProfile" + name: "String" } }, - instanceView: { - serializedName: "instanceView", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "RoleInstanceView" + className: "CloudServiceRoleSku" } } } } }; -export const RoleInstanceNetworkProfile: coreClient.CompositeMapper = { +export const CloudServiceOsProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleInstanceNetworkProfile", + className: "CloudServiceOsProfile", modelProperties: { - networkInterfaces: { - serializedName: "networkInterfaces", - readOnly: true, + secrets: { + serializedName: "secrets", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResource" + className: "CloudServiceVaultSecretGroup" } } } @@ -9294,207 +9773,172 @@ export const RoleInstanceNetworkProfile: coreClient.CompositeMapper = { } }; -export const RoleInstanceView: coreClient.CompositeMapper = { +export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleInstanceView", + className: "CloudServiceVaultSecretGroup", modelProperties: { - platformUpdateDomain: { - serializedName: "platformUpdateDomain", - readOnly: true, + sourceVault: { + serializedName: "sourceVault", type: { - name: "Number" + name: "Composite", + className: "SubResource" } }, - platformFaultDomain: { - serializedName: "platformFaultDomain", - readOnly: true, + vaultCertificates: { + serializedName: "vaultCertificates", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudServiceVaultCertificate" + } + } } - }, - privateId: { - serializedName: "privateId", - readOnly: true, + } + } + } +}; + +export const CloudServiceVaultCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudServiceVaultCertificate", + modelProperties: { + certificateUrl: { + serializedName: "certificateUrl", type: { name: "String" } - }, - statuses: { - serializedName: "statuses", - readOnly: true, + } + } + } +}; + +export const CloudServiceNetworkProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudServiceNetworkProfile", + modelProperties: { + loadBalancerConfigurations: { + serializedName: "loadBalancerConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourceInstanceViewStatus" + className: "LoadBalancerConfiguration" } } } + }, + swappableCloudService: { + serializedName: "swappableCloudService", + type: { + name: "Composite", + className: "SubResource" + } } } } }; -export const ResourceInstanceViewStatus: coreClient.CompositeMapper = { +export const LoadBalancerConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceInstanceViewStatus", + className: "LoadBalancerConfiguration", modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String" - } - }, - displayStatus: { - serializedName: "displayStatus", - readOnly: true, + id: { + serializedName: "id", type: { name: "String" } }, - message: { - serializedName: "message", - readOnly: true, + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - time: { - serializedName: "time", - readOnly: true, - type: { - name: "DateTime" - } - }, - level: { - serializedName: "level", + properties: { + serializedName: "properties", type: { - name: "Enum", - allowedValues: ["Info", "Warning", "Error"] + name: "Composite", + className: "LoadBalancerConfigurationProperties" } } } } }; -export const RoleInstanceListResult: coreClient.CompositeMapper = { +export const LoadBalancerConfigurationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleInstanceListResult", + className: "LoadBalancerConfigurationProperties", modelProperties: { - value: { - serializedName: "value", + frontendIPConfigurations: { + serializedName: "frontendIPConfigurations", required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "RoleInstance" + className: "LoadBalancerFrontendIPConfiguration" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const CloudServiceRole: coreClient.CompositeMapper = { +export const LoadBalancerFrontendIPConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceRole", + className: "LoadBalancerFrontendIPConfiguration", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, name: { serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - location: { - serializedName: "location", - readOnly: true, + required: true, type: { name: "String" } }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "CloudServiceRoleSku" - } - }, properties: { serializedName: "properties", type: { name: "Composite", - className: "CloudServiceRoleProperties" + className: "LoadBalancerFrontendIPConfigurationProperties" } } } } }; -export const CloudServiceRoleSku: coreClient.CompositeMapper = { +export const LoadBalancerFrontendIPConfigurationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceRoleSku", + className: "LoadBalancerFrontendIPConfigurationProperties", modelProperties: { - name: { - serializedName: "name", + publicIPAddress: { + serializedName: "publicIPAddress", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - tier: { - serializedName: "tier", + subnet: { + serializedName: "subnet", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - capacity: { - serializedName: "capacity", - type: { - name: "Number" - } - } - } - } -}; - -export const CloudServiceRoleProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudServiceRoleProperties", - modelProperties: { - uniqueId: { - serializedName: "uniqueId", - readOnly: true, + privateIPAddress: { + serializedName: "privateIPAddress", type: { name: "String" } @@ -9503,164 +9947,139 @@ export const CloudServiceRoleProperties: coreClient.CompositeMapper = { } }; -export const CloudServiceRoleListResult: coreClient.CompositeMapper = { +export const CloudServiceExtensionProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceRoleListResult", + className: "CloudServiceExtensionProfile", modelProperties: { - value: { - serializedName: "value", - required: true, + extensions: { + serializedName: "extensions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "CloudServiceRole" + className: "Extension" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const CloudService: coreClient.CompositeMapper = { +export const Extension: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudService", + className: "Extension", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, name: { serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - location: { - serializedName: "location", - required: true, type: { name: "String" } }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, properties: { serializedName: "properties", type: { name: "Composite", - className: "CloudServiceProperties" + className: "CloudServiceExtensionProperties" } } } } }; -export const CloudServiceProperties: coreClient.CompositeMapper = { +export const CloudServiceExtensionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceProperties", + className: "CloudServiceExtensionProperties", modelProperties: { - packageUrl: { - serializedName: "packageUrl", + publisher: { + serializedName: "publisher", type: { name: "String" } }, - configuration: { - serializedName: "configuration", + type: { + serializedName: "type", type: { name: "String" } }, - configurationUrl: { - serializedName: "configurationUrl", + typeHandlerVersion: { + serializedName: "typeHandlerVersion", type: { name: "String" } }, - startCloudService: { - serializedName: "startCloudService", + autoUpgradeMinorVersion: { + serializedName: "autoUpgradeMinorVersion", type: { name: "Boolean" } }, - allowModelOverride: { - serializedName: "allowModelOverride", + settings: { + serializedName: "settings", type: { - name: "Boolean" + name: "String" } }, - upgradeMode: { - serializedName: "upgradeMode", + protectedSettings: { + serializedName: "protectedSettings", type: { name: "String" } }, - roleProfile: { - serializedName: "roleProfile", + protectedSettingsFromKeyVault: { + serializedName: "protectedSettingsFromKeyVault", type: { name: "Composite", - className: "CloudServiceRoleProfile" + className: "CloudServiceVaultAndSecretReference" } }, - osProfile: { - serializedName: "osProfile", + forceUpdateTag: { + serializedName: "forceUpdateTag", type: { - name: "Composite", - className: "CloudServiceOsProfile" + name: "String" } }, - networkProfile: { - serializedName: "networkProfile", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Composite", - className: "CloudServiceNetworkProfile" + name: "String" } }, - extensionProfile: { - serializedName: "extensionProfile", + rolesAppliedTo: { + serializedName: "rolesAppliedTo", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const CloudServiceVaultAndSecretReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudServiceVaultAndSecretReference", + modelProperties: { + sourceVault: { + serializedName: "sourceVault", type: { name: "Composite", - className: "CloudServiceExtensionProfile" - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" + className: "SubResource" } }, - uniqueId: { - serializedName: "uniqueId", - readOnly: true, + secretUrl: { + serializedName: "secretUrl", type: { name: "String" } @@ -9669,62 +10088,84 @@ export const CloudServiceProperties: coreClient.CompositeMapper = { } }; -export const CloudServiceRoleProfile: coreClient.CompositeMapper = { +export const CloudServiceUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceRoleProfile", + className: "CloudServiceUpdate", modelProperties: { - roles: { - serializedName: "roles", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CloudServiceRoleProfileProperties" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const CloudServiceRoleProfileProperties: coreClient.CompositeMapper = { +export const CloudServiceInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceRoleProfileProperties", + className: "CloudServiceInstanceView", modelProperties: { - name: { - serializedName: "name", + roleInstance: { + serializedName: "roleInstance", + type: { + name: "Composite", + className: "InstanceViewStatusesSummary" + } + }, + sdkVersion: { + serializedName: "sdkVersion", + readOnly: true, type: { name: "String" } }, - sku: { - serializedName: "sku", + privateIds: { + serializedName: "privateIds", + readOnly: true, type: { - name: "Composite", - className: "CloudServiceRoleSku" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + statuses: { + serializedName: "statuses", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceInstanceViewStatus" + } + } } } } } }; -export const CloudServiceOsProfile: coreClient.CompositeMapper = { +export const InstanceViewStatusesSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceOsProfile", + className: "InstanceViewStatusesSummary", modelProperties: { - secrets: { - serializedName: "secrets", + statusesSummary: { + serializedName: "statusesSummary", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "CloudServiceVaultSecretGroup" + className: "StatusCodeCount" } } } @@ -9733,41 +10174,49 @@ export const CloudServiceOsProfile: coreClient.CompositeMapper = { } }; -export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { +export const StatusCodeCount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceVaultSecretGroup", + className: "StatusCodeCount", modelProperties: { - sourceVault: { - serializedName: "sourceVault", + code: { + serializedName: "code", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - vaultCertificates: { - serializedName: "vaultCertificates", + count: { + serializedName: "count", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CloudServiceVaultCertificate" - } - } + name: "Number" } } } } }; -export const CloudServiceVaultCertificate: coreClient.CompositeMapper = { +export const CloudServiceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceVaultCertificate", + className: "CloudServiceListResult", modelProperties: { - certificateUrl: { - serializedName: "certificateUrl", + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudService" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -9776,93 +10225,107 @@ export const CloudServiceVaultCertificate: coreClient.CompositeMapper = { } }; -export const CloudServiceNetworkProfile: coreClient.CompositeMapper = { +export const RoleInstances: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceNetworkProfile", + className: "RoleInstances", modelProperties: { - loadBalancerConfigurations: { - serializedName: "loadBalancerConfigurations", + roleInstances: { + serializedName: "roleInstances", + required: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "LoadBalancerConfiguration" + name: "String" } } } - }, - swappableCloudService: { - serializedName: "swappableCloudService", - type: { - name: "Composite", - className: "SubResource" - } } } } }; -export const LoadBalancerConfiguration: coreClient.CompositeMapper = { +export const UpdateDomain: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LoadBalancerConfiguration", + className: "UpdateDomain", modelProperties: { id: { serializedName: "id", + readOnly: true, type: { name: "String" } }, name: { serializedName: "name", - required: true, + readOnly: true, type: { name: "String" } - }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "LoadBalancerConfigurationProperties" - } } } } }; -export const LoadBalancerConfigurationProperties: coreClient.CompositeMapper = { +export const UpdateDomainListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LoadBalancerConfigurationProperties", + className: "UpdateDomainListResult", modelProperties: { - frontendIPConfigurations: { - serializedName: "frontendIPConfigurations", + value: { + serializedName: "value", required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "LoadBalancerFrontendIPConfiguration" + className: "UpdateDomain" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const LoadBalancerFrontendIPConfiguration: coreClient.CompositeMapper = { +export const OSVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LoadBalancerFrontendIPConfiguration", + className: "OSVersion", modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, name: { serializedName: "name", - required: true, + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } @@ -9871,153 +10334,164 @@ export const LoadBalancerFrontendIPConfiguration: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "LoadBalancerFrontendIPConfigurationProperties" + className: "OSVersionProperties" } } } } }; -export const LoadBalancerFrontendIPConfigurationProperties: coreClient.CompositeMapper = { +export const OSVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LoadBalancerFrontendIPConfigurationProperties", + className: "OSVersionProperties", modelProperties: { - publicIPAddress: { - serializedName: "publicIPAddress", + family: { + serializedName: "family", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - subnet: { - serializedName: "subnet", + familyLabel: { + serializedName: "familyLabel", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" + } + }, + version: { + serializedName: "version", + readOnly: true, + type: { + name: "String" + } + }, + label: { + serializedName: "label", + readOnly: true, + type: { + name: "String" + } + }, + isDefault: { + serializedName: "isDefault", + readOnly: true, + type: { + name: "Boolean" } }, - privateIPAddress: { - serializedName: "privateIPAddress", + isActive: { + serializedName: "isActive", + readOnly: true, type: { - name: "String" + name: "Boolean" } } } } }; -export const CloudServiceExtensionProfile: coreClient.CompositeMapper = { +export const OSVersionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceExtensionProfile", + className: "OSVersionListResult", modelProperties: { - extensions: { - serializedName: "extensions", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Extension" + className: "OSVersion" } } } - } - } - } -}; - -export const Extension: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Extension", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } }, - properties: { - serializedName: "properties", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "CloudServiceExtensionProperties" + name: "String" } } } } }; -export const CloudServiceExtensionProperties: coreClient.CompositeMapper = { +export const OSFamily: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceExtensionProperties", + className: "OSFamily", modelProperties: { - publisher: { - serializedName: "publisher", - type: { - name: "String" - } - }, - type: { - serializedName: "type", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - typeHandlerVersion: { - serializedName: "typeHandlerVersion", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - autoUpgradeMinorVersion: { - serializedName: "autoUpgradeMinorVersion", - type: { - name: "Boolean" - } - }, - settings: { - serializedName: "settings", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - protectedSettings: { - serializedName: "protectedSettings", + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - protectedSettingsFromKeyVault: { - serializedName: "protectedSettingsFromKeyVault", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "CloudServiceVaultAndSecretReference" + className: "OSFamilyProperties" } - }, - forceUpdateTag: { - serializedName: "forceUpdateTag", + } + } + } +}; + +export const OSFamilyProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OSFamilyProperties", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "provisioningState", + label: { + serializedName: "label", readOnly: true, type: { name: "String" } }, - rolesAppliedTo: { - serializedName: "rolesAppliedTo", + versions: { + serializedName: "versions", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "OSVersionPropertiesBase" } } } @@ -10026,201 +10500,163 @@ export const CloudServiceExtensionProperties: coreClient.CompositeMapper = { } }; -export const CloudServiceVaultAndSecretReference: coreClient.CompositeMapper = { +export const OSVersionPropertiesBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceVaultAndSecretReference", + className: "OSVersionPropertiesBase", modelProperties: { - sourceVault: { - serializedName: "sourceVault", - type: { - name: "Composite", - className: "SubResource" - } - }, - secretUrl: { - serializedName: "secretUrl", + version: { + serializedName: "version", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const CloudServiceUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudServiceUpdate", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const CloudServiceInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudServiceInstanceView", - modelProperties: { - roleInstance: { - serializedName: "roleInstance", - type: { - name: "Composite", - className: "InstanceViewStatusesSummary" - } }, - sdkVersion: { - serializedName: "sdkVersion", + label: { + serializedName: "label", readOnly: true, type: { name: "String" } }, - privateIds: { - serializedName: "privateIds", + isDefault: { + serializedName: "isDefault", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - statuses: { - serializedName: "statuses", + isActive: { + serializedName: "isActive", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceInstanceViewStatus" - } - } + name: "Boolean" } } } } }; -export const InstanceViewStatusesSummary: coreClient.CompositeMapper = { +export const OSFamilyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceViewStatusesSummary", + className: "OSFamilyListResult", modelProperties: { - statusesSummary: { - serializedName: "statusesSummary", - readOnly: true, + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "StatusCodeCount" + className: "OSFamily" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const StatusCodeCount: coreClient.CompositeMapper = { +export const DiskRestorePointReplicationStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StatusCodeCount", + className: "DiskRestorePointReplicationStatus", modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String" - } - }, - count: { - serializedName: "count", - readOnly: true, + status: { + serializedName: "status", type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const CloudServiceListResult: coreClient.CompositeMapper = { +export const CommunityGalleryInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceListResult", + className: "CommunityGalleryInfo", modelProperties: { - value: { - serializedName: "value", - required: true, + publisherUri: { + serializedName: "publisherUri", + type: { + name: "String" + } + }, + publisherContact: { + serializedName: "publisherContact", + type: { + name: "String" + } + }, + eula: { + serializedName: "eula", + type: { + name: "String" + } + }, + publicNamePrefix: { + serializedName: "publicNamePrefix", + type: { + name: "String" + } + }, + communityGalleryEnabled: { + serializedName: "communityGalleryEnabled", + readOnly: true, + type: { + name: "Boolean" + } + }, + publicNames: { + serializedName: "publicNames", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "CloudService" + name: "String" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const RoleInstances: coreClient.CompositeMapper = { +export const GalleryArtifactSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleInstances", + className: "GalleryArtifactSource", modelProperties: { - roleInstances: { - serializedName: "roleInstances", - required: true, + managedImage: { + serializedName: "managedImage", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ManagedArtifact" } } } } }; -export const UpdateDomain: coreClient.CompositeMapper = { +export const ManagedArtifact: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateDomain", + className: "ManagedArtifact", modelProperties: { id: { serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, + required: true, type: { name: "String" } @@ -10229,149 +10665,225 @@ export const UpdateDomain: coreClient.CompositeMapper = { } }; -export const UpdateDomainListResult: coreClient.CompositeMapper = { +export const ImageReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateDomainListResult", + className: "ImageReference", modelProperties: { - value: { - serializedName: "value", - required: true, + ...SubResource.type.modelProperties, + publisher: { + serializedName: "publisher", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UpdateDomain" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + offer: { + serializedName: "offer", type: { name: "String" } - } - } - } -}; - -export const OSVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OSVersion", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, + }, + sku: { + serializedName: "sku", type: { name: "String" } }, - name: { - serializedName: "name", - readOnly: true, + version: { + serializedName: "version", type: { name: "String" } }, - type: { - serializedName: "type", + exactVersion: { + serializedName: "exactVersion", readOnly: true, type: { name: "String" } }, - location: { - serializedName: "location", - readOnly: true, + sharedGalleryImageId: { + serializedName: "sharedGalleryImageId", type: { name: "String" } }, - properties: { - serializedName: "properties", + communityGalleryImageId: { + serializedName: "communityGalleryImageId", type: { - name: "Composite", - className: "OSVersionProperties" + name: "String" } } } } }; -export const OSVersionProperties: coreClient.CompositeMapper = { +export const DiskEncryptionSetParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OSVersionProperties", + className: "DiskEncryptionSetParameters", modelProperties: { - family: { - serializedName: "family", - readOnly: true, + ...SubResource.type.modelProperties + } + } +}; + +export const VirtualMachineScaleSetIPConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetIPConfiguration", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - familyLabel: { - serializedName: "familyLabel", - readOnly: true, + subnet: { + serializedName: "properties.subnet", type: { - name: "String" + name: "Composite", + className: "ApiEntityReference" } }, - version: { - serializedName: "version", - readOnly: true, + primary: { + serializedName: "properties.primary", type: { - name: "String" + name: "Boolean" } }, - label: { - serializedName: "label", - readOnly: true, + publicIPAddressConfiguration: { + serializedName: "properties.publicIPAddressConfiguration", + type: { + name: "Composite", + className: "VirtualMachineScaleSetPublicIPAddressConfiguration" + } + }, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", type: { name: "String" } }, - isDefault: { - serializedName: "isDefault", - readOnly: true, + applicationGatewayBackendAddressPools: { + serializedName: "properties.applicationGatewayBackendAddressPools", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } }, - isActive: { - serializedName: "isActive", - readOnly: true, + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + loadBalancerBackendAddressPools: { + serializedName: "properties.loadBalancerBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + loadBalancerInboundNatPools: { + serializedName: "properties.loadBalancerInboundNatPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } } } } }; -export const OSVersionListResult: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetNetworkConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OSVersionListResult", + className: "VirtualMachineScaleSetNetworkConfiguration", modelProperties: { - value: { - serializedName: "value", + ...SubResource.type.modelProperties, + name: { + serializedName: "name", required: true, + type: { + name: "String" + } + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean" + } + }, + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", + type: { + name: "Boolean" + } + }, + enableFpga: { + serializedName: "properties.enableFpga", + type: { + name: "Boolean" + } + }, + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", + type: { + name: "Composite", + className: "SubResource" + } + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" + } + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "OSVersion" + className: "VirtualMachineScaleSetIPConfiguration" } } } }, - nextLink: { - serializedName: "nextLink", + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean" + } + }, + deleteOption: { + serializedName: "properties.deleteOption", type: { name: "String" } @@ -10380,243 +10892,212 @@ export const OSVersionListResult: coreClient.CompositeMapper = { } }; -export const OSFamily: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdateIPConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OSFamily", + className: "VirtualMachineScaleSetUpdateIPConfiguration", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, + ...SubResource.type.modelProperties, name: { serializedName: "name", - readOnly: true, type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + subnet: { + serializedName: "properties.subnet", type: { - name: "String" + name: "Composite", + className: "ApiEntityReference" } }, - location: { - serializedName: "location", - readOnly: true, + primary: { + serializedName: "properties.primary", type: { - name: "String" + name: "Boolean" } }, - properties: { - serializedName: "properties", + publicIPAddressConfiguration: { + serializedName: "properties.publicIPAddressConfiguration", type: { name: "Composite", - className: "OSFamilyProperties" - } - } - } - } -}; - -export const OSFamilyProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OSFamilyProperties", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" + className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration" } }, - label: { - serializedName: "label", - readOnly: true, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", type: { name: "String" } }, - versions: { - serializedName: "versions", - readOnly: true, + applicationGatewayBackendAddressPools: { + serializedName: "properties.applicationGatewayBackendAddressPools", type: { name: "Sequence", element: { type: { name: "Composite", - className: "OSVersionPropertiesBase" + className: "SubResource" } } } - } - } - } -}; - -export const OSVersionPropertiesBase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OSVersionPropertiesBase", - modelProperties: { - version: { - serializedName: "version", - readOnly: true, - type: { - name: "String" - } - }, - label: { - serializedName: "label", - readOnly: true, - type: { - name: "String" - } }, - isDefault: { - serializedName: "isDefault", - readOnly: true, + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } }, - isActive: { - serializedName: "isActive", - readOnly: true, - type: { - name: "Boolean" - } - } - } - } -}; - -export const OSFamilyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OSFamilyListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, + loadBalancerBackendAddressPools: { + serializedName: "properties.loadBalancerBackendAddressPools", type: { name: "Sequence", element: { type: { name: "Composite", - className: "OSFamily" + className: "SubResource" } } } }, - nextLink: { - serializedName: "nextLink", + loadBalancerInboundNatPools: { + serializedName: "properties.loadBalancerInboundNatPools", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } } } } }; -export const DiskRestorePointReplicationStatus: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdateNetworkConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskRestorePointReplicationStatus", + className: "VirtualMachineScaleSetUpdateNetworkConfiguration", modelProperties: { - status: { - serializedName: "status", + ...SubResource.type.modelProperties, + name: { + serializedName: "name", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } - } - } - } -}; - -export const CommunityGalleryInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CommunityGalleryInfo", - modelProperties: { - publisherUri: { - serializedName: "publisherUri", + }, + primary: { + serializedName: "properties.primary", type: { - name: "String" + name: "Boolean" } }, - publisherContact: { - serializedName: "publisherContact", + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", type: { - name: "String" + name: "Boolean" } }, - eula: { - serializedName: "eula", + enableFpga: { + serializedName: "properties.enableFpga", type: { - name: "String" + name: "Boolean" } }, - publicNamePrefix: { - serializedName: "publicNamePrefix", + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - communityGalleryEnabled: { - serializedName: "communityGalleryEnabled", - readOnly: true, + dnsSettings: { + serializedName: "properties.dnsSettings", type: { - name: "Boolean" + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" } }, - publicNames: { - serializedName: "publicNames", - readOnly: true, + ipConfigurations: { + serializedName: "properties.ipConfigurations", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetUpdateIPConfiguration" } } } + }, + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean" + } + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String" + } } } } }; -export const GalleryArtifactSource: coreClient.CompositeMapper = { +export const ManagedDiskParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryArtifactSource", + className: "ManagedDiskParameters", modelProperties: { - managedImage: { - serializedName: "managedImage", + ...SubResource.type.modelProperties, + storageAccountType: { + serializedName: "storageAccountType", + type: { + name: "String" + } + }, + diskEncryptionSet: { + serializedName: "diskEncryptionSet", type: { name: "Composite", - className: "ManagedArtifact" + className: "DiskEncryptionSetParameters" + } + }, + securityProfile: { + serializedName: "securityProfile", + type: { + name: "Composite", + className: "VMDiskSecurityProfile" } } } } }; -export const ManagedArtifact: coreClient.CompositeMapper = { +export const NetworkInterfaceReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedArtifact", + className: "NetworkInterfaceReference", modelProperties: { - id: { - serializedName: "id", - required: true, + ...SubResource.type.modelProperties, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean" + } + }, + deleteOption: { + serializedName: "properties.deleteOption", type: { name: "String" } @@ -10625,17 +11106,45 @@ export const ManagedArtifact: coreClient.CompositeMapper = { } }; -export const SubResourceWithColocationStatus: coreClient.CompositeMapper = { +export const VirtualMachineCaptureResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubResourceWithColocationStatus", + className: "VirtualMachineCaptureResult", modelProperties: { ...SubResource.type.modelProperties, - colocationStatus: { - serializedName: "colocationStatus", + schema: { + serializedName: "$schema", + readOnly: true, type: { - name: "Composite", - className: "InstanceViewStatus" + name: "String" + } + }, + contentVersion: { + serializedName: "contentVersion", + readOnly: true, + type: { + name: "String" + } + }, + parameters: { + serializedName: "parameters", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + resources: { + serializedName: "resources", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } } } } @@ -10680,496 +11189,424 @@ export const VirtualMachineImageResource: coreClient.CompositeMapper = { } }; -export const ImageReference: coreClient.CompositeMapper = { +export const SubResourceWithColocationStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageReference", + className: "SubResourceWithColocationStatus", modelProperties: { ...SubResource.type.modelProperties, - publisher: { - serializedName: "publisher", - type: { - name: "String" - } - }, - offer: { - serializedName: "offer", - type: { - name: "String" - } - }, - sku: { - serializedName: "sku", - type: { - name: "String" - } - }, - version: { - serializedName: "version", - type: { - name: "String" - } - }, - exactVersion: { - serializedName: "exactVersion", - readOnly: true, - type: { - name: "String" - } - }, - sharedGalleryImageId: { - serializedName: "sharedGalleryImageId", - type: { - name: "String" - } - }, - communityGalleryImageId: { - serializedName: "communityGalleryImageId", + colocationStatus: { + serializedName: "colocationStatus", type: { - name: "String" + name: "Composite", + className: "InstanceViewStatus" } } } } }; -export const DiskEncryptionSetParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiskEncryptionSetParameters", - modelProperties: { - ...SubResource.type.modelProperties - } - } -}; - -export const ManagedDiskParameters: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetExtension: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDiskParameters", + className: "VirtualMachineScaleSetExtension", modelProperties: { - ...SubResource.type.modelProperties, - storageAccountType: { - serializedName: "storageAccountType", + ...SubResourceReadOnly.type.modelProperties, + name: { + serializedName: "name", type: { name: "String" } }, - diskEncryptionSet: { - serializedName: "diskEncryptionSet", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Composite", - className: "DiskEncryptionSetParameters" + name: "String" } }, - securityProfile: { - serializedName: "securityProfile", + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", type: { - name: "Composite", - className: "VMDiskSecurityProfile" + name: "String" } - } - } - } -}; - -export const NetworkInterfaceReference: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkInterfaceReference", - modelProperties: { - ...SubResource.type.modelProperties, - primary: { - serializedName: "properties.primary", + }, + publisher: { + serializedName: "properties.publisher", type: { - name: "Boolean" + name: "String" } }, - deleteOption: { - serializedName: "properties.deleteOption", + typePropertiesType: { + serializedName: "properties.type", type: { name: "String" } - } - } - } -}; - -export const VirtualMachineScaleSetIPConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetIPConfiguration", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", - required: true, + }, + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", type: { name: "String" } }, - subnet: { - serializedName: "properties.subnet", + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", type: { - name: "Composite", - className: "ApiEntityReference" + name: "Boolean" } }, - primary: { - serializedName: "properties.primary", + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", type: { name: "Boolean" } }, - publicIPAddressConfiguration: { - serializedName: "properties.publicIPAddressConfiguration", + settings: { + serializedName: "properties.settings", type: { - name: "Composite", - className: "VirtualMachineScaleSetPublicIPAddressConfiguration" + name: "Dictionary", + value: { type: { name: "any" } } } }, - privateIPAddressVersion: { - serializedName: "properties.privateIPAddressVersion", + protectedSettings: { + serializedName: "properties.protectedSettings", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - applicationGatewayBackendAddressPools: { - serializedName: "properties.applicationGatewayBackendAddressPools", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } }, - applicationSecurityGroups: { - serializedName: "properties.applicationSecurityGroups", + provisionAfterExtensions: { + serializedName: "properties.provisionAfterExtensions", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SubResource" + name: "String" } } } }, - loadBalancerBackendAddressPools: { - serializedName: "properties.loadBalancerBackendAddressPools", + suppressFailures: { + serializedName: "properties.suppressFailures", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Boolean" } }, - loadBalancerInboundNatPools: { - serializedName: "properties.loadBalancerInboundNatPools", + protectedSettingsFromKeyVault: { + serializedName: "properties.protectedSettingsFromKeyVault", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const VirtualMachineScaleSetNetworkConfiguration: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetExtensionUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetNetworkConfiguration", + className: "VirtualMachineScaleSetExtensionUpdate", modelProperties: { - ...SubResource.type.modelProperties, + ...SubResourceReadOnly.type.modelProperties, name: { serializedName: "name", - required: true, + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", + type: { + name: "String" + } + }, + publisher: { + serializedName: "properties.publisher", type: { name: "String" } }, - primary: { - serializedName: "properties.primary", + typePropertiesType: { + serializedName: "properties.type", type: { - name: "Boolean" + name: "String" } }, - enableAcceleratedNetworking: { - serializedName: "properties.enableAcceleratedNetworking", + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", + type: { + name: "String" + } + }, + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", type: { name: "Boolean" } }, - enableFpga: { - serializedName: "properties.enableFpga", + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", type: { name: "Boolean" } }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", + settings: { + serializedName: "properties.settings", type: { - name: "Composite", - className: "SubResource" + name: "Dictionary", + value: { type: { name: "any" } } } }, - dnsSettings: { - serializedName: "properties.dnsSettings", + protectedSettings: { + serializedName: "properties.protectedSettings", type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" + name: "Dictionary", + value: { type: { name: "any" } } } }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + provisionAfterExtensions: { + serializedName: "properties.provisionAfterExtensions", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "VirtualMachineScaleSetIPConfiguration" + name: "String" } } } }, - enableIPForwarding: { - serializedName: "properties.enableIPForwarding", + suppressFailures: { + serializedName: "properties.suppressFailures", type: { name: "Boolean" } }, - deleteOption: { - serializedName: "properties.deleteOption", + protectedSettingsFromKeyVault: { + serializedName: "properties.protectedSettingsFromKeyVault", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const VirtualMachineCaptureResult: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVMExtension: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineCaptureResult", + className: "VirtualMachineScaleSetVMExtension", modelProperties: { - ...SubResource.type.modelProperties, - schema: { - serializedName: "$schema", + ...SubResourceReadOnly.type.modelProperties, + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - contentVersion: { - serializedName: "contentVersion", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - parameters: { - serializedName: "parameters", - readOnly: true, + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - resources: { - serializedName: "resources", - readOnly: true, + publisher: { + serializedName: "properties.publisher", type: { - name: "Sequence", - element: { - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } + name: "String" } - } - } - } -}; - -export const VirtualMachineScaleSetUpdateIPConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateIPConfiguration", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + }, + typePropertiesType: { + serializedName: "properties.type", type: { name: "String" } }, - subnet: { - serializedName: "properties.subnet", + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", type: { - name: "Composite", - className: "ApiEntityReference" + name: "String" } }, - primary: { - serializedName: "properties.primary", + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", type: { name: "Boolean" } }, - publicIPAddressConfiguration: { - serializedName: "properties.publicIPAddressConfiguration", + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration" + name: "Boolean" } }, - privateIPAddressVersion: { - serializedName: "properties.privateIPAddressVersion", + settings: { + serializedName: "properties.settings", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - applicationGatewayBackendAddressPools: { - serializedName: "properties.applicationGatewayBackendAddressPools", + protectedSettings: { + serializedName: "properties.protectedSettings", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Dictionary", + value: { type: { name: "any" } } } }, - applicationSecurityGroups: { - serializedName: "properties.applicationSecurityGroups", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } }, - loadBalancerBackendAddressPools: { - serializedName: "properties.loadBalancerBackendAddressPools", + instanceView: { + serializedName: "properties.instanceView", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Composite", + className: "VirtualMachineExtensionInstanceView" } }, - loadBalancerInboundNatPools: { - serializedName: "properties.loadBalancerInboundNatPools", + suppressFailures: { + serializedName: "properties.suppressFailures", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Boolean" + } + }, + protectedSettingsFromKeyVault: { + serializedName: "properties.protectedSettingsFromKeyVault", + type: { + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const VirtualMachineScaleSetUpdateNetworkConfiguration: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVMExtensionUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkConfiguration", + className: "VirtualMachineScaleSetVMExtensionUpdate", modelProperties: { - ...SubResource.type.modelProperties, + ...SubResourceReadOnly.type.modelProperties, name: { serializedName: "name", + readOnly: true, type: { name: "String" } }, - primary: { - serializedName: "properties.primary", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - enableAcceleratedNetworking: { - serializedName: "properties.enableAcceleratedNetworking", + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", type: { - name: "Boolean" + name: "String" } }, - enableFpga: { - serializedName: "properties.enableFpga", + publisher: { + serializedName: "properties.publisher", + type: { + name: "String" + } + }, + typePropertiesType: { + serializedName: "properties.type", + type: { + name: "String" + } + }, + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", + type: { + name: "String" + } + }, + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", type: { name: "Boolean" } }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", type: { - name: "Composite", - className: "SubResource" + name: "Boolean" } }, - dnsSettings: { - serializedName: "properties.dnsSettings", + settings: { + serializedName: "properties.settings", type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" + name: "Dictionary", + value: { type: { name: "any" } } } }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + protectedSettings: { + serializedName: "properties.protectedSettings", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateIPConfiguration" - } - } + name: "Dictionary", + value: { type: { name: "any" } } } }, - enableIPForwarding: { - serializedName: "properties.enableIPForwarding", + suppressFailures: { + serializedName: "properties.suppressFailures", type: { name: "Boolean" } }, - deleteOption: { - serializedName: "properties.deleteOption", + protectedSettingsFromKeyVault: { + serializedName: "properties.protectedSettingsFromKeyVault", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const AvailabilitySet: coreClient.CompositeMapper = { +export const VirtualMachineScaleSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailabilitySet", + className: "VirtualMachineScaleSet", modelProperties: { ...Resource.type.modelProperties, sku: { @@ -11179,250 +11616,142 @@ export const AvailabilitySet: coreClient.CompositeMapper = { className: "Sku" } }, - platformUpdateDomainCount: { - serializedName: "properties.platformUpdateDomainCount", + plan: { + serializedName: "plan", type: { - name: "Number" + name: "Composite", + className: "Plan" } }, - platformFaultDomainCount: { - serializedName: "properties.platformFaultDomainCount", + identity: { + serializedName: "identity", type: { - name: "Number" + name: "Composite", + className: "VirtualMachineScaleSetIdentity" } }, - virtualMachines: { - serializedName: "properties.virtualMachines", + zones: { + serializedName: "zones", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SubResource" + name: "String" } } } }, - proximityPlacementGroup: { - serializedName: "properties.proximityPlacementGroup", + extendedLocation: { + serializedName: "extendedLocation", type: { name: "Composite", - className: "SubResource" + className: "ExtendedLocation" } }, - statuses: { - serializedName: "properties.statuses", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } -}; - -export const ProximityPlacementGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProximityPlacementGroup", - modelProperties: { - ...Resource.type.modelProperties, - proximityPlacementGroupType: { - serializedName: "properties.proximityPlacementGroupType", + upgradePolicy: { + serializedName: "properties.upgradePolicy", type: { - name: "String" + name: "Composite", + className: "UpgradePolicy" } }, - virtualMachines: { - serializedName: "properties.virtualMachines", - readOnly: true, + automaticRepairsPolicy: { + serializedName: "properties.automaticRepairsPolicy", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceWithColocationStatus" - } - } + name: "Composite", + className: "AutomaticRepairsPolicy" } }, - virtualMachineScaleSets: { - serializedName: "properties.virtualMachineScaleSets", - readOnly: true, + virtualMachineProfile: { + serializedName: "properties.virtualMachineProfile", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceWithColocationStatus" - } - } + name: "Composite", + className: "VirtualMachineScaleSetVMProfile" } }, - availabilitySets: { - serializedName: "properties.availabilitySets", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceWithColocationStatus" - } - } + name: "String" } }, - colocationStatus: { - serializedName: "properties.colocationStatus", - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } - } -}; - -export const DedicatedHostGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHostGroup", - modelProperties: { - ...Resource.type.modelProperties, - zones: { - serializedName: "zones", + overprovision: { + serializedName: "properties.overprovision", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - platformFaultDomainCount: { - constraints: { - InclusiveMinimum: 1 - }, - serializedName: "properties.platformFaultDomainCount", + doNotRunExtensionsOnOverprovisionedVMs: { + serializedName: "properties.doNotRunExtensionsOnOverprovisionedVMs", type: { - name: "Number" + name: "Boolean" } }, - hosts: { - serializedName: "properties.hosts", + uniqueId: { + serializedName: "properties.uniqueId", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } + name: "String" } }, - instanceView: { - serializedName: "properties.instanceView", + singlePlacementGroup: { + serializedName: "properties.singlePlacementGroup", type: { - name: "Composite", - className: "DedicatedHostGroupInstanceView" + name: "Boolean" } }, - supportAutomaticPlacement: { - serializedName: "properties.supportAutomaticPlacement", + zoneBalance: { + serializedName: "properties.zoneBalance", type: { name: "Boolean" } - } - } - } -}; - -export const DedicatedHost: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHost", - modelProperties: { - ...Resource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } }, - platformFaultDomain: { - constraints: { - InclusiveMinimum: 0 - }, - serializedName: "properties.platformFaultDomain", + platformFaultDomainCount: { + serializedName: "properties.platformFaultDomainCount", type: { name: "Number" } }, - autoReplaceOnFailure: { - serializedName: "properties.autoReplaceOnFailure", - type: { - name: "Boolean" - } - }, - hostId: { - serializedName: "properties.hostId", - readOnly: true, + proximityPlacementGroup: { + serializedName: "properties.proximityPlacementGroup", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - virtualMachines: { - serializedName: "properties.virtualMachines", - readOnly: true, + hostGroup: { + serializedName: "properties.hostGroup", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } + name: "Composite", + className: "SubResource" } }, - licenseType: { - serializedName: "properties.licenseType", + additionalCapabilities: { + serializedName: "properties.additionalCapabilities", type: { - name: "Enum", - allowedValues: [ - "None", - "Windows_Server_Hybrid", - "Windows_Server_Perpetual" - ] + name: "Composite", + className: "AdditionalCapabilities" } }, - provisioningTime: { - serializedName: "properties.provisioningTime", - readOnly: true, + scaleInPolicy: { + serializedName: "properties.scaleInPolicy", type: { - name: "DateTime" + name: "Composite", + className: "ScaleInPolicy" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + orchestrationMode: { + serializedName: "properties.orchestrationMode", type: { name: "String" } }, - instanceView: { - serializedName: "properties.instanceView", + spotRestorePolicy: { + serializedName: "properties.spotRestorePolicy", type: { name: "Composite", - className: "DedicatedHostInstanceView" + className: "SpotRestorePolicy" } }, timeCreated: { @@ -11436,116 +11765,178 @@ export const DedicatedHost: coreClient.CompositeMapper = { } }; -export const SshPublicKeyResource: coreClient.CompositeMapper = { +export const RollingUpgradeStatusInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SshPublicKeyResource", + className: "RollingUpgradeStatusInfo", modelProperties: { ...Resource.type.modelProperties, - publicKey: { - serializedName: "properties.publicKey", + policy: { + serializedName: "properties.policy", type: { - name: "String" + name: "Composite", + className: "RollingUpgradePolicy" + } + }, + runningStatus: { + serializedName: "properties.runningStatus", + type: { + name: "Composite", + className: "RollingUpgradeRunningStatus" + } + }, + progress: { + serializedName: "properties.progress", + type: { + name: "Composite", + className: "RollingUpgradeProgressInfo" + } + }, + error: { + serializedName: "properties.error", + type: { + name: "Composite", + className: "ApiError" } } } } }; -export const VirtualMachineExtensionImage: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineExtensionImage", + className: "VirtualMachineScaleSetVM", modelProperties: { ...Resource.type.modelProperties, - operatingSystem: { - serializedName: "properties.operatingSystem", + instanceId: { + serializedName: "instanceId", + readOnly: true, type: { name: "String" } }, - computeRole: { - serializedName: "properties.computeRole", + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - handlerSchema: { - serializedName: "properties.handlerSchema", + plan: { + serializedName: "plan", type: { - name: "String" + name: "Composite", + className: "Plan" } }, - vmScaleSetEnabled: { - serializedName: "properties.vmScaleSetEnabled", + resources: { + serializedName: "resources", + readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineExtension" + } + } } }, - supportsMultipleExtensions: { - serializedName: "properties.supportsMultipleExtensions", + zones: { + serializedName: "zones", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + latestModelApplied: { + serializedName: "properties.latestModelApplied", + readOnly: true, type: { name: "Boolean" } - } - } - } -}; - -export const VirtualMachineExtension: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineExtension", - modelProperties: { - ...Resource.type.modelProperties, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", + }, + vmId: { + serializedName: "properties.vmId", + readOnly: true, type: { name: "String" } }, - publisher: { - serializedName: "properties.publisher", + instanceView: { + serializedName: "properties.instanceView", type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetVMInstanceView" } }, - typePropertiesType: { - serializedName: "properties.type", + hardwareProfile: { + serializedName: "properties.hardwareProfile", type: { - name: "String" + name: "Composite", + className: "HardwareProfile" } }, - typeHandlerVersion: { - serializedName: "properties.typeHandlerVersion", + storageProfile: { + serializedName: "properties.storageProfile", type: { - name: "String" + name: "Composite", + className: "StorageProfile" } }, - autoUpgradeMinorVersion: { - serializedName: "properties.autoUpgradeMinorVersion", + additionalCapabilities: { + serializedName: "properties.additionalCapabilities", type: { - name: "Boolean" + name: "Composite", + className: "AdditionalCapabilities" } }, - enableAutomaticUpgrade: { - serializedName: "properties.enableAutomaticUpgrade", + osProfile: { + serializedName: "properties.osProfile", type: { - name: "Boolean" + name: "Composite", + className: "OSProfile" } }, - settings: { - serializedName: "properties.settings", + securityProfile: { + serializedName: "properties.securityProfile", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Composite", + className: "SecurityProfile" } }, - protectedSettings: { - serializedName: "properties.protectedSettings", + networkProfile: { + serializedName: "properties.networkProfile", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Composite", + className: "NetworkProfile" + } + }, + networkProfileConfiguration: { + serializedName: "properties.networkProfileConfiguration", + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMNetworkProfileConfiguration" + } + }, + diagnosticsProfile: { + serializedName: "properties.diagnosticsProfile", + type: { + name: "Composite", + className: "DiagnosticsProfile" + } + }, + availabilitySet: { + serializedName: "properties.availabilitySet", + type: { + name: "Composite", + className: "SubResource" } }, provisioningState: { @@ -11555,24 +11946,30 @@ export const VirtualMachineExtension: coreClient.CompositeMapper = { name: "String" } }, - instanceView: { - serializedName: "properties.instanceView", + licenseType: { + serializedName: "properties.licenseType", type: { - name: "Composite", - className: "VirtualMachineExtensionInstanceView" + name: "String" } }, - suppressFailures: { - serializedName: "properties.suppressFailures", + modelDefinitionApplied: { + serializedName: "properties.modelDefinitionApplied", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", + protectionPolicy: { + serializedName: "properties.protectionPolicy", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Composite", + className: "VirtualMachineScaleSetVMProtectionPolicy" + } + }, + userData: { + serializedName: "properties.userData", + type: { + name: "String" } } } @@ -11779,41 +12176,81 @@ export const VirtualMachine: coreClient.CompositeMapper = { className: "ScheduledEventsProfile" } }, - userData: { - serializedName: "properties.userData", + userData: { + serializedName: "properties.userData", + type: { + name: "String" + } + }, + capacityReservation: { + serializedName: "properties.capacityReservation", + type: { + name: "Composite", + className: "CapacityReservationProfile" + } + }, + applicationProfile: { + serializedName: "properties.applicationProfile", + type: { + name: "Composite", + className: "ApplicationProfile" + } + }, + timeCreated: { + serializedName: "properties.timeCreated", + readOnly: true, + type: { + name: "DateTime" + } + } + } + } +}; + +export const VirtualMachineExtensionImage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineExtensionImage", + modelProperties: { + ...Resource.type.modelProperties, + operatingSystem: { + serializedName: "properties.operatingSystem", + type: { + name: "String" + } + }, + computeRole: { + serializedName: "properties.computeRole", type: { name: "String" } }, - capacityReservation: { - serializedName: "properties.capacityReservation", + handlerSchema: { + serializedName: "properties.handlerSchema", type: { - name: "Composite", - className: "CapacityReservationProfile" + name: "String" } }, - applicationProfile: { - serializedName: "properties.applicationProfile", + vmScaleSetEnabled: { + serializedName: "properties.vmScaleSetEnabled", type: { - name: "Composite", - className: "ApplicationProfile" + name: "Boolean" } }, - timeCreated: { - serializedName: "properties.timeCreated", - readOnly: true, + supportsMultipleExtensions: { + serializedName: "properties.supportsMultipleExtensions", type: { - name: "DateTime" + name: "Boolean" } } } } }; -export const VirtualMachineScaleSet: coreClient.CompositeMapper = { +export const AvailabilitySet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSet", + className: "AvailabilitySet", modelProperties: { ...Resource.type.modelProperties, sku: { @@ -11823,142 +12260,257 @@ export const VirtualMachineScaleSet: coreClient.CompositeMapper = { className: "Sku" } }, - plan: { - serializedName: "plan", + platformUpdateDomainCount: { + serializedName: "properties.platformUpdateDomainCount", type: { - name: "Composite", - className: "Plan" + name: "Number" } }, - identity: { - serializedName: "identity", + platformFaultDomainCount: { + serializedName: "properties.platformFaultDomainCount", type: { - name: "Composite", - className: "VirtualMachineScaleSetIdentity" + name: "Number" } }, - zones: { - serializedName: "zones", + virtualMachines: { + serializedName: "properties.virtualMachines", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "SubResource" } } } }, - extendedLocation: { - serializedName: "extendedLocation", + proximityPlacementGroup: { + serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "ExtendedLocation" + className: "SubResource" } }, - upgradePolicy: { - serializedName: "properties.upgradePolicy", + statuses: { + serializedName: "properties.statuses", + readOnly: true, type: { - name: "Composite", - className: "UpgradePolicy" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } + } + } + } + } +}; + +export const ProximityPlacementGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProximityPlacementGroup", + modelProperties: { + ...Resource.type.modelProperties, + proximityPlacementGroupType: { + serializedName: "properties.proximityPlacementGroupType", + type: { + name: "String" } }, - automaticRepairsPolicy: { - serializedName: "properties.automaticRepairsPolicy", + virtualMachines: { + serializedName: "properties.virtualMachines", + readOnly: true, type: { - name: "Composite", - className: "AutomaticRepairsPolicy" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceWithColocationStatus" + } + } } }, - virtualMachineProfile: { - serializedName: "properties.virtualMachineProfile", + virtualMachineScaleSets: { + serializedName: "properties.virtualMachineScaleSets", + readOnly: true, type: { - name: "Composite", - className: "VirtualMachineScaleSetVMProfile" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceWithColocationStatus" + } + } } }, - provisioningState: { - serializedName: "properties.provisioningState", + availabilitySets: { + serializedName: "properties.availabilitySets", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceWithColocationStatus" + } + } } }, - overprovision: { - serializedName: "properties.overprovision", + colocationStatus: { + serializedName: "properties.colocationStatus", type: { - name: "Boolean" + name: "Composite", + className: "InstanceViewStatus" + } + } + } + } +}; + +export const DedicatedHostGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DedicatedHostGroup", + modelProperties: { + ...Resource.type.modelProperties, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - doNotRunExtensionsOnOverprovisionedVMs: { - serializedName: "properties.doNotRunExtensionsOnOverprovisionedVMs", + platformFaultDomainCount: { + constraints: { + InclusiveMinimum: 1 + }, + serializedName: "properties.platformFaultDomainCount", type: { - name: "Boolean" + name: "Number" } }, - uniqueId: { - serializedName: "properties.uniqueId", + hosts: { + serializedName: "properties.hosts", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } } }, - singlePlacementGroup: { - serializedName: "properties.singlePlacementGroup", + instanceView: { + serializedName: "properties.instanceView", type: { - name: "Boolean" + name: "Composite", + className: "DedicatedHostGroupInstanceView" } }, - zoneBalance: { - serializedName: "properties.zoneBalance", + supportAutomaticPlacement: { + serializedName: "properties.supportAutomaticPlacement", type: { name: "Boolean" } }, - platformFaultDomainCount: { - serializedName: "properties.platformFaultDomainCount", + additionalCapabilities: { + serializedName: "properties.additionalCapabilities", + type: { + name: "Composite", + className: "DedicatedHostGroupPropertiesAdditionalCapabilities" + } + } + } + } +}; + +export const DedicatedHost: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DedicatedHost", + modelProperties: { + ...Resource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + platformFaultDomain: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "properties.platformFaultDomain", type: { name: "Number" } }, - proximityPlacementGroup: { - serializedName: "properties.proximityPlacementGroup", + autoReplaceOnFailure: { + serializedName: "properties.autoReplaceOnFailure", type: { - name: "Composite", - className: "SubResource" + name: "Boolean" } }, - hostGroup: { - serializedName: "properties.hostGroup", + hostId: { + serializedName: "properties.hostId", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - additionalCapabilities: { - serializedName: "properties.additionalCapabilities", + virtualMachines: { + serializedName: "properties.virtualMachines", + readOnly: true, type: { - name: "Composite", - className: "AdditionalCapabilities" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } + } + }, + licenseType: { + serializedName: "properties.licenseType", + type: { + name: "Enum", + allowedValues: [ + "None", + "Windows_Server_Hybrid", + "Windows_Server_Perpetual" + ] } }, - scaleInPolicy: { - serializedName: "properties.scaleInPolicy", + provisioningTime: { + serializedName: "properties.provisioningTime", + readOnly: true, type: { - name: "Composite", - className: "ScaleInPolicy" + name: "DateTime" } }, - orchestrationMode: { - serializedName: "properties.orchestrationMode", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - spotRestorePolicy: { - serializedName: "properties.spotRestorePolicy", + instanceView: { + serializedName: "properties.instanceView", type: { name: "Composite", - className: "SpotRestorePolicy" + className: "DedicatedHostInstanceView" } }, timeCreated: { @@ -11972,6 +12524,22 @@ export const VirtualMachineScaleSet: coreClient.CompositeMapper = { } }; +export const SshPublicKeyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SshPublicKeyResource", + modelProperties: { + ...Resource.type.modelProperties, + publicKey: { + serializedName: "properties.publicKey", + type: { + name: "String" + } + } + } + } +}; + export const Image: coreClient.CompositeMapper = { type: { name: "Composite", @@ -12142,259 +12710,48 @@ export const CapacityReservation: coreClient.CompositeMapper = { serializedName: "properties.reservationId", readOnly: true, type: { - name: "String" - } - }, - virtualMachinesAssociated: { - serializedName: "properties.virtualMachinesAssociated", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } - } - }, - provisioningTime: { - serializedName: "properties.provisioningTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - instanceView: { - serializedName: "properties.instanceView", - type: { - name: "Composite", - className: "CapacityReservationInstanceView" - } - }, - timeCreated: { - serializedName: "properties.timeCreated", - readOnly: true, - type: { - name: "DateTime" - } - } - } - } -}; - -export const RollingUpgradeStatusInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RollingUpgradeStatusInfo", - modelProperties: { - ...Resource.type.modelProperties, - policy: { - serializedName: "properties.policy", - type: { - name: "Composite", - className: "RollingUpgradePolicy" - } - }, - runningStatus: { - serializedName: "properties.runningStatus", - type: { - name: "Composite", - className: "RollingUpgradeRunningStatus" - } - }, - progress: { - serializedName: "properties.progress", - type: { - name: "Composite", - className: "RollingUpgradeProgressInfo" - } - }, - error: { - serializedName: "properties.error", - type: { - name: "Composite", - className: "ApiError" - } - } - } - } -}; - -export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVM", - modelProperties: { - ...Resource.type.modelProperties, - instanceId: { - serializedName: "instanceId", - readOnly: true, - type: { - name: "String" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - plan: { - serializedName: "plan", - type: { - name: "Composite", - className: "Plan" - } - }, - resources: { - serializedName: "resources", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineExtension" - } - } - } - }, - zones: { - serializedName: "zones", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - latestModelApplied: { - serializedName: "properties.latestModelApplied", - readOnly: true, - type: { - name: "Boolean" - } - }, - vmId: { - serializedName: "properties.vmId", - readOnly: true, - type: { - name: "String" - } - }, - instanceView: { - serializedName: "properties.instanceView", - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMInstanceView" - } - }, - hardwareProfile: { - serializedName: "properties.hardwareProfile", - type: { - name: "Composite", - className: "HardwareProfile" - } - }, - storageProfile: { - serializedName: "properties.storageProfile", - type: { - name: "Composite", - className: "StorageProfile" - } - }, - additionalCapabilities: { - serializedName: "properties.additionalCapabilities", - type: { - name: "Composite", - className: "AdditionalCapabilities" - } - }, - osProfile: { - serializedName: "properties.osProfile", - type: { - name: "Composite", - className: "OSProfile" - } - }, - securityProfile: { - serializedName: "properties.securityProfile", - type: { - name: "Composite", - className: "SecurityProfile" - } - }, - networkProfile: { - serializedName: "properties.networkProfile", - type: { - name: "Composite", - className: "NetworkProfile" - } - }, - networkProfileConfiguration: { - serializedName: "properties.networkProfileConfiguration", - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMNetworkProfileConfiguration" - } - }, - diagnosticsProfile: { - serializedName: "properties.diagnosticsProfile", - type: { - name: "Composite", - className: "DiagnosticsProfile" - } - }, - availabilitySet: { - serializedName: "properties.availabilitySet", - type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + virtualMachinesAssociated: { + serializedName: "properties.virtualMachinesAssociated", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } } }, - licenseType: { - serializedName: "properties.licenseType", + provisioningTime: { + serializedName: "properties.provisioningTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - modelDefinitionApplied: { - serializedName: "properties.modelDefinitionApplied", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - protectionPolicy: { - serializedName: "properties.protectionPolicy", + instanceView: { + serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineScaleSetVMProtectionPolicy" + className: "CapacityReservationInstanceView" } }, - userData: { - serializedName: "properties.userData", + timeCreated: { + serializedName: "properties.timeCreated", + readOnly: true, type: { - name: "String" + name: "DateTime" } } } @@ -12730,12 +13087,6 @@ export const Disk: coreClient.CompositeMapper = { type: { name: "String" } - }, - dataAccessAuthMode: { - serializedName: "properties.dataAccessAuthMode", - type: { - name: "String" - } } } } @@ -12899,12 +13250,6 @@ export const Snapshot: coreClient.CompositeMapper = { type: { name: "Number" } - }, - dataAccessAuthMode: { - serializedName: "properties.dataAccessAuthMode", - type: { - name: "String" - } } } } @@ -13177,12 +13522,6 @@ export const GalleryImage: coreClient.CompositeMapper = { } } } - }, - architecture: { - serializedName: "properties.architecture", - type: { - name: "String" - } } } } @@ -13304,10 +13643,10 @@ export const GalleryApplicationVersion: coreClient.CompositeMapper = { } }; -export const AvailabilitySetUpdate: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailabilitySetUpdate", + className: "VirtualMachineScaleSetUpdate", modelProperties: { ...UpdateResource.type.modelProperties, sku: { @@ -13317,214 +13656,78 @@ export const AvailabilitySetUpdate: coreClient.CompositeMapper = { className: "Sku" } }, - platformUpdateDomainCount: { - serializedName: "properties.platformUpdateDomainCount", - type: { - name: "Number" - } - }, - platformFaultDomainCount: { - serializedName: "properties.platformFaultDomainCount", - type: { - name: "Number" - } - }, - virtualMachines: { - serializedName: "properties.virtualMachines", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - proximityPlacementGroup: { - serializedName: "properties.proximityPlacementGroup", + plan: { + serializedName: "plan", type: { name: "Composite", - className: "SubResource" + className: "Plan" } }, - statuses: { - serializedName: "properties.statuses", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } -}; - -export const ProximityPlacementGroupUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProximityPlacementGroupUpdate", - modelProperties: { - ...UpdateResource.type.modelProperties - } - } -}; - -export const DedicatedHostGroupUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHostGroupUpdate", - modelProperties: { - ...UpdateResource.type.modelProperties, - zones: { - serializedName: "zones", + identity: { + serializedName: "identity", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "VirtualMachineScaleSetIdentity" } }, - platformFaultDomainCount: { - constraints: { - InclusiveMinimum: 1 - }, - serializedName: "properties.platformFaultDomainCount", + upgradePolicy: { + serializedName: "properties.upgradePolicy", type: { - name: "Number" + name: "Composite", + className: "UpgradePolicy" } }, - hosts: { - serializedName: "properties.hosts", - readOnly: true, + automaticRepairsPolicy: { + serializedName: "properties.automaticRepairsPolicy", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } + name: "Composite", + className: "AutomaticRepairsPolicy" } }, - instanceView: { - serializedName: "properties.instanceView", + virtualMachineProfile: { + serializedName: "properties.virtualMachineProfile", type: { name: "Composite", - className: "DedicatedHostGroupInstanceView" + className: "VirtualMachineScaleSetUpdateVMProfile" } }, - supportAutomaticPlacement: { - serializedName: "properties.supportAutomaticPlacement", + overprovision: { + serializedName: "properties.overprovision", type: { name: "Boolean" } - } - } - } -}; - -export const DedicatedHostUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHostUpdate", - modelProperties: { - ...UpdateResource.type.modelProperties, - platformFaultDomain: { - constraints: { - InclusiveMinimum: 0 - }, - serializedName: "properties.platformFaultDomain", - type: { - name: "Number" - } }, - autoReplaceOnFailure: { - serializedName: "properties.autoReplaceOnFailure", + doNotRunExtensionsOnOverprovisionedVMs: { + serializedName: "properties.doNotRunExtensionsOnOverprovisionedVMs", type: { name: "Boolean" } }, - hostId: { - serializedName: "properties.hostId", - readOnly: true, - type: { - name: "String" - } - }, - virtualMachines: { - serializedName: "properties.virtualMachines", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } - } - }, - licenseType: { - serializedName: "properties.licenseType", - type: { - name: "Enum", - allowedValues: [ - "None", - "Windows_Server_Hybrid", - "Windows_Server_Perpetual" - ] - } - }, - provisioningTime: { - serializedName: "properties.provisioningTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + singlePlacementGroup: { + serializedName: "properties.singlePlacementGroup", type: { - name: "String" + name: "Boolean" } }, - instanceView: { - serializedName: "properties.instanceView", + additionalCapabilities: { + serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "DedicatedHostInstanceView" + className: "AdditionalCapabilities" } }, - timeCreated: { - serializedName: "properties.timeCreated", - readOnly: true, + scaleInPolicy: { + serializedName: "properties.scaleInPolicy", type: { - name: "DateTime" - } - } - } - } -}; - -export const SshPublicKeyUpdateResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SshPublicKeyUpdateResource", - modelProperties: { - ...UpdateResource.type.modelProperties, - publicKey: { - serializedName: "properties.publicKey", + name: "Composite", + className: "ScaleInPolicy" + } + }, + proximityPlacementGroup: { + serializedName: "properties.proximityPlacementGroup", type: { - name: "String" + name: "Composite", + className: "SubResource" } } } @@ -13604,43 +13807,6 @@ export const VirtualMachineExtensionUpdate: coreClient.CompositeMapper = { } }; -export const ImageUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImageUpdate", - modelProperties: { - ...UpdateResource.type.modelProperties, - sourceVirtualMachine: { - serializedName: "properties.sourceVirtualMachine", - type: { - name: "Composite", - className: "SubResource" - } - }, - storageProfile: { - serializedName: "properties.storageProfile", - type: { - name: "Composite", - className: "ImageStorageProfile" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - hyperVGeneration: { - serializedName: "properties.hyperVGeneration", - type: { - name: "String" - } - } - } - } -}; - export const VirtualMachineUpdate: coreClient.CompositeMapper = { type: { name: "Composite", @@ -13852,115 +14018,105 @@ export const VirtualMachineUpdate: coreClient.CompositeMapper = { } }; -export const RestorePointCollectionUpdate: coreClient.CompositeMapper = { +export const AvailabilitySetUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePointCollectionUpdate", + className: "AvailabilitySetUpdate", modelProperties: { ...UpdateResource.type.modelProperties, - source: { - serializedName: "properties.source", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "RestorePointCollectionSourceProperties" + className: "Sku" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + platformUpdateDomainCount: { + serializedName: "properties.platformUpdateDomainCount", type: { - name: "String" + name: "Number" } }, - restorePointCollectionId: { - serializedName: "properties.restorePointCollectionId", - readOnly: true, + platformFaultDomainCount: { + serializedName: "properties.platformFaultDomainCount", type: { - name: "String" + name: "Number" } }, - restorePoints: { - serializedName: "properties.restorePoints", - readOnly: true, + virtualMachines: { + serializedName: "properties.virtualMachines", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RestorePoint" + className: "SubResource" } } } - } - } - } -}; - -export const CapacityReservationGroupUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationGroupUpdate", - modelProperties: { - ...UpdateResource.type.modelProperties, - capacityReservations: { - serializedName: "properties.capacityReservations", - readOnly: true, + }, + proximityPlacementGroup: { + serializedName: "properties.proximityPlacementGroup", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } + name: "Composite", + className: "SubResource" } }, - virtualMachinesAssociated: { - serializedName: "properties.virtualMachinesAssociated", + statuses: { + serializedName: "properties.statuses", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResourceReadOnly" + className: "InstanceViewStatus" } } } - }, - instanceView: { - serializedName: "properties.instanceView", - type: { - name: "Composite", - className: "CapacityReservationGroupInstanceView" - } } } } }; -export const CapacityReservationUpdate: coreClient.CompositeMapper = { +export const ProximityPlacementGroupUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CapacityReservationUpdate", + className: "ProximityPlacementGroupUpdate", + modelProperties: { + ...UpdateResource.type.modelProperties + } + } +}; + +export const DedicatedHostGroupUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DedicatedHostGroupUpdate", modelProperties: { ...UpdateResource.type.modelProperties, - sku: { - serializedName: "sku", + zones: { + serializedName: "zones", type: { - name: "Composite", - className: "Sku" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - reservationId: { - serializedName: "properties.reservationId", - readOnly: true, + platformFaultDomainCount: { + constraints: { + InclusiveMinimum: 1 + }, + serializedName: "properties.platformFaultDomainCount", type: { - name: "String" + name: "Number" } }, - virtualMachinesAssociated: { - serializedName: "properties.virtualMachinesAssociated", + hosts: { + serializedName: "properties.hosts", readOnly: true, type: { name: "Sequence", @@ -13972,201 +14128,87 @@ export const CapacityReservationUpdate: coreClient.CompositeMapper = { } } }, - provisioningTime: { - serializedName: "properties.provisioningTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - instanceView: { - serializedName: "properties.instanceView", - type: { - name: "Composite", - className: "CapacityReservationInstanceView" - } - }, - timeCreated: { - serializedName: "properties.timeCreated", - readOnly: true, - type: { - name: "DateTime" - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdate", - modelProperties: { - ...UpdateResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - plan: { - serializedName: "plan", - type: { - name: "Composite", - className: "Plan" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "VirtualMachineScaleSetIdentity" - } - }, - upgradePolicy: { - serializedName: "properties.upgradePolicy", - type: { - name: "Composite", - className: "UpgradePolicy" - } - }, - automaticRepairsPolicy: { - serializedName: "properties.automaticRepairsPolicy", - type: { - name: "Composite", - className: "AutomaticRepairsPolicy" - } - }, - virtualMachineProfile: { - serializedName: "properties.virtualMachineProfile", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateVMProfile" - } - }, - overprovision: { - serializedName: "properties.overprovision", - type: { - name: "Boolean" - } - }, - doNotRunExtensionsOnOverprovisionedVMs: { - serializedName: "properties.doNotRunExtensionsOnOverprovisionedVMs", - type: { - name: "Boolean" - } - }, - singlePlacementGroup: { - serializedName: "properties.singlePlacementGroup", - type: { - name: "Boolean" - } - }, - additionalCapabilities: { - serializedName: "properties.additionalCapabilities", + instanceView: { + serializedName: "properties.instanceView", type: { name: "Composite", - className: "AdditionalCapabilities" + className: "DedicatedHostGroupInstanceView" } }, - scaleInPolicy: { - serializedName: "properties.scaleInPolicy", + supportAutomaticPlacement: { + serializedName: "properties.supportAutomaticPlacement", type: { - name: "Composite", - className: "ScaleInPolicy" + name: "Boolean" } }, - proximityPlacementGroup: { - serializedName: "properties.proximityPlacementGroup", + additionalCapabilities: { + serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "SubResource" + className: "DedicatedHostGroupPropertiesAdditionalCapabilities" } } } } }; -export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { +export const DedicatedHostUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineRunCommandUpdate", + className: "DedicatedHostUpdate", modelProperties: { ...UpdateResource.type.modelProperties, - source: { - serializedName: "properties.source", + platformFaultDomain: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "properties.platformFaultDomain", type: { - name: "Composite", - className: "VirtualMachineRunCommandScriptSource" + name: "Number" } }, - parameters: { - serializedName: "properties.parameters", + autoReplaceOnFailure: { + serializedName: "properties.autoReplaceOnFailure", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RunCommandInputParameter" - } - } + name: "Boolean" } }, - protectedParameters: { - serializedName: "properties.protectedParameters", + hostId: { + serializedName: "properties.hostId", + readOnly: true, + type: { + name: "String" + } + }, + virtualMachines: { + serializedName: "properties.virtualMachines", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "RunCommandInputParameter" + className: "SubResourceReadOnly" } } } }, - asyncExecution: { - defaultValue: false, - serializedName: "properties.asyncExecution", - type: { - name: "Boolean" - } - }, - runAsUser: { - serializedName: "properties.runAsUser", - type: { - name: "String" - } - }, - runAsPassword: { - serializedName: "properties.runAsPassword", - type: { - name: "String" - } - }, - timeoutInSeconds: { - serializedName: "properties.timeoutInSeconds", - type: { - name: "Number" - } - }, - outputBlobUri: { - serializedName: "properties.outputBlobUri", + licenseType: { + serializedName: "properties.licenseType", type: { - name: "String" + name: "Enum", + allowedValues: [ + "None", + "Windows_Server_Hybrid", + "Windows_Server_Perpetual" + ] } }, - errorBlobUri: { - serializedName: "properties.errorBlobUri", + provisioningTime: { + serializedName: "properties.provisioningTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, provisioningState: { @@ -14180,185 +14222,198 @@ export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineRunCommandInstanceView" + className: "DedicatedHostInstanceView" + } + }, + timeCreated: { + serializedName: "properties.timeCreated", + readOnly: true, + type: { + name: "DateTime" } } } } }; -export const VirtualMachineScaleSetExtension: coreClient.CompositeMapper = { +export const SshPublicKeyUpdateResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetExtension", + className: "SshPublicKeyUpdateResource", modelProperties: { - ...SubResourceReadOnly.type.modelProperties, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, + ...UpdateResource.type.modelProperties, + publicKey: { + serializedName: "properties.publicKey", type: { name: "String" } - }, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", + } + } + } +}; + +export const ImageUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageUpdate", + modelProperties: { + ...UpdateResource.type.modelProperties, + sourceVirtualMachine: { + serializedName: "properties.sourceVirtualMachine", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - publisher: { - serializedName: "properties.publisher", + storageProfile: { + serializedName: "properties.storageProfile", type: { - name: "String" + name: "Composite", + className: "ImageStorageProfile" } }, - typePropertiesType: { - serializedName: "properties.type", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - typeHandlerVersion: { - serializedName: "properties.typeHandlerVersion", + hyperVGeneration: { + serializedName: "properties.hyperVGeneration", type: { name: "String" } - }, - autoUpgradeMinorVersion: { - serializedName: "properties.autoUpgradeMinorVersion", - type: { - name: "Boolean" - } - }, - enableAutomaticUpgrade: { - serializedName: "properties.enableAutomaticUpgrade", - type: { - name: "Boolean" - } - }, - settings: { - serializedName: "properties.settings", + } + } + } +}; + +export const RestorePointCollectionUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorePointCollectionUpdate", + modelProperties: { + ...UpdateResource.type.modelProperties, + source: { + serializedName: "properties.source", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Composite", + className: "RestorePointCollectionSourceProperties" } }, - protectedSettings: { - serializedName: "properties.protectedSettings", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + restorePointCollectionId: { + serializedName: "properties.restorePointCollectionId", readOnly: true, type: { name: "String" } }, - provisionAfterExtensions: { - serializedName: "properties.provisionAfterExtensions", + restorePoints: { + serializedName: "properties.restorePoints", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "RestorePoint" } } } - }, - suppressFailures: { - serializedName: "properties.suppressFailures", - type: { - name: "Boolean" - } - }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } } } } }; -export const VirtualMachineScaleSetExtensionUpdate: coreClient.CompositeMapper = { +export const CapacityReservationGroupUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetExtensionUpdate", + className: "CapacityReservationGroupUpdate", modelProperties: { - ...SubResourceReadOnly.type.modelProperties, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", + ...UpdateResource.type.modelProperties, + capacityReservations: { + serializedName: "properties.capacityReservations", readOnly: true, type: { - name: "String" - } - }, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", - type: { - name: "String" - } - }, - publisher: { - serializedName: "properties.publisher", - type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } } }, - typePropertiesType: { - serializedName: "properties.type", + virtualMachinesAssociated: { + serializedName: "properties.virtualMachinesAssociated", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } } }, - typeHandlerVersion: { - serializedName: "properties.typeHandlerVersion", + instanceView: { + serializedName: "properties.instanceView", type: { - name: "String" + name: "Composite", + className: "CapacityReservationGroupInstanceView" } - }, - autoUpgradeMinorVersion: { - serializedName: "properties.autoUpgradeMinorVersion", + } + } + } +}; + +export const CapacityReservationUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CapacityReservationUpdate", + modelProperties: { + ...UpdateResource.type.modelProperties, + sku: { + serializedName: "sku", type: { - name: "Boolean" + name: "Composite", + className: "Sku" } }, - enableAutomaticUpgrade: { - serializedName: "properties.enableAutomaticUpgrade", + reservationId: { + serializedName: "properties.reservationId", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - settings: { - serializedName: "properties.settings", + virtualMachinesAssociated: { + serializedName: "properties.virtualMachinesAssociated", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } } }, - protectedSettings: { - serializedName: "properties.protectedSettings", + provisioningTime: { + serializedName: "properties.provisioningTime", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "DateTime" } }, provisioningState: { @@ -14368,102 +14423,96 @@ export const VirtualMachineScaleSetExtensionUpdate: coreClient.CompositeMapper = name: "String" } }, - provisionAfterExtensions: { - serializedName: "properties.provisionAfterExtensions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - suppressFailures: { - serializedName: "properties.suppressFailures", + instanceView: { + serializedName: "properties.instanceView", type: { - name: "Boolean" + name: "Composite", + className: "CapacityReservationInstanceView" } }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", + timeCreated: { + serializedName: "properties.timeCreated", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "DateTime" } } } } }; -export const VirtualMachineScaleSetVMExtension: coreClient.CompositeMapper = { +export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMExtension", + className: "VirtualMachineRunCommandUpdate", modelProperties: { - ...SubResourceReadOnly.type.modelProperties, - name: { - serializedName: "name", - readOnly: true, + ...UpdateResource.type.modelProperties, + source: { + serializedName: "properties.source", type: { - name: "String" + name: "Composite", + className: "VirtualMachineRunCommandScriptSource" } }, - type: { - serializedName: "type", - readOnly: true, + parameters: { + serializedName: "properties.parameters", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandInputParameter" + } + } } }, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", + protectedParameters: { + serializedName: "properties.protectedParameters", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandInputParameter" + } + } } }, - publisher: { - serializedName: "properties.publisher", + asyncExecution: { + defaultValue: false, + serializedName: "properties.asyncExecution", type: { - name: "String" + name: "Boolean" } }, - typePropertiesType: { - serializedName: "properties.type", + runAsUser: { + serializedName: "properties.runAsUser", type: { name: "String" } }, - typeHandlerVersion: { - serializedName: "properties.typeHandlerVersion", + runAsPassword: { + serializedName: "properties.runAsPassword", type: { name: "String" } }, - autoUpgradeMinorVersion: { - serializedName: "properties.autoUpgradeMinorVersion", - type: { - name: "Boolean" - } - }, - enableAutomaticUpgrade: { - serializedName: "properties.enableAutomaticUpgrade", + timeoutInSeconds: { + serializedName: "properties.timeoutInSeconds", type: { - name: "Boolean" + name: "Number" } }, - settings: { - serializedName: "properties.settings", + outputBlobUri: { + serializedName: "properties.outputBlobUri", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - protectedSettings: { - serializedName: "properties.protectedSettings", + errorBlobUri: { + serializedName: "properties.errorBlobUri", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, provisioningState: { @@ -14477,46 +14526,29 @@ export const VirtualMachineScaleSetVMExtension: coreClient.CompositeMapper = { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineExtensionInstanceView" - } - }, - suppressFailures: { - serializedName: "properties.suppressFailures", - type: { - name: "Boolean" - } - }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", - type: { - name: "Dictionary", - value: { type: { name: "any" } } + className: "VirtualMachineRunCommandInstanceView" } } } } }; -export const VirtualMachineScaleSetVMExtensionUpdate: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVMReimageParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMExtensionUpdate", + className: "VirtualMachineScaleSetVMReimageParameters", modelProperties: { - ...SubResourceReadOnly.type.modelProperties, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, + ...VirtualMachineReimageParameters.type.modelProperties + } + } +}; + +export const VirtualMachineExtension: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineExtension", + modelProperties: { + ...ResourceWithOptionalLocation.type.modelProperties, forceUpdateTag: { serializedName: "properties.forceUpdateTag", type: { @@ -14567,6 +14599,20 @@ export const VirtualMachineScaleSetVMExtensionUpdate: coreClient.CompositeMapper value: { type: { name: "any" } } } }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + instanceView: { + serializedName: "properties.instanceView", + type: { + name: "Composite", + className: "VirtualMachineExtensionInstanceView" + } + }, suppressFailures: { serializedName: "properties.suppressFailures", type: { @@ -14724,16 +14770,6 @@ export const CapacityReservationInstanceViewWithName: coreClient.CompositeMapper } }; -export const VirtualMachineScaleSetVMReimageParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMReimageParameters", - modelProperties: { - ...VirtualMachineReimageParameters.type.modelProperties - } - } -}; - export const RequestRateByIntervalInput: coreClient.CompositeMapper = { type: { name: "Composite", @@ -15066,12 +15102,6 @@ export const GalleryImageUpdate: coreClient.CompositeMapper = { } } } - }, - architecture: { - serializedName: "properties.architecture", - type: { - name: "String" - } } } } @@ -15481,12 +15511,6 @@ export const VirtualMachineImage: coreClient.CompositeMapper = { } } } - }, - architecture: { - serializedName: "properties.architecture", - type: { - name: "String" - } } } } diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 3b84e2941ec9..071c8e39feea 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -12,6 +12,27 @@ import { OperationQueryParameter } from "@azure/core-client"; import { + VirtualMachineScaleSet as VirtualMachineScaleSetMapper, + VirtualMachineScaleSetUpdate as VirtualMachineScaleSetUpdateMapper, + VirtualMachineScaleSetVMInstanceIDs as VirtualMachineScaleSetVMInstanceIDsMapper, + VirtualMachineScaleSetVMInstanceRequiredIDs as VirtualMachineScaleSetVMInstanceRequiredIDsMapper, + VirtualMachineScaleSetReimageParameters as VirtualMachineScaleSetReimageParametersMapper, + VMScaleSetConvertToSinglePlacementGroupInput as VMScaleSetConvertToSinglePlacementGroupInputMapper, + OrchestrationServiceStateInput as OrchestrationServiceStateInputMapper, + VirtualMachineScaleSetExtension as VirtualMachineScaleSetExtensionMapper, + VirtualMachineScaleSetExtensionUpdate as VirtualMachineScaleSetExtensionUpdateMapper, + VirtualMachineScaleSetVMExtension as VirtualMachineScaleSetVMExtensionMapper, + VirtualMachineScaleSetVMExtensionUpdate as VirtualMachineScaleSetVMExtensionUpdateMapper, + VirtualMachineScaleSetVMReimageParameters as VirtualMachineScaleSetVMReimageParametersMapper, + VirtualMachineScaleSetVM as VirtualMachineScaleSetVMMapper, + RunCommandInput as RunCommandInputMapper, + VirtualMachineExtension as VirtualMachineExtensionMapper, + VirtualMachineExtensionUpdate as VirtualMachineExtensionUpdateMapper, + VirtualMachineCaptureParameters as VirtualMachineCaptureParametersMapper, + VirtualMachine as VirtualMachineMapper, + VirtualMachineUpdate as VirtualMachineUpdateMapper, + VirtualMachineReimageParameters as VirtualMachineReimageParametersMapper, + VirtualMachineInstallPatchesParameters as VirtualMachineInstallPatchesParametersMapper, AvailabilitySet as AvailabilitySetMapper, AvailabilitySetUpdate as AvailabilitySetUpdateMapper, ProximityPlacementGroup as ProximityPlacementGroupMapper, @@ -22,21 +43,6 @@ import { DedicatedHostUpdate as DedicatedHostUpdateMapper, SshPublicKeyResource as SshPublicKeyResourceMapper, SshPublicKeyUpdateResource as SshPublicKeyUpdateResourceMapper, - VirtualMachineExtension as VirtualMachineExtensionMapper, - VirtualMachineExtensionUpdate as VirtualMachineExtensionUpdateMapper, - VirtualMachineCaptureParameters as VirtualMachineCaptureParametersMapper, - VirtualMachine as VirtualMachineMapper, - VirtualMachineUpdate as VirtualMachineUpdateMapper, - VirtualMachineReimageParameters as VirtualMachineReimageParametersMapper, - VirtualMachineInstallPatchesParameters as VirtualMachineInstallPatchesParametersMapper, - RunCommandInput as RunCommandInputMapper, - VirtualMachineScaleSet as VirtualMachineScaleSetMapper, - VirtualMachineScaleSetUpdate as VirtualMachineScaleSetUpdateMapper, - VirtualMachineScaleSetVMInstanceIDs as VirtualMachineScaleSetVMInstanceIDsMapper, - VirtualMachineScaleSetVMInstanceRequiredIDs as VirtualMachineScaleSetVMInstanceRequiredIDsMapper, - VirtualMachineScaleSetReimageParameters as VirtualMachineScaleSetReimageParametersMapper, - VMScaleSetConvertToSinglePlacementGroupInput as VMScaleSetConvertToSinglePlacementGroupInputMapper, - OrchestrationServiceStateInput as OrchestrationServiceStateInputMapper, Image as ImageMapper, ImageUpdate as ImageUpdateMapper, RestorePointCollection as RestorePointCollectionMapper, @@ -46,12 +52,6 @@ import { CapacityReservationGroupUpdate as CapacityReservationGroupUpdateMapper, CapacityReservation as CapacityReservationMapper, CapacityReservationUpdate as CapacityReservationUpdateMapper, - VirtualMachineScaleSetExtension as VirtualMachineScaleSetExtensionMapper, - VirtualMachineScaleSetExtensionUpdate as VirtualMachineScaleSetExtensionUpdateMapper, - VirtualMachineScaleSetVMExtension as VirtualMachineScaleSetVMExtensionMapper, - VirtualMachineScaleSetVMExtensionUpdate as VirtualMachineScaleSetVMExtensionUpdateMapper, - VirtualMachineScaleSetVMReimageParameters as VirtualMachineScaleSetVMReimageParametersMapper, - VirtualMachineScaleSetVM as VirtualMachineScaleSetVMMapper, RequestRateByIntervalInput as RequestRateByIntervalInputMapper, ThrottledRequestsInput as ThrottledRequestsInputMapper, VirtualMachineRunCommand as VirtualMachineRunCommandMapper, @@ -110,7 +110,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-11-01", + defaultValue: "2022-03-01", isConstant: true, serializedName: "api-version", type: { @@ -119,6 +119,43 @@ export const apiVersion: OperationQueryParameter = { } }; +export const location: OperationURLParameter = { + parameterPath: "location", + mapper: { + constraints: { + Pattern: new RegExp("^[-\\w\\._]+$") + }, + serializedName: "location", + required: true, + type: { + name: "String" + } + } +}; + +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + serializedName: "subscriptionId", + required: true, + type: { + name: "String" + } + } +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + export const contentType: OperationParameter = { parameterPath: ["options", "contentType"], mapper: { @@ -133,7 +170,7 @@ export const contentType: OperationParameter = { export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: AvailabilitySetMapper + mapper: VirtualMachineScaleSetMapper }; export const resourceGroupName: OperationURLParameter = { @@ -147,10 +184,10 @@ export const resourceGroupName: OperationURLParameter = { } }; -export const availabilitySetName: OperationURLParameter = { - parameterPath: "availabilitySetName", +export const vmScaleSetName: OperationURLParameter = { + parameterPath: "vmScaleSetName", mapper: { - serializedName: "availabilitySetName", + serializedName: "vmScaleSetName", required: true, type: { name: "String" @@ -158,22 +195,21 @@ export const availabilitySetName: OperationURLParameter = { } }; -export const subscriptionId: OperationURLParameter = { - parameterPath: "subscriptionId", +export const parameters1: OperationParameter = { + parameterPath: "parameters", + mapper: VirtualMachineScaleSetUpdateMapper +}; + +export const forceDeletion: OperationQueryParameter = { + parameterPath: ["options", "forceDeletion"], mapper: { - serializedName: "subscriptionId", - required: true, + serializedName: "forceDeletion", type: { - name: "String" + name: "Boolean" } } }; -export const parameters1: OperationParameter = { - parameterPath: "parameters", - mapper: AvailabilitySetUpdateMapper -}; - export const expand: OperationQueryParameter = { parameterPath: ["options", "expand"], mapper: { @@ -184,58 +220,82 @@ export const expand: OperationQueryParameter = { } }; -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", +export const vmInstanceIDs: OperationParameter = { + parameterPath: ["options", "vmInstanceIDs"], + mapper: VirtualMachineScaleSetVMInstanceIDsMapper +}; + +export const vmInstanceIDs1: OperationParameter = { + parameterPath: "vmInstanceIDs", + mapper: VirtualMachineScaleSetVMInstanceRequiredIDsMapper +}; + +export const skipShutdown: OperationQueryParameter = { + parameterPath: ["options", "skipShutdown"], mapper: { - serializedName: "nextLink", - required: true, + defaultValue: false, + serializedName: "skipShutdown", type: { - name: "String" + name: "Boolean" } - }, - skipEncoding: true + } }; -export const parameters2: OperationParameter = { - parameterPath: "parameters", - mapper: ProximityPlacementGroupMapper +export const vmScaleSetReimageInput: OperationParameter = { + parameterPath: ["options", "vmScaleSetReimageInput"], + mapper: VirtualMachineScaleSetReimageParametersMapper }; -export const proximityPlacementGroupName: OperationURLParameter = { - parameterPath: "proximityPlacementGroupName", +export const platformUpdateDomain: OperationQueryParameter = { + parameterPath: "platformUpdateDomain", mapper: { - serializedName: "proximityPlacementGroupName", + serializedName: "platformUpdateDomain", required: true, type: { - name: "String" + name: "Number" } } }; -export const parameters3: OperationParameter = { - parameterPath: "parameters", - mapper: ProximityPlacementGroupUpdateMapper +export const zone: OperationQueryParameter = { + parameterPath: ["options", "zone"], + mapper: { + serializedName: "zone", + type: { + name: "String" + } + } }; -export const includeColocationStatus: OperationQueryParameter = { - parameterPath: ["options", "includeColocationStatus"], +export const placementGroupId: OperationQueryParameter = { + parameterPath: ["options", "placementGroupId"], mapper: { - serializedName: "includeColocationStatus", + serializedName: "placementGroupId", type: { name: "String" } } }; -export const parameters4: OperationParameter = { +export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: DedicatedHostGroupMapper + mapper: VMScaleSetConvertToSinglePlacementGroupInputMapper }; -export const hostGroupName: OperationURLParameter = { - parameterPath: "hostGroupName", +export const parameters3: OperationParameter = { + parameterPath: "parameters", + mapper: OrchestrationServiceStateInputMapper +}; + +export const extensionParameters: OperationParameter = { + parameterPath: "extensionParameters", + mapper: VirtualMachineScaleSetExtensionMapper +}; + +export const vmssExtensionName: OperationURLParameter = { + parameterPath: "vmssExtensionName", mapper: { - serializedName: "hostGroupName", + serializedName: "vmssExtensionName", required: true, type: { name: "String" @@ -243,9 +303,9 @@ export const hostGroupName: OperationURLParameter = { } }; -export const parameters5: OperationParameter = { - parameterPath: "parameters", - mapper: DedicatedHostGroupUpdateMapper +export const extensionParameters1: OperationParameter = { + parameterPath: "extensionParameters", + mapper: VirtualMachineScaleSetExtensionUpdateMapper }; export const expand1: OperationQueryParameter = { @@ -253,21 +313,20 @@ export const expand1: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "Enum", - allowedValues: ["instanceView", "userData"] + name: "String" } } }; -export const parameters6: OperationParameter = { - parameterPath: "parameters", - mapper: DedicatedHostMapper +export const extensionParameters2: OperationParameter = { + parameterPath: "extensionParameters", + mapper: VirtualMachineScaleSetVMExtensionMapper }; -export const hostName: OperationURLParameter = { - parameterPath: "hostName", +export const instanceId: OperationURLParameter = { + parameterPath: "instanceId", mapper: { - serializedName: "hostName", + serializedName: "instanceId", required: true, type: { name: "String" @@ -275,20 +334,10 @@ export const hostName: OperationURLParameter = { } }; -export const parameters7: OperationParameter = { - parameterPath: "parameters", - mapper: DedicatedHostUpdateMapper -}; - -export const parameters8: OperationParameter = { - parameterPath: "parameters", - mapper: SshPublicKeyResourceMapper -}; - -export const sshPublicKeyName: OperationURLParameter = { - parameterPath: "sshPublicKeyName", +export const vmExtensionName: OperationURLParameter = { + parameterPath: "vmExtensionName", mapper: { - serializedName: "sshPublicKeyName", + serializedName: "vmExtensionName", required: true, type: { name: "String" @@ -296,37 +345,36 @@ export const sshPublicKeyName: OperationURLParameter = { } }; -export const parameters9: OperationParameter = { - parameterPath: "parameters", - mapper: SshPublicKeyUpdateResourceMapper +export const extensionParameters3: OperationParameter = { + parameterPath: "extensionParameters", + mapper: VirtualMachineScaleSetVMExtensionUpdateMapper }; -export const location: OperationURLParameter = { - parameterPath: "location", - mapper: { - serializedName: "location", - required: true, - type: { - name: "String" - } - } +export const vmScaleSetVMReimageInput: OperationParameter = { + parameterPath: ["options", "vmScaleSetVMReimageInput"], + mapper: VirtualMachineScaleSetVMReimageParametersMapper }; -export const publisherName: OperationURLParameter = { - parameterPath: "publisherName", +export const parameters4: OperationParameter = { + parameterPath: "parameters", + mapper: VirtualMachineScaleSetVMMapper +}; + +export const expand2: OperationQueryParameter = { + parameterPath: ["options", "expand"], mapper: { - serializedName: "publisherName", - required: true, + serializedName: "$expand", type: { - name: "String" + name: "Enum", + allowedValues: ["instanceView", "userData"] } } }; -export const typeParam: OperationURLParameter = { - parameterPath: "typeParam", +export const virtualMachineScaleSetName: OperationURLParameter = { + parameterPath: "virtualMachineScaleSetName", mapper: { - serializedName: "type", + serializedName: "virtualMachineScaleSetName", required: true, type: { name: "String" @@ -334,48 +382,54 @@ export const typeParam: OperationURLParameter = { } }; -export const version: OperationURLParameter = { - parameterPath: "version", +export const filter: OperationQueryParameter = { + parameterPath: ["options", "filter"], mapper: { - serializedName: "version", - required: true, + serializedName: "$filter", type: { name: "String" } } }; -export const filter: OperationQueryParameter = { - parameterPath: ["options", "filter"], +export const select: OperationQueryParameter = { + parameterPath: ["options", "select"], mapper: { - serializedName: "$filter", + serializedName: "$select", type: { name: "String" } } }; -export const top: OperationQueryParameter = { - parameterPath: ["options", "top"], +export const sasUriExpirationTimeInMinutes: OperationQueryParameter = { + parameterPath: ["options", "sasUriExpirationTimeInMinutes"], mapper: { - serializedName: "$top", + serializedName: "sasUriExpirationTimeInMinutes", type: { name: "Number" } } }; -export const orderby: OperationQueryParameter = { - parameterPath: ["options", "orderby"], +export const parameters5: OperationParameter = { + parameterPath: "parameters", + mapper: RunCommandInputMapper +}; + +export const accept1: OperationParameter = { + parameterPath: "accept", mapper: { - serializedName: "$orderby", + defaultValue: "application/json, text/json", + isConstant: true, + serializedName: "Accept", type: { name: "String" } } }; -export const extensionParameters: OperationParameter = { +export const extensionParameters4: OperationParameter = { parameterPath: "extensionParameters", mapper: VirtualMachineExtensionMapper }; @@ -391,26 +445,60 @@ export const vmName: OperationURLParameter = { } }; -export const vmExtensionName: OperationURLParameter = { - parameterPath: "vmExtensionName", +export const extensionParameters5: OperationParameter = { + parameterPath: "extensionParameters", + mapper: VirtualMachineExtensionUpdateMapper +}; + +export const parameters6: OperationParameter = { + parameterPath: "parameters", + mapper: VirtualMachineCaptureParametersMapper +}; + +export const parameters7: OperationParameter = { + parameterPath: "parameters", + mapper: VirtualMachineMapper +}; + +export const parameters8: OperationParameter = { + parameterPath: "parameters", + mapper: VirtualMachineUpdateMapper +}; + +export const hibernate: OperationQueryParameter = { + parameterPath: ["options", "hibernate"], mapper: { - serializedName: "vmExtensionName", - required: true, + serializedName: "hibernate", + type: { + name: "Boolean" + } + } +}; + +export const statusOnly: OperationQueryParameter = { + parameterPath: ["options", "statusOnly"], + mapper: { + serializedName: "statusOnly", type: { name: "String" } } }; -export const extensionParameters1: OperationParameter = { - parameterPath: "extensionParameters", - mapper: VirtualMachineExtensionUpdateMapper +export const parameters9: OperationParameter = { + parameterPath: ["options", "parameters"], + mapper: VirtualMachineReimageParametersMapper }; -export const offer: OperationURLParameter = { - parameterPath: "offer", +export const installPatchesInput: OperationParameter = { + parameterPath: "installPatchesInput", + mapper: VirtualMachineInstallPatchesParametersMapper +}; + +export const location1: OperationURLParameter = { + parameterPath: "location", mapper: { - serializedName: "offer", + serializedName: "location", required: true, type: { name: "String" @@ -418,10 +506,10 @@ export const offer: OperationURLParameter = { } }; -export const skus: OperationURLParameter = { - parameterPath: "skus", +export const publisherName: OperationURLParameter = { + parameterPath: "publisherName", mapper: { - serializedName: "skus", + serializedName: "publisherName", required: true, type: { name: "String" @@ -429,10 +517,10 @@ export const skus: OperationURLParameter = { } }; -export const edgeZone: OperationURLParameter = { - parameterPath: "edgeZone", +export const offer: OperationURLParameter = { + parameterPath: "offer", mapper: { - serializedName: "edgeZone", + serializedName: "offer", required: true, type: { name: "String" @@ -440,13 +528,21 @@ export const edgeZone: OperationURLParameter = { } }; -export const location1: OperationURLParameter = { - parameterPath: "location", +export const skus: OperationURLParameter = { + parameterPath: "skus", mapper: { - constraints: { - Pattern: new RegExp("^[-\\w\\._]+$") - }, - serializedName: "location", + serializedName: "skus", + required: true, + type: { + name: "String" + } + } +}; + +export const version: OperationURLParameter = { + parameterPath: "version", + mapper: { + serializedName: "version", required: true, type: { name: "String" @@ -454,187 +550,164 @@ export const location1: OperationURLParameter = { } }; -export const parameters10: OperationParameter = { - parameterPath: "parameters", - mapper: VirtualMachineCaptureParametersMapper -}; - -export const parameters11: OperationParameter = { - parameterPath: "parameters", - mapper: VirtualMachineMapper -}; - -export const parameters12: OperationParameter = { - parameterPath: "parameters", - mapper: VirtualMachineUpdateMapper -}; - -export const forceDeletion: OperationQueryParameter = { - parameterPath: ["options", "forceDeletion"], +export const top: OperationQueryParameter = { + parameterPath: ["options", "top"], mapper: { - serializedName: "forceDeletion", + serializedName: "$top", type: { - name: "Boolean" + name: "Number" } } }; -export const hibernate: OperationQueryParameter = { - parameterPath: ["options", "hibernate"], +export const orderby: OperationQueryParameter = { + parameterPath: ["options", "orderby"], mapper: { - serializedName: "hibernate", + serializedName: "$orderby", type: { - name: "Boolean" + name: "String" } } }; -export const statusOnly: OperationQueryParameter = { - parameterPath: ["options", "statusOnly"], +export const edgeZone: OperationURLParameter = { + parameterPath: "edgeZone", mapper: { - serializedName: "statusOnly", + serializedName: "edgeZone", + required: true, type: { name: "String" } } }; -export const skipShutdown: OperationQueryParameter = { - parameterPath: ["options", "skipShutdown"], +export const typeParam: OperationURLParameter = { + parameterPath: "typeParam", mapper: { - defaultValue: false, - serializedName: "skipShutdown", + serializedName: "type", + required: true, type: { - name: "Boolean" + name: "String" } } }; -export const parameters13: OperationParameter = { - parameterPath: ["options", "parameters"], - mapper: VirtualMachineReimageParametersMapper +export const parameters10: OperationParameter = { + parameterPath: "parameters", + mapper: AvailabilitySetMapper }; -export const sasUriExpirationTimeInMinutes: OperationQueryParameter = { - parameterPath: ["options", "sasUriExpirationTimeInMinutes"], +export const availabilitySetName: OperationURLParameter = { + parameterPath: "availabilitySetName", mapper: { - serializedName: "sasUriExpirationTimeInMinutes", + serializedName: "availabilitySetName", + required: true, type: { - name: "Number" + name: "String" } } }; -export const installPatchesInput: OperationParameter = { - parameterPath: "installPatchesInput", - mapper: VirtualMachineInstallPatchesParametersMapper +export const parameters11: OperationParameter = { + parameterPath: "parameters", + mapper: AvailabilitySetUpdateMapper }; -export const parameters14: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", - mapper: RunCommandInputMapper + mapper: ProximityPlacementGroupMapper }; -export const accept1: OperationParameter = { - parameterPath: "accept", +export const proximityPlacementGroupName: OperationURLParameter = { + parameterPath: "proximityPlacementGroupName", mapper: { - defaultValue: "application/json, text/json", - isConstant: true, - serializedName: "Accept", + serializedName: "proximityPlacementGroupName", + required: true, type: { name: "String" } } }; -export const parameters15: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineScaleSetMapper + mapper: ProximityPlacementGroupUpdateMapper }; -export const vmScaleSetName: OperationURLParameter = { - parameterPath: "vmScaleSetName", +export const includeColocationStatus: OperationQueryParameter = { + parameterPath: ["options", "includeColocationStatus"], mapper: { - serializedName: "vmScaleSetName", - required: true, + serializedName: "includeColocationStatus", type: { name: "String" } } }; -export const parameters16: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineScaleSetUpdateMapper + mapper: DedicatedHostGroupMapper }; -export const expand2: OperationQueryParameter = { - parameterPath: ["options", "expand"], +export const hostGroupName: OperationURLParameter = { + parameterPath: "hostGroupName", mapper: { - serializedName: "$expand", + serializedName: "hostGroupName", + required: true, type: { name: "String" } } }; -export const vmInstanceIDs: OperationParameter = { - parameterPath: ["options", "vmInstanceIDs"], - mapper: VirtualMachineScaleSetVMInstanceIDsMapper -}; - -export const vmInstanceIDs1: OperationParameter = { - parameterPath: "vmInstanceIDs", - mapper: VirtualMachineScaleSetVMInstanceRequiredIDsMapper +export const parameters15: OperationParameter = { + parameterPath: "parameters", + mapper: DedicatedHostGroupUpdateMapper }; -export const vmScaleSetReimageInput: OperationParameter = { - parameterPath: ["options", "vmScaleSetReimageInput"], - mapper: VirtualMachineScaleSetReimageParametersMapper +export const parameters16: OperationParameter = { + parameterPath: "parameters", + mapper: DedicatedHostMapper }; -export const platformUpdateDomain: OperationQueryParameter = { - parameterPath: "platformUpdateDomain", +export const hostName: OperationURLParameter = { + parameterPath: "hostName", mapper: { - serializedName: "platformUpdateDomain", + serializedName: "hostName", required: true, type: { - name: "Number" + name: "String" } } }; -export const zone: OperationQueryParameter = { - parameterPath: ["options", "zone"], - mapper: { - serializedName: "zone", - type: { - name: "String" - } - } +export const parameters17: OperationParameter = { + parameterPath: "parameters", + mapper: DedicatedHostUpdateMapper }; -export const placementGroupId: OperationQueryParameter = { - parameterPath: ["options", "placementGroupId"], +export const parameters18: OperationParameter = { + parameterPath: "parameters", + mapper: SshPublicKeyResourceMapper +}; + +export const sshPublicKeyName: OperationURLParameter = { + parameterPath: "sshPublicKeyName", mapper: { - serializedName: "placementGroupId", + serializedName: "sshPublicKeyName", + required: true, type: { name: "String" } } }; -export const parameters17: OperationParameter = { - parameterPath: "parameters", - mapper: VMScaleSetConvertToSinglePlacementGroupInputMapper -}; - -export const parameters18: OperationParameter = { +export const parameters19: OperationParameter = { parameterPath: "parameters", - mapper: OrchestrationServiceStateInputMapper + mapper: SshPublicKeyUpdateResourceMapper }; -export const parameters19: OperationParameter = { +export const parameters20: OperationParameter = { parameterPath: "parameters", mapper: ImageMapper }; @@ -650,12 +723,12 @@ export const imageName: OperationURLParameter = { } }; -export const parameters20: OperationParameter = { +export const parameters21: OperationParameter = { parameterPath: "parameters", mapper: ImageUpdateMapper }; -export const parameters21: OperationParameter = { +export const parameters22: OperationParameter = { parameterPath: "parameters", mapper: RestorePointCollectionMapper }; @@ -671,7 +744,7 @@ export const restorePointCollectionName: OperationURLParameter = { } }; -export const parameters22: OperationParameter = { +export const parameters23: OperationParameter = { parameterPath: "parameters", mapper: RestorePointCollectionUpdateMapper }; @@ -686,7 +759,7 @@ export const expand3: OperationQueryParameter = { } }; -export const parameters23: OperationParameter = { +export const parameters24: OperationParameter = { parameterPath: "parameters", mapper: RestorePointMapper }; @@ -712,7 +785,7 @@ export const expand4: OperationQueryParameter = { } }; -export const parameters24: OperationParameter = { +export const parameters25: OperationParameter = { parameterPath: "parameters", mapper: CapacityReservationGroupMapper }; @@ -728,7 +801,7 @@ export const capacityReservationGroupName: OperationURLParameter = { } }; -export const parameters25: OperationParameter = { +export const parameters26: OperationParameter = { parameterPath: "parameters", mapper: CapacityReservationGroupUpdateMapper }; @@ -753,7 +826,7 @@ export const expand6: OperationQueryParameter = { } }; -export const parameters26: OperationParameter = { +export const parameters27: OperationParameter = { parameterPath: "parameters", mapper: CapacityReservationMapper }; @@ -769,7 +842,7 @@ export const capacityReservationName: OperationURLParameter = { } }; -export const parameters27: OperationParameter = { +export const parameters28: OperationParameter = { parameterPath: "parameters", mapper: CapacityReservationUpdateMapper }; @@ -784,79 +857,6 @@ export const expand7: OperationQueryParameter = { } }; -export const extensionParameters2: OperationParameter = { - parameterPath: "extensionParameters", - mapper: VirtualMachineScaleSetExtensionMapper -}; - -export const vmssExtensionName: OperationURLParameter = { - parameterPath: "vmssExtensionName", - mapper: { - serializedName: "vmssExtensionName", - required: true, - type: { - name: "String" - } - } -}; - -export const extensionParameters3: OperationParameter = { - parameterPath: "extensionParameters", - mapper: VirtualMachineScaleSetExtensionUpdateMapper -}; - -export const extensionParameters4: OperationParameter = { - parameterPath: "extensionParameters", - mapper: VirtualMachineScaleSetVMExtensionMapper -}; - -export const instanceId: OperationURLParameter = { - parameterPath: "instanceId", - mapper: { - serializedName: "instanceId", - required: true, - type: { - name: "String" - } - } -}; - -export const extensionParameters5: OperationParameter = { - parameterPath: "extensionParameters", - mapper: VirtualMachineScaleSetVMExtensionUpdateMapper -}; - -export const vmScaleSetVMReimageInput: OperationParameter = { - parameterPath: ["options", "vmScaleSetVMReimageInput"], - mapper: VirtualMachineScaleSetVMReimageParametersMapper -}; - -export const parameters28: OperationParameter = { - parameterPath: "parameters", - mapper: VirtualMachineScaleSetVMMapper -}; - -export const virtualMachineScaleSetName: OperationURLParameter = { - parameterPath: "virtualMachineScaleSetName", - mapper: { - serializedName: "virtualMachineScaleSetName", - required: true, - type: { - name: "String" - } - } -}; - -export const select: OperationQueryParameter = { - parameterPath: ["options", "select"], - mapper: { - serializedName: "$select", - type: { - name: "String" - } - } -}; - export const parameters29: OperationParameter = { parameterPath: "parameters", mapper: RequestRateByIntervalInputMapper @@ -940,7 +940,7 @@ export const diskName: OperationURLParameter = { export const apiVersion2: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-12-01", + defaultValue: "2021-08-01", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/compute/arm-compute/src/operations/availabilitySets.ts b/sdk/compute/arm-compute/src/operations/availabilitySets.ts index 165393ab8846..27fab002ab76 100644 --- a/sdk/compute/arm-compute/src/operations/availabilitySets.ts +++ b/sdk/compute/arm-compute/src/operations/availabilitySets.ts @@ -366,13 +366,13 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName, - Parameters.subscriptionId + Parameters.availabilitySetName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -390,13 +390,13 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters1, + requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName, - Parameters.subscriptionId + Parameters.availabilitySetName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -416,9 +416,9 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName, - Parameters.subscriptionId + Parameters.availabilitySetName ], headerParameters: [Parameters.accept], serializer @@ -438,9 +438,9 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName, - Parameters.subscriptionId + Parameters.availabilitySetName ], headerParameters: [Parameters.accept], serializer @@ -457,7 +457,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -477,8 +477,8 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -498,9 +498,9 @@ const listAvailableSizesOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName, - Parameters.subscriptionId + Parameters.availabilitySetName ], headerParameters: [Parameters.accept], serializer @@ -516,7 +516,7 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -539,9 +539,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts b/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts index 94b09246ce2c..52366178da1b 100644 --- a/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts +++ b/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts @@ -301,12 +301,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters24, + requestBody: Parameters.parameters25, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.capacityReservationGroupName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -325,12 +325,12 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters25, + requestBody: Parameters.parameters26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.capacityReservationGroupName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -351,8 +351,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.capacityReservationGroupName ], headerParameters: [Parameters.accept], @@ -373,8 +373,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion, Parameters.expand5], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.capacityReservationGroupName ], headerParameters: [Parameters.accept], @@ -395,8 +395,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion, Parameters.expand6], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -432,9 +432,9 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion, Parameters.expand6], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/compute/arm-compute/src/operations/capacityReservations.ts b/sdk/compute/arm-compute/src/operations/capacityReservations.ts index ed1e79636d7e..41f9820c326a 100644 --- a/sdk/compute/arm-compute/src/operations/capacityReservations.ts +++ b/sdk/compute/arm-compute/src/operations/capacityReservations.ts @@ -501,12 +501,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.capacityReservationGroupName, Parameters.capacityReservationName ], @@ -535,12 +535,12 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters27, + requestBody: Parameters.parameters28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.capacityReservationGroupName, Parameters.capacityReservationName ], @@ -564,8 +564,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.capacityReservationGroupName, Parameters.capacityReservationName ], @@ -587,8 +587,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion, Parameters.expand7], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.capacityReservationGroupName, Parameters.capacityReservationName ], @@ -610,8 +610,8 @@ const listByCapacityReservationGroupOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.capacityReservationGroupName ], headerParameters: [Parameters.accept], @@ -631,9 +631,9 @@ const listByCapacityReservationGroupNextOperationSpec: coreClient.OperationSpec queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.capacityReservationGroupName ], headerParameters: [Parameters.accept], diff --git a/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts b/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts index 68d6a3d7f029..3de69186dd57 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts @@ -270,7 +270,7 @@ const getOSVersionOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.osVersionName ], headerParameters: [Parameters.accept], @@ -292,7 +292,7 @@ const listOSVersionsOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location1 ], headerParameters: [Parameters.accept], serializer @@ -313,7 +313,7 @@ const getOSFamilyOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.osFamilyName ], headerParameters: [Parameters.accept], @@ -335,7 +335,7 @@ const listOSFamiliesOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location1 ], headerParameters: [Parameters.accept], serializer @@ -356,7 +356,7 @@ const listOSVersionsNextOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.location + Parameters.location1 ], headerParameters: [Parameters.accept], serializer @@ -377,7 +377,7 @@ const listOSFamiliesNextOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.location + Parameters.location1 ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts b/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts index 3637849f471e..01798fedfa1c 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts @@ -575,8 +575,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.roleInstanceName, Parameters.cloudServiceName ], @@ -595,11 +595,11 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.expand1, Parameters.apiVersion4], + queryParameters: [Parameters.expand2, Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.roleInstanceName, Parameters.cloudServiceName ], @@ -621,8 +621,8 @@ const getInstanceViewOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.roleInstanceName, Parameters.cloudServiceName ], @@ -641,11 +641,11 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.expand1, Parameters.apiVersion4], + queryParameters: [Parameters.expand2, Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept], @@ -667,8 +667,8 @@ const restartOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.roleInstanceName, Parameters.cloudServiceName ], @@ -691,8 +691,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.roleInstanceName, Parameters.cloudServiceName ], @@ -715,8 +715,8 @@ const rebuildOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.roleInstanceName, Parameters.cloudServiceName ], @@ -736,8 +736,8 @@ const getRemoteDesktopFileOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.roleInstanceName, Parameters.cloudServiceName ], @@ -755,12 +755,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.expand1, Parameters.apiVersion4], + queryParameters: [Parameters.expand2, Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept], diff --git a/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts b/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts index 387005245998..024c8eb25201 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts @@ -177,8 +177,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.roleName ], @@ -200,8 +200,8 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept], @@ -221,9 +221,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept], diff --git a/sdk/compute/arm-compute/src/operations/cloudServices.ts b/sdk/compute/arm-compute/src/operations/cloudServices.ts index fef5709d097d..931425b1962b 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServices.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServices.ts @@ -1011,8 +1011,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1044,8 +1044,8 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1068,8 +1068,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept], @@ -1090,8 +1090,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept], @@ -1112,8 +1112,8 @@ const getInstanceViewOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept], @@ -1151,8 +1151,8 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -1173,8 +1173,8 @@ const startOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept], @@ -1196,8 +1196,8 @@ const powerOffOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept], @@ -1220,8 +1220,8 @@ const restartOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1245,8 +1245,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1270,8 +1270,8 @@ const rebuildOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1295,8 +1295,8 @@ const deleteInstancesOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1337,9 +1337,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts b/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts index e18328bd0016..06420a979c45 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts @@ -277,8 +277,8 @@ const walkUpdateDomainOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.updateDomain ], @@ -301,8 +301,8 @@ const getUpdateDomainOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.updateDomain ], @@ -324,8 +324,8 @@ const listUpdateDomainsOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept], @@ -345,9 +345,9 @@ const listUpdateDomainsNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept], diff --git a/sdk/compute/arm-compute/src/operations/communityGalleries.ts b/sdk/compute/arm-compute/src/operations/communityGalleries.ts index 34331ae4ea8d..e103d18fb3ed 100644 --- a/sdk/compute/arm-compute/src/operations/communityGalleries.ts +++ b/sdk/compute/arm-compute/src/operations/communityGalleries.ts @@ -64,7 +64,7 @@ const getOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.publicGalleryName ], headerParameters: [Parameters.accept], diff --git a/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts index 3c4df4024c2d..b62f1e1fd0e0 100644 --- a/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts @@ -77,7 +77,7 @@ const getOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.galleryImageName, Parameters.galleryImageVersionName, Parameters.publicGalleryName diff --git a/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts b/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts index 487c976b6a77..d338a1affe70 100644 --- a/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts @@ -66,7 +66,7 @@ const getOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.galleryImageName, Parameters.publicGalleryName ], diff --git a/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts b/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts index 136081f70651..4c2686f6013d 100644 --- a/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts +++ b/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts @@ -295,12 +295,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.hostGroupName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -319,12 +319,12 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.hostGroupName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -345,8 +345,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.hostGroupName ], headerParameters: [Parameters.accept], @@ -364,11 +364,11 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand1], + queryParameters: [Parameters.apiVersion, Parameters.expand2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.hostGroupName ], headerParameters: [Parameters.accept], @@ -389,8 +389,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -426,9 +426,9 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts index 485711ab196d..0a7a1b167e84 100644 --- a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts +++ b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts @@ -562,12 +562,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.hostGroupName, Parameters.hostName ], @@ -596,12 +596,12 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters17, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.hostGroupName, Parameters.hostName ], @@ -625,8 +625,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.hostGroupName, Parameters.hostName ], @@ -645,11 +645,11 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand1], + queryParameters: [Parameters.apiVersion, Parameters.expand2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.hostGroupName, Parameters.hostName ], @@ -671,8 +671,8 @@ const listByHostGroupOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.hostGroupName ], headerParameters: [Parameters.accept], @@ -694,8 +694,8 @@ const restartOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.hostGroupName, Parameters.hostName ], @@ -716,9 +716,9 @@ const listByHostGroupNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.hostGroupName ], headerParameters: [Parameters.accept], diff --git a/sdk/compute/arm-compute/src/operations/diskAccesses.ts b/sdk/compute/arm-compute/src/operations/diskAccesses.ts index 7698a945cad4..ef3f1f7c8894 100644 --- a/sdk/compute/arm-compute/src/operations/diskAccesses.ts +++ b/sdk/compute/arm-compute/src/operations/diskAccesses.ts @@ -892,8 +892,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskAccessName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -925,8 +925,8 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskAccessName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -948,8 +948,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskAccessName ], headerParameters: [Parameters.accept], @@ -971,8 +971,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskAccessName ], headerParameters: [Parameters.accept], @@ -993,8 +993,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -1028,8 +1028,8 @@ const getPrivateLinkResourcesOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskAccessName ], headerParameters: [Parameters.accept], @@ -1060,8 +1060,8 @@ const updateAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskAccessName, Parameters.privateEndpointConnectionName ], @@ -1084,8 +1084,8 @@ const getAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskAccessName, Parameters.privateEndpointConnectionName ], @@ -1108,8 +1108,8 @@ const deleteAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskAccessName, Parameters.privateEndpointConnectionName ], @@ -1131,8 +1131,8 @@ const listPrivateEndpointConnectionsOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskAccessName ], headerParameters: [Parameters.accept], @@ -1152,9 +1152,9 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -1193,9 +1193,9 @@ const listPrivateEndpointConnectionsNextOperationSpec: coreClient.OperationSpec queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.diskAccessName ], headerParameters: [Parameters.accept], diff --git a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts index b7566573e86e..7f69af884de9 100644 --- a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts +++ b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts @@ -640,8 +640,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskEncryptionSetName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -673,8 +673,8 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskEncryptionSetName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -696,8 +696,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskEncryptionSetName ], headerParameters: [Parameters.accept], @@ -719,8 +719,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskEncryptionSetName ], headerParameters: [Parameters.accept], @@ -741,8 +741,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -779,8 +779,8 @@ const listAssociatedResourcesOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskEncryptionSetName ], headerParameters: [Parameters.accept], @@ -800,9 +800,9 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -841,9 +841,9 @@ const listAssociatedResourcesNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.diskEncryptionSetName ], headerParameters: [Parameters.accept], diff --git a/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts b/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts index 05894f6a9151..9260a4933a16 100644 --- a/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts +++ b/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts @@ -431,8 +431,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.vmRestorePointName, Parameters.diskRestorePointName @@ -455,8 +455,8 @@ const listByRestorePointOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.vmRestorePointName ], @@ -488,8 +488,8 @@ const grantAccessOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.vmRestorePointName, Parameters.diskRestorePointName @@ -514,8 +514,8 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.vmRestorePointName, Parameters.diskRestorePointName @@ -537,9 +537,9 @@ const listByRestorePointNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.vmRestorePointName ], diff --git a/sdk/compute/arm-compute/src/operations/disks.ts b/sdk/compute/arm-compute/src/operations/disks.ts index d038e04cf05c..4c3cbd96b564 100644 --- a/sdk/compute/arm-compute/src/operations/disks.ts +++ b/sdk/compute/arm-compute/src/operations/disks.ts @@ -690,8 +690,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -720,8 +720,8 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -740,8 +740,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskName ], headerParameters: [Parameters.accept], @@ -755,8 +755,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskName ], serializer @@ -773,8 +773,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -814,8 +814,8 @@ const grantAccessOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -830,8 +830,8 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskName ], serializer @@ -847,9 +847,9 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/compute/arm-compute/src/operations/galleries.ts b/sdk/compute/arm-compute/src/operations/galleries.ts index 98d578fda8c9..4020efd1c78b 100644 --- a/sdk/compute/arm-compute/src/operations/galleries.ts +++ b/sdk/compute/arm-compute/src/operations/galleries.ts @@ -508,8 +508,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -541,8 +541,8 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -568,8 +568,8 @@ const getOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName ], headerParameters: [Parameters.accept], @@ -591,8 +591,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName ], headerParameters: [Parameters.accept], @@ -613,8 +613,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -649,9 +649,9 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts index 95b7cd5b8d98..0a410ed58676 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts @@ -568,8 +568,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName, Parameters.galleryApplicationVersionName @@ -603,8 +603,8 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName, Parameters.galleryApplicationVersionName @@ -628,8 +628,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3, Parameters.expand9], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName, Parameters.galleryApplicationVersionName @@ -653,8 +653,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName, Parameters.galleryApplicationVersionName @@ -677,8 +677,8 @@ const listByGalleryApplicationOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName ], @@ -699,9 +699,9 @@ const listByGalleryApplicationNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName ], diff --git a/sdk/compute/arm-compute/src/operations/galleryApplications.ts b/sdk/compute/arm-compute/src/operations/galleryApplications.ts index 5eccbb9d799f..1b4be0164690 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplications.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplications.ts @@ -502,8 +502,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName ], @@ -536,8 +536,8 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName ], @@ -560,8 +560,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName ], @@ -584,8 +584,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName ], @@ -607,8 +607,8 @@ const listByGalleryOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName ], headerParameters: [Parameters.accept], @@ -628,9 +628,9 @@ const listByGalleryNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.galleryName ], headerParameters: [Parameters.accept], diff --git a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts index 424e665b3358..a9ea46211d51 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts @@ -545,8 +545,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName, Parameters.galleryImageVersionName @@ -580,8 +580,8 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName, Parameters.galleryImageVersionName @@ -605,8 +605,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3, Parameters.expand9], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName, Parameters.galleryImageVersionName @@ -630,8 +630,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName, Parameters.galleryImageVersionName @@ -654,8 +654,8 @@ const listByGalleryImageOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName ], @@ -676,9 +676,9 @@ const listByGalleryImageNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName ], diff --git a/sdk/compute/arm-compute/src/operations/galleryImages.ts b/sdk/compute/arm-compute/src/operations/galleryImages.ts index ef4ffe289944..53ec082feb7b 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImages.ts @@ -502,8 +502,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName ], @@ -536,8 +536,8 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName ], @@ -560,8 +560,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName ], @@ -584,8 +584,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName ], @@ -607,8 +607,8 @@ const listByGalleryOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName ], headerParameters: [Parameters.accept], @@ -628,9 +628,9 @@ const listByGalleryNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.galleryName ], headerParameters: [Parameters.accept], diff --git a/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts index 68fc075cbb90..1fa4a979360c 100644 --- a/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts +++ b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts @@ -149,8 +149,8 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName ], headerParameters: [Parameters.accept, Parameters.contentType], diff --git a/sdk/compute/arm-compute/src/operations/images.ts b/sdk/compute/arm-compute/src/operations/images.ts index 3cef0b68fb3b..e35fb2ed11cc 100644 --- a/sdk/compute/arm-compute/src/operations/images.ts +++ b/sdk/compute/arm-compute/src/operations/images.ts @@ -499,12 +499,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters19, + requestBody: Parameters.parameters20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.imageName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -532,12 +532,12 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters20, + requestBody: Parameters.parameters21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.imageName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -560,8 +560,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.imageName ], headerParameters: [Parameters.accept], @@ -579,11 +579,11 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.imageName ], headerParameters: [Parameters.accept], @@ -604,8 +604,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -640,9 +640,9 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/compute/arm-compute/src/operations/index.ts b/sdk/compute/arm-compute/src/operations/index.ts index 91179cafdf10..0efbb818035e 100644 --- a/sdk/compute/arm-compute/src/operations/index.ts +++ b/sdk/compute/arm-compute/src/operations/index.ts @@ -7,28 +7,28 @@ */ export * from "./operations"; +export * from "./usageOperations"; +export * from "./virtualMachineSizes"; +export * from "./virtualMachineScaleSets"; +export * from "./virtualMachineScaleSetExtensions"; +export * from "./virtualMachineScaleSetRollingUpgrades"; +export * from "./virtualMachineScaleSetVMExtensions"; +export * from "./virtualMachineScaleSetVMs"; +export * from "./virtualMachineExtensions"; +export * from "./virtualMachines"; +export * from "./virtualMachineImages"; +export * from "./virtualMachineImagesEdgeZone"; +export * from "./virtualMachineExtensionImages"; export * from "./availabilitySets"; export * from "./proximityPlacementGroups"; export * from "./dedicatedHostGroups"; export * from "./dedicatedHosts"; export * from "./sshPublicKeys"; -export * from "./virtualMachineExtensionImages"; -export * from "./virtualMachineExtensions"; -export * from "./virtualMachineImages"; -export * from "./virtualMachineImagesEdgeZone"; -export * from "./usageOperations"; -export * from "./virtualMachines"; -export * from "./virtualMachineScaleSets"; -export * from "./virtualMachineSizes"; export * from "./images"; export * from "./restorePointCollections"; export * from "./restorePoints"; export * from "./capacityReservationGroups"; export * from "./capacityReservations"; -export * from "./virtualMachineScaleSetExtensions"; -export * from "./virtualMachineScaleSetRollingUpgrades"; -export * from "./virtualMachineScaleSetVMExtensions"; -export * from "./virtualMachineScaleSetVMs"; export * from "./logAnalytics"; export * from "./virtualMachineRunCommands"; export * from "./virtualMachineScaleSetVMRunCommands"; diff --git a/sdk/compute/arm-compute/src/operations/logAnalytics.ts b/sdk/compute/arm-compute/src/operations/logAnalytics.ts index db81c4047038..0e07da13b70d 100644 --- a/sdk/compute/arm-compute/src/operations/logAnalytics.ts +++ b/sdk/compute/arm-compute/src/operations/logAnalytics.ts @@ -236,8 +236,8 @@ const exportRequestRateByIntervalOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.location1 + Parameters.location, + Parameters.subscriptionId ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -268,8 +268,8 @@ const exportThrottledRequestsOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.location1 + Parameters.location, + Parameters.subscriptionId ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", diff --git a/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts b/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts index 3fa50bfcc7e2..c0014990f2ce 100644 --- a/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts +++ b/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts @@ -290,12 +290,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.proximityPlacementGroupName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -314,12 +314,12 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.proximityPlacementGroupName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -339,8 +339,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.proximityPlacementGroupName ], headerParameters: [Parameters.accept], @@ -361,8 +361,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion, Parameters.includeColocationStatus], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.proximityPlacementGroupName ], headerParameters: [Parameters.accept], @@ -400,8 +400,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -440,9 +440,9 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/compute/arm-compute/src/operations/restorePointCollections.ts b/sdk/compute/arm-compute/src/operations/restorePointCollections.ts index 6e68a3d66ec0..a9c308d7326c 100644 --- a/sdk/compute/arm-compute/src/operations/restorePointCollections.ts +++ b/sdk/compute/arm-compute/src/operations/restorePointCollections.ts @@ -357,12 +357,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters21, + requestBody: Parameters.parameters22, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.restorePointCollectionName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -381,12 +381,12 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters22, + requestBody: Parameters.parameters23, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.restorePointCollectionName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -409,8 +409,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.restorePointCollectionName ], headerParameters: [Parameters.accept], @@ -431,8 +431,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion, Parameters.expand3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.restorePointCollectionName ], headerParameters: [Parameters.accept], @@ -453,8 +453,8 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -490,9 +490,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/compute/arm-compute/src/operations/restorePoints.ts b/sdk/compute/arm-compute/src/operations/restorePoints.ts index 58e557fcd616..6508af5e17ce 100644 --- a/sdk/compute/arm-compute/src/operations/restorePoints.ts +++ b/sdk/compute/arm-compute/src/operations/restorePoints.ts @@ -275,12 +275,12 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters23, + requestBody: Parameters.parameters24, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.restorePointName ], @@ -304,8 +304,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.restorePointName ], @@ -327,8 +327,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion, Parameters.expand4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.restorePointName ], diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleries.ts b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts index 808dae3ffc1b..cfe44b296ca6 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleries.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts @@ -149,7 +149,7 @@ const listOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location1 ], headerParameters: [Parameters.accept], serializer @@ -170,7 +170,7 @@ const getOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.galleryUniqueName ], headerParameters: [Parameters.accept], @@ -192,7 +192,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.location + Parameters.location1 ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts index a416ee2cedd5..3094b69922cb 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts @@ -208,7 +208,7 @@ const listOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.galleryImageName, Parameters.galleryUniqueName ], @@ -231,7 +231,7 @@ const getOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.galleryImageName, Parameters.galleryImageVersionName, Parameters.galleryUniqueName @@ -255,7 +255,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.location, + Parameters.location1, Parameters.galleryImageName, Parameters.galleryUniqueName ], diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts index b30d2a77e79a..866f2a8c6aef 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts @@ -169,7 +169,7 @@ const listOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.galleryUniqueName ], headerParameters: [Parameters.accept], @@ -191,7 +191,7 @@ const getOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.galleryImageName, Parameters.galleryUniqueName ], @@ -214,7 +214,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.location, + Parameters.location1, Parameters.galleryUniqueName ], headerParameters: [Parameters.accept], diff --git a/sdk/compute/arm-compute/src/operations/snapshots.ts b/sdk/compute/arm-compute/src/operations/snapshots.ts index cbea0ae90c69..7d5f43026b87 100644 --- a/sdk/compute/arm-compute/src/operations/snapshots.ts +++ b/sdk/compute/arm-compute/src/operations/snapshots.ts @@ -699,8 +699,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.snapshotName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -729,8 +729,8 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.snapshotName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -749,8 +749,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.snapshotName ], headerParameters: [Parameters.accept], @@ -764,8 +764,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.snapshotName ], serializer @@ -782,8 +782,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -823,8 +823,8 @@ const grantAccessOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.snapshotName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -839,8 +839,8 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.snapshotName ], serializer @@ -856,9 +856,9 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts b/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts index 40f8d1326e74..e53a341cb169 100644 --- a/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts +++ b/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts @@ -332,8 +332,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -353,12 +353,12 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.sshPublicKeyName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -377,12 +377,12 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters9, + requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.sshPublicKeyName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -403,8 +403,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.sshPublicKeyName ], headerParameters: [Parameters.accept], @@ -425,8 +425,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.sshPublicKeyName ], headerParameters: [Parameters.accept], @@ -447,8 +447,8 @@ const generateKeyPairOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.sshPublicKeyName ], headerParameters: [Parameters.accept], @@ -488,9 +488,9 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/compute/arm-compute/src/operations/usageOperations.ts b/sdk/compute/arm-compute/src/operations/usageOperations.ts index 14ae175384ae..bc6a70ec7a94 100644 --- a/sdk/compute/arm-compute/src/operations/usageOperations.ts +++ b/sdk/compute/arm-compute/src/operations/usageOperations.ts @@ -131,8 +131,8 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.location1 + Parameters.location, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -151,9 +151,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.location, Parameters.subscriptionId, - Parameters.nextLink, - Parameters.location1 + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts b/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts index 98dc91979439..2d5b9aef5d2c 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts @@ -109,10 +109,10 @@ const getOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.publisherName, - Parameters.typeParam, - Parameters.version + Parameters.version, + Parameters.typeParam ], headerParameters: [Parameters.accept], serializer @@ -143,7 +143,7 @@ const listTypesOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.publisherName ], headerParameters: [Parameters.accept], @@ -180,7 +180,7 @@ const listVersionsOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.publisherName, Parameters.typeParam ], diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts index f6831e2944a4..cbeceabacf57 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts @@ -386,14 +386,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.extensionParameters, + requestBody: Parameters.extensionParameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.vmName, - Parameters.vmExtensionName + Parameters.resourceGroupName, + Parameters.vmExtensionName, + Parameters.vmName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -420,14 +420,14 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.extensionParameters1, + requestBody: Parameters.extensionParameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.vmName, - Parameters.vmExtensionName + Parameters.resourceGroupName, + Parameters.vmExtensionName, + Parameters.vmName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -449,10 +449,10 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.vmName, - Parameters.vmExtensionName + Parameters.resourceGroupName, + Parameters.vmExtensionName, + Parameters.vmName ], headerParameters: [Parameters.accept], serializer @@ -469,13 +469,13 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.vmName, - Parameters.vmExtensionName + Parameters.resourceGroupName, + Parameters.vmExtensionName, + Parameters.vmName ], headerParameters: [Parameters.accept], serializer @@ -492,11 +492,11 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts b/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts index 6aa4593ed42d..b48b713cfc39 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts @@ -151,11 +151,11 @@ const getOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.publisherName, - Parameters.version, Parameters.offer, - Parameters.skus + Parameters.skus, + Parameters.version ], headerParameters: [Parameters.accept], serializer @@ -184,14 +184,14 @@ const listOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.apiVersion, - Parameters.expand, + Parameters.expand1, Parameters.top, Parameters.orderby ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.publisherName, Parameters.offer, Parameters.skus @@ -225,7 +225,7 @@ const listOffersOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.publisherName ], headerParameters: [Parameters.accept], @@ -257,7 +257,7 @@ const listPublishersOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location1 ], headerParameters: [Parameters.accept], serializer @@ -288,7 +288,7 @@ const listSkusOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.publisherName, Parameters.offer ], diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts b/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts index 1fc0f860f77e..b0e5e0614c4b 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts @@ -163,11 +163,11 @@ const getOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.publisherName, - Parameters.version, Parameters.offer, Parameters.skus, + Parameters.version, Parameters.edgeZone ], headerParameters: [Parameters.accept], @@ -197,14 +197,14 @@ const listOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.apiVersion, - Parameters.expand, + Parameters.expand1, Parameters.top, Parameters.orderby ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.publisherName, Parameters.offer, Parameters.skus, @@ -239,7 +239,7 @@ const listOffersOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.publisherName, Parameters.edgeZone ], @@ -272,7 +272,7 @@ const listPublishersOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.edgeZone ], headerParameters: [Parameters.accept], @@ -304,7 +304,7 @@ const listSkusOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.publisherName, Parameters.offer, Parameters.edgeZone diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts b/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts index 3b13bec43c29..fa76c9ccf411 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts @@ -562,8 +562,8 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.location1 + Parameters.location, + Parameters.subscriptionId ], headerParameters: [Parameters.accept1], serializer @@ -580,8 +580,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.location, Parameters.subscriptionId, - Parameters.location1, Parameters.commandId ], headerParameters: [Parameters.accept1], @@ -612,8 +612,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName, Parameters.runCommandName ], @@ -646,8 +646,8 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName, Parameters.runCommandName ], @@ -671,8 +671,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName, Parameters.runCommandName ], @@ -691,11 +691,11 @@ const getByVirtualMachineOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName, Parameters.runCommandName ], @@ -714,11 +714,11 @@ const listByVirtualMachineOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept1], @@ -735,9 +735,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.location, Parameters.subscriptionId, - Parameters.nextLink, - Parameters.location1 + Parameters.nextLink ], headerParameters: [Parameters.accept1], serializer @@ -753,12 +753,12 @@ const listByVirtualMachineNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept1], diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts index ad06682fe511..e2cbb6a12f24 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts @@ -471,12 +471,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.extensionParameters2, + requestBody: Parameters.extensionParameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.vmssExtensionName ], @@ -505,12 +505,12 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.extensionParameters3, + requestBody: Parameters.extensionParameters1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.vmssExtensionName ], @@ -534,8 +534,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.vmssExtensionName ], @@ -554,11 +554,11 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.vmssExtensionName ], @@ -580,8 +580,8 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], @@ -601,9 +601,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts index 460853136a1d..3b75e5ae82f3 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts @@ -318,8 +318,8 @@ const cancelOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], @@ -341,8 +341,8 @@ const startOSUpgradeOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], @@ -364,8 +364,8 @@ const startExtensionUpgradeOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], @@ -386,8 +386,8 @@ const getLatestOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts index ce01f440a379..a216e1b379f1 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts @@ -422,15 +422,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.extensionParameters4, + requestBody: Parameters.extensionParameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.vmExtensionName, + Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, + Parameters.vmExtensionName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -457,15 +457,15 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.extensionParameters5, + requestBody: Parameters.extensionParameters3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.vmExtensionName, + Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, + Parameters.vmExtensionName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -487,11 +487,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.vmExtensionName, + Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, + Parameters.vmExtensionName ], headerParameters: [Parameters.accept], serializer @@ -508,14 +508,14 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.vmExtensionName, + Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, + Parameters.vmExtensionName ], headerParameters: [Parameters.accept], serializer @@ -532,11 +532,11 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts index 6bed28cf085f..35b0f4b87fe4 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts @@ -531,8 +531,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, Parameters.runCommandName @@ -566,8 +566,8 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, Parameters.runCommandName @@ -592,8 +592,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, Parameters.runCommandName @@ -613,11 +613,11 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, Parameters.runCommandName @@ -637,11 +637,11 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -659,12 +659,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts index 7568d0d36fd6..d515343261a7 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts @@ -1228,8 +1228,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1253,8 +1253,8 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1277,8 +1277,8 @@ const deallocateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1306,12 +1306,12 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters28, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1335,8 +1335,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion, Parameters.forceDeletion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1355,11 +1355,11 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand1], + queryParameters: [Parameters.apiVersion, Parameters.expand2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1381,8 +1381,8 @@ const getInstanceViewOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1403,14 +1403,14 @@ const listOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.apiVersion, - Parameters.expand, + Parameters.expand1, Parameters.filter, Parameters.select ], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.virtualMachineScaleSetName ], headerParameters: [Parameters.accept], @@ -1432,8 +1432,8 @@ const powerOffOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion, Parameters.skipShutdown], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1456,8 +1456,8 @@ const restartOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1480,8 +1480,8 @@ const startOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1504,8 +1504,8 @@ const redeployOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1530,8 +1530,8 @@ const retrieveBootDiagnosticsDataOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1554,8 +1554,8 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1575,8 +1575,8 @@ const simulateEvictionOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1601,12 +1601,12 @@ const runCommandOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.RunCommandResult } }, - requestBody: Parameters.parameters14, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1627,15 +1627,15 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.apiVersion, - Parameters.expand, + Parameters.expand1, Parameters.filter, Parameters.select ], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.virtualMachineScaleSetName ], headerParameters: [Parameters.accept], diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts index 24ddad588fea..0a763798ce91 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts @@ -1801,8 +1801,8 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.location1 + Parameters.location, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1828,12 +1828,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters15, + requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1861,12 +1861,12 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters16, + requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1889,8 +1889,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion, Parameters.forceDeletion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], @@ -1908,11 +1908,11 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand2], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], @@ -1935,8 +1935,8 @@ const deallocateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1960,8 +1960,8 @@ const deleteInstancesOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion, Parameters.forceDeletion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1983,8 +1983,8 @@ const getInstanceViewOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], @@ -2005,8 +2005,8 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -2043,8 +2043,8 @@ const listSkusOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], @@ -2065,8 +2065,8 @@ const getOSUpgradeHistoryOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], @@ -2089,8 +2089,8 @@ const powerOffOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion, Parameters.skipShutdown], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -2114,8 +2114,8 @@ const restartOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -2139,8 +2139,8 @@ const startOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -2164,8 +2164,8 @@ const redeployOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -2189,8 +2189,8 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -2214,8 +2214,8 @@ const updateInstancesOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -2239,8 +2239,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -2264,8 +2264,8 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -2292,8 +2292,8 @@ const forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec: coreClien ], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], @@ -2309,12 +2309,12 @@ const convertToSinglePlacementGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters17, + requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -2334,12 +2334,12 @@ const setOrchestrationServiceStateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters18, + requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -2360,9 +2360,9 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.location, Parameters.subscriptionId, - Parameters.nextLink, - Parameters.location1 + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer @@ -2381,9 +2381,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -2422,9 +2422,9 @@ const listSkusNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], @@ -2444,9 +2444,9 @@ const getOSUpgradeHistoryNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts b/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts index 1c8d89978a47..b95f88ea0177 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts @@ -106,8 +106,8 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.location1 + Parameters.location, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/compute/arm-compute/src/operations/virtualMachines.ts b/sdk/compute/arm-compute/src/operations/virtualMachines.ts index 33ac74d0d841..a67d154eb9ab 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachines.ts @@ -1821,8 +1821,8 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.location1 + Parameters.location, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1848,12 +1848,12 @@ const captureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1881,12 +1881,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1914,12 +1914,12 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters12, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1942,8 +1942,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion, Parameters.forceDeletion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -1961,11 +1961,11 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion, Parameters.expand1], + queryParameters: [Parameters.apiVersion, Parameters.expand2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -1986,8 +1986,8 @@ const instanceViewOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2009,8 +2009,8 @@ const convertToManagedDisksOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2032,8 +2032,8 @@ const deallocateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion, Parameters.hibernate], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2052,8 +2052,8 @@ const generalizeOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2074,8 +2074,8 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -2116,8 +2116,8 @@ const listAvailableSizesOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2139,8 +2139,8 @@ const powerOffOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion, Parameters.skipShutdown], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2162,8 +2162,8 @@ const reapplyOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2185,8 +2185,8 @@ const restartOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2208,8 +2208,8 @@ const startOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2231,8 +2231,8 @@ const redeployOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2251,12 +2251,12 @@ const reimageOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters13, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -2281,8 +2281,8 @@ const retrieveBootDiagnosticsDataOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2304,8 +2304,8 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2324,8 +2324,8 @@ const simulateEvictionOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2355,8 +2355,8 @@ const assessPatchesOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2387,8 +2387,8 @@ const installPatchesOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -2413,12 +2413,12 @@ const runCommandOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.RunCommandResult } }, - requestBody: Parameters.parameters14, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.contentType, Parameters.accept1], @@ -2439,9 +2439,9 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.location, Parameters.subscriptionId, - Parameters.nextLink, - Parameters.location1 + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer @@ -2460,9 +2460,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/index.ts b/sdk/compute/arm-compute/src/operationsInterfaces/index.ts index 91179cafdf10..0efbb818035e 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/index.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/index.ts @@ -7,28 +7,28 @@ */ export * from "./operations"; +export * from "./usageOperations"; +export * from "./virtualMachineSizes"; +export * from "./virtualMachineScaleSets"; +export * from "./virtualMachineScaleSetExtensions"; +export * from "./virtualMachineScaleSetRollingUpgrades"; +export * from "./virtualMachineScaleSetVMExtensions"; +export * from "./virtualMachineScaleSetVMs"; +export * from "./virtualMachineExtensions"; +export * from "./virtualMachines"; +export * from "./virtualMachineImages"; +export * from "./virtualMachineImagesEdgeZone"; +export * from "./virtualMachineExtensionImages"; export * from "./availabilitySets"; export * from "./proximityPlacementGroups"; export * from "./dedicatedHostGroups"; export * from "./dedicatedHosts"; export * from "./sshPublicKeys"; -export * from "./virtualMachineExtensionImages"; -export * from "./virtualMachineExtensions"; -export * from "./virtualMachineImages"; -export * from "./virtualMachineImagesEdgeZone"; -export * from "./usageOperations"; -export * from "./virtualMachines"; -export * from "./virtualMachineScaleSets"; -export * from "./virtualMachineSizes"; export * from "./images"; export * from "./restorePointCollections"; export * from "./restorePoints"; export * from "./capacityReservationGroups"; export * from "./capacityReservations"; -export * from "./virtualMachineScaleSetExtensions"; -export * from "./virtualMachineScaleSetRollingUpgrades"; -export * from "./virtualMachineScaleSetVMExtensions"; -export * from "./virtualMachineScaleSetVMs"; export * from "./logAnalytics"; export * from "./virtualMachineRunCommands"; export * from "./virtualMachineScaleSetVMRunCommands"; diff --git a/sdk/compute/arm-compute/test/sampleTest.ts b/sdk/compute/arm-compute/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/compute/arm-compute/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * 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, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/compute/arm-compute/tsconfig.json b/sdk/compute/arm-compute/tsconfig.json index b84abc8423ab..3e6ae96443f3 100644 --- a/sdk/compute/arm-compute/tsconfig.json +++ b/sdk/compute/arm-compute/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-compute": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"