diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index b97a8da833af..88ce58d7f276 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -644,6 +644,21 @@ packages: - encoding dev: false + /@azure/arm-compute/17.3.1: + resolution: {integrity: sha512-Yk2griZ/NiWzYCd5X6jS9dmKckp2A9f4LO57v8uQalqJNhgAZtSK8IvIYZEDQdPSinF3a1VHD4M5sfGSpl9hMw==} + 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'} @@ -9921,28 +9936,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.22.1 - '@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.2.0_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.4 transitivePeerDependencies: - - '@types/node' - debug - encoding - supports-color @@ -11048,11 +11062,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.1 '@azure/arm-msi': 2.0.0 '@azure/identity': 2.0.4 '@microsoft/api-extractor': 7.22.1 @@ -16725,7 +16740,7 @@ packages: dev: false file:projects/service-bus.tgz: - resolution: {integrity: sha512-u3s6k4iody58TezFwH1LXZmzF4PTM5Sq8hQSFlhLoVoMpnubfFesRDa9FPn2mH6NRIxr6ldYOGRlo8RHpbMvqw==, tarball: file:projects/service-bus.tgz} + resolution: {integrity: sha512-khw0v8SxxwedYJc7+zDN3u1gd/4IRfTD3B14006ViUnDREU/ZCeXT2AVfKPV1A/X5KM9L4o9o0HUnMkjZWtrDg==, tarball: file:projects/service-bus.tgz} name: '@rush-temp/service-bus' version: 0.0.0 dependencies: diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index bd6210932840..da07d461de71 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,15 +1,31 @@ # Release History + +## 18.0.0 (2022-04-18) + +**Features** -## 17.3.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Interface DedicatedHostGroupPropertiesAdditionalCapabilities + - Added Interface ProximityPlacementGroupPropertiesIntent + - Added Interface UserArtifactSettings + - Interface VMGalleryApplication has a new optional parameter enableAutomaticUpgrade + - Interface VMGalleryApplication has a new optional parameter treatFailureAsDeploymentFailure + - Type Alias DedicatedHostGroup has a new parameter additionalCapabilities + - Type Alias DedicatedHostGroupUpdate has a new parameter additionalCapabilities + - Type Alias GalleryApplicationVersionPublishingProfile has a new parameter settings + - Type Alias ProximityPlacementGroup has a new parameter zones + - Type Alias ProximityPlacementGroup has a new parameter intent + +**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 Snapshot no longer has parameter dataAccessAuthMode + - Type Alias VirtualMachineImage no longer has parameter architecture + - Removed Enum KnownArchitectureTypes + - Removed Enum KnownDataAccessAuthMode + ## 17.3.1 (2022-04-06) **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 289c54efcb22..d1bc28f995c2 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "b8cae07c799a07f2e779a9e301f639e9b85124b1", - "readme": "specification\\apimanagement\\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:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\apimanagement\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.18.20220329.1", + "commit": "d1e611bcf40eb870bc68e805368dde98bdc3cc70", + "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=/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", - "release_tool": "@azure-tools/js-sdk-release-tools@2.2.1", - "use": "@autorest/typescript@6.0.0-alpha.18.20220329.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.3.0", + "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 f499090f3d30..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.2", + "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..9a2ad44d314d 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -67,9 +67,6 @@ export interface ApplicationProfile { // @public export type Architecture = string; -// @public -export type ArchitectureTypes = string; - // @public export interface AutomaticOSUpgradePolicy { disableAutomaticRollback?: boolean; @@ -1126,9 +1123,6 @@ export interface CreationData { uploadSizeBytes?: number; } -// @public -export type DataAccessAuthMode = string; - // @public export interface DataDisk { caching?: CachingTypes; @@ -1189,6 +1183,7 @@ export type DedicatedHostGroup = Resource & { readonly hosts?: SubResourceReadOnly[]; readonly instanceView?: DedicatedHostGroupInstanceView; supportAutomaticPlacement?: boolean; + additionalCapabilities?: DedicatedHostGroupPropertiesAdditionalCapabilities; }; // @public (undocumented) @@ -1202,6 +1197,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 +1273,7 @@ export type DedicatedHostGroupUpdate = UpdateResource & { readonly hosts?: SubResourceReadOnly[]; readonly instanceView?: DedicatedHostGroupInstanceView; supportAutomaticPlacement?: boolean; + additionalCapabilities?: DedicatedHostGroupPropertiesAdditionalCapabilities; }; // @public @@ -1440,7 +1441,6 @@ export type Disk = Resource & { securityProfile?: DiskSecurityProfile; completionPercent?: number; publicNetworkAccess?: PublicNetworkAccess; - dataAccessAuthMode?: DataAccessAuthMode; }; // @public @@ -1946,7 +1946,6 @@ export type DisksUpdateResponse = Disk; // @public export interface DiskUpdate { burstingEnabled?: boolean; - dataAccessAuthMode?: DataAccessAuthMode; diskAccessId?: string; diskIopsReadOnly?: number; diskIopsReadWrite?: number; @@ -2219,6 +2218,10 @@ export type GalleryApplicationVersionPropertiesProvisioningState = string; export type GalleryApplicationVersionPublishingProfile = GalleryArtifactPublishingProfileBase & { source: UserArtifactSource; manageActions?: UserArtifactManage; + settings?: UserArtifactSettings; + advancedSettings?: { + [propertyName: string]: string; + }; enableHealthCheck?: boolean; }; @@ -2873,14 +2876,6 @@ export enum KnownArchitecture { X64 = "x64" } -// @public -export enum KnownArchitectureTypes { - // (undocumented) - Arm64 = "Arm64", - // (undocumented) - X64 = "x64" -} - // @public export enum KnownAvailabilitySetSkuTypes { // (undocumented) @@ -2931,12 +2926,6 @@ export enum KnownConsistencyModeTypes { FileSystemConsistent = "FileSystemConsistent" } -// @public -export enum KnownDataAccessAuthMode { - AzureActiveDirectory = "AzureActiveDirectory", - None = "None" -} - // @public export enum KnownDeleteOptions { // (undocumented) @@ -4417,11 +4406,13 @@ export type ProtocolTypes = "Http" | "Https"; // @public export type ProximityPlacementGroup = Resource & { + zones?: string[]; proximityPlacementGroupType?: ProximityPlacementGroupType; readonly virtualMachines?: SubResourceWithColocationStatus[]; readonly virtualMachineScaleSets?: SubResourceWithColocationStatus[]; readonly availabilitySets?: SubResourceWithColocationStatus[]; colocationStatus?: InstanceViewStatus; + intent?: ProximityPlacementGroupPropertiesIntent; }; // @public @@ -4430,6 +4421,11 @@ export interface ProximityPlacementGroupListResult { value: ProximityPlacementGroup[]; } +// @public +export interface ProximityPlacementGroupPropertiesIntent { + vmSizes?: string[]; +} + // @public export interface ProximityPlacementGroups { createOrUpdate(resourceGroupName: string, proximityPlacementGroupName: string, parameters: ProximityPlacementGroup, options?: ProximityPlacementGroupsCreateOrUpdateOptionalParams): Promise; @@ -5304,7 +5300,6 @@ export type Snapshot = Resource & { supportsHibernation?: boolean; publicNetworkAccess?: PublicNetworkAccess; completionPercent?: number; - dataAccessAuthMode?: DataAccessAuthMode; }; // @public @@ -5415,7 +5410,6 @@ export type SnapshotsUpdateResponse = Snapshot; // @public export interface SnapshotUpdate { - dataAccessAuthMode?: DataAccessAuthMode; diskAccessId?: string; diskSizeGB?: number; encryption?: Encryption; @@ -5592,7 +5586,6 @@ export type SubResourceWithColocationStatus = SubResource & { // @public export interface SupportedCapabilities { acceleratedNetwork?: boolean; - architecture?: Architecture; } // @public @@ -5729,6 +5722,12 @@ export interface UserArtifactManage { update?: string; } +// @public (undocumented) +export interface UserArtifactSettings { + configFileName?: string; + packageFileName?: string; +} + // @public export interface UserArtifactSource { defaultConfigurationLink?: string; @@ -5999,7 +5998,6 @@ export type VirtualMachineImage = VirtualMachineImageResource & { hyperVGeneration?: HyperVGenerationTypes; disallowed?: DisallowedConfiguration; features?: VirtualMachineImageFeature[]; - architecture?: ArchitectureTypes; }; // @public @@ -7821,9 +7819,11 @@ export type VmDiskTypes = string; // @public export interface VMGalleryApplication { configurationReference?: string; + enableAutomaticUpgrade?: boolean; order?: number; packageReferenceId: string; tags?: string; + treatFailureAsDeploymentFailure?: boolean; } // @public diff --git a/sdk/compute/arm-compute/rollup.config.js b/sdk/compute/arm-compute/rollup.config.js index 3f89d7309da5..9be1955eb7f1 100644 --- a/sdk/compute/arm-compute/rollup.config.js +++ b/sdk/compute/arm-compute/rollup.config.js @@ -14,14 +14,62 @@ import json from "@rollup/plugin-json"; import nodeBuiltins from "builtin-modules"; +/** + * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api. + * + * NOTE: this manual configuration is only needed because OpenTelemetry uses an + * __exportStar downleveled helper function to declare its exports which confuses + * rollup's automatic discovery mechanism. + * + * @returns an object reference that can be `...`'d into your cjs() configuration. + */ +export function openTelemetryCommonJs() { + const namedExports = {}; + + for (const key of [ + "@opentelemetry/api", + "@azure/core-tracing/node_modules/@opentelemetry/api" + ]) { + namedExports[key] = [ + "SpanKind", + "TraceFlags", + "getSpan", + "setSpan", + "SpanStatusCode", + "getSpanContext", + "setSpanContext" + ]; + } + + const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"]; + + for (const version of releasedOpenTelemetryVersions) { + namedExports[ + // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path. + `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js` + ] = [ + "SpanKind", + "TraceFlags", + "getSpan", + "setSpan", + "StatusCode", + "CanonicalCode", + "getSpanContext", + "setSpanContext" + ]; + } + + return namedExports; +} + // #region Warning Handler /** - * A function that can determine whether a rollup warning should be ignored. If + * A function that can determine whether a rollupwarning should be ignored. If * the function returns `true`, then the warning will not be displayed. */ -function ignoreNiseSinonEval(warning) { +function ignoreNiseSinonEvalWarnings(warning) { return ( warning.code === "EVAL" && warning.id && @@ -30,14 +78,17 @@ function ignoreNiseSinonEval(warning) { ); } -function ignoreChaiCircularDependency(warning) { +function ignoreChaiCircularDependencyWarnings(warning) { return ( warning.code === "CIRCULAR_DEPENDENCY" && warning.importer && warning.importer.includes("node_modules/chai") === true ); } -const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval]; +const warningInhibitors = [ + ignoreChaiCircularDependencyWarnings, + ignoreNiseSinonEvalWarnings +]; /** * Construct a warning handler for the shared rollup configuration @@ -71,7 +122,22 @@ function makeBrowserTestConfig() { nodeResolve({ mainFields: ["module", "browser"] }), - cjs(), + cjs({ + namedExports: { + // Chai's strange internal architecture makes it impossible to statically + // analyze its exports. + chai: [ + "version", + "use", + "util", + "config", + "expect", + "should", + "assert" + ], + ...openTelemetryCommonJs() + } + }), json(), sourcemaps() //viz({ filename: "dist-test/browser-stats.html", sourcemap: true }) @@ -107,7 +173,7 @@ export function makeConfig(pkg, options) { ], output: { file: "dist/index.js", format: "cjs", sourcemap: true }, preserveSymlinks: false, - plugins: [sourcemaps(), nodeResolve()] + plugins: [sourcemaps(), nodeResolve(), cjs()] }; const config = [baseConfig]; diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index 9fca071827ef..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.2`; + const packageDetails = `azsdk-js-arm-compute/18.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -159,8 +159,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { userAgentOptions: { userAgentPrefix }, - baseUri: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + baseUri: options.endpoint || "https://management.azure.com" }; super(optionsWithDefaults); // Parameter assignments @@ -169,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 ); @@ -201,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( @@ -236,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..c43e0e2f4bf4 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -89,70 +89,32 @@ export interface InnerError { errordetail?: string; } -export interface SubResource { - /** Resource Id */ - id?: string; -} - -/** Instance view status. */ -export interface InstanceViewStatus { - /** The status code. */ - code?: string; - /** The level code. */ - level?: StatusLevelTypes; - /** The short localizable label for the status. */ - displayStatus?: string; - /** The detailed status message, including for alerts and error messages. */ - message?: string; - /** The time of the status. */ - time?: Date; -} - -/** Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. */ -export interface Sku { - /** The sku name. */ - name?: string; - /** Specifies the tier of virtual machines in a scale set.

Possible Values:

**Standard**

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

Possible Values:

**Standard**

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

Possible values are:

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

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

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

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

Possible values for Windows Server operating system are:

Windows_Client

Windows_Server

Possible values for Linux Server operating system are:

RHEL_BYOS (for RHEL)

SLES_BYOS (for SUSE)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!"

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

