diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 00427b818f7f..82f197d04a49 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -629,6 +629,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.8.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'} @@ -9772,28 +9787,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.20.0 - '@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 @@ -10863,11 +10877,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.20.0 diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index 546c79cf597a..d0b502b45e1c 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,15 +1,30 @@ # Release History + +## 18.0.0 (2022-04-05) + +**Features** -## 17.3.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added Interface DedicatedHostGroupPropertiesAdditionalCapabilities + - Interface VirtualMachineScaleSetDataDisk has a new optional parameter deleteOption + - Interface VirtualMachineScaleSetOSDisk has a new optional parameter deleteOption + - 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 + - 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..c7a2b6536479 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,7 +1,8 @@ { - "commit": "4042a47cff72c950d35dd72149895b044ed79713", + "commit": "d749e7fe83b8d91653b0c49d38ca974a75f91270", "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=/mnt/vss/_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.3", + "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..1f62ec9f83c0 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) @@ -5304,7 +5276,6 @@ export type Snapshot = Resource & { supportsHibernation?: boolean; publicNetworkAccess?: PublicNetworkAccess; completionPercent?: number; - dataAccessAuthMode?: DataAccessAuthMode; }; // @public @@ -5415,7 +5386,6 @@ export type SnapshotsUpdateResponse = Snapshot; // @public export interface SnapshotUpdate { - dataAccessAuthMode?: DataAccessAuthMode; diskAccessId?: string; diskSizeGB?: number; encryption?: Encryption; @@ -5592,7 +5562,6 @@ export type SubResourceWithColocationStatus = SubResource & { // @public export interface SupportedCapabilities { acceleratedNetwork?: boolean; - architecture?: Architecture; } // @public @@ -5999,7 +5968,6 @@ export type VirtualMachineImage = VirtualMachineImageResource & { hyperVGeneration?: HyperVGenerationTypes; disallowed?: DisallowedConfiguration; features?: VirtualMachineImageFeature[]; - architecture?: ArchitectureTypes; }; // @public @@ -6457,6 +6425,7 @@ export type VirtualMachineScaleSet = Resource & { export interface VirtualMachineScaleSetDataDisk { caching?: CachingTypes; createOption: DiskCreateOptionTypes; + deleteOption?: DiskDeleteOptionTypes; diskIopsReadWrite?: number; diskMBpsReadWrite?: number; diskSizeGB?: number; @@ -6685,6 +6654,7 @@ export interface VirtualMachineScaleSetNetworkProfile { export interface VirtualMachineScaleSetOSDisk { caching?: CachingTypes; createOption: DiskCreateOptionTypes; + deleteOption?: DiskDeleteOptionTypes; diffDiskSettings?: DiffDiskSettings; diskSizeGB?: number; image?: VirtualHardDisk; 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..19e0a8a4d41a 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,283 @@ 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 whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only).

Possible values:

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

**Detach** If this value is used, the OS disk is retained after VMSS Flex VM is deleted.

