diff --git a/packages/@azure/arm-compute/LICENSE.txt b/packages/@azure/arm-compute/LICENSE.txt index a70e8cf66038..8f3d856145c5 100644 --- a/packages/@azure/arm-compute/LICENSE.txt +++ b/packages/@azure/arm-compute/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 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 -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +The MIT License (MIT) + +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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/@azure/arm-compute/README.md b/packages/@azure/arm-compute/README.md index 3a78712d6ed2..a9d42ac0c213 100644 --- a/packages/@azure/arm-compute/README.md +++ b/packages/@azure/arm-compute/README.md @@ -1,99 +1,96 @@ -## Azure ComputeManagementClient SDK for JavaScript - -This package contains an isomorphic SDK for ComputeManagementClient. - -### Currently supported environments - -- Node.js version 6.x.x or higher -- Browser JavaScript - -### How to Install - -``` -npm install @azure/arm-compute -``` - -### How to use - -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. - -##### Install @azure/ms-rest-nodeauth - -``` -npm install @azure/ms-rest-nodeauth -``` - -##### Sample code - -```ts -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"; -import { ComputeManagementClient, ComputeManagementModels, ComputeManagementMappers } from "@azure/arm-compute"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ComputeManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -#### browser - Authentication, client creation and list operations as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth - -``` -npm install @azure/ms-rest-browserauth -``` - -##### Sample code - -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-compute sample - - - - - - - - -``` - -## 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) +## Azure ComputeManagementClient SDK for JavaScript + +This package contains an isomorphic SDK for ComputeManagementClient. + +### Currently supported environments + +- Node.js version 6.x.x or higher +- Browser JavaScript + +### How to Install + +```bash +npm install @azure/arm-compute +``` + +### How to use + +#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. + +##### Install @azure/ms-rest-nodeauth + +```bash +npm install @azure/ms-rest-nodeauth +``` + +##### Sample code + +```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"; +import { ComputeManagementClient, ComputeManagementModels, ComputeManagementMappers } from "@azure/arm-compute"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new ComputeManagementClient(creds, subscriptionId); + client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +#### browser - Authentication, client creation and list operations as an example written in JavaScript. + +##### Install @azure/ms-rest-browserauth + +```bash +npm install @azure/ms-rest-browserauth +``` + +##### Sample code + +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-compute sample + + + + + + + + +``` + +## Related projects + +- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) 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..a032fc1b4dc5 100644 --- a/packages/@azure/arm-compute/lib/models/availabilitySetsMappers.ts +++ b/packages/@azure/arm-compute/lib/models/availabilitySetsMappers.ts @@ -119,7 +119,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..ab718cced3bb 100644 --- a/packages/@azure/arm-compute/lib/models/containerServicesMappers.ts +++ b/packages/@azure/arm-compute/lib/models/containerServicesMappers.ts @@ -119,7 +119,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..b8c707596d6f 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, diff --git a/packages/@azure/arm-compute/lib/models/galleriesMappers.ts b/packages/@azure/arm-compute/lib/models/galleriesMappers.ts index eb30e0cd3aec..c8da801c76b4 100644 --- a/packages/@azure/arm-compute/lib/models/galleriesMappers.ts +++ b/packages/@azure/arm-compute/lib/models/galleriesMappers.ts @@ -109,7 +109,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..1bc83c502126 100644 --- a/packages/@azure/arm-compute/lib/models/galleryImageVersionsMappers.ts +++ b/packages/@azure/arm-compute/lib/models/galleryImageVersionsMappers.ts @@ -119,7 +119,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..49755f472330 100644 --- a/packages/@azure/arm-compute/lib/models/galleryImagesMappers.ts +++ b/packages/@azure/arm-compute/lib/models/galleryImagesMappers.ts @@ -113,7 +113,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..aeef1acb26f8 100644 --- a/packages/@azure/arm-compute/lib/models/imagesMappers.ts +++ b/packages/@azure/arm-compute/lib/models/imagesMappers.ts @@ -117,7 +117,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..7b8489434148 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] In case of + * overprovisioning, determines whether extensions should be run immediately, + * or if they should be delayed until after overprovisioning has finished and + * the set of instances to keep have been selected. + */ + 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.** @@ -4004,7 +4018,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 @@ -4178,8 +4192,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; /** @@ -4438,7 +4452,7 @@ export interface ResourceSkuCosts { /** * @interface * An interface representing ResourceSkuCapabilities. - * Describes The SKU capabilites object. + * Describes The SKU capabilities object. * */ export interface ResourceSkuCapabilities { @@ -4683,7 +4697,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 +4725,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 +4775,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 +4787,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 +4849,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 +4869,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 +4892,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 +4923,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 +4978,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 +5033,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 +5053,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 +5087,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 +5129,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 +5190,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 +5250,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 +5282,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 +5321,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 +5342,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 +5361,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 +5553,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 +5657,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 +5704,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.** */ @@ -6836,13 +6902,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' | 'Upload'; + +/** + * Defines values for DiskState. + * Possible values include: 'Unattached', 'Attached', 'Reserved', 'ActiveSAS', 'ReadyToUpload', + * 'ActiveUpload' * @readonly * @enum {string} */ -export type DiskCreateOption = 'Empty' | 'Attach' | 'FromImage' | 'Import' | 'Copy' | 'Restore'; +export type DiskState = 'Unattached' | 'Attached' | 'Reserved' | 'ActiveSAS' | 'ReadyToUpload' | 'ActiveUpload'; /** * Defines values for SnapshotStorageAccountTypes. @@ -6854,11 +6937,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..49a1043b45d8 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", @@ -5859,18 +5876,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 +5900,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 +5978,12 @@ export const Disk: msRest.CompositeMapper = { ] } }, + hyperVGeneration: { + serializedName: "properties.hyperVGeneration", + type: { + name: "String" + } + }, creationData: { required: true, serializedName: "properties.creationData", @@ -5952,11 +5998,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 +6023,13 @@ export const Disk: msRest.CompositeMapper = { type: { name: "Number" } + }, + diskState: { + readOnly: true, + serializedName: "properties.diskState", + type: { + name: "String" + } } } } @@ -6004,11 +6057,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 +6201,12 @@ export const Snapshot: msRest.CompositeMapper = { ] } }, + hyperVGeneration: { + serializedName: "properties.hyperVGeneration", + type: { + name: "String" + } + }, creationData: { required: true, serializedName: "properties.creationData", @@ -6162,11 +6221,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 +6261,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 +6624,16 @@ export const GalleryImageVersionPublishingProfile: msRest.CompositeMapper = { type: { name: "DateTime" } + }, + storageAccountType: { + serializedName: "storageAccountType", + type: { + name: "Enum", + allowedValues: [ + "Standard_LRS", + "Standard_ZRS" + ] + } } } } @@ -6787,6 +6856,16 @@ export const TargetRegion: msRest.CompositeMapper = { type: { name: "Number" } + }, + storageAccountType: { + serializedName: "storageAccountType", + type: { + name: "Enum", + allowedValues: [ + "Standard_LRS", + "Standard_ZRS" + ] + } } } } diff --git a/packages/@azure/arm-compute/lib/models/parameters.ts b/packages/@azure/arm-compute/lib/models/parameters.ts index 1efec3c6f215..4ab313983a7d 100644 --- a/packages/@azure/arm-compute/lib/models/parameters.ts +++ b/packages/@azure/arm-compute/lib/models/parameters.ts @@ -50,13 +50,25 @@ export const apiVersion2: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2018-06-01', + defaultValue: '2018-09-30', type: { name: "String" } } }; export const apiVersion3: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2019-03-01', + type: { + name: "String" + } + } +}; +export const apiVersion4: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, diff --git a/packages/@azure/arm-compute/lib/models/snapshotsMappers.ts b/packages/@azure/arm-compute/lib/models/snapshotsMappers.ts index 0911184ba242..5b8fa108c995 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, diff --git a/packages/@azure/arm-compute/lib/models/virtualMachineExtensionImagesMappers.ts b/packages/@azure/arm-compute/lib/models/virtualMachineExtensionImagesMappers.ts index 94e881531faf..d4573ef99610 100644 --- a/packages/@azure/arm-compute/lib/models/virtualMachineExtensionImagesMappers.ts +++ b/packages/@azure/arm-compute/lib/models/virtualMachineExtensionImagesMappers.ts @@ -106,7 +106,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..916d873f8981 100644 --- a/packages/@azure/arm-compute/lib/models/virtualMachineExtensionsMappers.ts +++ b/packages/@azure/arm-compute/lib/models/virtualMachineExtensionsMappers.ts @@ -117,7 +117,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..1cc93871eec8 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, diff --git a/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetExtensionsMappers.ts b/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetExtensionsMappers.ts index 404446c5128b..01b5abdfeb41 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, diff --git a/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetRollingUpgradesMappers.ts b/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetRollingUpgradesMappers.ts index 8e5ad6a1d67d..ed9ae36acbc7 100644 --- a/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetRollingUpgradesMappers.ts +++ b/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetRollingUpgradesMappers.ts @@ -106,7 +106,8 @@ export { 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..07c425957f34 100644 --- a/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetVMsMappers.ts +++ b/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetVMsMappers.ts @@ -113,7 +113,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..0f0e9c5ac5a6 100644 --- a/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetsMappers.ts +++ b/packages/@azure/arm-compute/lib/models/virtualMachineScaleSetsMappers.ts @@ -136,7 +136,8 @@ export { 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..349c4ad7b324 100644 --- a/packages/@azure/arm-compute/lib/models/virtualMachinesMappers.ts +++ b/packages/@azure/arm-compute/lib/models/virtualMachinesMappers.ts @@ -126,7 +126,8 @@ export { DiskSku, CreationData, ImageDiskReference, - EncryptionSettings, + EncryptionSettingsCollection, + EncryptionSettingsElement, KeyVaultAndSecretReference, SourceVault, KeyVaultAndKeyReference, diff --git a/packages/@azure/arm-compute/lib/operations/containerServices.ts b/packages/@azure/arm-compute/lib/operations/containerServices.ts index fb409253f04a..a0b681fc5406 100644 --- a/packages/@azure/arm-compute/lib/operations/containerServices.ts +++ b/packages/@azure/arm-compute/lib/operations/containerServices.ts @@ -274,7 +274,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -299,7 +299,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -323,7 +323,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -348,7 +348,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -386,7 +386,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-compute/lib/operations/galleries.ts b/packages/@azure/arm-compute/lib/operations/galleries.ts index 974eb128b68f..3ed0099d5551 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.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -268,7 +268,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -291,7 +291,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -316,7 +316,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -354,7 +354,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], 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..78864ec5df03 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.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -263,7 +263,7 @@ const listByGalleryImageOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -290,7 +290,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryImageVersionName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -330,7 +330,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.galleryImageVersionName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], 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..b951008c54f7 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.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -244,7 +244,7 @@ const listByGalleryOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -270,7 +270,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -309,7 +309,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-compute/lib/operations/virtualMachineScaleSets.ts b/packages/@azure/arm-compute/lib/operations/virtualMachineScaleSets.ts index 871451f4dcd7..b545e5ac0deb 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 diff --git a/packages/@azure/arm-compute/lib/operations/virtualMachines.ts b/packages/@azure/arm-compute/lib/operations/virtualMachines.ts index 0afa912f29f6..67a488a8a57f 100644 --- a/packages/@azure/arm-compute/lib/operations/virtualMachines.ts +++ b/packages/@azure/arm-compute/lib/operations/virtualMachines.ts @@ -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 @@ -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 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;