For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection) */ + adminPassword?: string; + /** Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes.

For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init) */ + customData?: string; + /** Specifies Windows operating system settings on the virtual machine. */ + windowsConfiguration?: WindowsConfiguration; + /** Specifies the Linux operating system settings on the virtual machine.

For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros). */ + linuxConfiguration?: LinuxConfiguration; + /** Specifies set of certificates that should be installed onto the virtual machines in the scale set. To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ + secrets?: VaultSecretGroup[]; + /** Specifies whether extension operations should be allowed on the virtual machine scale set.

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

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

For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning. */ + enableAutomaticUpdates?: boolean; + /** Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time".

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

Possible values are:

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

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

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

Possible values are:

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

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

Possible values are:
**http**

**https** */ + protocol?: ProtocolTypes; + /** This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8:

{
"data":"",
"dataType":"pfx",
"password":""
}
To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ + certificateUrl?: string; } -/** The List Usages operation response. */ -export interface ListUsagesResult { - /** The list of compute resource usages. */ - value: Usage[]; - /** The URI to fetch the next page of compute resource usage information. Call ListNext() with this to fetch the next page of compute resource usage information. */ - nextLink?: string; +/** Specifies the Linux operating system settings on the virtual machine.

For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros). */ +export interface LinuxConfiguration { + /** Specifies whether password authentication should be disabled. */ + disablePasswordAuthentication?: boolean; + /** Specifies the ssh key configuration for a Linux OS. */ + ssh?: SshConfiguration; + /** Indicates whether virtual machine agent should be provisioned on the virtual machine.

When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. */ + provisionVMAgent?: boolean; + /** [Preview Feature] Specifies settings related to VM Guest Patching on Linux. */ + patchSettings?: LinuxPatchSettings; } -/** Describes Compute Resource Usage. */ -export interface Usage { - /** An enum describing the unit of usage measurement. */ - unit: "Count"; - /** The current usage of the resource. */ - currentValue: number; - /** The maximum permitted usage of the resource. */ - limit: number; - /** The name of the type of usage. */ - name: UsageName; +/** SSH configuration for Linux based VMs running on Azure */ +export interface SshConfiguration { + /** The list of SSH public keys used to authenticate with linux based VMs. */ + publicKeys?: SshPublicKey[]; } -/** The Usage Names. */ -export interface UsageName { - /** The name of the resource. */ - value?: string; - /** The localized name of the resource. */ - localizedValue?: string; +/** Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. */ +export interface SshPublicKey { + /** Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys */ + path?: string; + /** SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed). */ + keyData?: string; } -/** The List Virtual Machine operation response. */ -export interface VirtualMachineListResult { - /** The list of virtual machines. */ - value: VirtualMachine[]; - /** The URI to fetch the next page of VMs. Call ListNext() with this URI to fetch the next page of Virtual Machines. */ - nextLink?: string; +/** Specifies settings related to VM Guest Patching on Linux. */ +export interface LinuxPatchSettings { + /** Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.

Possible values are:

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

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

Possible values are:

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

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

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

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

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

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

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

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

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

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

When this property is not specified in the request body the default behavior is to set it to the value of vCPUs available for that VM size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list) . */ - vCPUsAvailable?: number; - /** Specifies the vCPU to physical core ratio.

When this property is not specified in the request body the default behavior is set to the value of vCPUsPerCore for the VM Size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list)

Setting this property to 1 also means that hyper-threading is disabled. */ - vCPUsPerCore?: number; +/** Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. */ +export interface VaultCertificate { + /** This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8:

{
"data":"",
"dataType":"pfx",
"password":""
}
To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ + certificateUrl?: string; + /** For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account.

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

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

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ - dataDisks?: DataDisk[]; + /** Specifies information about the operating system disk used by the virtual machines in the scale set.

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

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

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

Possible values are:

**Windows**

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

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

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

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

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

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

Possible values are:

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

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

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

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

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

Possible values are:

**Windows**

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

Possible values:

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

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

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

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

Possible values are:

**CacheDisk**

**ResourceDisk**

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

Refer to VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. */ + placement?: DiffDiskPlacement; } /** Describes the uri of a disk. */ @@ -466,12 +422,14 @@ export interface VirtualHardDisk { uri?: string; } -/** Describes the parameters of ephemeral disk settings that can be specified for operating system disk.

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

Possible values are:

**CacheDisk**

**ResourceDisk**

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

Refer to VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. */ - placement?: DiffDiskPlacement; +/** Describes the parameters of a ScaleSet managed disk. */ +export interface VirtualMachineScaleSetManagedDiskParameters { + /** Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. */ + storageAccountType?: StorageAccountTypes; + /** Specifies the customer managed disk encryption set resource id for the managed disk. */ + diskEncryptionSet?: DiskEncryptionSetParameters; + /** Specifies the security profile for the managed disk. */ + securityProfile?: VMDiskSecurityProfile; } /** Specifies the security profile settings for the managed disk.

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

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

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

Possible values are:

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

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

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

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

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

Possible values:

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

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

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

This name cannot be updated after the VM is created.

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

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

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

This property cannot be updated after the VM is created.

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

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

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

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

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

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

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

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

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

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

**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!"

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

For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection) */ - adminPassword?: string; - /** Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes.

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

This property cannot be updated after the VM is created.

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

For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init) */ - customData?: string; - /** Specifies Windows operating system settings on the virtual machine. */ - windowsConfiguration?: WindowsConfiguration; - /** Specifies the Linux operating system settings on the virtual machine.

For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros). */ - linuxConfiguration?: LinuxConfiguration; - /** Specifies set of certificates that should be installed onto the virtual machine. To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ - secrets?: VaultSecretGroup[]; - /** Specifies whether extension operations should be allowed on the virtual machine.

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

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

For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning. */ - enableAutomaticUpdates?: boolean; - /** Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time".

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

Possible values are:

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

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

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

Possible values are:

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

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

Possible values are:
**http**

**https** */ - protocol?: ProtocolTypes; - /** This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8:

{
"data":"",
"dataType":"pfx",
"password":""
}
To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ - certificateUrl?: string; +/** Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible. */ +export interface PublicIPAddressSku { + /** Specify public IP sku name */ + name?: PublicIPAddressSkuName; + /** Specify public IP sku tier */ + tier?: PublicIPAddressSkuTier; } -/** Specifies the Linux operating system settings on the virtual machine.

For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros). */ -export interface LinuxConfiguration { - /** Specifies whether password authentication should be disabled. */ - disablePasswordAuthentication?: boolean; - /** Specifies the ssh key configuration for a Linux OS. */ - ssh?: SshConfiguration; - /** Indicates whether virtual machine agent should be provisioned on the virtual machine.

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

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

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

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

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

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

Minimum api-version: 2020-12-01 */ + vTpmEnabled?: boolean; } -/** Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. */ -export interface SshPublicKey { - /** Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys */ - path?: string; - /** SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed). */ - keyData?: string; +/** Specifies the boot diagnostic settings state.

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

You can easily view the output of your console log.

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

Possible values are:

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

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

Possible values are:

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

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

You can easily view the output of your console log.

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

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

Minimum api-version: 2020-06-01 */ + extensionsTimeBudget?: string; } -/** Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. */ -export interface VaultCertificate { - /** This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8:

{
"data":"",
"dataType":"pfx",
"password":""
}
To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ - certificateUrl?: string; - /** For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account.

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

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

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

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

Possible values are:

- Any decimal value greater than zero. Example: 0.01538

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

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

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

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

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

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

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

When this property is not specified in the request body the default behavior is to set it to the value of vCPUs available for that VM size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list) . */ + vCPUsAvailable?: number; + /** Specifies the vCPU to physical core ratio.

When this property is not specified in the request body the default behavior is set to the value of vCPUsPerCore for the VM Size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list)

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

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

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

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

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

You can easily view the output of your console log.

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

Possible values are:

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

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

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

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

You can easily view the output of your console log.

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

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

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

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

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

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

Possible values are:

- Any decimal value greater than zero. Example: 0.01538

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

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

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

You can easily view the output of your console log.

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

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

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

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

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

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

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

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

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

Possible values are:

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

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

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

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

Possible values for Windows Server operating system are:

Windows_Client

Windows_Server

Possible values for Linux Server operating system are:

RHEL_BYOS (for RHEL)

SLES_BYOS (for SUSE)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!"

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

For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection) */ - adminPassword?: string; - /** Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes.

For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init) */ - customData?: string; - /** Specifies Windows operating system settings on the virtual machine. */ - windowsConfiguration?: WindowsConfiguration; - /** Specifies the Linux operating system settings on the virtual machine.

For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros). */ - linuxConfiguration?: LinuxConfiguration; - /** Specifies set of certificates that should be installed onto the virtual machines in the scale set. To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows). */ - secrets?: VaultSecretGroup[]; - /** Specifies whether extension operations should be allowed on the virtual machine scale set.

This may only be set to False when no extensions are present on the virtual machine scale set. */ - allowExtensionOperations?: boolean; +/** The List VMSS VM Extension operation response */ +export interface VirtualMachineScaleSetVMExtensionsListResult { + /** The list of VMSS VM extensions */ + value?: VirtualMachineScaleSetVMExtension[]; } -/** Describes a virtual machine scale set storage profile. */ -export interface VirtualMachineScaleSetStorageProfile { - /** Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. */ - imageReference?: ImageReference; - /** Specifies information about the operating system disk used by the virtual machines in the scale set.

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

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ - dataDisks?: VirtualMachineScaleSetDataDisk[]; +/** The instance view of a virtual machine scale set VM. */ +export interface VirtualMachineScaleSetVMInstanceView { + /** The Update Domain count. */ + platformUpdateDomain?: number; + /** The Fault Domain count. */ + platformFaultDomain?: number; + /** The Remote desktop certificate thumbprint. */ + rdpThumbPrint?: string; + /** The VM Agent running on the virtual machine. */ + vmAgent?: VirtualMachineAgentInstanceView; + /** The Maintenance Operation status on the virtual machine. */ + maintenanceRedeployStatus?: MaintenanceRedeployStatus; + /** The disks information. */ + disks?: DiskInstanceView[]; + /** The extensions information. */ + extensions?: VirtualMachineExtensionInstanceView[]; + /** + * The health status for the VM. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly vmHealth?: VirtualMachineHealthStatus; + /** Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.

You can easily view the output of your console log.

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

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

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

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

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

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

Possible values are:

**Windows**

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

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

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

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

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

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

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

Possible values are:

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

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

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

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

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

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

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

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

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

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Possible values are:

**Windows**

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

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

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

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

Possible values are:

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

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

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

Possible values:

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

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

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

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

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

Possible values are:

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

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

This value cannot be larger than 1023 GB */ diskSizeGB?: number; - /** Gets the managed disk details */ + /** The managed disk parameters. */ managedDisk?: ManagedDiskParameters; - /** Gets the disk restore point Id. */ - diskRestorePoint?: ApiEntityReference; -} - -/** 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,20 +1552,235 @@ 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. + 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,336 @@ 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[]; +/** Specifies the user intent of the proximity placement group. */ +export interface ProximityPlacementGroupPropertiesIntent { + /** Specifies possible sizes of virtual machines that can be created in the proximity placement group. */ + vmSizes?: 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; +/** 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; +} + +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 +2704,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 +2849,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 +2860,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 +2926,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; } @@ -3412,6 +3422,13 @@ export interface UserArtifactManage { update?: string; } +export interface UserArtifactSettings { + /** Optional. The name to assign the downloaded package file on the VM. If not specified, downloaded file will be named the same as the gallery application name. This is limited to 4096 characters. */ + packageFileName?: string; + /** Optional. The name to assign the downloaded config file on the VM. If not specified, the configuration file will be named `_config`. This is limited to 4096 characters. */ + configFileName?: string; +} + /** The List Galleries operation response. */ export interface GalleryList { /** A list of galleries. */ @@ -4131,23 +4148,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 +4172,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 +4216,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 +4260,116 @@ export type VirtualMachineScaleSetUpdateNetworkConfiguration = SubResource & { deleteOption?: DeleteOptions; }; -/** Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).

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

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

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

Possible values are:

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

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

Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. */ -export type DedicatedHostGroup = Resource & { - /** Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone. */ - zones?: string[]; - /** Number of fault domains that the host group can span. */ - platformFaultDomainCount?: number; +/** Describes a Virtual Machine Scale Set Extension. */ +export type VirtualMachineScaleSetExtension = SubResourceReadOnly & { + /** The name of the extension. */ + name?: string; /** - * A list of references to all dedicated hosts in the dedicated host group. + * Resource type * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly hosts?: SubResourceReadOnly[]; + 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 dedicated host group instance view, which has the list of instance view of the dedicated hosts under the dedicated host 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 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; + 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; }; -/** 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; - /** - * 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; +/** Describes a Virtual Machine Scale Set Extension. */ +export type VirtualMachineScaleSetExtensionUpdate = SubResourceReadOnly & { /** - * The provisioning state, which only appears in the response. + * The name of the extension. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly name?: string; /** - * The dedicated host instance view. + * Resource type * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly instanceView?: DedicatedHostInstanceView; - /** - * Specifies the time at which the Dedicated Host 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; -}; - -/** Specifies information about the SSH public key. */ -export type SshPublicKeyResource = Resource & { - /** SSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format. */ - publicKey?: string; -}; - -/** Describes a Virtual Machine Extension Image. */ -export type VirtualMachineExtensionImage = Resource & { - /** The operating system this extension supports. */ - operatingSystem?: string; - /** The type of role (IaaS or PaaS) this extension supports. */ - computeRole?: string; - /** The schema defined by publisher, where extension consumers should provide settings in a matching schema. */ - handlerSchema?: string; - /** Whether the extension can be used on xRP VMScaleSets. By default existing extensions are usable on scalesets, but there might be cases where a publisher wants to explicitly indicate the extension is only enabled for CRP VMs but not VMSS. */ - vmScaleSetEnabled?: boolean; - /** Whether the handler can support multiple extensions. */ - supportsMultipleExtensions?: boolean; -}; - -/** Describes a Virtual Machine Extension. */ -export type VirtualMachineExtension = Resource & { - /** How the extension handler should be forced to update even if the extension configuration has not changed. */ + 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 +4390,87 @@ 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 VMSS VM Extension. */ +export type VirtualMachineScaleSetVMExtension = 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; /** - * The provisioning state, which only appears in the response. + * Resource type * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + 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; /** - * The virtual machine 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?: 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 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 & { /** - * Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. + * The name of the extension. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly vmId?: string; - /** Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M).

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

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

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

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

    Minimum api-version: 2021-11-01. + * Resource type * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timeCreated?: Date; + readonly type?: string; + /** How the extension handler should be forced to update even if the extension configuration has not changed. */ + forceUpdateTag?: string; + /** The name of the extension handler publisher. */ + publisher?: string; + /** Specifies the type of the extension; an example is "CustomScriptExtension". */ + typePropertiesType?: string; + /** Specifies the version of the script handler. */ + typeHandlerVersion?: string; + /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ + autoUpgradeMinorVersion?: boolean; + /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. */ + enableAutomaticUpgrade?: boolean; + /** Json formatted public settings for the extension. */ + settings?: Record; + /** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */ + protectedSettings?: Record; + /** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */ + suppressFailures?: boolean; + /** The extensions protected settings that are passed by reference, and consumed from key vault */ + protectedSettingsFromKeyVault?: Record; }; /** Describes a Virtual Machine Scale Set. */ @@ -4589,162 +4524,96 @@ 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. + * The virtual machine zones. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly virtualMachinesAssociated?: SubResourceReadOnly[]; + readonly zones?: string[]; /** - * The date time when the capacity reservation was last updated. + * Specifies whether the latest model has been applied to the virtual machine. * 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. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly zones?: string[]; - /** - * Specifies whether the latest model has been applied to the virtual machine. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly latestModelApplied?: boolean; + readonly latestModelApplied?: boolean; /** * Azure VM unique ID. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4791,104 +4660,412 @@ 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 virtual machine child extension resources. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resources?: VirtualMachineExtension[]; + /** The identity of the virtual machine, if configured. */ + identity?: VirtualMachineIdentity; + /** The virtual machine zones. */ + zones?: string[]; + /** The extended location of the Virtual Machine. */ + extendedLocation?: ExtendedLocation; + /** Specifies the hardware settings for the virtual machine. */ + hardwareProfile?: HardwareProfile; + /** Specifies the storage settings for the virtual machine disks. */ + storageProfile?: StorageProfile; + /** Specifies additional capabilities enabled or disabled on the virtual machine. */ + additionalCapabilities?: AdditionalCapabilities; + /** Specifies the operating system settings used while creating the virtual machine. Some of the settings cannot be changed once VM is provisioned. */ + osProfile?: OSProfile; + /** Specifies the network interfaces of the virtual machine. */ + networkProfile?: NetworkProfile; + /** Specifies the Security related profile settings for the virtual machine. */ + securityProfile?: SecurityProfile; + /** Specifies the boot diagnostic settings state.

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

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

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

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

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

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

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

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

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

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

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

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

    Minimum api-version: 2020-06-01.

    NOTE: User cannot specify both host and hostGroup properties. */ + hostGroup?: SubResource; /** * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: string; /** - * The virtual machine run command instance view. + * The virtual machine instance view. * 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 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; /** - * A relative URI containing the ID of the VM that has the disk attached. + * 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 managedBy?: string; + readonly vmId?: string; + /** Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M).

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

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

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

    Minimum api-version: 2021-04-01. */ + capacityReservation?: CapacityReservationProfile; + /** Specifies the gallery applications that should be made available to the VM/VMSS */ + applicationProfile?: ApplicationProfile; /** - * 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 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 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 timeCreated?: Date; +}; + +/** 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 time when the disk was created. + * The resource status information. * 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; + readonly statuses?: InstanceViewStatus[]; +}; + +/** Specifies information about the proximity placement group. */ +export type ProximityPlacementGroup = Resource & { + /** Specifies the Availability Zone where virtual machine, virtual machine scale set or availability set associated with the proximity placement group can be created. */ + zones?: string[]; + /** 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; /** - * The size of the disk in bytes. This field is read only. + * 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 diskSizeBytes?: number; + readonly virtualMachines?: SubResourceWithColocationStatus[]; /** - * Unique Guid identifying the resource. + * 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 uniqueId?: string; - /** Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. */ - encryptionSettingsCollection?: EncryptionSettingsCollection; + readonly virtualMachineScaleSets?: SubResourceWithColocationStatus[]; /** - * The disk provisioning state. + * 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 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 availabilitySets?: SubResourceWithColocationStatus[]; + /** Describes colocation status of the Proximity Placement Group. */ + colocationStatus?: InstanceViewStatus; + /** Specifies the user intent of the proximity placement group. */ + intent?: ProximityPlacementGroupPropertiesIntent; +}; + +/** 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; /** - * The state of the disk. + * 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 diskState?: DiskState; - /** Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. */ + 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; + /** Enables or disables a capability on the dedicated host group.

    Minimum api-version: 2022-03-01. */ + additionalCapabilities?: DedicatedHostGroupPropertiesAdditionalCapabilities; +}; + +/** 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; + /** + * 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; + /** + * The dedicated host instance view. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly instanceView?: DedicatedHostInstanceView; + /** + * 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 timeCreated?: Date; +}; + +/** Specifies information about the SSH public key. */ +export type SshPublicKeyResource = Resource & { + /** SSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format. */ + publicKey?: string; +}; + +/** 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 provisioning state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource. */ + hyperVGeneration?: HyperVGenerationTypes; +}; + +/** 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 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 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 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. */ +export type CapacityReservation = Resource & { + /** SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. Currently VM Skus with the capability called 'CapacityReservationSupported' set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values. */ + sku: Sku; + /** Availability Zone to use for this capacity reservation. The zone has to be single value and also should be part for the list of zones specified during the capacity reservation group creation. The zone can be assigned only during creation. If not provided, the reservation supports only non-zonal deployments. If provided, enforces VM/VMSS using this capacity reservation to be in same zone. */ + zones?: string[]; + /** + * A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly reservationId?: string; + /** + * A list of all virtual machine resource ids that are associated with the capacity reservation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly virtualMachinesAssociated?: SubResourceReadOnly[]; + /** + * The date time when the capacity reservation was last updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningTime?: Date; + /** + * The provisioning state, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * The Capacity reservation instance view. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly instanceView?: CapacityReservationInstanceView; + /** + * Specifies the time at which the Capacity Reservation resource was created.

    Minimum api-version: 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 VirtualMachineRunCommand = Resource & { + /** The source of the run command script. */ + source?: VirtualMachineRunCommandScriptSource; + /** The parameters used by the script. */ + parameters?: RunCommandInputParameter[]; + /** The parameters used by the script. */ + protectedParameters?: RunCommandInputParameter[]; + /** Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete. */ + asyncExecution?: boolean; + /** Specifies the user account on the VM when executing the run command. */ + runAsUser?: string; + /** Specifies the user account password on the VM when executing the run command. */ + runAsPassword?: string; + /** The timeout in seconds to execute the run command. */ + timeoutInSeconds?: number; + /** Specifies the Azure storage blob where script output stream will be uploaded. */ + outputBlobUri?: string; + /** Specifies the Azure storage blob where script error stream will be uploaded. */ + errorBlobUri?: string; + /** + * The provisioning state, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: 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; +}; + +/** Disk resource. */ +export type Disk = Resource & { + /** + * 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 managedBy?: 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. + * 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; + /** + * The time when the disk was created. + * 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; + /** + * 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 diskSizeBytes?: number; + /** + * 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 for 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; + /** 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 state of the disk. + * 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; @@ -4918,8 +5095,6 @@ export type Disk = Resource & { 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; }; /** Snapshot resource. */ @@ -4944,7 +5119,7 @@ export type Snapshot = Resource & { 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. */ + /** 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; @@ -4988,8 +5163,6 @@ export type Snapshot = Resource & { 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; }; /** disk encryption set resource. */ @@ -5154,92 +5327,32 @@ export type GalleryApplicationVersion = Resource & { 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. */ +/** Describes a Virtual Machine Scale Set. */ +export type VirtualMachineScaleSetUpdate = UpdateResource & { + /** The virtual machine scale set sku. */ + sku?: Sku; + /** The purchase plan when deploying a virtual machine scale set from VM Marketplace images. */ + plan?: Plan; + /** The identity of the virtual machine scale set, if configured. */ + identity?: VirtualMachineScaleSetIdentity; + /** The upgrade policy. */ + upgradePolicy?: UpgradePolicy; + /** Policy for automatic repairs. */ + automaticRepairsPolicy?: AutomaticRepairsPolicy; + /** The virtual machine profile. */ + virtualMachineProfile?: VirtualMachineScaleSetUpdateVMProfile; + /** Specifies whether the Virtual Machine Scale Set should be overprovisioned. */ + overprovision?: boolean; + /** When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned VMs. */ + doNotRunExtensionsOnOverprovisionedVMs?: boolean; + /** When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true. */ + singlePlacementGroup?: boolean; + /** Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type. */ + additionalCapabilities?: AdditionalCapabilities; + /** Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set. */ + scaleInPolicy?: ScaleInPolicy; + /** Specifies information about the proximity placement group that the virtual machine scale 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 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; - /** - * 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; -}; - -/** 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; - /** - * 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; - /** - * 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; - /** - * The dedicated host instance view. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly instanceView?: DedicatedHostInstanceView; - /** - * Specifies the time at which the Dedicated Host 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; -}; - -/** 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. */ @@ -5266,21 +5379,6 @@ export type VirtualMachineExtensionUpdate = UpdateResource & { 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; - /** - * The provisioning state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource. */ - hyperVGeneration?: HyperVGenerationTypes; -}; - /** 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**. */ @@ -5349,12 +5447,117 @@ export type VirtualMachineUpdate = UpdateResource & { /** Specifies the gallery applications that should be made available to the VM/VMSS */ applicationProfile?: ApplicationProfile; /** - * Specifies the time at which the Virtual Machine resource was created.

    Minimum api-version: 2021-11-01. + * 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; +}; + +/** 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 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 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; + /** + * 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; + /** Enables or disables a capability on the dedicated host group.

    Minimum api-version: 2022-03-01. */ + additionalCapabilities?: DedicatedHostGroupPropertiesAdditionalCapabilities; +}; + +/** 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; + /** + * 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; + /** + * 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; + /** + * The dedicated host instance view. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly instanceView?: DedicatedHostInstanceView; + /** + * 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 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; +}; + +/** The source user image virtual hard disk. Only tags may be updated. */ +export type ImageUpdate = UpdateResource & { + /** The source virtual machine from which Image is created. */ + sourceVirtualMachine?: SubResource; + /** Specifies the storage settings for the virtual machine disks. */ + storageProfile?: ImageStorageProfile; + /** + * The provisioning state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource. */ + hyperVGeneration?: HyperVGenerationTypes; +}; + /** Update Restore Point collection parameters. */ export type RestorePointCollectionUpdate = UpdateResource & { /** The properties of the source resource that this restore point collection is created from. */ @@ -5425,40 +5628,12 @@ export type CapacityReservationUpdate = UpdateResource & { */ readonly instanceView?: CapacityReservationInstanceView; /** - * Specifies the time at which the Capacity Reservation resource was created.

    Minimum api-version: 2021-11-01. + * 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 Scale Set. */ -export type VirtualMachineScaleSetUpdate = UpdateResource & { - /** The virtual machine scale set sku. */ - sku?: Sku; - /** The purchase plan when deploying a virtual machine scale set from VM Marketplace images. */ - plan?: Plan; - /** The identity of the virtual machine scale set, if configured. */ - identity?: VirtualMachineScaleSetIdentity; - /** The upgrade policy. */ - upgradePolicy?: UpgradePolicy; - /** Policy for automatic repairs. */ - automaticRepairsPolicy?: AutomaticRepairsPolicy; - /** The virtual machine profile. */ - virtualMachineProfile?: VirtualMachineScaleSetUpdateVMProfile; - /** Specifies whether the Virtual Machine Scale Set should be overprovisioned. */ - overprovision?: boolean; - /** When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned VMs. */ - doNotRunExtensionsOnOverprovisionedVMs?: boolean; - /** When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true. */ - singlePlacementGroup?: boolean; - /** Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type. */ - additionalCapabilities?: AdditionalCapabilities; - /** Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set. */ - scaleInPolicy?: ScaleInPolicy; - /** Specifies information about the proximity placement group that the virtual machine scale set should be assigned to.

    Minimum api-version: 2018-04-01. */ - proximityPlacementGroup?: SubResource; -}; - /** Describes a Virtual Machine run command. */ export type VirtualMachineRunCommandUpdate = UpdateResource & { /** The source of the run command script. */ @@ -5491,159 +5666,8 @@ export type VirtualMachineRunCommandUpdate = UpdateResource & { 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. */ - 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 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; - /** - * 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. - * 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; - /** - * The provisioning state, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** The virtual machine extension instance view. */ - instanceView?: VirtualMachineExtensionInstanceView; - /** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */ - suppressFailures?: boolean; - /** The extensions protected settings that are passed by reference, and consumed from key vault */ - protectedSettingsFromKeyVault?: Record; -}; - -/** 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 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 & { @@ -5707,9 +5731,6 @@ export type CapacityReservationInstanceViewWithName = CapacityReservationInstanc readonly name?: string; }; -/** 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. */ @@ -5748,7 +5769,7 @@ export type DiskRestorePoint = ProxyOnlyResource & { hyperVGeneration?: HyperVGeneration; /** Purchase plan information for the the image from which the OS disk was created. */ purchasePlan?: PurchasePlanAutoGenerated; - /** List of supported capabilities for the image from which the OS disk was created. */ + /** List of supported capabilities (like accelerated networking) for the image from which the OS disk was created. */ supportedCapabilities?: SupportedCapabilities; /** * id of the backing snapshot's MIS family @@ -5904,6 +5925,9 @@ export type GalleryApplicationVersionPublishingProfile = GalleryArtifactPublishi /** The source image from which the Image Version is going to be created. */ source: UserArtifactSource; manageActions?: UserArtifactManage; + settings?: UserArtifactSettings; + /** Optional. Additional settings to pass to the VMApp extension. For advanced used only. */ + advancedSettings?: { [propertyName: string]: string }; /** Optional. Whether or not this application reports health. */ enableHealthCheck?: boolean; }; @@ -5982,8 +6006,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 +6047,107 @@ export type SharedGalleryImageVersion = PirSharedGalleryResource & { endOfLifeDate?: Date; }; -/** Known values of {@link ProximityPlacementGroupType} that the service accepts. */ -export enum KnownProximityPlacementGroupType { - Standard = "Standard", - Ultra = "Ultra" +/** Known values of {@link RepairAction} that the service accepts. */ +export enum KnownRepairAction { + Replace = "Replace", + Restart = "Restart", + Reimage = "Reimage" } /** - * Defines values for ProximityPlacementGroupType. \ - * {@link KnownProximityPlacementGroupType} can be used interchangeably with ProximityPlacementGroupType, + * Defines values for RepairAction. \ + * {@link KnownRepairAction} can be used interchangeably with RepairAction, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Standard** \ - * **Ultra** + * **Replace** \ + * **Restart** \ + * **Reimage** */ -export type ProximityPlacementGroupType = string; +export type RepairAction = string; -/** Known values of {@link HyperVGenerationTypes} that the service accepts. */ -export enum KnownHyperVGenerationTypes { - V1 = "V1", - V2 = "V2" +/** Known values of {@link WindowsVMGuestPatchMode} that the service accepts. */ +export enum KnownWindowsVMGuestPatchMode { + Manual = "Manual", + AutomaticByOS = "AutomaticByOS", + AutomaticByPlatform = "AutomaticByPlatform" } /** - * Defines values for HyperVGenerationTypes. \ - * {@link KnownHyperVGenerationTypes} can be used interchangeably with HyperVGenerationTypes, + * Defines values for WindowsVMGuestPatchMode. \ + * {@link KnownWindowsVMGuestPatchMode} can be used interchangeably with WindowsVMGuestPatchMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **V1** \ - * **V2** + * **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 DiffDiskOptions} that the service accepts. */ export enum KnownDiffDiskOptions { @@ -6477,24 +6179,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,101 +6219,21 @@ export enum KnownSecurityEncryptionTypes { */ export type SecurityEncryptionTypes = 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 DiskDetachOptionTypes} that the service accepts. */ -export enum KnownDiskDetachOptionTypes { - ForceDetach = "ForceDetach" -} - -/** - * 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 - * **ForceDetach** - */ -export type DiskDetachOptionTypes = string; - -/** Known values of {@link WindowsVMGuestPatchMode} that the service accepts. */ -export enum KnownWindowsVMGuestPatchMode { - Manual = "Manual", - AutomaticByOS = "AutomaticByOS", - AutomaticByPlatform = "AutomaticByPlatform" -} - -/** - * 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 - * **Manual** \ - * **AutomaticByOS** \ - * **AutomaticByPlatform** - */ -export type WindowsVMGuestPatchMode = string; - -/** Known values of {@link WindowsPatchAssessmentMode} that the service accepts. */ -export enum KnownWindowsPatchAssessmentMode { - ImageDefault = "ImageDefault", - AutomaticByPlatform = "AutomaticByPlatform" -} - -/** - * 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 - * **ImageDefault** \ - * **AutomaticByPlatform** - */ -export type WindowsPatchAssessmentMode = string; - -/** Known values of {@link LinuxVMGuestPatchMode} that the service accepts. */ -export enum KnownLinuxVMGuestPatchMode { - ImageDefault = "ImageDefault", - AutomaticByPlatform = "AutomaticByPlatform" -} - -/** - * 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 - * **ImageDefault** \ - * **AutomaticByPlatform** - */ -export type LinuxVMGuestPatchMode = string; - -/** Known values of {@link LinuxPatchAssessmentMode} that the service accepts. */ -export enum KnownLinuxPatchAssessmentMode { - ImageDefault = "ImageDefault", - AutomaticByPlatform = "AutomaticByPlatform" +/** Known values of {@link IPVersion} that the service accepts. */ +export enum KnownIPVersion { + IPv4 = "IPv4", + IPv6 = "IPv6" } /** - * Defines values for LinuxPatchAssessmentMode. \ - * {@link KnownLinuxPatchAssessmentMode} can be used interchangeably with LinuxPatchAssessmentMode, + * 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 - * **ImageDefault** \ - * **AutomaticByPlatform** + * **IPv4** \ + * **IPv6** */ -export type LinuxPatchAssessmentMode = string; +export type IPVersion = string; /** Known values of {@link DeleteOptions} that the service accepts. */ export enum KnownDeleteOptions { @@ -6642,56 +6246,10 @@ export enum KnownDeleteOptions { * {@link KnownDeleteOptions} can be used interchangeably with DeleteOptions, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Delete** \ - * **Detach** - */ -export type DeleteOptions = string; - -/** Known values of {@link NetworkApiVersion} that the service accepts. */ -export enum KnownNetworkApiVersion { - TwoThousandTwenty1101 = "2020-11-01" -} - -/** - * Defines values for NetworkApiVersion. \ - * {@link KnownNetworkApiVersion} can be used interchangeably with NetworkApiVersion, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **2020-11-01** - */ -export type NetworkApiVersion = string; - -/** Known values of {@link IPVersions} that the service accepts. */ -export enum KnownIPVersions { - IPv4 = "IPv4", - IPv6 = "IPv6" -} - -/** - * Defines values for IPVersions. \ - * {@link KnownIPVersions} can be used interchangeably with IPVersions, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **IPv4** \ - * **IPv6** - */ -export type IPVersions = string; - -/** Known values of {@link PublicIPAllocationMethod} that the service accepts. */ -export enum KnownPublicIPAllocationMethod { - Dynamic = "Dynamic", - Static = "Static" -} - -/** - * Defines values for PublicIPAllocationMethod. \ - * {@link KnownPublicIPAllocationMethod} can be used interchangeably with PublicIPAllocationMethod, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Dynamic** \ - * **Static** + * **Delete** \ + * **Detach** */ -export type PublicIPAllocationMethod = string; +export type DeleteOptions = string; /** Known values of {@link PublicIPAddressSkuName} that the service accepts. */ export enum KnownPublicIPAddressSkuName { @@ -6725,6 +6283,20 @@ export enum KnownPublicIPAddressSkuTier { */ export type PublicIPAddressSkuTier = 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 SecurityTypes} that the service accepts. */ export enum KnownSecurityTypes { TrustedLaunch = "TrustedLaunch", @@ -6775,217 +6347,561 @@ export enum KnownVirtualMachineEvictionPolicyTypes { */ export type VirtualMachineEvictionPolicyTypes = string; -/** Known values of {@link HyperVGenerationType} that the service accepts. */ -export enum KnownHyperVGenerationType { - V1 = "V1", - V2 = "V2" +/** Known values of {@link VirtualMachineScaleSetScaleInRules} that the service accepts. */ +export enum KnownVirtualMachineScaleSetScaleInRules { + Default = "Default", + OldestVM = "OldestVM", + NewestVM = "NewestVM" } /** - * Defines values for HyperVGenerationType. \ - * {@link KnownHyperVGenerationType} can be used interchangeably with HyperVGenerationType, + * Defines values for VirtualMachineScaleSetScaleInRules. \ + * {@link KnownVirtualMachineScaleSetScaleInRules} can be used interchangeably with VirtualMachineScaleSetScaleInRules, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **V1** \ - * **V2** + * **Default** \ + * **OldestVM** \ + * **NewestVM** */ -export type HyperVGenerationType = string; +export type VirtualMachineScaleSetScaleInRules = string; -/** Known values of {@link PatchOperationStatus} that the service accepts. */ -export enum KnownPatchOperationStatus { - Unknown = "Unknown", - InProgress = "InProgress", - Failed = "Failed", - Succeeded = "Succeeded", - CompletedWithWarnings = "CompletedWithWarnings" +/** Known values of {@link OrchestrationMode} that the service accepts. */ +export enum KnownOrchestrationMode { + Uniform = "Uniform", + Flexible = "Flexible" } /** - * Defines values for PatchOperationStatus. \ - * {@link KnownPatchOperationStatus} can be used interchangeably with PatchOperationStatus, + * Defines values for OrchestrationMode. \ + * {@link KnownOrchestrationMode} can be used interchangeably with OrchestrationMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Unknown** \ - * **InProgress** \ - * **Failed** \ - * **Succeeded** \ - * **CompletedWithWarnings** + * **Uniform** \ + * **Flexible** */ -export type PatchOperationStatus = string; +export type OrchestrationMode = string; -/** Known values of {@link RepairAction} that the service accepts. */ -export enum KnownRepairAction { - Replace = "Replace", - Restart = "Restart", - Reimage = "Reimage" +/** Known values of {@link ExtendedLocationTypes} that the service accepts. */ +export enum KnownExtendedLocationTypes { + EdgeZone = "EdgeZone" } /** - * Defines values for RepairAction. \ - * {@link KnownRepairAction} can be used interchangeably with RepairAction, + * Defines values for ExtendedLocationTypes. \ + * {@link KnownExtendedLocationTypes} can be used interchangeably with ExtendedLocationTypes, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Replace** \ - * **Restart** \ - * **Reimage** + * **EdgeZone** */ -export type RepairAction = string; +export type ExtendedLocationTypes = string; -/** Known values of {@link IPVersion} that the service accepts. */ -export enum KnownIPVersion { - IPv4 = "IPv4", - IPv6 = "IPv6" +/** Known values of {@link ExpandTypesForGetVMScaleSets} that the service accepts. */ +export enum KnownExpandTypesForGetVMScaleSets { + UserData = "userData" } /** - * Defines values for IPVersion. \ - * {@link KnownIPVersion} can be used interchangeably with IPVersion, + * Defines values for ExpandTypesForGetVMScaleSets. \ + * {@link KnownExpandTypesForGetVMScaleSets} can be used interchangeably with ExpandTypesForGetVMScaleSets, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **IPv4** \ - * **IPv6** + * **userData** */ -export type IPVersion = string; +export type ExpandTypesForGetVMScaleSets = string; -/** Known values of {@link VirtualMachineScaleSetScaleInRules} that the service accepts. */ -export enum KnownVirtualMachineScaleSetScaleInRules { - Default = "Default", - OldestVM = "OldestVM", - NewestVM = "NewestVM" +/** Known values of {@link OrchestrationServiceNames} that the service accepts. */ +export enum KnownOrchestrationServiceNames { + AutomaticRepairs = "AutomaticRepairs", + DummyOrchestrationServiceName = "DummyOrchestrationServiceName" } /** - * Defines values for VirtualMachineScaleSetScaleInRules. \ - * {@link KnownVirtualMachineScaleSetScaleInRules} can be used interchangeably with VirtualMachineScaleSetScaleInRules, + * Defines values for OrchestrationServiceNames. \ + * {@link KnownOrchestrationServiceNames} can be used interchangeably with OrchestrationServiceNames, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** \ - * **OldestVM** \ - * **NewestVM** + * **AutomaticRepairs** \ + * **DummyOrchestrationServiceName** */ -export type VirtualMachineScaleSetScaleInRules = string; +export type OrchestrationServiceNames = string; -/** Known values of {@link OrchestrationMode} that the service accepts. */ -export enum KnownOrchestrationMode { - Uniform = "Uniform", - Flexible = "Flexible" +/** Known values of {@link OrchestrationServiceState} that the service accepts. */ +export enum KnownOrchestrationServiceState { + NotRunning = "NotRunning", + Running = "Running", + Suspended = "Suspended" } /** - * Defines values for OrchestrationMode. \ - * {@link KnownOrchestrationMode} can be used interchangeably with OrchestrationMode, + * Defines values for OrchestrationServiceState. \ + * {@link KnownOrchestrationServiceState} can be used interchangeably with OrchestrationServiceState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Uniform** \ - * **Flexible** + * **NotRunning** \ + * **Running** \ + * **Suspended** */ -export type OrchestrationMode = string; +export type OrchestrationServiceState = string; -/** Known values of {@link OperatingSystemType} that the service accepts. */ -export enum KnownOperatingSystemType { - Windows = "Windows", - Linux = "Linux" +/** Known values of {@link OrchestrationServiceStateAction} that the service accepts. */ +export enum KnownOrchestrationServiceStateAction { + Resume = "Resume", + Suspend = "Suspend" +} + +/** + * Defines values for 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 + * **Resume** \ + * **Suspend** + */ +export type OrchestrationServiceStateAction = string; + +/** Known values of {@link VirtualMachineSizeTypes} that the service accepts. */ +export enum KnownVirtualMachineSizeTypes { + BasicA0 = "Basic_A0", + BasicA1 = "Basic_A1", + BasicA2 = "Basic_A2", + BasicA3 = "Basic_A3", + BasicA4 = "Basic_A4", + StandardA0 = "Standard_A0", + StandardA1 = "Standard_A1", + StandardA2 = "Standard_A2", + StandardA3 = "Standard_A3", + StandardA4 = "Standard_A4", + StandardA5 = "Standard_A5", + StandardA6 = "Standard_A6", + StandardA7 = "Standard_A7", + StandardA8 = "Standard_A8", + StandardA9 = "Standard_A9", + StandardA10 = "Standard_A10", + StandardA11 = "Standard_A11", + StandardA1V2 = "Standard_A1_v2", + StandardA2V2 = "Standard_A2_v2", + StandardA4V2 = "Standard_A4_v2", + StandardA8V2 = "Standard_A8_v2", + StandardA2MV2 = "Standard_A2m_v2", + StandardA4MV2 = "Standard_A4m_v2", + StandardA8MV2 = "Standard_A8m_v2", + StandardB1S = "Standard_B1s", + StandardB1Ms = "Standard_B1ms", + StandardB2S = "Standard_B2s", + StandardB2Ms = "Standard_B2ms", + StandardB4Ms = "Standard_B4ms", + StandardB8Ms = "Standard_B8ms", + StandardD1 = "Standard_D1", + StandardD2 = "Standard_D2", + StandardD3 = "Standard_D3", + StandardD4 = "Standard_D4", + StandardD11 = "Standard_D11", + StandardD12 = "Standard_D12", + StandardD13 = "Standard_D13", + StandardD14 = "Standard_D14", + StandardD1V2 = "Standard_D1_v2", + StandardD2V2 = "Standard_D2_v2", + StandardD3V2 = "Standard_D3_v2", + StandardD4V2 = "Standard_D4_v2", + StandardD5V2 = "Standard_D5_v2", + StandardD2V3 = "Standard_D2_v3", + StandardD4V3 = "Standard_D4_v3", + StandardD8V3 = "Standard_D8_v3", + StandardD16V3 = "Standard_D16_v3", + StandardD32V3 = "Standard_D32_v3", + StandardD64V3 = "Standard_D64_v3", + StandardD2SV3 = "Standard_D2s_v3", + StandardD4SV3 = "Standard_D4s_v3", + StandardD8SV3 = "Standard_D8s_v3", + StandardD16SV3 = "Standard_D16s_v3", + StandardD32SV3 = "Standard_D32s_v3", + StandardD64SV3 = "Standard_D64s_v3", + StandardD11V2 = "Standard_D11_v2", + StandardD12V2 = "Standard_D12_v2", + StandardD13V2 = "Standard_D13_v2", + StandardD14V2 = "Standard_D14_v2", + StandardD15V2 = "Standard_D15_v2", + StandardDS1 = "Standard_DS1", + StandardDS2 = "Standard_DS2", + StandardDS3 = "Standard_DS3", + StandardDS4 = "Standard_DS4", + StandardDS11 = "Standard_DS11", + StandardDS12 = "Standard_DS12", + StandardDS13 = "Standard_DS13", + StandardDS14 = "Standard_DS14", + StandardDS1V2 = "Standard_DS1_v2", + StandardDS2V2 = "Standard_DS2_v2", + StandardDS3V2 = "Standard_DS3_v2", + StandardDS4V2 = "Standard_DS4_v2", + StandardDS5V2 = "Standard_DS5_v2", + StandardDS11V2 = "Standard_DS11_v2", + StandardDS12V2 = "Standard_DS12_v2", + StandardDS13V2 = "Standard_DS13_v2", + StandardDS14V2 = "Standard_DS14_v2", + StandardDS15V2 = "Standard_DS15_v2", + StandardDS134V2 = "Standard_DS13-4_v2", + StandardDS132V2 = "Standard_DS13-2_v2", + StandardDS148V2 = "Standard_DS14-8_v2", + StandardDS144V2 = "Standard_DS14-4_v2", + StandardE2V3 = "Standard_E2_v3", + StandardE4V3 = "Standard_E4_v3", + StandardE8V3 = "Standard_E8_v3", + StandardE16V3 = "Standard_E16_v3", + StandardE32V3 = "Standard_E32_v3", + StandardE64V3 = "Standard_E64_v3", + StandardE2SV3 = "Standard_E2s_v3", + StandardE4SV3 = "Standard_E4s_v3", + StandardE8SV3 = "Standard_E8s_v3", + StandardE16SV3 = "Standard_E16s_v3", + StandardE32SV3 = "Standard_E32s_v3", + StandardE64SV3 = "Standard_E64s_v3", + StandardE3216V3 = "Standard_E32-16_v3", + StandardE328SV3 = "Standard_E32-8s_v3", + StandardE6432SV3 = "Standard_E64-32s_v3", + StandardE6416SV3 = "Standard_E64-16s_v3", + StandardF1 = "Standard_F1", + StandardF2 = "Standard_F2", + StandardF4 = "Standard_F4", + StandardF8 = "Standard_F8", + StandardF16 = "Standard_F16", + StandardF1S = "Standard_F1s", + StandardF2S = "Standard_F2s", + StandardF4S = "Standard_F4s", + StandardF8S = "Standard_F8s", + StandardF16S = "Standard_F16s", + StandardF2SV2 = "Standard_F2s_v2", + StandardF4SV2 = "Standard_F4s_v2", + StandardF8SV2 = "Standard_F8s_v2", + StandardF16SV2 = "Standard_F16s_v2", + StandardF32SV2 = "Standard_F32s_v2", + StandardF64SV2 = "Standard_F64s_v2", + StandardF72SV2 = "Standard_F72s_v2", + StandardG1 = "Standard_G1", + StandardG2 = "Standard_G2", + StandardG3 = "Standard_G3", + StandardG4 = "Standard_G4", + StandardG5 = "Standard_G5", + StandardGS1 = "Standard_GS1", + StandardGS2 = "Standard_GS2", + StandardGS3 = "Standard_GS3", + StandardGS4 = "Standard_GS4", + StandardGS5 = "Standard_GS5", + StandardGS48 = "Standard_GS4-8", + StandardGS44 = "Standard_GS4-4", + StandardGS516 = "Standard_GS5-16", + StandardGS58 = "Standard_GS5-8", + StandardH8 = "Standard_H8", + StandardH16 = "Standard_H16", + StandardH8M = "Standard_H8m", + StandardH16M = "Standard_H16m", + StandardH16R = "Standard_H16r", + StandardH16Mr = "Standard_H16mr", + StandardL4S = "Standard_L4s", + StandardL8S = "Standard_L8s", + StandardL16S = "Standard_L16s", + StandardL32S = "Standard_L32s", + StandardM64S = "Standard_M64s", + StandardM64Ms = "Standard_M64ms", + StandardM128S = "Standard_M128s", + StandardM128Ms = "Standard_M128ms", + StandardM6432Ms = "Standard_M64-32ms", + StandardM6416Ms = "Standard_M64-16ms", + StandardM12864Ms = "Standard_M128-64ms", + StandardM12832Ms = "Standard_M128-32ms", + StandardNC6 = "Standard_NC6", + StandardNC12 = "Standard_NC12", + StandardNC24 = "Standard_NC24", + StandardNC24R = "Standard_NC24r", + StandardNC6SV2 = "Standard_NC6s_v2", + StandardNC12SV2 = "Standard_NC12s_v2", + StandardNC24SV2 = "Standard_NC24s_v2", + StandardNC24RsV2 = "Standard_NC24rs_v2", + StandardNC6SV3 = "Standard_NC6s_v3", + StandardNC12SV3 = "Standard_NC12s_v3", + StandardNC24SV3 = "Standard_NC24s_v3", + StandardNC24RsV3 = "Standard_NC24rs_v3", + StandardND6S = "Standard_ND6s", + StandardND12S = "Standard_ND12s", + StandardND24S = "Standard_ND24s", + StandardND24Rs = "Standard_ND24rs", + StandardNV6 = "Standard_NV6", + StandardNV12 = "Standard_NV12", + StandardNV24 = "Standard_NV24" } /** - * Defines values for OperatingSystemType. \ - * {@link KnownOperatingSystemType} can be used interchangeably with OperatingSystemType, + * 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 - * **Windows** \ - * **Linux** + * **Basic_A0** \ + * **Basic_A1** \ + * **Basic_A2** \ + * **Basic_A3** \ + * **Basic_A4** \ + * **Standard_A0** \ + * **Standard_A1** \ + * **Standard_A2** \ + * **Standard_A3** \ + * **Standard_A4** \ + * **Standard_A5** \ + * **Standard_A6** \ + * **Standard_A7** \ + * **Standard_A8** \ + * **Standard_A9** \ + * **Standard_A10** \ + * **Standard_A11** \ + * **Standard_A1_v2** \ + * **Standard_A2_v2** \ + * **Standard_A4_v2** \ + * **Standard_A8_v2** \ + * **Standard_A2m_v2** \ + * **Standard_A4m_v2** \ + * **Standard_A8m_v2** \ + * **Standard_B1s** \ + * **Standard_B1ms** \ + * **Standard_B2s** \ + * **Standard_B2ms** \ + * **Standard_B4ms** \ + * **Standard_B8ms** \ + * **Standard_D1** \ + * **Standard_D2** \ + * **Standard_D3** \ + * **Standard_D4** \ + * **Standard_D11** \ + * **Standard_D12** \ + * **Standard_D13** \ + * **Standard_D14** \ + * **Standard_D1_v2** \ + * **Standard_D2_v2** \ + * **Standard_D3_v2** \ + * **Standard_D4_v2** \ + * **Standard_D5_v2** \ + * **Standard_D2_v3** \ + * **Standard_D4_v3** \ + * **Standard_D8_v3** \ + * **Standard_D16_v3** \ + * **Standard_D32_v3** \ + * **Standard_D64_v3** \ + * **Standard_D2s_v3** \ + * **Standard_D4s_v3** \ + * **Standard_D8s_v3** \ + * **Standard_D16s_v3** \ + * **Standard_D32s_v3** \ + * **Standard_D64s_v3** \ + * **Standard_D11_v2** \ + * **Standard_D12_v2** \ + * **Standard_D13_v2** \ + * **Standard_D14_v2** \ + * **Standard_D15_v2** \ + * **Standard_DS1** \ + * **Standard_DS2** \ + * **Standard_DS3** \ + * **Standard_DS4** \ + * **Standard_DS11** \ + * **Standard_DS12** \ + * **Standard_DS13** \ + * **Standard_DS14** \ + * **Standard_DS1_v2** \ + * **Standard_DS2_v2** \ + * **Standard_DS3_v2** \ + * **Standard_DS4_v2** \ + * **Standard_DS5_v2** \ + * **Standard_DS11_v2** \ + * **Standard_DS12_v2** \ + * **Standard_DS13_v2** \ + * **Standard_DS14_v2** \ + * **Standard_DS15_v2** \ + * **Standard_DS13-4_v2** \ + * **Standard_DS13-2_v2** \ + * **Standard_DS14-8_v2** \ + * **Standard_DS14-4_v2** \ + * **Standard_E2_v3** \ + * **Standard_E4_v3** \ + * **Standard_E8_v3** \ + * **Standard_E16_v3** \ + * **Standard_E32_v3** \ + * **Standard_E64_v3** \ + * **Standard_E2s_v3** \ + * **Standard_E4s_v3** \ + * **Standard_E8s_v3** \ + * **Standard_E16s_v3** \ + * **Standard_E32s_v3** \ + * **Standard_E64s_v3** \ + * **Standard_E32-16_v3** \ + * **Standard_E32-8s_v3** \ + * **Standard_E64-32s_v3** \ + * **Standard_E64-16s_v3** \ + * **Standard_F1** \ + * **Standard_F2** \ + * **Standard_F4** \ + * **Standard_F8** \ + * **Standard_F16** \ + * **Standard_F1s** \ + * **Standard_F2s** \ + * **Standard_F4s** \ + * **Standard_F8s** \ + * **Standard_F16s** \ + * **Standard_F2s_v2** \ + * **Standard_F4s_v2** \ + * **Standard_F8s_v2** \ + * **Standard_F16s_v2** \ + * **Standard_F32s_v2** \ + * **Standard_F64s_v2** \ + * **Standard_F72s_v2** \ + * **Standard_G1** \ + * **Standard_G2** \ + * **Standard_G3** \ + * **Standard_G4** \ + * **Standard_G5** \ + * **Standard_GS1** \ + * **Standard_GS2** \ + * **Standard_GS3** \ + * **Standard_GS4** \ + * **Standard_GS5** \ + * **Standard_GS4-8** \ + * **Standard_GS4-4** \ + * **Standard_GS5-16** \ + * **Standard_GS5-8** \ + * **Standard_H8** \ + * **Standard_H16** \ + * **Standard_H8m** \ + * **Standard_H16m** \ + * **Standard_H16r** \ + * **Standard_H16mr** \ + * **Standard_L4s** \ + * **Standard_L8s** \ + * **Standard_L16s** \ + * **Standard_L32s** \ + * **Standard_M64s** \ + * **Standard_M64ms** \ + * **Standard_M128s** \ + * **Standard_M128ms** \ + * **Standard_M64-32ms** \ + * **Standard_M64-16ms** \ + * **Standard_M128-64ms** \ + * **Standard_M128-32ms** \ + * **Standard_NC6** \ + * **Standard_NC12** \ + * **Standard_NC24** \ + * **Standard_NC24r** \ + * **Standard_NC6s_v2** \ + * **Standard_NC12s_v2** \ + * **Standard_NC24s_v2** \ + * **Standard_NC24rs_v2** \ + * **Standard_NC6s_v3** \ + * **Standard_NC12s_v3** \ + * **Standard_NC24s_v3** \ + * **Standard_NC24rs_v3** \ + * **Standard_ND6s** \ + * **Standard_ND12s** \ + * **Standard_ND24s** \ + * **Standard_ND24rs** \ + * **Standard_NV6** \ + * **Standard_NV12** \ + * **Standard_NV24** */ -export type OperatingSystemType = string; +export type VirtualMachineSizeTypes = string; -/** Known values of {@link ConsistencyModeTypes} that the service accepts. */ -export enum KnownConsistencyModeTypes { - CrashConsistent = "CrashConsistent", - FileSystemConsistent = "FileSystemConsistent", - ApplicationConsistent = "ApplicationConsistent" +/** Known values of {@link DiskDeleteOptionTypes} that the service accepts. */ +export enum KnownDiskDeleteOptionTypes { + Delete = "Delete", + Detach = "Detach" } /** - * Defines values for ConsistencyModeTypes. \ - * {@link KnownConsistencyModeTypes} can be used interchangeably with ConsistencyModeTypes, + * Defines values for DiskDeleteOptionTypes. \ + * {@link KnownDiskDeleteOptionTypes} can be used interchangeably with DiskDeleteOptionTypes, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **CrashConsistent** \ - * **FileSystemConsistent** \ - * **ApplicationConsistent** + * **Delete** \ + * **Detach** */ -export type ConsistencyModeTypes = string; +export type DiskDeleteOptionTypes = string; -/** Known values of {@link RestorePointCollectionExpandOptions} that the service accepts. */ -export enum KnownRestorePointCollectionExpandOptions { - RestorePoints = "restorePoints" +/** Known values of {@link DiskDetachOptionTypes} that the service accepts. */ +export enum KnownDiskDetachOptionTypes { + ForceDetach = "ForceDetach" } /** - * Defines values for RestorePointCollectionExpandOptions. \ - * {@link KnownRestorePointCollectionExpandOptions} can be used interchangeably with RestorePointCollectionExpandOptions, + * Defines values for DiskDetachOptionTypes. \ + * {@link KnownDiskDetachOptionTypes} can be used interchangeably with DiskDetachOptionTypes, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **restorePoints** + * **ForceDetach** */ -export type RestorePointCollectionExpandOptions = string; +export type DiskDetachOptionTypes = string; -/** Known values of {@link RestorePointExpandOptions} that the service accepts. */ -export enum KnownRestorePointExpandOptions { - InstanceView = "instanceView" +/** Known values of {@link IPVersions} that the service accepts. */ +export enum KnownIPVersions { + IPv4 = "IPv4", + IPv6 = "IPv6" } /** - * Defines values for RestorePointExpandOptions. \ - * {@link KnownRestorePointExpandOptions} can be used interchangeably with RestorePointExpandOptions, + * Defines values for IPVersions. \ + * {@link KnownIPVersions} can be used interchangeably with IPVersions, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **instanceView** + * **IPv4** \ + * **IPv6** */ -export type RestorePointExpandOptions = string; +export type IPVersions = string; -/** Known values of {@link CapacityReservationGroupInstanceViewTypes} that the service accepts. */ -export enum KnownCapacityReservationGroupInstanceViewTypes { - InstanceView = "instanceView" +/** Known values of {@link PublicIPAllocationMethod} that the service accepts. */ +export enum KnownPublicIPAllocationMethod { + Dynamic = "Dynamic", + Static = "Static" } /** - * Defines values for CapacityReservationGroupInstanceViewTypes. \ - * {@link KnownCapacityReservationGroupInstanceViewTypes} can be used interchangeably with CapacityReservationGroupInstanceViewTypes, + * Defines values for PublicIPAllocationMethod. \ + * {@link KnownPublicIPAllocationMethod} can be used interchangeably with PublicIPAllocationMethod, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **instanceView** + * **Dynamic** \ + * **Static** */ -export type CapacityReservationGroupInstanceViewTypes = string; +export type PublicIPAllocationMethod = string; -/** Known values of {@link ExpandTypesForGetCapacityReservationGroups} that the service accepts. */ -export enum KnownExpandTypesForGetCapacityReservationGroups { - VirtualMachineScaleSetVMsRef = "virtualMachineScaleSetVMs/$ref", - VirtualMachinesRef = "virtualMachines/$ref" +/** Known values of {@link HyperVGenerationType} that the service accepts. */ +export enum KnownHyperVGenerationType { + V1 = "V1", + V2 = "V2" } /** - * Defines values for ExpandTypesForGetCapacityReservationGroups. \ - * {@link KnownExpandTypesForGetCapacityReservationGroups} can be used interchangeably with ExpandTypesForGetCapacityReservationGroups, + * Defines values for HyperVGenerationType. \ + * {@link KnownHyperVGenerationType} can be used interchangeably with HyperVGenerationType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **virtualMachineScaleSetVMs\/$ref** \ - * **virtualMachines\/$ref** + * **V1** \ + * **V2** */ -export type ExpandTypesForGetCapacityReservationGroups = string; +export type HyperVGenerationType = string; -/** Known values of {@link CapacityReservationInstanceViewTypes} that the service accepts. */ -export enum KnownCapacityReservationInstanceViewTypes { - InstanceView = "instanceView" +/** Known values of {@link PatchOperationStatus} that the service accepts. */ +export enum KnownPatchOperationStatus { + Unknown = "Unknown", + InProgress = "InProgress", + Failed = "Failed", + Succeeded = "Succeeded", + CompletedWithWarnings = "CompletedWithWarnings" } /** - * Defines values for CapacityReservationInstanceViewTypes. \ - * {@link KnownCapacityReservationInstanceViewTypes} can be used interchangeably with CapacityReservationInstanceViewTypes, + * Defines values for PatchOperationStatus. \ + * {@link KnownPatchOperationStatus} can be used interchangeably with PatchOperationStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **instanceView** + * **Unknown** \ + * **InProgress** \ + * **Failed** \ + * **Succeeded** \ + * **CompletedWithWarnings** */ -export type CapacityReservationInstanceViewTypes = string; +export type PatchOperationStatus = string; /** Known values of {@link VMGuestPatchRebootBehavior} that the service accepts. */ export enum KnownVMGuestPatchRebootBehavior { @@ -7135,69 +7051,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 - * **NotRunning** \ - * **Running** \ - * **Suspended** + * **Standard** \ + * **Ultra** */ -export type OrchestrationServiceState = string; +export type ProximityPlacementGroupType = string; -/** Known values of {@link OrchestrationServiceStateAction} that the service accepts. */ -export enum KnownOrchestrationServiceStateAction { - Resume = "Resume", - Suspend = "Suspend" +/** Known values of {@link OperatingSystemType} that the service accepts. */ +export enum KnownOperatingSystemType { + Windows = "Windows", + Linux = "Linux" } /** - * Defines values for OrchestrationServiceStateAction. \ - * {@link KnownOrchestrationServiceStateAction} can be used interchangeably with OrchestrationServiceStateAction, + * 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 - * **Resume** \ - * **Suspend** + * **Windows** \ + * **Linux** */ -export type OrchestrationServiceStateAction = string; +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 + * **virtualMachineScaleSetVMs\/$ref** \ + * **virtualMachines\/$ref** + */ +export type ExpandTypesForGetCapacityReservationGroups = string; + +/** Known values of {@link CapacityReservationInstanceViewTypes} that the service accepts. */ +export enum KnownCapacityReservationInstanceViewTypes { + InstanceView = "instanceView" +} + +/** + * 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 + * **instanceView** + */ +export type CapacityReservationInstanceViewTypes = string; /** Known values of {@link ExecutionState} that the service accepts. */ export enum KnownExecutionState { @@ -7285,22 +7291,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 +7453,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", @@ -7725,6 +7697,22 @@ export enum KnownGalleryImagePropertiesProvisioningState { */ export type GalleryImagePropertiesProvisioningState = 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 StorageAccountType} that the service accepts. */ export enum KnownStorageAccountType { StandardLRS = "Standard_LRS", @@ -7956,267 +7944,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 +8062,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 +8074,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 +8088,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 +8109,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 +8220,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 +8232,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 +8386,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 +8403,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 +8415,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 +8427,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 +8458,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 +8467,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 +8541,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 +8550,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 +8559,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 +8568,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 +8587,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 +8599,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 +8625,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 +8637,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 +8649,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 +8698,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 +8710,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 +8724,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 +8750,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 +8761,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 +8805,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 +8832,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 +8841,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 +8852,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 +8871,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 +8883,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 +9235,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 +9247,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 +9259,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 +9284,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 +9361,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 +9373,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 +9385,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 +9444,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 +9490,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 +9503,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 +9589,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 +9601,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 +9613,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..5f4287591ce2 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -191,168 +191,85 @@ export const InnerError: coreClient.CompositeMapper = { } }; -export const SubResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SubResource", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const InstanceViewStatus: coreClient.CompositeMapper = { +export const ListUsagesResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceViewStatus", + className: "ListUsagesResult", modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - level: { - serializedName: "level", - type: { - name: "Enum", - allowedValues: ["Info", "Warning", "Error"] - } - }, - displayStatus: { - serializedName: "displayStatus", + value: { + serializedName: "value", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Usage" + } + } } }, - message: { - serializedName: "message", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - time: { - serializedName: "time", - type: { - name: "DateTime" - } } } } }; -export const Sku: coreClient.CompositeMapper = { +export const Usage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Sku", + className: "Usage", modelProperties: { - name: { - serializedName: "name", + unit: { + defaultValue: "Count", + isConstant: true, + serializedName: "unit", type: { name: "String" } }, - tier: { - serializedName: "tier", + currentValue: { + serializedName: "currentValue", + required: true, type: { - name: "String" + name: "Number" } }, - capacity: { - serializedName: "capacity", + limit: { + serializedName: "limit", + required: true, type: { name: "Number" } - } - } - } -}; - -export const Resource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } }, name: { serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - location: { - serializedName: "location", - required: true, - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const UpdateResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpdateResource", - modelProperties: { - tags: { - serializedName: "tags", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "UsageName" } } } } }; -export const AvailabilitySetListResult: coreClient.CompositeMapper = { +export const UsageName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailabilitySetListResult", + className: "UsageName", modelProperties: { value: { serializedName: "value", - required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AvailabilitySet" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + localizedValue: { + serializedName: "localizedValue", type: { name: "String" } @@ -427,10 +344,10 @@ export const VirtualMachineSize: coreClient.CompositeMapper = { } }; -export const ProximityPlacementGroupListResult: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProximityPlacementGroupListResult", + className: "VirtualMachineScaleSetListResult", modelProperties: { value: { serializedName: "value", @@ -440,7 +357,7 @@ export const ProximityPlacementGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ProximityPlacementGroup" + className: "VirtualMachineScaleSet" } } } @@ -455,226 +372,193 @@ export const ProximityPlacementGroupListResult: coreClient.CompositeMapper = { } }; -export const SubResourceReadOnly: coreClient.CompositeMapper = { +export const Sku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubResourceReadOnly", + className: "Sku", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", type: { name: "String" } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } } } } }; -export const DedicatedHostGroupInstanceView: coreClient.CompositeMapper = { +export const Plan: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DedicatedHostGroupInstanceView", + className: "Plan", modelProperties: { - hosts: { - serializedName: "hosts", + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DedicatedHostInstanceViewWithName" - } - } + name: "String" + } + }, + publisher: { + serializedName: "publisher", + type: { + name: "String" + } + }, + product: { + serializedName: "product", + type: { + name: "String" + } + }, + promotionCode: { + serializedName: "promotionCode", + type: { + name: "String" } } } } }; -export const DedicatedHostInstanceView: coreClient.CompositeMapper = { +export const UpgradePolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DedicatedHostInstanceView", + className: "UpgradePolicy", modelProperties: { - assetId: { - serializedName: "assetId", - readOnly: true, + mode: { + serializedName: "mode", type: { - name: "String" + name: "Enum", + allowedValues: ["Automatic", "Manual", "Rolling"] } }, - availableCapacity: { - serializedName: "availableCapacity", + rollingUpgradePolicy: { + serializedName: "rollingUpgradePolicy", type: { name: "Composite", - className: "DedicatedHostAvailableCapacity" + className: "RollingUpgradePolicy" } }, - statuses: { - serializedName: "statuses", + automaticOSUpgradePolicy: { + serializedName: "automaticOSUpgradePolicy", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } + name: "Composite", + className: "AutomaticOSUpgradePolicy" } } } } }; -export const DedicatedHostAvailableCapacity: coreClient.CompositeMapper = { +export const RollingUpgradePolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DedicatedHostAvailableCapacity", + className: "RollingUpgradePolicy", modelProperties: { - allocatableVMs: { - serializedName: "allocatableVMs", + maxBatchInstancePercent: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 5 + }, + serializedName: "maxBatchInstancePercent", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DedicatedHostAllocatableVM" - } - } - } - } - } - } -}; - -export const DedicatedHostAllocatableVM: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHostAllocatableVM", - modelProperties: { - vmSize: { - serializedName: "vmSize", - type: { - name: "String" + name: "Number" } }, - count: { - serializedName: "count", + maxUnhealthyInstancePercent: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 5 + }, + serializedName: "maxUnhealthyInstancePercent", type: { name: "Number" } - } - } - } -}; - -export const DedicatedHostGroupListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHostGroupListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, + }, + maxUnhealthyUpgradedInstancePercent: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "maxUnhealthyUpgradedInstancePercent", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DedicatedHostGroup" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + pauseTimeBetweenBatches: { + serializedName: "pauseTimeBetweenBatches", type: { name: "String" } - } - } - } -}; - -export const DedicatedHostListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHostListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, + }, + enableCrossZoneUpgrade: { + serializedName: "enableCrossZoneUpgrade", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DedicatedHost" - } - } + name: "Boolean" } }, - nextLink: { - serializedName: "nextLink", + prioritizeUnhealthyInstances: { + serializedName: "prioritizeUnhealthyInstances", type: { - name: "String" + name: "Boolean" } } } } }; -export const SshPublicKeysGroupListResult: coreClient.CompositeMapper = { +export const AutomaticOSUpgradePolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SshPublicKeysGroupListResult", + className: "AutomaticOSUpgradePolicy", modelProperties: { - value: { - serializedName: "value", - required: true, + enableAutomaticOSUpgrade: { + serializedName: "enableAutomaticOSUpgrade", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SshPublicKeyResource" - } - } + name: "Boolean" } }, - nextLink: { - serializedName: "nextLink", + disableAutomaticRollback: { + serializedName: "disableAutomaticRollback", type: { - name: "String" + name: "Boolean" } } } } }; -export const SshPublicKeyGenerateKeyPairResult: coreClient.CompositeMapper = { +export const AutomaticRepairsPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SshPublicKeyGenerateKeyPairResult", + className: "AutomaticRepairsPolicy", modelProperties: { - privateKey: { - serializedName: "privateKey", - required: true, + enabled: { + serializedName: "enabled", type: { - name: "String" + name: "Boolean" } }, - publicKey: { - serializedName: "publicKey", - required: true, + gracePeriod: { + serializedName: "gracePeriod", type: { name: "String" } }, - id: { - serializedName: "id", - required: true, + repairAction: { + serializedName: "repairAction", type: { name: "String" } @@ -683,293 +567,291 @@ export const SshPublicKeyGenerateKeyPairResult: coreClient.CompositeMapper = { } }; -export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVMProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineExtensionInstanceView", + className: "VirtualMachineScaleSetVMProfile", modelProperties: { - name: { - serializedName: "name", + osProfile: { + serializedName: "osProfile", type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetOSProfile" } }, - type: { - serializedName: "type", + storageProfile: { + serializedName: "storageProfile", type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetStorageProfile" } }, - typeHandlerVersion: { - serializedName: "typeHandlerVersion", + networkProfile: { + serializedName: "networkProfile", type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetNetworkProfile" } }, - substatuses: { - serializedName: "substatuses", + securityProfile: { + serializedName: "securityProfile", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } + name: "Composite", + className: "SecurityProfile" } }, - statuses: { - serializedName: "statuses", + diagnosticsProfile: { + serializedName: "diagnosticsProfile", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } + name: "Composite", + className: "DiagnosticsProfile" } - } - } - } -}; - -export const VirtualMachineExtensionsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineExtensionsListResult", - modelProperties: { - value: { - serializedName: "value", + }, + extensionProfile: { + serializedName: "extensionProfile", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineExtension" - } - } + name: "Composite", + className: "VirtualMachineScaleSetExtensionProfile" } - } - } - } -}; - -export const PurchasePlan: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PurchasePlan", - modelProperties: { - publisher: { - serializedName: "publisher", - required: true, + }, + licenseType: { + serializedName: "licenseType", type: { name: "String" } }, - name: { - serializedName: "name", - required: true, + priority: { + serializedName: "priority", type: { name: "String" } }, - product: { - serializedName: "product", - required: true, + evictionPolicy: { + serializedName: "evictionPolicy", type: { name: "String" } - } - } - } -}; - -export const OSDiskImage: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OSDiskImage", - modelProperties: { - operatingSystem: { - serializedName: "operatingSystem", - required: true, + }, + billingProfile: { + serializedName: "billingProfile", type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] - } - } - } - } -}; - -export const DataDiskImage: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataDiskImage", - modelProperties: { - lun: { - serializedName: "lun", - readOnly: true, - type: { - name: "Number" + name: "Composite", + className: "BillingProfile" } - } - } - } -}; - -export const AutomaticOSUpgradeProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutomaticOSUpgradeProperties", - modelProperties: { - automaticOSUpgradeSupported: { - serializedName: "automaticOSUpgradeSupported", - required: true, + }, + scheduledEventsProfile: { + serializedName: "scheduledEventsProfile", type: { - name: "Boolean" + name: "Composite", + className: "ScheduledEventsProfile" } - } - } - } -}; - -export const DisallowedConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DisallowedConfiguration", - modelProperties: { - vmDiskType: { - serializedName: "vmDiskType", + }, + userData: { + serializedName: "userData", type: { name: "String" } + }, + capacityReservation: { + serializedName: "capacityReservation", + type: { + name: "Composite", + className: "CapacityReservationProfile" + } + }, + applicationProfile: { + serializedName: "applicationProfile", + type: { + name: "Composite", + className: "ApplicationProfile" + } + }, + hardwareProfile: { + serializedName: "hardwareProfile", + type: { + name: "Composite", + className: "VirtualMachineScaleSetHardwareProfile" + } } } } }; -export const VirtualMachineImageFeature: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetOSProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineImageFeature", + className: "VirtualMachineScaleSetOSProfile", modelProperties: { - name: { - serializedName: "name", + computerNamePrefix: { + serializedName: "computerNamePrefix", type: { name: "String" } }, - value: { - serializedName: "value", + adminUsername: { + serializedName: "adminUsername", type: { name: "String" } - } - } - } -}; - -export const ExtendedLocation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExtendedLocation", - modelProperties: { - name: { - serializedName: "name", + }, + adminPassword: { + serializedName: "adminPassword", type: { name: "String" } }, - type: { - serializedName: "type", + customData: { + serializedName: "customData", type: { name: "String" } + }, + windowsConfiguration: { + serializedName: "windowsConfiguration", + type: { + name: "Composite", + className: "WindowsConfiguration" + } + }, + linuxConfiguration: { + serializedName: "linuxConfiguration", + type: { + name: "Composite", + className: "LinuxConfiguration" + } + }, + secrets: { + serializedName: "secrets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VaultSecretGroup" + } + } + } + }, + allowExtensionOperations: { + serializedName: "allowExtensionOperations", + type: { + name: "Boolean" + } } } } }; -export const ListUsagesResult: coreClient.CompositeMapper = { +export const WindowsConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListUsagesResult", + className: "WindowsConfiguration", modelProperties: { - value: { - serializedName: "value", - required: true, + provisionVMAgent: { + serializedName: "provisionVMAgent", + type: { + name: "Boolean" + } + }, + enableAutomaticUpdates: { + serializedName: "enableAutomaticUpdates", + type: { + name: "Boolean" + } + }, + timeZone: { + serializedName: "timeZone", + type: { + name: "String" + } + }, + additionalUnattendContent: { + serializedName: "additionalUnattendContent", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Usage" + className: "AdditionalUnattendContent" } } } }, - nextLink: { - serializedName: "nextLink", + patchSettings: { + serializedName: "patchSettings", type: { - name: "String" + name: "Composite", + className: "PatchSettings" + } + }, + winRM: { + serializedName: "winRM", + type: { + name: "Composite", + className: "WinRMConfiguration" } } } } }; -export const Usage: coreClient.CompositeMapper = { +export const AdditionalUnattendContent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Usage", + className: "AdditionalUnattendContent", modelProperties: { - unit: { - defaultValue: "Count", + passName: { + defaultValue: "OobeSystem", isConstant: true, - serializedName: "unit", + serializedName: "passName", type: { name: "String" } }, - currentValue: { - serializedName: "currentValue", - required: true, + componentName: { + defaultValue: "Microsoft-Windows-Shell-Setup", + isConstant: true, + serializedName: "componentName", type: { - name: "Number" + name: "String" } }, - limit: { - serializedName: "limit", - required: true, + settingName: { + serializedName: "settingName", type: { - name: "Number" + name: "Enum", + allowedValues: ["AutoLogon", "FirstLogonCommands"] } }, - name: { - serializedName: "name", + content: { + serializedName: "content", type: { - name: "Composite", - className: "UsageName" + name: "String" } } } } }; -export const UsageName: coreClient.CompositeMapper = { +export const PatchSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsageName", + className: "PatchSettings", modelProperties: { - value: { - serializedName: "value", + patchMode: { + serializedName: "patchMode", type: { name: "String" } }, - localizedValue: { - serializedName: "localizedValue", + enableHotpatching: { + serializedName: "enableHotpatching", + type: { + name: "Boolean" + } + }, + assessmentMode: { + serializedName: "assessmentMode", type: { name: "String" } @@ -978,59 +860,118 @@ export const UsageName: coreClient.CompositeMapper = { } }; -export const VirtualMachineListResult: coreClient.CompositeMapper = { +export const WinRMConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineListResult", + className: "WinRMConfiguration", modelProperties: { - value: { - serializedName: "value", - required: true, + listeners: { + serializedName: "listeners", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachine" + className: "WinRMListener" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const Plan: coreClient.CompositeMapper = { +export const WinRMListener: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Plan", + className: "WinRMListener", modelProperties: { - name: { - serializedName: "name", + protocol: { + serializedName: "protocol", type: { - name: "String" + name: "Enum", + allowedValues: ["Http", "Https"] } }, - publisher: { - serializedName: "publisher", + certificateUrl: { + serializedName: "certificateUrl", type: { name: "String" } + } + } + } +}; + +export const LinuxConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LinuxConfiguration", + modelProperties: { + disablePasswordAuthentication: { + serializedName: "disablePasswordAuthentication", + type: { + name: "Boolean" + } }, - product: { - serializedName: "product", + ssh: { + serializedName: "ssh", + type: { + name: "Composite", + className: "SshConfiguration" + } + }, + provisionVMAgent: { + serializedName: "provisionVMAgent", + type: { + name: "Boolean" + } + }, + patchSettings: { + serializedName: "patchSettings", + type: { + name: "Composite", + className: "LinuxPatchSettings" + } + } + } + } +}; + +export const SshConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SshConfiguration", + modelProperties: { + publicKeys: { + serializedName: "publicKeys", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SshPublicKey" + } + } + } + } + } + } +}; + +export const SshPublicKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SshPublicKey", + modelProperties: { + path: { + serializedName: "path", type: { name: "String" } }, - promotionCode: { - serializedName: "promotionCode", + keyData: { + serializedName: "keyData", type: { name: "String" } @@ -1039,53 +980,95 @@ export const Plan: coreClient.CompositeMapper = { } }; -export const HardwareProfile: coreClient.CompositeMapper = { +export const LinuxPatchSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HardwareProfile", + className: "LinuxPatchSettings", modelProperties: { - vmSize: { - serializedName: "vmSize", + patchMode: { + serializedName: "patchMode", type: { name: "String" } }, - vmSizeProperties: { - serializedName: "vmSizeProperties", + assessmentMode: { + serializedName: "assessmentMode", + type: { + name: "String" + } + } + } + } +}; + +export const VaultSecretGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VaultSecretGroup", + modelProperties: { + sourceVault: { + serializedName: "sourceVault", type: { name: "Composite", - className: "VMSizeProperties" + className: "SubResource" + } + }, + vaultCertificates: { + serializedName: "vaultCertificates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VaultCertificate" + } + } } } } } }; -export const VMSizeProperties: coreClient.CompositeMapper = { +export const SubResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VMSizeProperties", + className: "SubResource", modelProperties: { - vCPUsAvailable: { - serializedName: "vCPUsAvailable", + id: { + serializedName: "id", type: { - name: "Number" + name: "String" + } + } + } + } +}; + +export const VaultCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VaultCertificate", + modelProperties: { + certificateUrl: { + serializedName: "certificateUrl", + type: { + name: "String" } }, - vCPUsPerCore: { - serializedName: "vCPUsPerCore", + certificateStore: { + serializedName: "certificateStore", type: { - name: "Number" + name: "String" } } } } }; -export const StorageProfile: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetStorageProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageProfile", + className: "VirtualMachineScaleSetStorageProfile", modelProperties: { imageReference: { serializedName: "imageReference", @@ -1098,7 +1081,7 @@ export const StorageProfile: coreClient.CompositeMapper = { serializedName: "osDisk", type: { name: "Composite", - className: "OSDisk" + className: "VirtualMachineScaleSetOSDisk" } }, dataDisks: { @@ -1108,7 +1091,7 @@ export const StorageProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDisk" + className: "VirtualMachineScaleSetDataDisk" } } } @@ -1117,45 +1100,17 @@ export const StorageProfile: coreClient.CompositeMapper = { } }; -export const OSDisk: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetOSDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OSDisk", + className: "VirtualMachineScaleSetOSDisk", modelProperties: { - osType: { - serializedName: "osType", - type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] - } - }, - encryptionSettings: { - serializedName: "encryptionSettings", - type: { - name: "Composite", - className: "DiskEncryptionSettings" - } - }, name: { serializedName: "name", type: { name: "String" } }, - vhd: { - serializedName: "vhd", - type: { - name: "Composite", - className: "VirtualHardDisk" - } - }, - image: { - serializedName: "image", - type: { - name: "Composite", - className: "VirtualHardDisk" - } - }, caching: { serializedName: "caching", type: { @@ -1169,13 +1124,6 @@ export const OSDisk: coreClient.CompositeMapper = { name: "Boolean" } }, - diffDiskSettings: { - serializedName: "diffDiskSettings", - type: { - name: "Composite", - className: "DiffDiskSettings" - } - }, createOption: { serializedName: "createOption", required: true, @@ -1183,99 +1131,71 @@ export const OSDisk: coreClient.CompositeMapper = { name: "String" } }, + diffDiskSettings: { + serializedName: "diffDiskSettings", + type: { + name: "Composite", + className: "DiffDiskSettings" + } + }, diskSizeGB: { serializedName: "diskSizeGB", type: { name: "Number" } }, - managedDisk: { - serializedName: "managedDisk", + osType: { + serializedName: "osType", type: { - name: "Composite", - className: "ManagedDiskParameters" + name: "Enum", + allowedValues: ["Windows", "Linux"] } }, - deleteOption: { - serializedName: "deleteOption", - type: { - name: "String" - } - } - } - } -}; - -export const DiskEncryptionSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiskEncryptionSettings", - modelProperties: { - diskEncryptionKey: { - serializedName: "diskEncryptionKey", + image: { + serializedName: "image", type: { name: "Composite", - className: "KeyVaultSecretReference" + className: "VirtualHardDisk" } }, - keyEncryptionKey: { - serializedName: "keyEncryptionKey", + vhdContainers: { + serializedName: "vhdContainers", type: { - name: "Composite", - className: "KeyVaultKeyReference" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - enabled: { - serializedName: "enabled", + managedDisk: { + serializedName: "managedDisk", type: { - name: "Boolean" + name: "Composite", + className: "VirtualMachineScaleSetManagedDiskParameters" } } } } }; -export const KeyVaultSecretReference: coreClient.CompositeMapper = { +export const DiffDiskSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyVaultSecretReference", + className: "DiffDiskSettings", modelProperties: { - secretUrl: { - serializedName: "secretUrl", - required: true, + option: { + serializedName: "option", type: { name: "String" } }, - sourceVault: { - serializedName: "sourceVault", - type: { - name: "Composite", - className: "SubResource" - } - } - } - } -}; - -export const KeyVaultKeyReference: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "KeyVaultKeyReference", - modelProperties: { - keyUrl: { - serializedName: "keyUrl", - required: true, + placement: { + serializedName: "placement", type: { name: "String" } - }, - sourceVault: { - serializedName: "sourceVault", - type: { - name: "Composite", - className: "SubResource" - } } } } @@ -1296,21 +1216,29 @@ export const VirtualHardDisk: coreClient.CompositeMapper = { } }; -export const DiffDiskSettings: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetManagedDiskParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiffDiskSettings", + className: "VirtualMachineScaleSetManagedDiskParameters", modelProperties: { - option: { - serializedName: "option", + storageAccountType: { + serializedName: "storageAccountType", type: { name: "String" } }, - placement: { - serializedName: "placement", + diskEncryptionSet: { + serializedName: "diskEncryptionSet", type: { - name: "String" + name: "Composite", + className: "DiskEncryptionSetParameters" + } + }, + securityProfile: { + serializedName: "securityProfile", + type: { + name: "Composite", + className: "VMDiskSecurityProfile" } } } @@ -1339,36 +1267,22 @@ export const VMDiskSecurityProfile: coreClient.CompositeMapper = { } }; -export const DataDisk: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetDataDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataDisk", + className: "VirtualMachineScaleSetDataDisk", modelProperties: { - lun: { - serializedName: "lun", - required: true, - type: { - name: "Number" - } - }, name: { serializedName: "name", type: { name: "String" } }, - vhd: { - serializedName: "vhd", - type: { - name: "Composite", - className: "VirtualHardDisk" - } - }, - image: { - serializedName: "image", + lun: { + serializedName: "lun", + required: true, type: { - name: "Composite", - className: "VirtualHardDisk" + name: "Number" } }, caching: { @@ -1401,37 +1315,51 @@ export const DataDisk: coreClient.CompositeMapper = { serializedName: "managedDisk", type: { name: "Composite", - className: "ManagedDiskParameters" - } - }, - toBeDetached: { - serializedName: "toBeDetached", - type: { - name: "Boolean" + className: "VirtualMachineScaleSetManagedDiskParameters" } }, diskIopsReadWrite: { serializedName: "diskIOPSReadWrite", - readOnly: true, type: { name: "Number" } }, diskMBpsReadWrite: { serializedName: "diskMBpsReadWrite", - readOnly: true, type: { name: "Number" } + } + } + } +}; + +export const VirtualMachineScaleSetNetworkProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkProfile", + modelProperties: { + healthProbe: { + serializedName: "healthProbe", + type: { + name: "Composite", + className: "ApiEntityReference" + } }, - detachOption: { - serializedName: "detachOption", + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfiguration" + } + } } }, - deleteOption: { - serializedName: "deleteOption", + networkApiVersion: { + serializedName: "networkApiVersion", type: { name: "String" } @@ -1440,181 +1368,159 @@ export const DataDisk: coreClient.CompositeMapper = { } }; -export const AdditionalCapabilities: coreClient.CompositeMapper = { +export const ApiEntityReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdditionalCapabilities", + className: "ApiEntityReference", modelProperties: { - ultraSSDEnabled: { - serializedName: "ultraSSDEnabled", - type: { - name: "Boolean" - } - }, - hibernationEnabled: { - serializedName: "hibernationEnabled", + id: { + serializedName: "id", type: { - name: "Boolean" + name: "String" } } } } }; -export const OSProfile: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetNetworkConfigurationDnsSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OSProfile", + className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings", modelProperties: { - computerName: { - serializedName: "computerName", - type: { - name: "String" - } - }, - adminUsername: { - serializedName: "adminUsername", + dnsServers: { + serializedName: "dnsServers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - adminPassword: { - serializedName: "adminPassword", + } + } + } +}; + +export const VirtualMachineScaleSetPublicIPAddressConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetPublicIPAddressConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - customData: { - serializedName: "customData", + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "PublicIPAddressSku" } }, - windowsConfiguration: { - serializedName: "windowsConfiguration", + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", type: { - name: "Composite", - className: "WindowsConfiguration" + name: "Number" } }, - linuxConfiguration: { - serializedName: "linuxConfiguration", + dnsSettings: { + serializedName: "properties.dnsSettings", type: { name: "Composite", - className: "LinuxConfiguration" + className: + "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" } }, - secrets: { - serializedName: "secrets", + ipTags: { + serializedName: "properties.ipTags", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VaultSecretGroup" + className: "VirtualMachineScaleSetIpTag" } } } }, - allowExtensionOperations: { - serializedName: "allowExtensionOperations", + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", type: { - name: "Boolean" + name: "Composite", + className: "SubResource" } }, - requireGuestProvisionSignal: { - serializedName: "requireGuestProvisionSignal", + publicIPAddressVersion: { + serializedName: "properties.publicIPAddressVersion", type: { - name: "Boolean" + name: "String" + } + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String" } } } } }; -export const WindowsConfiguration: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WindowsConfiguration", + className: "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", modelProperties: { - provisionVMAgent: { - serializedName: "provisionVMAgent", + domainNameLabel: { + serializedName: "domainNameLabel", + required: true, type: { - name: "Boolean" + name: "String" } - }, - enableAutomaticUpdates: { - serializedName: "enableAutomaticUpdates", + } + } + } +}; + +export const VirtualMachineScaleSetIpTag: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetIpTag", + modelProperties: { + ipTagType: { + serializedName: "ipTagType", type: { - name: "Boolean" + name: "String" } }, - timeZone: { - serializedName: "timeZone", + tag: { + serializedName: "tag", type: { name: "String" } - }, - additionalUnattendContent: { - serializedName: "additionalUnattendContent", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdditionalUnattendContent" - } - } - } - }, - patchSettings: { - serializedName: "patchSettings", - type: { - name: "Composite", - className: "PatchSettings" - } - }, - winRM: { - serializedName: "winRM", - type: { - name: "Composite", - className: "WinRMConfiguration" - } } } } }; -export const AdditionalUnattendContent: coreClient.CompositeMapper = { +export const PublicIPAddressSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdditionalUnattendContent", + className: "PublicIPAddressSku", modelProperties: { - passName: { - defaultValue: "OobeSystem", - isConstant: true, - serializedName: "passName", - type: { - name: "String" - } - }, - componentName: { - defaultValue: "Microsoft-Windows-Shell-Setup", - isConstant: true, - serializedName: "componentName", + name: { + serializedName: "name", type: { name: "String" } }, - settingName: { - serializedName: "settingName", - type: { - name: "Enum", - allowedValues: ["AutoLogon", "FirstLogonCommands"] - } - }, - content: { - serializedName: "content", + tier: { + serializedName: "tier", type: { name: "String" } @@ -1623,25 +1529,26 @@ export const AdditionalUnattendContent: coreClient.CompositeMapper = { } }; -export const PatchSettings: coreClient.CompositeMapper = { +export const SecurityProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PatchSettings", + className: "SecurityProfile", modelProperties: { - patchMode: { - serializedName: "patchMode", + uefiSettings: { + serializedName: "uefiSettings", type: { - name: "String" + name: "Composite", + className: "UefiSettings" } }, - enableHotpatching: { - serializedName: "enableHotpatching", + encryptionAtHost: { + serializedName: "encryptionAtHost", type: { name: "Boolean" } }, - assessmentMode: { - serializedName: "assessmentMode", + securityType: { + serializedName: "securityType", type: { name: "String" } @@ -1650,118 +1557,99 @@ export const PatchSettings: coreClient.CompositeMapper = { } }; -export const WinRMConfiguration: coreClient.CompositeMapper = { +export const UefiSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WinRMConfiguration", + className: "UefiSettings", modelProperties: { - listeners: { - serializedName: "listeners", + secureBootEnabled: { + serializedName: "secureBootEnabled", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WinRMListener" - } - } + name: "Boolean" + } + }, + vTpmEnabled: { + serializedName: "vTpmEnabled", + type: { + name: "Boolean" } } } } }; -export const WinRMListener: coreClient.CompositeMapper = { +export const DiagnosticsProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WinRMListener", + className: "DiagnosticsProfile", modelProperties: { - protocol: { - serializedName: "protocol", - type: { - name: "Enum", - allowedValues: ["Http", "Https"] - } - }, - certificateUrl: { - serializedName: "certificateUrl", + bootDiagnostics: { + serializedName: "bootDiagnostics", type: { - name: "String" + name: "Composite", + className: "BootDiagnostics" } } } } }; -export const LinuxConfiguration: coreClient.CompositeMapper = { +export const BootDiagnostics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LinuxConfiguration", + className: "BootDiagnostics", modelProperties: { - disablePasswordAuthentication: { - serializedName: "disablePasswordAuthentication", - type: { - name: "Boolean" - } - }, - ssh: { - serializedName: "ssh", - type: { - name: "Composite", - className: "SshConfiguration" - } - }, - provisionVMAgent: { - serializedName: "provisionVMAgent", + enabled: { + serializedName: "enabled", type: { name: "Boolean" } }, - patchSettings: { - serializedName: "patchSettings", + storageUri: { + serializedName: "storageUri", type: { - name: "Composite", - className: "LinuxPatchSettings" + name: "String" } } } } }; -export const SshConfiguration: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetExtensionProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SshConfiguration", + className: "VirtualMachineScaleSetExtensionProfile", modelProperties: { - publicKeys: { - serializedName: "publicKeys", + extensions: { + serializedName: "extensions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SshPublicKey" + className: "VirtualMachineScaleSetExtension" } } } + }, + extensionsTimeBudget: { + serializedName: "extensionsTimeBudget", + type: { + name: "String" + } } } } }; -export const SshPublicKey: coreClient.CompositeMapper = { +export const SubResourceReadOnly: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SshPublicKey", + className: "SubResourceReadOnly", modelProperties: { - path: { - serializedName: "path", - type: { - name: "String" - } - }, - keyData: { - serializedName: "keyData", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } @@ -1770,107 +1658,87 @@ export const SshPublicKey: coreClient.CompositeMapper = { } }; -export const LinuxPatchSettings: coreClient.CompositeMapper = { +export const BillingProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LinuxPatchSettings", + className: "BillingProfile", modelProperties: { - patchMode: { - serializedName: "patchMode", - type: { - name: "String" - } - }, - assessmentMode: { - serializedName: "assessmentMode", + maxPrice: { + serializedName: "maxPrice", type: { - name: "String" + name: "Number" } } } } }; -export const VaultSecretGroup: coreClient.CompositeMapper = { +export const ScheduledEventsProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VaultSecretGroup", + className: "ScheduledEventsProfile", modelProperties: { - sourceVault: { - serializedName: "sourceVault", + terminateNotificationProfile: { + serializedName: "terminateNotificationProfile", type: { name: "Composite", - className: "SubResource" - } - }, - vaultCertificates: { - serializedName: "vaultCertificates", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VaultCertificate" - } - } + className: "TerminateNotificationProfile" } } } } }; -export const VaultCertificate: coreClient.CompositeMapper = { +export const TerminateNotificationProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VaultCertificate", + className: "TerminateNotificationProfile", modelProperties: { - certificateUrl: { - serializedName: "certificateUrl", + notBeforeTimeout: { + serializedName: "notBeforeTimeout", type: { name: "String" } }, - certificateStore: { - serializedName: "certificateStore", + enable: { + serializedName: "enable", type: { - name: "String" + name: "Boolean" } } } } }; -export const NetworkProfile: coreClient.CompositeMapper = { +export const CapacityReservationProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkProfile", + className: "CapacityReservationProfile", modelProperties: { - networkInterfaces: { - serializedName: "networkInterfaces", + capacityReservationGroup: { + serializedName: "capacityReservationGroup", + type: { + name: "Composite", + className: "SubResource" + } + } + } + } +}; + +export const ApplicationProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationProfile", + modelProperties: { + galleryApplications: { + serializedName: "galleryApplications", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NetworkInterfaceReference" - } - } - } - }, - networkApiVersion: { - serializedName: "networkApiVersion", - type: { - name: "String" - } - }, - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceConfiguration" + className: "VMGalleryApplication" } } } @@ -1879,92 +1747,117 @@ 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", + configurationReference: { + serializedName: "configurationReference", type: { - name: "Boolean" + name: "String" } }, - enableFpga: { - serializedName: "properties.enableFpga", + treatFailureAsDeploymentFailure: { + serializedName: "treatFailureAsDeploymentFailure", type: { name: "Boolean" } }, - enableIPForwarding: { - serializedName: "properties.enableIPForwarding", + enableAutomaticUpgrade: { + serializedName: "enableAutomaticUpgrade", type: { name: "Boolean" } - }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", + } + } + } +}; + +export const VirtualMachineScaleSetHardwareProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetHardwareProfile", + modelProperties: { + vmSizeProperties: { + serializedName: "vmSizeProperties", type: { name: "Composite", - className: "SubResource" + className: "VMSizeProperties" } - }, - dnsSettings: { - serializedName: "properties.dnsSettings", + } + } + } +}; + +export const VMSizeProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VMSizeProperties", + modelProperties: { + vCPUsAvailable: { + serializedName: "vCPUsAvailable", type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration" + name: "Number" } }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + vCPUsPerCore: { + serializedName: "vCPUsPerCore", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceIPConfiguration" - } - } + name: "Number" + } + } + } + } +}; + +export const AdditionalCapabilities: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AdditionalCapabilities", + modelProperties: { + ultraSSDEnabled: { + serializedName: "ultraSSDEnabled", + type: { + 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", - type: { - name: "Composite", - className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration" + } + } + } +}; + +export const Resource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + 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,227 +2111,289 @@ export const SecurityProfile: coreClient.CompositeMapper = { } }; -export const UefiSettings: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdateOSProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UefiSettings", + className: "VirtualMachineScaleSetUpdateOSProfile", modelProperties: { - secureBootEnabled: { - serializedName: "secureBootEnabled", + customData: { + serializedName: "customData", type: { - name: "Boolean" + name: "String" } }, - vTpmEnabled: { - serializedName: "vTpmEnabled", + windowsConfiguration: { + serializedName: "windowsConfiguration", type: { - name: "Boolean" + name: "Composite", + className: "WindowsConfiguration" } - } - } - } -}; - -export const DiagnosticsProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiagnosticsProfile", - modelProperties: { - bootDiagnostics: { - serializedName: "bootDiagnostics", + }, + linuxConfiguration: { + serializedName: "linuxConfiguration", type: { name: "Composite", - className: "BootDiagnostics" + className: "LinuxConfiguration" + } + }, + secrets: { + serializedName: "secrets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VaultSecretGroup" + } + } } } } } }; -export const BootDiagnostics: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdateStorageProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BootDiagnostics", + className: "VirtualMachineScaleSetUpdateStorageProfile", modelProperties: { - enabled: { - serializedName: "enabled", + imageReference: { + serializedName: "imageReference", type: { - name: "Boolean" + name: "Composite", + className: "ImageReference" } }, - storageUri: { - serializedName: "storageUri", + osDisk: { + serializedName: "osDisk", type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetUpdateOSDisk" } - } - } - } -}; - -export const BillingProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BillingProfile", - modelProperties: { - maxPrice: { - serializedName: "maxPrice", + }, + dataDisks: { + serializedName: "dataDisks", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetDataDisk" + } + } } } } } }; -export const VirtualMachineInstanceView: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdateOSDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineInstanceView", + className: "VirtualMachineScaleSetUpdateOSDisk", modelProperties: { - platformUpdateDomain: { - serializedName: "platformUpdateDomain", + caching: { + serializedName: "caching", type: { - name: "Number" + name: "Enum", + allowedValues: ["None", "ReadOnly", "ReadWrite"] } }, - platformFaultDomain: { - serializedName: "platformFaultDomain", + writeAcceleratorEnabled: { + serializedName: "writeAcceleratorEnabled", type: { - name: "Number" + name: "Boolean" } }, - computerName: { - serializedName: "computerName", - type: { - name: "String" - } - }, - osName: { - serializedName: "osName", - type: { - name: "String" - } - }, - osVersion: { - serializedName: "osVersion", + diskSizeGB: { + serializedName: "diskSizeGB", type: { - name: "String" + name: "Number" } }, - hyperVGeneration: { - serializedName: "hyperVGeneration", + image: { + serializedName: "image", type: { - name: "String" + name: "Composite", + className: "VirtualHardDisk" } }, - rdpThumbPrint: { - serializedName: "rdpThumbPrint", + vhdContainers: { + serializedName: "vhdContainers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - vmAgent: { - serializedName: "vmAgent", + managedDisk: { + serializedName: "managedDisk", type: { name: "Composite", - className: "VirtualMachineAgentInstanceView" + className: "VirtualMachineScaleSetManagedDiskParameters" } - }, - maintenanceRedeployStatus: { - serializedName: "maintenanceRedeployStatus", + } + } + } +}; + +export const VirtualMachineScaleSetUpdateNetworkProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateNetworkProfile", + modelProperties: { + healthProbe: { + serializedName: "healthProbe", type: { name: "Composite", - className: "MaintenanceRedeployStatus" + className: "ApiEntityReference" } }, - disks: { - serializedName: "disks", + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DiskInstanceView" + className: "VirtualMachineScaleSetUpdateNetworkConfiguration" } } } }, - extensions: { - serializedName: "extensions", + networkApiVersion: { + serializedName: "networkApiVersion", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineExtensionInstanceView" - } - } + name: "String" + } + } + } + } +}; + +export const VirtualMachineScaleSetUpdatePublicIPAddressConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" } }, - vmHealth: { - serializedName: "vmHealth", + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number" + } + }, + dnsSettings: { + serializedName: "properties.dnsSettings", type: { name: "Composite", - className: "VirtualMachineHealthStatus" + className: + "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" } }, - bootDiagnostics: { - serializedName: "bootDiagnostics", + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", type: { name: "Composite", - className: "BootDiagnosticsInstanceView" + className: "SubResource" } }, - assignedHost: { - serializedName: "assignedHost", - readOnly: true, + deleteOption: { + serializedName: "properties.deleteOption", type: { name: "String" } - }, - statuses: { - serializedName: "statuses", + } + } + } +}; + +export const UpdateResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateResource", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const VirtualMachineScaleSetVMInstanceIDs: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMInstanceIDs", + modelProperties: { + instanceIds: { + serializedName: "instanceIds", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "InstanceViewStatus" + name: "String" } } } - }, - patchStatus: { - serializedName: "patchStatus", + } + } + } +}; + +export const VirtualMachineScaleSetVMInstanceRequiredIDs: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMInstanceRequiredIDs", + modelProperties: { + instanceIds: { + serializedName: "instanceIds", + required: true, type: { - name: "Composite", - className: "VirtualMachinePatchStatus" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineAgentInstanceView", + className: "VirtualMachineScaleSetInstanceView", modelProperties: { - vmAgentVersion: { - serializedName: "vmAgentVersion", + virtualMachine: { + serializedName: "virtualMachine", type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetInstanceViewStatusesSummary" } }, - extensionHandlers: { - serializedName: "extensionHandlers", + extensions: { + serializedName: "extensions", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineExtensionHandlerInstanceView" + className: "VirtualMachineScaleSetVMExtensionsSummary" } } } @@ -2451,359 +2409,512 @@ export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { } } } + }, + orchestrationServices: { + serializedName: "orchestrationServices", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OrchestrationServiceSummary" + } + } + } } } } }; -export const VirtualMachineExtensionHandlerInstanceView: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetInstanceViewStatusesSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineExtensionHandlerInstanceView", + className: "VirtualMachineScaleSetInstanceViewStatusesSummary", modelProperties: { - type: { - serializedName: "type", + statusesSummary: { + serializedName: "statusesSummary", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineStatusCodeCount" + } + } } - }, - typeHandlerVersion: { - serializedName: "typeHandlerVersion", + } + } + } +}; + +export const VirtualMachineStatusCodeCount: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineStatusCodeCount", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, type: { name: "String" } }, - status: { - serializedName: "status", + count: { + serializedName: "count", + readOnly: true, type: { - name: "Composite", - className: "InstanceViewStatus" + name: "Number" } } } } }; -export const MaintenanceRedeployStatus: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVMExtensionsSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceRedeployStatus", + className: "VirtualMachineScaleSetVMExtensionsSummary", modelProperties: { - isCustomerInitiatedMaintenanceAllowed: { - serializedName: "isCustomerInitiatedMaintenanceAllowed", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - preMaintenanceWindowStartTime: { - serializedName: "preMaintenanceWindowStartTime", + statusesSummary: { + serializedName: "statusesSummary", + readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineStatusCodeCount" + } + } } - }, - preMaintenanceWindowEndTime: { - serializedName: "preMaintenanceWindowEndTime", + } + } + } +}; + +export const InstanceViewStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceViewStatus", + modelProperties: { + code: { + serializedName: "code", type: { - name: "DateTime" + name: "String" } }, - maintenanceWindowStartTime: { - serializedName: "maintenanceWindowStartTime", + level: { + serializedName: "level", type: { - name: "DateTime" + name: "Enum", + allowedValues: ["Info", "Warning", "Error"] } }, - maintenanceWindowEndTime: { - serializedName: "maintenanceWindowEndTime", + displayStatus: { + serializedName: "displayStatus", type: { - name: "DateTime" + name: "String" } }, - lastOperationResultCode: { - serializedName: "lastOperationResultCode", + message: { + serializedName: "message", type: { - name: "Enum", - allowedValues: [ - "None", - "RetryLater", - "MaintenanceAborted", - "MaintenanceCompleted" - ] + name: "String" } }, - lastOperationMessage: { - serializedName: "lastOperationMessage", + time: { + serializedName: "time", type: { - name: "String" + name: "DateTime" } } } } }; -export const DiskInstanceView: coreClient.CompositeMapper = { +export const OrchestrationServiceSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskInstanceView", + className: "OrchestrationServiceSummary", modelProperties: { - name: { - serializedName: "name", + serviceName: { + serializedName: "serviceName", + readOnly: true, type: { name: "String" } }, - encryptionSettings: { - serializedName: "encryptionSettings", + serviceState: { + serializedName: "serviceState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachineScaleSetExtensionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtensionListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DiskEncryptionSettings" + className: "VirtualMachineScaleSetExtension" } } } }, - statuses: { - serializedName: "statuses", + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachineScaleSetListWithLinkResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetListWithLinkResult", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "InstanceViewStatus" + className: "VirtualMachineScaleSet" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const VirtualMachineHealthStatus: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetListSkusResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineHealthStatus", + className: "VirtualMachineScaleSetListSkusResult", modelProperties: { - status: { - serializedName: "status", + value: { + serializedName: "value", + required: true, type: { - name: "Composite", - className: "InstanceViewStatus" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetSku" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" } } } } }; -export const BootDiagnosticsInstanceView: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BootDiagnosticsInstanceView", + className: "VirtualMachineScaleSetSku", modelProperties: { - consoleScreenshotBlobUri: { - serializedName: "consoleScreenshotBlobUri", + resourceType: { + serializedName: "resourceType", readOnly: true, type: { name: "String" } }, - serialConsoleLogBlobUri: { - serializedName: "serialConsoleLogBlobUri", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - status: { - serializedName: "status", + capacity: { + serializedName: "capacity", type: { name: "Composite", - className: "InstanceViewStatus" + className: "VirtualMachineScaleSetSkuCapacity" } } } } }; -export const VirtualMachinePatchStatus: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetSkuCapacity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachinePatchStatus", + className: "VirtualMachineScaleSetSkuCapacity", modelProperties: { - availablePatchSummary: { - serializedName: "availablePatchSummary", + minimum: { + serializedName: "minimum", + readOnly: true, type: { - name: "Composite", - className: "AvailablePatchSummary" + name: "Number" } }, - lastPatchInstallationSummary: { - serializedName: "lastPatchInstallationSummary", + maximum: { + serializedName: "maximum", + readOnly: true, type: { - name: "Composite", - className: "LastPatchInstallationSummary" + name: "Number" } }, - configurationStatuses: { - serializedName: "configurationStatuses", + defaultCapacity: { + serializedName: "defaultCapacity", + readOnly: true, + type: { + name: "Number" + } + }, + scaleType: { + serializedName: "scaleType", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Automatic", "None"] + } + } + } + } +}; + +export const VirtualMachineScaleSetListOSUpgradeHistory: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetListOSUpgradeHistory", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "InstanceViewStatus" + className: "UpgradeOperationHistoricalStatusInfo" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const AvailablePatchSummary: coreClient.CompositeMapper = { +export const UpgradeOperationHistoricalStatusInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailablePatchSummary", + className: "UpgradeOperationHistoricalStatusInfo", modelProperties: { - status: { - serializedName: "status", - readOnly: true, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "UpgradeOperationHistoricalStatusInfoProperties" } }, - assessmentActivityId: { - serializedName: "assessmentActivityId", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - rebootPending: { - serializedName: "rebootPending", - readOnly: true, - type: { - name: "Boolean" - } - }, - criticalAndSecurityPatchCount: { - serializedName: "criticalAndSecurityPatchCount", + location: { + serializedName: "location", readOnly: true, type: { - name: "Number" + name: "String" } - }, - otherPatchCount: { - serializedName: "otherPatchCount", - readOnly: true, + } + } + } +}; + +export const UpgradeOperationHistoricalStatusInfoProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpgradeOperationHistoricalStatusInfoProperties", + modelProperties: { + runningStatus: { + serializedName: "runningStatus", type: { - name: "Number" + name: "Composite", + className: "UpgradeOperationHistoryStatus" } }, - startTime: { - serializedName: "startTime", - readOnly: true, + progress: { + serializedName: "progress", type: { - name: "DateTime" + name: "Composite", + className: "RollingUpgradeProgressInfo" } }, - lastModifiedTime: { - serializedName: "lastModifiedTime", + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ApiError" + } + }, + startedBy: { + serializedName: "startedBy", readOnly: true, type: { - name: "DateTime" + name: "Enum", + allowedValues: ["Unknown", "User", "Platform"] } }, - error: { - serializedName: "error", + targetImageReference: { + serializedName: "targetImageReference", type: { name: "Composite", - className: "ApiError" + className: "ImageReference" + } + }, + rollbackInfo: { + serializedName: "rollbackInfo", + type: { + name: "Composite", + className: "RollbackStatusInfo" } } } } }; -export const LastPatchInstallationSummary: coreClient.CompositeMapper = { +export const UpgradeOperationHistoryStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LastPatchInstallationSummary", + className: "UpgradeOperationHistoryStatus", modelProperties: { - status: { - serializedName: "status", + code: { + serializedName: "code", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["RollingForward", "Cancelled", "Completed", "Faulted"] } }, - installationActivityId: { - serializedName: "installationActivityId", + startTime: { + serializedName: "startTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - maintenanceWindowExceeded: { - serializedName: "maintenanceWindowExceeded", + endTime: { + serializedName: "endTime", readOnly: true, type: { - name: "Boolean" + name: "DateTime" } - }, - notSelectedPatchCount: { - serializedName: "notSelectedPatchCount", + } + } + } +}; + +export const RollingUpgradeProgressInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RollingUpgradeProgressInfo", + modelProperties: { + successfulInstanceCount: { + serializedName: "successfulInstanceCount", readOnly: true, type: { name: "Number" } }, - excludedPatchCount: { - serializedName: "excludedPatchCount", + failedInstanceCount: { + serializedName: "failedInstanceCount", readOnly: true, type: { name: "Number" } }, - pendingPatchCount: { - serializedName: "pendingPatchCount", + inProgressInstanceCount: { + serializedName: "inProgressInstanceCount", readOnly: true, type: { name: "Number" } }, - installedPatchCount: { - serializedName: "installedPatchCount", + pendingInstanceCount: { + serializedName: "pendingInstanceCount", readOnly: true, type: { name: "Number" } - }, - failedPatchCount: { - serializedName: "failedPatchCount", + } + } + } +}; + +export const RollbackStatusInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RollbackStatusInfo", + modelProperties: { + successfullyRolledbackInstanceCount: { + serializedName: "successfullyRolledbackInstanceCount", readOnly: true, type: { name: "Number" } }, - startTime: { - serializedName: "startTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - lastModifiedTime: { - serializedName: "lastModifiedTime", + failedRolledbackInstanceCount: { + serializedName: "failedRolledbackInstanceCount", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - error: { - serializedName: "error", + rollbackError: { + serializedName: "rollbackError", type: { name: "Composite", className: "ApiError" @@ -2813,106 +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, + 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", - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkProfile" + preMaintenanceWindowEndTime: { + serializedName: "preMaintenanceWindowEndTime", + type: { + 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", + osType: { + serializedName: "osType", type: { - name: "String" + name: "Enum", + allowedValues: ["Windows", "Linux"] } }, - caching: { - serializedName: "caching", + encryptionSettings: { + serializedName: "encryptionSettings", type: { - name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] + name: "Composite", + className: "DiskEncryptionSettings" } }, - writeAcceleratorEnabled: { - serializedName: "writeAcceleratorEnabled", - type: { - name: "Boolean" - } - }, - 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,35 +3868,217 @@ export const VirtualMachineScaleSetPublicIPAddressConfiguration: coreClient.Comp name: "String" } }, - sku: { - serializedName: "sku", + primary: { + serializedName: "properties.primary", type: { - name: "Composite", - className: "PublicIPAddressSku" + name: "Boolean" } }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", + deleteOption: { + serializedName: "properties.deleteOption", type: { - name: "Number" + name: "String" } }, - dnsSettings: { - serializedName: "properties.dnsSettings", + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", type: { - name: "Composite", - className: - "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" + name: "Boolean" } }, - ipTags: { + 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: "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: { serializedName: "properties.ipTags", type: { name: "Sequence", 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,393 +4285,361 @@ 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", + lastPatchInstallationSummary: { + serializedName: "lastPatchInstallationSummary", type: { - name: "String" + name: "Composite", + className: "LastPatchInstallationSummary" + } + }, + configurationStatuses: { + serializedName: "configurationStatuses", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } } } } } }; -export const RestorePointSourceMetadata: coreClient.CompositeMapper = { +export const AvailablePatchSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePointSourceMetadata", + className: "AvailablePatchSummary", modelProperties: { - hardwareProfile: { - serializedName: "hardwareProfile", + status: { + serializedName: "status", + readOnly: true, type: { - name: "Composite", - className: "HardwareProfile" + name: "String" } }, - storageProfile: { - serializedName: "storageProfile", + assessmentActivityId: { + serializedName: "assessmentActivityId", + readOnly: true, type: { - name: "Composite", - className: "RestorePointSourceVMStorageProfile" + name: "String" } }, - osProfile: { - serializedName: "osProfile", + rebootPending: { + serializedName: "rebootPending", + readOnly: true, type: { - name: "Composite", - className: "OSProfile" + name: "Boolean" } }, - diagnosticsProfile: { - serializedName: "diagnosticsProfile", + criticalAndSecurityPatchCount: { + serializedName: "criticalAndSecurityPatchCount", + readOnly: true, type: { - name: "Composite", - className: "DiagnosticsProfile" + name: "Number" } }, - licenseType: { - serializedName: "licenseType", + otherPatchCount: { + serializedName: "otherPatchCount", + readOnly: true, type: { - name: "String" + name: "Number" } }, - vmId: { - serializedName: "vmId", + startTime: { + serializedName: "startTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - securityProfile: { - serializedName: "securityProfile", + lastModifiedTime: { + serializedName: "lastModifiedTime", + readOnly: true, type: { - name: "Composite", - className: "SecurityProfile" + name: "DateTime" } }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const RestorePointSourceVMStorageProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePointSourceVMStorageProfile", - modelProperties: { - osDisk: { - serializedName: "osDisk", + error: { + serializedName: "error", type: { name: "Composite", - className: "RestorePointSourceVmosDisk" - } - }, - dataDisks: { - serializedName: "dataDisks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorePointSourceVMDataDisk" - } - } + className: "ApiError" } } } } }; -export const RestorePointSourceVmosDisk: coreClient.CompositeMapper = { +export const LastPatchInstallationSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePointSourceVmosDisk", + className: "LastPatchInstallationSummary", modelProperties: { - osType: { - serializedName: "osType", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } }, - encryptionSettings: { - serializedName: "encryptionSettings", - type: { - name: "Composite", - className: "DiskEncryptionSettings" - } - }, - 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 RestorePointSourceVMDataDisk: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePointSourceVMDataDisk", - modelProperties: { - lun: { - serializedName: "lun", + pendingPatchCount: { + serializedName: "pendingPatchCount", + readOnly: true, type: { name: "Number" } }, - name: { - serializedName: "name", + installedPatchCount: { + serializedName: "installedPatchCount", + readOnly: true, type: { - name: "String" + name: "Number" } }, - caching: { - serializedName: "caching", + failedPatchCount: { + serializedName: "failedPatchCount", + readOnly: true, type: { - name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] + name: "Number" } }, - diskSizeGB: { - serializedName: "diskSizeGB", + startTime: { + serializedName: "startTime", + readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - managedDisk: { - serializedName: "managedDisk", + lastModifiedTime: { + serializedName: "lastModifiedTime", + readOnly: true, type: { - name: "Composite", - className: "ManagedDiskParameters" + name: "DateTime" } }, - diskRestorePoint: { - serializedName: "diskRestorePoint", + error: { + serializedName: "error", type: { name: "Composite", - className: "ApiEntityReference" + className: "ApiError" } } } } }; -export const RestorePointInstanceView: coreClient.CompositeMapper = { +export const VirtualMachineIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePointInstanceView", + className: "VirtualMachineIdentity", modelProperties: { - diskRestorePoints: { - serializedName: "diskRestorePoints", + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiskRestorePointInstanceView" - } - } + name: "String" } }, - statuses: { - serializedName: "statuses", + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { - name: "Sequence", - element: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ] + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { type: { name: "Composite", - className: "InstanceViewStatus" + className: "UserAssignedIdentitiesValue" } } } @@ -4270,49 +4648,20 @@ export const RestorePointInstanceView: coreClient.CompositeMapper = { } }; -export const DiskRestorePointInstanceView: coreClient.CompositeMapper = { +export const UserAssignedIdentitiesValue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskRestorePointInstanceView", + className: "UserAssignedIdentitiesValue", modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - replicationStatus: { - serializedName: "replicationStatus", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } -}; - -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", + principalId: { + serializedName: "principalId", readOnly: true, type: { name: "String" } }, - type: { - serializedName: "type", + clientId: { + serializedName: "clientId", readOnly: true, type: { name: "String" @@ -4322,168 +4671,28 @@ export const ProxyResource: coreClient.CompositeMapper = { } }; -export const RestorePointCollectionListResult: coreClient.CompositeMapper = { +export const VirtualMachineCaptureParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePointCollectionListResult", + className: "VirtualMachineCaptureParameters", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorePointCollection" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + vhdPrefix: { + serializedName: "vhdPrefix", + required: true, type: { name: "String" } - } - } - } -}; - -export const CapacityReservationGroupInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationGroupInstanceView", - modelProperties: { - capacityReservations: { - serializedName: "capacityReservations", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CapacityReservationInstanceViewWithName" - } - } - } - } - } - } -}; - -export const CapacityReservationInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationInstanceView", - modelProperties: { - utilizationInfo: { - serializedName: "utilizationInfo", - type: { - name: "Composite", - className: "CapacityReservationUtilization" - } }, - statuses: { - serializedName: "statuses", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } -}; - -export const CapacityReservationUtilization: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationUtilization", - modelProperties: { - virtualMachinesAllocated: { - serializedName: "virtualMachinesAllocated", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } - } - } - } - } -}; - -export const CapacityReservationGroupListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationGroupListResult", - modelProperties: { - value: { - serializedName: "value", + destinationContainerName: { + serializedName: "destinationContainerName", required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CapacityReservationGroup" - } - } - } - }, - nextLink: { - serializedName: "nextLink", 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", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineReimageParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineReimageParameters", - modelProperties: { - tempDisk: { - serializedName: "tempDisk", + overwriteVhds: { + serializedName: "overwriteVhds", + required: true, type: { name: "Boolean" } @@ -4492,29 +4701,6 @@ export const VirtualMachineReimageParameters: coreClient.CompositeMapper = { } }; -export const RetrieveBootDiagnosticsDataResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RetrieveBootDiagnosticsDataResult", - modelProperties: { - consoleScreenshotBlobUri: { - serializedName: "consoleScreenshotBlobUri", - readOnly: true, - type: { - name: "String" - } - }, - serialConsoleLogBlobUri: { - serializedName: "serialConsoleLogBlobUri", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const VirtualMachineAssessPatchesResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -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", + publisher: { + serializedName: "publisher", + required: true, type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateStorageProfile" + name: "String" } }, - networkProfile: { - serializedName: "networkProfile", + name: { + serializedName: "name", + required: true, type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkProfile" + name: "String" } }, - securityProfile: { - serializedName: "securityProfile", + product: { + serializedName: "product", + required: true, type: { - name: "Composite", - className: "SecurityProfile" - } - }, - diagnosticsProfile: { - serializedName: "diagnosticsProfile", - type: { - name: "Composite", - className: "DiagnosticsProfile" - } - }, - extensionProfile: { - serializedName: "extensionProfile", - type: { - name: "Composite", - className: "VirtualMachineScaleSetExtensionProfile" - } - }, - licenseType: { - serializedName: "licenseType", - 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" + name: "String" } } } } }; -export const VirtualMachineScaleSetUpdateOSProfile: coreClient.CompositeMapper = { +export const OSDiskImage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateOSProfile", + className: "OSDiskImage", modelProperties: { - 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", + operatingSystem: { + serializedName: "operatingSystem", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VaultSecretGroup" - } - } + name: "Enum", + allowedValues: ["Windows", "Linux"] } } } } }; -export const VirtualMachineScaleSetUpdateStorageProfile: coreClient.CompositeMapper = { +export const DataDiskImage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateStorageProfile", + className: "DataDiskImage", modelProperties: { - imageReference: { - serializedName: "imageReference", - type: { - name: "Composite", - className: "ImageReference" - } - }, - osDisk: { - serializedName: "osDisk", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateOSDisk" - } - }, - dataDisks: { - serializedName: "dataDisks", + lun: { + serializedName: "lun", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetDataDisk" - } - } + name: "Number" } } } } }; -export const VirtualMachineScaleSetUpdateOSDisk: coreClient.CompositeMapper = { +export const AutomaticOSUpgradeProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateOSDisk", + className: "AutomaticOSUpgradeProperties", modelProperties: { - caching: { - serializedName: "caching", - type: { - name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } - }, - writeAcceleratorEnabled: { - serializedName: "writeAcceleratorEnabled", + automaticOSUpgradeSupported: { + serializedName: "automaticOSUpgradeSupported", + required: true, 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 VirtualMachineScaleSetUpdateNetworkProfile: coreClient.CompositeMapper = { +export const DisallowedConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkProfile", + className: "DisallowedConfiguration", modelProperties: { - healthProbe: { - serializedName: "healthProbe", - type: { - name: "Composite", - className: "ApiEntityReference" - } - }, - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkConfiguration" - } - } - } - }, - networkApiVersion: { - serializedName: "networkApiVersion", + 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,8 @@ export const VirtualMachineScaleSetUpdatePublicIPAddressConfiguration: coreClien name: "String" } }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", - type: { - name: "Number" - } - }, - dnsSettings: { - serializedName: "properties.dnsSettings", - type: { - name: "Composite", - className: - "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" - } - }, - publicIPPrefix: { - serializedName: "properties.publicIPPrefix", - type: { - name: "Composite", - className: "SubResource" - } - }, - deleteOption: { - serializedName: "properties.deleteOption", + value: { + serializedName: "value", type: { name: "String" } @@ -5245,34 +5264,41 @@ export const VirtualMachineScaleSetUpdatePublicIPAddressConfiguration: coreClien } }; -export const VirtualMachineScaleSetVMInstanceIDs: coreClient.CompositeMapper = { +export const AvailabilitySetListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMInstanceIDs", + className: "AvailabilitySetListResult", modelProperties: { - instanceIds: { - serializedName: "instanceIds", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "AvailabilitySet" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const VirtualMachineScaleSetVMInstanceRequiredIDs: coreClient.CompositeMapper = { +export const ProximityPlacementGroupPropertiesIntent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMInstanceRequiredIDs", + className: "ProximityPlacementGroupPropertiesIntent", modelProperties: { - instanceIds: { - serializedName: "instanceIds", - required: true, + vmSizes: { + serializedName: "vmSizes", type: { name: "Sequence", element: { @@ -5286,74 +5312,47 @@ export const VirtualMachineScaleSetVMInstanceRequiredIDs: coreClient.CompositeMa } }; -export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { +export const ProximityPlacementGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetInstanceView", + className: "ProximityPlacementGroupListResult", modelProperties: { - virtualMachine: { - serializedName: "virtualMachine", - type: { - name: "Composite", - className: "VirtualMachineScaleSetInstanceViewStatusesSummary" - } - }, - extensions: { - serializedName: "extensions", - readOnly: true, + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineScaleSetVMExtensionsSummary" + className: "ProximityPlacementGroup" } } } }, - statuses: { - serializedName: "statuses", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } - }, - orchestrationServices: { - serializedName: "orchestrationServices", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OrchestrationServiceSummary" - } - } + name: "String" } } } } }; -export const VirtualMachineScaleSetInstanceViewStatusesSummary: coreClient.CompositeMapper = { +export const DedicatedHostGroupInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetInstanceViewStatusesSummary", + className: "DedicatedHostGroupInstanceView", modelProperties: { - statusesSummary: { - serializedName: "statusesSummary", - readOnly: true, + hosts: { + serializedName: "hosts", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineStatusCodeCount" + className: "DedicatedHostInstanceViewWithName" } } } @@ -5362,50 +5361,54 @@ export const VirtualMachineScaleSetInstanceViewStatusesSummary: coreClient.Compo } }; -export const VirtualMachineStatusCodeCount: coreClient.CompositeMapper = { +export const DedicatedHostInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineStatusCodeCount", + className: "DedicatedHostInstanceView", modelProperties: { - code: { - serializedName: "code", + assetId: { + serializedName: "assetId", readOnly: true, type: { name: "String" } }, - count: { - serializedName: "count", - readOnly: true, + availableCapacity: { + serializedName: "availableCapacity", type: { - name: "Number" + name: "Composite", + className: "DedicatedHostAvailableCapacity" + } + }, + statuses: { + serializedName: "statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } } } } } }; -export const VirtualMachineScaleSetVMExtensionsSummary: coreClient.CompositeMapper = { +export const DedicatedHostAvailableCapacity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMExtensionsSummary", + className: "DedicatedHostAvailableCapacity", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - statusesSummary: { - serializedName: "statusesSummary", - readOnly: true, + allocatableVMs: { + serializedName: "allocatableVMs", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineStatusCodeCount" + className: "DedicatedHostAllocatableVM" } } } @@ -5414,33 +5417,46 @@ export const VirtualMachineScaleSetVMExtensionsSummary: coreClient.CompositeMapp } }; -export const OrchestrationServiceSummary: coreClient.CompositeMapper = { +export const DedicatedHostAllocatableVM: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OrchestrationServiceSummary", + className: "DedicatedHostAllocatableVM", modelProperties: { - serviceName: { - serializedName: "serviceName", - readOnly: true, + vmSize: { + serializedName: "vmSize", type: { name: "String" } }, - serviceState: { - serializedName: "serviceState", - readOnly: true, + count: { + serializedName: "count", type: { - name: "String" + name: "Number" } } } } }; -export const VirtualMachineScaleSetExtensionListResult: coreClient.CompositeMapper = { +export const DedicatedHostGroupPropertiesAdditionalCapabilities: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetExtensionListResult", + className: "DedicatedHostGroupPropertiesAdditionalCapabilities", + modelProperties: { + ultraSSDEnabled: { + serializedName: "ultraSSDEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const DedicatedHostGroupListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DedicatedHostGroupListResult", modelProperties: { value: { serializedName: "value", @@ -5450,7 +5466,7 @@ export const VirtualMachineScaleSetExtensionListResult: coreClient.CompositeMapp element: { type: { name: "Composite", - className: "VirtualMachineScaleSetExtension" + className: "DedicatedHostGroup" } } } @@ -5465,10 +5481,10 @@ export const VirtualMachineScaleSetExtensionListResult: coreClient.CompositeMapp } }; -export const VirtualMachineScaleSetListWithLinkResult: coreClient.CompositeMapper = { +export const DedicatedHostListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetListWithLinkResult", + className: "DedicatedHostListResult", modelProperties: { value: { serializedName: "value", @@ -5478,7 +5494,7 @@ export const VirtualMachineScaleSetListWithLinkResult: coreClient.CompositeMappe element: { type: { name: "Composite", - className: "VirtualMachineScaleSet" + className: "DedicatedHost" } } } @@ -5493,10 +5509,10 @@ export const VirtualMachineScaleSetListWithLinkResult: coreClient.CompositeMappe } }; -export const VirtualMachineScaleSetListSkusResult: coreClient.CompositeMapper = { +export const SshPublicKeysGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetListSkusResult", + className: "SshPublicKeysGroupListResult", modelProperties: { value: { serializedName: "value", @@ -5506,7 +5522,7 @@ export const VirtualMachineScaleSetListSkusResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "VirtualMachineScaleSetSku" + className: "SshPublicKeyResource" } } } @@ -5521,78 +5537,129 @@ export const VirtualMachineScaleSetListSkusResult: coreClient.CompositeMapper = } }; -export const VirtualMachineScaleSetSku: coreClient.CompositeMapper = { +export const SshPublicKeyGenerateKeyPairResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetSku", + className: "SshPublicKeyGenerateKeyPairResult", modelProperties: { - resourceType: { - serializedName: "resourceType", - readOnly: true, + privateKey: { + serializedName: "privateKey", + required: true, type: { name: "String" } }, - sku: { - serializedName: "sku", + publicKey: { + serializedName: "publicKey", + required: true, type: { - name: "Composite", - className: "Sku" + name: "String" } }, - capacity: { - serializedName: "capacity", + 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: "VirtualMachineScaleSetSkuCapacity" + className: "ImageOSDisk" + } + }, + dataDisks: { + serializedName: "dataDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageDataDisk" + } + } + } + }, + zoneResilient: { + serializedName: "zoneResilient", + type: { + name: "Boolean" } } } } }; -export const VirtualMachineScaleSetSkuCapacity: coreClient.CompositeMapper = { +export const ImageDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetSkuCapacity", + className: "ImageDisk", modelProperties: { - minimum: { - serializedName: "minimum", - readOnly: true, + snapshot: { + serializedName: "snapshot", type: { - name: "Number" + name: "Composite", + className: "SubResource" } }, - maximum: { - serializedName: "maximum", - readOnly: true, + managedDisk: { + serializedName: "managedDisk", type: { - name: "Number" + name: "Composite", + className: "SubResource" } }, - defaultCapacity: { - serializedName: "defaultCapacity", - readOnly: true, + blobUri: { + serializedName: "blobUri", type: { - name: "Number" + name: "String" } }, - scaleType: { - serializedName: "scaleType", - readOnly: true, + caching: { + serializedName: "caching", type: { name: "Enum", - allowedValues: ["Automatic", "None"] + allowedValues: ["None", "ReadOnly", "ReadWrite"] + } + }, + diskSizeGB: { + serializedName: "diskSizeGB", + type: { + name: "Number" + } + }, + storageAccountType: { + serializedName: "storageAccountType", + type: { + name: "String" + } + }, + diskEncryptionSet: { + serializedName: "diskEncryptionSet", + type: { + name: "Composite", + className: "DiskEncryptionSetParameters" } } } } }; -export const VirtualMachineScaleSetListOSUpgradeHistory: coreClient.CompositeMapper = { +export const ImageListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetListOSUpgradeHistory", + className: "ImageListResult", modelProperties: { value: { serializedName: "value", @@ -5602,7 +5669,7 @@ export const VirtualMachineScaleSetListOSUpgradeHistory: coreClient.CompositeMap element: { type: { name: "Composite", - className: "UpgradeOperationHistoricalStatusInfo" + className: "Image" } } } @@ -5617,28 +5684,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 +5706,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 +5984,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 +5996,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 +6056,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 +6083,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 +6124,7 @@ export const VirtualMachineScaleSetVMListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineScaleSetVM" + className: "CapacityReservation" } } } @@ -6866,108 +6913,626 @@ export const ResourceSkuRestrictions: coreClient.CompositeMapper = { } } }, - restrictionInfo: { - serializedName: "restrictionInfo", + restrictionInfo: { + serializedName: "restrictionInfo", + type: { + name: "Composite", + className: "ResourceSkuRestrictionInfo" + } + }, + reasonCode: { + serializedName: "reasonCode", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["QuotaId", "NotAvailableForSubscription"] + } + } + } + } +}; + +export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuRestrictionInfo", + modelProperties: { + locations: { + serializedName: "locations", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + zones: { + serializedName: "zones", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const DiskSku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskSku", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PurchasePlanAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PurchasePlanAutoGenerated", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + publisher: { + serializedName: "publisher", + required: true, + type: { + name: "String" + } + }, + product: { + serializedName: "product", + required: true, + type: { + name: "String" + } + }, + promotionCode: { + serializedName: "promotionCode", + type: { + name: "String" + } + } + } + } +}; + +export const SupportedCapabilities: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SupportedCapabilities", + modelProperties: { + acceleratedNetwork: { + serializedName: "acceleratedNetwork", + type: { + name: "Boolean" + } + } + } + } +}; + +export const CreationData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CreationData", + modelProperties: { + createOption: { + serializedName: "createOption", + required: true, + type: { + name: "String" + } + }, + storageAccountId: { + serializedName: "storageAccountId", + type: { + name: "String" + } + }, + imageReference: { + serializedName: "imageReference", + type: { + name: "Composite", + className: "ImageDiskReference" + } + }, + galleryImageReference: { + serializedName: "galleryImageReference", + type: { + name: "Composite", + className: "ImageDiskReference" + } + }, + sourceUri: { + serializedName: "sourceUri", + type: { + name: "String" + } + }, + sourceResourceId: { + serializedName: "sourceResourceId", + type: { + name: "String" + } + }, + sourceUniqueId: { + serializedName: "sourceUniqueId", + readOnly: true, + type: { + name: "String" + } + }, + uploadSizeBytes: { + serializedName: "uploadSizeBytes", + type: { + name: "Number" + } + }, + logicalSectorSize: { + serializedName: "logicalSectorSize", + type: { + name: "Number" + } + }, + securityDataUri: { + serializedName: "securityDataUri", + type: { + name: "String" + } + } + } + } +}; + +export const ImageDiskReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageDiskReference", + modelProperties: { + id: { + serializedName: "id", + required: true, + type: { + name: "String" + } + }, + lun: { + serializedName: "lun", + type: { + name: "Number" + } + } + } + } +}; + +export const EncryptionSettingsCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionSettingsCollection", + modelProperties: { + enabled: { + serializedName: "enabled", + required: true, + type: { + name: "Boolean" + } + }, + encryptionSettings: { + serializedName: "encryptionSettings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EncryptionSettingsElement" + } + } + } + }, + encryptionSettingsVersion: { + serializedName: "encryptionSettingsVersion", + type: { + name: "String" + } + } + } + } +}; + +export const EncryptionSettingsElement: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionSettingsElement", + modelProperties: { + diskEncryptionKey: { + serializedName: "diskEncryptionKey", + type: { + name: "Composite", + className: "KeyVaultAndSecretReference" + } + }, + keyEncryptionKey: { + serializedName: "keyEncryptionKey", + type: { + name: "Composite", + className: "KeyVaultAndKeyReference" + } + } + } + } +}; + +export const KeyVaultAndSecretReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyVaultAndSecretReference", + modelProperties: { + sourceVault: { + serializedName: "sourceVault", + type: { + name: "Composite", + className: "SourceVault" + } + }, + secretUrl: { + serializedName: "secretUrl", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const SourceVault: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SourceVault", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const KeyVaultAndKeyReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyVaultAndKeyReference", + modelProperties: { + sourceVault: { + serializedName: "sourceVault", + type: { + name: "Composite", + className: "SourceVault" + } + }, + keyUrl: { + serializedName: "keyUrl", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const Encryption: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Encryption", + modelProperties: { + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const ShareInfoElement: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ShareInfoElement", + modelProperties: { + vmUri: { + serializedName: "vmUri", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PropertyUpdatesInProgress", + modelProperties: { + targetTier: { + serializedName: "targetTier", + type: { + name: "String" + } + } + } + } +}; + +export const DiskSecurityProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskSecurityProfile", + modelProperties: { + securityType: { + serializedName: "securityType", + type: { + name: "String" + } + }, + secureVMDiskEncryptionSetId: { + serializedName: "secureVMDiskEncryptionSetId", + type: { + name: "String" + } + } + } + } +}; + +export const DiskUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskUpdate", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "DiskSku" + } + }, + osType: { + serializedName: "properties.osType", + type: { + name: "Enum", + allowedValues: ["Windows", "Linux"] + } + }, + diskSizeGB: { + serializedName: "properties.diskSizeGB", + type: { + name: "Number" + } + }, + encryptionSettingsCollection: { + serializedName: "properties.encryptionSettingsCollection", + type: { + name: "Composite", + className: "EncryptionSettingsCollection" + } + }, + diskIopsReadWrite: { + serializedName: "properties.diskIOPSReadWrite", + type: { + name: "Number" + } + }, + diskMBpsReadWrite: { + serializedName: "properties.diskMBpsReadWrite", + type: { + name: "Number" + } + }, + diskIopsReadOnly: { + serializedName: "properties.diskIOPSReadOnly", + type: { + name: "Number" + } + }, + diskMBpsReadOnly: { + serializedName: "properties.diskMBpsReadOnly", + type: { + name: "Number" + } + }, + maxShares: { + serializedName: "properties.maxShares", + type: { + name: "Number" + } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "Encryption" + } + }, + networkAccessPolicy: { + serializedName: "properties.networkAccessPolicy", + type: { + name: "String" + } + }, + diskAccessId: { + serializedName: "properties.diskAccessId", + type: { + name: "String" + } + }, + tier: { + serializedName: "properties.tier", + type: { + name: "String" + } + }, + burstingEnabled: { + serializedName: "properties.burstingEnabled", + type: { + name: "Boolean" + } + }, + purchasePlan: { + serializedName: "properties.purchasePlan", + type: { + name: "Composite", + className: "PurchasePlanAutoGenerated" + } + }, + supportedCapabilities: { + serializedName: "properties.supportedCapabilities", type: { name: "Composite", - className: "ResourceSkuRestrictionInfo" + className: "SupportedCapabilities" } }, - reasonCode: { - serializedName: "reasonCode", - readOnly: true, + propertyUpdatesInProgress: { + serializedName: "properties.propertyUpdatesInProgress", type: { - name: "Enum", - allowedValues: ["QuotaId", "NotAvailableForSubscription"] + name: "Composite", + className: "PropertyUpdatesInProgress" + } + }, + supportsHibernation: { + serializedName: "properties.supportsHibernation", + type: { + name: "Boolean" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" } } } } }; -export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { +export const DiskList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuRestrictionInfo", + className: "DiskList", modelProperties: { - locations: { - serializedName: "locations", - readOnly: true, + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "Disk" } } } }, - zones: { - serializedName: "zones", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const DiskSku: coreClient.CompositeMapper = { +export const GrantAccessData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskSku", + className: "GrantAccessData", modelProperties: { - name: { - serializedName: "name", + access: { + serializedName: "access", + required: true, type: { name: "String" } }, - tier: { - serializedName: "tier", - readOnly: true, + durationInSeconds: { + serializedName: "durationInSeconds", + required: true, type: { - name: "String" + name: "Number" + } + }, + getSecureVMGuestStateSAS: { + serializedName: "getSecureVMGuestStateSAS", + type: { + name: "Boolean" } } } } }; -export const PurchasePlanAutoGenerated: coreClient.CompositeMapper = { +export const AccessUri: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PurchasePlanAutoGenerated", + className: "AccessUri", modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - publisher: { - serializedName: "publisher", - required: true, - type: { - name: "String" - } - }, - product: { - serializedName: "product", - required: true, + accessSAS: { + serializedName: "accessSAS", + readOnly: true, type: { name: "String" } }, - promotionCode: { - serializedName: "promotionCode", + securityDataAccessSAS: { + serializedName: "securityDataAccessSAS", + readOnly: true, type: { name: "String" } @@ -6976,19 +7541,20 @@ export const PurchasePlanAutoGenerated: coreClient.CompositeMapper = { } }; -export const SupportedCapabilities: coreClient.CompositeMapper = { +export const SnapshotSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SupportedCapabilities", + className: "SnapshotSku", modelProperties: { - acceleratedNetwork: { - serializedName: "acceleratedNetwork", + name: { + serializedName: "name", type: { - name: "Boolean" + name: "String" } }, - architecture: { - serializedName: "architecture", + tier: { + serializedName: "tier", + readOnly: true, type: { name: "String" } @@ -6997,127 +7563,107 @@ export const SupportedCapabilities: coreClient.CompositeMapper = { } }; -export const CreationData: coreClient.CompositeMapper = { +export const SnapshotUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CreationData", + className: "SnapshotUpdate", modelProperties: { - createOption: { - serializedName: "createOption", - required: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - storageAccountId: { - serializedName: "storageAccountId", + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "SnapshotSku" } }, - imageReference: { - serializedName: "imageReference", + osType: { + serializedName: "properties.osType", type: { - name: "Composite", - className: "ImageDiskReference" + name: "Enum", + allowedValues: ["Windows", "Linux"] } }, - galleryImageReference: { - serializedName: "galleryImageReference", + diskSizeGB: { + serializedName: "properties.diskSizeGB", type: { - name: "Composite", - className: "ImageDiskReference" + name: "Number" } }, - sourceUri: { - serializedName: "sourceUri", + encryptionSettingsCollection: { + serializedName: "properties.encryptionSettingsCollection", type: { - name: "String" + name: "Composite", + className: "EncryptionSettingsCollection" } }, - sourceResourceId: { - serializedName: "sourceResourceId", + encryption: { + serializedName: "properties.encryption", type: { - name: "String" + name: "Composite", + className: "Encryption" } }, - sourceUniqueId: { - serializedName: "sourceUniqueId", - readOnly: true, + networkAccessPolicy: { + serializedName: "properties.networkAccessPolicy", type: { name: "String" } }, - uploadSizeBytes: { - serializedName: "uploadSizeBytes", + diskAccessId: { + serializedName: "properties.diskAccessId", type: { - name: "Number" + name: "String" } }, - logicalSectorSize: { - serializedName: "logicalSectorSize", + supportsHibernation: { + serializedName: "properties.supportsHibernation", type: { - name: "Number" + name: "Boolean" } }, - securityDataUri: { - serializedName: "securityDataUri", - type: { - name: "String" - } - } - } - } -}; - -export const ImageDiskReference: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImageDiskReference", - modelProperties: { - id: { - serializedName: "id", - required: true, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { name: "String" } }, - lun: { - serializedName: "lun", + supportedCapabilities: { + serializedName: "properties.supportedCapabilities", type: { - name: "Number" + name: "Composite", + className: "SupportedCapabilities" } } } } }; -export const EncryptionSettingsCollection: coreClient.CompositeMapper = { +export const SnapshotList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionSettingsCollection", + className: "SnapshotList", modelProperties: { - enabled: { - serializedName: "enabled", + value: { + serializedName: "value", required: true, - type: { - name: "Boolean" - } - }, - encryptionSettings: { - serializedName: "encryptionSettings", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EncryptionSettingsElement" + className: "Snapshot" } } } }, - encryptionSettingsVersion: { - serializedName: "encryptionSettingsVersion", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -7126,33 +7672,39 @@ export const EncryptionSettingsCollection: coreClient.CompositeMapper = { } }; -export const EncryptionSettingsElement: coreClient.CompositeMapper = { +export const EncryptionSetIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionSettingsElement", + className: "EncryptionSetIdentity", modelProperties: { - diskEncryptionKey: { - serializedName: "diskEncryptionKey", + type: { + serializedName: "type", type: { - name: "Composite", - className: "KeyVaultAndSecretReference" + name: "String" } }, - keyEncryptionKey: { - serializedName: "keyEncryptionKey", + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "Composite", - className: "KeyVaultAndKeyReference" + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "String" } } } } }; -export const KeyVaultAndSecretReference: coreClient.CompositeMapper = { +export const KeyForDiskEncryptionSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyVaultAndSecretReference", + className: "KeyForDiskEncryptionSet", modelProperties: { sourceVault: { serializedName: "sourceVault", @@ -7161,8 +7713,8 @@ export const KeyVaultAndSecretReference: coreClient.CompositeMapper = { className: "SourceVault" } }, - secretUrl: { - serializedName: "secretUrl", + keyUrl: { + serializedName: "keyUrl", required: true, type: { name: "String" @@ -7172,36 +7724,68 @@ export const KeyVaultAndSecretReference: coreClient.CompositeMapper = { } }; -export const SourceVault: coreClient.CompositeMapper = { +export const DiskEncryptionSetUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceVault", + className: "DiskEncryptionSetUpdate", modelProperties: { - id: { - serializedName: "id", + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "EncryptionSetIdentity" + } + }, + encryptionType: { + serializedName: "properties.encryptionType", type: { name: "String" } + }, + activeKey: { + serializedName: "properties.activeKey", + type: { + name: "Composite", + className: "KeyForDiskEncryptionSet" + } + }, + rotationToLatestKeyVersionEnabled: { + serializedName: "properties.rotationToLatestKeyVersionEnabled", + type: { + name: "Boolean" + } } } } }; -export const KeyVaultAndKeyReference: coreClient.CompositeMapper = { +export const DiskEncryptionSetList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyVaultAndKeyReference", + className: "DiskEncryptionSetList", modelProperties: { - sourceVault: { - serializedName: "sourceVault", + value: { + serializedName: "value", + required: true, type: { - name: "Composite", - className: "SourceVault" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskEncryptionSet" + } + } } }, - keyUrl: { - serializedName: "keyUrl", - required: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -7210,19 +7794,25 @@ export const KeyVaultAndKeyReference: coreClient.CompositeMapper = { } }; -export const Encryption: coreClient.CompositeMapper = { +export const ResourceUriList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Encryption", + className: "ResourceUriList", modelProperties: { - diskEncryptionSetId: { - serializedName: "diskEncryptionSetId", + value: { + serializedName: "value", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - type: { - serializedName: "type", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -7231,13 +7821,48 @@ export const Encryption: coreClient.CompositeMapper = { } }; -export const ShareInfoElement: coreClient.CompositeMapper = { +export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ShareInfoElement", + className: "PrivateEndpointConnection", modelProperties: { - vmUri: { - serializedName: "vmUri", + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint" + } + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" @@ -7247,13 +7872,14 @@ export const ShareInfoElement: coreClient.CompositeMapper = { } }; -export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { +export const PrivateEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PropertyUpdatesInProgress", + className: "PrivateEndpoint", modelProperties: { - targetTier: { - serializedName: "targetTier", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } @@ -7262,19 +7888,25 @@ export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { } }; -export const DiskSecurityProfile: coreClient.CompositeMapper = { +export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskSecurityProfile", + className: "PrivateLinkServiceConnectionState", modelProperties: { - securityType: { - serializedName: "securityType", + status: { + serializedName: "status", type: { name: "String" } }, - secureVMDiskEncryptionSetId: { - serializedName: "secureVMDiskEncryptionSetId", + description: { + serializedName: "description", + type: { + name: "String" + } + }, + actionsRequired: { + serializedName: "actionsRequired", type: { name: "String" } @@ -7283,10 +7915,10 @@ export const DiskSecurityProfile: coreClient.CompositeMapper = { } }; -export const DiskUpdate: coreClient.CompositeMapper = { +export const DiskAccessUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskUpdate", + className: "DiskAccessUpdate", modelProperties: { tags: { serializedName: "tags", @@ -7294,152 +7926,133 @@ export const DiskUpdate: coreClient.CompositeMapper = { name: "Dictionary", value: { type: { name: "String" } } } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "DiskSku" - } - }, - osType: { - serializedName: "properties.osType", - type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] - } - }, - diskSizeGB: { - serializedName: "properties.diskSizeGB", - type: { - name: "Number" - } - }, - encryptionSettingsCollection: { - serializedName: "properties.encryptionSettingsCollection", - type: { - name: "Composite", - className: "EncryptionSettingsCollection" - } - }, - diskIopsReadWrite: { - serializedName: "properties.diskIOPSReadWrite", - type: { - name: "Number" - } - }, - diskMBpsReadWrite: { - serializedName: "properties.diskMBpsReadWrite", - type: { - name: "Number" - } - }, - diskIopsReadOnly: { - serializedName: "properties.diskIOPSReadOnly", - type: { - name: "Number" - } - }, - diskMBpsReadOnly: { - serializedName: "properties.diskMBpsReadOnly", - type: { - name: "Number" - } - }, - maxShares: { - serializedName: "properties.maxShares", - type: { - name: "Number" - } - }, - encryption: { - serializedName: "properties.encryption", - type: { - name: "Composite", - className: "Encryption" - } - }, - networkAccessPolicy: { - serializedName: "properties.networkAccessPolicy", - type: { - name: "String" - } - }, - diskAccessId: { - serializedName: "properties.diskAccessId", + } + } + } +}; + +export const DiskAccessList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskAccessList", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskAccess" + } + } } }, - tier: { - serializedName: "properties.tier", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - burstingEnabled: { - serializedName: "properties.burstingEnabled", + } + } + } +}; + +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } } - }, - purchasePlan: { - serializedName: "properties.purchasePlan", + } + } + } +}; + +export const PrivateLinkResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, type: { - name: "Composite", - className: "PurchasePlanAutoGenerated" + name: "String" } }, - supportedCapabilities: { - serializedName: "properties.supportedCapabilities", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Composite", - className: "SupportedCapabilities" + name: "String" } }, - propertyUpdatesInProgress: { - serializedName: "properties.propertyUpdatesInProgress", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Composite", - className: "PropertyUpdatesInProgress" + name: "String" } }, - supportsHibernation: { - serializedName: "properties.supportsHibernation", + groupId: { + serializedName: "properties.groupId", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + requiredMembers: { + serializedName: "properties.requiredMembers", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - dataAccessAuthMode: { - serializedName: "properties.dataAccessAuthMode", + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const DiskList: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskList", + className: "PrivateEndpointConnectionListResult", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Disk" + className: "PrivateEndpointConnection" } } } @@ -7454,50 +8067,56 @@ export const DiskList: coreClient.CompositeMapper = { } }; -export const GrantAccessData: coreClient.CompositeMapper = { +export const ProxyOnlyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GrantAccessData", + className: "ProxyOnlyResource", modelProperties: { - access: { - serializedName: "access", - required: true, + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - durationInSeconds: { - serializedName: "durationInSeconds", - required: true, + name: { + serializedName: "name", + readOnly: true, type: { - name: "Number" + name: "String" } }, - getSecureVMGuestStateSAS: { - serializedName: "getSecureVMGuestStateSAS", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const AccessUri: coreClient.CompositeMapper = { +export const DiskRestorePointList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccessUri", + className: "DiskRestorePointList", modelProperties: { - accessSAS: { - serializedName: "accessSAS", - readOnly: true, + value: { + serializedName: "value", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskRestorePoint" + } + } } }, - securityDataAccessSAS: { - serializedName: "securityDataAccessSAS", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -7506,19 +8125,13 @@ export const AccessUri: coreClient.CompositeMapper = { } }; -export const SnapshotSku: coreClient.CompositeMapper = { +export const GalleryIdentifier: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SnapshotSku", + className: "GalleryIdentifier", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", + uniqueName: { + serializedName: "uniqueName", readOnly: true, type: { name: "String" @@ -7528,165 +8141,129 @@ export const SnapshotSku: coreClient.CompositeMapper = { } }; -export const SnapshotUpdate: coreClient.CompositeMapper = { +export const SharingProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SnapshotUpdate", + className: "SharingProfile", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "SnapshotSku" - } - }, - osType: { - serializedName: "properties.osType", - type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] - } - }, - diskSizeGB: { - serializedName: "properties.diskSizeGB", - type: { - name: "Number" - } - }, - encryptionSettingsCollection: { - serializedName: "properties.encryptionSettingsCollection", - type: { - name: "Composite", - className: "EncryptionSettingsCollection" - } - }, - encryption: { - serializedName: "properties.encryption", - type: { - name: "Composite", - className: "Encryption" - } - }, - networkAccessPolicy: { - serializedName: "properties.networkAccessPolicy", - type: { - name: "String" - } - }, - diskAccessId: { - serializedName: "properties.diskAccessId", + permissions: { + serializedName: "permissions", type: { name: "String" } }, - supportsHibernation: { - serializedName: "properties.supportsHibernation", + groups: { + serializedName: "groups", + readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharingProfileGroup" + } + } } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + communityGalleryInfo: { + serializedName: "communityGalleryInfo", type: { - name: "String" + name: "any" } - }, - dataAccessAuthMode: { - serializedName: "properties.dataAccessAuthMode", + } + } + } +}; + +export const SharingProfileGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SharingProfileGroup", + modelProperties: { + type: { + serializedName: "type", type: { name: "String" } }, - supportedCapabilities: { - serializedName: "properties.supportedCapabilities", + ids: { + serializedName: "ids", type: { - name: "Composite", - className: "SupportedCapabilities" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const SnapshotList: coreClient.CompositeMapper = { +export const SoftDeletePolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SnapshotList", + className: "SoftDeletePolicy", modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Snapshot" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + isSoftDeleteEnabled: { + serializedName: "isSoftDeleteEnabled", type: { - name: "String" + name: "Boolean" } } } } }; -export const EncryptionSetIdentity: coreClient.CompositeMapper = { +export const SharingStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionSetIdentity", + className: "SharingStatus", modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - principalId: { - serializedName: "principalId", + aggregatedState: { + serializedName: "aggregatedState", readOnly: true, type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", - readOnly: true, + summary: { + serializedName: "summary", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegionalSharingStatus" + } + } } } } } }; -export const KeyForDiskEncryptionSet: coreClient.CompositeMapper = { +export const RegionalSharingStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyForDiskEncryptionSet", + className: "RegionalSharingStatus", modelProperties: { - sourceVault: { - serializedName: "sourceVault", + region: { + serializedName: "region", type: { - name: "Composite", - className: "SourceVault" + name: "String" } }, - keyUrl: { - serializedName: "keyUrl", - required: true, + state: { + serializedName: "state", + readOnly: true, + type: { + name: "String" + } + }, + details: { + serializedName: "details", type: { name: "String" } @@ -7695,68 +8272,65 @@ export const KeyForDiskEncryptionSet: coreClient.CompositeMapper = { } }; -export const DiskEncryptionSetUpdate: coreClient.CompositeMapper = { +export const UpdateResourceDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskEncryptionSetUpdate", + className: "UpdateResourceDefinition", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - identity: { - serializedName: "identity", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Composite", - className: "EncryptionSetIdentity" + name: "String" } }, - encryptionType: { - serializedName: "properties.encryptionType", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - activeKey: { - serializedName: "properties.activeKey", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Composite", - className: "KeyForDiskEncryptionSet" + name: "String" } }, - rotationToLatestKeyVersionEnabled: { - serializedName: "properties.rotationToLatestKeyVersionEnabled", + tags: { + serializedName: "tags", type: { - name: "Boolean" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const DiskEncryptionSetList: coreClient.CompositeMapper = { +export const GalleryImageIdentifier: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskEncryptionSetList", + className: "GalleryImageIdentifier", modelProperties: { - value: { - serializedName: "value", + publisher: { + serializedName: "publisher", required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiskEncryptionSet" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + offer: { + serializedName: "offer", + required: true, + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + required: true, type: { name: "String" } @@ -7765,119 +8339,89 @@ export const DiskEncryptionSetList: coreClient.CompositeMapper = { } }; -export const ResourceUriList: coreClient.CompositeMapper = { +export const RecommendedMachineConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceUriList", + className: "RecommendedMachineConfiguration", modelProperties: { - value: { - serializedName: "value", - required: true, + vCPUs: { + serializedName: "vCPUs", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ResourceRange" } }, - nextLink: { - serializedName: "nextLink", + memory: { + serializedName: "memory", type: { - name: "String" + name: "Composite", + className: "ResourceRange" } } } } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { +export const ResourceRange: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "ResourceRange", 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" - } - }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpoint" - } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + min: { + serializedName: "min", type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" + name: "Number" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + max: { + serializedName: "max", type: { - name: "String" + name: "Number" } } } } }; -export const PrivateEndpoint: coreClient.CompositeMapper = { +export const Disallowed: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpoint", + className: "Disallowed", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + diskTypes: { + serializedName: "diskTypes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { +export const ImagePurchasePlan: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkServiceConnectionState", + className: "ImagePurchasePlan", modelProperties: { - status: { - serializedName: "status", + name: { + serializedName: "name", type: { name: "String" } }, - description: { - serializedName: "description", + publisher: { + serializedName: "publisher", type: { name: "String" } }, - actionsRequired: { - serializedName: "actionsRequired", + product: { + serializedName: "product", type: { name: "String" } @@ -7886,63 +8430,89 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { } }; -export const DiskAccessUpdate: coreClient.CompositeMapper = { +export const GalleryImageFeature: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskAccessUpdate", + className: "GalleryImageFeature", modelProperties: { - tags: { - serializedName: "tags", + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } } } } }; -export const DiskAccessList: coreClient.CompositeMapper = { +export const GalleryArtifactPublishingProfileBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskAccessList", + className: "GalleryArtifactPublishingProfileBase", modelProperties: { - value: { - serializedName: "value", - required: true, + targetRegions: { + serializedName: "targetRegions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DiskAccess" + className: "TargetRegion" } } } }, - nextLink: { - serializedName: "nextLink", + replicaCount: { + serializedName: "replicaCount", + type: { + name: "Number" + } + }, + excludeFromLatest: { + serializedName: "excludeFromLatest", + type: { + name: "Boolean" + } + }, + publishedDate: { + serializedName: "publishedDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + endOfLifeDate: { + serializedName: "endOfLifeDate", + type: { + name: "DateTime" + } + }, + storageAccountType: { + serializedName: "storageAccountType", type: { name: "String" } - } - } - } -}; - -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkResourceListResult", - modelProperties: { - value: { - serializedName: "value", + }, + replicationMode: { + serializedName: "replicationMode", + type: { + name: "String" + } + }, + targetExtendedLocations: { + serializedName: "targetExtendedLocations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateLinkResource" + className: "GalleryTargetExtendedLocation" } } } @@ -7951,115 +8521,97 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { } }; -export const PrivateLinkResource: coreClient.CompositeMapper = { +export const TargetRegion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResource", + className: "TargetRegion", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, name: { serializedName: "name", - readOnly: true, + required: true, type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + regionalReplicaCount: { + serializedName: "regionalReplicaCount", type: { - name: "String" + name: "Number" } }, - groupId: { - serializedName: "properties.groupId", - readOnly: true, + storageAccountType: { + serializedName: "storageAccountType", type: { name: "String" } }, - requiredMembers: { - serializedName: "properties.requiredMembers", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", + encryption: { + serializedName: "encryption", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "EncryptionImages" } } } } }; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { +export const EncryptionImages: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "EncryptionImages", modelProperties: { - value: { - serializedName: "value", + osDiskImage: { + serializedName: "osDiskImage", + type: { + name: "Composite", + className: "OSDiskImageEncryption" + } + }, + dataDiskImages: { + serializedName: "dataDiskImages", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateEndpointConnection" + className: "DataDiskImageEncryption" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const ProxyOnlyResource: coreClient.CompositeMapper = { +export const OSDiskImageSecurityProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProxyOnlyResource", + className: "OSDiskImageSecurityProfile", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + confidentialVMEncryptionType: { + serializedName: "confidentialVMEncryptionType", type: { name: "String" } }, - name: { - serializedName: "name", - readOnly: true, + secureVMDiskEncryptionSetId: { + serializedName: "secureVMDiskEncryptionSetId", type: { name: "String" } - }, - type: { - serializedName: "type", - readOnly: true, + } + } + } +}; + +export const DiskImageEncryption: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskImageEncryption", + modelProperties: { + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", type: { name: "String" } @@ -8068,42 +8620,60 @@ export const ProxyOnlyResource: coreClient.CompositeMapper = { } }; -export const DiskRestorePointList: coreClient.CompositeMapper = { +export const GalleryTargetExtendedLocation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskRestorePointList", + className: "GalleryTargetExtendedLocation", modelProperties: { - value: { - serializedName: "value", - required: true, + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiskRestorePoint" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + extendedLocation: { + serializedName: "extendedLocation", + type: { + name: "Composite", + className: "GalleryExtendedLocation" + } + }, + extendedLocationReplicaCount: { + serializedName: "extendedLocationReplicaCount", + type: { + name: "Number" + } + }, + storageAccountType: { + serializedName: "storageAccountType", type: { name: "String" } + }, + encryption: { + serializedName: "encryption", + type: { + name: "Composite", + className: "EncryptionImages" + } } } } }; -export const GalleryIdentifier: coreClient.CompositeMapper = { +export const GalleryExtendedLocation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryIdentifier", + className: "GalleryExtendedLocation", modelProperties: { - uniqueName: { - serializedName: "uniqueName", - readOnly: true, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", type: { name: "String" } @@ -8112,85 +8682,96 @@ export const GalleryIdentifier: coreClient.CompositeMapper = { } }; -export const SharingProfile: coreClient.CompositeMapper = { +export const GalleryImageVersionStorageProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharingProfile", + className: "GalleryImageVersionStorageProfile", modelProperties: { - permissions: { - serializedName: "permissions", + source: { + serializedName: "source", type: { - name: "String" + name: "Composite", + className: "GalleryArtifactVersionSource" } }, - groups: { - serializedName: "groups", - readOnly: true, + osDiskImage: { + serializedName: "osDiskImage", + type: { + name: "Composite", + className: "GalleryOSDiskImage" + } + }, + dataDiskImages: { + serializedName: "dataDiskImages", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SharingProfileGroup" + className: "GalleryDataDiskImage" } - } - } - }, - communityGalleryInfo: { - serializedName: "communityGalleryInfo", - type: { - name: "any" + } } } } } }; -export const SharingProfileGroup: coreClient.CompositeMapper = { +export const GalleryArtifactVersionSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharingProfileGroup", + className: "GalleryArtifactVersionSource", modelProperties: { - type: { - serializedName: "type", + id: { + serializedName: "id", type: { name: "String" } }, - ids: { - serializedName: "ids", + uri: { + serializedName: "uri", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const SoftDeletePolicy: coreClient.CompositeMapper = { +export const GalleryDiskImage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SoftDeletePolicy", + className: "GalleryDiskImage", modelProperties: { - isSoftDeleteEnabled: { - serializedName: "isSoftDeleteEnabled", + sizeInGB: { + serializedName: "sizeInGB", + readOnly: true, type: { - name: "Boolean" + name: "Number" + } + }, + hostCaching: { + serializedName: "hostCaching", + type: { + name: "Enum", + allowedValues: ["None", "ReadOnly", "ReadWrite"] + } + }, + source: { + serializedName: "source", + type: { + name: "Composite", + className: "GalleryArtifactVersionSource" } } } } }; -export const SharingStatus: coreClient.CompositeMapper = { +export const ReplicationStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharingStatus", + className: "ReplicationStatus", modelProperties: { aggregatedState: { serializedName: "aggregatedState", @@ -8201,12 +8782,13 @@ export const SharingStatus: coreClient.CompositeMapper = { }, summary: { serializedName: "summary", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "RegionalSharingStatus" + className: "RegionalReplicationStatus" } } } @@ -8215,13 +8797,14 @@ export const SharingStatus: coreClient.CompositeMapper = { } }; -export const RegionalSharingStatus: coreClient.CompositeMapper = { +export const RegionalReplicationStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegionalSharingStatus", + className: "RegionalReplicationStatus", modelProperties: { region: { serializedName: "region", + readOnly: true, type: { name: "String" } @@ -8235,73 +8818,65 @@ export const RegionalSharingStatus: coreClient.CompositeMapper = { }, details: { serializedName: "details", + readOnly: true, type: { name: "String" } + }, + progress: { + serializedName: "progress", + readOnly: true, + type: { + name: "Number" + } } } } }; -export const UpdateResourceDefinition: coreClient.CompositeMapper = { +export const UserArtifactSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateResourceDefinition", + className: "UserArtifactSource", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, + mediaLink: { + serializedName: "mediaLink", + required: true, type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + defaultConfigurationLink: { + serializedName: "defaultConfigurationLink", type: { name: "String" } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } } } } }; -export const GalleryImageIdentifier: coreClient.CompositeMapper = { +export const UserArtifactManage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryImageIdentifier", + className: "UserArtifactManage", modelProperties: { - publisher: { - serializedName: "publisher", + install: { + serializedName: "install", required: true, type: { name: "String" } }, - offer: { - serializedName: "offer", + remove: { + serializedName: "remove", required: true, type: { name: "String" } }, - sku: { - serializedName: "sku", - required: true, + update: { + serializedName: "update", type: { name: "String" } @@ -8310,89 +8885,47 @@ export const GalleryImageIdentifier: coreClient.CompositeMapper = { } }; -export const RecommendedMachineConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RecommendedMachineConfiguration", - modelProperties: { - vCPUs: { - serializedName: "vCPUs", - type: { - name: "Composite", - className: "ResourceRange" - } - }, - memory: { - serializedName: "memory", - type: { - name: "Composite", - className: "ResourceRange" - } - } - } - } -}; - -export const ResourceRange: coreClient.CompositeMapper = { +export const UserArtifactSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceRange", + className: "UserArtifactSettings", modelProperties: { - min: { - serializedName: "min", + packageFileName: { + serializedName: "packageFileName", type: { - name: "Number" + name: "String" } }, - max: { - serializedName: "max", + configFileName: { + serializedName: "configFileName", type: { - name: "Number" + name: "String" } } } } }; -export const Disallowed: coreClient.CompositeMapper = { +export const GalleryList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Disallowed", + className: "GalleryList", modelProperties: { - diskTypes: { - serializedName: "diskTypes", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "Gallery" } } } - } - } - } -}; - -export const ImagePurchasePlan: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImagePurchasePlan", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - publisher: { - serializedName: "publisher", - type: { - name: "String" - } }, - product: { - serializedName: "product", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -8401,173 +8934,110 @@ export const ImagePurchasePlan: coreClient.CompositeMapper = { } }; -export const GalleryImageFeature: coreClient.CompositeMapper = { +export const GalleryImageList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryImageFeature", + className: "GalleryImageList", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, value: { serializedName: "value", - type: { - name: "String" - } - } - } - } -}; - -export const GalleryArtifactPublishingProfileBase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryArtifactPublishingProfileBase", - modelProperties: { - targetRegions: { - serializedName: "targetRegions", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "TargetRegion" + className: "GalleryImage" } } } }, - replicaCount: { - serializedName: "replicaCount", - type: { - name: "Number" - } - }, - excludeFromLatest: { - serializedName: "excludeFromLatest", - type: { - name: "Boolean" - } - }, - publishedDate: { - serializedName: "publishedDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - endOfLifeDate: { - serializedName: "endOfLifeDate", - type: { - name: "DateTime" - } - }, - storageAccountType: { - serializedName: "storageAccountType", - type: { - name: "String" - } - }, - replicationMode: { - serializedName: "replicationMode", - type: { - name: "String" - } - }, - targetExtendedLocations: { - serializedName: "targetExtendedLocations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryTargetExtendedLocation" - } - } + nextLink: { + serializedName: "nextLink", + type: { + name: "String" } } } } }; -export const TargetRegion: coreClient.CompositeMapper = { +export const GalleryImageVersionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TargetRegion", + className: "GalleryImageVersionList", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", required: true, type: { - name: "String" - } - }, - regionalReplicaCount: { - serializedName: "regionalReplicaCount", - type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryImageVersion" + } + } } }, - storageAccountType: { - serializedName: "storageAccountType", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - encryption: { - serializedName: "encryption", - type: { - name: "Composite", - className: "EncryptionImages" - } } } } }; -export const EncryptionImages: coreClient.CompositeMapper = { +export const GalleryApplicationList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionImages", + className: "GalleryApplicationList", modelProperties: { - osDiskImage: { - serializedName: "osDiskImage", - type: { - name: "Composite", - className: "OSDiskImageEncryption" - } - }, - dataDiskImages: { - serializedName: "dataDiskImages", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DataDiskImageEncryption" + className: "GalleryApplication" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const OSDiskImageSecurityProfile: coreClient.CompositeMapper = { +export const GalleryApplicationVersionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OSDiskImageSecurityProfile", + className: "GalleryApplicationVersionList", modelProperties: { - confidentialVMEncryptionType: { - serializedName: "confidentialVMEncryptionType", + value: { + serializedName: "value", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryApplicationVersion" + } + } } }, - secureVMDiskEncryptionSetId: { - serializedName: "secureVMDiskEncryptionSetId", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -8576,75 +9046,77 @@ export const OSDiskImageSecurityProfile: coreClient.CompositeMapper = { } }; -export const DiskImageEncryption: coreClient.CompositeMapper = { +export const SharingUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskImageEncryption", + className: "SharingUpdate", modelProperties: { - diskEncryptionSetId: { - serializedName: "diskEncryptionSetId", + operationType: { + serializedName: "operationType", + required: true, type: { name: "String" } + }, + groups: { + serializedName: "groups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharingProfileGroup" + } + } + } } } } }; -export const GalleryTargetExtendedLocation: coreClient.CompositeMapper = { +export const SharedGalleryList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryTargetExtendedLocation", + className: "SharedGalleryList", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - extendedLocation: { - serializedName: "extendedLocation", - type: { - name: "Composite", - className: "GalleryExtendedLocation" - } - }, - extendedLocationReplicaCount: { - serializedName: "extendedLocationReplicaCount", + value: { + serializedName: "value", + required: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedGallery" + } + } } }, - storageAccountType: { - serializedName: "storageAccountType", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - encryption: { - serializedName: "encryption", - type: { - name: "Composite", - className: "EncryptionImages" - } } } } }; -export const GalleryExtendedLocation: coreClient.CompositeMapper = { +export const PirResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryExtendedLocation", + className: "PirResource", modelProperties: { name: { serializedName: "name", + readOnly: true, type: { name: "String" } }, - type: { - serializedName: "type", + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } @@ -8653,54 +9125,54 @@ export const GalleryExtendedLocation: coreClient.CompositeMapper = { } }; -export const GalleryImageVersionStorageProfile: coreClient.CompositeMapper = { +export const SharedGalleryImageList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryImageVersionStorageProfile", + className: "SharedGalleryImageList", modelProperties: { - source: { - serializedName: "source", - type: { - name: "Composite", - className: "GalleryArtifactVersionSource" - } - }, - osDiskImage: { - serializedName: "osDiskImage", - type: { - name: "Composite", - className: "GalleryOSDiskImage" - } - }, - dataDiskImages: { - serializedName: "dataDiskImages", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "GalleryDataDiskImage" + className: "SharedGalleryImage" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const GalleryArtifactVersionSource: coreClient.CompositeMapper = { +export const SharedGalleryImageVersionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryArtifactVersionSource", + className: "SharedGalleryImageVersionList", modelProperties: { - id: { - serializedName: "id", + value: { + serializedName: "value", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedGalleryImageVersion" + } + } } }, - uri: { - serializedName: "uri", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -8709,116 +9181,116 @@ export const GalleryArtifactVersionSource: coreClient.CompositeMapper = { } }; -export const GalleryDiskImage: coreClient.CompositeMapper = { +export const PirCommunityGalleryResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryDiskImage", + className: "PirCommunityGalleryResource", modelProperties: { - sizeInGB: { - serializedName: "sizeInGB", + name: { + serializedName: "name", readOnly: true, type: { - name: "Number" + name: "String" } }, - hostCaching: { - serializedName: "hostCaching", + location: { + serializedName: "location", + readOnly: true, type: { - name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] + name: "String" } }, - source: { - serializedName: "source", - type: { - name: "Composite", - className: "GalleryArtifactVersionSource" - } - } - } - } -}; - -export const ReplicationStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ReplicationStatus", - modelProperties: { - aggregatedState: { - serializedName: "aggregatedState", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - summary: { - serializedName: "summary", - readOnly: true, + uniqueId: { + serializedName: "identifier.uniqueId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RegionalReplicationStatus" - } - } + name: "String" } } } } }; -export const RegionalReplicationStatus: coreClient.CompositeMapper = { +export const RoleInstance: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegionalReplicationStatus", + className: "RoleInstance", modelProperties: { - region: { - serializedName: "region", + id: { + serializedName: "id", readOnly: true, type: { name: "String" } }, - state: { - serializedName: "state", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - details: { - serializedName: "details", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - progress: { - serializedName: "progress", + location: { + serializedName: "location", readOnly: true, type: { - name: "Number" + 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 UserArtifactSource: coreClient.CompositeMapper = { +export const InstanceSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserArtifactSource", + className: "InstanceSku", modelProperties: { - mediaLink: { - serializedName: "mediaLink", - required: true, + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - defaultConfigurationLink: { - serializedName: "defaultConfigurationLink", + tier: { + serializedName: "tier", + readOnly: true, type: { name: "String" } @@ -8827,151 +9299,142 @@ export const UserArtifactSource: coreClient.CompositeMapper = { } }; -export const UserArtifactManage: coreClient.CompositeMapper = { +export const RoleInstanceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserArtifactManage", + className: "RoleInstanceProperties", modelProperties: { - install: { - serializedName: "install", - required: true, - type: { - name: "String" - } - }, - remove: { - serializedName: "remove", - required: true, + networkProfile: { + serializedName: "networkProfile", type: { - name: "String" + name: "Composite", + className: "RoleInstanceNetworkProfile" } }, - update: { - serializedName: "update", + instanceView: { + serializedName: "instanceView", type: { - name: "String" + name: "Composite", + className: "RoleInstanceView" } } } } }; -export const GalleryList: coreClient.CompositeMapper = { +export const RoleInstanceNetworkProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryList", + className: "RoleInstanceNetworkProfile", modelProperties: { - value: { - serializedName: "value", - required: true, + networkInterfaces: { + serializedName: "networkInterfaces", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Gallery" + className: "SubResource" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const GalleryImageList: coreClient.CompositeMapper = { +export const RoleInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryImageList", + className: "RoleInstanceView", modelProperties: { - value: { - serializedName: "value", - required: true, + platformUpdateDomain: { + serializedName: "platformUpdateDomain", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryImage" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + platformFaultDomain: { + serializedName: "platformFaultDomain", + readOnly: true, + type: { + name: "Number" + } + }, + privateId: { + serializedName: "privateId", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const GalleryImageVersionList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryImageVersionList", - modelProperties: { - value: { - serializedName: "value", - required: true, + }, + statuses: { + serializedName: "statuses", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "GalleryImageVersion" + className: "ResourceInstanceViewStatus" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const GalleryApplicationList: coreClient.CompositeMapper = { +export const ResourceInstanceViewStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryApplicationList", + className: "ResourceInstanceViewStatus", modelProperties: { - value: { - serializedName: "value", - required: true, + code: { + serializedName: "code", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryApplication" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + displayStatus: { + serializedName: "displayStatus", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, type: { name: "String" } + }, + time: { + serializedName: "time", + readOnly: true, + type: { + name: "DateTime" + } + }, + level: { + serializedName: "level", + type: { + name: "Enum", + allowedValues: ["Info", "Warning", "Error"] + } } } } }; -export const GalleryApplicationVersionList: coreClient.CompositeMapper = { +export const RoleInstanceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryApplicationVersionList", + className: "RoleInstanceListResult", modelProperties: { value: { serializedName: "value", @@ -8981,7 +9444,7 @@ export const GalleryApplicationVersionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryApplicationVersion" + className: "RoleInstance" } } } @@ -8996,105 +9459,92 @@ export const GalleryApplicationVersionList: coreClient.CompositeMapper = { } }; -export const SharingUpdate: coreClient.CompositeMapper = { +export const CloudServiceRole: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharingUpdate", + className: "CloudServiceRole", modelProperties: { - operationType: { - serializedName: "operationType", - required: true, + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - groups: { - serializedName: "groups", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharingProfileGroup" - } - } + name: "String" } - } - } - } -}; - -export const SharedGalleryList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SharedGalleryList", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedGallery" - } - } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" } }, - nextLink: { - serializedName: "nextLink", + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "CloudServiceRoleSku" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CloudServiceRoleProperties" + } } } } }; -export const PirResource: coreClient.CompositeMapper = { +export const CloudServiceRoleSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PirResource", + className: "CloudServiceRoleSku", modelProperties: { name: { serializedName: "name", - readOnly: true, type: { name: "String" } }, - location: { - serializedName: "location", - readOnly: true, + tier: { + serializedName: "tier", type: { name: "String" } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } } } } }; -export const SharedGalleryImageList: coreClient.CompositeMapper = { +export const CloudServiceRoleProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedGalleryImageList", + className: "CloudServiceRoleProperties", modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedGalleryImage" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + uniqueId: { + serializedName: "uniqueId", + readOnly: true, type: { name: "String" } @@ -9103,10 +9553,10 @@ export const SharedGalleryImageList: coreClient.CompositeMapper = { } }; -export const SharedGalleryImageVersionList: coreClient.CompositeMapper = { +export const CloudServiceRoleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedGalleryImageVersionList", + className: "CloudServiceRoleListResult", modelProperties: { value: { serializedName: "value", @@ -9116,7 +9566,7 @@ export const SharedGalleryImageVersionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharedGalleryImageVersion" + className: "CloudServiceRole" } } } @@ -9131,20 +9581,20 @@ export const SharedGalleryImageVersionList: coreClient.CompositeMapper = { } }; -export const PirCommunityGalleryResource: coreClient.CompositeMapper = { +export const CloudService: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PirCommunityGalleryResource", + className: "CloudService", modelProperties: { - name: { - serializedName: "name", + id: { + serializedName: "id", readOnly: true, type: { name: "String" } }, - location: { - serializedName: "location", + name: { + serializedName: "name", readOnly: true, type: { name: "String" @@ -9157,135 +9607,174 @@ export const PirCommunityGalleryResource: coreClient.CompositeMapper = { name: "String" } }, - uniqueId: { - serializedName: "identifier.uniqueId", + location: { + serializedName: "location", + required: true, type: { name: "String" } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CloudServiceProperties" + } } } } }; -export const RoleInstance: coreClient.CompositeMapper = { +export const CloudServiceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleInstance", + className: "CloudServiceProperties", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + packageUrl: { + serializedName: "packageUrl", type: { name: "String" } }, - name: { - serializedName: "name", - readOnly: true, + configuration: { + serializedName: "configuration", type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + configurationUrl: { + serializedName: "configurationUrl", type: { name: "String" } }, - location: { - serializedName: "location", - readOnly: true, + startCloudService: { + serializedName: "startCloudService", + type: { + name: "Boolean" + } + }, + allowModelOverride: { + serializedName: "allowModelOverride", + type: { + name: "Boolean" + } + }, + upgradeMode: { + serializedName: "upgradeMode", type: { name: "String" } }, - tags: { - serializedName: "tags", - readOnly: true, + roleProfile: { + serializedName: "roleProfile", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "CloudServiceRoleProfile" } }, - sku: { - serializedName: "sku", + osProfile: { + serializedName: "osProfile", type: { name: "Composite", - className: "InstanceSku" + className: "CloudServiceOsProfile" } }, - properties: { - serializedName: "properties", + networkProfile: { + serializedName: "networkProfile", type: { name: "Composite", - className: "RoleInstanceProperties" + className: "CloudServiceNetworkProfile" + } + }, + extensionProfile: { + serializedName: "extensionProfile", + type: { + name: "Composite", + className: "CloudServiceExtensionProfile" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + uniqueId: { + serializedName: "uniqueId", + readOnly: true, + type: { + name: "String" } } } } }; -export const InstanceSku: coreClient.CompositeMapper = { +export const CloudServiceRoleProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceSku", + className: "CloudServiceRoleProfile", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", - readOnly: true, + roles: { + serializedName: "roles", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudServiceRoleProfileProperties" + } + } } } } } }; -export const RoleInstanceProperties: coreClient.CompositeMapper = { +export const CloudServiceRoleProfileProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleInstanceProperties", + className: "CloudServiceRoleProfileProperties", modelProperties: { - networkProfile: { - serializedName: "networkProfile", + name: { + serializedName: "name", type: { - name: "Composite", - className: "RoleInstanceNetworkProfile" + name: "String" } }, - instanceView: { - serializedName: "instanceView", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "RoleInstanceView" + className: "CloudServiceRoleSku" } } } } }; -export const RoleInstanceNetworkProfile: coreClient.CompositeMapper = { +export const CloudServiceOsProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleInstanceNetworkProfile", + className: "CloudServiceOsProfile", modelProperties: { - networkInterfaces: { - serializedName: "networkInterfaces", - readOnly: true, + secrets: { + serializedName: "secrets", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResource" + className: "CloudServiceVaultSecretGroup" } } } @@ -9294,41 +9783,26 @@ export const RoleInstanceNetworkProfile: coreClient.CompositeMapper = { } }; -export const RoleInstanceView: coreClient.CompositeMapper = { +export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleInstanceView", + className: "CloudServiceVaultSecretGroup", modelProperties: { - platformUpdateDomain: { - serializedName: "platformUpdateDomain", - readOnly: true, - type: { - name: "Number" - } - }, - platformFaultDomain: { - serializedName: "platformFaultDomain", - readOnly: true, - type: { - name: "Number" - } - }, - privateId: { - serializedName: "privateId", - readOnly: true, + sourceVault: { + serializedName: "sourceVault", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - statuses: { - serializedName: "statuses", - readOnly: true, + vaultCertificates: { + serializedName: "vaultCertificates", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourceInstanceViewStatus" + className: "CloudServiceVaultCertificate" } } } @@ -9337,164 +9811,144 @@ export const RoleInstanceView: coreClient.CompositeMapper = { } }; -export const ResourceInstanceViewStatus: coreClient.CompositeMapper = { +export const CloudServiceVaultCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceInstanceViewStatus", + className: "CloudServiceVaultCertificate", modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String" - } - }, - displayStatus: { - serializedName: "displayStatus", - readOnly: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - readOnly: true, + 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, - type: { - name: "String" - } - }, - location: { - serializedName: "location", - readOnly: true, + required: true, type: { name: "String" } }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "CloudServiceRoleSku" - } - }, properties: { serializedName: "properties", type: { name: "Composite", - className: "CloudServiceRoleProperties" + className: "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,152 +9957,101 @@ 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", - type: { - name: "Boolean" - } - }, - allowModelOverride: { - serializedName: "allowModelOverride", + autoUpgradeMinorVersion: { + serializedName: "autoUpgradeMinorVersion", type: { name: "Boolean" } }, - upgradeMode: { - serializedName: "upgradeMode", + settings: { + serializedName: "settings", type: { name: "String" } }, - roleProfile: { - serializedName: "roleProfile", - type: { - name: "Composite", - className: "CloudServiceRoleProfile" - } - }, - osProfile: { - serializedName: "osProfile", + protectedSettings: { + serializedName: "protectedSettings", type: { - name: "Composite", - className: "CloudServiceOsProfile" + name: "String" } }, - networkProfile: { - serializedName: "networkProfile", + protectedSettingsFromKeyVault: { + serializedName: "protectedSettingsFromKeyVault", type: { name: "Composite", - className: "CloudServiceNetworkProfile" + className: "CloudServiceVaultAndSecretReference" } }, - extensionProfile: { - serializedName: "extensionProfile", + forceUpdateTag: { + serializedName: "forceUpdateTag", type: { - name: "Composite", - className: "CloudServiceExtensionProfile" + name: "String" } }, provisioningState: { @@ -9658,73 +10061,99 @@ export const CloudServiceProperties: coreClient.CompositeMapper = { name: "String" } }, - uniqueId: { - serializedName: "uniqueId", - readOnly: true, + rolesAppliedTo: { + serializedName: "rolesAppliedTo", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const CloudServiceRoleProfile: coreClient.CompositeMapper = { +export const CloudServiceVaultAndSecretReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceRoleProfile", + className: "CloudServiceVaultAndSecretReference", modelProperties: { - roles: { - serializedName: "roles", + sourceVault: { + serializedName: "sourceVault", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CloudServiceRoleProfileProperties" - } - } + name: "Composite", + className: "SubResource" + } + }, + secretUrl: { + serializedName: "secretUrl", + type: { + name: "String" } } } } }; -export const CloudServiceRoleProfileProperties: coreClient.CompositeMapper = { +export const CloudServiceUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceRoleProfileProperties", + className: "CloudServiceUpdate", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - sku: { - serializedName: "sku", + tags: { + serializedName: "tags", type: { - name: "Composite", - className: "CloudServiceRoleSku" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const CloudServiceOsProfile: coreClient.CompositeMapper = { +export const CloudServiceInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceOsProfile", + className: "CloudServiceInstanceView", modelProperties: { - secrets: { - serializedName: "secrets", + roleInstance: { + serializedName: "roleInstance", + type: { + name: "Composite", + className: "InstanceViewStatusesSummary" + } + }, + sdkVersion: { + serializedName: "sdkVersion", + readOnly: true, + type: { + name: "String" + } + }, + privateIds: { + serializedName: "privateIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + statuses: { + serializedName: "statuses", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "CloudServiceVaultSecretGroup" + className: "ResourceInstanceViewStatus" } } } @@ -9733,26 +10162,20 @@ export const CloudServiceOsProfile: coreClient.CompositeMapper = { } }; -export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { +export const InstanceViewStatusesSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceVaultSecretGroup", + className: "InstanceViewStatusesSummary", modelProperties: { - sourceVault: { - serializedName: "sourceVault", - type: { - name: "Composite", - className: "SubResource" - } - }, - vaultCertificates: { - serializedName: "vaultCertificates", + statusesSummary: { + serializedName: "statusesSummary", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "CloudServiceVaultCertificate" + className: "StatusCodeCount" } } } @@ -9761,108 +10184,158 @@ export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { } }; -export const CloudServiceVaultCertificate: coreClient.CompositeMapper = { +export const StatusCodeCount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceVaultCertificate", + className: "StatusCodeCount", modelProperties: { - certificateUrl: { - serializedName: "certificateUrl", + code: { + serializedName: "code", + readOnly: true, type: { name: "String" } + }, + count: { + serializedName: "count", + readOnly: true, + type: { + name: "Number" + } } } } }; -export const CloudServiceNetworkProfile: coreClient.CompositeMapper = { +export const CloudServiceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceNetworkProfile", + className: "CloudServiceListResult", modelProperties: { - loadBalancerConfigurations: { - serializedName: "loadBalancerConfigurations", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "LoadBalancerConfiguration" + className: "CloudService" } } } }, - swappableCloudService: { - serializedName: "swappableCloudService", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "SubResource" + name: "String" } } } } }; -export const LoadBalancerConfiguration: coreClient.CompositeMapper = { +export const RoleInstances: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LoadBalancerConfiguration", + className: "RoleInstances", + modelProperties: { + roleInstances: { + serializedName: "roleInstances", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const UpdateDomain: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateDomain", modelProperties: { id: { serializedName: "id", + readOnly: true, type: { name: "String" } }, name: { serializedName: "name", - required: true, + readOnly: true, type: { name: "String" } - }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "LoadBalancerConfigurationProperties" - } } } } }; -export const LoadBalancerConfigurationProperties: coreClient.CompositeMapper = { +export const UpdateDomainListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LoadBalancerConfigurationProperties", + className: "UpdateDomainListResult", modelProperties: { - frontendIPConfigurations: { - serializedName: "frontendIPConfigurations", + value: { + serializedName: "value", required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "LoadBalancerFrontendIPConfiguration" + className: "UpdateDomain" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const LoadBalancerFrontendIPConfiguration: coreClient.CompositeMapper = { +export const OSVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LoadBalancerFrontendIPConfiguration", + className: "OSVersion", modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, name: { serializedName: "name", - required: true, + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } @@ -9871,153 +10344,164 @@ export const LoadBalancerFrontendIPConfiguration: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "LoadBalancerFrontendIPConfigurationProperties" + className: "OSVersionProperties" } } } } }; -export const LoadBalancerFrontendIPConfigurationProperties: coreClient.CompositeMapper = { +export const OSVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LoadBalancerFrontendIPConfigurationProperties", + className: "OSVersionProperties", modelProperties: { - publicIPAddress: { - serializedName: "publicIPAddress", + family: { + serializedName: "family", + readOnly: true, + type: { + name: "String" + } + }, + familyLabel: { + serializedName: "familyLabel", + readOnly: true, + type: { + name: "String" + } + }, + version: { + serializedName: "version", + readOnly: true, + type: { + name: "String" + } + }, + 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" } } } - } - } - } -}; - -export const Extension: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Extension", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } }, - properties: { - serializedName: "properties", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "CloudServiceExtensionProperties" + name: "String" } } } } }; -export const CloudServiceExtensionProperties: coreClient.CompositeMapper = { +export const OSFamily: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceExtensionProperties", + className: "OSFamily", modelProperties: { - publisher: { - serializedName: "publisher", - type: { - name: "String" - } - }, - type: { - serializedName: "type", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - typeHandlerVersion: { - serializedName: "typeHandlerVersion", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - autoUpgradeMinorVersion: { - serializedName: "autoUpgradeMinorVersion", - type: { - name: "Boolean" - } - }, - settings: { - serializedName: "settings", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - protectedSettings: { - serializedName: "protectedSettings", + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - protectedSettingsFromKeyVault: { - serializedName: "protectedSettingsFromKeyVault", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "CloudServiceVaultAndSecretReference" + className: "OSFamilyProperties" } - }, - forceUpdateTag: { - serializedName: "forceUpdateTag", + } + } + } +}; + +export const OSFamilyProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OSFamilyProperties", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "provisioningState", + label: { + serializedName: "label", readOnly: true, type: { name: "String" } }, - rolesAppliedTo: { - serializedName: "rolesAppliedTo", + versions: { + serializedName: "versions", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "OSVersionPropertiesBase" } } } @@ -10026,201 +10510,163 @@ export const CloudServiceExtensionProperties: coreClient.CompositeMapper = { } }; -export const CloudServiceVaultAndSecretReference: coreClient.CompositeMapper = { +export const OSVersionPropertiesBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceVaultAndSecretReference", + className: "OSVersionPropertiesBase", modelProperties: { - sourceVault: { - serializedName: "sourceVault", + version: { + serializedName: "version", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - secretUrl: { - serializedName: "secretUrl", + label: { + serializedName: "label", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const CloudServiceUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudServiceUpdate", - modelProperties: { - tags: { - serializedName: "tags", + }, + isDefault: { + serializedName: "isDefault", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" + } + }, + isActive: { + serializedName: "isActive", + readOnly: true, + type: { + name: "Boolean" } } } } }; -export const CloudServiceInstanceView: coreClient.CompositeMapper = { +export const OSFamilyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudServiceInstanceView", + className: "OSFamilyListResult", modelProperties: { - roleInstance: { - serializedName: "roleInstance", - type: { - name: "Composite", - className: "InstanceViewStatusesSummary" - } - }, - sdkVersion: { - serializedName: "sdkVersion", - readOnly: true, - type: { - name: "String" - } - }, - privateIds: { - serializedName: "privateIds", - readOnly: true, + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "OSFamily" } } } }, - statuses: { - serializedName: "statuses", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceInstanceViewStatus" - } - } + name: "String" } } } } }; -export const InstanceViewStatusesSummary: coreClient.CompositeMapper = { +export const DiskRestorePointReplicationStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceViewStatusesSummary", + className: "DiskRestorePointReplicationStatus", modelProperties: { - statusesSummary: { - serializedName: "statusesSummary", - readOnly: true, + status: { + serializedName: "status", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "StatusCodeCount" - } - } + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const StatusCodeCount: coreClient.CompositeMapper = { +export const CommunityGalleryInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StatusCodeCount", + className: "CommunityGalleryInfo", modelProperties: { - code: { - serializedName: "code", - readOnly: true, + publisherUri: { + serializedName: "publisherUri", type: { name: "String" } }, - count: { - serializedName: "count", + publisherContact: { + serializedName: "publisherContact", + type: { + name: "String" + } + }, + eula: { + serializedName: "eula", + type: { + name: "String" + } + }, + publicNamePrefix: { + serializedName: "publicNamePrefix", + type: { + name: "String" + } + }, + communityGalleryEnabled: { + serializedName: "communityGalleryEnabled", readOnly: true, type: { - name: "Number" + name: "Boolean" } - } - } - } -}; - -export const CloudServiceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudServiceListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, + }, + publicNames: { + serializedName: "publicNames", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "CloudService" + name: "String" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const RoleInstances: coreClient.CompositeMapper = { +export const GalleryArtifactSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleInstances", + className: "GalleryArtifactSource", modelProperties: { - roleInstances: { - serializedName: "roleInstances", - required: true, + managedImage: { + serializedName: "managedImage", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ManagedArtifact" } } } } }; -export const UpdateDomain: coreClient.CompositeMapper = { +export const ManagedArtifact: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateDomain", + className: "ManagedArtifact", modelProperties: { id: { serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, + required: true, type: { name: "String" } @@ -10229,149 +10675,225 @@ export const UpdateDomain: coreClient.CompositeMapper = { } }; -export const UpdateDomainListResult: coreClient.CompositeMapper = { +export const ImageReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateDomainListResult", + className: "ImageReference", modelProperties: { - value: { - serializedName: "value", - required: true, + ...SubResource.type.modelProperties, + publisher: { + serializedName: "publisher", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UpdateDomain" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + offer: { + serializedName: "offer", type: { name: "String" } - } - } - } -}; - -export const OSVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OSVersion", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, + }, + sku: { + serializedName: "sku", type: { name: "String" } }, - name: { - serializedName: "name", - readOnly: true, + version: { + serializedName: "version", type: { name: "String" } }, - type: { - serializedName: "type", + exactVersion: { + serializedName: "exactVersion", readOnly: true, type: { name: "String" } }, - location: { - serializedName: "location", - readOnly: true, + sharedGalleryImageId: { + serializedName: "sharedGalleryImageId", type: { name: "String" } }, - properties: { - serializedName: "properties", + communityGalleryImageId: { + serializedName: "communityGalleryImageId", type: { - name: "Composite", - className: "OSVersionProperties" + name: "String" } } } } }; -export const OSVersionProperties: coreClient.CompositeMapper = { +export const DiskEncryptionSetParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OSVersionProperties", + className: "DiskEncryptionSetParameters", modelProperties: { - family: { - serializedName: "family", - readOnly: true, + ...SubResource.type.modelProperties + } + } +}; + +export const VirtualMachineScaleSetIPConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetIPConfiguration", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - familyLabel: { - serializedName: "familyLabel", - readOnly: true, + subnet: { + serializedName: "properties.subnet", type: { - name: "String" + name: "Composite", + className: "ApiEntityReference" } }, - version: { - serializedName: "version", - readOnly: true, + primary: { + serializedName: "properties.primary", type: { - name: "String" + name: "Boolean" } }, - label: { - serializedName: "label", - readOnly: true, + publicIPAddressConfiguration: { + serializedName: "properties.publicIPAddressConfiguration", + type: { + name: "Composite", + className: "VirtualMachineScaleSetPublicIPAddressConfiguration" + } + }, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", type: { name: "String" } }, - isDefault: { - serializedName: "isDefault", - readOnly: true, + applicationGatewayBackendAddressPools: { + serializedName: "properties.applicationGatewayBackendAddressPools", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } }, - isActive: { - serializedName: "isActive", - readOnly: true, + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + loadBalancerBackendAddressPools: { + serializedName: "properties.loadBalancerBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + loadBalancerInboundNatPools: { + serializedName: "properties.loadBalancerInboundNatPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } } } } }; -export const OSVersionListResult: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetNetworkConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OSVersionListResult", + className: "VirtualMachineScaleSetNetworkConfiguration", modelProperties: { - value: { - serializedName: "value", + ...SubResource.type.modelProperties, + name: { + serializedName: "name", required: true, + type: { + name: "String" + } + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean" + } + }, + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", + type: { + name: "Boolean" + } + }, + enableFpga: { + serializedName: "properties.enableFpga", + type: { + name: "Boolean" + } + }, + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", + type: { + name: "Composite", + className: "SubResource" + } + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" + } + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "OSVersion" + className: "VirtualMachineScaleSetIPConfiguration" } } } }, - nextLink: { - serializedName: "nextLink", + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean" + } + }, + deleteOption: { + serializedName: "properties.deleteOption", type: { name: "String" } @@ -10380,243 +10902,212 @@ export const OSVersionListResult: coreClient.CompositeMapper = { } }; -export const OSFamily: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdateIPConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OSFamily", + className: "VirtualMachineScaleSetUpdateIPConfiguration", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, + ...SubResource.type.modelProperties, name: { serializedName: "name", - readOnly: true, type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + subnet: { + serializedName: "properties.subnet", type: { - name: "String" + name: "Composite", + className: "ApiEntityReference" } }, - location: { - serializedName: "location", - readOnly: true, + primary: { + serializedName: "properties.primary", type: { - name: "String" + name: "Boolean" } }, - properties: { - serializedName: "properties", + publicIPAddressConfiguration: { + serializedName: "properties.publicIPAddressConfiguration", type: { name: "Composite", - className: "OSFamilyProperties" - } - } - } - } -}; - -export const OSFamilyProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OSFamilyProperties", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" + className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration" } }, - label: { - serializedName: "label", - readOnly: true, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", type: { name: "String" } }, - versions: { - serializedName: "versions", - readOnly: true, + applicationGatewayBackendAddressPools: { + serializedName: "properties.applicationGatewayBackendAddressPools", type: { name: "Sequence", element: { type: { name: "Composite", - className: "OSVersionPropertiesBase" + className: "SubResource" } } } - } - } - } -}; - -export const OSVersionPropertiesBase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OSVersionPropertiesBase", - modelProperties: { - version: { - serializedName: "version", - readOnly: true, - type: { - name: "String" - } - }, - label: { - serializedName: "label", - readOnly: true, - type: { - name: "String" - } }, - isDefault: { - serializedName: "isDefault", - readOnly: true, + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } }, - isActive: { - serializedName: "isActive", - readOnly: true, - type: { - name: "Boolean" - } - } - } - } -}; - -export const OSFamilyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OSFamilyListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, + loadBalancerBackendAddressPools: { + serializedName: "properties.loadBalancerBackendAddressPools", type: { name: "Sequence", element: { type: { name: "Composite", - className: "OSFamily" + className: "SubResource" } } } }, - nextLink: { - serializedName: "nextLink", + loadBalancerInboundNatPools: { + serializedName: "properties.loadBalancerInboundNatPools", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } } } } }; -export const DiskRestorePointReplicationStatus: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdateNetworkConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskRestorePointReplicationStatus", + className: "VirtualMachineScaleSetUpdateNetworkConfiguration", modelProperties: { - status: { - serializedName: "status", + ...SubResource.type.modelProperties, + name: { + serializedName: "name", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } - } - } - } -}; - -export const CommunityGalleryInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CommunityGalleryInfo", - modelProperties: { - publisherUri: { - serializedName: "publisherUri", + }, + primary: { + serializedName: "properties.primary", type: { - name: "String" + name: "Boolean" } }, - publisherContact: { - serializedName: "publisherContact", + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", type: { - name: "String" + name: "Boolean" } }, - eula: { - serializedName: "eula", + enableFpga: { + serializedName: "properties.enableFpga", type: { - name: "String" + name: "Boolean" } }, - publicNamePrefix: { - serializedName: "publicNamePrefix", + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - communityGalleryEnabled: { - serializedName: "communityGalleryEnabled", - readOnly: true, + dnsSettings: { + serializedName: "properties.dnsSettings", type: { - name: "Boolean" + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" } }, - publicNames: { - serializedName: "publicNames", - readOnly: true, + ipConfigurations: { + serializedName: "properties.ipConfigurations", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "VirtualMachineScaleSetUpdateIPConfiguration" } } } + }, + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean" + } + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String" + } } } } }; -export const GalleryArtifactSource: coreClient.CompositeMapper = { +export const ManagedDiskParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryArtifactSource", + className: "ManagedDiskParameters", modelProperties: { - managedImage: { - serializedName: "managedImage", + ...SubResource.type.modelProperties, + storageAccountType: { + serializedName: "storageAccountType", + type: { + name: "String" + } + }, + diskEncryptionSet: { + serializedName: "diskEncryptionSet", type: { name: "Composite", - className: "ManagedArtifact" + className: "DiskEncryptionSetParameters" + } + }, + securityProfile: { + serializedName: "securityProfile", + type: { + name: "Composite", + className: "VMDiskSecurityProfile" } } } } }; -export const ManagedArtifact: coreClient.CompositeMapper = { +export const NetworkInterfaceReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedArtifact", + className: "NetworkInterfaceReference", modelProperties: { - id: { - serializedName: "id", - required: true, + ...SubResource.type.modelProperties, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean" + } + }, + deleteOption: { + serializedName: "properties.deleteOption", type: { name: "String" } @@ -10625,17 +11116,45 @@ export const ManagedArtifact: coreClient.CompositeMapper = { } }; -export const SubResourceWithColocationStatus: coreClient.CompositeMapper = { +export const VirtualMachineCaptureResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubResourceWithColocationStatus", + className: "VirtualMachineCaptureResult", modelProperties: { ...SubResource.type.modelProperties, - colocationStatus: { - serializedName: "colocationStatus", + schema: { + serializedName: "$schema", + readOnly: true, type: { - name: "Composite", - className: "InstanceViewStatus" + name: "String" + } + }, + contentVersion: { + serializedName: "contentVersion", + readOnly: true, + type: { + name: "String" + } + }, + parameters: { + serializedName: "parameters", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + resources: { + serializedName: "resources", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } } } } @@ -10680,496 +11199,424 @@ export const VirtualMachineImageResource: coreClient.CompositeMapper = { } }; -export const ImageReference: coreClient.CompositeMapper = { +export const SubResourceWithColocationStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageReference", + className: "SubResourceWithColocationStatus", modelProperties: { ...SubResource.type.modelProperties, - publisher: { - serializedName: "publisher", + colocationStatus: { + serializedName: "colocationStatus", + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } + } + } +}; + +export const VirtualMachineScaleSetExtension: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtension", + modelProperties: { + ...SubResourceReadOnly.type.modelProperties, + name: { + serializedName: "name", type: { name: "String" } }, - offer: { - serializedName: "offer", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - sku: { - serializedName: "sku", + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", type: { name: "String" } }, - version: { - serializedName: "version", + publisher: { + serializedName: "properties.publisher", type: { name: "String" } }, - exactVersion: { - serializedName: "exactVersion", - readOnly: true, + typePropertiesType: { + serializedName: "properties.type", type: { name: "String" } }, - sharedGalleryImageId: { - serializedName: "sharedGalleryImageId", + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", type: { name: "String" } }, - communityGalleryImageId: { - serializedName: "communityGalleryImageId", + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const DiskEncryptionSetParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiskEncryptionSetParameters", - modelProperties: { - ...SubResource.type.modelProperties - } - } -}; - -export const ManagedDiskParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedDiskParameters", - modelProperties: { - ...SubResource.type.modelProperties, - storageAccountType: { - serializedName: "storageAccountType", + }, + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", type: { - name: "String" + name: "Boolean" } }, - diskEncryptionSet: { - serializedName: "diskEncryptionSet", + settings: { + serializedName: "properties.settings", type: { - name: "Composite", - className: "DiskEncryptionSetParameters" + name: "Dictionary", + value: { type: { name: "any" } } } }, - securityProfile: { - serializedName: "securityProfile", + protectedSettings: { + serializedName: "properties.protectedSettings", type: { - name: "Composite", - className: "VMDiskSecurityProfile" + name: "Dictionary", + value: { type: { name: "any" } } } - } - } - } -}; - -export const NetworkInterfaceReference: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkInterfaceReference", - modelProperties: { - ...SubResource.type.modelProperties, - primary: { - serializedName: "properties.primary", + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + provisionAfterExtensions: { + serializedName: "properties.provisionAfterExtensions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + 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 VirtualMachineScaleSetIPConfiguration: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetExtensionUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetIPConfiguration", + className: "VirtualMachineScaleSetExtensionUpdate", modelProperties: { - ...SubResource.type.modelProperties, + ...SubResourceReadOnly.type.modelProperties, name: { serializedName: "name", - required: true, + readOnly: true, type: { name: "String" } }, - 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: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - applicationGatewayBackendAddressPools: { - serializedName: "properties.applicationGatewayBackendAddressPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - applicationSecurityGroups: { - serializedName: "properties.applicationSecurityGroups", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - loadBalancerBackendAddressPools: { - serializedName: "properties.loadBalancerBackendAddressPools", + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } }, - loadBalancerInboundNatPools: { - serializedName: "properties.loadBalancerInboundNatPools", + publisher: { + serializedName: "properties.publisher", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } - } - } - } -}; - -export const VirtualMachineScaleSetNetworkConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfiguration", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", - required: true, + }, + typePropertiesType: { + serializedName: "properties.type", type: { name: "String" } }, - primary: { - serializedName: "properties.primary", + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", type: { - name: "Boolean" + name: "String" } }, - enableAcceleratedNetworking: { - serializedName: "properties.enableAcceleratedNetworking", + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", type: { name: "Boolean" } }, - enableFpga: { - serializedName: "properties.enableFpga", + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", type: { name: "Boolean" } }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", + settings: { + serializedName: "properties.settings", type: { - name: "Composite", - className: "SubResource" + name: "Dictionary", + value: { type: { name: "any" } } } }, - dnsSettings: { - serializedName: "properties.dnsSettings", + protectedSettings: { + serializedName: "properties.protectedSettings", type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" + name: "Dictionary", + value: { type: { name: "any" } } } }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + provisionAfterExtensions: { + serializedName: "properties.provisionAfterExtensions", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "VirtualMachineScaleSetIPConfiguration" + name: "String" } } } }, - enableIPForwarding: { - serializedName: "properties.enableIPForwarding", + suppressFailures: { + serializedName: "properties.suppressFailures", type: { name: "Boolean" } }, - deleteOption: { - serializedName: "properties.deleteOption", + protectedSettingsFromKeyVault: { + serializedName: "properties.protectedSettingsFromKeyVault", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const VirtualMachineCaptureResult: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVMExtension: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineCaptureResult", + className: "VirtualMachineScaleSetVMExtension", modelProperties: { - ...SubResource.type.modelProperties, - schema: { - serializedName: "$schema", + ...SubResourceReadOnly.type.modelProperties, + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - contentVersion: { - serializedName: "contentVersion", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - parameters: { - serializedName: "parameters", - readOnly: true, + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - resources: { - serializedName: "resources", - readOnly: true, + publisher: { + serializedName: "properties.publisher", type: { - name: "Sequence", - element: { - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } + name: "String" } - } - } - } -}; - -export const VirtualMachineScaleSetUpdateIPConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateIPConfiguration", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + }, + typePropertiesType: { + serializedName: "properties.type", type: { name: "String" } }, - subnet: { - serializedName: "properties.subnet", + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", type: { - name: "Composite", - className: "ApiEntityReference" + name: "String" } }, - primary: { - serializedName: "properties.primary", + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", type: { name: "Boolean" } }, - publicIPAddressConfiguration: { - serializedName: "properties.publicIPAddressConfiguration", + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration" + name: "Boolean" } }, - privateIPAddressVersion: { - serializedName: "properties.privateIPAddressVersion", + settings: { + serializedName: "properties.settings", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - applicationGatewayBackendAddressPools: { - serializedName: "properties.applicationGatewayBackendAddressPools", + protectedSettings: { + serializedName: "properties.protectedSettings", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Dictionary", + value: { type: { name: "any" } } } }, - applicationSecurityGroups: { - serializedName: "properties.applicationSecurityGroups", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } }, - loadBalancerBackendAddressPools: { - serializedName: "properties.loadBalancerBackendAddressPools", + instanceView: { + serializedName: "properties.instanceView", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Composite", + className: "VirtualMachineExtensionInstanceView" } }, - loadBalancerInboundNatPools: { - serializedName: "properties.loadBalancerInboundNatPools", + suppressFailures: { + serializedName: "properties.suppressFailures", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Boolean" + } + }, + protectedSettingsFromKeyVault: { + serializedName: "properties.protectedSettingsFromKeyVault", + type: { + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const VirtualMachineScaleSetUpdateNetworkConfiguration: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetVMExtensionUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkConfiguration", + className: "VirtualMachineScaleSetVMExtensionUpdate", modelProperties: { - ...SubResource.type.modelProperties, + ...SubResourceReadOnly.type.modelProperties, name: { serializedName: "name", + readOnly: true, type: { name: "String" } }, - primary: { - serializedName: "properties.primary", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - enableAcceleratedNetworking: { - serializedName: "properties.enableAcceleratedNetworking", + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", type: { - name: "Boolean" + name: "String" + } + }, + publisher: { + serializedName: "properties.publisher", + type: { + name: "String" + } + }, + typePropertiesType: { + serializedName: "properties.type", + type: { + name: "String" + } + }, + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", + type: { + name: "String" } }, - enableFpga: { - serializedName: "properties.enableFpga", + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", type: { name: "Boolean" } }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", type: { - name: "Composite", - className: "SubResource" + name: "Boolean" } }, - dnsSettings: { - serializedName: "properties.dnsSettings", + settings: { + serializedName: "properties.settings", type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" + name: "Dictionary", + value: { type: { name: "any" } } } }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + protectedSettings: { + serializedName: "properties.protectedSettings", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateIPConfiguration" - } - } + name: "Dictionary", + value: { type: { name: "any" } } } }, - enableIPForwarding: { - serializedName: "properties.enableIPForwarding", + suppressFailures: { + serializedName: "properties.suppressFailures", type: { name: "Boolean" } }, - deleteOption: { - serializedName: "properties.deleteOption", + protectedSettingsFromKeyVault: { + serializedName: "properties.protectedSettingsFromKeyVault", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const AvailabilitySet: coreClient.CompositeMapper = { +export const VirtualMachineScaleSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailabilitySet", + className: "VirtualMachineScaleSet", modelProperties: { ...Resource.type.modelProperties, sku: { @@ -11179,250 +11626,142 @@ export const AvailabilitySet: coreClient.CompositeMapper = { className: "Sku" } }, - platformUpdateDomainCount: { - serializedName: "properties.platformUpdateDomainCount", + plan: { + serializedName: "plan", type: { - name: "Number" + name: "Composite", + className: "Plan" } }, - platformFaultDomainCount: { - serializedName: "properties.platformFaultDomainCount", + identity: { + serializedName: "identity", type: { - name: "Number" + name: "Composite", + className: "VirtualMachineScaleSetIdentity" } }, - virtualMachines: { - serializedName: "properties.virtualMachines", + zones: { + serializedName: "zones", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SubResource" + name: "String" } } } }, - proximityPlacementGroup: { - serializedName: "properties.proximityPlacementGroup", + extendedLocation: { + serializedName: "extendedLocation", type: { name: "Composite", - className: "SubResource" + className: "ExtendedLocation" } }, - statuses: { - serializedName: "properties.statuses", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } -}; - -export const ProximityPlacementGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProximityPlacementGroup", - modelProperties: { - ...Resource.type.modelProperties, - proximityPlacementGroupType: { - serializedName: "properties.proximityPlacementGroupType", + upgradePolicy: { + serializedName: "properties.upgradePolicy", type: { - name: "String" + name: "Composite", + className: "UpgradePolicy" } }, - virtualMachines: { - serializedName: "properties.virtualMachines", - readOnly: true, + automaticRepairsPolicy: { + serializedName: "properties.automaticRepairsPolicy", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceWithColocationStatus" - } - } + name: "Composite", + className: "AutomaticRepairsPolicy" } }, - virtualMachineScaleSets: { - serializedName: "properties.virtualMachineScaleSets", - readOnly: true, + virtualMachineProfile: { + serializedName: "properties.virtualMachineProfile", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceWithColocationStatus" - } - } + name: "Composite", + className: "VirtualMachineScaleSetVMProfile" } }, - availabilitySets: { - serializedName: "properties.availabilitySets", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceWithColocationStatus" - } - } + name: "String" } }, - colocationStatus: { - serializedName: "properties.colocationStatus", - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } - } -}; - -export const DedicatedHostGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHostGroup", - modelProperties: { - ...Resource.type.modelProperties, - zones: { - serializedName: "zones", + overprovision: { + serializedName: "properties.overprovision", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - platformFaultDomainCount: { - constraints: { - InclusiveMinimum: 1 - }, - serializedName: "properties.platformFaultDomainCount", + doNotRunExtensionsOnOverprovisionedVMs: { + serializedName: "properties.doNotRunExtensionsOnOverprovisionedVMs", type: { - name: "Number" + name: "Boolean" } }, - hosts: { - serializedName: "properties.hosts", + uniqueId: { + serializedName: "properties.uniqueId", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } + name: "String" } }, - instanceView: { - serializedName: "properties.instanceView", + singlePlacementGroup: { + serializedName: "properties.singlePlacementGroup", type: { - name: "Composite", - className: "DedicatedHostGroupInstanceView" + name: "Boolean" } }, - supportAutomaticPlacement: { - serializedName: "properties.supportAutomaticPlacement", + zoneBalance: { + serializedName: "properties.zoneBalance", type: { name: "Boolean" } - } - } - } -}; - -export const DedicatedHost: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHost", - modelProperties: { - ...Resource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } }, - platformFaultDomain: { - constraints: { - InclusiveMinimum: 0 - }, - serializedName: "properties.platformFaultDomain", + platformFaultDomainCount: { + serializedName: "properties.platformFaultDomainCount", type: { name: "Number" } }, - autoReplaceOnFailure: { - serializedName: "properties.autoReplaceOnFailure", - type: { - name: "Boolean" - } - }, - hostId: { - serializedName: "properties.hostId", - readOnly: true, + proximityPlacementGroup: { + serializedName: "properties.proximityPlacementGroup", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - virtualMachines: { - serializedName: "properties.virtualMachines", - readOnly: true, + hostGroup: { + serializedName: "properties.hostGroup", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } + name: "Composite", + className: "SubResource" } }, - licenseType: { - serializedName: "properties.licenseType", + additionalCapabilities: { + serializedName: "properties.additionalCapabilities", type: { - name: "Enum", - allowedValues: [ - "None", - "Windows_Server_Hybrid", - "Windows_Server_Perpetual" - ] + name: "Composite", + className: "AdditionalCapabilities" } }, - provisioningTime: { - serializedName: "properties.provisioningTime", - readOnly: true, + scaleInPolicy: { + serializedName: "properties.scaleInPolicy", type: { - name: "DateTime" + name: "Composite", + className: "ScaleInPolicy" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + orchestrationMode: { + serializedName: "properties.orchestrationMode", type: { name: "String" } }, - instanceView: { - serializedName: "properties.instanceView", + spotRestorePolicy: { + serializedName: "properties.spotRestorePolicy", type: { name: "Composite", - className: "DedicatedHostInstanceView" + className: "SpotRestorePolicy" } }, timeCreated: { @@ -11436,56 +11775,38 @@ export const DedicatedHost: coreClient.CompositeMapper = { } }; -export const SshPublicKeyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SshPublicKeyResource", - modelProperties: { - ...Resource.type.modelProperties, - publicKey: { - serializedName: "properties.publicKey", - type: { - name: "String" - } - } - } - } -}; - -export const 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" } } } @@ -11562,17 +11883,190 @@ export const VirtualMachineExtension: coreClient.CompositeMapper = { className: "VirtualMachineExtensionInstanceView" } }, - suppressFailures: { - serializedName: "properties.suppressFailures", + suppressFailures: { + serializedName: "properties.suppressFailures", + type: { + name: "Boolean" + } + }, + protectedSettingsFromKeyVault: { + serializedName: "properties.protectedSettingsFromKeyVault", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } +}; + +export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVM", + modelProperties: { + ...Resource.type.modelProperties, + instanceId: { + serializedName: "instanceId", + readOnly: true, + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + plan: { + serializedName: "plan", + type: { + name: "Composite", + className: "Plan" + } + }, + resources: { + serializedName: "resources", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineExtension" + } + } + } + }, + zones: { + serializedName: "zones", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + latestModelApplied: { + serializedName: "properties.latestModelApplied", + readOnly: true, + type: { + name: "Boolean" + } + }, + vmId: { + serializedName: "properties.vmId", + readOnly: true, + type: { + name: "String" + } + }, + instanceView: { + serializedName: "properties.instanceView", + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMInstanceView" + } + }, + hardwareProfile: { + serializedName: "properties.hardwareProfile", + type: { + name: "Composite", + className: "HardwareProfile" + } + }, + storageProfile: { + serializedName: "properties.storageProfile", + type: { + name: "Composite", + className: "StorageProfile" + } + }, + additionalCapabilities: { + serializedName: "properties.additionalCapabilities", + type: { + name: "Composite", + className: "AdditionalCapabilities" + } + }, + osProfile: { + serializedName: "properties.osProfile", + type: { + name: "Composite", + className: "OSProfile" + } + }, + securityProfile: { + serializedName: "properties.securityProfile", + type: { + name: "Composite", + className: "SecurityProfile" + } + }, + networkProfile: { + serializedName: "properties.networkProfile", + type: { + name: "Composite", + className: "NetworkProfile" + } + }, + networkProfileConfiguration: { + serializedName: "properties.networkProfileConfiguration", + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMNetworkProfileConfiguration" + } + }, + diagnosticsProfile: { + serializedName: "properties.diagnosticsProfile", + type: { + name: "Composite", + className: "DiagnosticsProfile" + } + }, + availabilitySet: { + serializedName: "properties.availabilitySet", + type: { + name: "Composite", + className: "SubResource" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + licenseType: { + serializedName: "properties.licenseType", + type: { + name: "String" + } + }, + modelDefinitionApplied: { + serializedName: "properties.modelDefinitionApplied", + readOnly: true, + type: { + name: "String" + } + }, + protectionPolicy: { + serializedName: "properties.protectionPolicy", type: { - name: "Boolean" + name: "Composite", + className: "VirtualMachineScaleSetVMProtectionPolicy" } }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", + userData: { + serializedName: "properties.userData", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } } } @@ -11810,108 +12304,63 @@ export const VirtualMachine: coreClient.CompositeMapper = { } }; -export const VirtualMachineScaleSet: coreClient.CompositeMapper = { +export const VirtualMachineExtensionImage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSet", + className: "VirtualMachineExtensionImage", modelProperties: { ...Resource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - plan: { - serializedName: "plan", - type: { - name: "Composite", - className: "Plan" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "VirtualMachineScaleSetIdentity" - } - }, - zones: { - serializedName: "zones", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - extendedLocation: { - serializedName: "extendedLocation", - type: { - name: "Composite", - className: "ExtendedLocation" - } - }, - upgradePolicy: { - serializedName: "properties.upgradePolicy", - type: { - name: "Composite", - className: "UpgradePolicy" - } - }, - automaticRepairsPolicy: { - serializedName: "properties.automaticRepairsPolicy", + operatingSystem: { + serializedName: "properties.operatingSystem", type: { - name: "Composite", - className: "AutomaticRepairsPolicy" + name: "String" } }, - virtualMachineProfile: { - serializedName: "properties.virtualMachineProfile", + computeRole: { + serializedName: "properties.computeRole", type: { - name: "Composite", - className: "VirtualMachineScaleSetVMProfile" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + handlerSchema: { + serializedName: "properties.handlerSchema", type: { name: "String" } }, - overprovision: { - serializedName: "properties.overprovision", + vmScaleSetEnabled: { + serializedName: "properties.vmScaleSetEnabled", type: { name: "Boolean" } }, - doNotRunExtensionsOnOverprovisionedVMs: { - serializedName: "properties.doNotRunExtensionsOnOverprovisionedVMs", + supportsMultipleExtensions: { + serializedName: "properties.supportsMultipleExtensions", type: { name: "Boolean" } - }, - uniqueId: { - serializedName: "properties.uniqueId", - readOnly: true, - type: { - name: "String" - } - }, - singlePlacementGroup: { - serializedName: "properties.singlePlacementGroup", + } + } + } +}; + +export const AvailabilitySet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AvailabilitySet", + modelProperties: { + ...Resource.type.modelProperties, + sku: { + serializedName: "sku", type: { - name: "Boolean" + name: "Composite", + className: "Sku" } }, - zoneBalance: { - serializedName: "properties.zoneBalance", + platformUpdateDomainCount: { + serializedName: "properties.platformUpdateDomainCount", type: { - name: "Boolean" + name: "Number" } }, platformFaultDomainCount: { @@ -11920,150 +12369,126 @@ export const VirtualMachineScaleSet: coreClient.CompositeMapper = { name: "Number" } }, - proximityPlacementGroup: { - serializedName: "properties.proximityPlacementGroup", + virtualMachines: { + serializedName: "properties.virtualMachines", type: { - name: "Composite", - className: "SubResource" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } }, - hostGroup: { - serializedName: "properties.hostGroup", + proximityPlacementGroup: { + serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", className: "SubResource" } }, - additionalCapabilities: { - serializedName: "properties.additionalCapabilities", - type: { - name: "Composite", - className: "AdditionalCapabilities" - } - }, - scaleInPolicy: { - serializedName: "properties.scaleInPolicy", - type: { - name: "Composite", - className: "ScaleInPolicy" - } - }, - orchestrationMode: { - serializedName: "properties.orchestrationMode", - type: { - name: "String" - } - }, - spotRestorePolicy: { - serializedName: "properties.spotRestorePolicy", - type: { - name: "Composite", - className: "SpotRestorePolicy" - } - }, - timeCreated: { - serializedName: "properties.timeCreated", + statuses: { + serializedName: "properties.statuses", readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } } } } } }; -export const Image: coreClient.CompositeMapper = { +export const ProximityPlacementGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Image", + className: "ProximityPlacementGroup", modelProperties: { ...Resource.type.modelProperties, - extendedLocation: { - serializedName: "extendedLocation", - type: { - name: "Composite", - className: "ExtendedLocation" - } - }, - sourceVirtualMachine: { - serializedName: "properties.sourceVirtualMachine", - type: { - name: "Composite", - className: "SubResource" - } - }, - storageProfile: { - serializedName: "properties.storageProfile", - type: { - name: "Composite", - className: "ImageStorageProfile" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + zones: { + serializedName: "zones", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - hyperVGeneration: { - serializedName: "properties.hyperVGeneration", + proximityPlacementGroupType: { + serializedName: "properties.proximityPlacementGroupType", type: { name: "String" } - } - } - } -}; - -export const RestorePointCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePointCollection", - modelProperties: { - ...Resource.type.modelProperties, - source: { - serializedName: "properties.source", - type: { - name: "Composite", - className: "RestorePointCollectionSourceProperties" - } }, - provisioningState: { - serializedName: "properties.provisioningState", + virtualMachines: { + serializedName: "properties.virtualMachines", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceWithColocationStatus" + } + } } }, - restorePointCollectionId: { - serializedName: "properties.restorePointCollectionId", + virtualMachineScaleSets: { + serializedName: "properties.virtualMachineScaleSets", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceWithColocationStatus" + } + } } }, - restorePoints: { - serializedName: "properties.restorePoints", + availabilitySets: { + serializedName: "properties.availabilitySets", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "RestorePoint" + className: "SubResourceWithColocationStatus" } } } + }, + colocationStatus: { + serializedName: "properties.colocationStatus", + type: { + name: "Composite", + className: "InstanceViewStatus" + } + }, + intent: { + serializedName: "properties.intent", + type: { + name: "Composite", + className: "ProximityPlacementGroupPropertiesIntent" + } } } } }; -export const CapacityReservationGroup: coreClient.CompositeMapper = { +export const DedicatedHostGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CapacityReservationGroup", + className: "DedicatedHostGroup", modelProperties: { ...Resource.type.modelProperties, zones: { @@ -12077,21 +12502,17 @@ export const CapacityReservationGroup: coreClient.CompositeMapper = { } } }, - capacityReservations: { - serializedName: "properties.capacityReservations", - readOnly: true, + platformFaultDomainCount: { + constraints: { + InclusiveMinimum: 1 + }, + serializedName: "properties.platformFaultDomainCount", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } + name: "Number" } }, - virtualMachinesAssociated: { - serializedName: "properties.virtualMachinesAssociated", + hosts: { + serializedName: "properties.hosts", readOnly: true, type: { name: "Sequence", @@ -12107,17 +12528,30 @@ export const CapacityReservationGroup: coreClient.CompositeMapper = { serializedName: "properties.instanceView", type: { name: "Composite", - className: "CapacityReservationGroupInstanceView" + className: "DedicatedHostGroupInstanceView" + } + }, + supportAutomaticPlacement: { + serializedName: "properties.supportAutomaticPlacement", + type: { + name: "Boolean" + } + }, + additionalCapabilities: { + serializedName: "properties.additionalCapabilities", + type: { + name: "Composite", + className: "DedicatedHostGroupPropertiesAdditionalCapabilities" } } } } }; -export const CapacityReservation: coreClient.CompositeMapper = { +export const DedicatedHost: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CapacityReservation", + className: "DedicatedHost", modelProperties: { ...Resource.type.modelProperties, sku: { @@ -12127,26 +12561,30 @@ export const CapacityReservation: coreClient.CompositeMapper = { className: "Sku" } }, - zones: { - serializedName: "zones", + platformFaultDomain: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "properties.platformFaultDomain", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - reservationId: { - serializedName: "properties.reservationId", + autoReplaceOnFailure: { + serializedName: "properties.autoReplaceOnFailure", + type: { + name: "Boolean" + } + }, + hostId: { + serializedName: "properties.hostId", readOnly: true, type: { name: "String" } }, - virtualMachinesAssociated: { - serializedName: "properties.virtualMachinesAssociated", + virtualMachines: { + serializedName: "properties.virtualMachines", readOnly: true, type: { name: "Sequence", @@ -12158,6 +12596,17 @@ export const CapacityReservation: coreClient.CompositeMapper = { } } }, + licenseType: { + serializedName: "properties.licenseType", + type: { + name: "Enum", + allowedValues: [ + "None", + "Windows_Server_Hybrid", + "Windows_Server_Perpetual" + ] + } + }, provisioningTime: { serializedName: "properties.provisioningTime", readOnly: true, @@ -12176,7 +12625,7 @@ export const CapacityReservation: coreClient.CompositeMapper = { serializedName: "properties.instanceView", type: { name: "Composite", - className: "CapacityReservationInstanceView" + className: "DedicatedHostInstanceView" } }, timeCreated: { @@ -12190,178 +12639,47 @@ export const CapacityReservation: coreClient.CompositeMapper = { } }; -export const RollingUpgradeStatusInfo: coreClient.CompositeMapper = { +export const SshPublicKeyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RollingUpgradeStatusInfo", + className: "SshPublicKeyResource", modelProperties: { ...Resource.type.modelProperties, - policy: { - serializedName: "properties.policy", - type: { - name: "Composite", - className: "RollingUpgradePolicy" - } - }, - runningStatus: { - serializedName: "properties.runningStatus", - type: { - name: "Composite", - className: "RollingUpgradeRunningStatus" - } - }, - progress: { - serializedName: "properties.progress", - type: { - name: "Composite", - className: "RollingUpgradeProgressInfo" - } - }, - error: { - serializedName: "properties.error", + publicKey: { + serializedName: "properties.publicKey", type: { - name: "Composite", - className: "ApiError" + name: "String" } } } } }; -export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { +export const Image: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVM", + className: "Image", modelProperties: { ...Resource.type.modelProperties, - instanceId: { - serializedName: "instanceId", - readOnly: true, - type: { - name: "String" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - plan: { - serializedName: "plan", - type: { - name: "Composite", - className: "Plan" - } - }, - resources: { - serializedName: "resources", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineExtension" - } - } - } - }, - zones: { - serializedName: "zones", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - latestModelApplied: { - serializedName: "properties.latestModelApplied", - readOnly: true, - type: { - name: "Boolean" - } - }, - vmId: { - serializedName: "properties.vmId", - readOnly: true, - type: { - name: "String" - } - }, - instanceView: { - serializedName: "properties.instanceView", - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMInstanceView" - } - }, - hardwareProfile: { - serializedName: "properties.hardwareProfile", - type: { - name: "Composite", - className: "HardwareProfile" - } - }, - storageProfile: { - serializedName: "properties.storageProfile", - type: { - name: "Composite", - className: "StorageProfile" - } - }, - additionalCapabilities: { - serializedName: "properties.additionalCapabilities", - type: { - name: "Composite", - className: "AdditionalCapabilities" - } - }, - osProfile: { - serializedName: "properties.osProfile", - type: { - name: "Composite", - className: "OSProfile" - } - }, - securityProfile: { - serializedName: "properties.securityProfile", - type: { - name: "Composite", - className: "SecurityProfile" - } - }, - networkProfile: { - serializedName: "properties.networkProfile", - type: { - name: "Composite", - className: "NetworkProfile" - } - }, - networkProfileConfiguration: { - serializedName: "properties.networkProfileConfiguration", + extendedLocation: { + serializedName: "extendedLocation", type: { name: "Composite", - className: "VirtualMachineScaleSetVMNetworkProfileConfiguration" + className: "ExtendedLocation" } }, - diagnosticsProfile: { - serializedName: "properties.diagnosticsProfile", + sourceVirtualMachine: { + serializedName: "properties.sourceVirtualMachine", type: { name: "Composite", - className: "DiagnosticsProfile" + className: "SubResource" } }, - availabilitySet: { - serializedName: "properties.availabilitySet", + storageProfile: { + serializedName: "properties.storageProfile", type: { name: "Composite", - className: "SubResource" + className: "ImageStorageProfile" } }, provisioningState: { @@ -12371,158 +12689,125 @@ export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { name: "String" } }, - licenseType: { - serializedName: "properties.licenseType", + hyperVGeneration: { + serializedName: "properties.hyperVGeneration", type: { name: "String" } + } + } + } +}; + +export const RestorePointCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorePointCollection", + modelProperties: { + ...Resource.type.modelProperties, + source: { + serializedName: "properties.source", + type: { + name: "Composite", + className: "RestorePointCollectionSourceProperties" + } }, - modelDefinitionApplied: { - serializedName: "properties.modelDefinitionApplied", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - protectionPolicy: { - serializedName: "properties.protectionPolicy", + restorePointCollectionId: { + serializedName: "properties.restorePointCollectionId", + readOnly: true, type: { - name: "Composite", - className: "VirtualMachineScaleSetVMProtectionPolicy" + name: "String" } }, - userData: { - serializedName: "properties.userData", + restorePoints: { + serializedName: "properties.restorePoints", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorePoint" + } + } } } } } }; -export const VirtualMachineRunCommand: coreClient.CompositeMapper = { +export const CapacityReservationGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineRunCommand", + className: "CapacityReservationGroup", modelProperties: { ...Resource.type.modelProperties, - source: { - serializedName: "properties.source", - type: { - name: "Composite", - className: "VirtualMachineRunCommandScriptSource" - } - }, - parameters: { - serializedName: "properties.parameters", + zones: { + serializedName: "zones", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "RunCommandInputParameter" + name: "String" } } } }, - protectedParameters: { - serializedName: "properties.protectedParameters", + capacityReservations: { + serializedName: "properties.capacityReservations", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "RunCommandInputParameter" + className: "SubResourceReadOnly" } } } }, - asyncExecution: { - defaultValue: false, - serializedName: "properties.asyncExecution", - type: { - name: "Boolean" - } - }, - runAsUser: { - serializedName: "properties.runAsUser", - type: { - name: "String" - } - }, - runAsPassword: { - serializedName: "properties.runAsPassword", - type: { - name: "String" - } - }, - timeoutInSeconds: { - serializedName: "properties.timeoutInSeconds", - type: { - name: "Number" - } - }, - outputBlobUri: { - serializedName: "properties.outputBlobUri", - type: { - name: "String" - } - }, - errorBlobUri: { - serializedName: "properties.errorBlobUri", - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", + virtualMachinesAssociated: { + serializedName: "properties.virtualMachinesAssociated", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } } }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineRunCommandInstanceView" + className: "CapacityReservationGroupInstanceView" } } } } }; -export const Disk: coreClient.CompositeMapper = { +export const CapacityReservation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Disk", + className: "CapacityReservation", modelProperties: { ...Resource.type.modelProperties, - managedBy: { - serializedName: "managedBy", - readOnly: true, - type: { - name: "String" - } - }, - managedByExtended: { - serializedName: "managedByExtended", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, sku: { serializedName: "sku", type: { name: "Composite", - className: "DiskSku" + className: "Sku" } }, zones: { @@ -12536,215 +12821,154 @@ export const Disk: coreClient.CompositeMapper = { } } }, - extendedLocation: { - serializedName: "extendedLocation", - type: { - name: "Composite", - className: "ExtendedLocation" - } - }, - timeCreated: { - serializedName: "properties.timeCreated", - 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" - } - }, - supportedCapabilities: { - serializedName: "properties.supportedCapabilities", - type: { - name: "Composite", - className: "SupportedCapabilities" - } - }, - creationData: { - serializedName: "properties.creationData", - 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", + reservationId: { + serializedName: "properties.reservationId", readOnly: true, type: { name: "String" } }, - encryptionSettingsCollection: { - serializedName: "properties.encryptionSettingsCollection", - type: { - name: "Composite", - className: "EncryptionSettingsCollection" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", + virtualMachinesAssociated: { + serializedName: "properties.virtualMachinesAssociated", readOnly: true, type: { - name: "String" - } - }, - diskIopsReadWrite: { - serializedName: "properties.diskIOPSReadWrite", - type: { - name: "Number" - } - }, - diskMBpsReadWrite: { - serializedName: "properties.diskMBpsReadWrite", - type: { - name: "Number" - } - }, - diskIopsReadOnly: { - serializedName: "properties.diskIOPSReadOnly", - type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } } }, - diskMBpsReadOnly: { - serializedName: "properties.diskMBpsReadOnly", + provisioningTime: { + serializedName: "properties.provisioningTime", + readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - diskState: { - serializedName: "properties.diskState", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - encryption: { - serializedName: "properties.encryption", + instanceView: { + serializedName: "properties.instanceView", type: { name: "Composite", - className: "Encryption" + className: "CapacityReservationInstanceView" } }, - maxShares: { - serializedName: "properties.maxShares", + timeCreated: { + serializedName: "properties.timeCreated", + readOnly: true, type: { - name: "Number" + name: "DateTime" + } + } + } + } +}; + +export const VirtualMachineRunCommand: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineRunCommand", + modelProperties: { + ...Resource.type.modelProperties, + source: { + serializedName: "properties.source", + type: { + name: "Composite", + className: "VirtualMachineRunCommandScriptSource" } }, - shareInfo: { - serializedName: "properties.shareInfo", - readOnly: true, + parameters: { + serializedName: "properties.parameters", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ShareInfoElement" + className: "RunCommandInputParameter" } } } }, - networkAccessPolicy: { - serializedName: "properties.networkAccessPolicy", + protectedParameters: { + serializedName: "properties.protectedParameters", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandInputParameter" + } + } } }, - diskAccessId: { - serializedName: "properties.diskAccessId", + asyncExecution: { + defaultValue: false, + serializedName: "properties.asyncExecution", type: { - name: "String" + name: "Boolean" } }, - tier: { - serializedName: "properties.tier", + runAsUser: { + serializedName: "properties.runAsUser", type: { name: "String" } }, - burstingEnabled: { - serializedName: "properties.burstingEnabled", - type: { - name: "Boolean" - } - }, - propertyUpdatesInProgress: { - serializedName: "properties.propertyUpdatesInProgress", + runAsPassword: { + serializedName: "properties.runAsPassword", type: { - name: "Composite", - className: "PropertyUpdatesInProgress" + name: "String" } }, - 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 +12978,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 +13069,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 +13090,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", + diskIopsReadWrite: { + serializedName: "properties.diskIOPSReadWrite", 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", - type: { - name: "Composite", - className: "KeyForDiskEncryptionSet" - } - }, - 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,51 +13248,65 @@ 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", + purchasePlan: { + serializedName: "properties.purchasePlan", type: { - name: "DateTime" + name: "Composite", + className: "PurchasePlanAutoGenerated" } }, - identifier: { - serializedName: "properties.identifier", + supportedCapabilities: { + serializedName: "properties.supportedCapabilities", type: { name: "Composite", - className: "GalleryImageIdentifier" + className: "SupportedCapabilities" } }, - recommended: { - serializedName: "properties.recommended", + creationData: { + serializedName: "properties.creationData", type: { name: "Composite", - className: "RecommendedMachineConfiguration" + className: "CreationData" } }, - disallowed: { - serializedName: "properties.disallowed", + diskSizeGB: { + serializedName: "properties.diskSizeGB", type: { - name: "Composite", - className: "Disallowed" + name: "Number" } }, - purchasePlan: { - serializedName: "properties.purchasePlan", + diskSizeBytes: { + serializedName: "properties.diskSizeBytes", + readOnly: true, + type: { + name: "Number" + } + }, + diskState: { + serializedName: "properties.diskState", + readOnly: true, + type: { + name: "String" + } + }, + uniqueId: { + serializedName: "properties.uniqueId", + readOnly: true, + type: { + name: "String" + } + }, + encryptionSettingsCollection: { + serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "ImagePurchasePlan" + className: "EncryptionSettingsCollection" } }, provisioningState: { @@ -13166,39 +13316,97 @@ export const GalleryImage: coreClient.CompositeMapper = { name: "String" } }, - features: { - serializedName: "properties.features", + incremental: { + serializedName: "properties.incremental", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryImageFeature" - } - } + name: "Boolean" } }, - architecture: { - serializedName: "properties.architecture", + 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" + } } } } }; -export const GalleryImageVersion: coreClient.CompositeMapper = { +export const DiskEncryptionSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryImageVersion", + className: "DiskEncryptionSet", modelProperties: { ...Resource.type.modelProperties, - publishingProfile: { - serializedName: "properties.publishingProfile", + identity: { + serializedName: "identity", type: { name: "Composite", - className: "GalleryImageVersionPublishingProfile" + className: "EncryptionSetIdentity" + } + }, + encryptionType: { + serializedName: "properties.encryptionType", + type: { + name: "String" + } + }, + activeKey: { + serializedName: "properties.activeKey", + type: { + name: "Composite", + className: "KeyForDiskEncryptionSet" + } + }, + previousKeys: { + serializedName: "properties.previousKeys", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "KeyForDiskEncryptionSet" + } + } } }, provisioningState: { @@ -13208,82 +13416,91 @@ export const GalleryImageVersion: coreClient.CompositeMapper = { name: "String" } }, - storageProfile: { - serializedName: "properties.storageProfile", + rotationToLatestKeyVersionEnabled: { + serializedName: "properties.rotationToLatestKeyVersionEnabled", type: { - name: "Composite", - className: "GalleryImageVersionStorageProfile" + name: "Boolean" } }, - replicationStatus: { - serializedName: "properties.replicationStatus", + lastKeyRotationTimestamp: { + serializedName: "properties.lastKeyRotationTimestamp", + readOnly: true, + type: { + name: "DateTime" + } + }, + autoKeyRotationError: { + serializedName: "properties.autoKeyRotationError", type: { name: "Composite", - className: "ReplicationStatus" + className: "ApiError" } } } } }; -export const GalleryApplication: coreClient.CompositeMapper = { +export const DiskAccess: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryApplication", + className: "DiskAccess", modelProperties: { ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - eula: { - serializedName: "properties.eula", + extendedLocation: { + serializedName: "extendedLocation", type: { - name: "String" + name: "Composite", + className: "ExtendedLocation" } }, - privacyStatementUri: { - serializedName: "properties.privacyStatementUri", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } } }, - releaseNoteUri: { - serializedName: "properties.releaseNoteUri", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - endOfLifeDate: { - serializedName: "properties.endOfLifeDate", + timeCreated: { + serializedName: "properties.timeCreated", + readOnly: true, type: { name: "DateTime" } - }, - supportedOSType: { - serializedName: "properties.supportedOSType", - type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] - } } } } }; -export const GalleryApplicationVersion: coreClient.CompositeMapper = { +export const Gallery: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryApplicationVersion", + className: "Gallery", modelProperties: { ...Resource.type.modelProperties, - publishingProfile: { - serializedName: "properties.publishingProfile", + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + identifier: { + serializedName: "properties.identifier", type: { name: "Composite", - className: "GalleryApplicationVersionPublishingProfile" + className: "GalleryIdentifier" } }, provisioningState: { @@ -13293,201 +13510,155 @@ export const GalleryApplicationVersion: coreClient.CompositeMapper = { name: "String" } }, - replicationStatus: { - serializedName: "properties.replicationStatus", + sharingProfile: { + serializedName: "properties.sharingProfile", type: { name: "Composite", - className: "ReplicationStatus" + className: "SharingProfile" + } + }, + softDeletePolicy: { + serializedName: "properties.softDeletePolicy", + type: { + name: "Composite", + className: "SoftDeletePolicy" + } + }, + sharingStatus: { + serializedName: "properties.sharingStatus", + type: { + name: "Composite", + className: "SharingStatus" } } } } }; -export const AvailabilitySetUpdate: coreClient.CompositeMapper = { +export const GalleryImage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailabilitySetUpdate", + className: "GalleryImage", modelProperties: { - ...UpdateResource.type.modelProperties, - sku: { - serializedName: "sku", + ...Resource.type.modelProperties, + description: { + serializedName: "properties.description", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - platformUpdateDomainCount: { - serializedName: "properties.platformUpdateDomainCount", + eula: { + serializedName: "properties.eula", type: { - name: "Number" + name: "String" } }, - platformFaultDomainCount: { - serializedName: "properties.platformFaultDomainCount", + privacyStatementUri: { + serializedName: "properties.privacyStatementUri", type: { - name: "Number" + name: "String" } }, - virtualMachines: { - serializedName: "properties.virtualMachines", + releaseNoteUri: { + serializedName: "properties.releaseNoteUri", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } }, - proximityPlacementGroup: { - serializedName: "properties.proximityPlacementGroup", + osType: { + serializedName: "properties.osType", type: { - name: "Composite", - className: "SubResource" + name: "Enum", + allowedValues: ["Windows", "Linux"] } }, - statuses: { - serializedName: "properties.statuses", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } -}; - -export const ProximityPlacementGroupUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProximityPlacementGroupUpdate", - modelProperties: { - ...UpdateResource.type.modelProperties - } - } -}; - -export const DedicatedHostGroupUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHostGroupUpdate", - modelProperties: { - ...UpdateResource.type.modelProperties, - zones: { - serializedName: "zones", + osState: { + serializedName: "properties.osState", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Enum", + allowedValues: ["Generalized", "Specialized"] } }, - platformFaultDomainCount: { - constraints: { - InclusiveMinimum: 1 - }, - serializedName: "properties.platformFaultDomainCount", + hyperVGeneration: { + serializedName: "properties.hyperVGeneration", type: { - name: "Number" + name: "String" } }, - hosts: { - serializedName: "properties.hosts", - readOnly: true, + endOfLifeDate: { + serializedName: "properties.endOfLifeDate", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } + name: "DateTime" } }, - instanceView: { - serializedName: "properties.instanceView", + identifier: { + serializedName: "properties.identifier", type: { name: "Composite", - className: "DedicatedHostGroupInstanceView" + className: "GalleryImageIdentifier" } }, - supportAutomaticPlacement: { - serializedName: "properties.supportAutomaticPlacement", + recommended: { + serializedName: "properties.recommended", type: { - name: "Boolean" + name: "Composite", + className: "RecommendedMachineConfiguration" } - } - } - } -}; - -export const DedicatedHostUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHostUpdate", - modelProperties: { - ...UpdateResource.type.modelProperties, - platformFaultDomain: { - constraints: { - InclusiveMinimum: 0 - }, - serializedName: "properties.platformFaultDomain", + }, + disallowed: { + serializedName: "properties.disallowed", type: { - name: "Number" + name: "Composite", + className: "Disallowed" } }, - autoReplaceOnFailure: { - serializedName: "properties.autoReplaceOnFailure", + purchasePlan: { + serializedName: "properties.purchasePlan", type: { - name: "Boolean" + name: "Composite", + className: "ImagePurchasePlan" } }, - hostId: { - serializedName: "properties.hostId", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - virtualMachines: { - serializedName: "properties.virtualMachines", - readOnly: true, + features: { + serializedName: "properties.features", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResourceReadOnly" + className: "GalleryImageFeature" } } } }, - licenseType: { - serializedName: "properties.licenseType", + architecture: { + serializedName: "properties.architecture", type: { - name: "Enum", - allowedValues: [ - "None", - "Windows_Server_Hybrid", - "Windows_Server_Perpetual" - ] + name: "String" } - }, - provisioningTime: { - serializedName: "properties.provisioningTime", - readOnly: true, + } + } + } +}; + +export const GalleryImageVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryImageVersion", + modelProperties: { + ...Resource.type.modelProperties, + publishingProfile: { + serializedName: "properties.publishingProfile", type: { - name: "DateTime" + name: "Composite", + className: "GalleryImageVersionPublishingProfile" } }, provisioningState: { @@ -13497,131 +13668,82 @@ export const DedicatedHostUpdate: coreClient.CompositeMapper = { name: "String" } }, - instanceView: { - serializedName: "properties.instanceView", + storageProfile: { + serializedName: "properties.storageProfile", type: { name: "Composite", - className: "DedicatedHostInstanceView" + className: "GalleryImageVersionStorageProfile" } }, - timeCreated: { - serializedName: "properties.timeCreated", - readOnly: true, - type: { - name: "DateTime" - } - } - } - } -}; - -export const SshPublicKeyUpdateResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SshPublicKeyUpdateResource", - modelProperties: { - ...UpdateResource.type.modelProperties, - publicKey: { - serializedName: "properties.publicKey", + replicationStatus: { + serializedName: "properties.replicationStatus", type: { - name: "String" + name: "Composite", + className: "ReplicationStatus" } } } } }; -export const VirtualMachineExtensionUpdate: coreClient.CompositeMapper = { +export const GalleryApplication: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineExtensionUpdate", + className: "GalleryApplication", modelProperties: { - ...UpdateResource.type.modelProperties, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", + ...Resource.type.modelProperties, + description: { + serializedName: "properties.description", type: { name: "String" } }, - publisher: { - serializedName: "properties.publisher", + eula: { + serializedName: "properties.eula", type: { name: "String" } }, - type: { - serializedName: "properties.type", + privacyStatementUri: { + serializedName: "properties.privacyStatementUri", type: { name: "String" } }, - typeHandlerVersion: { - serializedName: "properties.typeHandlerVersion", + releaseNoteUri: { + serializedName: "properties.releaseNoteUri", type: { name: "String" } }, - autoUpgradeMinorVersion: { - serializedName: "properties.autoUpgradeMinorVersion", - type: { - name: "Boolean" - } - }, - enableAutomaticUpgrade: { - serializedName: "properties.enableAutomaticUpgrade", - type: { - name: "Boolean" - } - }, - settings: { - serializedName: "properties.settings", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - }, - protectedSettings: { - serializedName: "properties.protectedSettings", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - }, - suppressFailures: { - serializedName: "properties.suppressFailures", + endOfLifeDate: { + serializedName: "properties.endOfLifeDate", type: { - name: "Boolean" + name: "DateTime" } }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", + supportedOSType: { + serializedName: "properties.supportedOSType", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Enum", + allowedValues: ["Windows", "Linux"] } } } } }; -export const ImageUpdate: coreClient.CompositeMapper = { +export const GalleryApplicationVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageUpdate", + className: "GalleryApplicationVersion", 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: "GalleryApplicationVersionPublishingProfile" } }, provisioningState: { @@ -13631,629 +13753,583 @@ export const ImageUpdate: coreClient.CompositeMapper = { name: "String" } }, - hyperVGeneration: { - serializedName: "properties.hyperVGeneration", + replicationStatus: { + serializedName: "properties.replicationStatus", type: { - name: "String" + name: "Composite", + className: "ReplicationStatus" } } } } }; -export const VirtualMachineUpdate: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineUpdate", + className: "VirtualMachineScaleSetUpdate", modelProperties: { ...UpdateResource.type.modelProperties, - plan: { - serializedName: "plan", - type: { - name: "Composite", - className: "Plan" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "VirtualMachineIdentity" - } - }, - zones: { - serializedName: "zones", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - hardwareProfile: { - serializedName: "properties.hardwareProfile", - type: { - name: "Composite", - className: "HardwareProfile" - } - }, - storageProfile: { - serializedName: "properties.storageProfile", - type: { - name: "Composite", - className: "StorageProfile" - } - }, - additionalCapabilities: { - serializedName: "properties.additionalCapabilities", - type: { - name: "Composite", - className: "AdditionalCapabilities" - } - }, - osProfile: { - serializedName: "properties.osProfile", + 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" } }, - instanceView: { - serializedName: "properties.instanceView", + additionalCapabilities: { + serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "CapacityReservationGroupInstanceView" + className: "AdditionalCapabilities" } - } - } - } -}; - -export const CapacityReservationUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationUpdate", - modelProperties: { - ...UpdateResource.type.modelProperties, - sku: { - serializedName: "sku", + }, + osProfile: { + serializedName: "properties.osProfile", + type: { + name: "Composite", + className: "OSProfile" + } + }, + networkProfile: { + serializedName: "properties.networkProfile", + type: { + name: "Composite", + className: "NetworkProfile" + } + }, + securityProfile: { + serializedName: "properties.securityProfile", + type: { + name: "Composite", + className: "SecurityProfile" + } + }, + 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", - type: { - name: "Boolean" - } - }, - runAsUser: { - serializedName: "properties.runAsUser", - type: { - name: "String" - } - }, - runAsPassword: { - serializedName: "properties.runAsPassword", + proximityPlacementGroup: { + serializedName: "properties.proximityPlacementGroup", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - timeoutInSeconds: { - serializedName: "properties.timeoutInSeconds", + statuses: { + serializedName: "properties.statuses", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } } - }, - outputBlobUri: { - serializedName: "properties.outputBlobUri", + } + } + } +}; + +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" + } + } } }, - errorBlobUri: { - serializedName: "properties.errorBlobUri", + platformFaultDomainCount: { + constraints: { + InclusiveMinimum: 1 + }, + serializedName: "properties.platformFaultDomainCount", type: { - name: "String" + name: "Number" } }, - provisioningState: { - serializedName: "properties.provisioningState", + 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: "VirtualMachineRunCommandInstanceView" + className: "DedicatedHostGroupInstanceView" + } + }, + supportAutomaticPlacement: { + serializedName: "properties.supportAutomaticPlacement", + type: { + name: "Boolean" + } + }, + additionalCapabilities: { + serializedName: "properties.additionalCapabilities", + type: { + name: "Composite", + 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 +14339,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", + } + } + } +}; + +export const RestorePointCollectionUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorePointCollectionUpdate", + modelProperties: { + ...UpdateResource.type.modelProperties, + source: { + serializedName: "properties.source", type: { - name: "Boolean" + name: "Composite", + className: "RestorePointCollectionSourceProperties" } }, - enableAutomaticUpgrade: { - serializedName: "properties.enableAutomaticUpgrade", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - settings: { - serializedName: "properties.settings", + restorePointCollectionId: { + serializedName: "properties.restorePointCollectionId", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - protectedSettings: { - serializedName: "properties.protectedSettings", + restorePoints: { + serializedName: "properties.restorePoints", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorePoint" + } + } } - }, - provisioningState: { - serializedName: "properties.provisioningState", + } + } + } +}; + +export const CapacityReservationGroupUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CapacityReservationGroupUpdate", + modelProperties: { + ...UpdateResource.type.modelProperties, + capacityReservations: { + serializedName: "properties.capacityReservations", readOnly: true, - type: { - name: "String" - } - }, - provisionAfterExtensions: { - serializedName: "properties.provisionAfterExtensions", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "SubResourceReadOnly" } } } }, - suppressFailures: { - serializedName: "properties.suppressFailures", + virtualMachinesAssociated: { + serializedName: "properties.virtualMachinesAssociated", + readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } } }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", + instanceView: { + serializedName: "properties.instanceView", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Composite", + className: "CapacityReservationGroupInstanceView" } } } } }; -export const VirtualMachineScaleSetVMExtension: coreClient.CompositeMapper = { +export const CapacityReservationUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMExtension", + className: "CapacityReservationUpdate", modelProperties: { - ...SubResourceReadOnly.type.modelProperties, - name: { - serializedName: "name", - readOnly: true, + ...UpdateResource.type.modelProperties, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - type: { - serializedName: "type", + reservationId: { + serializedName: "properties.reservationId", readOnly: true, type: { name: "String" } }, - 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" - } - }, - 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 +14548,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 +14804,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", @@ -15223,6 +15293,20 @@ export const GalleryApplicationVersionPublishingProfile: coreClient.CompositeMap className: "UserArtifactManage" } }, + settings: { + serializedName: "settings", + type: { + name: "Composite", + className: "UserArtifactSettings" + } + }, + advancedSettings: { + serializedName: "advancedSettings", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, enableHealthCheck: { serializedName: "enableHealthCheck", type: { @@ -15481,12 +15565,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 1692607db4eb..41f9820c326a 100644 --- a/sdk/compute/arm-compute/src/operations/capacityReservations.ts +++ b/sdk/compute/arm-compute/src/operations/capacityReservations.ts @@ -187,12 +187,10 @@ export class CapacityReservationsImpl implements CapacityReservations { }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -292,12 +290,10 @@ export class CapacityReservationsImpl implements CapacityReservations { }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -389,12 +385,10 @@ export class CapacityReservationsImpl implements CapacityReservations { }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -507,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 ], @@ -541,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 ], @@ -570,8 +564,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.capacityReservationGroupName, Parameters.capacityReservationName ], @@ -593,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 ], @@ -616,8 +610,8 @@ const listByCapacityReservationGroupOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.capacityReservationGroupName ], headerParameters: [Parameters.accept], @@ -637,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 bf082c2e0dd7..01798fedfa1c 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts @@ -171,12 +171,10 @@ export class CloudServiceRoleInstancesImpl { roleInstanceName, resourceGroupName, cloudServiceName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -315,12 +313,10 @@ export class CloudServiceRoleInstancesImpl { roleInstanceName, resourceGroupName, cloudServiceName, options }, restartOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -404,12 +400,10 @@ export class CloudServiceRoleInstancesImpl { roleInstanceName, resourceGroupName, cloudServiceName, options }, reimageOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -494,12 +488,10 @@ export class CloudServiceRoleInstancesImpl { roleInstanceName, resourceGroupName, cloudServiceName, options }, rebuildOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -583,8 +575,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.roleInstanceName, Parameters.cloudServiceName ], @@ -603,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 ], @@ -629,8 +621,8 @@ const getInstanceViewOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.roleInstanceName, Parameters.cloudServiceName ], @@ -649,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], @@ -675,8 +667,8 @@ const restartOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.roleInstanceName, Parameters.cloudServiceName ], @@ -699,8 +691,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.roleInstanceName, Parameters.cloudServiceName ], @@ -723,8 +715,8 @@ const rebuildOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.roleInstanceName, Parameters.cloudServiceName ], @@ -744,8 +736,8 @@ const getRemoteDesktopFileOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.roleInstanceName, Parameters.cloudServiceName ], @@ -763,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 ea7aa920d812..931425b1962b 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServices.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServices.ts @@ -210,12 +210,10 @@ export class CloudServicesImpl implements CloudServices { { resourceGroupName, cloudServiceName, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -298,12 +296,10 @@ export class CloudServicesImpl implements CloudServices { { resourceGroupName, cloudServiceName, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -380,12 +376,10 @@ export class CloudServicesImpl implements CloudServices { { resourceGroupName, cloudServiceName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -524,12 +518,10 @@ export class CloudServicesImpl implements CloudServices { { resourceGroupName, cloudServiceName, options }, startOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -607,12 +599,10 @@ export class CloudServicesImpl implements CloudServices { { resourceGroupName, cloudServiceName, options }, powerOffOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -690,12 +680,10 @@ export class CloudServicesImpl implements CloudServices { { resourceGroupName, cloudServiceName, options }, restartOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -773,12 +761,10 @@ export class CloudServicesImpl implements CloudServices { { resourceGroupName, cloudServiceName, options }, reimageOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -858,12 +844,10 @@ export class CloudServicesImpl implements CloudServices { { resourceGroupName, cloudServiceName, options }, rebuildOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -942,12 +926,10 @@ export class CloudServicesImpl implements CloudServices { { resourceGroupName, cloudServiceName, options }, deleteInstancesOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1029,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], @@ -1062,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], @@ -1086,8 +1068,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept], @@ -1108,8 +1090,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept], @@ -1130,8 +1112,8 @@ const getInstanceViewOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept], @@ -1169,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 @@ -1191,8 +1173,8 @@ const startOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept], @@ -1214,8 +1196,8 @@ const powerOffOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept], @@ -1238,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], @@ -1263,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], @@ -1288,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], @@ -1313,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], @@ -1355,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 3750c3b2629c..06420a979c45 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts @@ -169,12 +169,10 @@ export class CloudServicesUpdateDomainImpl { resourceGroupName, cloudServiceName, updateDomain, options }, walkUpdateDomainOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -279,8 +277,8 @@ const walkUpdateDomainOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.updateDomain ], @@ -303,8 +301,8 @@ const getUpdateDomainOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.updateDomain ], @@ -326,8 +324,8 @@ const listUpdateDomainsOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.cloudServiceName ], headerParameters: [Parameters.accept], @@ -347,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 40db6f8428ba..0a7a1b167e84 100644 --- a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts +++ b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts @@ -180,12 +180,10 @@ export class DedicatedHostsImpl implements DedicatedHosts { { resourceGroupName, hostGroupName, hostName, parameters, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -277,12 +275,10 @@ export class DedicatedHostsImpl implements DedicatedHosts { { resourceGroupName, hostGroupName, hostName, parameters, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -367,12 +363,10 @@ export class DedicatedHostsImpl implements DedicatedHosts { { resourceGroupName, hostGroupName, hostName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -494,12 +488,10 @@ export class DedicatedHostsImpl implements DedicatedHosts { { resourceGroupName, hostGroupName, hostName, options }, restartOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -570,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 ], @@ -604,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 ], @@ -633,8 +625,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.hostGroupName, Parameters.hostName ], @@ -653,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 ], @@ -679,8 +671,8 @@ const listByHostGroupOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.hostGroupName ], headerParameters: [Parameters.accept], @@ -702,8 +694,8 @@ const restartOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.hostGroupName, Parameters.hostName ], @@ -724,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 f91e34412c92..ef3f1f7c8894 100644 --- a/sdk/compute/arm-compute/src/operations/diskAccesses.ts +++ b/sdk/compute/arm-compute/src/operations/diskAccesses.ts @@ -291,12 +291,10 @@ export class DiskAccessesImpl implements DiskAccesses { { resourceGroupName, diskAccessName, diskAccess, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -387,12 +385,10 @@ export class DiskAccessesImpl implements DiskAccesses { { resourceGroupName, diskAccessName, diskAccess, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -495,12 +491,10 @@ export class DiskAccessesImpl implements DiskAccesses { { resourceGroupName, diskAccessName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -642,12 +636,10 @@ export class DiskAccessesImpl implements DiskAccesses { }, updateAPrivateEndpointConnectionOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -769,12 +761,10 @@ export class DiskAccessesImpl implements DiskAccesses { }, deleteAPrivateEndpointConnectionOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -902,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], @@ -935,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], @@ -958,8 +948,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskAccessName ], headerParameters: [Parameters.accept], @@ -981,8 +971,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskAccessName ], headerParameters: [Parameters.accept], @@ -1003,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 @@ -1038,8 +1028,8 @@ const getPrivateLinkResourcesOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskAccessName ], headerParameters: [Parameters.accept], @@ -1070,8 +1060,8 @@ const updateAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskAccessName, Parameters.privateEndpointConnectionName ], @@ -1094,8 +1084,8 @@ const getAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskAccessName, Parameters.privateEndpointConnectionName ], @@ -1118,8 +1108,8 @@ const deleteAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskAccessName, Parameters.privateEndpointConnectionName ], @@ -1141,8 +1131,8 @@ const listPrivateEndpointConnectionsOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskAccessName ], headerParameters: [Parameters.accept], @@ -1162,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 @@ -1203,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 99ceb6a95cef..7f69af884de9 100644 --- a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts +++ b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts @@ -284,12 +284,10 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { { resourceGroupName, diskEncryptionSetName, diskEncryptionSet, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -382,12 +380,10 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { { resourceGroupName, diskEncryptionSetName, diskEncryptionSet, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -491,12 +487,10 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { { resourceGroupName, diskEncryptionSetName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -646,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], @@ -679,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], @@ -702,8 +696,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskEncryptionSetName ], headerParameters: [Parameters.accept], @@ -725,8 +719,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskEncryptionSetName ], headerParameters: [Parameters.accept], @@ -747,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 @@ -785,8 +779,8 @@ const listAssociatedResourcesOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskEncryptionSetName ], headerParameters: [Parameters.accept], @@ -806,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 @@ -847,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 6191b3ff6679..9260a4933a16 100644 --- a/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts +++ b/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts @@ -250,13 +250,11 @@ export class DiskRestorePointOperationsImpl }, grantAccessOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -354,13 +352,11 @@ export class DiskRestorePointOperationsImpl }, revokeAccessOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -435,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 @@ -459,8 +455,8 @@ const listByRestorePointOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.vmRestorePointName ], @@ -492,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 @@ -518,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 @@ -541,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 6f449e95c1d7..4c3cbd96b564 100644 --- a/sdk/compute/arm-compute/src/operations/disks.ts +++ b/sdk/compute/arm-compute/src/operations/disks.ts @@ -210,12 +210,10 @@ export class DisksImpl implements Disks { { resourceGroupName, diskName, disk, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -303,12 +301,10 @@ export class DisksImpl implements Disks { { resourceGroupName, diskName, disk, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -411,12 +407,10 @@ export class DisksImpl implements Disks { { resourceGroupName, diskName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -523,13 +517,11 @@ export class DisksImpl implements Disks { { resourceGroupName, diskName, grantAccessData, options }, grantAccessOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -613,13 +605,11 @@ export class DisksImpl implements Disks { { resourceGroupName, diskName, options }, revokeAccessOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -700,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], @@ -730,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], @@ -750,8 +740,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskName ], headerParameters: [Parameters.accept], @@ -765,8 +755,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskName ], serializer @@ -783,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 @@ -824,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], @@ -840,8 +830,8 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.diskName ], serializer @@ -857,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 efce2400182c..4020efd1c78b 100644 --- a/sdk/compute/arm-compute/src/operations/galleries.ts +++ b/sdk/compute/arm-compute/src/operations/galleries.ts @@ -205,12 +205,10 @@ export class GalleriesImpl implements Galleries { { resourceGroupName, galleryName, gallery, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -299,12 +297,10 @@ export class GalleriesImpl implements Galleries { { resourceGroupName, galleryName, gallery, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -402,12 +398,10 @@ export class GalleriesImpl implements Galleries { { resourceGroupName, galleryName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -514,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], @@ -547,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], @@ -574,8 +568,8 @@ const getOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName ], headerParameters: [Parameters.accept], @@ -597,8 +591,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName ], headerParameters: [Parameters.accept], @@ -619,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 @@ -655,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 ffaadeb17cd9..0a410ed58676 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts @@ -204,12 +204,10 @@ export class GalleryApplicationVersionsImpl }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -323,12 +321,10 @@ export class GalleryApplicationVersionsImpl }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -460,12 +456,10 @@ export class GalleryApplicationVersionsImpl }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -574,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 @@ -609,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 @@ -634,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 @@ -659,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 @@ -683,8 +677,8 @@ const listByGalleryApplicationOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName ], @@ -705,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 1ef721ae40d9..1b4be0164690 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplications.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplications.ts @@ -188,12 +188,10 @@ export class GalleryApplicationsImpl implements GalleryApplications { }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -297,12 +295,10 @@ export class GalleryApplicationsImpl implements GalleryApplications { }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -411,12 +407,10 @@ export class GalleryApplicationsImpl implements GalleryApplications { { resourceGroupName, galleryName, galleryApplicationName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -508,8 +502,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName ], @@ -542,8 +536,8 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName ], @@ -566,8 +560,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName ], @@ -590,8 +584,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName ], @@ -613,8 +607,8 @@ const listByGalleryOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName ], headerParameters: [Parameters.accept], @@ -634,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 160c9dc803f6..a9ea46211d51 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts @@ -201,12 +201,10 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -317,12 +315,10 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -448,12 +444,10 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -551,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 @@ -586,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 @@ -611,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 @@ -636,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 @@ -660,8 +654,8 @@ const listByGalleryImageOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName ], @@ -682,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 7dbf4226f2e8..53ec082feb7b 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImages.ts @@ -188,12 +188,10 @@ export class GalleryImagesImpl implements GalleryImages { }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -297,12 +295,10 @@ export class GalleryImagesImpl implements GalleryImages { }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -411,12 +407,10 @@ export class GalleryImagesImpl implements GalleryImages { { resourceGroupName, galleryName, galleryImageName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -508,8 +502,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName ], @@ -542,8 +536,8 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName ], @@ -566,8 +560,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName ], @@ -590,8 +584,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName ], @@ -613,8 +607,8 @@ const listByGalleryOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.galleryName ], headerParameters: [Parameters.accept], @@ -634,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 97ace7957d2c..1fa4a979360c 100644 --- a/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts +++ b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts @@ -93,12 +93,10 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { { resourceGroupName, galleryName, sharingUpdate, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -151,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 e0af09a87c87..e35fb2ed11cc 100644 --- a/sdk/compute/arm-compute/src/operations/images.ts +++ b/sdk/compute/arm-compute/src/operations/images.ts @@ -205,12 +205,10 @@ export class ImagesImpl implements Images { { resourceGroupName, imageName, parameters, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -294,12 +292,10 @@ export class ImagesImpl implements Images { { resourceGroupName, imageName, parameters, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -379,12 +375,10 @@ export class ImagesImpl implements Images { { resourceGroupName, imageName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -505,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], @@ -538,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], @@ -566,8 +560,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.imageName ], headerParameters: [Parameters.accept], @@ -585,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], @@ -610,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 @@ -646,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 93c4d4f52fcc..0e07da13b70d 100644 --- a/sdk/compute/arm-compute/src/operations/logAnalytics.ts +++ b/sdk/compute/arm-compute/src/operations/logAnalytics.ts @@ -95,13 +95,11 @@ export class LogAnalyticsImpl implements LogAnalytics { { location, parameters, options }, exportRequestRateByIntervalOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "azure-async-operation" }); - await poller.poll(); - return poller; } /** @@ -184,13 +182,11 @@ export class LogAnalyticsImpl implements LogAnalytics { { location, parameters, options }, exportThrottledRequestsOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "azure-async-operation" }); - await poller.poll(); - return poller; } /** @@ -240,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", @@ -272,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 84e3076dd809..a9c308d7326c 100644 --- a/sdk/compute/arm-compute/src/operations/restorePointCollections.ts +++ b/sdk/compute/arm-compute/src/operations/restorePointCollections.ts @@ -237,12 +237,10 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { { resourceGroupName, restorePointCollectionName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -359,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], @@ -383,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], @@ -411,8 +409,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.restorePointCollectionName ], headerParameters: [Parameters.accept], @@ -433,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], @@ -455,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 @@ -492,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 471ea9a0f8bf..6508af5e17ce 100644 --- a/sdk/compute/arm-compute/src/operations/restorePoints.ts +++ b/sdk/compute/arm-compute/src/operations/restorePoints.ts @@ -105,12 +105,10 @@ export class RestorePointsImpl implements RestorePoints { }, createOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -201,12 +199,10 @@ export class RestorePointsImpl implements RestorePoints { }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -279,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 ], @@ -308,8 +304,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.restorePointName ], @@ -331,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 bd90af95815e..7d5f43026b87 100644 --- a/sdk/compute/arm-compute/src/operations/snapshots.ts +++ b/sdk/compute/arm-compute/src/operations/snapshots.ts @@ -210,12 +210,10 @@ export class SnapshotsImpl implements Snapshots { { resourceGroupName, snapshotName, snapshot, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -306,12 +304,10 @@ export class SnapshotsImpl implements Snapshots { { resourceGroupName, snapshotName, snapshot, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -414,12 +410,10 @@ export class SnapshotsImpl implements Snapshots { { resourceGroupName, snapshotName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -532,13 +526,11 @@ export class SnapshotsImpl implements Snapshots { { resourceGroupName, snapshotName, grantAccessData, options }, grantAccessOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -622,13 +614,11 @@ export class SnapshotsImpl implements Snapshots { { resourceGroupName, snapshotName, options }, revokeAccessOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -709,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], @@ -739,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], @@ -759,8 +749,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.snapshotName ], headerParameters: [Parameters.accept], @@ -774,8 +764,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.snapshotName ], serializer @@ -792,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 @@ -833,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], @@ -849,8 +839,8 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.snapshotName ], serializer @@ -866,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 1d75570ab554..cbeceabacf57 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts @@ -109,12 +109,10 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -212,12 +210,10 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -302,12 +298,10 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { { resourceGroupName, vmName, vmExtensionName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -392,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", @@ -426,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", @@ -455,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 @@ -475,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 @@ -498,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 ff5f14443e84..fa76c9ccf411 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts @@ -264,12 +264,10 @@ export class VirtualMachineRunCommandsImpl { resourceGroupName, vmName, runCommandName, runCommand, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -361,12 +359,10 @@ export class VirtualMachineRunCommandsImpl { resourceGroupName, vmName, runCommandName, runCommand, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -451,12 +447,10 @@ export class VirtualMachineRunCommandsImpl { resourceGroupName, vmName, runCommandName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -568,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 @@ -586,8 +580,8 @@ const getOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.location, Parameters.subscriptionId, - Parameters.location1, Parameters.commandId ], headerParameters: [Parameters.accept1], @@ -618,8 +612,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName, Parameters.runCommandName ], @@ -652,8 +646,8 @@ const updateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName, Parameters.runCommandName ], @@ -677,8 +671,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName, Parameters.runCommandName ], @@ -697,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 ], @@ -720,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], @@ -741,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 @@ -759,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 2f07332fa29c..e2cbb6a12f24 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts @@ -175,12 +175,10 @@ export class VirtualMachineScaleSetExtensionsImpl }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -278,12 +276,10 @@ export class VirtualMachineScaleSetExtensionsImpl }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -368,12 +364,10 @@ export class VirtualMachineScaleSetExtensionsImpl { resourceGroupName, vmScaleSetName, vmssExtensionName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -477,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 ], @@ -511,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 ], @@ -540,8 +534,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.vmssExtensionName ], @@ -560,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 ], @@ -586,8 +580,8 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], @@ -607,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 1e6e8dd21fa0..3b75e5ae82f3 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts @@ -89,12 +89,10 @@ export class VirtualMachineScaleSetRollingUpgradesImpl { resourceGroupName, vmScaleSetName, options }, cancelOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -173,12 +171,10 @@ export class VirtualMachineScaleSetRollingUpgradesImpl { resourceGroupName, vmScaleSetName, options }, startOSUpgradeOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -259,12 +255,10 @@ export class VirtualMachineScaleSetRollingUpgradesImpl { resourceGroupName, vmScaleSetName, options }, startExtensionUpgradeOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -324,8 +318,8 @@ const cancelOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], @@ -347,8 +341,8 @@ const startOSUpgradeOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], @@ -370,8 +364,8 @@ const startExtensionUpgradeOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], @@ -392,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 6b65a2a5b93f..a216e1b379f1 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts @@ -115,12 +115,10 @@ export class VirtualMachineScaleSetVMExtensionsImpl }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -224,12 +222,10 @@ export class VirtualMachineScaleSetVMExtensionsImpl }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -325,12 +321,10 @@ export class VirtualMachineScaleSetVMExtensionsImpl }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -428,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", @@ -463,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", @@ -493,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 @@ -514,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 @@ -538,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 3af2dd9eed02..35b0f4b87fe4 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts @@ -199,12 +199,10 @@ export class VirtualMachineScaleSetVMRunCommandsImpl }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -308,12 +306,10 @@ export class VirtualMachineScaleSetVMRunCommandsImpl }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -409,12 +405,10 @@ export class VirtualMachineScaleSetVMRunCommandsImpl }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -537,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 @@ -572,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 @@ -598,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 @@ -619,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 @@ -643,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 ], @@ -665,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 52d335ad6b98..d515343261a7 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts @@ -185,12 +185,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, options }, reimageOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -273,12 +271,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, options }, reimageAllOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -363,12 +359,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, options }, deallocateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -459,12 +453,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, parameters, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -549,12 +541,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -693,12 +683,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, options }, powerOffOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -782,12 +770,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, options }, restartOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -869,12 +855,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, options }, startOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -957,12 +941,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, options }, redeployOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1064,12 +1046,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, options }, performMaintenanceOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1177,13 +1157,11 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, parameters, options }, runCommandOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -1250,8 +1228,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1275,8 +1253,8 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1299,8 +1277,8 @@ const deallocateOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1328,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 ], @@ -1357,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 ], @@ -1377,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 ], @@ -1403,8 +1381,8 @@ const getInstanceViewOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1425,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], @@ -1454,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 ], @@ -1478,8 +1456,8 @@ const restartOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1502,8 +1480,8 @@ const startOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1526,8 +1504,8 @@ const redeployOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1552,8 +1530,8 @@ const retrieveBootDiagnosticsDataOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1576,8 +1554,8 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1597,8 +1575,8 @@ const simulateEvictionOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId ], @@ -1623,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 ], @@ -1649,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 1e602a00744a..0a763798ce91 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts @@ -444,12 +444,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, parameters, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -536,12 +534,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, parameters, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -621,12 +617,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -722,12 +716,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, options }, deallocateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -808,12 +800,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, vmInstanceIDs, options }, deleteInstancesOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -974,12 +964,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, options }, powerOffOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1058,12 +1046,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, options }, restartOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1140,12 +1126,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, options }, startOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1223,12 +1207,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, options }, redeployOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1309,12 +1291,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, options }, performMaintenanceOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1396,12 +1376,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, vmInstanceIDs, options }, updateInstancesOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1483,12 +1461,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, options }, reimageOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1568,12 +1544,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, options }, reimageAllOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1694,12 +1668,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, parameters, options }, setOrchestrationServiceStateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1829,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 @@ -1856,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], @@ -1889,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], @@ -1917,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], @@ -1936,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], @@ -1963,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], @@ -1988,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], @@ -2011,8 +1983,8 @@ const getInstanceViewOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], @@ -2033,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 @@ -2071,8 +2043,8 @@ const listSkusOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], @@ -2093,8 +2065,8 @@ const getOSUpgradeHistoryOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], @@ -2117,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], @@ -2142,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], @@ -2167,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], @@ -2192,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], @@ -2217,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], @@ -2242,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], @@ -2267,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], @@ -2292,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], @@ -2320,8 +2292,8 @@ const forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec: coreClien ], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmScaleSetName ], headerParameters: [Parameters.accept], @@ -2337,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], @@ -2362,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], @@ -2388,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 @@ -2409,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 @@ -2450,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], @@ -2472,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 cbc92ab706b0..a67d154eb9ab 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachines.ts @@ -362,13 +362,11 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, parameters, options }, captureOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -457,12 +455,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, parameters, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -550,12 +546,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, parameters, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -635,12 +629,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -748,12 +740,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, convertToManagedDisksOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -832,12 +822,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, deallocateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -982,12 +970,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, powerOffOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1061,12 +1047,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, reapplyOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1139,12 +1123,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, restartOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1217,12 +1199,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, startOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1295,12 +1275,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, redeployOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1373,12 +1351,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, reimageOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1468,12 +1444,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, performMaintenanceOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1572,13 +1546,11 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, assessPatchesOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -1662,13 +1634,11 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, installPatchesInput, options }, installPatchesOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -1755,13 +1725,11 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, parameters, options }, runCommandOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -1853,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 @@ -1880,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], @@ -1913,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], @@ -1946,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], @@ -1974,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], @@ -1993,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], @@ -2018,8 +1986,8 @@ const instanceViewOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2041,8 +2009,8 @@ const convertToManagedDisksOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2064,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], @@ -2084,8 +2052,8 @@ const generalizeOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2106,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 @@ -2148,8 +2116,8 @@ const listAvailableSizesOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2171,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], @@ -2194,8 +2162,8 @@ const reapplyOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2217,8 +2185,8 @@ const restartOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2240,8 +2208,8 @@ const startOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2263,8 +2231,8 @@ const redeployOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2283,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], @@ -2313,8 +2281,8 @@ const retrieveBootDiagnosticsDataOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2336,8 +2304,8 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2356,8 +2324,8 @@ const simulateEvictionOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2387,8 +2355,8 @@ const assessPatchesOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.vmName ], headerParameters: [Parameters.accept], @@ -2419,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], @@ -2445,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], @@ -2471,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 @@ -2492,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"