diff --git a/packages/@azure/arm-compute/LICENSE.txt b/packages/@azure/arm-compute/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/packages/@azure/arm-compute/LICENSE.txt +++ b/packages/@azure/arm-compute/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/@azure/arm-compute/README.md b/packages/@azure/arm-compute/README.md index 3a78712d6ed2..93895360dde6 100644 --- a/packages/@azure/arm-compute/README.md +++ b/packages/@azure/arm-compute/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for ComputeManagementClient. ### How to Install -``` +```bash npm install @azure/arm-compute ``` @@ -19,13 +19,13 @@ npm install @azure/arm-compute ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; @@ -47,7 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -94,6 +94,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fpackages%2F%40azure%2Farm-compute%2FREADME.png) diff --git a/packages/@azure/arm-compute/lib/computeManagementClient.ts b/packages/@azure/arm-compute/lib/computeManagementClient.ts index 104bf5b43830..2a6a78e79ac0 100644 --- a/packages/@azure/arm-compute/lib/computeManagementClient.ts +++ b/packages/@azure/arm-compute/lib/computeManagementClient.ts @@ -29,6 +29,7 @@ class ComputeManagementClient extends ComputeManagementClientContext { virtualMachineScaleSets: operations.VirtualMachineScaleSets; virtualMachineScaleSetExtensions: operations.VirtualMachineScaleSetExtensions; virtualMachineScaleSetRollingUpgrades: operations.VirtualMachineScaleSetRollingUpgrades; + virtualMachineScaleSet: operations.VirtualMachineScaleSetOperations; virtualMachineScaleSetVMs: operations.VirtualMachineScaleSetVMs; logAnalytics: operations.LogAnalytics; virtualMachineRunCommands: operations.VirtualMachineRunCommands; @@ -61,6 +62,7 @@ class ComputeManagementClient extends ComputeManagementClientContext { this.virtualMachineScaleSets = new operations.VirtualMachineScaleSets(this); this.virtualMachineScaleSetExtensions = new operations.VirtualMachineScaleSetExtensions(this); this.virtualMachineScaleSetRollingUpgrades = new operations.VirtualMachineScaleSetRollingUpgrades(this); + this.virtualMachineScaleSet = new operations.VirtualMachineScaleSetOperations(this); this.virtualMachineScaleSetVMs = new operations.VirtualMachineScaleSetVMs(this); this.logAnalytics = new operations.LogAnalytics(this); this.virtualMachineRunCommands = new operations.VirtualMachineRunCommands(this); diff --git a/packages/@azure/arm-compute/lib/computeManagementClientContext.ts b/packages/@azure/arm-compute/lib/computeManagementClientContext.ts index 714bc8dbc81e..5e1b7bd138de 100644 --- a/packages/@azure/arm-compute/lib/computeManagementClientContext.ts +++ b/packages/@azure/arm-compute/lib/computeManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-compute"; -const packageVersion = "0.1.0"; +const packageVersion = "9.1.0"; export class ComputeManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/packages/@azure/arm-compute/lib/models/availabilitySetsMappers.ts b/packages/@azure/arm-compute/lib/models/availabilitySetsMappers.ts index 37df54ff5521..124e5ba5c63f 100644 --- a/packages/@azure/arm-compute/lib/models/availabilitySetsMappers.ts +++ b/packages/@azure/arm-compute/lib/models/availabilitySetsMappers.ts @@ -109,6 +109,8 @@ export { VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineHealthStatus, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProtectionPolicy, RollingUpgradeStatusInfo, RollingUpgradeRunningStatus, RollingUpgradeProgressInfo, @@ -119,7 +121,8 @@ export { DiskSku, CreationData, ImageDiskReference, - EncryptionSettings, + EncryptionSettingsCollection, + EncryptionSettingsElement, KeyVaultAndSecretReference, SourceVault, KeyVaultAndKeyReference, diff --git a/packages/@azure/arm-compute/lib/models/containerServicesMappers.ts b/packages/@azure/arm-compute/lib/models/containerServicesMappers.ts index ca7bea6ab729..a5534c47d1b9 100644 --- a/packages/@azure/arm-compute/lib/models/containerServicesMappers.ts +++ b/packages/@azure/arm-compute/lib/models/containerServicesMappers.ts @@ -108,6 +108,8 @@ export { VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineHealthStatus, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProtectionPolicy, RollingUpgradeStatusInfo, RollingUpgradeRunningStatus, RollingUpgradeProgressInfo, @@ -119,7 +121,8 @@ export { DiskSku, CreationData, ImageDiskReference, - EncryptionSettings, + EncryptionSettingsCollection, + EncryptionSettingsElement, KeyVaultAndSecretReference, SourceVault, KeyVaultAndKeyReference, diff --git a/packages/@azure/arm-compute/lib/models/disksMappers.ts b/packages/@azure/arm-compute/lib/models/disksMappers.ts index 651d2b5666d1..71c36a7a7fc0 100644 --- a/packages/@azure/arm-compute/lib/models/disksMappers.ts +++ b/packages/@azure/arm-compute/lib/models/disksMappers.ts @@ -15,7 +15,8 @@ export { DiskSku, CreationData, ImageDiskReference, - EncryptionSettings, + EncryptionSettingsCollection, + EncryptionSettingsElement, KeyVaultAndSecretReference, SourceVault, KeyVaultAndKeyReference, @@ -107,6 +108,8 @@ export { VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineHealthStatus, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProtectionPolicy, RollingUpgradeStatusInfo, RollingUpgradeRunningStatus, RollingUpgradeProgressInfo, diff --git a/packages/@azure/arm-compute/lib/models/galleriesMappers.ts b/packages/@azure/arm-compute/lib/models/galleriesMappers.ts index eb30e0cd3aec..3a19612b71ee 100644 --- a/packages/@azure/arm-compute/lib/models/galleriesMappers.ts +++ b/packages/@azure/arm-compute/lib/models/galleriesMappers.ts @@ -101,6 +101,8 @@ export { VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineHealthStatus, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProtectionPolicy, RollingUpgradeStatusInfo, RollingUpgradeRunningStatus, RollingUpgradeProgressInfo, @@ -109,7 +111,8 @@ export { DiskSku, CreationData, ImageDiskReference, - EncryptionSettings, + EncryptionSettingsCollection, + EncryptionSettingsElement, KeyVaultAndSecretReference, SourceVault, KeyVaultAndKeyReference, diff --git a/packages/@azure/arm-compute/lib/models/galleryImageVersionsMappers.ts b/packages/@azure/arm-compute/lib/models/galleryImageVersionsMappers.ts index 03780a21169e..55f7c557b17b 100644 --- a/packages/@azure/arm-compute/lib/models/galleryImageVersionsMappers.ts +++ b/packages/@azure/arm-compute/lib/models/galleryImageVersionsMappers.ts @@ -111,6 +111,8 @@ export { VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineHealthStatus, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProtectionPolicy, RollingUpgradeStatusInfo, RollingUpgradeRunningStatus, RollingUpgradeProgressInfo, @@ -119,7 +121,8 @@ export { DiskSku, CreationData, ImageDiskReference, - EncryptionSettings, + EncryptionSettingsCollection, + EncryptionSettingsElement, KeyVaultAndSecretReference, SourceVault, KeyVaultAndKeyReference, diff --git a/packages/@azure/arm-compute/lib/models/galleryImagesMappers.ts b/packages/@azure/arm-compute/lib/models/galleryImagesMappers.ts index b7eab826d35e..5419019f3464 100644 --- a/packages/@azure/arm-compute/lib/models/galleryImagesMappers.ts +++ b/packages/@azure/arm-compute/lib/models/galleryImagesMappers.ts @@ -105,6 +105,8 @@ export { VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineHealthStatus, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProtectionPolicy, RollingUpgradeStatusInfo, RollingUpgradeRunningStatus, RollingUpgradeProgressInfo, @@ -113,7 +115,8 @@ export { DiskSku, CreationData, ImageDiskReference, - EncryptionSettings, + EncryptionSettingsCollection, + EncryptionSettingsElement, KeyVaultAndSecretReference, SourceVault, KeyVaultAndKeyReference, diff --git a/packages/@azure/arm-compute/lib/models/imagesMappers.ts b/packages/@azure/arm-compute/lib/models/imagesMappers.ts index ee1599147d80..9bf117aab734 100644 --- a/packages/@azure/arm-compute/lib/models/imagesMappers.ts +++ b/packages/@azure/arm-compute/lib/models/imagesMappers.ts @@ -107,6 +107,8 @@ export { VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineHealthStatus, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProtectionPolicy, RollingUpgradeStatusInfo, RollingUpgradeRunningStatus, RollingUpgradeProgressInfo, @@ -117,7 +119,8 @@ export { DiskSku, CreationData, ImageDiskReference, - EncryptionSettings, + EncryptionSettingsCollection, + EncryptionSettingsElement, KeyVaultAndSecretReference, SourceVault, KeyVaultAndKeyReference, diff --git a/packages/@azure/arm-compute/lib/models/index.ts b/packages/@azure/arm-compute/lib/models/index.ts index 1d3683439842..9640c21b68b6 100644 --- a/packages/@azure/arm-compute/lib/models/index.ts +++ b/packages/@azure/arm-compute/lib/models/index.ts @@ -172,7 +172,7 @@ export interface Resource extends BaseResource { * set are allocated to different nodes to maximize availability. For more * information about availability sets, see [Manage the availability of virtual * machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). - *