The default value is set to **Delete**. For an Ephemeral OS Disk, the default value is set to **Delete**. User cannot change the delete option for Ephemeral OS Disk. */ + deleteOption?: DiskDeleteOptionTypes; + /** 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 +424,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,1118 +442,1100 @@ 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 whether data disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only).

Possible values:

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

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

The default value is set to **Delete**. */ + deleteOption?: DiskDeleteOptionTypes; /** 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; + 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 number of all available patches expected to be installed over the course of the patch installation operation. + * 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; -} - -/** 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 { - /** - * Resource Id - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; + /** Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset */ + toBeDetached?: boolean; /** - * Resource name + * 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 name?: string; + readonly diskIopsReadWrite?: number; /** - * Resource type + * 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 type?: string; + 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 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; +/** 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; } -export interface CapacityReservationGroupInstanceView { - /** - * 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 capacityReservations?: CapacityReservationInstanceViewWithName[]; +/** 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 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[]; +/** 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; } -/** Represents the capacity reservation utilization in terms of resources allocated. */ -export interface CapacityReservationUtilization { - /** - * 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 virtualMachinesAllocated?: SubResourceReadOnly[]; +/** Describes a virtual machines network configuration's DNS settings. */ +export interface VirtualMachineNetworkInterfaceDnsSettingsConfiguration { + /** List of DNS servers IP addresses */ + dnsServers?: 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; +/** 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[]; } -/** 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; +/** 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; } -/** 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 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 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; } /** The SAS URIs of the console screenshot and serial log blobs. */ @@ -1610,21 +1552,236 @@ export interface RetrieveBootDiagnosticsDataResult { readonly serialConsoleLogBlobUri?: string; } -/** Describes the properties of an AssessPatches result. */ -export interface VirtualMachineAssessPatchesResult { +/** The List Extension operation response */ +export interface VirtualMachineExtensionsListResult { + /** The list of extensions */ + value?: VirtualMachineExtension[]; +} + +/** 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; +} + +/** 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 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." + * The health status for the VM. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: PatchOperationStatus; + 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 activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs. + * 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 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 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. */ +export interface VirtualMachineAssessPatchesResult { + /** + * 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; /** @@ -1844,477 +2001,330 @@ 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; -} - -/** 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[]; +/** 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 storage profile. */ -export interface VirtualMachineScaleSetUpdateStorageProfile { - /** The image reference. */ - imageReference?: ImageReference; - /** The OS disk. */ - osDisk?: VirtualMachineScaleSetUpdateOSDisk; - /** The data disks. */ - dataDisks?: VirtualMachineScaleSetDataDisk[]; +/** Contains the os disk image information. */ +export interface OSDiskImage { + /** The operating system of the osDiskImage. */ + operatingSystem: OperatingSystemTypes; } -/** 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; +/** 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 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 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 machines scale set IP Configuration's PublicIPAddress configuration */ -export interface VirtualMachineScaleSetUpdatePublicIPAddressConfiguration { - /** The publicIP address configuration name. */ +/** Specifies the disallowed configuration for a virtual machine image. */ +export interface DisallowedConfiguration { + /** VM disk types which are disallowed. */ + vmDiskType?: VmDiskTypes; +} + +/** 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. Please refer to https://docs.microsoft.com/en-us/azure/virtual-machines/disks-enable-ultra-ssd for more details on Ultra SSD feature.

NOTE: The ultraSSDEnabled setting can only be enabled for Host Groups that are created as zonal.

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 { +/** The properties of the source resource that this restore point collection is created from. */ +export interface RestorePointCollectionSourceProperties { /** - * 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 + * 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 { - /** - * 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 successfullyRolledbackInstanceCount?: number; - /** - * The number of instances which failed to rollback. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - 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; +/** 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; } -/** 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; +/** 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 { /** - * Start time of the upgrade. + * Resource Id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly id?: string; /** - * The last action performed on the rolling upgrade. + * Resource name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastAction?: RollingUpgradeActionType; + readonly name?: string; /** - * Last action time of the upgrade. + * Resource type * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastActionTime?: Date; + readonly type?: string; } -/** Response after calling a manual recovery walk */ -export interface RecoveryWalkResponse { +/** 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 { /** - * Whether the recovery walk was performed + * 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 walkPerformed?: boolean; + 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 { /** - * The next update domain that needs to be walked. Null means walk spanning all update domains has been completed + * 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 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 virtualMachinesAllocated?: SubResourceReadOnly[]; } -/** The input for OrchestrationServiceState */ -export interface OrchestrationServiceStateInput { - /** The name of the service. */ - serviceName: OrchestrationServiceNames; - /** The action to be performed. */ - action: OrchestrationServiceStateAction; +/** 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 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; +/** 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. */ @@ -2688,12 +2698,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 +2843,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 +2854,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 +2920,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 +4135,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 +4159,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 +4203,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,133 +4247,75 @@ 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 resource status information. - * 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; - /** - * 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 virtualMachines?: SubResourceWithColocationStatus[]; - /** - * 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 virtualMachineScaleSets?: SubResourceWithColocationStatus[]; - /** - * 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 availabilitySets?: SubResourceWithColocationStatus[]; - /** Describes colocation status of the Proximity Placement Group. */ - colocationStatus?: InstanceViewStatus; +/** 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; }; -/** 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[]; - /** - * 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 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; +/** 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; }; -/** 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; - /** - * 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 hostId?: string; - /** - * 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 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; +/** Output of virtual machine capture operation. */ +export type VirtualMachineCaptureResult = SubResource & { /** - * The date when the host was first provisioned. + * the schema of the captured virtual machine * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningTime?: Date; + readonly schema?: string; /** - * The provisioning state, which only appears in the response. + * the version of the content * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly contentVersion?: string; /** - * The dedicated host instance view. + * parameters of the captured virtual machine * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly instanceView?: DedicatedHostInstanceView; + readonly parameters?: Record; /** - * Specifies the time at which the Dedicated Host resource was created.

Minimum api-version: 2021-11-01. + * 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 timeCreated?: Date; + readonly resources?: Record[]; }; -/** 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; +/** 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; }; -/** 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; +export type SubResourceWithColocationStatus = SubResource & { + /** Describes colocation status of a resource in the Proximity Placement Group. */ + colocationStatus?: InstanceViewStatus; }; -/** Describes a Virtual Machine Extension. */ -export type VirtualMachineExtension = Resource & { - /** How the extension handler should be forced to update even if the extension configuration has not changed. */ +/** 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. */ forceUpdateTag?: string; /** The name of the extension handler publisher. */ publisher?: string; @@ -4449,93 +4336,128 @@ export type VirtualMachineExtension = Resource & { * 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; + /** 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. */ -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; +/** Describes a Virtual Machine Scale Set Extension. */ +export type VirtualMachineScaleSetExtensionUpdate = SubResourceReadOnly & { /** - * The virtual machine child extension resources. + * The name of the extension. * 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; + readonly 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. */ + 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 virtual machine instance view. + * The name of the extension. * 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; + readonly name?: 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. + * Resource type * 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 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; /** - * Specifies the time at which the Virtual Machine resource was created.

    Minimum api-version: 2021-11-01. + * 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 timeCreated?: Date; + 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; +}; + +/** Describes a VMSS VM Extension. */ +export type VirtualMachineScaleSetVMExtensionUpdate = SubResourceReadOnly & { + /** + * The name of the extension. + * 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; + /** 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,154 +4511,88 @@ 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 Extension. */ +export type VirtualMachineExtension = Resource & { + /** 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; /** - * A list of all capacity reservation resource ids that belong to capacity reservation group. + * 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 capacityReservations?: SubResourceReadOnly[]; + 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; +}; + +/** Describes a virtual machine scale set virtual machine. */ +export type VirtualMachineScaleSetVM = Resource & { /** - * A list of references to all virtual machines associated to the capacity reservation group. + * The virtual machine instance ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly virtualMachinesAssociated?: SubResourceReadOnly[]; + readonly instanceId?: 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 virtual machine SKU. * 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[]; + readonly sku?: Sku; + /** 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; /** - * A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource. + * The virtual machine child extension resources. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reservationId?: string; + readonly resources?: VirtualMachineExtension[]; /** - * 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. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sku?: Sku; - /** 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 virtual machine zones. + * The virtual machine zones. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly zones?: string[]; @@ -4791,644 +4647,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; + 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; /** - * 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. + * 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; -}; - -/** 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; + readonly instanceView?: CapacityReservationInstanceView; /** - * The provisioning state, which only appears in the response. + * 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 provisioningState?: GalleryApplicationVersionPropertiesProvisioningState; + readonly timeCreated?: Date; +}; + +/** 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; /** - * This is the replication status of the gallery image version. + * 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 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; + 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; /** - * 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 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; /** - * Specifies the time at which the Capacity Reservation resource was created.

    Minimum api-version: 2021-11-01. + * 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 timeCreated?: Date; + 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; }; /** Describes a Virtual Machine Scale Set. */ @@ -5459,53 +5336,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,204 +5354,368 @@ 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; - /** - * 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. */ - 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; +/** 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; /** * 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 name of the extension. + * The virtual machine instance view. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: 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; /** - * Resource type + * 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 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 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 provisioning state, which only appears in the response. + * 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 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 timeCreated?: Date; }; -/** Describes a VMSS VM Extension. */ -export type VirtualMachineScaleSetVMExtensionUpdate = SubResourceReadOnly & { +/** 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 name of the extension. + * The resource status information. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly statuses?: InstanceViewStatus[]; +}; + +/** 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; /** - * Resource type + * 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 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; -}; - -/** 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 & { + readonly hosts?: SubResourceReadOnly[]; /** - * The name of the dedicated host. + * 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 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; + 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; }; -/** 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[]; +/** 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; /** - * Gets the details of the VM captured at the time of the restore point creation. + * 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 sourceMetadata?: RestorePointSourceMetadata; + readonly hostId?: string; /** - * Gets the provisioning state of the restore point. + * 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 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 date when the host was first provisioned. + * 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; /** - * Gets the consistency mode for the restore point. Please refer to https://aka.ms/RestorePoints for more details. + * The dedicated host instance view. * 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 instanceView?: DedicatedHostInstanceView; /** - * The restore point instance view. + * 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 instanceView?: RestorePointInstanceView; + readonly timeCreated?: Date; }; -/** 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 & { +/** 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; +}; + +/** 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 name of the capacity reservation. + * The provisioning state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + 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; }; -/** Describes a Virtual Machine Scale Set VM Reimage Parameters. */ -export type VirtualMachineScaleSetVMReimageParameters = VirtualMachineReimageParameters & {}; - -/** Api request input for LogAnalytics getRequestRateByInterval Api. */ -export type RequestRateByIntervalInput = LogAnalyticsInputBase & { - /** Interval value in minutes used to create LogAnalytics call rate logs. */ - intervalLength: IntervalInMins; +/** 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 & {}; + +/** 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; }; /** Api request input for LogAnalytics getThrottledRequests Api. */ @@ -5748,7 +5750,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 +5844,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 +5982,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 +6023,123 @@ 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** + * **Manual** \ + * **AutomaticByOS** \ + * **AutomaticByPlatform** */ -export type HyperVGenerationTypes = string; +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 DiskDeleteOptionTypes} that the service accepts. */ +export enum KnownDiskDeleteOptionTypes { + Delete = "Delete", + Detach = "Detach" +} + +/** + * 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 + * **Delete** \ + * **Detach** + */ +export type DiskDeleteOptionTypes = string; /** Known values of {@link DiffDiskOptions} that the service accepts. */ export enum KnownDiffDiskOptions { @@ -6477,24 +6171,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,229 +6211,117 @@ export enum KnownSecurityEncryptionTypes { */ export type SecurityEncryptionTypes = string; -/** Known values of {@link DiskDeleteOptionTypes} that the service accepts. */ -export enum KnownDiskDeleteOptionTypes { - Delete = "Delete", - Detach = "Detach" +/** Known values of {@link IPVersion} that the service accepts. */ +export enum KnownIPVersion { + IPv4 = "IPv4", + IPv6 = "IPv6" } /** - * Defines values for DiskDeleteOptionTypes. \ - * {@link KnownDiskDeleteOptionTypes} can be used interchangeably with DiskDeleteOptionTypes, + * 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 - * **Delete** \ - * **Detach** + * **IPv4** \ + * **IPv6** */ -export type DiskDeleteOptionTypes = string; +export type IPVersion = string; -/** Known values of {@link DiskDetachOptionTypes} that the service accepts. */ -export enum KnownDiskDetachOptionTypes { - ForceDetach = "ForceDetach" +/** Known values of {@link DeleteOptions} that the service accepts. */ +export enum KnownDeleteOptions { + Delete = "Delete", + Detach = "Detach" } /** - * Defines values for DiskDetachOptionTypes. \ - * {@link KnownDiskDetachOptionTypes} can be used interchangeably with DiskDetachOptionTypes, + * 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 - * **ForceDetach** + * **Delete** \ + * **Detach** */ -export type DiskDetachOptionTypes = string; +export type DeleteOptions = string; -/** Known values of {@link WindowsVMGuestPatchMode} that the service accepts. */ -export enum KnownWindowsVMGuestPatchMode { - Manual = "Manual", - AutomaticByOS = "AutomaticByOS", - AutomaticByPlatform = "AutomaticByPlatform" +/** Known values of {@link PublicIPAddressSkuName} that the service accepts. */ +export enum KnownPublicIPAddressSkuName { + Basic = "Basic", + Standard = "Standard" } /** - * Defines values for WindowsVMGuestPatchMode. \ - * {@link KnownWindowsVMGuestPatchMode} can be used interchangeably with WindowsVMGuestPatchMode, + * 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 - * **Manual** \ - * **AutomaticByOS** \ - * **AutomaticByPlatform** + * **Basic** \ + * **Standard** */ -export type WindowsVMGuestPatchMode = string; +export type PublicIPAddressSkuName = string; -/** Known values of {@link WindowsPatchAssessmentMode} that the service accepts. */ -export enum KnownWindowsPatchAssessmentMode { - ImageDefault = "ImageDefault", - AutomaticByPlatform = "AutomaticByPlatform" +/** Known values of {@link PublicIPAddressSkuTier} that the service accepts. */ +export enum KnownPublicIPAddressSkuTier { + Regional = "Regional", + Global = "Global" } /** - * Defines values for WindowsPatchAssessmentMode. \ - * {@link KnownWindowsPatchAssessmentMode} can be used interchangeably with WindowsPatchAssessmentMode, + * 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 - * **ImageDefault** \ - * **AutomaticByPlatform** + * **Regional** \ + * **Global** */ -export type WindowsPatchAssessmentMode = string; +export type PublicIPAddressSkuTier = string; -/** Known values of {@link LinuxVMGuestPatchMode} that the service accepts. */ -export enum KnownLinuxVMGuestPatchMode { - ImageDefault = "ImageDefault", - AutomaticByPlatform = "AutomaticByPlatform" +/** Known values of {@link NetworkApiVersion} that the service accepts. */ +export enum KnownNetworkApiVersion { + TwoThousandTwenty1101 = "2020-11-01" } /** - * Defines values for LinuxVMGuestPatchMode. \ - * {@link KnownLinuxVMGuestPatchMode} can be used interchangeably with LinuxVMGuestPatchMode, + * 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 LinuxVMGuestPatchMode = string; +export type NetworkApiVersion = string; -/** Known values of {@link LinuxPatchAssessmentMode} that the service accepts. */ -export enum KnownLinuxPatchAssessmentMode { - ImageDefault = "ImageDefault", - AutomaticByPlatform = "AutomaticByPlatform" +/** Known values of {@link SecurityTypes} that the service accepts. */ +export enum KnownSecurityTypes { + TrustedLaunch = "TrustedLaunch", + ConfidentialVM = "ConfidentialVM" } /** - * Defines values for LinuxPatchAssessmentMode. \ - * {@link KnownLinuxPatchAssessmentMode} can be used interchangeably with LinuxPatchAssessmentMode, + * 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 LinuxPatchAssessmentMode = string; +export type SecurityTypes = string; -/** Known values of {@link DeleteOptions} that the service accepts. */ -export enum KnownDeleteOptions { - Delete = "Delete", - Detach = "Detach" +/** Known values of {@link VirtualMachinePriorityTypes} that the service accepts. */ +export enum KnownVirtualMachinePriorityTypes { + Regular = "Regular", + Low = "Low", + Spot = "Spot" } /** - * Defines values for DeleteOptions. \ - * {@link KnownDeleteOptions} can be used interchangeably with DeleteOptions, + * Defines values for VirtualMachinePriorityTypes. \ + * {@link KnownVirtualMachinePriorityTypes} can be used interchangeably with VirtualMachinePriorityTypes, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Delete** \ - * **Detach** + * **Regular** \ + * **Low** \ + * **Spot** */ -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; - -/** Known values of {@link VirtualMachinePriorityTypes} that the service accepts. */ -export enum KnownVirtualMachinePriorityTypes { - Regular = "Regular", - Low = "Low", - Spot = "Spot" -} - -/** - * Defines values for VirtualMachinePriorityTypes. \ - * {@link KnownVirtualMachinePriorityTypes} can be used interchangeably with VirtualMachinePriorityTypes, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Regular** \ - * **Low** \ - * **Spot** - */ -export type VirtualMachinePriorityTypes = string; +export type VirtualMachinePriorityTypes = string; /** Known values of {@link VirtualMachineEvictionPolicyTypes} that the service accepts. */ export enum KnownVirtualMachineEvictionPolicyTypes { @@ -6775,217 +6339,545 @@ 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 OperatingSystemType = string; - -/** Known values of {@link ConsistencyModeTypes} that the service accepts. */ -export enum KnownConsistencyModeTypes { - CrashConsistent = "CrashConsistent", - FileSystemConsistent = "FileSystemConsistent", - ApplicationConsistent = "ApplicationConsistent" -} +export type OrchestrationServiceStateAction = string; -/** - * Defines values for ConsistencyModeTypes. \ - * {@link KnownConsistencyModeTypes} can be used interchangeably with ConsistencyModeTypes, +/** 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 - * **CrashConsistent** \ - * **FileSystemConsistent** \ - * **ApplicationConsistent** + * **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 ConsistencyModeTypes = string; +export type VirtualMachineSizeTypes = 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 +7027,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 +7267,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 +7429,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 +7904,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 +8022,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 +8034,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 +8048,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 +8069,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 +8180,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 +8192,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 +8346,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 +8363,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 +8375,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 +8387,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 +8418,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 +8427,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 +8501,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 +8510,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 +8519,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 +8528,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 +8547,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 +8559,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 +8585,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 +8597,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 +8609,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 +8658,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 +8670,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 +8684,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 +8710,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 +8721,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 +8765,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 +8792,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 +8801,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 +8812,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 +8831,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 +8843,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 +9195,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 +9207,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 +9219,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 +9244,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 +9321,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 +9333,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 +9345,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 +9404,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 +9450,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 +9463,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 +9549,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 +9561,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 +9573,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..a2c073a8fcab 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,77 @@ export const OSDisk: coreClient.CompositeMapper = { name: "String" } }, + deleteOption: { + serializedName: "deleteOption", + type: { + name: "String" + } + }, + diffDiskSettings: { + serializedName: "diffDiskSettings", + type: { + name: "Composite", + className: "DiffDiskSettings" + } + }, diskSizeGB: { serializedName: "diskSizeGB", type: { name: "Number" } }, - managedDisk: { - serializedName: "managedDisk", + osType: { + serializedName: "osType", + type: { + name: "Enum", + allowedValues: ["Windows", "Linux"] + } + }, + image: { + serializedName: "image", type: { name: "Composite", - className: "ManagedDiskParameters" + className: "VirtualHardDisk" } }, - deleteOption: { - serializedName: "deleteOption", + vhdContainers: { + serializedName: "vhdContainers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + managedDisk: { + serializedName: "managedDisk", + type: { + name: "Composite", + className: "VirtualMachineScaleSetManagedDiskParameters" } } } } }; -export const DiskEncryptionSettings: coreClient.CompositeMapper = { +export const DiffDiskSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskEncryptionSettings", + className: "DiffDiskSettings", modelProperties: { - diskEncryptionKey: { - serializedName: "diskEncryptionKey", + option: { + serializedName: "option", type: { - name: "Composite", - className: "KeyVaultSecretReference" + name: "String" } }, - keyEncryptionKey: { - serializedName: "keyEncryptionKey", - type: { - name: "Composite", - className: "KeyVaultKeyReference" - } - }, - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const KeyVaultSecretReference: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "KeyVaultSecretReference", - modelProperties: { - secretUrl: { - serializedName: "secretUrl", - required: true, - 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 +1222,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 +1273,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: { @@ -1391,6 +1311,12 @@ export const DataDisk: coreClient.CompositeMapper = { name: "String" } }, + deleteOption: { + serializedName: "deleteOption", + type: { + name: "String" + } + }, diskSizeGB: { serializedName: "diskSizeGB", type: { @@ -1401,37 +1327,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 +1380,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", - type: { - name: "Boolean" - } - }, - enableAutomaticUpdates: { - serializedName: "enableAutomaticUpdates", - type: { - name: "Boolean" - } - }, - timeZone: { - serializedName: "timeZone", + domainNameLabel: { + serializedName: "domainNameLabel", + required: true, 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 VirtualMachineScaleSetIpTag: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdditionalUnattendContent", + className: "VirtualMachineScaleSetIpTag", modelProperties: { - passName: { - defaultValue: "OobeSystem", - isConstant: true, - serializedName: "passName", + ipTagType: { + serializedName: "ipTagType", type: { name: "String" } }, - componentName: { - defaultValue: "Microsoft-Windows-Shell-Setup", - isConstant: true, - serializedName: "componentName", + tag: { + serializedName: "tag", type: { name: "String" } - }, - settingName: { - serializedName: "settingName", + } + } + } +}; + +export const PublicIPAddressSku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PublicIPAddressSku", + modelProperties: { + name: { + serializedName: "name", type: { - name: "Enum", - allowedValues: ["AutoLogon", "FirstLogonCommands"] + name: "String" } }, - content: { - serializedName: "content", + tier: { + serializedName: "tier", type: { name: "String" } @@ -1623,25 +1541,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 +1569,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 +1670,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: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkInterfaceReference" - } - } - } - }, - networkApiVersion: { - serializedName: "networkApiVersion", - type: { - name: "String" + name: "Composite", + className: "SubResource" } - }, - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", + } + } + } +}; + +export const ApplicationProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationProfile", + modelProperties: { + galleryApplications: { + serializedName: "galleryApplications", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineNetworkInterfaceConfiguration" + className: "VMGalleryApplication" } } } @@ -1879,92 +1759,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,81 +1866,78 @@ 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, - type: { - name: "String" - } - }, - subnet: { - serializedName: "properties.subnet", - type: { - name: "Composite", - className: "SubResource" - } - }, - primary: { - serializedName: "properties.primary", + enabled: { + serializedName: "enabled", type: { name: "Boolean" } }, - publicIPAddressConfiguration: { - serializedName: "properties.publicIPAddressConfiguration", + restoreTimeout: { + serializedName: "restoreTimeout", type: { - name: "Composite", - className: "VirtualMachinePublicIPAddressConfiguration" + name: "String" } - }, - privateIPAddressVersion: { - serializedName: "properties.privateIPAddressVersion", + } + } + } +}; + +export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, type: { name: "String" } }, - applicationSecurityGroups: { - serializedName: "properties.applicationSecurityGroups", + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } }, - applicationGatewayBackendAddressPools: { - serializedName: "properties.applicationGatewayBackendAddressPools", + type: { + serializedName: "type", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Enum", + allowedValues: [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ] } }, - loadBalancerBackendAddressPools: { - serializedName: "properties.loadBalancerBackendAddressPools", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { name: "Composite", - className: "SubResource" + className: + "VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue" } } } @@ -2056,157 +1946,163 @@ export const VirtualMachineNetworkInterfaceIPConfiguration: coreClient.Composite } }; -export const VirtualMachinePublicIPAddressConfiguration: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachinePublicIPAddressConfiguration", + className: "VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue", modelProperties: { - name: { - serializedName: "name", - required: true, + principalId: { + serializedName: "principalId", + readOnly: true, type: { name: "String" } }, - sku: { - serializedName: "sku", + clientId: { + serializedName: "clientId", + readOnly: true, type: { - name: "Composite", - className: "PublicIPAddressSku" + name: "String" } - }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", + } + } + } +}; + +export const ExtendedLocation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExtendedLocation", + modelProperties: { + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - deleteOption: { - serializedName: "properties.deleteOption", + type: { + serializedName: "type", type: { name: "String" } - }, - dnsSettings: { - serializedName: "properties.dnsSettings", + } + } + } +}; + +export const Resource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, type: { - name: "Composite", - className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration" + name: "String" } }, - 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,183 +2111,291 @@ 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" + } + }, + dataDisks: { + serializedName: "dataDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetDataDisk" + } + } } } } } }; -export const BillingProfile: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdateOSDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BillingProfile", + className: "VirtualMachineScaleSetUpdateOSDisk", modelProperties: { - maxPrice: { - serializedName: "maxPrice", + 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", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + managedDisk: { + serializedName: "managedDisk", + type: { + name: "Composite", + className: "VirtualMachineScaleSetManagedDiskParameters" + } } } } }; -export const VirtualMachineInstanceView: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdateNetworkProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineInstanceView", + className: "VirtualMachineScaleSetUpdateNetworkProfile", modelProperties: { - platformUpdateDomain: { - serializedName: "platformUpdateDomain", + healthProbe: { + serializedName: "healthProbe", type: { - name: "Number" + name: "Composite", + className: "ApiEntityReference" } }, - platformFaultDomain: { - serializedName: "platformFaultDomain", + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateNetworkConfiguration" + } + } } }, - computerName: { - serializedName: "computerName", + networkApiVersion: { + serializedName: "networkApiVersion", type: { name: "String" } - }, - osName: { - serializedName: "osName", + } + } + } +}; + +export const VirtualMachineScaleSetUpdatePublicIPAddressConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - osVersion: { - serializedName: "osVersion", + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", type: { - name: "String" + name: "Number" } }, - hyperVGeneration: { - serializedName: "hyperVGeneration", + dnsSettings: { + serializedName: "properties.dnsSettings", type: { - name: "String" + name: "Composite", + className: + "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" } }, - rdpThumbPrint: { - serializedName: "rdpThumbPrint", + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - vmAgent: { - serializedName: "vmAgent", + deleteOption: { + serializedName: "properties.deleteOption", type: { - name: "Composite", - className: "VirtualMachineAgentInstanceView" + name: "String" } - }, - maintenanceRedeployStatus: { - serializedName: "maintenanceRedeployStatus", + } + } + } +}; + +export const UpdateResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateResource", + modelProperties: { + tags: { + serializedName: "tags", type: { - name: "Composite", - className: "MaintenanceRedeployStatus" + name: "Dictionary", + value: { type: { name: "String" } } } - }, - disks: { - serializedName: "disks", + } + } + } +}; + +export const VirtualMachineScaleSetVMInstanceIDs: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMInstanceIDs", + modelProperties: { + instanceIds: { + serializedName: "instanceIds", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "DiskInstanceView" + name: "String" } } } - }, - extensions: { - serializedName: "extensions", + } + } + } +}; + +export const VirtualMachineScaleSetVMInstanceRequiredIDs: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMInstanceRequiredIDs", + modelProperties: { + instanceIds: { + serializedName: "instanceIds", + required: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "VirtualMachineExtensionInstanceView" + name: "String" } } } - }, - vmHealth: { - serializedName: "vmHealth", - type: { - name: "Composite", - className: "VirtualMachineHealthStatus" - } - }, - bootDiagnostics: { - serializedName: "bootDiagnostics", + } + } + } +}; + +export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetInstanceView", + modelProperties: { + virtualMachine: { + serializedName: "virtualMachine", type: { name: "Composite", - className: "BootDiagnosticsInstanceView" + className: "VirtualMachineScaleSetInstanceViewStatusesSummary" } }, - assignedHost: { - serializedName: "assignedHost", + extensions: { + serializedName: "extensions", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtensionsSummary" + } + } } }, statuses: { @@ -2406,48 +2410,37 @@ export const VirtualMachineInstanceView: coreClient.CompositeMapper = { } } }, - patchStatus: { - serializedName: "patchStatus", + orchestrationServices: { + serializedName: "orchestrationServices", + readOnly: true, type: { - name: "Composite", - className: "VirtualMachinePatchStatus" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OrchestrationServiceSummary" + } + } } } } } }; -export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetInstanceViewStatusesSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineAgentInstanceView", + className: "VirtualMachineScaleSetInstanceViewStatusesSummary", modelProperties: { - vmAgentVersion: { - serializedName: "vmAgentVersion", - type: { - name: "String" - } - }, - extensionHandlers: { - serializedName: "extensionHandlers", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineExtensionHandlerInstanceView" - } - } - } - }, - statuses: { - serializedName: "statuses", + statusesSummary: { + serializedName: "statusesSummary", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "InstanceViewStatus" + className: "VirtualMachineStatusCodeCount" } } } @@ -2456,83 +2449,113 @@ export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { } }; -export const VirtualMachineExtensionHandlerInstanceView: coreClient.CompositeMapper = { +export const VirtualMachineStatusCodeCount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineExtensionHandlerInstanceView", + className: "VirtualMachineStatusCodeCount", modelProperties: { - type: { - serializedName: "type", + code: { + serializedName: "code", + readOnly: true, type: { name: "String" } }, - typeHandlerVersion: { - serializedName: "typeHandlerVersion", + count: { + serializedName: "count", + readOnly: true, + type: { + name: "Number" + } + } + } + } +}; + +export const VirtualMachineScaleSetVMExtensionsSummary: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtensionsSummary", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - status: { - serializedName: "status", + statusesSummary: { + serializedName: "statusesSummary", + readOnly: true, type: { - name: "Composite", - className: "InstanceViewStatus" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineStatusCodeCount" + } + } } } } } }; -export const MaintenanceRedeployStatus: coreClient.CompositeMapper = { +export const InstanceViewStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceRedeployStatus", + className: "InstanceViewStatus", modelProperties: { - isCustomerInitiatedMaintenanceAllowed: { - serializedName: "isCustomerInitiatedMaintenanceAllowed", + code: { + serializedName: "code", type: { - name: "Boolean" + name: "String" } }, - preMaintenanceWindowStartTime: { - serializedName: "preMaintenanceWindowStartTime", + level: { + serializedName: "level", type: { - name: "DateTime" + name: "Enum", + allowedValues: ["Info", "Warning", "Error"] } }, - preMaintenanceWindowEndTime: { - serializedName: "preMaintenanceWindowEndTime", + displayStatus: { + serializedName: "displayStatus", type: { - name: "DateTime" + name: "String" } }, - maintenanceWindowStartTime: { - serializedName: "maintenanceWindowStartTime", + message: { + serializedName: "message", type: { - name: "DateTime" + name: "String" } }, - maintenanceWindowEndTime: { - serializedName: "maintenanceWindowEndTime", + time: { + serializedName: "time", type: { name: "DateTime" } - }, - lastOperationResultCode: { - serializedName: "lastOperationResultCode", + } + } + } +}; + +export const OrchestrationServiceSummary: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OrchestrationServiceSummary", + modelProperties: { + serviceName: { + serializedName: "serviceName", + readOnly: true, type: { - name: "Enum", - allowedValues: [ - "None", - "RetryLater", - "MaintenanceAborted", - "MaintenanceCompleted" - ] + name: "String" } }, - lastOperationMessage: { - serializedName: "lastOperationMessage", + serviceState: { + serializedName: "serviceState", + readOnly: true, type: { name: "String" } @@ -2541,269 +2564,357 @@ export const MaintenanceRedeployStatus: coreClient.CompositeMapper = { } }; -export const DiskInstanceView: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetExtensionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskInstanceView", + className: "VirtualMachineScaleSetExtensionListResult", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - encryptionSettings: { - serializedName: "encryptionSettings", + 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" + } + } + } + } +}; + +export const UpgradeOperationHistoricalStatusInfoProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpgradeOperationHistoricalStatusInfoProperties", + modelProperties: { + runningStatus: { + serializedName: "runningStatus", + type: { + name: "Composite", + className: "UpgradeOperationHistoryStatus" } }, - criticalAndSecurityPatchCount: { - serializedName: "criticalAndSecurityPatchCount", - readOnly: true, + progress: { + serializedName: "progress", type: { - name: "Number" + name: "Composite", + className: "RollingUpgradeProgressInfo" } }, - otherPatchCount: { - serializedName: "otherPatchCount", - readOnly: true, + error: { + serializedName: "error", type: { - name: "Number" + name: "Composite", + className: "ApiError" } }, - startTime: { - serializedName: "startTime", + startedBy: { + serializedName: "startedBy", readOnly: true, type: { - name: "DateTime" + name: "Enum", + allowedValues: ["Unknown", "User", "Platform"] } }, - lastModifiedTime: { - serializedName: "lastModifiedTime", - readOnly: true, + targetImageReference: { + serializedName: "targetImageReference", type: { - name: "DateTime" + name: "Composite", + className: "ImageReference" } }, - error: { - serializedName: "error", + rollbackInfo: { + serializedName: "rollbackInfo", type: { name: "Composite", - className: "ApiError" + 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 +2924,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 +3039,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, - type: { + 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 +3537,7 @@ export const VirtualMachineScaleSetStorageProfile: coreClient.CompositeMapper = serializedName: "osDisk", type: { name: "Composite", - className: "VirtualMachineScaleSetOSDisk" + className: "OSDisk" } }, dataDisks: { @@ -3355,7 +3547,7 @@ export const VirtualMachineScaleSetStorageProfile: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "VirtualMachineScaleSetDataDisk" + className: "DataDisk" } } } @@ -3364,131 +3556,125 @@ export const VirtualMachineScaleSetStorageProfile: coreClient.CompositeMapper = } }; -export const VirtualMachineScaleSetOSDisk: coreClient.CompositeMapper = { +export const OSDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetOSDisk", + className: "OSDisk", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - caching: { - serializedName: "caching", + osType: { + serializedName: "osType", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] + allowedValues: ["Windows", "Linux"] } }, - writeAcceleratorEnabled: { - serializedName: "writeAcceleratorEnabled", + encryptionSettings: { + serializedName: "encryptionSettings", type: { - name: "Boolean" + name: "Composite", + className: "DiskEncryptionSettings" } }, - createOption: { - serializedName: "createOption", - required: true, + name: { + serializedName: "name", type: { name: "String" } }, - diffDiskSettings: { - serializedName: "diffDiskSettings", + vhd: { + serializedName: "vhd", type: { name: "Composite", - className: "DiffDiskSettings" + className: "VirtualHardDisk" } }, - diskSizeGB: { - serializedName: "diskSizeGB", + image: { + serializedName: "image", type: { - name: "Number" + name: "Composite", + className: "VirtualHardDisk" } }, - osType: { - serializedName: "osType", + caching: { + serializedName: "caching", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] + allowedValues: ["None", "ReadOnly", "ReadWrite"] } }, - image: { - serializedName: "image", + writeAcceleratorEnabled: { + serializedName: "writeAcceleratorEnabled", type: { - name: "Composite", - className: "VirtualHardDisk" + name: "Boolean" } }, - vhdContainers: { - serializedName: "vhdContainers", + diffDiskSettings: { + serializedName: "diffDiskSettings", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "DiffDiskSettings" } }, - managedDisk: { - serializedName: "managedDisk", + createOption: { + serializedName: "createOption", + required: true, type: { - name: "Composite", - className: "VirtualMachineScaleSetManagedDiskParameters" + name: "String" } - } - } - } -}; - -export const VirtualMachineScaleSetManagedDiskParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetManagedDiskParameters", - modelProperties: { - storageAccountType: { - serializedName: "storageAccountType", + }, + diskSizeGB: { + serializedName: "diskSizeGB", type: { - name: "String" + name: "Number" } }, - diskEncryptionSet: { - serializedName: "diskEncryptionSet", + managedDisk: { + serializedName: "managedDisk", type: { name: "Composite", - className: "DiskEncryptionSetParameters" + className: "ManagedDiskParameters" } }, - securityProfile: { - serializedName: "securityProfile", + deleteOption: { + serializedName: "deleteOption", type: { - name: "Composite", - className: "VMDiskSecurityProfile" + name: "String" } } } } }; -export const VirtualMachineScaleSetDataDisk: coreClient.CompositeMapper = { +export const DataDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetDataDisk", + className: "DataDisk", modelProperties: { + lun: { + serializedName: "lun", + required: true, + type: { + name: "Number" + } + }, name: { serializedName: "name", type: { name: "String" } }, - lun: { - serializedName: "lun", - required: true, + vhd: { + serializedName: "vhd", type: { - name: "Number" + name: "Composite", + className: "VirtualHardDisk" + } + }, + image: { + serializedName: "image", + type: { + name: "Composite", + className: "VirtualHardDisk" } }, caching: { @@ -3521,86 +3707,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 +3856,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,25 +3868,207 @@ 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" + } + }, + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", + type: { + name: "Boolean" + } + }, + enableFpga: { + serializedName: "properties.enableFpga", + type: { + name: "Boolean" + } + }, + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean" + } + }, + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", + type: { + name: "Composite", + className: "SubResource" } }, dnsSettings: { serializedName: "properties.dnsSettings", type: { name: "Composite", - className: - "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" + className: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration" + } + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineNetworkInterfaceIPConfiguration" + } + } + } + }, + dscpConfiguration: { + serializedName: "properties.dscpConfiguration", + type: { + name: "Composite", + className: "SubResource" + } + } + } + } +}; + +export const VirtualMachineNetworkInterfaceDnsSettingsConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration", + modelProperties: { + dnsServers: { + serializedName: "dnsServers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const VirtualMachineNetworkInterfaceIPConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineNetworkInterfaceIPConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + 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 VirtualMachinePublicIPAddressConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachinePublicIPAddressConfiguration", + modelProperties: { + 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: { @@ -3649,7 +4078,7 @@ export const VirtualMachineScaleSetPublicIPAddressConfiguration: coreClient.Comp element: { type: { name: "Composite", - className: "VirtualMachineScaleSetIpTag" + className: "VirtualMachineIpTag" } } } @@ -3667,8 +4096,8 @@ export const VirtualMachineScaleSetPublicIPAddressConfiguration: coreClient.Comp name: "String" } }, - deleteOption: { - serializedName: "properties.deleteOption", + publicIPAllocationMethod: { + serializedName: "properties.publicIPAllocationMethod", type: { name: "String" } @@ -3677,10 +4106,10 @@ export const VirtualMachineScaleSetPublicIPAddressConfiguration: coreClient.Comp } }; -export const VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings: coreClient.CompositeMapper = { +export const VirtualMachinePublicIPAddressDnsSettingsConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", + className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration", modelProperties: { domainNameLabel: { serializedName: "domainNameLabel", @@ -3693,10 +4122,10 @@ export const VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings: core } }; -export const VirtualMachineScaleSetIpTag: coreClient.CompositeMapper = { +export const VirtualMachineIpTag: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetIpTag", + className: "VirtualMachineIpTag", modelProperties: { ipTagType: { serializedName: "ipTagType", @@ -3714,88 +4143,91 @@ export const VirtualMachineScaleSetIpTag: coreClient.CompositeMapper = { } }; -export const VirtualMachineScaleSetExtensionProfile: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVMNetworkProfileConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetExtensionProfile", + className: "VirtualMachineScaleSetVMNetworkProfileConfiguration", modelProperties: { - extensions: { - serializedName: "extensions", + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineScaleSetExtension" + className: "VirtualMachineScaleSetNetworkConfiguration" } } } - }, - extensionsTimeBudget: { - serializedName: "extensionsTimeBudget", - type: { - name: "String" - } } } } }; -export const VirtualMachineScaleSetHardwareProfile: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVMProtectionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetHardwareProfile", + className: "VirtualMachineScaleSetVMProtectionPolicy", modelProperties: { - vmSizeProperties: { - serializedName: "vmSizeProperties", + protectFromScaleIn: { + serializedName: "protectFromScaleIn", type: { - name: "Composite", - className: "VMSizeProperties" + name: "Boolean" + } + }, + protectFromScaleSetActions: { + serializedName: "protectFromScaleSetActions", + type: { + name: "Boolean" } } } } }; -export const ScaleInPolicy: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVMListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScaleInPolicy", + className: "VirtualMachineScaleSetVMListResult", modelProperties: { - rules: { - serializedName: "rules", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetVM" } } } }, - forceDeletion: { - serializedName: "forceDeletion", + nextLink: { + serializedName: "nextLink", type: { - name: "Boolean" + name: "String" } } } } }; -export const SpotRestorePolicy: coreClient.CompositeMapper = { +export const RetrieveBootDiagnosticsDataResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SpotRestorePolicy", + className: "RetrieveBootDiagnosticsDataResult", modelProperties: { - enabled: { - serializedName: "enabled", + consoleScreenshotBlobUri: { + serializedName: "consoleScreenshotBlobUri", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - restoreTimeout: { - serializedName: "restoreTimeout", + serialConsoleLogBlobUri: { + serializedName: "serialConsoleLogBlobUri", + readOnly: true, type: { name: "String" } @@ -3804,46 +4236,19 @@ export const SpotRestorePolicy: coreClient.CompositeMapper = { } }; -export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { +export const VirtualMachineExtensionsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetIdentity", + className: "VirtualMachineExtensionsListResult", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String" - } - }, - tenantId: { - serializedName: "tenantId", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "Enum", - allowedValues: [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned, UserAssigned", - "None" - ] - } - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + value: { + serializedName: "value", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { name: "Composite", - className: - "VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue" + className: "VirtualMachineExtension" } } } @@ -3852,21 +4257,26 @@ export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { } }; -export const VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue: coreClient.CompositeMapper = { +export const VirtualMachineListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue", + className: "VirtualMachineListResult", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + value: { + serializedName: "value", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachine" + } + } } }, - clientId: { - serializedName: "clientId", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -3875,257 +4285,163 @@ export const VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue: coreClie } }; -export const ImageStorageProfile: coreClient.CompositeMapper = { +export const VirtualMachineInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageStorageProfile", + className: "VirtualMachineInstanceView", modelProperties: { - osDisk: { - serializedName: "osDisk", + platformUpdateDomain: { + serializedName: "platformUpdateDomain", type: { - name: "Composite", - className: "ImageOSDisk" + name: "Number" } }, - dataDisks: { - serializedName: "dataDisks", + platformFaultDomain: { + serializedName: "platformFaultDomain", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ImageDataDisk" - } - } + name: "Number" } }, - zoneResilient: { - serializedName: "zoneResilient", + computerName: { + serializedName: "computerName", type: { - name: "Boolean" + name: "String" } - } - } - } -}; - -export const ImageDisk: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImageDisk", - modelProperties: { - snapshot: { - serializedName: "snapshot", + }, + osName: { + serializedName: "osName", type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - managedDisk: { - serializedName: "managedDisk", + osVersion: { + serializedName: "osVersion", type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - blobUri: { - serializedName: "blobUri", + hyperVGeneration: { + serializedName: "hyperVGeneration", type: { name: "String" } }, - caching: { - serializedName: "caching", + rdpThumbPrint: { + serializedName: "rdpThumbPrint", type: { - name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] + name: "String" } }, - diskSizeGB: { - serializedName: "diskSizeGB", + vmAgent: { + serializedName: "vmAgent", type: { - name: "Number" + name: "Composite", + className: "VirtualMachineAgentInstanceView" } }, - storageAccountType: { - serializedName: "storageAccountType", + maintenanceRedeployStatus: { + serializedName: "maintenanceRedeployStatus", type: { - name: "String" + name: "Composite", + className: "MaintenanceRedeployStatus" } }, - diskEncryptionSet: { - serializedName: "diskEncryptionSet", + disks: { + serializedName: "disks", type: { - name: "Composite", - className: "DiskEncryptionSetParameters" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskInstanceView" + } + } } - } - } - } -}; - -export const ImageListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImageListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, + }, + extensions: { + serializedName: "extensions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Image" + className: "VirtualMachineExtensionInstanceView" } } } }, - nextLink: { - serializedName: "nextLink", + vmHealth: { + serializedName: "vmHealth", type: { - name: "String" + name: "Composite", + className: "VirtualMachineHealthStatus" } - } - } - } -}; - -export const VirtualMachineCaptureParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineCaptureParameters", - modelProperties: { - vhdPrefix: { - serializedName: "vhdPrefix", - required: true, + }, + bootDiagnostics: { + serializedName: "bootDiagnostics", type: { - name: "String" + name: "Composite", + className: "BootDiagnosticsInstanceView" } }, - destinationContainerName: { - serializedName: "destinationContainerName", - required: true, + assignedHost: { + serializedName: "assignedHost", + readOnly: true, type: { name: "String" } }, - overwriteVhds: { - serializedName: "overwriteVhds", - required: true, + statuses: { + serializedName: "statuses", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } + } + }, + patchStatus: { + serializedName: "patchStatus", + type: { + name: "Composite", + className: "VirtualMachinePatchStatus" } } } } }; -export const RestorePointCollectionSourceProperties: coreClient.CompositeMapper = { +export const VirtualMachinePatchStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePointCollectionSourceProperties", + className: "VirtualMachinePatchStatus", modelProperties: { - location: { - serializedName: "location", - readOnly: true, + availablePatchSummary: { + serializedName: "availablePatchSummary", type: { - name: "String" + name: "Composite", + className: "AvailablePatchSummary" } }, - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const RestorePointSourceMetadata: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePointSourceMetadata", - modelProperties: { - hardwareProfile: { - serializedName: "hardwareProfile", - type: { - name: "Composite", - className: "HardwareProfile" - } - }, - storageProfile: { - serializedName: "storageProfile", - type: { - name: "Composite", - className: "RestorePointSourceVMStorageProfile" - } - }, - osProfile: { - serializedName: "osProfile", - type: { - name: "Composite", - className: "OSProfile" - } - }, - diagnosticsProfile: { - serializedName: "diagnosticsProfile", - type: { - name: "Composite", - className: "DiagnosticsProfile" - } - }, - licenseType: { - serializedName: "licenseType", - type: { - name: "String" - } - }, - vmId: { - serializedName: "vmId", - type: { - name: "String" - } - }, - securityProfile: { - serializedName: "securityProfile", + lastPatchInstallationSummary: { + serializedName: "lastPatchInstallationSummary", type: { name: "Composite", - className: "SecurityProfile" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const RestorePointSourceVMStorageProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePointSourceVMStorageProfile", - modelProperties: { - osDisk: { - serializedName: "osDisk", - type: { - name: "Composite", - className: "RestorePointSourceVmosDisk" + className: "LastPatchInstallationSummary" } }, - dataDisks: { - serializedName: "dataDisks", + configurationStatuses: { + serializedName: "configurationStatuses", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "RestorePointSourceVMDataDisk" + className: "InstanceViewStatus" } } } @@ -4134,285 +4450,196 @@ export const RestorePointSourceVMStorageProfile: coreClient.CompositeMapper = { } }; -export const RestorePointSourceVmosDisk: coreClient.CompositeMapper = { +export const AvailablePatchSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePointSourceVmosDisk", + className: "AvailablePatchSummary", modelProperties: { - osType: { - serializedName: "osType", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } }, - encryptionSettings: { - serializedName: "encryptionSettings", + assessmentActivityId: { + serializedName: "assessmentActivityId", + readOnly: true, type: { - name: "Composite", - className: "DiskEncryptionSettings" + name: "String" } }, - name: { - serializedName: "name", + rebootPending: { + serializedName: "rebootPending", + readOnly: true, type: { - name: "String" + name: "Boolean" } }, - caching: { - serializedName: "caching", + criticalAndSecurityPatchCount: { + serializedName: "criticalAndSecurityPatchCount", + readOnly: true, type: { - name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] + name: "Number" } }, - diskSizeGB: { - serializedName: "diskSizeGB", + otherPatchCount: { + serializedName: "otherPatchCount", + readOnly: true, type: { name: "Number" } }, - managedDisk: { - serializedName: "managedDisk", + startTime: { + serializedName: "startTime", + readOnly: true, type: { - name: "Composite", - className: "ManagedDiskParameters" + name: "DateTime" } }, - diskRestorePoint: { - serializedName: "diskRestorePoint", + lastModifiedTime: { + serializedName: "lastModifiedTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + error: { + serializedName: "error", type: { name: "Composite", - className: "ApiEntityReference" + className: "ApiError" } } } } }; -export const RestorePointSourceVMDataDisk: coreClient.CompositeMapper = { +export const LastPatchInstallationSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePointSourceVMDataDisk", + className: "LastPatchInstallationSummary", modelProperties: { - lun: { - serializedName: "lun", + status: { + serializedName: "status", + readOnly: true, type: { - name: "Number" + name: "String" } }, - name: { - serializedName: "name", + installationActivityId: { + serializedName: "installationActivityId", + readOnly: true, type: { name: "String" } }, - caching: { - serializedName: "caching", + maintenanceWindowExceeded: { + serializedName: "maintenanceWindowExceeded", + readOnly: true, type: { - name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] + name: "Boolean" } }, - diskSizeGB: { - serializedName: "diskSizeGB", + notSelectedPatchCount: { + serializedName: "notSelectedPatchCount", + readOnly: true, type: { name: "Number" } }, - managedDisk: { - serializedName: "managedDisk", + excludedPatchCount: { + serializedName: "excludedPatchCount", + readOnly: true, type: { - name: "Composite", - className: "ManagedDiskParameters" + name: "Number" } }, - diskRestorePoint: { - serializedName: "diskRestorePoint", - type: { - name: "Composite", - className: "ApiEntityReference" - } - } - } - } -}; - -export const RestorePointInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePointInstanceView", - modelProperties: { - diskRestorePoints: { - serializedName: "diskRestorePoints", + pendingPatchCount: { + serializedName: "pendingPatchCount", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiskRestorePointInstanceView" - } - } + name: "Number" } }, - statuses: { - serializedName: "statuses", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } -}; - -export const DiskRestorePointInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiskRestorePointInstanceView", - modelProperties: { - id: { - serializedName: "id", + installedPatchCount: { + serializedName: "installedPatchCount", + readOnly: true, type: { - name: "String" + name: "Number" } }, - replicationStatus: { - serializedName: "replicationStatus", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } -}; - -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - id: { - serializedName: "id", + failedPatchCount: { + serializedName: "failedPatchCount", readOnly: true, type: { - name: "String" + name: "Number" } }, - name: { - serializedName: "name", + startTime: { + serializedName: "startTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - type: { - serializedName: "type", + lastModifiedTime: { + serializedName: "lastModifiedTime", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const RestorePointCollectionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePointCollectionListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorePointCollection" - } - } + name: "DateTime" } }, - nextLink: { - serializedName: "nextLink", + error: { + serializedName: "error", type: { - name: "String" + name: "Composite", + className: "ApiError" } } } } }; -export const CapacityReservationGroupInstanceView: coreClient.CompositeMapper = { +export const VirtualMachineIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CapacityReservationGroupInstanceView", + className: "VirtualMachineIdentity", modelProperties: { - capacityReservations: { - serializedName: "capacityReservations", + principalId: { + serializedName: "principalId", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CapacityReservationInstanceViewWithName" - } - } + name: "String" } - } - } - } -}; - -export const CapacityReservationInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationInstanceView", - modelProperties: { - utilizationInfo: { - serializedName: "utilizationInfo", + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { - name: "Composite", - className: "CapacityReservationUtilization" + name: "String" } }, - statuses: { - serializedName: "statuses", + type: { + serializedName: "type", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } + name: "Enum", + allowedValues: [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ] } - } - } - } -}; - -export const CapacityReservationUtilization: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationUtilization", - modelProperties: { - virtualMachinesAllocated: { - serializedName: "virtualMachinesAllocated", - readOnly: true, + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { name: "Composite", - className: "SubResourceReadOnly" + className: "UserAssignedIdentitiesValue" } } } @@ -4421,54 +4648,21 @@ export const CapacityReservationUtilization: coreClient.CompositeMapper = { } }; -export const CapacityReservationGroupListResult: coreClient.CompositeMapper = { +export const UserAssignedIdentitiesValue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CapacityReservationGroupListResult", + className: "UserAssignedIdentitiesValue", modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CapacityReservationGroup" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + principalId: { + serializedName: "principalId", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const CapacityReservationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CapacityReservation" - } - } - } }, - nextLink: { - serializedName: "nextLink", + clientId: { + serializedName: "clientId", + readOnly: true, type: { name: "String" } @@ -4477,38 +4671,30 @@ export const CapacityReservationListResult: coreClient.CompositeMapper = { } }; -export const VirtualMachineReimageParameters: coreClient.CompositeMapper = { +export const VirtualMachineCaptureParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineReimageParameters", + className: "VirtualMachineCaptureParameters", modelProperties: { - tempDisk: { - serializedName: "tempDisk", + vhdPrefix: { + serializedName: "vhdPrefix", + required: true, type: { - name: "Boolean" + name: "String" } - } - } - } -}; - -export const RetrieveBootDiagnosticsDataResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RetrieveBootDiagnosticsDataResult", - modelProperties: { - consoleScreenshotBlobUri: { - serializedName: "consoleScreenshotBlobUri", - readOnly: true, + }, + destinationContainerName: { + serializedName: "destinationContainerName", + required: true, type: { name: "String" } }, - serialConsoleLogBlobUri: { - serializedName: "serialConsoleLogBlobUri", - readOnly: true, + overwriteVhds: { + serializedName: "overwriteVhds", + required: true, type: { - name: "String" + name: "Boolean" } } } @@ -4963,238 +5149,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", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateStorageProfile" - } - }, - networkProfile: { - serializedName: "networkProfile", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkProfile" - } - }, - securityProfile: { - serializedName: "securityProfile", - type: { - name: "Composite", - className: "SecurityProfile" - } - }, - diagnosticsProfile: { - serializedName: "diagnosticsProfile", - type: { - name: "Composite", - className: "DiagnosticsProfile" - } - }, - extensionProfile: { - serializedName: "extensionProfile", - type: { - name: "Composite", - className: "VirtualMachineScaleSetExtensionProfile" - } - }, - licenseType: { - serializedName: "licenseType", + publisher: { + serializedName: "publisher", + required: true, type: { name: "String" } }, - billingProfile: { - serializedName: "billingProfile", - type: { - name: "Composite", - className: "BillingProfile" - } - }, - scheduledEventsProfile: { - serializedName: "scheduledEventsProfile", - type: { - name: "Composite", - className: "ScheduledEventsProfile" - } - }, - userData: { - serializedName: "userData", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdateOSProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateOSProfile", - modelProperties: { - customData: { - serializedName: "customData", + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - windowsConfiguration: { - serializedName: "windowsConfiguration", - type: { - name: "Composite", - className: "WindowsConfiguration" - } - }, - linuxConfiguration: { - serializedName: "linuxConfiguration", - type: { - name: "Composite", - className: "LinuxConfiguration" - } - }, - secrets: { - serializedName: "secrets", + product: { + serializedName: "product", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VaultSecretGroup" - } - } + name: "String" } } } } }; -export const VirtualMachineScaleSetUpdateStorageProfile: coreClient.CompositeMapper = { +export const OSDiskImage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateStorageProfile", + className: "OSDiskImage", modelProperties: { - imageReference: { - serializedName: "imageReference", - type: { - name: "Composite", - className: "ImageReference" - } - }, - osDisk: { - serializedName: "osDisk", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateOSDisk" - } - }, - dataDisks: { - serializedName: "dataDisks", + operatingSystem: { + serializedName: "operatingSystem", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetDataDisk" - } - } + name: "Enum", + allowedValues: ["Windows", "Linux"] } } } } }; -export const VirtualMachineScaleSetUpdateOSDisk: coreClient.CompositeMapper = { +export const DataDiskImage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateOSDisk", + className: "DataDiskImage", modelProperties: { - caching: { - serializedName: "caching", - type: { - name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } - }, - writeAcceleratorEnabled: { - serializedName: "writeAcceleratorEnabled", - type: { - name: "Boolean" - } - }, - diskSizeGB: { - serializedName: "diskSizeGB", + lun: { + serializedName: "lun", + readOnly: true, type: { name: "Number" } - }, - image: { - serializedName: "image", - type: { - name: "Composite", - className: "VirtualHardDisk" - } - }, - vhdContainers: { - serializedName: "vhdContainers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - managedDisk: { - serializedName: "managedDisk", - type: { - name: "Composite", - className: "VirtualMachineScaleSetManagedDiskParameters" - } } } } }; -export const VirtualMachineScaleSetUpdateNetworkProfile: coreClient.CompositeMapper = { +export const AutomaticOSUpgradeProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkProfile", + className: "AutomaticOSUpgradeProperties", modelProperties: { - healthProbe: { - serializedName: "healthProbe", - type: { - name: "Composite", - className: "ApiEntityReference" - } - }, - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", + automaticOSUpgradeSupported: { + serializedName: "automaticOSUpgradeSupported", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkConfiguration" - } - } - } - }, - networkApiVersion: { - serializedName: "networkApiVersion", + name: "Boolean" + } + } + } + } +}; + +export const DisallowedConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DisallowedConfiguration", + modelProperties: { + vmDiskType: { + serializedName: "vmDiskType", type: { name: "String" } @@ -5203,10 +5243,10 @@ export const VirtualMachineScaleSetUpdateNetworkProfile: coreClient.CompositeMap } }; -export const VirtualMachineScaleSetUpdatePublicIPAddressConfiguration: coreClient.CompositeMapper = { +export const VirtualMachineImageFeature: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration", + className: "VirtualMachineImageFeature", modelProperties: { name: { serializedName: "name", @@ -5214,29 +5254,36 @@ export const VirtualMachineScaleSetUpdatePublicIPAddressConfiguration: coreClien name: "String" } }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", - type: { - name: "Number" - } - }, - dnsSettings: { - serializedName: "properties.dnsSettings", + value: { + serializedName: "value", type: { - name: "Composite", - className: - "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" + name: "String" } - }, - publicIPPrefix: { - serializedName: "properties.publicIPPrefix", + } + } + } +}; + +export const AvailabilitySetListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AvailabilitySetListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { - name: "Composite", - className: "SubResource" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AvailabilitySet" + } + } } }, - deleteOption: { - serializedName: "properties.deleteOption", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -5245,39 +5292,47 @@ export const VirtualMachineScaleSetUpdatePublicIPAddressConfiguration: coreClien } }; -export const VirtualMachineScaleSetVMInstanceIDs: coreClient.CompositeMapper = { +export const ProximityPlacementGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMInstanceIDs", + className: "ProximityPlacementGroupListResult", modelProperties: { - instanceIds: { - serializedName: "instanceIds", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ProximityPlacementGroup" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const VirtualMachineScaleSetVMInstanceRequiredIDs: coreClient.CompositeMapper = { +export const DedicatedHostGroupInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMInstanceRequiredIDs", + className: "DedicatedHostGroupInstanceView", modelProperties: { - instanceIds: { - serializedName: "instanceIds", - required: true, + hosts: { + serializedName: "hosts", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "DedicatedHostInstanceViewWithName" } } } @@ -5286,29 +5341,23 @@ export const VirtualMachineScaleSetVMInstanceRequiredIDs: coreClient.CompositeMa } }; -export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { +export const DedicatedHostInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetInstanceView", + className: "DedicatedHostInstanceView", modelProperties: { - virtualMachine: { - serializedName: "virtualMachine", + assetId: { + serializedName: "assetId", + readOnly: true, type: { - name: "Composite", - className: "VirtualMachineScaleSetInstanceViewStatusesSummary" + name: "String" } }, - extensions: { - serializedName: "extensions", - readOnly: true, + availableCapacity: { + serializedName: "availableCapacity", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMExtensionsSummary" - } - } + name: "Composite", + className: "DedicatedHostAvailableCapacity" } }, statuses: { @@ -5322,38 +5371,24 @@ export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { } } } - }, - orchestrationServices: { - serializedName: "orchestrationServices", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OrchestrationServiceSummary" - } - } - } } } } }; -export const VirtualMachineScaleSetInstanceViewStatusesSummary: coreClient.CompositeMapper = { +export const DedicatedHostAvailableCapacity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetInstanceViewStatusesSummary", + className: "DedicatedHostAvailableCapacity", modelProperties: { - statusesSummary: { - serializedName: "statusesSummary", - readOnly: true, + allocatableVMs: { + serializedName: "allocatableVMs", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineStatusCodeCount" + className: "DedicatedHostAllocatableVM" } } } @@ -5362,21 +5397,19 @@ export const VirtualMachineScaleSetInstanceViewStatusesSummary: coreClient.Compo } }; -export const VirtualMachineStatusCodeCount: coreClient.CompositeMapper = { +export const DedicatedHostAllocatableVM: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineStatusCodeCount", + className: "DedicatedHostAllocatableVM", modelProperties: { - code: { - serializedName: "code", - readOnly: true, + vmSize: { + serializedName: "vmSize", type: { name: "String" } }, count: { serializedName: "count", - readOnly: true, type: { name: "Number" } @@ -5385,50 +5418,41 @@ export const VirtualMachineStatusCodeCount: coreClient.CompositeMapper = { } }; -export const VirtualMachineScaleSetVMExtensionsSummary: coreClient.CompositeMapper = { +export const DedicatedHostGroupPropertiesAdditionalCapabilities: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMExtensionsSummary", + className: "DedicatedHostGroupPropertiesAdditionalCapabilities", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - statusesSummary: { - serializedName: "statusesSummary", - readOnly: true, + ultraSSDEnabled: { + serializedName: "ultraSSDEnabled", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineStatusCodeCount" - } - } + name: "Boolean" } } } } }; -export const OrchestrationServiceSummary: coreClient.CompositeMapper = { +export const DedicatedHostGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OrchestrationServiceSummary", + className: "DedicatedHostGroupListResult", modelProperties: { - serviceName: { - serializedName: "serviceName", - readOnly: true, + value: { + serializedName: "value", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DedicatedHostGroup" + } + } } }, - serviceState: { - serializedName: "serviceState", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -5437,10 +5461,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 +5474,7 @@ export const VirtualMachineScaleSetExtensionListResult: coreClient.CompositeMapp element: { type: { name: "Composite", - className: "VirtualMachineScaleSetExtension" + className: "DedicatedHost" } } } @@ -5465,10 +5489,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 +5502,7 @@ export const VirtualMachineScaleSetListWithLinkResult: coreClient.CompositeMappe element: { type: { name: "Composite", - className: "VirtualMachineScaleSet" + className: "SshPublicKeyResource" } } } @@ -5493,106 +5517,129 @@ 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: "String" + } + }, + publicKey: { + serializedName: "publicKey", + required: true, + type: { + name: "String" + } + }, + id: { + serializedName: "id", required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ImageStorageProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageStorageProfile", + modelProperties: { + osDisk: { + serializedName: "osDisk", + type: { + name: "Composite", + className: "ImageOSDisk" + } + }, + dataDisks: { + serializedName: "dataDisks", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineScaleSetSku" + className: "ImageDataDisk" } } } - }, - nextLink: { - serializedName: "nextLink", + }, + zoneResilient: { + serializedName: "zoneResilient", type: { - name: "String" + name: "Boolean" } } } } }; -export const VirtualMachineScaleSetSku: coreClient.CompositeMapper = { +export const ImageDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetSku", + className: "ImageDisk", modelProperties: { - resourceType: { - serializedName: "resourceType", - readOnly: true, + snapshot: { + serializedName: "snapshot", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - sku: { - serializedName: "sku", + managedDisk: { + serializedName: "managedDisk", type: { name: "Composite", - className: "Sku" + className: "SubResource" } }, - capacity: { - serializedName: "capacity", + blobUri: { + serializedName: "blobUri", type: { - name: "Composite", - className: "VirtualMachineScaleSetSkuCapacity" + name: "String" } - } - } - } -}; - -export const VirtualMachineScaleSetSkuCapacity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetSkuCapacity", - modelProperties: { - minimum: { - serializedName: "minimum", - readOnly: true, + }, + caching: { + serializedName: "caching", type: { - name: "Number" + name: "Enum", + allowedValues: ["None", "ReadOnly", "ReadWrite"] } }, - maximum: { - serializedName: "maximum", - readOnly: true, + diskSizeGB: { + serializedName: "diskSizeGB", type: { name: "Number" } }, - defaultCapacity: { - serializedName: "defaultCapacity", - readOnly: true, + storageAccountType: { + serializedName: "storageAccountType", type: { - name: "Number" + name: "String" } }, - scaleType: { - serializedName: "scaleType", - readOnly: true, + diskEncryptionSet: { + serializedName: "diskEncryptionSet", type: { - name: "Enum", - allowedValues: ["Automatic", "None"] + 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 +5649,7 @@ export const VirtualMachineScaleSetListOSUpgradeHistory: coreClient.CompositeMap element: { type: { name: "Composite", - className: "UpgradeOperationHistoricalStatusInfo" + className: "Image" } } } @@ -5617,28 +5664,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 +5686,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 +5964,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 +5976,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 +6036,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 +6063,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 +6104,7 @@ export const VirtualMachineScaleSetVMListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineScaleSetVM" + className: "CapacityReservation" } } } @@ -6984,13 +7011,7 @@ export const SupportedCapabilities: coreClient.CompositeMapper = { acceleratedNetwork: { serializedName: "acceleratedNetwork", type: { - name: "Boolean" - } - }, - architecture: { - serializedName: "architecture", - type: { - name: "String" + name: "Boolean" } } } @@ -7415,12 +7436,6 @@ export const DiskUpdate: coreClient.CompositeMapper = { type: { name: "String" } - }, - dataAccessAuthMode: { - serializedName: "properties.dataAccessAuthMode", - type: { - name: "String" - } } } } @@ -7598,12 +7613,6 @@ export const SnapshotUpdate: coreClient.CompositeMapper = { name: "String" } }, - dataAccessAuthMode: { - serializedName: "properties.dataAccessAuthMode", - type: { - name: "String" - } - }, supportedCapabilities: { serializedName: "properties.supportedCapabilities", type: { @@ -8679,28 +8688,287 @@ export const GalleryImageVersionStorageProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryDataDiskImage" + className: "GalleryDataDiskImage" + } + } + } + } + } + } +}; + +export const GalleryArtifactVersionSource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryArtifactVersionSource", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + uri: { + serializedName: "uri", + type: { + name: "String" + } + } + } + } +}; + +export const GalleryDiskImage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryDiskImage", + modelProperties: { + sizeInGB: { + serializedName: "sizeInGB", + readOnly: true, + type: { + name: "Number" + } + }, + hostCaching: { + serializedName: "hostCaching", + type: { + name: "Enum", + allowedValues: ["None", "ReadOnly", "ReadWrite"] + } + }, + source: { + serializedName: "source", + type: { + name: "Composite", + className: "GalleryArtifactVersionSource" + } + } + } + } +}; + +export const ReplicationStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ReplicationStatus", + modelProperties: { + aggregatedState: { + serializedName: "aggregatedState", + readOnly: true, + type: { + name: "String" + } + }, + summary: { + serializedName: "summary", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegionalReplicationStatus" + } + } + } + } + } + } +}; + +export const RegionalReplicationStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegionalReplicationStatus", + modelProperties: { + region: { + serializedName: "region", + readOnly: true, + type: { + name: "String" + } + }, + state: { + serializedName: "state", + readOnly: true, + type: { + name: "String" + } + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "String" + } + }, + progress: { + serializedName: "progress", + readOnly: true, + type: { + name: "Number" + } + } + } + } +}; + +export const UserArtifactSource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserArtifactSource", + modelProperties: { + mediaLink: { + serializedName: "mediaLink", + required: true, + type: { + name: "String" + } + }, + defaultConfigurationLink: { + serializedName: "defaultConfigurationLink", + type: { + name: "String" + } + } + } + } +}; + +export const UserArtifactManage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserArtifactManage", + modelProperties: { + install: { + serializedName: "install", + required: true, + type: { + name: "String" + } + }, + remove: { + serializedName: "remove", + required: true, + type: { + name: "String" + } + }, + update: { + serializedName: "update", + type: { + name: "String" + } + } + } + } +}; + +export const GalleryList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryList", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Gallery" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const GalleryImageList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryImageList", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryImage" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const GalleryImageVersionList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryImageVersionList", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryImageVersion" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const GalleryArtifactVersionSource: coreClient.CompositeMapper = { +export const GalleryApplicationList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryArtifactVersionSource", + className: "GalleryApplicationList", modelProperties: { - id: { - serializedName: "id", + value: { + serializedName: "value", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryApplication" + } + } } }, - uri: { - serializedName: "uri", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -8709,57 +8977,54 @@ export const GalleryArtifactVersionSource: coreClient.CompositeMapper = { } }; -export const GalleryDiskImage: coreClient.CompositeMapper = { +export const GalleryApplicationVersionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryDiskImage", + className: "GalleryApplicationVersionList", modelProperties: { - sizeInGB: { - serializedName: "sizeInGB", - readOnly: true, - type: { - name: "Number" - } - }, - hostCaching: { - serializedName: "hostCaching", + value: { + serializedName: "value", + required: true, type: { - name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryApplicationVersion" + } + } } }, - source: { - serializedName: "source", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "GalleryArtifactVersionSource" + name: "String" } } } } }; -export const ReplicationStatus: coreClient.CompositeMapper = { +export const SharingUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ReplicationStatus", + className: "SharingUpdate", modelProperties: { - aggregatedState: { - serializedName: "aggregatedState", - readOnly: true, + operationType: { + serializedName: "operationType", + required: true, type: { name: "String" } }, - summary: { - serializedName: "summary", - readOnly: true, + groups: { + serializedName: "groups", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RegionalReplicationStatus" + className: "SharingProfileGroup" } } } @@ -8768,57 +9033,49 @@ export const ReplicationStatus: coreClient.CompositeMapper = { } }; -export const RegionalReplicationStatus: coreClient.CompositeMapper = { +export const SharedGalleryList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegionalReplicationStatus", + className: "SharedGalleryList", modelProperties: { - region: { - serializedName: "region", - readOnly: true, - type: { - name: "String" - } - }, - state: { - serializedName: "state", - readOnly: true, + value: { + serializedName: "value", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedGallery" + } + } } }, - details: { - serializedName: "details", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - progress: { - serializedName: "progress", - readOnly: true, - type: { - name: "Number" - } } } } }; -export const UserArtifactSource: coreClient.CompositeMapper = { +export const PirResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserArtifactSource", + className: "PirResource", modelProperties: { - mediaLink: { - serializedName: "mediaLink", - required: true, + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - defaultConfigurationLink: { - serializedName: "defaultConfigurationLink", + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } @@ -8827,27 +9084,26 @@ export const UserArtifactSource: coreClient.CompositeMapper = { } }; -export const UserArtifactManage: coreClient.CompositeMapper = { +export const SharedGalleryImageList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserArtifactManage", + className: "SharedGalleryImageList", modelProperties: { - install: { - serializedName: "install", - required: true, - type: { - name: "String" - } - }, - remove: { - serializedName: "remove", + value: { + serializedName: "value", required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedGalleryImage" + } + } } }, - update: { - serializedName: "update", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -8856,10 +9112,10 @@ export const UserArtifactManage: coreClient.CompositeMapper = { } }; -export const GalleryList: coreClient.CompositeMapper = { +export const SharedGalleryImageVersionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryList", + className: "SharedGalleryImageVersionList", modelProperties: { value: { serializedName: "value", @@ -8869,7 +9125,7 @@ export const GalleryList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Gallery" + className: "SharedGalleryImageVersion" } } } @@ -8884,54 +9140,116 @@ export const GalleryList: coreClient.CompositeMapper = { } }; -export const GalleryImageList: coreClient.CompositeMapper = { +export const PirCommunityGalleryResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryImageList", + className: "PirCommunityGalleryResource", modelProperties: { - value: { - serializedName: "value", - required: true, + name: { + serializedName: "name", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryImage" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + uniqueId: { + serializedName: "identifier.uniqueId", + type: { + name: "String" + } + } + } + } +}; + +export const RoleInstance: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RoleInstance", + 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, type: { name: "String" } + }, + tags: { + serializedName: "tags", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "InstanceSku" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "RoleInstanceProperties" + } } } } }; -export const GalleryImageVersionList: coreClient.CompositeMapper = { +export const InstanceSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryImageVersionList", + className: "InstanceSku", modelProperties: { - value: { - serializedName: "value", - required: true, + name: { + serializedName: "name", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryImageVersion" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + tier: { + serializedName: "tier", + readOnly: true, type: { name: "String" } @@ -8940,82 +9258,86 @@ export const GalleryImageVersionList: coreClient.CompositeMapper = { } }; -export const GalleryApplicationList: coreClient.CompositeMapper = { +export const RoleInstanceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryApplicationList", + className: "RoleInstanceProperties", modelProperties: { - value: { - serializedName: "value", - required: true, + networkProfile: { + serializedName: "networkProfile", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryApplication" - } - } + name: "Composite", + className: "RoleInstanceNetworkProfile" } }, - nextLink: { - serializedName: "nextLink", + instanceView: { + serializedName: "instanceView", type: { - name: "String" + name: "Composite", + className: "RoleInstanceView" } } } } }; -export const GalleryApplicationVersionList: coreClient.CompositeMapper = { +export const RoleInstanceNetworkProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryApplicationVersionList", + className: "RoleInstanceNetworkProfile", modelProperties: { - value: { - serializedName: "value", - required: true, + networkInterfaces: { + serializedName: "networkInterfaces", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "GalleryApplicationVersion" + className: "SubResource" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const SharingUpdate: coreClient.CompositeMapper = { +export const RoleInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharingUpdate", + className: "RoleInstanceView", modelProperties: { - operationType: { - serializedName: "operationType", - required: true, + platformUpdateDomain: { + serializedName: "platformUpdateDomain", + readOnly: true, + type: { + name: "Number" + } + }, + platformFaultDomain: { + serializedName: "platformFaultDomain", + readOnly: true, + type: { + name: "Number" + } + }, + privateId: { + serializedName: "privateId", + readOnly: true, type: { name: "String" } }, - groups: { - serializedName: "groups", + statuses: { + serializedName: "statuses", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SharingProfileGroup" + className: "ResourceInstanceViewStatus" } } } @@ -9024,61 +9346,54 @@ export const SharingUpdate: coreClient.CompositeMapper = { } }; -export const SharedGalleryList: coreClient.CompositeMapper = { +export const ResourceInstanceViewStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedGalleryList", + className: "ResourceInstanceViewStatus", modelProperties: { - value: { - serializedName: "value", - required: true, + code: { + serializedName: "code", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedGallery" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + displayStatus: { + serializedName: "displayStatus", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const PirResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PirResource", - modelProperties: { - name: { - serializedName: "name", + }, + message: { + serializedName: "message", readOnly: true, type: { name: "String" } }, - location: { - serializedName: "location", + time: { + serializedName: "time", readOnly: true, type: { - name: "String" + name: "DateTime" + } + }, + level: { + serializedName: "level", + type: { + name: "Enum", + allowedValues: ["Info", "Warning", "Error"] } } } } }; -export const SharedGalleryImageList: coreClient.CompositeMapper = { +export const RoleInstanceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedGalleryImageList", + className: "RoleInstanceListResult", modelProperties: { value: { serializedName: "value", @@ -9088,7 +9403,7 @@ export const SharedGalleryImageList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharedGalleryImage" + className: "RoleInstance" } } } @@ -9103,62 +9418,120 @@ export const SharedGalleryImageList: coreClient.CompositeMapper = { } }; -export const SharedGalleryImageVersionList: coreClient.CompositeMapper = { +export const CloudServiceRole: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedGalleryImageVersionList", + className: "CloudServiceRole", modelProperties: { - value: { - serializedName: "value", - required: true, + id: { + serializedName: "id", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedGalleryImageVersion" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + 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 PirCommunityGalleryResource: coreClient.CompositeMapper = { +export const CloudServiceRoleSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PirCommunityGalleryResource", + className: "CloudServiceRoleSku", modelProperties: { name: { serializedName: "name", - readOnly: true, type: { name: "String" } }, - location: { - serializedName: "location", - readOnly: true, + tier: { + serializedName: "tier", type: { name: "String" } }, - type: { - serializedName: "type", + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } + } + } + } +}; + +export const CloudServiceRoleProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudServiceRoleProperties", + modelProperties: { + uniqueId: { + serializedName: "uniqueId", readOnly: true, type: { name: "String" } + } + } + } +}; + +export const CloudServiceRoleListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudServiceRoleListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudServiceRole" + } + } + } }, - uniqueId: { - serializedName: "identifier.uniqueId", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -9167,10 +9540,10 @@ export const PirCommunityGalleryResource: coreClient.CompositeMapper = { } }; -export const RoleInstance: coreClient.CompositeMapper = { +export const CloudService: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleInstance", + className: "CloudService", modelProperties: { id: { serializedName: "id", @@ -9195,97 +9568,129 @@ export const RoleInstance: coreClient.CompositeMapper = { }, location: { serializedName: "location", - readOnly: true, + required: true, type: { name: "String" } }, tags: { serializedName: "tags", - readOnly: true, type: { name: "Dictionary", value: { type: { name: "String" } } } }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "InstanceSku" - } - }, properties: { serializedName: "properties", type: { name: "Composite", - className: "RoleInstanceProperties" + className: "CloudServiceProperties" } } } } }; -export const InstanceSku: coreClient.CompositeMapper = { +export const CloudServiceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceSku", + className: "CloudServiceProperties", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + packageUrl: { + serializedName: "packageUrl", type: { name: "String" } }, - tier: { - serializedName: "tier", - readOnly: true, + configuration: { + serializedName: "configuration", type: { name: "String" } - } - } - } -}; - -export const RoleInstanceProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoleInstanceProperties", - modelProperties: { + }, + configurationUrl: { + serializedName: "configurationUrl", + type: { + name: "String" + } + }, + startCloudService: { + serializedName: "startCloudService", + type: { + name: "Boolean" + } + }, + allowModelOverride: { + serializedName: "allowModelOverride", + type: { + name: "Boolean" + } + }, + upgradeMode: { + serializedName: "upgradeMode", + type: { + name: "String" + } + }, + roleProfile: { + serializedName: "roleProfile", + type: { + name: "Composite", + className: "CloudServiceRoleProfile" + } + }, + osProfile: { + serializedName: "osProfile", + type: { + name: "Composite", + className: "CloudServiceOsProfile" + } + }, networkProfile: { serializedName: "networkProfile", type: { name: "Composite", - className: "RoleInstanceNetworkProfile" + className: "CloudServiceNetworkProfile" } }, - instanceView: { - serializedName: "instanceView", + extensionProfile: { + serializedName: "extensionProfile", type: { name: "Composite", - className: "RoleInstanceView" + className: "CloudServiceExtensionProfile" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + uniqueId: { + serializedName: "uniqueId", + readOnly: true, + type: { + name: "String" } } } } }; -export const RoleInstanceNetworkProfile: coreClient.CompositeMapper = { +export const CloudServiceRoleProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleInstanceNetworkProfile", + className: "CloudServiceRoleProfile", modelProperties: { - networkInterfaces: { - serializedName: "networkInterfaces", - readOnly: true, + roles: { + serializedName: "roles", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResource" + className: "CloudServiceRoleProfileProperties" } } } @@ -9294,41 +9699,41 @@ export const RoleInstanceNetworkProfile: coreClient.CompositeMapper = { } }; -export const RoleInstanceView: coreClient.CompositeMapper = { +export const CloudServiceRoleProfileProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleInstanceView", + className: "CloudServiceRoleProfileProperties", modelProperties: { - platformUpdateDomain: { - serializedName: "platformUpdateDomain", - readOnly: true, - type: { - name: "Number" - } - }, - platformFaultDomain: { - serializedName: "platformFaultDomain", - readOnly: true, + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - privateId: { - serializedName: "privateId", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "CloudServiceRoleSku" } - }, - statuses: { - serializedName: "statuses", - readOnly: true, + } + } + } +}; + +export const CloudServiceOsProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudServiceOsProfile", + modelProperties: { + secrets: { + serializedName: "secrets", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourceInstanceViewStatus" + className: "CloudServiceVaultSecretGroup" } } } @@ -9337,164 +9742,172 @@ export const RoleInstanceView: coreClient.CompositeMapper = { } }; -export const ResourceInstanceViewStatus: coreClient.CompositeMapper = { +export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceInstanceViewStatus", + className: "CloudServiceVaultSecretGroup", modelProperties: { - code: { - serializedName: "code", - readOnly: true, + sourceVault: { + serializedName: "sourceVault", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - displayStatus: { - serializedName: "displayStatus", - readOnly: true, + vaultCertificates: { + serializedName: "vaultCertificates", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudServiceVaultCertificate" + } + } } - }, - message: { - serializedName: "message", - readOnly: true, + } + } + } +}; + +export const CloudServiceVaultCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudServiceVaultCertificate", + modelProperties: { + certificateUrl: { + serializedName: "certificateUrl", type: { name: "String" } - }, - time: { - serializedName: "time", - readOnly: true, - type: { - name: "DateTime" - } - }, - level: { - serializedName: "level", - type: { - name: "Enum", - allowedValues: ["Info", "Warning", "Error"] - } } } } }; -export const RoleInstanceListResult: coreClient.CompositeMapper = { +export const CloudServiceNetworkProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleInstanceListResult", + className: "CloudServiceNetworkProfile", modelProperties: { - value: { - serializedName: "value", - required: true, + loadBalancerConfigurations: { + serializedName: "loadBalancerConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RoleInstance" + className: "LoadBalancerConfiguration" } } } }, - nextLink: { - serializedName: "nextLink", + swappableCloudService: { + serializedName: "swappableCloudService", type: { - name: "String" + name: "Composite", + className: "SubResource" } } } } }; -export const CloudServiceRole: coreClient.CompositeMapper = { +export const LoadBalancerConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceRole", + className: "LoadBalancerConfiguration", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, + id: { + serializedName: "id", type: { name: "String" } }, - location: { - serializedName: "location", - readOnly: true, + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "CloudServiceRoleSku" - } - }, properties: { serializedName: "properties", type: { name: "Composite", - className: "CloudServiceRoleProperties" + className: "LoadBalancerConfigurationProperties" } } } } }; -export const CloudServiceRoleSku: coreClient.CompositeMapper = { +export const LoadBalancerConfigurationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceRoleSku", + className: "LoadBalancerConfigurationProperties", modelProperties: { - name: { - serializedName: "name", + frontendIPConfigurations: { + serializedName: "frontendIPConfigurations", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LoadBalancerFrontendIPConfiguration" + } + } } - }, - tier: { - serializedName: "tier", + } + } + } +}; + +export const LoadBalancerFrontendIPConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LoadBalancerFrontendIPConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - capacity: { - serializedName: "capacity", + properties: { + serializedName: "properties", type: { - name: "Number" + name: "Composite", + className: "LoadBalancerFrontendIPConfigurationProperties" } } } } }; -export const CloudServiceRoleProperties: coreClient.CompositeMapper = { +export const LoadBalancerFrontendIPConfigurationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceRoleProperties", + className: "LoadBalancerFrontendIPConfigurationProperties", modelProperties: { - uniqueId: { - serializedName: "uniqueId", - readOnly: true, + publicIPAddress: { + serializedName: "publicIPAddress", + type: { + name: "Composite", + className: "SubResource" + } + }, + subnet: { + serializedName: "subnet", + type: { + name: "Composite", + className: "SubResource" + } + }, + privateIPAddress: { + serializedName: "privateIPAddress", type: { name: "String" } @@ -9503,185 +9916,225 @@ 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: "String" + } + }, + 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: "CloudServiceNetworkProfile" + className: "SubResource" } }, - extensionProfile: { - serializedName: "extensionProfile", + secretUrl: { + serializedName: "secretUrl", + 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: "CloudServiceExtensionProfile" + className: "InstanceViewStatusesSummary" } }, - provisioningState: { - serializedName: "provisioningState", + sdkVersion: { + serializedName: "sdkVersion", + readOnly: true, + type: { + name: "String" + } + }, + privateIds: { + serializedName: "privateIds", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - uniqueId: { - serializedName: "uniqueId", + statuses: { + serializedName: "statuses", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceInstanceViewStatus" + } + } } } } } }; -export const CloudServiceRoleProfile: coreClient.CompositeMapper = { +export const InstanceViewStatusesSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceRoleProfile", + className: "InstanceViewStatusesSummary", modelProperties: { - roles: { - serializedName: "roles", + statusesSummary: { + serializedName: "statusesSummary", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "CloudServiceRoleProfileProperties" + className: "StatusCodeCount" } } } @@ -9690,69 +10143,70 @@ export const CloudServiceRoleProfile: coreClient.CompositeMapper = { } }; -export const CloudServiceRoleProfileProperties: coreClient.CompositeMapper = { +export const StatusCodeCount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceRoleProfileProperties", + className: "StatusCodeCount", modelProperties: { - name: { - serializedName: "name", + code: { + serializedName: "code", + readOnly: true, type: { name: "String" } }, - sku: { - serializedName: "sku", + count: { + serializedName: "count", + readOnly: true, type: { - name: "Composite", - className: "CloudServiceRoleSku" + name: "Number" } } } } }; -export const CloudServiceOsProfile: coreClient.CompositeMapper = { +export const CloudServiceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceOsProfile", + className: "CloudServiceListResult", modelProperties: { - secrets: { - serializedName: "secrets", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "CloudServiceVaultSecretGroup" + className: "CloudService" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { +export const RoleInstances: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceVaultSecretGroup", + className: "RoleInstances", modelProperties: { - sourceVault: { - serializedName: "sourceVault", - type: { - name: "Composite", - className: "SubResource" - } - }, - vaultCertificates: { - serializedName: "vaultCertificates", + roleInstances: { + serializedName: "roleInstances", + required: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "CloudServiceVaultCertificate" + name: "String" } } } @@ -9761,13 +10215,21 @@ export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { } }; -export const CloudServiceVaultCertificate: coreClient.CompositeMapper = { +export const UpdateDomain: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceVaultCertificate", + className: "UpdateDomain", modelProperties: { - certificateUrl: { - serializedName: "certificateUrl", + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } @@ -9776,48 +10238,63 @@ export const CloudServiceVaultCertificate: coreClient.CompositeMapper = { } }; -export const CloudServiceNetworkProfile: coreClient.CompositeMapper = { +export const UpdateDomainListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceNetworkProfile", + className: "UpdateDomainListResult", modelProperties: { - loadBalancerConfigurations: { - serializedName: "loadBalancerConfigurations", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "LoadBalancerConfiguration" + className: "UpdateDomain" } } } }, - swappableCloudService: { - serializedName: "swappableCloudService", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "SubResource" + name: "String" } } } } }; -export const LoadBalancerConfiguration: coreClient.CompositeMapper = { +export const OSVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LoadBalancerConfiguration", + 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" } @@ -9826,115 +10303,121 @@ export const LoadBalancerConfiguration: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "LoadBalancerConfigurationProperties" + className: "OSVersionProperties" } } } } }; -export const LoadBalancerConfigurationProperties: coreClient.CompositeMapper = { +export const OSVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LoadBalancerConfigurationProperties", + className: "OSVersionProperties", modelProperties: { - frontendIPConfigurations: { - serializedName: "frontendIPConfigurations", - required: true, + family: { + serializedName: "family", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LoadBalancerFrontendIPConfiguration" - } - } + name: "String" } - } - } - } -}; - -export const LoadBalancerFrontendIPConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LoadBalancerFrontendIPConfiguration", - modelProperties: { - name: { - serializedName: "name", - required: true, + }, + familyLabel: { + serializedName: "familyLabel", + readOnly: true, type: { name: "String" } }, - properties: { - serializedName: "properties", + version: { + serializedName: "version", + readOnly: true, type: { - name: "Composite", - className: "LoadBalancerFrontendIPConfigurationProperties" + name: "String" } - } - } - } -}; - -export const LoadBalancerFrontendIPConfigurationProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LoadBalancerFrontendIPConfigurationProperties", - modelProperties: { - publicIPAddress: { - serializedName: "publicIPAddress", + }, + label: { + serializedName: "label", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - subnet: { - serializedName: "subnet", + isDefault: { + serializedName: "isDefault", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + 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" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const Extension: coreClient.CompositeMapper = { +export const OSFamily: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Extension", + className: "OSFamily", 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, type: { name: "String" } @@ -9943,103 +10426,106 @@ export const Extension: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "CloudServiceExtensionProperties" + className: "OSFamilyProperties" } } } } }; -export const CloudServiceExtensionProperties: coreClient.CompositeMapper = { +export const OSFamilyProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceExtensionProperties", + className: "OSFamilyProperties", modelProperties: { - publisher: { - serializedName: "publisher", - type: { - name: "String" - } - }, - type: { - serializedName: "type", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - typeHandlerVersion: { - serializedName: "typeHandlerVersion", + label: { + serializedName: "label", + readOnly: true, type: { name: "String" } }, - autoUpgradeMinorVersion: { - serializedName: "autoUpgradeMinorVersion", - type: { - name: "Boolean" - } - }, - settings: { - serializedName: "settings", + versions: { + serializedName: "versions", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OSVersionPropertiesBase" + } + } } - }, - protectedSettings: { - serializedName: "protectedSettings", + } + } + } +}; + +export const OSVersionPropertiesBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OSVersionPropertiesBase", + modelProperties: { + version: { + serializedName: "version", + readOnly: true, type: { name: "String" } }, - protectedSettingsFromKeyVault: { - serializedName: "protectedSettingsFromKeyVault", - type: { - name: "Composite", - className: "CloudServiceVaultAndSecretReference" - } - }, - forceUpdateTag: { - serializedName: "forceUpdateTag", + label: { + serializedName: "label", + readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "provisioningState", + isDefault: { + serializedName: "isDefault", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - rolesAppliedTo: { - serializedName: "rolesAppliedTo", + isActive: { + serializedName: "isActive", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } } } } }; -export const CloudServiceVaultAndSecretReference: coreClient.CompositeMapper = { +export const OSFamilyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceVaultAndSecretReference", + className: "OSFamilyListResult", modelProperties: { - sourceVault: { - serializedName: "sourceVault", + value: { + serializedName: "value", + required: true, type: { - name: "Composite", - className: "SubResource" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OSFamily" + } + } } }, - secretUrl: { - serializedName: "secretUrl", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -10048,62 +10534,66 @@ export const CloudServiceVaultAndSecretReference: coreClient.CompositeMapper = { } }; -export const CloudServiceUpdate: coreClient.CompositeMapper = { +export const DiskRestorePointReplicationStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceUpdate", + className: "DiskRestorePointReplicationStatus", modelProperties: { - tags: { - serializedName: "tags", + status: { + serializedName: "status", type: { name: "Dictionary", - value: { type: { name: "String" } } + value: { type: { name: "any" } } } } } } }; -export const CloudServiceInstanceView: coreClient.CompositeMapper = { +export const CommunityGalleryInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceInstanceView", + className: "CommunityGalleryInfo", modelProperties: { - roleInstance: { - serializedName: "roleInstance", + publisherUri: { + serializedName: "publisherUri", type: { - name: "Composite", - className: "InstanceViewStatusesSummary" + name: "String" } }, - sdkVersion: { - serializedName: "sdkVersion", - readOnly: true, + publisherContact: { + serializedName: "publisherContact", type: { name: "String" } }, - privateIds: { - serializedName: "privateIds", + eula: { + serializedName: "eula", + type: { + name: "String" + } + }, + publicNamePrefix: { + serializedName: "publicNamePrefix", + type: { + name: "String" + } + }, + communityGalleryEnabled: { + serializedName: "communityGalleryEnabled", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - statuses: { - serializedName: "statuses", + publicNames: { + serializedName: "publicNames", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ResourceInstanceViewStatus" + name: "String" } } } @@ -10112,71 +10602,83 @@ export const CloudServiceInstanceView: coreClient.CompositeMapper = { } }; -export const InstanceViewStatusesSummary: coreClient.CompositeMapper = { +export const GalleryArtifactSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceViewStatusesSummary", + className: "GalleryArtifactSource", modelProperties: { - statusesSummary: { - serializedName: "statusesSummary", - readOnly: true, + managedImage: { + serializedName: "managedImage", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "StatusCodeCount" - } - } + name: "Composite", + className: "ManagedArtifact" } } } } }; -export const StatusCodeCount: coreClient.CompositeMapper = { +export const ManagedArtifact: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StatusCodeCount", + className: "ManagedArtifact", modelProperties: { - code: { - serializedName: "code", - readOnly: true, + id: { + serializedName: "id", + required: true, type: { name: "String" } - }, - count: { - serializedName: "count", - readOnly: true, - type: { - name: "Number" - } } } } }; -export const CloudServiceListResult: coreClient.CompositeMapper = { +export const ImageReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceListResult", + className: "ImageReference", modelProperties: { - value: { - serializedName: "value", - required: true, + ...SubResource.type.modelProperties, + publisher: { + serializedName: "publisher", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CloudService" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + 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", type: { name: "String" } @@ -10185,338 +10687,386 @@ export const CloudServiceListResult: coreClient.CompositeMapper = { } }; -export const RoleInstances: coreClient.CompositeMapper = { +export const DiskEncryptionSetParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleInstances", + className: "DiskEncryptionSetParameters", modelProperties: { - roleInstances: { - serializedName: "roleInstances", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + ...SubResource.type.modelProperties } } }; -export const UpdateDomain: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetIPConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateDomain", + className: "VirtualMachineScaleSetIPConfiguration", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - name: { - serializedName: "name", - readOnly: true, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "ApiEntityReference" + } + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean" + } + }, + publicIPAddressConfiguration: { + serializedName: "properties.publicIPAddressConfiguration", + type: { + name: "Composite", + className: "VirtualMachineScaleSetPublicIPAddressConfiguration" + } + }, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", type: { name: "String" } - } - } - } -}; - -export const UpdateDomainListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpdateDomainListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, + }, + applicationGatewayBackendAddressPools: { + serializedName: "properties.applicationGatewayBackendAddressPools", type: { name: "Sequence", element: { type: { name: "Composite", - className: "UpdateDomain" + className: "SubResource" } } } }, - nextLink: { - serializedName: "nextLink", + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", type: { - name: "String" + 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 OSVersion: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetNetworkConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OSVersion", + className: "VirtualMachineScaleSetNetworkConfiguration", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - name: { - serializedName: "name", - readOnly: true, + primary: { + serializedName: "properties.primary", type: { - name: "String" + name: "Boolean" } }, - type: { - serializedName: "type", - readOnly: true, + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", type: { - name: "String" + name: "Boolean" } }, - location: { - serializedName: "location", - readOnly: true, + enableFpga: { + serializedName: "properties.enableFpga", type: { - name: "String" + name: "Boolean" } }, - properties: { - serializedName: "properties", + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", type: { name: "Composite", - className: "OSVersionProperties" + className: "SubResource" + } + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" + } + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetIPConfiguration" + } + } + } + }, + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean" + } + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String" } } } } }; -export const OSVersionProperties: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdateIPConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OSVersionProperties", + className: "VirtualMachineScaleSetUpdateIPConfiguration", modelProperties: { - family: { - serializedName: "family", - readOnly: true, + ...SubResource.type.modelProperties, + name: { + serializedName: "name", 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: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration" + } + }, + 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" + } + } } - } - } - } -}; - -export const OSVersionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OSVersionListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, + }, + loadBalancerBackendAddressPools: { + serializedName: "properties.loadBalancerBackendAddressPools", type: { name: "Sequence", element: { type: { name: "Composite", - className: "OSVersion" + className: "SubResource" } } } }, - nextLink: { - serializedName: "nextLink", + loadBalancerInboundNatPools: { + serializedName: "properties.loadBalancerInboundNatPools", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } } } } }; -export const OSFamily: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdateNetworkConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OSFamily", + className: "VirtualMachineScaleSetUpdateNetworkConfiguration", 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, + primary: { + serializedName: "properties.primary", type: { - name: "String" + name: "Boolean" } }, - location: { - serializedName: "location", - readOnly: true, + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", type: { - name: "String" + name: "Boolean" } }, - properties: { - serializedName: "properties", + enableFpga: { + serializedName: "properties.enableFpga", type: { - name: "Composite", - className: "OSFamilyProperties" + name: "Boolean" } - } - } - } -}; - -export const OSFamilyProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OSFamilyProperties", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, + }, + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - label: { - serializedName: "label", - readOnly: true, + dnsSettings: { + serializedName: "properties.dnsSettings", type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" } }, - versions: { - serializedName: "versions", - readOnly: true, + ipConfigurations: { + serializedName: "properties.ipConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "OSVersionPropertiesBase" + className: "VirtualMachineScaleSetUpdateIPConfiguration" } } } + }, + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean" + } + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String" + } } } } }; -export const OSVersionPropertiesBase: coreClient.CompositeMapper = { +export const ManagedDiskParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OSVersionPropertiesBase", + className: "ManagedDiskParameters", modelProperties: { - version: { - serializedName: "version", - readOnly: true, - type: { - name: "String" - } - }, - label: { - serializedName: "label", - readOnly: true, + ...SubResource.type.modelProperties, + storageAccountType: { + serializedName: "storageAccountType", type: { name: "String" } }, - isDefault: { - serializedName: "isDefault", - readOnly: true, + diskEncryptionSet: { + serializedName: "diskEncryptionSet", type: { - name: "Boolean" + name: "Composite", + className: "DiskEncryptionSetParameters" } }, - isActive: { - serializedName: "isActive", - readOnly: true, + securityProfile: { + serializedName: "securityProfile", type: { - name: "Boolean" + name: "Composite", + className: "VMDiskSecurityProfile" } } } } }; -export const OSFamilyListResult: coreClient.CompositeMapper = { +export const NetworkInterfaceReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OSFamilyListResult", + className: "NetworkInterfaceReference", modelProperties: { - value: { - serializedName: "value", - required: true, + ...SubResource.type.modelProperties, + primary: { + serializedName: "properties.primary", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OSFamily" - } - } + name: "Boolean" } }, - nextLink: { - serializedName: "nextLink", + deleteOption: { + serializedName: "properties.deleteOption", type: { name: "String" } @@ -10525,117 +11075,45 @@ export const OSFamilyListResult: coreClient.CompositeMapper = { } }; -export const DiskRestorePointReplicationStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiskRestorePointReplicationStatus", - modelProperties: { - status: { - serializedName: "status", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } -}; - -export const CommunityGalleryInfo: coreClient.CompositeMapper = { +export const VirtualMachineCaptureResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CommunityGalleryInfo", + className: "VirtualMachineCaptureResult", modelProperties: { - publisherUri: { - serializedName: "publisherUri", - type: { - name: "String" - } - }, - publisherContact: { - serializedName: "publisherContact", - type: { - name: "String" - } - }, - eula: { - serializedName: "eula", + ...SubResource.type.modelProperties, + schema: { + serializedName: "$schema", + readOnly: true, type: { name: "String" } }, - publicNamePrefix: { - serializedName: "publicNamePrefix", + contentVersion: { + serializedName: "contentVersion", + readOnly: true, type: { name: "String" } }, - communityGalleryEnabled: { - serializedName: "communityGalleryEnabled", + parameters: { + serializedName: "parameters", readOnly: true, type: { - name: "Boolean" + name: "Dictionary", + value: { type: { name: "any" } } } }, - publicNames: { - serializedName: "publicNames", + resources: { + serializedName: "resources", readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } - } - } - } - } - } -}; - -export const GalleryArtifactSource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryArtifactSource", - modelProperties: { - managedImage: { - serializedName: "managedImage", - type: { - name: "Composite", - className: "ManagedArtifact" - } - } - } - } -}; - -export const ManagedArtifact: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedArtifact", - modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const SubResourceWithColocationStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SubResourceWithColocationStatus", - modelProperties: { - ...SubResource.type.modelProperties, - colocationStatus: { - serializedName: "colocationStatus", - type: { - name: "Composite", - className: "InstanceViewStatus" + } } } } @@ -10680,812 +11158,614 @@ 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" } }, - primary: { - serializedName: "properties.primary", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - enableAcceleratedNetworking: { - serializedName: "properties.enableAcceleratedNetworking", + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", + type: { + name: "String" + } + }, + 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" } }, - 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" } } + } + }, + protectedSettings: { + serializedName: "properties.protectedSettings", + type: { + name: "Dictionary", + value: { type: { name: "any" } } } }, - dnsSettings: { - serializedName: "properties.dnsSettings", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" + name: "String" } }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + 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: { - name: "Boolean" - } - }, - enableAcceleratedNetworking: { - serializedName: "properties.enableAcceleratedNetworking", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - enableFpga: { - serializedName: "properties.enableFpga", + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", type: { - name: "Boolean" + name: "String" } }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", + publisher: { + serializedName: "properties.publisher", type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - dnsSettings: { - serializedName: "properties.dnsSettings", + typePropertiesType: { + serializedName: "properties.type", type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" + name: "String" } }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateIPConfiguration" - } - } + name: "String" } }, - enableIPForwarding: { - serializedName: "properties.enableIPForwarding", + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", type: { name: "Boolean" } }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" - } - } - } - } -}; - -export const AvailabilitySet: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AvailabilitySet", - modelProperties: { - ...Resource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - platformUpdateDomainCount: { - serializedName: "properties.platformUpdateDomainCount", + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", type: { - name: "Number" + name: "Boolean" } }, - platformFaultDomainCount: { - serializedName: "properties.platformFaultDomainCount", + settings: { + serializedName: "properties.settings", type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "any" } } } }, - virtualMachines: { - serializedName: "properties.virtualMachines", + protectedSettings: { + serializedName: "properties.protectedSettings", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Dictionary", + value: { type: { name: "any" } } } }, - proximityPlacementGroup: { - serializedName: "properties.proximityPlacementGroup", + suppressFailures: { + serializedName: "properties.suppressFailures", type: { - name: "Composite", - className: "SubResource" + name: "Boolean" } }, - statuses: { - serializedName: "properties.statuses", - readOnly: true, + protectedSettingsFromKeyVault: { + serializedName: "properties.protectedSettingsFromKeyVault", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const ProximityPlacementGroup: coreClient.CompositeMapper = { +export const VirtualMachineScaleSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProximityPlacementGroup", + className: "VirtualMachineScaleSet", modelProperties: { ...Resource.type.modelProperties, - proximityPlacementGroupType: { - serializedName: "properties.proximityPlacementGroupType", + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - virtualMachines: { - serializedName: "properties.virtualMachines", - readOnly: true, + plan: { + serializedName: "plan", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceWithColocationStatus" - } - } + name: "Composite", + className: "Plan" } }, - virtualMachineScaleSets: { - serializedName: "properties.virtualMachineScaleSets", - readOnly: true, + identity: { + serializedName: "identity", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceWithColocationStatus" - } - } + name: "Composite", + className: "VirtualMachineScaleSetIdentity" } }, - availabilitySets: { - serializedName: "properties.availabilitySets", - readOnly: true, + zones: { + serializedName: "zones", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SubResourceWithColocationStatus" + name: "String" } } } }, - colocationStatus: { - serializedName: "properties.colocationStatus", + extendedLocation: { + serializedName: "extendedLocation", type: { name: "Composite", - className: "InstanceViewStatus" + className: "ExtendedLocation" } - } - } - } -}; - -export const DedicatedHostGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHostGroup", - modelProperties: { - ...Resource.type.modelProperties, - zones: { - serializedName: "zones", + }, + upgradePolicy: { + serializedName: "properties.upgradePolicy", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "UpgradePolicy" } }, - platformFaultDomainCount: { - constraints: { - InclusiveMinimum: 1 - }, - serializedName: "properties.platformFaultDomainCount", + automaticRepairsPolicy: { + serializedName: "properties.automaticRepairsPolicy", type: { - name: "Number" + name: "Composite", + className: "AutomaticRepairsPolicy" } }, - hosts: { - serializedName: "properties.hosts", + virtualMachineProfile: { + serializedName: "properties.virtualMachineProfile", + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMProfile" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } + name: "String" } }, - instanceView: { - serializedName: "properties.instanceView", + overprovision: { + serializedName: "properties.overprovision", type: { - name: "Composite", - className: "DedicatedHostGroupInstanceView" + name: "Boolean" } }, - supportAutomaticPlacement: { - serializedName: "properties.supportAutomaticPlacement", + doNotRunExtensionsOnOverprovisionedVMs: { + serializedName: "properties.doNotRunExtensionsOnOverprovisionedVMs", type: { name: "Boolean" } - } - } - } -}; - -export const DedicatedHost: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHost", - modelProperties: { - ...Resource.type.modelProperties, - sku: { - serializedName: "sku", + }, + uniqueId: { + serializedName: "properties.uniqueId", + readOnly: true, type: { - name: "Composite", - className: "Sku" + name: "String" } }, - platformFaultDomain: { - constraints: { - InclusiveMinimum: 0 - }, - serializedName: "properties.platformFaultDomain", + singlePlacementGroup: { + serializedName: "properties.singlePlacementGroup", type: { - name: "Number" + name: "Boolean" } }, - autoReplaceOnFailure: { - serializedName: "properties.autoReplaceOnFailure", + zoneBalance: { + serializedName: "properties.zoneBalance", type: { name: "Boolean" } }, - hostId: { - serializedName: "properties.hostId", - readOnly: true, + platformFaultDomainCount: { + serializedName: "properties.platformFaultDomainCount", type: { - name: "String" + name: "Number" } }, - virtualMachines: { - serializedName: "properties.virtualMachines", - readOnly: true, + proximityPlacementGroup: { + serializedName: "properties.proximityPlacementGroup", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } + name: "Composite", + className: "SubResource" } }, - licenseType: { - serializedName: "properties.licenseType", + hostGroup: { + serializedName: "properties.hostGroup", type: { - name: "Enum", - allowedValues: [ - "None", - "Windows_Server_Hybrid", - "Windows_Server_Perpetual" - ] + name: "Composite", + className: "SubResource" } }, - provisioningTime: { - serializedName: "properties.provisioningTime", - readOnly: true, + additionalCapabilities: { + serializedName: "properties.additionalCapabilities", type: { - name: "DateTime" + name: "Composite", + className: "AdditionalCapabilities" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + scaleInPolicy: { + serializedName: "properties.scaleInPolicy", + type: { + name: "Composite", + className: "ScaleInPolicy" + } + }, + orchestrationMode: { + serializedName: "properties.orchestrationMode", type: { name: "String" } }, - instanceView: { - serializedName: "properties.instanceView", + spotRestorePolicy: { + serializedName: "properties.spotRestorePolicy", type: { name: "Composite", - className: "DedicatedHostInstanceView" + className: "SpotRestorePolicy" } }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } -}; - -export const SshPublicKeyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SshPublicKeyResource", - modelProperties: { - ...Resource.type.modelProperties, - publicKey: { - serializedName: "properties.publicKey", - type: { - name: "String" + name: "DateTime" } } } } }; -export const VirtualMachineExtensionImage: coreClient.CompositeMapper = { +export const RollingUpgradeStatusInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineExtensionImage", + className: "RollingUpgradeStatusInfo", modelProperties: { ...Resource.type.modelProperties, - operatingSystem: { - serializedName: "properties.operatingSystem", - type: { - name: "String" - } - }, - computeRole: { - serializedName: "properties.computeRole", + policy: { + serializedName: "properties.policy", type: { - name: "String" + name: "Composite", + className: "RollingUpgradePolicy" } }, - handlerSchema: { - serializedName: "properties.handlerSchema", + runningStatus: { + serializedName: "properties.runningStatus", type: { - name: "String" + name: "Composite", + className: "RollingUpgradeRunningStatus" } }, - vmScaleSetEnabled: { - serializedName: "properties.vmScaleSetEnabled", + progress: { + serializedName: "properties.progress", type: { - name: "Boolean" + name: "Composite", + className: "RollingUpgradeProgressInfo" } }, - supportsMultipleExtensions: { - serializedName: "properties.supportsMultipleExtensions", + error: { + serializedName: "properties.error", type: { - name: "Boolean" + name: "Composite", + className: "ApiError" } } } @@ -11579,12 +11859,26 @@ export const VirtualMachineExtension: coreClient.CompositeMapper = { } }; -export const VirtualMachine: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachine", + 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: { @@ -11605,15 +11899,9 @@ export const VirtualMachine: coreClient.CompositeMapper = { } } }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "VirtualMachineIdentity" - } - }, zones: { serializedName: "zones", + readOnly: true, type: { name: "Sequence", element: { @@ -11623,11 +11911,25 @@ export const VirtualMachine: coreClient.CompositeMapper = { } } }, - extendedLocation: { - serializedName: "extendedLocation", + 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: "ExtendedLocation" + className: "VirtualMachineScaleSetVMInstanceView" } }, hardwareProfile: { @@ -11658,6 +11960,13 @@ export const VirtualMachine: coreClient.CompositeMapper = { className: "OSProfile" } }, + securityProfile: { + serializedName: "properties.securityProfile", + type: { + name: "Composite", + className: "SecurityProfile" + } + }, networkProfile: { serializedName: "properties.networkProfile", type: { @@ -11665,11 +11974,11 @@ export const VirtualMachine: coreClient.CompositeMapper = { className: "NetworkProfile" } }, - securityProfile: { - serializedName: "properties.securityProfile", + networkProfileConfiguration: { + serializedName: "properties.networkProfileConfiguration", type: { name: "Composite", - className: "SecurityProfile" + className: "VirtualMachineScaleSetVMNetworkProfileConfiguration" } }, diagnosticsProfile: { @@ -11686,53 +11995,6 @@ export const VirtualMachine: coreClient.CompositeMapper = { className: "SubResource" } }, - virtualMachineScaleSet: { - serializedName: "properties.virtualMachineScaleSet", - type: { - name: "Composite", - className: "SubResource" - } - }, - proximityPlacementGroup: { - serializedName: "properties.proximityPlacementGroup", - type: { - name: "Composite", - className: "SubResource" - } - }, - priority: { - serializedName: "properties.priority", - type: { - name: "String" - } - }, - evictionPolicy: { - serializedName: "properties.evictionPolicy", - type: { - name: "String" - } - }, - billingProfile: { - serializedName: "properties.billingProfile", - type: { - name: "Composite", - className: "BillingProfile" - } - }, - host: { - serializedName: "properties.host", - type: { - name: "Composite", - className: "SubResource" - } - }, - hostGroup: { - serializedName: "properties.hostGroup", - type: { - name: "Composite", - className: "SubResource" - } - }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -11740,43 +12002,24 @@ export const VirtualMachine: coreClient.CompositeMapper = { name: "String" } }, - instanceView: { - serializedName: "properties.instanceView", - type: { - name: "Composite", - className: "VirtualMachineInstanceView" - } - }, licenseType: { serializedName: "properties.licenseType", type: { name: "String" } }, - vmId: { - serializedName: "properties.vmId", + modelDefinitionApplied: { + serializedName: "properties.modelDefinitionApplied", readOnly: true, type: { name: "String" } }, - extensionsTimeBudget: { - serializedName: "properties.extensionsTimeBudget", - type: { - name: "String" - } - }, - platformFaultDomain: { - serializedName: "properties.platformFaultDomain", - type: { - name: "Number" - } - }, - scheduledEventsProfile: { - serializedName: "properties.scheduledEventsProfile", + protectionPolicy: { + serializedName: "properties.protectionPolicy", type: { name: "Composite", - className: "ScheduledEventsProfile" + className: "VirtualMachineScaleSetVMProtectionPolicy" } }, userData: { @@ -11784,45 +12027,17 @@ export const VirtualMachine: coreClient.CompositeMapper = { 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 VirtualMachineScaleSet: coreClient.CompositeMapper = { +export const VirtualMachine: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSet", + className: "VirtualMachine", modelProperties: { ...Resource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, plan: { serializedName: "plan", type: { @@ -11830,11 +12045,24 @@ export const VirtualMachineScaleSet: coreClient.CompositeMapper = { className: "Plan" } }, + resources: { + serializedName: "resources", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineExtension" + } + } + } + }, identity: { serializedName: "identity", type: { name: "Composite", - className: "VirtualMachineScaleSetIdentity" + className: "VirtualMachineIdentity" } }, zones: { @@ -11855,148 +12083,107 @@ export const VirtualMachineScaleSet: coreClient.CompositeMapper = { className: "ExtendedLocation" } }, - upgradePolicy: { - serializedName: "properties.upgradePolicy", - type: { - name: "Composite", - className: "UpgradePolicy" - } - }, - automaticRepairsPolicy: { - serializedName: "properties.automaticRepairsPolicy", - type: { - name: "Composite", - className: "AutomaticRepairsPolicy" - } - }, - virtualMachineProfile: { - serializedName: "properties.virtualMachineProfile", + hardwareProfile: { + serializedName: "properties.hardwareProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetVMProfile" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - overprovision: { - serializedName: "properties.overprovision", - type: { - name: "Boolean" + className: "HardwareProfile" } }, - doNotRunExtensionsOnOverprovisionedVMs: { - serializedName: "properties.doNotRunExtensionsOnOverprovisionedVMs", + storageProfile: { + serializedName: "properties.storageProfile", type: { - name: "Boolean" + name: "Composite", + className: "StorageProfile" } }, - uniqueId: { - serializedName: "properties.uniqueId", - readOnly: true, + additionalCapabilities: { + serializedName: "properties.additionalCapabilities", type: { - name: "String" + name: "Composite", + className: "AdditionalCapabilities" } }, - singlePlacementGroup: { - serializedName: "properties.singlePlacementGroup", + osProfile: { + serializedName: "properties.osProfile", type: { - name: "Boolean" + name: "Composite", + className: "OSProfile" } }, - zoneBalance: { - serializedName: "properties.zoneBalance", + networkProfile: { + serializedName: "properties.networkProfile", type: { - name: "Boolean" + name: "Composite", + className: "NetworkProfile" } }, - platformFaultDomainCount: { - serializedName: "properties.platformFaultDomainCount", + securityProfile: { + serializedName: "properties.securityProfile", type: { - name: "Number" + name: "Composite", + className: "SecurityProfile" } }, - proximityPlacementGroup: { - serializedName: "properties.proximityPlacementGroup", + diagnosticsProfile: { + serializedName: "properties.diagnosticsProfile", type: { name: "Composite", - className: "SubResource" + className: "DiagnosticsProfile" } }, - hostGroup: { - serializedName: "properties.hostGroup", + availabilitySet: { + serializedName: "properties.availabilitySet", type: { name: "Composite", className: "SubResource" } }, - additionalCapabilities: { - serializedName: "properties.additionalCapabilities", + virtualMachineScaleSet: { + serializedName: "properties.virtualMachineScaleSet", type: { name: "Composite", - className: "AdditionalCapabilities" + className: "SubResource" } }, - scaleInPolicy: { - serializedName: "properties.scaleInPolicy", + proximityPlacementGroup: { + serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "ScaleInPolicy" + className: "SubResource" } }, - orchestrationMode: { - serializedName: "properties.orchestrationMode", + priority: { + serializedName: "properties.priority", type: { name: "String" } }, - spotRestorePolicy: { - serializedName: "properties.spotRestorePolicy", + evictionPolicy: { + serializedName: "properties.evictionPolicy", type: { - name: "Composite", - className: "SpotRestorePolicy" + name: "String" } }, - timeCreated: { - serializedName: "properties.timeCreated", - readOnly: true, - type: { - name: "DateTime" - } - } - } - } -}; - -export const Image: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Image", - modelProperties: { - ...Resource.type.modelProperties, - extendedLocation: { - serializedName: "extendedLocation", + billingProfile: { + serializedName: "properties.billingProfile", type: { name: "Composite", - className: "ExtendedLocation" + className: "BillingProfile" } }, - sourceVirtualMachine: { - serializedName: "properties.sourceVirtualMachine", + host: { + serializedName: "properties.host", type: { name: "Composite", className: "SubResource" } }, - storageProfile: { - serializedName: "properties.storageProfile", + hostGroup: { + serializedName: "properties.hostGroup", type: { name: "Composite", - className: "ImageStorageProfile" + className: "SubResource" } }, provisioningState: { @@ -12006,271 +12193,247 @@ export const Image: coreClient.CompositeMapper = { name: "String" } }, - hyperVGeneration: { - serializedName: "properties.hyperVGeneration", + instanceView: { + serializedName: "properties.instanceView", type: { - name: "String" + name: "Composite", + className: "VirtualMachineInstanceView" } - } - } - } -}; - -export const RestorePointCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePointCollection", - modelProperties: { - ...Resource.type.modelProperties, - source: { - serializedName: "properties.source", + }, + licenseType: { + serializedName: "properties.licenseType", type: { - name: "Composite", - className: "RestorePointCollectionSourceProperties" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + vmId: { + serializedName: "properties.vmId", readOnly: true, type: { name: "String" } }, - restorePointCollectionId: { - serializedName: "properties.restorePointCollectionId", - readOnly: true, + extensionsTimeBudget: { + serializedName: "properties.extensionsTimeBudget", type: { name: "String" } }, - restorePoints: { - serializedName: "properties.restorePoints", - readOnly: true, + platformFaultDomain: { + serializedName: "properties.platformFaultDomain", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorePoint" - } - } + name: "Number" } - } - } - } -}; - -export const CapacityReservationGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationGroup", - modelProperties: { - ...Resource.type.modelProperties, - zones: { - serializedName: "zones", + }, + scheduledEventsProfile: { + serializedName: "properties.scheduledEventsProfile", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ScheduledEventsProfile" } }, - capacityReservations: { - serializedName: "properties.capacityReservations", - readOnly: true, + userData: { + serializedName: "properties.userData", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } + name: "String" } }, - virtualMachinesAssociated: { - serializedName: "properties.virtualMachinesAssociated", - readOnly: true, + capacityReservation: { + serializedName: "properties.capacityReservation", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } + name: "Composite", + className: "CapacityReservationProfile" } }, - instanceView: { - serializedName: "properties.instanceView", + applicationProfile: { + serializedName: "properties.applicationProfile", type: { name: "Composite", - className: "CapacityReservationGroupInstanceView" + className: "ApplicationProfile" + } + }, + timeCreated: { + serializedName: "properties.timeCreated", + readOnly: true, + type: { + name: "DateTime" } } } } }; -export const CapacityReservation: coreClient.CompositeMapper = { +export const VirtualMachineExtensionImage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CapacityReservation", + className: "VirtualMachineExtensionImage", modelProperties: { ...Resource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - zones: { - serializedName: "zones", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - reservationId: { - serializedName: "properties.reservationId", - readOnly: true, + operatingSystem: { + serializedName: "properties.operatingSystem", type: { name: "String" } }, - virtualMachinesAssociated: { - serializedName: "properties.virtualMachinesAssociated", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } - } - }, - provisioningTime: { - serializedName: "properties.provisioningTime", - readOnly: true, + computeRole: { + serializedName: "properties.computeRole", type: { - name: "DateTime" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + handlerSchema: { + serializedName: "properties.handlerSchema", type: { name: "String" } }, - instanceView: { - serializedName: "properties.instanceView", + vmScaleSetEnabled: { + serializedName: "properties.vmScaleSetEnabled", type: { - name: "Composite", - className: "CapacityReservationInstanceView" + name: "Boolean" } }, - timeCreated: { - serializedName: "properties.timeCreated", - readOnly: true, + supportsMultipleExtensions: { + serializedName: "properties.supportsMultipleExtensions", type: { - name: "DateTime" + name: "Boolean" } } } } }; -export const RollingUpgradeStatusInfo: coreClient.CompositeMapper = { +export const AvailabilitySet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RollingUpgradeStatusInfo", + className: "AvailabilitySet", modelProperties: { ...Resource.type.modelProperties, - policy: { - serializedName: "properties.policy", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "RollingUpgradePolicy" + className: "Sku" } }, - runningStatus: { - serializedName: "properties.runningStatus", + platformUpdateDomainCount: { + serializedName: "properties.platformUpdateDomainCount", type: { - name: "Composite", - className: "RollingUpgradeRunningStatus" + name: "Number" } }, - progress: { - serializedName: "properties.progress", + platformFaultDomainCount: { + serializedName: "properties.platformFaultDomainCount", type: { - name: "Composite", - className: "RollingUpgradeProgressInfo" + name: "Number" } }, - error: { - serializedName: "properties.error", + virtualMachines: { + serializedName: "properties.virtualMachines", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + proximityPlacementGroup: { + serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "ApiError" + className: "SubResource" + } + }, + statuses: { + serializedName: "properties.statuses", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } } } } } }; -export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { +export const ProximityPlacementGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVM", + className: "ProximityPlacementGroup", modelProperties: { ...Resource.type.modelProperties, - instanceId: { - serializedName: "instanceId", - readOnly: true, + proximityPlacementGroupType: { + serializedName: "properties.proximityPlacementGroupType", type: { name: "String" } }, - sku: { - serializedName: "sku", + virtualMachines: { + serializedName: "properties.virtualMachines", + readOnly: true, type: { - name: "Composite", - className: "Sku" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceWithColocationStatus" + } + } } }, - plan: { - serializedName: "plan", + virtualMachineScaleSets: { + serializedName: "properties.virtualMachineScaleSets", + readOnly: true, type: { - name: "Composite", - className: "Plan" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceWithColocationStatus" + } + } } }, - resources: { - serializedName: "resources", + availabilitySets: { + serializedName: "properties.availabilitySets", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineExtension" + className: "SubResourceWithColocationStatus" } } } }, + 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", - readOnly: true, type: { name: "Sequence", element: { @@ -12280,235 +12443,255 @@ export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { } } }, - latestModelApplied: { - serializedName: "properties.latestModelApplied", - readOnly: true, + platformFaultDomainCount: { + constraints: { + InclusiveMinimum: 1 + }, + serializedName: "properties.platformFaultDomainCount", type: { - name: "Boolean" + name: "Number" } }, - vmId: { - serializedName: "properties.vmId", + hosts: { + serializedName: "properties.hosts", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } } }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineScaleSetVMInstanceView" - } - }, - hardwareProfile: { - serializedName: "properties.hardwareProfile", - type: { - name: "Composite", - className: "HardwareProfile" + className: "DedicatedHostGroupInstanceView" } }, - storageProfile: { - serializedName: "properties.storageProfile", + supportAutomaticPlacement: { + serializedName: "properties.supportAutomaticPlacement", type: { - name: "Composite", - className: "StorageProfile" + name: "Boolean" } }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "AdditionalCapabilities" - } - }, - osProfile: { - serializedName: "properties.osProfile", - type: { - name: "Composite", - className: "OSProfile" + className: "DedicatedHostGroupPropertiesAdditionalCapabilities" } - }, - securityProfile: { - serializedName: "properties.securityProfile", - type: { - name: "Composite", - className: "SecurityProfile" - } - }, - networkProfile: { - serializedName: "properties.networkProfile", + } + } + } +}; + +export const DedicatedHost: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DedicatedHost", + modelProperties: { + ...Resource.type.modelProperties, + sku: { + serializedName: "sku", type: { name: "Composite", - className: "NetworkProfile" + className: "Sku" } }, - networkProfileConfiguration: { - serializedName: "properties.networkProfileConfiguration", + platformFaultDomain: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "properties.platformFaultDomain", type: { - name: "Composite", - className: "VirtualMachineScaleSetVMNetworkProfileConfiguration" + name: "Number" } }, - diagnosticsProfile: { - serializedName: "properties.diagnosticsProfile", + autoReplaceOnFailure: { + serializedName: "properties.autoReplaceOnFailure", type: { - name: "Composite", - className: "DiagnosticsProfile" + name: "Boolean" } }, - availabilitySet: { - serializedName: "properties.availabilitySet", + hostId: { + serializedName: "properties.hostId", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + virtualMachines: { + serializedName: "properties.virtualMachines", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } } }, licenseType: { serializedName: "properties.licenseType", type: { - name: "String" + name: "Enum", + allowedValues: [ + "None", + "Windows_Server_Hybrid", + "Windows_Server_Perpetual" + ] + } + }, + provisioningTime: { + serializedName: "properties.provisioningTime", + readOnly: true, + type: { + 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: "DedicatedHostInstanceView" } }, - userData: { - serializedName: "properties.userData", + timeCreated: { + serializedName: "properties.timeCreated", + readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const VirtualMachineRunCommand: coreClient.CompositeMapper = { +export const SshPublicKeyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineRunCommand", + className: "SshPublicKeyResource", modelProperties: { ...Resource.type.modelProperties, - source: { - serializedName: "properties.source", + publicKey: { + serializedName: "properties.publicKey", type: { - name: "Composite", - className: "VirtualMachineRunCommandScriptSource" + name: "String" } - }, - parameters: { - serializedName: "properties.parameters", + } + } + } +}; + +export const Image: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Image", + modelProperties: { + ...Resource.type.modelProperties, + extendedLocation: { + serializedName: "extendedLocation", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RunCommandInputParameter" - } - } + name: "Composite", + className: "ExtendedLocation" } }, - protectedParameters: { - serializedName: "properties.protectedParameters", + sourceVirtualMachine: { + serializedName: "properties.sourceVirtualMachine", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RunCommandInputParameter" - } - } + name: "Composite", + className: "SubResource" } }, - asyncExecution: { - defaultValue: false, - serializedName: "properties.asyncExecution", + storageProfile: { + serializedName: "properties.storageProfile", type: { - name: "Boolean" + name: "Composite", + className: "ImageStorageProfile" } }, - runAsUser: { - serializedName: "properties.runAsUser", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - runAsPassword: { - serializedName: "properties.runAsPassword", + hyperVGeneration: { + serializedName: "properties.hyperVGeneration", type: { name: "String" } - }, - timeoutInSeconds: { - serializedName: "properties.timeoutInSeconds", - type: { - name: "Number" - } - }, - outputBlobUri: { - serializedName: "properties.outputBlobUri", + } + } + } +}; + +export const RestorePointCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorePointCollection", + modelProperties: { + ...Resource.type.modelProperties, + source: { + serializedName: "properties.source", type: { - name: "String" + name: "Composite", + className: "RestorePointCollectionSourceProperties" } }, - errorBlobUri: { - serializedName: "properties.errorBlobUri", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + restorePointCollectionId: { + serializedName: "properties.restorePointCollectionId", readOnly: true, type: { name: "String" } }, - instanceView: { - serializedName: "properties.instanceView", + restorePoints: { + serializedName: "properties.restorePoints", + readOnly: true, type: { - name: "Composite", - className: "VirtualMachineRunCommandInstanceView" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorePoint" + } + } } } } } }; -export const Disk: coreClient.CompositeMapper = { +export const CapacityReservationGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Disk", + className: "CapacityReservationGroup", modelProperties: { ...Resource.type.modelProperties, - managedBy: { - serializedName: "managedBy", - readOnly: true, - type: { - name: "String" - } - }, - managedByExtended: { - serializedName: "managedByExtended", - readOnly: true, + zones: { + serializedName: "zones", type: { name: "Sequence", element: { @@ -12518,233 +12701,215 @@ export const Disk: coreClient.CompositeMapper = { } } }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "DiskSku" - } - }, - zones: { - serializedName: "zones", + capacityReservations: { + serializedName: "properties.capacityReservations", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "SubResourceReadOnly" } } } }, - extendedLocation: { - serializedName: "extendedLocation", - type: { - name: "Composite", - className: "ExtendedLocation" - } - }, - timeCreated: { - serializedName: "properties.timeCreated", + virtualMachinesAssociated: { + serializedName: "properties.virtualMachinesAssociated", readOnly: true, type: { - name: "DateTime" - } - }, - osType: { - serializedName: "properties.osType", - type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] - } - }, - hyperVGeneration: { - serializedName: "properties.hyperVGeneration", - type: { - name: "String" - } - }, - purchasePlan: { - serializedName: "properties.purchasePlan", - type: { - name: "Composite", - className: "PurchasePlanAutoGenerated" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } } }, - supportedCapabilities: { - serializedName: "properties.supportedCapabilities", + instanceView: { + serializedName: "properties.instanceView", type: { name: "Composite", - className: "SupportedCapabilities" + className: "CapacityReservationGroupInstanceView" } - }, - creationData: { - serializedName: "properties.creationData", + } + } + } +}; + +export const CapacityReservation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CapacityReservation", + modelProperties: { + ...Resource.type.modelProperties, + sku: { + serializedName: "sku", type: { name: "Composite", - className: "CreationData" - } - }, - diskSizeGB: { - serializedName: "properties.diskSizeGB", - type: { - name: "Number" - } - }, - diskSizeBytes: { - serializedName: "properties.diskSizeBytes", - readOnly: true, - type: { - name: "Number" - } - }, - uniqueId: { - serializedName: "properties.uniqueId", - readOnly: true, - type: { - name: "String" + className: "Sku" } }, - encryptionSettingsCollection: { - serializedName: "properties.encryptionSettingsCollection", + zones: { + serializedName: "zones", type: { - name: "Composite", - className: "EncryptionSettingsCollection" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - provisioningState: { - serializedName: "properties.provisioningState", + reservationId: { + serializedName: "properties.reservationId", readOnly: true, type: { name: "String" } }, - diskIopsReadWrite: { - serializedName: "properties.diskIOPSReadWrite", + virtualMachinesAssociated: { + serializedName: "properties.virtualMachinesAssociated", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } } }, - diskMBpsReadWrite: { - serializedName: "properties.diskMBpsReadWrite", + provisioningTime: { + serializedName: "properties.provisioningTime", + readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - diskIopsReadOnly: { - serializedName: "properties.diskIOPSReadOnly", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Number" + name: "String" } }, - diskMBpsReadOnly: { - serializedName: "properties.diskMBpsReadOnly", + instanceView: { + serializedName: "properties.instanceView", type: { - name: "Number" + name: "Composite", + className: "CapacityReservationInstanceView" } }, - diskState: { - serializedName: "properties.diskState", + timeCreated: { + serializedName: "properties.timeCreated", readOnly: true, type: { - name: "String" + name: "DateTime" } - }, - encryption: { - serializedName: "properties.encryption", + } + } + } +}; + +export const VirtualMachineRunCommand: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineRunCommand", + modelProperties: { + ...Resource.type.modelProperties, + source: { + serializedName: "properties.source", type: { name: "Composite", - className: "Encryption" + className: "VirtualMachineRunCommandScriptSource" } }, - maxShares: { - serializedName: "properties.maxShares", + parameters: { + serializedName: "properties.parameters", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandInputParameter" + } + } } }, - shareInfo: { - serializedName: "properties.shareInfo", - readOnly: true, + protectedParameters: { + serializedName: "properties.protectedParameters", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ShareInfoElement" + className: "RunCommandInputParameter" } } } }, - networkAccessPolicy: { - serializedName: "properties.networkAccessPolicy", + asyncExecution: { + defaultValue: false, + serializedName: "properties.asyncExecution", type: { - name: "String" + name: "Boolean" } }, - diskAccessId: { - serializedName: "properties.diskAccessId", + runAsUser: { + serializedName: "properties.runAsUser", type: { name: "String" } }, - tier: { - serializedName: "properties.tier", + runAsPassword: { + serializedName: "properties.runAsPassword", type: { name: "String" } }, - burstingEnabled: { - serializedName: "properties.burstingEnabled", - type: { - name: "Boolean" - } - }, - propertyUpdatesInProgress: { - serializedName: "properties.propertyUpdatesInProgress", - type: { - name: "Composite", - className: "PropertyUpdatesInProgress" - } - }, - supportsHibernation: { - serializedName: "properties.supportsHibernation", + timeoutInSeconds: { + serializedName: "properties.timeoutInSeconds", type: { - name: "Boolean" + name: "Number" } }, - securityProfile: { - serializedName: "properties.securityProfile", + outputBlobUri: { + serializedName: "properties.outputBlobUri", type: { - name: "Composite", - className: "DiskSecurityProfile" + name: "String" } }, - completionPercent: { - serializedName: "properties.completionPercent", + errorBlobUri: { + serializedName: "properties.errorBlobUri", type: { - name: "Number" + name: "String" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - dataAccessAuthMode: { - serializedName: "properties.dataAccessAuthMode", + instanceView: { + serializedName: "properties.instanceView", type: { - name: "String" + name: "Composite", + className: "VirtualMachineRunCommandInstanceView" } } } } }; -export const Snapshot: coreClient.CompositeMapper = { +export const Disk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Snapshot", + className: "Disk", modelProperties: { ...Resource.type.modelProperties, managedBy: { @@ -12754,11 +12919,34 @@ export const Snapshot: coreClient.CompositeMapper = { name: "String" } }, + managedByExtended: { + serializedName: "managedByExtended", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, sku: { serializedName: "sku", type: { name: "Composite", - className: "SnapshotSku" + className: "DiskSku" + } + }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, extendedLocation: { @@ -12822,13 +13010,6 @@ export const Snapshot: coreClient.CompositeMapper = { name: "Number" } }, - diskState: { - serializedName: "properties.diskState", - readOnly: true, - type: { - name: "String" - } - }, uniqueId: { serializedName: "properties.uniqueId", readOnly: true, @@ -12850,259 +13031,155 @@ export const Snapshot: coreClient.CompositeMapper = { name: "String" } }, - incremental: { - serializedName: "properties.incremental", - type: { - name: "Boolean" - } - }, - encryption: { - serializedName: "properties.encryption", - type: { - name: "Composite", - className: "Encryption" - } - }, - networkAccessPolicy: { - serializedName: "properties.networkAccessPolicy", - type: { - name: "String" - } - }, - diskAccessId: { - serializedName: "properties.diskAccessId", - type: { - name: "String" - } - }, - securityProfile: { - serializedName: "properties.securityProfile", - type: { - name: "Composite", - className: "DiskSecurityProfile" - } - }, - supportsHibernation: { - serializedName: "properties.supportsHibernation", - type: { - name: "Boolean" - } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - type: { - name: "String" - } - }, - completionPercent: { - serializedName: "properties.completionPercent", - type: { - name: "Number" - } - }, - dataAccessAuthMode: { - serializedName: "properties.dataAccessAuthMode", - type: { - name: "String" - } - } - } - } -}; - -export const DiskEncryptionSet: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiskEncryptionSet", - modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "EncryptionSetIdentity" - } - }, - encryptionType: { - serializedName: "properties.encryptionType", - type: { - name: "String" - } - }, - activeKey: { - serializedName: "properties.activeKey", + diskIopsReadWrite: { + serializedName: "properties.diskIOPSReadWrite", type: { - name: "Composite", - className: "KeyForDiskEncryptionSet" + name: "Number" } }, - previousKeys: { - serializedName: "properties.previousKeys", - readOnly: true, + diskMBpsReadWrite: { + serializedName: "properties.diskMBpsReadWrite", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "KeyForDiskEncryptionSet" - } - } + name: "Number" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + diskIopsReadOnly: { + serializedName: "properties.diskIOPSReadOnly", type: { - name: "String" + name: "Number" } }, - rotationToLatestKeyVersionEnabled: { - serializedName: "properties.rotationToLatestKeyVersionEnabled", + diskMBpsReadOnly: { + serializedName: "properties.diskMBpsReadOnly", type: { - name: "Boolean" + name: "Number" } }, - lastKeyRotationTimestamp: { - serializedName: "properties.lastKeyRotationTimestamp", + diskState: { + serializedName: "properties.diskState", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - autoKeyRotationError: { - serializedName: "properties.autoKeyRotationError", + encryption: { + serializedName: "properties.encryption", type: { name: "Composite", - className: "ApiError" + className: "Encryption" } - } - } - } -}; - -export const DiskAccess: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiskAccess", - modelProperties: { - ...Resource.type.modelProperties, - extendedLocation: { - serializedName: "extendedLocation", + }, + maxShares: { + serializedName: "properties.maxShares", type: { - name: "Composite", - className: "ExtendedLocation" + name: "Number" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", + shareInfo: { + serializedName: "properties.shareInfo", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateEndpointConnection" + className: "ShareInfoElement" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + networkAccessPolicy: { + serializedName: "properties.networkAccessPolicy", type: { name: "String" } }, - timeCreated: { - serializedName: "properties.timeCreated", - readOnly: true, + diskAccessId: { + serializedName: "properties.diskAccessId", type: { - name: "DateTime" + name: "String" } - } - } - } -}; - -export const Gallery: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Gallery", - modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", + }, + tier: { + serializedName: "properties.tier", type: { name: "String" } }, - identifier: { - serializedName: "properties.identifier", + burstingEnabled: { + serializedName: "properties.burstingEnabled", + type: { + name: "Boolean" + } + }, + propertyUpdatesInProgress: { + serializedName: "properties.propertyUpdatesInProgress", type: { name: "Composite", - className: "GalleryIdentifier" + className: "PropertyUpdatesInProgress" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + supportsHibernation: { + serializedName: "properties.supportsHibernation", type: { - name: "String" + name: "Boolean" } }, - sharingProfile: { - serializedName: "properties.sharingProfile", + securityProfile: { + serializedName: "properties.securityProfile", type: { name: "Composite", - className: "SharingProfile" + className: "DiskSecurityProfile" } }, - softDeletePolicy: { - serializedName: "properties.softDeletePolicy", + completionPercent: { + serializedName: "properties.completionPercent", type: { - name: "Composite", - className: "SoftDeletePolicy" + name: "Number" } }, - sharingStatus: { - serializedName: "properties.sharingStatus", + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { - name: "Composite", - className: "SharingStatus" + name: "String" } } } } }; -export const GalleryImage: coreClient.CompositeMapper = { +export const Snapshot: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryImage", + className: "Snapshot", modelProperties: { ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", + managedBy: { + serializedName: "managedBy", + readOnly: true, type: { name: "String" } }, - eula: { - serializedName: "properties.eula", + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "SnapshotSku" } }, - privacyStatementUri: { - serializedName: "properties.privacyStatementUri", + extendedLocation: { + serializedName: "extendedLocation", type: { - name: "String" + name: "Composite", + className: "ExtendedLocation" } }, - releaseNoteUri: { - serializedName: "properties.releaseNoteUri", + timeCreated: { + serializedName: "properties.timeCreated", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, osType: { @@ -13112,382 +13189,259 @@ export const GalleryImage: coreClient.CompositeMapper = { allowedValues: ["Windows", "Linux"] } }, - osState: { - serializedName: "properties.osState", - type: { - name: "Enum", - allowedValues: ["Generalized", "Specialized"] - } - }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { name: "String" } }, - endOfLifeDate: { - serializedName: "properties.endOfLifeDate", - type: { - name: "DateTime" - } - }, - identifier: { - serializedName: "properties.identifier", + purchasePlan: { + serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "GalleryImageIdentifier" + className: "PurchasePlanAutoGenerated" } }, - recommended: { - serializedName: "properties.recommended", + supportedCapabilities: { + serializedName: "properties.supportedCapabilities", type: { name: "Composite", - className: "RecommendedMachineConfiguration" + className: "SupportedCapabilities" } }, - disallowed: { - serializedName: "properties.disallowed", + creationData: { + serializedName: "properties.creationData", type: { name: "Composite", - className: "Disallowed" + className: "CreationData" } }, - purchasePlan: { - serializedName: "properties.purchasePlan", + diskSizeGB: { + serializedName: "properties.diskSizeGB", type: { - name: "Composite", - className: "ImagePurchasePlan" + name: "Number" } }, - provisioningState: { - serializedName: "properties.provisioningState", + diskSizeBytes: { + serializedName: "properties.diskSizeBytes", readOnly: true, type: { - name: "String" - } - }, - features: { - serializedName: "properties.features", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryImageFeature" - } - } + name: "Number" } }, - architecture: { - serializedName: "properties.architecture", + diskState: { + serializedName: "properties.diskState", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const GalleryImageVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryImageVersion", - modelProperties: { - ...Resource.type.modelProperties, - publishingProfile: { - serializedName: "properties.publishingProfile", - type: { - name: "Composite", - className: "GalleryImageVersionPublishingProfile" - } }, - provisioningState: { - serializedName: "properties.provisioningState", + uniqueId: { + serializedName: "properties.uniqueId", readOnly: true, type: { name: "String" } }, - storageProfile: { - serializedName: "properties.storageProfile", - type: { - name: "Composite", - className: "GalleryImageVersionStorageProfile" - } - }, - replicationStatus: { - serializedName: "properties.replicationStatus", + encryptionSettingsCollection: { + serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "ReplicationStatus" + className: "EncryptionSettingsCollection" } - } - } - } -}; - -export const GalleryApplication: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryApplication", - modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - eula: { - serializedName: "properties.eula", + incremental: { + serializedName: "properties.incremental", type: { - name: "String" + name: "Boolean" } }, - privacyStatementUri: { - serializedName: "properties.privacyStatementUri", + encryption: { + serializedName: "properties.encryption", type: { - name: "String" + name: "Composite", + className: "Encryption" } }, - releaseNoteUri: { - serializedName: "properties.releaseNoteUri", + networkAccessPolicy: { + serializedName: "properties.networkAccessPolicy", type: { name: "String" } }, - endOfLifeDate: { - serializedName: "properties.endOfLifeDate", + diskAccessId: { + serializedName: "properties.diskAccessId", type: { - name: "DateTime" + name: "String" } }, - supportedOSType: { - serializedName: "properties.supportedOSType", + securityProfile: { + serializedName: "properties.securityProfile", type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] + name: "Composite", + className: "DiskSecurityProfile" } - } - } - } -}; - -export const GalleryApplicationVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryApplicationVersion", - modelProperties: { - ...Resource.type.modelProperties, - publishingProfile: { - serializedName: "properties.publishingProfile", + }, + supportsHibernation: { + serializedName: "properties.supportsHibernation", type: { - name: "Composite", - className: "GalleryApplicationVersionPublishingProfile" + name: "Boolean" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { name: "String" } }, - replicationStatus: { - serializedName: "properties.replicationStatus", + completionPercent: { + serializedName: "properties.completionPercent", type: { - name: "Composite", - className: "ReplicationStatus" + name: "Number" } } } } }; -export const AvailabilitySetUpdate: coreClient.CompositeMapper = { +export const DiskEncryptionSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailabilitySetUpdate", + className: "DiskEncryptionSet", modelProperties: { - ...UpdateResource.type.modelProperties, - sku: { - serializedName: "sku", + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", type: { name: "Composite", - className: "Sku" + className: "EncryptionSetIdentity" } }, - platformUpdateDomainCount: { - serializedName: "properties.platformUpdateDomainCount", + encryptionType: { + serializedName: "properties.encryptionType", type: { - name: "Number" + name: "String" } }, - platformFaultDomainCount: { - serializedName: "properties.platformFaultDomainCount", + activeKey: { + serializedName: "properties.activeKey", type: { - name: "Number" + name: "Composite", + className: "KeyForDiskEncryptionSet" } }, - virtualMachines: { - serializedName: "properties.virtualMachines", + previousKeys: { + serializedName: "properties.previousKeys", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResource" + className: "KeyForDiskEncryptionSet" } } } }, - proximityPlacementGroup: { - serializedName: "properties.proximityPlacementGroup", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - statuses: { - serializedName: "properties.statuses", + rotationToLatestKeyVersionEnabled: { + serializedName: "properties.rotationToLatestKeyVersionEnabled", + type: { + name: "Boolean" + } + }, + lastKeyRotationTimestamp: { + serializedName: "properties.lastKeyRotationTimestamp", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } + name: "DateTime" + } + }, + autoKeyRotationError: { + serializedName: "properties.autoKeyRotationError", + type: { + name: "Composite", + className: "ApiError" } } } } }; -export const ProximityPlacementGroupUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProximityPlacementGroupUpdate", - modelProperties: { - ...UpdateResource.type.modelProperties - } - } -}; - -export const DedicatedHostGroupUpdate: coreClient.CompositeMapper = { +export const DiskAccess: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DedicatedHostGroupUpdate", + className: "DiskAccess", modelProperties: { - ...UpdateResource.type.modelProperties, - zones: { - serializedName: "zones", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - platformFaultDomainCount: { - constraints: { - InclusiveMinimum: 1 - }, - serializedName: "properties.platformFaultDomainCount", + ...Resource.type.modelProperties, + extendedLocation: { + serializedName: "extendedLocation", type: { - name: "Number" + name: "Composite", + className: "ExtendedLocation" } }, - hosts: { - serializedName: "properties.hosts", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResourceReadOnly" + className: "PrivateEndpointConnection" } } } }, - instanceView: { - serializedName: "properties.instanceView", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Composite", - className: "DedicatedHostGroupInstanceView" + name: "String" } }, - supportAutomaticPlacement: { - serializedName: "properties.supportAutomaticPlacement", + timeCreated: { + serializedName: "properties.timeCreated", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } } } } }; -export const DedicatedHostUpdate: coreClient.CompositeMapper = { +export const Gallery: 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", - 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" - ] + className: "Gallery", + modelProperties: { + ...Resource.type.modelProperties, + description: { + serializedName: "properties.description", + type: { + name: "String" } }, - provisioningTime: { - serializedName: "properties.provisioningTime", - readOnly: true, + identifier: { + serializedName: "properties.identifier", type: { - name: "DateTime" + name: "Composite", + className: "GalleryIdentifier" } }, provisioningState: { @@ -13497,131 +13451,149 @@ export const DedicatedHostUpdate: coreClient.CompositeMapper = { name: "String" } }, - instanceView: { - serializedName: "properties.instanceView", + sharingProfile: { + serializedName: "properties.sharingProfile", type: { name: "Composite", - className: "DedicatedHostInstanceView" + className: "SharingProfile" } }, - timeCreated: { - serializedName: "properties.timeCreated", - readOnly: true, + softDeletePolicy: { + serializedName: "properties.softDeletePolicy", type: { - name: "DateTime" + name: "Composite", + className: "SoftDeletePolicy" + } + }, + sharingStatus: { + serializedName: "properties.sharingStatus", + type: { + name: "Composite", + className: "SharingStatus" } } } } }; -export const SshPublicKeyUpdateResource: coreClient.CompositeMapper = { +export const GalleryImage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SshPublicKeyUpdateResource", + className: "GalleryImage", modelProperties: { - ...UpdateResource.type.modelProperties, - publicKey: { - serializedName: "properties.publicKey", + ...Resource.type.modelProperties, + description: { + serializedName: "properties.description", type: { name: "String" } - } - } - } -}; - -export const VirtualMachineExtensionUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineExtensionUpdate", - modelProperties: { - ...UpdateResource.type.modelProperties, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", + }, + eula: { + serializedName: "properties.eula", type: { name: "String" } }, - publisher: { - serializedName: "properties.publisher", + privacyStatementUri: { + serializedName: "properties.privacyStatementUri", type: { name: "String" } }, - type: { - serializedName: "properties.type", + releaseNoteUri: { + serializedName: "properties.releaseNoteUri", type: { name: "String" } }, - typeHandlerVersion: { - serializedName: "properties.typeHandlerVersion", + osType: { + serializedName: "properties.osType", + type: { + name: "Enum", + allowedValues: ["Windows", "Linux"] + } + }, + osState: { + serializedName: "properties.osState", + type: { + name: "Enum", + allowedValues: ["Generalized", "Specialized"] + } + }, + hyperVGeneration: { + serializedName: "properties.hyperVGeneration", type: { name: "String" } }, - autoUpgradeMinorVersion: { - serializedName: "properties.autoUpgradeMinorVersion", + endOfLifeDate: { + serializedName: "properties.endOfLifeDate", type: { - name: "Boolean" + name: "DateTime" } }, - enableAutomaticUpgrade: { - serializedName: "properties.enableAutomaticUpgrade", + identifier: { + serializedName: "properties.identifier", type: { - name: "Boolean" + name: "Composite", + className: "GalleryImageIdentifier" } }, - settings: { - serializedName: "properties.settings", + recommended: { + serializedName: "properties.recommended", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Composite", + className: "RecommendedMachineConfiguration" } }, - protectedSettings: { - serializedName: "properties.protectedSettings", + disallowed: { + serializedName: "properties.disallowed", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Composite", + className: "Disallowed" } }, - suppressFailures: { - serializedName: "properties.suppressFailures", + purchasePlan: { + serializedName: "properties.purchasePlan", type: { - name: "Boolean" + name: "Composite", + className: "ImagePurchasePlan" } }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" + } + }, + features: { + serializedName: "properties.features", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryImageFeature" + } + } } } } } }; -export const ImageUpdate: coreClient.CompositeMapper = { +export const GalleryImageVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageUpdate", + className: "GalleryImageVersion", modelProperties: { - ...UpdateResource.type.modelProperties, - sourceVirtualMachine: { - serializedName: "properties.sourceVirtualMachine", - type: { - name: "Composite", - className: "SubResource" - } - }, - storageProfile: { - serializedName: "properties.storageProfile", + ...Resource.type.modelProperties, + publishingProfile: { + serializedName: "properties.publishingProfile", type: { name: "Composite", - className: "ImageStorageProfile" + className: "GalleryImageVersionPublishingProfile" } }, provisioningState: { @@ -13631,629 +13603,668 @@ export const ImageUpdate: coreClient.CompositeMapper = { name: "String" } }, - hyperVGeneration: { - serializedName: "properties.hyperVGeneration", + storageProfile: { + serializedName: "properties.storageProfile", type: { - name: "String" + name: "Composite", + className: "GalleryImageVersionStorageProfile" + } + }, + replicationStatus: { + serializedName: "properties.replicationStatus", + type: { + name: "Composite", + className: "ReplicationStatus" } } } } }; -export const VirtualMachineUpdate: coreClient.CompositeMapper = { +export const GalleryApplication: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineUpdate", + className: "GalleryApplication", modelProperties: { - ...UpdateResource.type.modelProperties, - plan: { - serializedName: "plan", + ...Resource.type.modelProperties, + description: { + serializedName: "properties.description", type: { - name: "Composite", - className: "Plan" + name: "String" } }, - identity: { - serializedName: "identity", + eula: { + serializedName: "properties.eula", type: { - name: "Composite", - className: "VirtualMachineIdentity" + name: "String" } }, - zones: { - serializedName: "zones", + privacyStatementUri: { + serializedName: "properties.privacyStatementUri", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - hardwareProfile: { - serializedName: "properties.hardwareProfile", + releaseNoteUri: { + serializedName: "properties.releaseNoteUri", type: { - name: "Composite", - className: "HardwareProfile" + name: "String" } }, - storageProfile: { - serializedName: "properties.storageProfile", + endOfLifeDate: { + serializedName: "properties.endOfLifeDate", + type: { + name: "DateTime" + } + }, + supportedOSType: { + serializedName: "properties.supportedOSType", + type: { + name: "Enum", + allowedValues: ["Windows", "Linux"] + } + } + } + } +}; + +export const GalleryApplicationVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryApplicationVersion", + modelProperties: { + ...Resource.type.modelProperties, + publishingProfile: { + serializedName: "properties.publishingProfile", type: { name: "Composite", - className: "StorageProfile" + className: "GalleryApplicationVersionPublishingProfile" } }, - additionalCapabilities: { - serializedName: "properties.additionalCapabilities", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + replicationStatus: { + serializedName: "properties.replicationStatus", type: { name: "Composite", - className: "AdditionalCapabilities" + className: "ReplicationStatus" } - }, - osProfile: { - serializedName: "properties.osProfile", + } + } + } +}; + +export const VirtualMachineScaleSetUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdate", + modelProperties: { + ...UpdateResource.type.modelProperties, + sku: { + serializedName: "sku", type: { name: "Composite", - className: "OSProfile" + className: "Sku" } }, - networkProfile: { - serializedName: "properties.networkProfile", + plan: { + serializedName: "plan", type: { name: "Composite", - className: "NetworkProfile" + className: "Plan" } }, - securityProfile: { - serializedName: "properties.securityProfile", + identity: { + serializedName: "identity", type: { name: "Composite", - className: "SecurityProfile" + className: "VirtualMachineScaleSetIdentity" } }, - diagnosticsProfile: { - serializedName: "properties.diagnosticsProfile", + upgradePolicy: { + serializedName: "properties.upgradePolicy", type: { name: "Composite", - className: "DiagnosticsProfile" + className: "UpgradePolicy" } }, - availabilitySet: { - serializedName: "properties.availabilitySet", + automaticRepairsPolicy: { + serializedName: "properties.automaticRepairsPolicy", type: { name: "Composite", - className: "SubResource" + className: "AutomaticRepairsPolicy" } }, - virtualMachineScaleSet: { - serializedName: "properties.virtualMachineScaleSet", + virtualMachineProfile: { + serializedName: "properties.virtualMachineProfile", type: { name: "Composite", - className: "SubResource" + className: "VirtualMachineScaleSetUpdateVMProfile" } }, - proximityPlacementGroup: { - serializedName: "properties.proximityPlacementGroup", + overprovision: { + serializedName: "properties.overprovision", type: { - name: "Composite", - className: "SubResource" + name: "Boolean" } }, - priority: { - serializedName: "properties.priority", + doNotRunExtensionsOnOverprovisionedVMs: { + serializedName: "properties.doNotRunExtensionsOnOverprovisionedVMs", type: { - name: "String" + name: "Boolean" } }, - evictionPolicy: { - serializedName: "properties.evictionPolicy", + singlePlacementGroup: { + serializedName: "properties.singlePlacementGroup", type: { - name: "String" + name: "Boolean" } }, - billingProfile: { - serializedName: "properties.billingProfile", + additionalCapabilities: { + serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "BillingProfile" + className: "AdditionalCapabilities" } }, - host: { - serializedName: "properties.host", + scaleInPolicy: { + serializedName: "properties.scaleInPolicy", type: { name: "Composite", - className: "SubResource" + className: "ScaleInPolicy" } }, - hostGroup: { - serializedName: "properties.hostGroup", + proximityPlacementGroup: { + serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", className: "SubResource" } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + } + } + } +}; + +export const VirtualMachineExtensionUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineExtensionUpdate", + modelProperties: { + ...UpdateResource.type.modelProperties, + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", type: { name: "String" } }, - instanceView: { - serializedName: "properties.instanceView", - type: { - name: "Composite", - className: "VirtualMachineInstanceView" - } - }, - licenseType: { - serializedName: "properties.licenseType", + publisher: { + serializedName: "properties.publisher", type: { name: "String" } }, - vmId: { - serializedName: "properties.vmId", - readOnly: true, + type: { + serializedName: "properties.type", type: { name: "String" } }, - extensionsTimeBudget: { - serializedName: "properties.extensionsTimeBudget", + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", type: { name: "String" } }, - platformFaultDomain: { - serializedName: "properties.platformFaultDomain", + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", type: { - name: "Number" + name: "Boolean" } }, - scheduledEventsProfile: { - serializedName: "properties.scheduledEventsProfile", + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", type: { - name: "Composite", - className: "ScheduledEventsProfile" + name: "Boolean" } }, - userData: { - serializedName: "properties.userData", + settings: { + serializedName: "properties.settings", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - capacityReservation: { - serializedName: "properties.capacityReservation", + protectedSettings: { + serializedName: "properties.protectedSettings", type: { - name: "Composite", - className: "CapacityReservationProfile" + name: "Dictionary", + value: { type: { name: "any" } } } }, - applicationProfile: { - serializedName: "properties.applicationProfile", + suppressFailures: { + serializedName: "properties.suppressFailures", type: { - name: "Composite", - className: "ApplicationProfile" + name: "Boolean" } }, - timeCreated: { - serializedName: "properties.timeCreated", - readOnly: true, + protectedSettingsFromKeyVault: { + serializedName: "properties.protectedSettingsFromKeyVault", type: { - name: "DateTime" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const RestorePointCollectionUpdate: coreClient.CompositeMapper = { +export const VirtualMachineUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePointCollectionUpdate", + className: "VirtualMachineUpdate", modelProperties: { ...UpdateResource.type.modelProperties, - source: { - serializedName: "properties.source", + plan: { + serializedName: "plan", type: { name: "Composite", - className: "RestorePointCollectionSourceProperties" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" + className: "Plan" } }, - restorePointCollectionId: { - serializedName: "properties.restorePointCollectionId", - readOnly: true, + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "VirtualMachineIdentity" } }, - restorePoints: { - serializedName: "properties.restorePoints", - readOnly: true, + zones: { + serializedName: "zones", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "RestorePoint" + name: "String" } } } - } - } - } -}; - -export const CapacityReservationGroupUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationGroupUpdate", - modelProperties: { - ...UpdateResource.type.modelProperties, - capacityReservations: { - serializedName: "properties.capacityReservations", - readOnly: true, + }, + hardwareProfile: { + serializedName: "properties.hardwareProfile", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } + name: "Composite", + className: "HardwareProfile" } }, - virtualMachinesAssociated: { - serializedName: "properties.virtualMachinesAssociated", - readOnly: true, + storageProfile: { + serializedName: "properties.storageProfile", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } + name: "Composite", + className: "StorageProfile" + } + }, + additionalCapabilities: { + serializedName: "properties.additionalCapabilities", + type: { + name: "Composite", + className: "AdditionalCapabilities" + } + }, + osProfile: { + serializedName: "properties.osProfile", + type: { + name: "Composite", + className: "OSProfile" + } + }, + networkProfile: { + serializedName: "properties.networkProfile", + type: { + name: "Composite", + className: "NetworkProfile" } }, - instanceView: { - serializedName: "properties.instanceView", + securityProfile: { + serializedName: "properties.securityProfile", type: { name: "Composite", - className: "CapacityReservationGroupInstanceView" + className: "SecurityProfile" } - } - } - } -}; - -export const CapacityReservationUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationUpdate", - modelProperties: { - ...UpdateResource.type.modelProperties, - sku: { - serializedName: "sku", + }, + diagnosticsProfile: { + serializedName: "properties.diagnosticsProfile", type: { name: "Composite", - className: "Sku" + className: "DiagnosticsProfile" } }, - reservationId: { - serializedName: "properties.reservationId", - readOnly: true, + availabilitySet: { + serializedName: "properties.availabilitySet", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - virtualMachinesAssociated: { - serializedName: "properties.virtualMachinesAssociated", - readOnly: true, + virtualMachineScaleSet: { + serializedName: "properties.virtualMachineScaleSet", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } + name: "Composite", + className: "SubResource" } }, - provisioningTime: { - serializedName: "properties.provisioningTime", - readOnly: true, + proximityPlacementGroup: { + serializedName: "properties.proximityPlacementGroup", type: { - name: "DateTime" + name: "Composite", + className: "SubResource" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + priority: { + serializedName: "properties.priority", type: { name: "String" } }, - instanceView: { - serializedName: "properties.instanceView", + evictionPolicy: { + serializedName: "properties.evictionPolicy", type: { - name: "Composite", - className: "CapacityReservationInstanceView" + name: "String" } }, - 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", + billingProfile: { + serializedName: "properties.billingProfile", type: { name: "Composite", - className: "Sku" + className: "BillingProfile" } }, - plan: { - serializedName: "plan", + host: { + serializedName: "properties.host", type: { name: "Composite", - className: "Plan" + className: "SubResource" } }, - identity: { - serializedName: "identity", + hostGroup: { + serializedName: "properties.hostGroup", type: { name: "Composite", - className: "VirtualMachineScaleSetIdentity" + className: "SubResource" } }, - upgradePolicy: { - serializedName: "properties.upgradePolicy", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Composite", - className: "UpgradePolicy" + name: "String" } }, - automaticRepairsPolicy: { - serializedName: "properties.automaticRepairsPolicy", + instanceView: { + serializedName: "properties.instanceView", type: { name: "Composite", - className: "AutomaticRepairsPolicy" + className: "VirtualMachineInstanceView" } }, - virtualMachineProfile: { - serializedName: "properties.virtualMachineProfile", + licenseType: { + serializedName: "properties.licenseType", type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateVMProfile" + name: "String" } }, - overprovision: { - serializedName: "properties.overprovision", + vmId: { + serializedName: "properties.vmId", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - doNotRunExtensionsOnOverprovisionedVMs: { - serializedName: "properties.doNotRunExtensionsOnOverprovisionedVMs", + extensionsTimeBudget: { + serializedName: "properties.extensionsTimeBudget", type: { - name: "Boolean" + name: "String" } }, - singlePlacementGroup: { - serializedName: "properties.singlePlacementGroup", + platformFaultDomain: { + serializedName: "properties.platformFaultDomain", type: { - name: "Boolean" + name: "Number" } }, - additionalCapabilities: { - serializedName: "properties.additionalCapabilities", + scheduledEventsProfile: { + serializedName: "properties.scheduledEventsProfile", type: { name: "Composite", - className: "AdditionalCapabilities" + className: "ScheduledEventsProfile" } }, - scaleInPolicy: { - serializedName: "properties.scaleInPolicy", + userData: { + serializedName: "properties.userData", + type: { + name: "String" + } + }, + capacityReservation: { + serializedName: "properties.capacityReservation", type: { name: "Composite", - className: "ScaleInPolicy" + className: "CapacityReservationProfile" } }, - proximityPlacementGroup: { - serializedName: "properties.proximityPlacementGroup", + applicationProfile: { + serializedName: "properties.applicationProfile", type: { name: "Composite", - className: "SubResource" + className: "ApplicationProfile" + } + }, + timeCreated: { + serializedName: "properties.timeCreated", + readOnly: true, + type: { + name: "DateTime" } } } } }; -export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { +export const AvailabilitySetUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineRunCommandUpdate", + className: "AvailabilitySetUpdate", modelProperties: { ...UpdateResource.type.modelProperties, - source: { - serializedName: "properties.source", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "VirtualMachineRunCommandScriptSource" + className: "Sku" } }, - parameters: { - serializedName: "properties.parameters", + platformUpdateDomainCount: { + serializedName: "properties.platformUpdateDomainCount", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RunCommandInputParameter" - } - } + name: "Number" } }, - protectedParameters: { - serializedName: "properties.protectedParameters", + platformFaultDomainCount: { + serializedName: "properties.platformFaultDomainCount", + type: { + name: "Number" + } + }, + virtualMachines: { + serializedName: "properties.virtualMachines", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RunCommandInputParameter" + className: "SubResource" } } } }, - asyncExecution: { - defaultValue: false, - serializedName: "properties.asyncExecution", + proximityPlacementGroup: { + serializedName: "properties.proximityPlacementGroup", type: { - name: "Boolean" + name: "Composite", + className: "SubResource" } }, - runAsUser: { - serializedName: "properties.runAsUser", + statuses: { + serializedName: "properties.statuses", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } } - }, - runAsPassword: { - serializedName: "properties.runAsPassword", + } + } + } +}; + +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", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - timeoutInSeconds: { - serializedName: "properties.timeoutInSeconds", + platformFaultDomainCount: { + constraints: { + InclusiveMinimum: 1 + }, + serializedName: "properties.platformFaultDomainCount", type: { name: "Number" } }, - outputBlobUri: { - serializedName: "properties.outputBlobUri", + hosts: { + serializedName: "properties.hosts", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } } }, - errorBlobUri: { - serializedName: "properties.errorBlobUri", + instanceView: { + serializedName: "properties.instanceView", type: { - name: "String" + name: "Composite", + className: "DedicatedHostGroupInstanceView" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + supportAutomaticPlacement: { + serializedName: "properties.supportAutomaticPlacement", type: { - name: "String" + name: "Boolean" } }, - instanceView: { - serializedName: "properties.instanceView", + additionalCapabilities: { + serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "VirtualMachineRunCommandInstanceView" + className: "DedicatedHostGroupPropertiesAdditionalCapabilities" } } } } }; -export const VirtualMachineScaleSetExtension: coreClient.CompositeMapper = { +export const DedicatedHostUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetExtension", + className: "DedicatedHostUpdate", modelProperties: { - ...SubResourceReadOnly.type.modelProperties, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", - type: { - name: "String" - } - }, - publisher: { - serializedName: "properties.publisher", + ...UpdateResource.type.modelProperties, + platformFaultDomain: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "properties.platformFaultDomain", type: { - name: "String" + name: "Number" } }, - typePropertiesType: { - serializedName: "properties.type", + autoReplaceOnFailure: { + serializedName: "properties.autoReplaceOnFailure", type: { - name: "String" + name: "Boolean" } }, - typeHandlerVersion: { - serializedName: "properties.typeHandlerVersion", + hostId: { + serializedName: "properties.hostId", + readOnly: true, type: { name: "String" } }, - autoUpgradeMinorVersion: { - serializedName: "properties.autoUpgradeMinorVersion", - type: { - name: "Boolean" - } - }, - enableAutomaticUpgrade: { - serializedName: "properties.enableAutomaticUpgrade", + virtualMachines: { + serializedName: "properties.virtualMachines", + readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } } }, - settings: { - serializedName: "properties.settings", + licenseType: { + serializedName: "properties.licenseType", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Enum", + allowedValues: [ + "None", + "Windows_Server_Hybrid", + "Windows_Server_Perpetual" + ] } }, - protectedSettings: { - serializedName: "properties.protectedSettings", + provisioningTime: { + serializedName: "properties.provisioningTime", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "DateTime" } }, provisioningState: { @@ -14263,207 +14274,202 @@ export const VirtualMachineScaleSetExtension: 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: "DedicatedHostInstanceView" } }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", + timeCreated: { + serializedName: "properties.timeCreated", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "DateTime" } } } } }; -export const VirtualMachineScaleSetExtensionUpdate: coreClient.CompositeMapper = { +export const SshPublicKeyUpdateResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetExtensionUpdate", + className: "SshPublicKeyUpdateResource", modelProperties: { - ...SubResourceReadOnly.type.modelProperties, - name: { - serializedName: "name", - readOnly: true, - 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 VirtualMachineScaleSetVMExtension: coreClient.CompositeMapper = { +export const CapacityReservationGroupUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMExtension", + className: "CapacityReservationGroupUpdate", modelProperties: { - ...SubResourceReadOnly.type.modelProperties, - name: { - serializedName: "name", + ...UpdateResource.type.modelProperties, + capacityReservations: { + serializedName: "properties.capacityReservations", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } } }, - type: { - serializedName: "type", + virtualMachinesAssociated: { + serializedName: "properties.virtualMachinesAssociated", readOnly: true, type: { - name: "String" - } - }, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", - type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } } }, - publisher: { - serializedName: "properties.publisher", + instanceView: { + serializedName: "properties.instanceView", type: { - name: "String" + name: "Composite", + className: "CapacityReservationGroupInstanceView" } - }, - typePropertiesType: { - serializedName: "properties.type", + } + } + } +}; + +export const CapacityReservationUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CapacityReservationUpdate", + modelProperties: { + ...UpdateResource.type.modelProperties, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - typeHandlerVersion: { - serializedName: "properties.typeHandlerVersion", + reservationId: { + serializedName: "properties.reservationId", + readOnly: true, type: { name: "String" } }, - autoUpgradeMinorVersion: { - serializedName: "properties.autoUpgradeMinorVersion", - type: { - name: "Boolean" - } - }, - enableAutomaticUpgrade: { - serializedName: "properties.enableAutomaticUpgrade", - type: { - name: "Boolean" - } - }, - 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: { @@ -14477,113 +14483,122 @@ export const VirtualMachineScaleSetVMExtension: coreClient.CompositeMapper = { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineExtensionInstanceView" - } - }, - suppressFailures: { - serializedName: "properties.suppressFailures", - type: { - name: "Boolean" + className: "CapacityReservationInstanceView" } }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", + timeCreated: { + serializedName: "properties.timeCreated", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "DateTime" } } } } }; -export const VirtualMachineScaleSetVMExtensionUpdate: coreClient.CompositeMapper = { +export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMExtensionUpdate", + 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" } }, - suppressFailures: { - serializedName: "properties.suppressFailures", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", + instanceView: { + serializedName: "properties.instanceView", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Composite", + className: "VirtualMachineRunCommandInstanceView" } } } } }; +export const VirtualMachineScaleSetVMReimageParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMReimageParameters", + modelProperties: { + ...VirtualMachineReimageParameters.type.modelProperties + } + } +}; + export const DedicatedHostInstanceViewWithName: coreClient.CompositeMapper = { type: { name: "Composite", @@ -14724,16 +14739,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 +15071,6 @@ export const GalleryImageUpdate: coreClient.CompositeMapper = { } } } - }, - architecture: { - serializedName: "properties.architecture", - type: { - name: "String" - } } } } @@ -15481,12 +15480,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"