For more information on Azure planned maintainance, see [Planned + *

For more information on Azure planned maintenance, see [Planned * maintenance for virtual machines in * Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) *

Currently, a VM can only be added to availability set at creation @@ -642,12 +642,13 @@ export interface Usage { /** * @interface * An interface representing VirtualMachineReimageParameters. - * Paramaters for Reimaging Virtual Machine. Default value for OSDisk : true. + * Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will + * always be reimaged * */ export interface VirtualMachineReimageParameters { /** - * @member {boolean} [tempDisk] Specified whether to reimage temp disk. + * @member {boolean} [tempDisk] Specifies whether to reimage temp disk. * Default value: false. */ tempDisk?: boolean; @@ -926,15 +927,15 @@ export interface VirtualHardDisk { /** * @interface * An interface representing DiffDiskSettings. - * Describes the parameters of differencing disk settings that can be be - * specified for operating system disk.

NOTE: The differencing disk - * settings can only be specified for managed disk. + * 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 { /** - * @member {DiffDiskOptions} [option] Specifies the differencing disk - * settings for operating system disk. Possible values include: 'Local' + * @member {DiffDiskOptions} [option] Specifies the ephemeral disk settings + * for operating system disk. Possible values include: 'Local' */ option?: DiffDiskOptions; } @@ -1009,8 +1010,8 @@ export interface OSDisk { */ writeAcceleratorEnabled?: boolean; /** - * @member {DiffDiskSettings} [diffDiskSettings] Specifies the differencing - * Disk Settings for the operating system disk used by the virtual machine. + * @member {DiffDiskSettings} [diffDiskSettings] Specifies the ephemeral Disk + * Settings for the operating system disk used by the virtual machine. */ diffDiskSettings?: DiffDiskSettings; /** @@ -1360,9 +1361,9 @@ export interface VaultCertificate { * 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 - * .crt for the X509 certificate file and - * .prv for private key. Both of these files are .pem - * formatted. + * <UppercaseThumbprint>.crt for the X509 certificate file and + * <UppercaseThumbprint>.prv for private key. Both of these files are + * .pem formatted. */ certificateStore?: string; } @@ -1395,9 +1396,10 @@ export interface VaultSecretGroup { export interface OSProfile { /** * @member {string} [computerName] Specifies the host OS name of the virtual - * machine.

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

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

For naming conventions and - * restrictions see [Azure infrastructure services implementation + * 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/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions). */ computerName?: string; @@ -1874,7 +1876,7 @@ export interface VirtualMachine extends Resource { * nodes to maximize availability. For more information about availability * sets, see [Manage the availability of virtual * machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). - *

For more information on Azure planned maintainance, see [Planned + *

For more information on Azure planned maintenance, see [Planned * maintenance for virtual machines in * Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) *

Currently, a VM can only be added to availability set at creation @@ -1988,7 +1990,7 @@ export interface VirtualMachineUpdate extends UpdateResource { * nodes to maximize availability. For more information about availability * sets, see [Manage the availability of virtual * machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). - *

For more information on Azure planned maintainance, see [Planned + *

For more information on Azure planned maintenance, see [Planned * maintenance for virtual machines in * Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) *

Currently, a VM can only be added to availability set at creation @@ -2536,9 +2538,9 @@ export interface VirtualMachineScaleSetOSDisk { */ createOption: DiskCreateOptionTypes; /** - * @member {DiffDiskSettings} [diffDiskSettings] Specifies the differencing - * Disk Settings for the operating system disk used by the virtual machine - * scale set. + * @member {DiffDiskSettings} [diffDiskSettings] Specifies the ephemeral disk + * Settings for the operating system disk used by the virtual machine scale + * set. */ diffDiskSettings?: DiffDiskSettings; /** @@ -2728,7 +2730,7 @@ export interface VirtualMachineScaleSetUpdateStorageProfile { export interface ApiEntityReference { /** * @member {string} [id] The ARM resource id in the form of - * /subscriptions/{SubcriptionId}/resourceGroups/{ResourceGroupName}/... + * /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... */ id?: string; } @@ -3149,6 +3151,11 @@ export interface VirtualMachineScaleSetExtension extends SubResourceReadOnly { * the server.** */ readonly provisioningState?: string; + /** + * @member {string[]} [provisionAfterExtensions] Collection of extension + * names after which this extension needs to be provisioned. + */ + provisionAfterExtensions?: string[]; } /** @@ -3316,6 +3323,13 @@ export interface VirtualMachineScaleSet extends Resource { * Scale Set should be overprovisioned. */ overprovision?: boolean; + /** + * @member {boolean} [doNotRunExtensionsOnOverprovisionedVMs] 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; /** * @member {string} [uniqueId] Specifies the ID which uniquely identifies a * Virtual Machine Scale Set. @@ -3329,7 +3343,7 @@ export interface VirtualMachineScaleSet extends Resource { */ singlePlacementGroup?: boolean; /** - * @member {boolean} [zoneBalance] Whether to force stictly even Virtual + * @member {boolean} [zoneBalance] Whether to force strictly even Virtual * Machine distribution cross x-zones in case there is zone outage. */ zoneBalance?: boolean; @@ -3780,7 +3794,7 @@ export interface UpgradeOperationHistoricalStatusInfoProperties { */ readonly runningStatus?: UpgradeOperationHistoryStatus; /** - * @member {RollingUpgradeProgressInfo} [progress] Counts of the VM's in each + * @member {RollingUpgradeProgressInfo} [progress] Counts of the VMs in each * state. * **NOTE: This property will not be serialized. It can only be populated by * the server.** @@ -3924,6 +3938,41 @@ export interface VirtualMachineScaleSetVMInstanceView { placementGroupId?: string; } +/** + * @interface + * An interface representing VirtualMachineScaleSetVMNetworkProfileConfiguration. + * Describes a virtual machine scale set VM network profile. + * + */ +export interface VirtualMachineScaleSetVMNetworkProfileConfiguration { + /** + * @member {VirtualMachineScaleSetNetworkConfiguration[]} + * [networkInterfaceConfigurations] The list of network configurations. + */ + networkInterfaceConfigurations?: VirtualMachineScaleSetNetworkConfiguration[]; +} + +/** + * @interface + * An interface representing VirtualMachineScaleSetVMProtectionPolicy. + * The protection policy of a virtual machine scale set VM. + * + */ +export interface VirtualMachineScaleSetVMProtectionPolicy { + /** + * @member {boolean} [protectFromScaleIn] Indicates that the virtual machine + * scale set VM shouldn't be considered for deletion during a scale-in + * operation. + */ + protectFromScaleIn?: boolean; + /** + * @member {boolean} [protectFromScaleSetActions] 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; +} + /** * @interface * An interface representing VirtualMachineScaleSetVM. @@ -3992,6 +4041,12 @@ export interface VirtualMachineScaleSetVM extends Resource { * of the virtual machine. */ networkProfile?: NetworkProfile; + /** + * @member {VirtualMachineScaleSetVMNetworkProfileConfiguration} + * [networkProfileConfiguration] Specifies the network profile configuration + * of the virtual machine. + */ + networkProfileConfiguration?: VirtualMachineScaleSetVMNetworkProfileConfiguration; /** * @member {DiagnosticsProfile} [diagnosticsProfile] Specifies the boot * diagnostic settings state.

Minimum api-version: 2015-06-15. @@ -4004,7 +4059,7 @@ export interface VirtualMachineScaleSetVM extends Resource { * nodes to maximize availability. For more information about availability * sets, see [Manage the availability of virtual * machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json). - *

For more information on Azure planned maintainance, see [Planned + *

For more information on Azure planned maintenance, see [Planned * maintenance for virtual machines in * Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) *

Currently, a VM can only be added to availability set at creation @@ -4030,6 +4085,19 @@ export interface VirtualMachineScaleSetVM extends Resource { *

Minimum api-version: 2015-06-15 */ licenseType?: string; + /** + * @member {string} [modelDefinitionApplied] Specifies whether the model + * applied to the virtual machine is the model of the virtual machine scale + * set or the customized model for the virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly modelDefinitionApplied?: string; + /** + * @member {VirtualMachineScaleSetVMProtectionPolicy} [protectionPolicy] + * Specifies the protection policy of the virtual machine. + */ + protectionPolicy?: VirtualMachineScaleSetVMProtectionPolicy; /** * @member {Plan} [plan] Specifies information about the marketplace image * used to create the virtual machine. This element is only used for @@ -4178,8 +4246,8 @@ export interface LogAnalyticsInputBase { */ groupByThrottlePolicy?: boolean; /** - * @member {boolean} [groupByOperationName] Group query result by by - * Operation Name. + * @member {boolean} [groupByOperationName] Group query result by Operation + * Name. */ groupByOperationName?: boolean; /** @@ -4245,6 +4313,21 @@ export interface LogAnalyticsOperationResult { readonly properties?: LogAnalyticsOutput; } +/** + * @interface + * An interface representing VMScaleSetConvertToSinglePlacementGroupInput. + */ +export interface VMScaleSetConvertToSinglePlacementGroupInput { + /** + * @member {string} [activePlacementGroupId] 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; +} + /** * @interface * An interface representing RunCommandInputParameter. @@ -4438,7 +4521,7 @@ export interface ResourceSkuCosts { /** * @interface * An interface representing ResourceSkuCapabilities. - * Describes The SKU capabilites object. + * Describes The SKU capabilities object. * */ export interface ResourceSkuCapabilities { @@ -4683,7 +4766,7 @@ export interface CreationData { /** * @member {DiskCreateOption} createOption This enumerates the possible * sources of a disk's creation. Possible values include: 'Empty', 'Attach', - * 'FromImage', 'Import', 'Copy', 'Restore' + * 'FromImage', 'Import', 'Copy', 'Restore', 'Upload' */ createOption: DiskCreateOption; /** @@ -4711,7 +4794,7 @@ export interface CreationData { /** * @interface * An interface representing SourceVault. - * The vault id is an Azure Resource Manager Resoure id in the form + * The vault id is an Azure Resource Manager Resource id in the form * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName} * */ @@ -4761,19 +4844,11 @@ export interface KeyVaultAndKeyReference { /** * @interface - * An interface representing EncryptionSettings. - * Encryption settings for disk or snapshot + * An interface representing EncryptionSettingsElement. + * Encryption settings for one disk volume. * */ -export interface EncryptionSettings { - /** - * @member {boolean} [enabled] Set this flag to true and provide - * DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set - * this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to - * disable encryption. If EncryptionSettings is null in the request object, - * the existing settings remain unchanged. - */ - enabled?: boolean; +export interface EncryptionSettingsElement { /** * @member {KeyVaultAndSecretReference} [diskEncryptionKey] Key Vault Secret * Url and vault id of the disk encryption key @@ -4781,11 +4856,34 @@ export interface EncryptionSettings { diskEncryptionKey?: KeyVaultAndSecretReference; /** * @member {KeyVaultAndKeyReference} [keyEncryptionKey] Key Vault Key Url and - * vault id of the key encryption key + * vault id of the key encryption key. KeyEncryptionKey is optional and when + * provided is used to unwrap the disk encryption key. */ keyEncryptionKey?: KeyVaultAndKeyReference; } +/** + * @interface + * An interface representing EncryptionSettingsCollection. + * Encryption settings for disk or snapshot + * + */ +export interface EncryptionSettingsCollection { + /** + * @member {boolean} enabled Set this flag to true and provide + * DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set + * this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to + * disable encryption. If EncryptionSettings is null in the request object, + * the existing settings remain unchanged. + */ + enabled: boolean; + /** + * @member {EncryptionSettingsElement[]} [encryptionSettings] A collection of + * encryption settings, one for each disk volume. + */ + encryptionSettings?: EncryptionSettingsElement[]; +} + /** * @interface * An interface representing Disk. @@ -4820,6 +4918,12 @@ export interface Disk extends Resource { * Possible values include: 'Windows', 'Linux' */ osType?: OperatingSystemTypes; + /** + * @member {HyperVGeneration} [hyperVGeneration] The hypervisor generation of + * the Virtual Machine. Applicable to OS disks only. Possible values include: + * 'V1', 'V2' + */ + hyperVGeneration?: HyperVGeneration; /** * @member {CreationData} creationData Disk source information. CreationData * information cannot be changed after the disk has been created. @@ -4834,10 +4938,11 @@ export interface Disk extends Resource { */ diskSizeGB?: number; /** - * @member {EncryptionSettings} [encryptionSettings] Encryption settings for - * disk or snapshot + * @member {EncryptionSettingsCollection} [encryptionSettingsCollection] + * Encryption settings collection used for Azure Disk Encryption, can contain + * multiple encryption settings per disk or snapshot. */ - encryptionSettings?: EncryptionSettings; + encryptionSettingsCollection?: EncryptionSettingsCollection; /** * @member {string} [provisioningState] The disk provisioning state. * **NOTE: This property will not be serialized. It can only be populated by @@ -4856,6 +4961,14 @@ export interface Disk extends Resource { * - MB here uses the ISO notation, of powers of 10. */ diskMBpsReadWrite?: number; + /** + * @member {DiskState} [diskState] The state of the disk. Possible values + * include: 'Unattached', 'Attached', 'Reserved', 'ActiveSAS', + * 'ReadyToUpload', 'ActiveUpload' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly diskState?: DiskState; } /** @@ -4879,10 +4992,11 @@ export interface DiskUpdate { */ diskSizeGB?: number; /** - * @member {EncryptionSettings} [encryptionSettings] Encryption settings for - * disk or snapshot + * @member {EncryptionSettingsCollection} [encryptionSettingsCollection] + * Encryption settings collection used be Azure Disk Encryption, can contain + * multiple encryption settings per disk or snapshot. */ - encryptionSettings?: EncryptionSettings; + encryptionSettingsCollection?: EncryptionSettingsCollection; /** * @member {number} [diskIOPSReadWrite] The number of IOPS allowed for this * disk; only settable for UltraSSD disks. One operation can transfer between @@ -4933,7 +5047,8 @@ export interface SnapshotSku { */ export interface GrantAccessData { /** - * @member {AccessLevel} access Possible values include: 'None', 'Read' + * @member {AccessLevel} access Possible values include: 'None', 'Read', + * 'Write' */ access: AccessLevel; /** @@ -4987,6 +5102,12 @@ export interface Snapshot extends Resource { * Possible values include: 'Windows', 'Linux' */ osType?: OperatingSystemTypes; + /** + * @member {HyperVGeneration} [hyperVGeneration] The hypervisor generation of + * the Virtual Machine. Applicable to OS disks only. Possible values include: + * 'V1', 'V2' + */ + hyperVGeneration?: HyperVGeneration; /** * @member {CreationData} creationData Disk source information. CreationData * information cannot be changed after the disk has been created. @@ -5001,10 +5122,11 @@ export interface Snapshot extends Resource { */ diskSizeGB?: number; /** - * @member {EncryptionSettings} [encryptionSettings] Encryption settings for - * disk or snapshot + * @member {EncryptionSettingsCollection} [encryptionSettingsCollection] + * Encryption settings collection used be Azure Disk Encryption, can contain + * multiple encryption settings per disk or snapshot. */ - encryptionSettings?: EncryptionSettings; + encryptionSettingsCollection?: EncryptionSettingsCollection; /** * @member {string} [provisioningState] The disk provisioning state. * **NOTE: This property will not be serialized. It can only be populated by @@ -5034,10 +5156,11 @@ export interface SnapshotUpdate { */ diskSizeGB?: number; /** - * @member {EncryptionSettings} [encryptionSettings] Encryption settings for - * disk or snapshot + * @member {EncryptionSettingsCollection} [encryptionSettingsCollection] + * Encryption settings collection used be Azure Disk Encryption, can contain + * multiple encryption settings per disk or snapshot. */ - encryptionSettings?: EncryptionSettings; + encryptionSettingsCollection?: EncryptionSettingsCollection; /** * @member {{ [propertyName: string]: string }} [tags] Resource tags */ @@ -5075,7 +5198,7 @@ export interface GalleryIdentifier { export interface Gallery extends Resource { /** * @member {string} [description] The description of this Shared Image - * Gallery resource. This property is updateable. + * Gallery resource. This property is updatable. */ description?: string; /** @@ -5136,7 +5259,7 @@ export interface ResourceRange { * @interface * An interface representing RecommendedMachineConfiguration. * The properties describe the recommended machine configuration for this Image - * Definition. These properties are updateable. + * Definition. These properties are updatable. * */ export interface RecommendedMachineConfiguration { @@ -5196,7 +5319,7 @@ export interface ImagePurchasePlan { export interface GalleryImage extends Resource { /** * @member {string} [description] The description of this gallery Image - * Definition resource. This property is updateable. + * Definition resource. This property is updatable. */ description?: string; /** @@ -5228,7 +5351,7 @@ export interface GalleryImage extends Resource { /** * @member {Date} [endOfLifeDate] The end of life date of the gallery Image * Definition. This property can be used for decommissioning purposes. This - * property is updateable. + * property is updatable. */ endOfLifeDate?: Date; /** @@ -5267,7 +5390,7 @@ export interface GalleryImage extends Resource { export interface GalleryArtifactPublishingProfileBase { /** * @member {TargetRegion[]} [targetRegions] The target regions where the - * Image Version is going to be replicated to. This property is updateable. + * Image Version is going to be replicated to. This property is updatable. */ targetRegions?: TargetRegion[]; /** @@ -5288,7 +5411,7 @@ export interface GalleryImageVersionPublishingProfile extends GalleryArtifactPub * @member {number} [replicaCount] The number of replicas of the Image * Version to be created per region. This property would take effect for a * region when regionalReplicaCount is not specified. This property is - * updateable. + * updatable. */ replicaCount?: number; /** @@ -5307,9 +5430,15 @@ export interface GalleryImageVersionPublishingProfile extends GalleryArtifactPub /** * @member {Date} [endOfLifeDate] The end of life date of the gallery Image * Version. This property can be used for decommissioning purposes. This - * property is updateable. + * property is updatable. */ endOfLifeDate?: Date; + /** + * @member {StorageAccountType} [storageAccountType] Specifies the storage + * account type to be used to store the image. This property is not + * updatable. Possible values include: 'Standard_LRS', 'Standard_ZRS' + */ + storageAccountType?: StorageAccountType; } /** @@ -5493,9 +5622,15 @@ export interface TargetRegion { name: string; /** * @member {number} [regionalReplicaCount] The number of replicas of the - * Image Version to be created per region. This property is updateable. + * Image Version to be created per region. This property is updatable. */ regionalReplicaCount?: number; + /** + * @member {StorageAccountType} [storageAccountType] Specifies the storage + * account type to be used to store the image. This property is not + * updatable. Possible values include: 'Standard_LRS', 'Standard_ZRS' + */ + storageAccountType?: StorageAccountType; } /** @@ -5591,7 +5726,7 @@ export interface ContainerServiceMasterProfile { */ dnsPrefix: string; /** - * @member {string} [fqdn] FDQN for the master. + * @member {string} [fqdn] FQDN for the master. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -5638,7 +5773,7 @@ export interface ContainerServiceAgentPoolProfile { */ dnsPrefix: string; /** - * @member {string} [fqdn] FDQN for the agent pool. + * @member {string} [fqdn] FQDN for the agent pool. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -5889,6 +6024,23 @@ export interface VirtualMachinesGetOptionalParams extends msRest.RequestOptionsB expand?: InstanceViewTypes; } +/** + * @interface + * An interface representing VirtualMachinesPowerOffOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface VirtualMachinesPowerOffOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [skipShutdown] 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. Default value: false . + */ + skipShutdown?: boolean; +} + /** * @interface * An interface representing VirtualMachinesReimageOptionalParams. @@ -5904,6 +6056,23 @@ export interface VirtualMachinesReimageOptionalParams extends msRest.RequestOpti parameters?: VirtualMachineReimageParameters; } +/** + * @interface + * An interface representing VirtualMachinesBeginPowerOffOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface VirtualMachinesBeginPowerOffOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [skipShutdown] 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. Default value: false . + */ + skipShutdown?: boolean; +} + /** * @interface * An interface representing VirtualMachinesBeginReimageOptionalParams. @@ -5961,6 +6130,13 @@ export interface VirtualMachineScaleSetsPowerOffOptionalParams extends msRest.Re * virtual machine instance IDs from the VM scale set. */ vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + /** + * @member {boolean} [skipShutdown] 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. Default value: false . + */ + skipShutdown?: boolean; } /** @@ -6081,6 +6257,13 @@ export interface VirtualMachineScaleSetsBeginPowerOffOptionalParams extends msRe * virtual machine instance IDs from the VM scale set. */ vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + /** + * @member {boolean} [skipShutdown] 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. Default value: false . + */ + skipShutdown?: boolean; } /** @@ -6225,6 +6408,23 @@ export interface VirtualMachineScaleSetVMsListOptionalParams extends msRest.Requ expand?: string; } +/** + * @interface + * An interface representing VirtualMachineScaleSetVMsPowerOffOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface VirtualMachineScaleSetVMsPowerOffOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [skipShutdown] 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. Default value: false . + */ + skipShutdown?: boolean; +} + /** * @interface * An interface representing VirtualMachineScaleSetVMsBeginReimageOptionalParams. @@ -6241,6 +6441,23 @@ export interface VirtualMachineScaleSetVMsBeginReimageOptionalParams extends msR vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; } +/** + * @interface + * An interface representing VirtualMachineScaleSetVMsBeginPowerOffOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface VirtualMachineScaleSetVMsBeginPowerOffOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [skipShutdown] 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. Default value: false . + */ + skipShutdown?: boolean; +} + /** * @interface * An interface representing GalleryImageVersionsGetOptionalParams. @@ -6836,13 +7053,30 @@ export type ResourceSkuRestrictionsReasonCode = 'QuotaId' | 'NotAvailableForSubs */ export type DiskStorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'StandardSSD_LRS' | 'UltraSSD_LRS'; +/** + * Defines values for HyperVGeneration. + * Possible values include: 'V1', 'V2' + * @readonly + * @enum {string} + */ +export type HyperVGeneration = 'V1' | 'V2'; + /** * Defines values for DiskCreateOption. - * Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore' + * Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore', 'Upload' * @readonly * @enum {string} */ -export type DiskCreateOption = 'Empty' | 'Attach' | 'FromImage' | 'Import' | 'Copy' | 'Restore'; +export type DiskCreateOption = 'Empty' | 'Attach' | 'FromImage' | 'Import' | 'Copy' | 'Restore' | 'Upload'; + +/** + * Defines values for DiskState. + * Possible values include: 'Unattached', 'Attached', 'Reserved', 'ActiveSAS', 'ReadyToUpload', + * 'ActiveUpload' + * @readonly + * @enum {string} + */ +export type DiskState = 'Unattached' | 'Attached' | 'Reserved' | 'ActiveSAS' | 'ReadyToUpload' | 'ActiveUpload'; /** * Defines values for SnapshotStorageAccountTypes. @@ -6854,11 +7088,19 @@ export type SnapshotStorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'Stan /** * Defines values for AccessLevel. - * Possible values include: 'None', 'Read' + * Possible values include: 'None', 'Read', 'Write' + * @readonly + * @enum {string} + */ +export type AccessLevel = 'None' | 'Read' | 'Write'; + +/** + * Defines values for StorageAccountType. + * Possible values include: 'Standard_LRS', 'Standard_ZRS' * @readonly * @enum {string} */ -export type AccessLevel = 'None' | 'Read'; +export type StorageAccountType = 'Standard_LRS' | 'Standard_ZRS'; /** * Defines values for AggregatedReplicationState. diff --git a/packages/@azure/arm-compute/lib/models/mappers.ts b/packages/@azure/arm-compute/lib/models/mappers.ts index e3f6d324002a..89033054d2a4 100644 --- a/packages/@azure/arm-compute/lib/models/mappers.ts +++ b/packages/@azure/arm-compute/lib/models/mappers.ts @@ -3785,6 +3785,17 @@ export const VirtualMachineScaleSetExtension: msRest.CompositeMapper = { type: { name: "String" } + }, + provisionAfterExtensions: { + serializedName: "properties.provisionAfterExtensions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } @@ -3981,6 +3992,12 @@ export const VirtualMachineScaleSet: msRest.CompositeMapper = { name: "Boolean" } }, + doNotRunExtensionsOnOverprovisionedVMs: { + serializedName: "properties.doNotRunExtensionsOnOverprovisionedVMs", + type: { + name: "Boolean" + } + }, uniqueId: { readOnly: true, serializedName: "properties.uniqueId", @@ -4772,6 +4789,50 @@ export const VirtualMachineScaleSetVMInstanceView: msRest.CompositeMapper = { } }; +export const VirtualMachineScaleSetVMNetworkProfileConfiguration: msRest.CompositeMapper = { + serializedName: "VirtualMachineScaleSetVMNetworkProfileConfiguration", + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMNetworkProfileConfiguration", + modelProperties: { + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfiguration" + } + } + } + } + } + } +}; + +export const VirtualMachineScaleSetVMProtectionPolicy: msRest.CompositeMapper = { + serializedName: "VirtualMachineScaleSetVMProtectionPolicy", + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMProtectionPolicy", + modelProperties: { + protectFromScaleIn: { + serializedName: "protectFromScaleIn", + type: { + name: "Boolean" + } + }, + protectFromScaleSetActions: { + serializedName: "protectFromScaleSetActions", + type: { + name: "Boolean" + } + } + } + } +}; + export const VirtualMachineScaleSetVM: msRest.CompositeMapper = { serializedName: "VirtualMachineScaleSetVM", type: { @@ -4851,6 +4912,13 @@ export const VirtualMachineScaleSetVM: msRest.CompositeMapper = { className: "NetworkProfile" } }, + networkProfileConfiguration: { + serializedName: "properties.networkProfileConfiguration", + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMNetworkProfileConfiguration" + } + }, diagnosticsProfile: { serializedName: "properties.diagnosticsProfile", type: { @@ -4878,6 +4946,20 @@ export const VirtualMachineScaleSetVM: msRest.CompositeMapper = { name: "String" } }, + modelDefinitionApplied: { + readOnly: true, + serializedName: "properties.modelDefinitionApplied", + type: { + name: "String" + } + }, + protectionPolicy: { + serializedName: "properties.protectionPolicy", + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMProtectionPolicy" + } + }, plan: { serializedName: "plan", type: { @@ -5148,6 +5230,22 @@ export const LogAnalyticsOperationResult: msRest.CompositeMapper = { } }; +export const VMScaleSetConvertToSinglePlacementGroupInput: msRest.CompositeMapper = { + serializedName: "VMScaleSetConvertToSinglePlacementGroupInput", + type: { + name: "Composite", + className: "VMScaleSetConvertToSinglePlacementGroupInput", + modelProperties: { + activePlacementGroupId: { + serializedName: "activePlacementGroupId", + type: { + name: "String" + } + } + } + } +}; + export const RunCommandInputParameter: msRest.CompositeMapper = { serializedName: "RunCommandInputParameter", type: { @@ -5859,18 +5957,12 @@ export const KeyVaultAndKeyReference: msRest.CompositeMapper = { } }; -export const EncryptionSettings: msRest.CompositeMapper = { - serializedName: "EncryptionSettings", +export const EncryptionSettingsElement: msRest.CompositeMapper = { + serializedName: "EncryptionSettingsElement", type: { name: "Composite", - className: "EncryptionSettings", + className: "EncryptionSettingsElement", modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - }, diskEncryptionKey: { serializedName: "diskEncryptionKey", type: { @@ -5889,6 +5981,35 @@ export const EncryptionSettings: msRest.CompositeMapper = { } }; +export const EncryptionSettingsCollection: msRest.CompositeMapper = { + serializedName: "EncryptionSettingsCollection", + type: { + name: "Composite", + className: "EncryptionSettingsCollection", + modelProperties: { + enabled: { + required: true, + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + encryptionSettings: { + serializedName: "encryptionSettings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EncryptionSettingsElement" + } + } + } + } + } + } +}; + export const Disk: msRest.CompositeMapper = { serializedName: "Disk", type: { @@ -5938,6 +6059,12 @@ export const Disk: msRest.CompositeMapper = { ] } }, + hyperVGeneration: { + serializedName: "properties.hyperVGeneration", + type: { + name: "String" + } + }, creationData: { required: true, serializedName: "properties.creationData", @@ -5952,11 +6079,11 @@ export const Disk: msRest.CompositeMapper = { name: "Number" } }, - encryptionSettings: { - serializedName: "properties.encryptionSettings", + encryptionSettingsCollection: { + serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "EncryptionSettings" + className: "EncryptionSettingsCollection" } }, provisioningState: { @@ -5977,6 +6104,13 @@ export const Disk: msRest.CompositeMapper = { type: { name: "Number" } + }, + diskState: { + readOnly: true, + serializedName: "properties.diskState", + type: { + name: "String" + } } } } @@ -6004,11 +6138,11 @@ export const DiskUpdate: msRest.CompositeMapper = { name: "Number" } }, - encryptionSettings: { - serializedName: "properties.encryptionSettings", + encryptionSettingsCollection: { + serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "EncryptionSettings" + className: "EncryptionSettingsCollection" } }, diskIOPSReadWrite: { @@ -6148,6 +6282,12 @@ export const Snapshot: msRest.CompositeMapper = { ] } }, + hyperVGeneration: { + serializedName: "properties.hyperVGeneration", + type: { + name: "String" + } + }, creationData: { required: true, serializedName: "properties.creationData", @@ -6162,11 +6302,11 @@ export const Snapshot: msRest.CompositeMapper = { name: "Number" } }, - encryptionSettings: { - serializedName: "properties.encryptionSettings", + encryptionSettingsCollection: { + serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "EncryptionSettings" + className: "EncryptionSettingsCollection" } }, provisioningState: { @@ -6202,11 +6342,11 @@ export const SnapshotUpdate: msRest.CompositeMapper = { name: "Number" } }, - encryptionSettings: { - serializedName: "properties.encryptionSettings", + encryptionSettingsCollection: { + serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "EncryptionSettings" + className: "EncryptionSettingsCollection" } }, tags: { @@ -6565,6 +6705,12 @@ export const GalleryImageVersionPublishingProfile: msRest.CompositeMapper = { type: { name: "DateTime" } + }, + storageAccountType: { + serializedName: "storageAccountType", + type: { + name: "String" + } } } } @@ -6787,6 +6933,12 @@ export const TargetRegion: msRest.CompositeMapper = { type: { name: "Number" } + }, + storageAccountType: { + serializedName: "storageAccountType", + type: { + name: "String" + } } } } diff --git a/packages/@azure/arm-compute/lib/models/parameters.ts b/packages/@azure/arm-compute/lib/models/parameters.ts index 1efec3c6f215..157b4c501e48 100644 --- a/packages/@azure/arm-compute/lib/models/parameters.ts +++ b/packages/@azure/arm-compute/lib/models/parameters.ts @@ -26,7 +26,7 @@ export const apiVersion0: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2018-10-01', + defaultValue: '2019-03-01', type: { name: "String" } @@ -50,7 +50,7 @@ export const apiVersion2: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2018-06-01', + defaultValue: '2018-09-30', type: { name: "String" } @@ -295,6 +295,19 @@ export const select: msRest.OperationQueryParameter = { } } }; +export const skipShutdown: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "skipShutdown" + ], + mapper: { + serializedName: "skipShutdown", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; export const skus: msRest.OperationURLParameter = { parameterPath: "skus", mapper: { diff --git a/packages/@azure/arm-compute/lib/models/snapshotsMappers.ts b/packages/@azure/arm-compute/lib/models/snapshotsMappers.ts index 0911184ba242..d77f0965b037 100644 --- a/packages/@azure/arm-compute/lib/models/snapshotsMappers.ts +++ b/packages/@azure/arm-compute/lib/models/snapshotsMappers.ts @@ -15,7 +15,8 @@ export { SnapshotSku, CreationData, ImageDiskReference, - EncryptionSettings, + EncryptionSettingsCollection, + EncryptionSettingsElement, KeyVaultAndSecretReference, SourceVault, KeyVaultAndKeyReference, @@ -107,6 +108,8 @@ export { VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineHealthStatus, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProtectionPolicy, RollingUpgradeStatusInfo, RollingUpgradeRunningStatus, RollingUpgradeProgressInfo, diff --git a/packages/@azure/arm-compute/lib/models/virtualMachineExtensionImagesMappers.ts b/packages/@azure/arm-compute/lib/models/virtualMachineExtensionImagesMappers.ts index 94e881531faf..1663e8951289 100644 --- a/packages/@azure/arm-compute/lib/models/virtualMachineExtensionImagesMappers.ts +++ b/packages/@azure/arm-compute/lib/models/virtualMachineExtensionImagesMappers.ts @@ -95,6 +95,8 @@ export { VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineHealthStatus, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProtectionPolicy, RollingUpgradeStatusInfo, RollingUpgradeRunningStatus, RollingUpgradeProgressInfo, @@ -106,7 +108,8 @@ export { DiskSku, CreationData, ImageDiskReference, - EncryptionSettings, + EncryptionSettingsCollection, + EncryptionSettingsElement, KeyVaultAndSecretReference, SourceVault, KeyVaultAndKeyReference, diff --git a/packages/@azure/arm-compute/lib/models/virtualMachineExtensionsMappers.ts b/packages/@azure/arm-compute/lib/models/virtualMachineExtensionsMappers.ts index 0fd0819fc3b1..462627b1f1e2 100644 --- a/packages/@azure/arm-compute/lib/models/virtualMachineExtensionsMappers.ts +++ b/packages/@azure/arm-compute/lib/models/virtualMachineExtensionsMappers.ts @@ -107,6 +107,8 @@ export { VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineHealthStatus, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProtectionPolicy, RollingUpgradeStatusInfo, RollingUpgradeRunningStatus, RollingUpgradeProgressInfo, @@ -117,7 +119,8 @@ export { DiskSku, CreationData, ImageDiskReference, - EncryptionSettings, + EncryptionSettingsCollection, + EncryptionSettingsElement, KeyVaultAndSecretReference, SourceVault, KeyVaultAndKeyReference, diff --git a/packages/@azure/arm-compute/lib/models/virtualMachineImagesMappers.ts b/packages/@azure/arm-compute/lib/models/virtualMachineImagesMappers.ts index cbee1c8af8cc..0cb79c12a3e7 100644 --- a/packages/@azure/arm-compute/lib/models/virtualMachineImagesMappers.ts +++ b/packages/@azure/arm-compute/lib/models/virtualMachineImagesMappers.ts @@ -39,7 +39,8 @@ export { DiskSku, CreationData, ImageDiskReference, - EncryptionSettings, + EncryptionSettingsCollection, + EncryptionSettingsElement, KeyVaultAndSecretReference, SourceVault, KeyVaultAndKeyReference, @@ -148,6 +149,8 @@ export { VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineHealthStatus, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProtectionPolicy, RollingUpgradeStatusInfo, RollingUpgradeRunningStatus, RollingUpgradeProgressInfo, diff --git a/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetExtensionsMappers.ts b/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetExtensionsMappers.ts index 404446c5128b..0bb36c0749c7 100644 --- a/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetExtensionsMappers.ts +++ b/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetExtensionsMappers.ts @@ -41,7 +41,8 @@ export { DiskSku, CreationData, ImageDiskReference, - EncryptionSettings, + EncryptionSettingsCollection, + EncryptionSettingsElement, KeyVaultAndSecretReference, SourceVault, KeyVaultAndKeyReference, @@ -149,6 +150,8 @@ export { VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineHealthStatus, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProtectionPolicy, RollingUpgradeStatusInfo, RollingUpgradeRunningStatus, RollingUpgradeProgressInfo, diff --git a/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetOperationsMappers.ts b/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetOperationsMappers.ts new file mode 100644 index 000000000000..bfd3b9d954cc --- /dev/null +++ b/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetOperationsMappers.ts @@ -0,0 +1,15 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + VMScaleSetConvertToSinglePlacementGroupInput, + CloudError +} from "../models/mappers"; + diff --git a/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetRollingUpgradesMappers.ts b/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetRollingUpgradesMappers.ts index 8e5ad6a1d67d..533cd1765f85 100644 --- a/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetRollingUpgradesMappers.ts +++ b/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetRollingUpgradesMappers.ts @@ -101,12 +101,15 @@ export { VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineHealthStatus, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProtectionPolicy, UpdateResource, Disk, DiskSku, CreationData, ImageDiskReference, - EncryptionSettings, + EncryptionSettingsCollection, + EncryptionSettingsElement, KeyVaultAndSecretReference, SourceVault, KeyVaultAndKeyReference, diff --git a/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetVMsMappers.ts b/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetVMsMappers.ts index e8fbecba17ef..04806e03c081 100644 --- a/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetVMsMappers.ts +++ b/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetVMsMappers.ts @@ -50,8 +50,17 @@ export { VaultCertificate, NetworkProfile, NetworkInterfaceReference, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetIPConfiguration, + ApiEntityReference, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetIpTag, DiagnosticsProfile, BootDiagnostics, + VirtualMachineScaleSetVMProtectionPolicy, Plan, VirtualMachineExtension, VirtualMachineScaleSetVMListResult, @@ -75,15 +84,8 @@ export { ImageStorageProfile, ImageOSDisk, ImageDataDisk, - VirtualMachineScaleSetIPConfiguration, - ApiEntityReference, - VirtualMachineScaleSetPublicIPAddressConfiguration, - VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, - VirtualMachineScaleSetIpTag, VirtualMachineScaleSetUpdateIPConfiguration, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, - VirtualMachineScaleSetNetworkConfiguration, - VirtualMachineScaleSetNetworkConfigurationDnsSettings, VirtualMachineScaleSetUpdateNetworkConfiguration, VirtualMachineScaleSet, UpgradePolicy, @@ -113,7 +115,8 @@ export { DiskSku, CreationData, ImageDiskReference, - EncryptionSettings, + EncryptionSettingsCollection, + EncryptionSettingsElement, KeyVaultAndSecretReference, SourceVault, KeyVaultAndKeyReference, diff --git a/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetsMappers.ts b/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetsMappers.ts index 5f6d58616fa2..7a156c48af7c 100644 --- a/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetsMappers.ts +++ b/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetsMappers.ts @@ -130,13 +130,16 @@ export { VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineHealthStatus, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProtectionPolicy, RollingUpgradeStatusInfo, RollingUpgradeRunningStatus, Disk, DiskSku, CreationData, ImageDiskReference, - EncryptionSettings, + EncryptionSettingsCollection, + EncryptionSettingsElement, KeyVaultAndSecretReference, SourceVault, KeyVaultAndKeyReference, diff --git a/packages/@azure/arm-compute/lib/models/virtualMachinesMappers.ts b/packages/@azure/arm-compute/lib/models/virtualMachinesMappers.ts index b2a1dd7197df..3d3f3b7ad132 100644 --- a/packages/@azure/arm-compute/lib/models/virtualMachinesMappers.ts +++ b/packages/@azure/arm-compute/lib/models/virtualMachinesMappers.ts @@ -116,6 +116,8 @@ export { VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineHealthStatus, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProtectionPolicy, RollingUpgradeStatusInfo, RollingUpgradeRunningStatus, RollingUpgradeProgressInfo, @@ -126,7 +128,8 @@ export { DiskSku, CreationData, ImageDiskReference, - EncryptionSettings, + EncryptionSettingsCollection, + EncryptionSettingsElement, KeyVaultAndSecretReference, SourceVault, KeyVaultAndKeyReference, diff --git a/packages/@azure/arm-compute/lib/operations/galleries.ts b/packages/@azure/arm-compute/lib/operations/galleries.ts index 974eb128b68f..bf566595c4a2 100644 --- a/packages/@azure/arm-compute/lib/operations/galleries.ts +++ b/packages/@azure/arm-compute/lib/operations/galleries.ts @@ -244,7 +244,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -268,7 +268,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -291,7 +291,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -316,7 +316,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -354,7 +354,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-compute/lib/operations/galleryImageVersions.ts b/packages/@azure/arm-compute/lib/operations/galleryImageVersions.ts index 7e92617c0e45..02c415f95c6e 100644 --- a/packages/@azure/arm-compute/lib/operations/galleryImageVersions.ts +++ b/packages/@azure/arm-compute/lib/operations/galleryImageVersions.ts @@ -237,7 +237,7 @@ const getOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.expand0, - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -263,7 +263,7 @@ const listByGalleryImageOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -290,7 +290,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryImageVersionName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -330,7 +330,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.galleryImageVersionName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-compute/lib/operations/galleryImages.ts b/packages/@azure/arm-compute/lib/operations/galleryImages.ts index f61ec5fc1cf2..1205d3f7d769 100644 --- a/packages/@azure/arm-compute/lib/operations/galleryImages.ts +++ b/packages/@azure/arm-compute/lib/operations/galleryImages.ts @@ -219,7 +219,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -244,7 +244,7 @@ const listByGalleryOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -270,7 +270,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -309,7 +309,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-compute/lib/operations/index.ts b/packages/@azure/arm-compute/lib/operations/index.ts index 98261ca1ab6b..1821b058d12d 100644 --- a/packages/@azure/arm-compute/lib/operations/index.ts +++ b/packages/@azure/arm-compute/lib/operations/index.ts @@ -20,6 +20,7 @@ export * from "./images"; export * from "./virtualMachineScaleSets"; export * from "./virtualMachineScaleSetExtensions"; export * from "./virtualMachineScaleSetRollingUpgrades"; +export * from "./virtualMachineScaleSetOperations"; export * from "./virtualMachineScaleSetVMs"; export * from "./logAnalytics"; export * from "./virtualMachineRunCommands"; diff --git a/packages/@azure/arm-compute/lib/operations/virtualMachineScaleSetOperations.ts b/packages/@azure/arm-compute/lib/operations/virtualMachineScaleSetOperations.ts new file mode 100644 index 000000000000..543a734532de --- /dev/null +++ b/packages/@azure/arm-compute/lib/operations/virtualMachineScaleSetOperations.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/virtualMachineScaleSetOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a VirtualMachineScaleSetOperations. */ +export class VirtualMachineScaleSetOperations { + private readonly client: ComputeManagementClientContext; + + /** + * Create a VirtualMachineScaleSetOperations. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * Converts SinglePlacementGroup property to false for a existing virtual machine scale set. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the virtual machine scale set to create or update. + * @param parameters The input object for ConvertToSinglePlacementGroup API. + * @param [options] The optional parameters + * @returns Promise + */ + convertToSinglePlacementGroup(resourceGroupName: string, vmScaleSetName: string, parameters: Models.VMScaleSetConvertToSinglePlacementGroupInput, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the virtual machine scale set to create or update. + * @param parameters The input object for ConvertToSinglePlacementGroup API. + * @param callback The callback + */ + convertToSinglePlacementGroup(resourceGroupName: string, vmScaleSetName: string, parameters: Models.VMScaleSetConvertToSinglePlacementGroupInput, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the virtual machine scale set to create or update. + * @param parameters The input object for ConvertToSinglePlacementGroup API. + * @param options The optional parameters + * @param callback The callback + */ + convertToSinglePlacementGroup(resourceGroupName: string, vmScaleSetName: string, parameters: Models.VMScaleSetConvertToSinglePlacementGroupInput, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + convertToSinglePlacementGroup(resourceGroupName: string, vmScaleSetName: string, parameters: Models.VMScaleSetConvertToSinglePlacementGroupInput, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vmScaleSetName, + parameters, + options + }, + convertToSinglePlacementGroupOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const convertToSinglePlacementGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.subscriptionId + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.VMScaleSetConvertToSinglePlacementGroupInput, + required: true + } + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-compute/lib/operations/virtualMachineScaleSetVMs.ts b/packages/@azure/arm-compute/lib/operations/virtualMachineScaleSetVMs.ts index a88fe0ec3aa5..158980afb9a6 100644 --- a/packages/@azure/arm-compute/lib/operations/virtualMachineScaleSetVMs.ts +++ b/packages/@azure/arm-compute/lib/operations/virtualMachineScaleSetVMs.ts @@ -211,7 +211,7 @@ export class VirtualMachineScaleSetVMs { * @param [options] The optional parameters * @returns Promise */ - powerOff(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise { + powerOff(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMsPowerOffOptionalParams): Promise { return this.beginPowerOff(resourceGroupName,vmScaleSetName,instanceId,options) .then(lroPoller => lroPoller.pollUntilFinished()); } @@ -398,7 +398,7 @@ export class VirtualMachineScaleSetVMs { * @param [options] The optional parameters * @returns Promise */ - beginPowerOff(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise { + beginPowerOff(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMsBeginPowerOffOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -777,6 +777,7 @@ const beginPowerOffOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.skipShutdown, Parameters.apiVersion0 ], headerParameters: [ diff --git a/packages/@azure/arm-compute/lib/operations/virtualMachineScaleSets.ts b/packages/@azure/arm-compute/lib/operations/virtualMachineScaleSets.ts index 871451f4dcd7..e7dfd2b78aff 100644 --- a/packages/@azure/arm-compute/lib/operations/virtualMachineScaleSets.ts +++ b/packages/@azure/arm-compute/lib/operations/virtualMachineScaleSets.ts @@ -354,7 +354,9 @@ export class VirtualMachineScaleSets { } /** - * Reimages (upgrade the operating system) one or more virtual machines in a VM scale set. + * Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which + * don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual + * machine is reset to initial state. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param [options] The optional parameters @@ -633,7 +635,9 @@ export class VirtualMachineScaleSets { } /** - * Reimages (upgrade the operating system) one or more virtual machines in a VM scale set. + * Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which + * don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual + * machine is reset to initial state. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param [options] The optional parameters @@ -1123,6 +1127,7 @@ const beginPowerOffOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.skipShutdown, Parameters.apiVersion0 ], headerParameters: [ diff --git a/packages/@azure/arm-compute/lib/operations/virtualMachines.ts b/packages/@azure/arm-compute/lib/operations/virtualMachines.ts index 0afa912f29f6..a535ced3f9da 100644 --- a/packages/@azure/arm-compute/lib/operations/virtualMachines.ts +++ b/packages/@azure/arm-compute/lib/operations/virtualMachines.ts @@ -323,7 +323,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - powerOff(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { + powerOff(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesPowerOffOptionalParams): Promise { return this.beginPowerOff(resourceGroupName,vmName,options) .then(lroPoller => lroPoller.pollUntilFinished()); } @@ -365,8 +365,7 @@ export class VirtualMachines { } /** - * Reimages (upgrade the operating system) virtual machine. This operation is only supported for - * differencing OS disks. + * Reimages the virtual machine which has an ephemeral OS disk back to its initial state. * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param [options] The optional parameters @@ -527,7 +526,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginPowerOff(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { + beginPowerOff(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesBeginPowerOffOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -593,8 +592,7 @@ export class VirtualMachines { } /** - * Reimages (upgrade the operating system) virtual machine. This operation is only supported for - * differencing OS disks. + * Reimages the virtual machine which has an ephemeral OS disk back to its initial state. * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param [options] The optional parameters @@ -1093,6 +1091,7 @@ const beginPowerOffOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.skipShutdown, Parameters.apiVersion0 ], headerParameters: [ diff --git a/packages/@azure/arm-compute/package.json b/packages/@azure/arm-compute/package.json index 055da27ed366..8c4d78eed5b7 100644 --- a/packages/@azure/arm-compute/package.json +++ b/packages/@azure/arm-compute/package.json @@ -4,8 +4,8 @@ "description": "ComputeManagementClient Library with typescript type definitions for node.js and browser.", "version": "9.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.2.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -23,6 +23,7 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/arm-compute", @@ -51,6 +52,5 @@ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-compute.js.map'\" -o ./dist/arm-compute.min.js ./dist/arm-compute.js", "prepack": "npm install && npm run build" }, - "sideEffects": false, - "authPublish": true + "sideEffects": false } diff --git a/packages/@azure/arm-compute/rollup.config.js b/packages/@azure/arm-compute/rollup.config.js index be3dd3556db7..368f8c311ccf 100644 --- a/packages/@azure/arm-compute/rollup.config.js +++ b/packages/@azure/arm-compute/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/computeManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/computeManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-compute.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config;