diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts
index bbc324c25385..705a51ab894d 100644
--- a/sdk/compute/arm-compute/src/computeManagementClient.ts
+++ b/sdk/compute/arm-compute/src/computeManagementClient.ts
@@ -32,12 +32,14 @@ class ComputeManagementClient extends ComputeManagementClientContext {
virtualMachineScaleSets: operations.VirtualMachineScaleSets;
virtualMachineScaleSetExtensions: operations.VirtualMachineScaleSetExtensions;
virtualMachineScaleSetRollingUpgrades: operations.VirtualMachineScaleSetRollingUpgrades;
+ virtualMachineScaleSetVMExtensions: operations.VirtualMachineScaleSetVMExtensions;
virtualMachineScaleSetVMs: operations.VirtualMachineScaleSetVMs;
logAnalytics: operations.LogAnalytics;
virtualMachineRunCommands: operations.VirtualMachineRunCommands;
resourceSkus: operations.ResourceSkus;
disks: operations.Disks;
snapshots: operations.Snapshots;
+ diskEncryptionSets: operations.DiskEncryptionSets;
galleries: operations.Galleries;
galleryImages: operations.GalleryImages;
galleryImageVersions: operations.GalleryImageVersions;
@@ -69,12 +71,14 @@ class ComputeManagementClient extends ComputeManagementClientContext {
this.virtualMachineScaleSets = new operations.VirtualMachineScaleSets(this);
this.virtualMachineScaleSetExtensions = new operations.VirtualMachineScaleSetExtensions(this);
this.virtualMachineScaleSetRollingUpgrades = new operations.VirtualMachineScaleSetRollingUpgrades(this);
+ this.virtualMachineScaleSetVMExtensions = new operations.VirtualMachineScaleSetVMExtensions(this);
this.virtualMachineScaleSetVMs = new operations.VirtualMachineScaleSetVMs(this);
this.logAnalytics = new operations.LogAnalytics(this);
this.virtualMachineRunCommands = new operations.VirtualMachineRunCommands(this);
this.resourceSkus = new operations.ResourceSkus(this);
this.disks = new operations.Disks(this);
this.snapshots = new operations.Snapshots(this);
+ this.diskEncryptionSets = new operations.DiskEncryptionSets(this);
this.galleries = new operations.Galleries(this);
this.galleryImages = new operations.GalleryImages(this);
this.galleryImageVersions = new operations.GalleryImageVersions(this);
diff --git a/sdk/compute/arm-compute/src/computeManagementClientContext.ts b/sdk/compute/arm-compute/src/computeManagementClientContext.ts
index 5f2fff8eaeab..2c1433f825da 100644
--- a/sdk/compute/arm-compute/src/computeManagementClientContext.ts
+++ b/sdk/compute/arm-compute/src/computeManagementClientContext.ts
@@ -37,7 +37,7 @@ export class ComputeManagementClientContext extends msRestAzure.AzureServiceClie
if (!options) {
options = {};
}
- if (!options.userAgent) {
+ if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}
@@ -51,10 +51,10 @@ export class ComputeManagementClientContext extends msRestAzure.AzureServiceClie
this.credentials = credentials;
this.subscriptionId = subscriptionId;
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
+ if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
+ if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}
diff --git a/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts
index 38d8d3c22591..503a6e410eb5 100644
--- a/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts
+++ b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts
@@ -14,6 +14,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetListResult,
AvailabilitySetUpdate,
@@ -48,9 +49,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -71,6 +76,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -104,6 +110,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/containerServicesMappers.ts b/sdk/compute/arm-compute/src/models/containerServicesMappers.ts
index b62883969c5e..4f9208a1edc2 100644
--- a/sdk/compute/arm-compute/src/models/containerServicesMappers.ts
+++ b/sdk/compute/arm-compute/src/models/containerServicesMappers.ts
@@ -14,6 +14,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -48,9 +49,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -71,6 +76,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -104,6 +110,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts
index 58a90efa86f4..514a6dcafbd1 100644
--- a/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts
+++ b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts
@@ -14,6 +14,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -48,9 +49,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -71,6 +76,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -104,6 +110,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts
index 10aeee1ee45b..7d66d11181be 100644
--- a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts
+++ b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts
@@ -14,6 +14,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -48,9 +49,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -71,6 +76,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -104,6 +110,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts b/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts
new file mode 100644
index 000000000000..55572654dc98
--- /dev/null
+++ b/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts
@@ -0,0 +1,182 @@
+/*
+ * 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 {
+ AdditionalCapabilities,
+ AdditionalUnattendContent,
+ ApiEntityReference,
+ ApiError,
+ ApiErrorBase,
+ AutomaticOSUpgradePolicy,
+ AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
+ AvailabilitySet,
+ AvailabilitySetUpdate,
+ BaseResource,
+ BillingProfile,
+ BootDiagnostics,
+ BootDiagnosticsInstanceView,
+ CloudError,
+ ContainerService,
+ ContainerServiceAgentPoolProfile,
+ ContainerServiceCustomProfile,
+ ContainerServiceDiagnosticsProfile,
+ ContainerServiceLinuxProfile,
+ ContainerServiceMasterProfile,
+ ContainerServiceOrchestratorProfile,
+ ContainerServiceServicePrincipalProfile,
+ ContainerServiceSshConfiguration,
+ ContainerServiceSshPublicKey,
+ ContainerServiceVMDiagnostics,
+ ContainerServiceWindowsProfile,
+ CreationData,
+ DataDisk,
+ DataDiskImage,
+ DedicatedHost,
+ DedicatedHostAllocatableVM,
+ DedicatedHostAvailableCapacity,
+ DedicatedHostGroup,
+ DedicatedHostGroupUpdate,
+ DedicatedHostInstanceView,
+ DedicatedHostUpdate,
+ DiagnosticsProfile,
+ DiffDiskSettings,
+ Disallowed,
+ Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetList,
+ DiskEncryptionSetParameters,
+ DiskEncryptionSettings,
+ DiskEncryptionSetUpdate,
+ DiskInstanceView,
+ DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
+ EncryptionSettingsCollection,
+ EncryptionSettingsElement,
+ Gallery,
+ GalleryApplication,
+ GalleryApplicationVersion,
+ GalleryApplicationVersionPublishingProfile,
+ GalleryArtifactPublishingProfileBase,
+ GalleryArtifactVersionSource,
+ GalleryDataDiskImage,
+ GalleryDiskImage,
+ GalleryIdentifier,
+ GalleryImage,
+ GalleryImageIdentifier,
+ GalleryImageVersion,
+ GalleryImageVersionPublishingProfile,
+ GalleryImageVersionStorageProfile,
+ GalleryOSDiskImage,
+ HardwareProfile,
+ Image,
+ ImageDataDisk,
+ ImageDisk,
+ ImageDiskReference,
+ ImageOSDisk,
+ ImagePurchasePlan,
+ ImageReference,
+ ImageStorageProfile,
+ ImageUpdate,
+ InnerError,
+ InstanceViewStatus,
+ KeyVaultAndKeyReference,
+ KeyVaultAndSecretReference,
+ KeyVaultKeyReference,
+ KeyVaultSecretReference,
+ LinuxConfiguration,
+ MaintenanceRedeployStatus,
+ ManagedDiskParameters,
+ NetworkInterfaceReference,
+ NetworkProfile,
+ OSDisk,
+ OSDiskImage,
+ OSProfile,
+ Plan,
+ ProximityPlacementGroup,
+ ProximityPlacementGroupUpdate,
+ PurchasePlan,
+ RecommendedMachineConfiguration,
+ RegionalReplicationStatus,
+ ReplicationStatus,
+ Resource,
+ ResourceRange,
+ RollingUpgradePolicy,
+ RollingUpgradeProgressInfo,
+ RollingUpgradeRunningStatus,
+ RollingUpgradeStatusInfo,
+ ScaleInPolicy,
+ ScheduledEventsProfile,
+ Sku,
+ Snapshot,
+ SnapshotSku,
+ SourceVault,
+ SshConfiguration,
+ SshPublicKey,
+ StorageProfile,
+ SubResource,
+ SubResourceReadOnly,
+ TargetRegion,
+ TerminateNotificationProfile,
+ UpdateResource,
+ UpgradePolicy,
+ UserArtifactSource,
+ VaultCertificate,
+ VaultSecretGroup,
+ VirtualHardDisk,
+ VirtualMachine,
+ VirtualMachineAgentInstanceView,
+ VirtualMachineCaptureResult,
+ VirtualMachineExtension,
+ VirtualMachineExtensionHandlerInstanceView,
+ VirtualMachineExtensionImage,
+ VirtualMachineExtensionInstanceView,
+ VirtualMachineExtensionUpdate,
+ VirtualMachineHealthStatus,
+ VirtualMachineIdentity,
+ VirtualMachineIdentityUserAssignedIdentitiesValue,
+ VirtualMachineImage,
+ VirtualMachineImageResource,
+ VirtualMachineInstanceView,
+ VirtualMachineScaleSet,
+ VirtualMachineScaleSetDataDisk,
+ VirtualMachineScaleSetExtension,
+ VirtualMachineScaleSetExtensionProfile,
+ VirtualMachineScaleSetIdentity,
+ VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue,
+ VirtualMachineScaleSetIPConfiguration,
+ VirtualMachineScaleSetIpTag,
+ VirtualMachineScaleSetManagedDiskParameters,
+ VirtualMachineScaleSetNetworkConfiguration,
+ VirtualMachineScaleSetNetworkConfigurationDnsSettings,
+ VirtualMachineScaleSetNetworkProfile,
+ VirtualMachineScaleSetOSDisk,
+ VirtualMachineScaleSetOSProfile,
+ VirtualMachineScaleSetPublicIPAddressConfiguration,
+ VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings,
+ VirtualMachineScaleSetStorageProfile,
+ VirtualMachineScaleSetUpdate,
+ VirtualMachineScaleSetUpdateIPConfiguration,
+ VirtualMachineScaleSetUpdateNetworkConfiguration,
+ VirtualMachineScaleSetUpdateNetworkProfile,
+ VirtualMachineScaleSetUpdateOSDisk,
+ VirtualMachineScaleSetUpdateOSProfile,
+ VirtualMachineScaleSetUpdatePublicIPAddressConfiguration,
+ VirtualMachineScaleSetUpdateStorageProfile,
+ VirtualMachineScaleSetUpdateVMProfile,
+ VirtualMachineScaleSetVM,
+ VirtualMachineScaleSetVMInstanceView,
+ VirtualMachineScaleSetVMNetworkProfileConfiguration,
+ VirtualMachineScaleSetVMProfile,
+ VirtualMachineScaleSetVMProtectionPolicy,
+ VirtualMachineUpdate,
+ WindowsConfiguration,
+ WinRMConfiguration,
+ WinRMListener
+} from "../models/mappers";
diff --git a/sdk/compute/arm-compute/src/models/disksMappers.ts b/sdk/compute/arm-compute/src/models/disksMappers.ts
index 3c9f3dc5f44b..de403fc22954 100644
--- a/sdk/compute/arm-compute/src/models/disksMappers.ts
+++ b/sdk/compute/arm-compute/src/models/disksMappers.ts
@@ -15,6 +15,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -48,11 +49,15 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskList,
DiskSku,
DiskUpdate,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -74,6 +79,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -107,6 +113,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/galleriesMappers.ts b/sdk/compute/arm-compute/src/models/galleriesMappers.ts
index 59c7bb450fc8..c89170e9c59a 100644
--- a/sdk/compute/arm-compute/src/models/galleriesMappers.ts
+++ b/sdk/compute/arm-compute/src/models/galleriesMappers.ts
@@ -14,6 +14,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -47,9 +48,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -71,6 +76,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -104,6 +110,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts
index d75ce5408290..1815859b9a14 100644
--- a/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts
+++ b/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts
@@ -14,6 +14,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -47,9 +48,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -71,6 +76,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -104,6 +110,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts
index 4f5e9e6005c0..8b3a1acfa6fa 100644
--- a/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts
+++ b/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts
@@ -14,6 +14,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -47,9 +48,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -71,6 +76,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -104,6 +110,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts
index 7e63af538c47..5ea2e9d74817 100644
--- a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts
+++ b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts
@@ -14,6 +14,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -47,9 +48,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -71,6 +76,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -104,6 +110,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts
index aa5562fcada1..2c75226de346 100644
--- a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts
+++ b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts
@@ -14,6 +14,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -47,9 +48,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -71,6 +76,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -104,6 +110,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/imagesMappers.ts b/sdk/compute/arm-compute/src/models/imagesMappers.ts
index 75604d91c8a0..e8e61a655a8a 100644
--- a/sdk/compute/arm-compute/src/models/imagesMappers.ts
+++ b/sdk/compute/arm-compute/src/models/imagesMappers.ts
@@ -14,6 +14,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -47,9 +48,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -70,6 +75,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageListResult,
ImageOSDisk,
@@ -104,6 +110,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts
index 654ec24e75e0..d365994fced1 100644
--- a/sdk/compute/arm-compute/src/models/index.ts
+++ b/sdk/compute/arm-compute/src/models/index.ts
@@ -929,6 +929,14 @@ export interface KeyVaultSecretReference {
sourceVault: SubResource;
}
+/**
+ * Describes the parameter of customer managed disk encryption set resource id that can be
+ * specified for disk.
NOTE: The disk encryption set resource id can only be specified for
+ * managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.
+ */
+export interface DiskEncryptionSetParameters extends SubResource {
+}
+
/**
* Describes a reference to Key Vault Key
*/
@@ -993,6 +1001,10 @@ export interface ManagedDiskParameters extends SubResource {
* 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
*/
storageAccountType?: StorageAccountTypes;
+ /**
+ * Specifies the customer managed disk encryption set resource id for the managed disk.
+ */
+ diskEncryptionSet?: DiskEncryptionSetParameters;
}
/**
@@ -1118,6 +1130,20 @@ export interface DataDisk {
* VirtualMachine/VirtualMachineScaleset
*/
toBeDetached?: boolean;
+ /**
+ * Specifies the Read-Write IOPS for the managed disk when StorageAccountType is UltraSSD_LRS.
+ * Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the
+ * VirtualMachine Scale Set.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly diskIOPSReadWrite?: number;
+ /**
+ * Specifies the bandwidth in MB per second for the managed disk when StorageAccountType is
+ * UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via
+ * updates to the VirtualMachine Scale Set.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly diskMBpsReadWrite?: number;
}
/**
@@ -1413,6 +1439,33 @@ export interface OSProfile {
* may only be set to False when no extensions are present on the virtual machine.
*/
allowExtensionOperations?: boolean;
+ /**
+ * Specifies whether the guest provision signal is required from the virtual machine.
+ */
+ requireGuestProvisionSignal?: boolean;
+}
+
+/**
+ * Specifies the configuration parameters for automatic repairs on the virtual machine scale set.
+ */
+export interface AutomaticRepairsPolicy {
+ /**
+ * Specifies whether automatic repairs should be enabled on the virtual machine scale set. The
+ * default value is false.
+ */
+ enabled?: boolean;
+ /**
+ * The amount of time for which automatic repairs are suspended due to a state change on VM. The
+ * grace time starts after the state change has completed. This helps avoid premature or
+ * accidental repairs. The time duration should be specified in ISO 8601 format. The default
+ * value is 5 minutes (PT5M).
+ */
+ gracePeriod?: string;
+ /**
+ * The percentage (capacity of scaleset) of virtual machines that will be simultaneously
+ * repaired. The default value is 20%.
+ */
+ maxInstanceRepairsPercent?: number;
}
/**
@@ -2026,19 +2079,31 @@ export interface UpgradePolicy {
}
/**
- * Describes an Operating System disk.
+ * Describes a scale-in policy for a virtual machine scale set.
*/
-export interface ImageOSDisk {
+export interface ScaleInPolicy {
/**
- * This property allows you to specify the type of the OS that is included in the disk if
- * creating a VM from a custom image.
Possible values are:
**Windows**
- * **Linux**. Possible values include: 'Windows', 'Linux'
+ * The rules to be followed when scaling-in a virtual machine scale set.
Possible values
+ * are:
**Default** When a virtual machine scale set is scaled in, the scale set will
+ * first be balanced across zones if it is a zonal scale set. Then, it will be balanced across
+ * Fault Domains as far as possible. Within each Fault Domain, the virtual machines chosen for
+ * removal will be the newest ones that are not protected from scale-in.
**OldestVM**
+ * When a virtual machine scale set is being scaled-in, the oldest virtual machines that are not
+ * protected from scale-in will be chosen for removal. For zonal virtual machine scale sets, the
+ * scale set will first be balanced across zones. Within each zone, the oldest virtual machines
+ * that are not protected will be chosen for removal.
**NewestVM** When a virtual
+ * machine scale set is being scaled-in, the newest virtual machines that are not protected from
+ * scale-in will be chosen for removal. For zonal virtual machine scale sets, the scale set will
+ * first be balanced across zones. Within each zone, the newest virtual machines that are not
+ * protected will be chosen for removal.
*/
- osType: OperatingSystemTypes;
- /**
- * The OS State. Possible values include: 'Generalized', 'Specialized'
- */
- osState: OperatingSystemStateTypes;
+ rules?: VirtualMachineScaleSetScaleInRules[];
+}
+
+/**
+ * Describes a image disk.
+ */
+export interface ImageDisk {
/**
* The snapshot.
*/
@@ -2063,51 +2128,42 @@ export interface ImageOSDisk {
*/
diskSizeGB?: number;
/**
- * Specifies the storage account type for the managed disk. UltraSSD_LRS cannot be used with OS
- * Disk. Possible values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS',
- * 'UltraSSD_LRS'
+ * Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used
+ * with data disks, it cannot be used with OS Disk. Possible values include: 'Standard_LRS',
+ * 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
*/
storageAccountType?: StorageAccountTypes;
+ /**
+ * Specifies the customer managed disk encryption set resource id for the managed image disk.
+ */
+ diskEncryptionSet?: DiskEncryptionSetParameters;
}
/**
- * Describes a data disk.
+ * Describes an Operating System disk.
*/
-export interface ImageDataDisk {
- /**
- * Specifies the logical unit number of the data disk. This value is used to identify data disks
- * within the VM and therefore must be unique for each data disk attached to a VM.
- */
- lun: number;
- /**
- * The snapshot.
- */
- snapshot?: SubResource;
- /**
- * The managedDisk.
- */
- managedDisk?: SubResource;
- /**
- * The Virtual Hard Disk.
- */
- blobUri?: string;
+export interface ImageOSDisk extends ImageDisk {
/**
- * Specifies the caching requirements.
Possible values are:
**None**
- * **ReadOnly**
**ReadWrite**
Default: **None for Standard storage. ReadOnly
- * for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'
+ * This property allows you to specify the type of the OS that is included in the disk if
+ * creating a VM from a custom image.
Possible values are:
**Windows**
+ * **Linux**. Possible values include: 'Windows', 'Linux'
*/
- caching?: CachingTypes;
+ osType: OperatingSystemTypes;
/**
- * Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the
- * name of the disk in a virtual machine image.
This value cannot be larger than 1023 GB
+ * The OS State. Possible values include: 'Generalized', 'Specialized'
*/
- diskSizeGB?: number;
+ osState: OperatingSystemStateTypes;
+}
+
+/**
+ * Describes a data disk.
+ */
+export interface ImageDataDisk extends ImageDisk {
/**
- * Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used
- * with data disks, it cannot be used with OS Disk. Possible values include: 'Standard_LRS',
- * 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
+ * Specifies the logical unit number of the data disk. This value is used to identify data disks
+ * within the VM and therefore must be unique for each data disk attached to a VM.
*/
- storageAccountType?: StorageAccountTypes;
+ lun: number;
}
/**
@@ -2330,6 +2386,10 @@ export interface VirtualMachineScaleSetManagedDiskParameters {
* 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
*/
storageAccountType?: StorageAccountTypes;
+ /**
+ * Specifies the customer managed disk encryption set resource id for the managed disk.
+ */
+ diskEncryptionSet?: DiskEncryptionSetParameters;
}
/**
@@ -2461,6 +2521,18 @@ export interface VirtualMachineScaleSetDataDisk {
* The managed disk parameters.
*/
managedDisk?: VirtualMachineScaleSetManagedDiskParameters;
+ /**
+ * Specifies the Read-Write IOPS for the managed disk. Should be used only when
+ * StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based
+ * on diskSizeGB.
+ */
+ diskIOPSReadWrite?: number;
+ /**
+ * Specifies the bandwidth in MB per second for the managed disk. Should be used only when
+ * StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based
+ * on diskSizeGB.
+ */
+ diskMBpsReadWrite?: number;
}
/**
@@ -2567,6 +2639,12 @@ export interface VirtualMachineScaleSetPublicIPAddressConfiguration {
* The PublicIPPrefix from which to allocate publicIP addresses.
*/
publicIPPrefix?: SubResource;
+ /**
+ * Available from Api-Version 2019-07-01 onwards, it represents whether the specific
+ * ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and
+ * 'IPv6'. Possible values include: 'IPv4', 'IPv6'
+ */
+ publicIPAddressVersion?: IPVersion;
}
/**
@@ -2782,6 +2860,12 @@ export interface VirtualMachineScaleSetNetworkProfile {
* Describes a virtual machine scale set network profile.
*/
export interface VirtualMachineScaleSetUpdateNetworkProfile {
+ /**
+ * A reference to a load balancer probe used to determine the health of an instance in the
+ * virtual machine scale set. The reference will be in the form:
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'.
+ */
+ healthProbe?: ApiEntityReference;
/**
* The list of network configurations.
*/
@@ -2991,6 +3075,10 @@ export interface VirtualMachineScaleSet extends Resource {
* The upgrade policy.
*/
upgradePolicy?: UpgradePolicy;
+ /**
+ * Policy for automatic repairs.
+ */
+ automaticRepairsPolicy?: AutomaticRepairsPolicy;
/**
* The virtual machine profile.
*/
@@ -3040,6 +3128,11 @@ export interface VirtualMachineScaleSet extends Resource {
* attaching managed data disks with UltraSSD_LRS storage account type.
*/
additionalCapabilities?: AdditionalCapabilities;
+ /**
+ * Specifies the scale-in policy that decides which virtual machines are chosen for removal when
+ * a Virtual Machine Scale Set is scaled-in.
+ */
+ scaleInPolicy?: ScaleInPolicy;
/**
* The identity of the virtual machine scale set, if configured.
*/
@@ -3084,6 +3177,10 @@ export interface VirtualMachineScaleSetUpdate extends UpdateResource {
* The upgrade policy.
*/
upgradePolicy?: UpgradePolicy;
+ /**
+ * Policy for automatic repairs.
+ */
+ automaticRepairsPolicy?: AutomaticRepairsPolicy;
/**
* The virtual machine profile.
*/
@@ -3092,6 +3189,12 @@ export interface VirtualMachineScaleSetUpdate extends UpdateResource {
* Specifies whether the Virtual Machine Scale Set should be overprovisioned.
*/
overprovision?: boolean;
+ /**
+ * When Overprovision is enabled, extensions are launched only on the requested number of VMs
+ * which are finally kept. This property will hence ensure that the extensions do not run on the
+ * extra overprovisioned VMs.
+ */
+ doNotRunExtensionsOnOverprovisionedVMs?: boolean;
/**
* When true this limits the scale set to a single placement group, of max size 100 virtual
* machines.
@@ -3103,6 +3206,11 @@ export interface VirtualMachineScaleSetUpdate extends UpdateResource {
* attaching managed data disks with UltraSSD_LRS storage account type.
*/
additionalCapabilities?: AdditionalCapabilities;
+ /**
+ * Specifies the scale-in policy that decides which virtual machines are chosen for removal when
+ * a Virtual Machine Scale Set is scaled-in.
+ */
+ scaleInPolicy?: ScaleInPolicy;
/**
* The identity of the virtual machine scale set, if configured.
*/
@@ -4254,6 +4362,21 @@ export interface EncryptionSettingsCollection {
encryptionSettingsVersion?: string;
}
+/**
+ * Encryption at rest settings for disk or snapshot
+ */
+export interface Encryption {
+ /**
+ * ResourceId of the disk encryption set to use for enabling encryption at rest.
+ */
+ diskEncryptionSetId?: string;
+ /**
+ * The type of key used to encrypt the data of the disk. Possible values include:
+ * 'EncryptionAtRestWithPlatformKey', 'EncryptionAtRestWithCustomerKey'
+ */
+ type: EncryptionType;
+}
+
/**
* Disk resource.
*/
@@ -4330,6 +4453,11 @@ export interface Disk extends Resource {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly diskState?: DiskState;
+ /**
+ * Encryption property can be used to encrypt data at rest with customer managed keys or platform
+ * managed keys.
+ */
+ encryption?: Encryption;
}
/**
@@ -4470,6 +4598,11 @@ export interface Snapshot extends Resource {
* than full snapshots and can be diffed.
*/
incremental?: boolean;
+ /**
+ * Encryption property can be used to encrypt data at rest with customer managed keys or platform
+ * managed keys.
+ */
+ encryption?: Encryption;
}
/**
@@ -4499,6 +4632,65 @@ export interface SnapshotUpdate {
sku?: SnapshotSku;
}
+/**
+ * The managed identity for the disk encryption set. It should be given permission on the key vault
+ * before it can be used to encrypt disks.
+ */
+export interface EncryptionSetIdentity {
+ /**
+ * The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported.
+ * Possible values include: 'SystemAssigned'
+ */
+ type?: DiskEncryptionSetIdentityType;
+ /**
+ * The object id of the Managed Identity Resource. This will be sent to the RP from ARM via the
+ * x-ms-identity-principal-id header in the PUT request if the resource has a
+ * systemAssigned(implicit) identity
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly principalId?: string;
+ /**
+ * The tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the
+ * x-ms-client-tenant-id header in the PUT request if the resource has a systemAssigned(implicit)
+ * identity
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly tenantId?: string;
+}
+
+/**
+ * disk encryption set resource.
+ */
+export interface DiskEncryptionSet extends Resource {
+ identity?: EncryptionSetIdentity;
+ /**
+ * The key vault key which is currently used by this disk encryption set.
+ */
+ activeKey?: KeyVaultAndKeyReference;
+ /**
+ * A readonly collection of key vault keys previously used by this disk encryption set while a
+ * key rotation is in progress. It will be empty if there is no ongoing key rotation.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly previousKeys?: KeyVaultAndKeyReference[];
+ /**
+ * The disk encryption set provisioning state.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly provisioningState?: string;
+}
+
+/**
+ * disk encryption set update resource.
+ */
+export interface DiskEncryptionSetUpdate {
+ activeKey?: KeyVaultAndKeyReference;
+ /**
+ * Resource tags
+ */
+ tags?: { [propertyName: string]: string };
+}
+
/**
* Describes the gallery unique name.
*/
@@ -5217,6 +5409,16 @@ export interface VirtualMachinesGetOptionalParams extends msRest.RequestOptionsB
expand?: InstanceViewTypes;
}
+/**
+ * Optional Parameters.
+ */
+export interface VirtualMachinesListAllOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * statusOnly=true enables fetching run time status of all Virtual Machines in the subscription.
+ */
+ statusOnly?: string;
+}
+
/**
* Optional Parameters.
*/
@@ -5453,6 +5655,26 @@ export interface VirtualMachineScaleSetExtensionsGetOptionalParams extends msRes
expand?: string;
}
+/**
+ * Optional Parameters.
+ */
+export interface VirtualMachineScaleSetVMExtensionsGetOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * The expand expression to apply on the operation.
+ */
+ expand?: string;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface VirtualMachineScaleSetVMExtensionsListOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * The expand expression to apply on the operation.
+ */
+ expand?: string;
+}
+
/**
* Optional Parameters.
*/
@@ -5525,6 +5747,16 @@ export interface VirtualMachineScaleSetVMsBeginPowerOffOptionalParams extends ms
skipShutdown?: boolean;
}
+/**
+ * Optional Parameters.
+ */
+export interface ResourceSkusListOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * The filter to apply on the operation.
+ */
+ filter?: string;
+}
+
/**
* Optional Parameters.
*/
@@ -5788,6 +6020,19 @@ export interface SnapshotList extends Array {
nextLink?: string;
}
+/**
+ * @interface
+ * The List disk encryption set operation response.
+ * @extends Array
+ */
+export interface DiskEncryptionSetList extends Array {
+ /**
+ * The uri to fetch the next page of disk encryption sets. Call ListNext() with this to fetch the
+ * next page of disk encryption sets.
+ */
+ nextLink?: string;
+}
+
/**
* @interface
* The List Galleries operation response.
@@ -6067,6 +6312,14 @@ export type VirtualMachineEvictionPolicyTypes = 'Deallocate' | 'Delete';
*/
export type UpgradeMode = 'Automatic' | 'Manual' | 'Rolling';
+/**
+ * Defines values for VirtualMachineScaleSetScaleInRules.
+ * Possible values include: 'Default', 'OldestVM', 'NewestVM'
+ * @readonly
+ * @enum {string}
+ */
+export type VirtualMachineScaleSetScaleInRules = 'Default' | 'OldestVM' | 'NewestVM';
+
/**
* Defines values for OperatingSystemStateTypes.
* Possible values include: 'Generalized', 'Specialized'
@@ -6188,6 +6441,14 @@ export type DiskCreateOption = 'Empty' | 'Attach' | 'FromImage' | 'Import' | 'Co
*/
export type DiskState = 'Unattached' | 'Attached' | 'Reserved' | 'ActiveSAS' | 'ReadyToUpload' | 'ActiveUpload';
+/**
+ * Defines values for EncryptionType.
+ * Possible values include: 'EncryptionAtRestWithPlatformKey', 'EncryptionAtRestWithCustomerKey'
+ * @readonly
+ * @enum {string}
+ */
+export type EncryptionType = 'EncryptionAtRestWithPlatformKey' | 'EncryptionAtRestWithCustomerKey';
+
/**
* Defines values for SnapshotStorageAccountTypes.
* Possible values include: 'Standard_LRS', 'Premium_LRS', 'Standard_ZRS'
@@ -6204,6 +6465,14 @@ export type SnapshotStorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'Stan
*/
export type AccessLevel = 'None' | 'Read' | 'Write';
+/**
+ * Defines values for DiskEncryptionSetIdentityType.
+ * Possible values include: 'SystemAssigned'
+ * @readonly
+ * @enum {string}
+ */
+export type DiskEncryptionSetIdentityType = 'SystemAssigned';
+
/**
* Defines values for AggregatedReplicationState.
* Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed'
@@ -8188,6 +8457,126 @@ export type VirtualMachineScaleSetRollingUpgradesGetLatestResponse = RollingUpgr
};
};
+/**
+ * Contains response data for the createOrUpdate operation.
+ */
+export type VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse = VirtualMachineExtension & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: VirtualMachineExtension;
+ };
+};
+
+/**
+ * Contains response data for the update operation.
+ */
+export type VirtualMachineScaleSetVMExtensionsUpdateResponse = VirtualMachineExtension & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: VirtualMachineExtension;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type VirtualMachineScaleSetVMExtensionsGetResponse = VirtualMachineExtension & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: VirtualMachineExtension;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
+ */
+export type VirtualMachineScaleSetVMExtensionsListResponse = VirtualMachineExtensionsListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: VirtualMachineExtensionsListResult;
+ };
+};
+
+/**
+ * Contains response data for the beginCreateOrUpdate operation.
+ */
+export type VirtualMachineScaleSetVMExtensionsBeginCreateOrUpdateResponse = VirtualMachineExtension & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: VirtualMachineExtension;
+ };
+};
+
+/**
+ * Contains response data for the beginUpdate operation.
+ */
+export type VirtualMachineScaleSetVMExtensionsBeginUpdateResponse = VirtualMachineExtension & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: VirtualMachineExtension;
+ };
+};
+
/**
* Contains response data for the update operation.
*/
@@ -8968,6 +9357,186 @@ export type SnapshotsListNextResponse = SnapshotList & {
};
};
+/**
+ * Contains response data for the createOrUpdate operation.
+ */
+export type DiskEncryptionSetsCreateOrUpdateResponse = DiskEncryptionSet & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: DiskEncryptionSet;
+ };
+};
+
+/**
+ * Contains response data for the update operation.
+ */
+export type DiskEncryptionSetsUpdateResponse = DiskEncryptionSet & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: DiskEncryptionSet;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type DiskEncryptionSetsGetResponse = DiskEncryptionSet & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: DiskEncryptionSet;
+ };
+};
+
+/**
+ * Contains response data for the listByResourceGroup operation.
+ */
+export type DiskEncryptionSetsListByResourceGroupResponse = DiskEncryptionSetList & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: DiskEncryptionSetList;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
+ */
+export type DiskEncryptionSetsListResponse = DiskEncryptionSetList & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: DiskEncryptionSetList;
+ };
+};
+
+/**
+ * Contains response data for the beginCreateOrUpdate operation.
+ */
+export type DiskEncryptionSetsBeginCreateOrUpdateResponse = DiskEncryptionSet & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: DiskEncryptionSet;
+ };
+};
+
+/**
+ * Contains response data for the beginUpdate operation.
+ */
+export type DiskEncryptionSetsBeginUpdateResponse = DiskEncryptionSet & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: DiskEncryptionSet;
+ };
+};
+
+/**
+ * Contains response data for the listByResourceGroupNext operation.
+ */
+export type DiskEncryptionSetsListByResourceGroupNextResponse = DiskEncryptionSetList & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: DiskEncryptionSetList;
+ };
+};
+
+/**
+ * Contains response data for the listNext operation.
+ */
+export type DiskEncryptionSetsListNextResponse = DiskEncryptionSetList & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: DiskEncryptionSetList;
+ };
+};
+
/**
* Contains response data for the createOrUpdate operation.
*/
diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts
index 4f221271ecd1..e03e5c1f94a7 100644
--- a/sdk/compute/arm-compute/src/models/mappers.ts
+++ b/sdk/compute/arm-compute/src/models/mappers.ts
@@ -1491,6 +1491,17 @@ export const KeyVaultSecretReference: msRest.CompositeMapper = {
}
};
+export const DiskEncryptionSetParameters: msRest.CompositeMapper = {
+ serializedName: "DiskEncryptionSetParameters",
+ type: {
+ name: "Composite",
+ className: "DiskEncryptionSetParameters",
+ modelProperties: {
+ ...SubResource.type.modelProperties
+ }
+ }
+};
+
export const KeyVaultKeyReference: msRest.CompositeMapper = {
serializedName: "KeyVaultKeyReference",
type: {
@@ -1590,6 +1601,13 @@ export const ManagedDiskParameters: msRest.CompositeMapper = {
type: {
name: "String"
}
+ },
+ diskEncryptionSet: {
+ serializedName: "diskEncryptionSet",
+ type: {
+ name: "Composite",
+ className: "DiskEncryptionSetParameters"
+ }
}
}
}
@@ -1761,6 +1779,20 @@ export const DataDisk: msRest.CompositeMapper = {
type: {
name: "Boolean"
}
+ },
+ diskIOPSReadWrite: {
+ readOnly: true,
+ serializedName: "diskIOPSReadWrite",
+ type: {
+ name: "Number"
+ }
+ },
+ diskMBpsReadWrite: {
+ readOnly: true,
+ serializedName: "diskMBpsReadWrite",
+ type: {
+ name: "Number"
+ }
}
}
}
@@ -2142,6 +2174,40 @@ export const OSProfile: msRest.CompositeMapper = {
type: {
name: "Boolean"
}
+ },
+ requireGuestProvisionSignal: {
+ serializedName: "requireGuestProvisionSignal",
+ type: {
+ name: "Boolean"
+ }
+ }
+ }
+ }
+};
+
+export const AutomaticRepairsPolicy: msRest.CompositeMapper = {
+ serializedName: "AutomaticRepairsPolicy",
+ type: {
+ name: "Composite",
+ className: "AutomaticRepairsPolicy",
+ modelProperties: {
+ enabled: {
+ serializedName: "enabled",
+ type: {
+ name: "Boolean"
+ }
+ },
+ gracePeriod: {
+ serializedName: "gracePeriod",
+ type: {
+ name: "String"
+ }
+ },
+ maxInstanceRepairsPercent: {
+ serializedName: "maxInstanceRepairsPercent",
+ type: {
+ name: "Number"
+ }
}
}
}
@@ -3043,34 +3109,33 @@ export const UpgradePolicy: msRest.CompositeMapper = {
}
};
-export const ImageOSDisk: msRest.CompositeMapper = {
- serializedName: "ImageOSDisk",
+export const ScaleInPolicy: msRest.CompositeMapper = {
+ serializedName: "ScaleInPolicy",
type: {
name: "Composite",
- className: "ImageOSDisk",
+ className: "ScaleInPolicy",
modelProperties: {
- osType: {
- required: true,
- serializedName: "osType",
- type: {
- name: "Enum",
- allowedValues: [
- "Windows",
- "Linux"
- ]
- }
- },
- osState: {
- required: true,
- serializedName: "osState",
+ rules: {
+ serializedName: "rules",
type: {
- name: "Enum",
- allowedValues: [
- "Generalized",
- "Specialized"
- ]
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
}
- },
+ }
+ }
+ }
+};
+
+export const ImageDisk: msRest.CompositeMapper = {
+ serializedName: "ImageDisk",
+ type: {
+ name: "Composite",
+ className: "ImageDisk",
+ modelProperties: {
snapshot: {
serializedName: "snapshot",
type: {
@@ -3113,66 +3178,64 @@ export const ImageOSDisk: msRest.CompositeMapper = {
type: {
name: "String"
}
+ },
+ diskEncryptionSet: {
+ serializedName: "diskEncryptionSet",
+ type: {
+ name: "Composite",
+ className: "DiskEncryptionSetParameters"
+ }
}
}
}
};
-export const ImageDataDisk: msRest.CompositeMapper = {
- serializedName: "ImageDataDisk",
+export const ImageOSDisk: msRest.CompositeMapper = {
+ serializedName: "ImageOSDisk",
type: {
name: "Composite",
- className: "ImageDataDisk",
+ className: "ImageOSDisk",
modelProperties: {
- lun: {
+ ...ImageDisk.type.modelProperties,
+ osType: {
required: true,
- serializedName: "lun",
- type: {
- name: "Number"
- }
- },
- snapshot: {
- serializedName: "snapshot",
- type: {
- name: "Composite",
- className: "SubResource"
- }
- },
- managedDisk: {
- serializedName: "managedDisk",
- type: {
- name: "Composite",
- className: "SubResource"
- }
- },
- blobUri: {
- serializedName: "blobUri",
+ serializedName: "osType",
type: {
- name: "String"
+ name: "Enum",
+ allowedValues: [
+ "Windows",
+ "Linux"
+ ]
}
},
- caching: {
- serializedName: "caching",
+ osState: {
+ required: true,
+ serializedName: "osState",
type: {
name: "Enum",
allowedValues: [
- "None",
- "ReadOnly",
- "ReadWrite"
+ "Generalized",
+ "Specialized"
]
}
- },
- diskSizeGB: {
- serializedName: "diskSizeGB",
+ }
+ }
+ }
+};
+
+export const ImageDataDisk: msRest.CompositeMapper = {
+ serializedName: "ImageDataDisk",
+ type: {
+ name: "Composite",
+ className: "ImageDataDisk",
+ modelProperties: {
+ ...ImageDisk.type.modelProperties,
+ lun: {
+ required: true,
+ serializedName: "lun",
type: {
name: "Number"
}
- },
- storageAccountType: {
- serializedName: "storageAccountType",
- type: {
- name: "String"
- }
}
}
}
@@ -3474,6 +3537,13 @@ export const VirtualMachineScaleSetManagedDiskParameters: msRest.CompositeMapper
type: {
name: "String"
}
+ },
+ diskEncryptionSet: {
+ serializedName: "diskEncryptionSet",
+ type: {
+ name: "Composite",
+ className: "DiskEncryptionSetParameters"
+ }
}
}
}
@@ -3680,6 +3750,18 @@ export const VirtualMachineScaleSetDataDisk: msRest.CompositeMapper = {
name: "Composite",
className: "VirtualMachineScaleSetManagedDiskParameters"
}
+ },
+ diskIOPSReadWrite: {
+ serializedName: "diskIOPSReadWrite",
+ type: {
+ name: "Number"
+ }
+ },
+ diskMBpsReadWrite: {
+ serializedName: "diskMBpsReadWrite",
+ type: {
+ name: "Number"
+ }
}
}
}
@@ -3856,6 +3938,12 @@ export const VirtualMachineScaleSetPublicIPAddressConfiguration: msRest.Composit
name: "Composite",
className: "SubResource"
}
+ },
+ publicIPAddressVersion: {
+ serializedName: "properties.publicIPAddressVersion",
+ type: {
+ name: "String"
+ }
}
}
}
@@ -4253,6 +4341,13 @@ export const VirtualMachineScaleSetUpdateNetworkProfile: msRest.CompositeMapper
name: "Composite",
className: "VirtualMachineScaleSetUpdateNetworkProfile",
modelProperties: {
+ healthProbe: {
+ serializedName: "healthProbe",
+ type: {
+ name: "Composite",
+ className: "ApiEntityReference"
+ }
+ },
networkInterfaceConfigurations: {
serializedName: "networkInterfaceConfigurations",
type: {
@@ -4577,6 +4672,13 @@ export const VirtualMachineScaleSet: msRest.CompositeMapper = {
className: "UpgradePolicy"
}
},
+ automaticRepairsPolicy: {
+ serializedName: "properties.automaticRepairsPolicy",
+ type: {
+ name: "Composite",
+ className: "AutomaticRepairsPolicy"
+ }
+ },
virtualMachineProfile: {
serializedName: "properties.virtualMachineProfile",
type: {
@@ -4642,6 +4744,13 @@ export const VirtualMachineScaleSet: msRest.CompositeMapper = {
className: "AdditionalCapabilities"
}
},
+ scaleInPolicy: {
+ serializedName: "properties.scaleInPolicy",
+ type: {
+ name: "Composite",
+ className: "ScaleInPolicy"
+ }
+ },
identity: {
serializedName: "identity",
type: {
@@ -4725,6 +4834,13 @@ export const VirtualMachineScaleSetUpdate: msRest.CompositeMapper = {
className: "UpgradePolicy"
}
},
+ automaticRepairsPolicy: {
+ serializedName: "properties.automaticRepairsPolicy",
+ type: {
+ name: "Composite",
+ className: "AutomaticRepairsPolicy"
+ }
+ },
virtualMachineProfile: {
serializedName: "properties.virtualMachineProfile",
type: {
@@ -4738,6 +4854,12 @@ export const VirtualMachineScaleSetUpdate: msRest.CompositeMapper = {
name: "Boolean"
}
},
+ doNotRunExtensionsOnOverprovisionedVMs: {
+ serializedName: "properties.doNotRunExtensionsOnOverprovisionedVMs",
+ type: {
+ name: "Boolean"
+ }
+ },
singlePlacementGroup: {
serializedName: "properties.singlePlacementGroup",
type: {
@@ -4751,6 +4873,13 @@ export const VirtualMachineScaleSetUpdate: msRest.CompositeMapper = {
className: "AdditionalCapabilities"
}
},
+ scaleInPolicy: {
+ serializedName: "properties.scaleInPolicy",
+ type: {
+ name: "Composite",
+ className: "ScaleInPolicy"
+ }
+ },
identity: {
serializedName: "identity",
type: {
@@ -6702,6 +6831,29 @@ export const EncryptionSettingsCollection: msRest.CompositeMapper = {
}
};
+export const Encryption: msRest.CompositeMapper = {
+ serializedName: "Encryption",
+ type: {
+ name: "Composite",
+ className: "Encryption",
+ modelProperties: {
+ diskEncryptionSetId: {
+ serializedName: "diskEncryptionSetId",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ required: true,
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
export const Disk: msRest.CompositeMapper = {
serializedName: "Disk",
type: {
@@ -6817,6 +6969,13 @@ export const Disk: msRest.CompositeMapper = {
type: {
name: "String"
}
+ },
+ encryption: {
+ serializedName: "properties.encryption",
+ type: {
+ name: "Composite",
+ className: "Encryption"
+ }
}
}
}
@@ -7040,6 +7199,13 @@ export const Snapshot: msRest.CompositeMapper = {
type: {
name: "Boolean"
}
+ },
+ encryption: {
+ serializedName: "properties.encryption",
+ type: {
+ name: "Composite",
+ className: "Encryption"
+ }
}
}
}
@@ -7096,6 +7262,109 @@ export const SnapshotUpdate: msRest.CompositeMapper = {
}
};
+export const EncryptionSetIdentity: msRest.CompositeMapper = {
+ serializedName: "EncryptionSetIdentity",
+ type: {
+ name: "Composite",
+ className: "EncryptionSetIdentity",
+ modelProperties: {
+ type: {
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ },
+ principalId: {
+ readOnly: true,
+ serializedName: "principalId",
+ type: {
+ name: "String"
+ }
+ },
+ tenantId: {
+ readOnly: true,
+ serializedName: "tenantId",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const DiskEncryptionSet: msRest.CompositeMapper = {
+ serializedName: "DiskEncryptionSet",
+ type: {
+ name: "Composite",
+ className: "DiskEncryptionSet",
+ modelProperties: {
+ ...Resource.type.modelProperties,
+ identity: {
+ serializedName: "identity",
+ type: {
+ name: "Composite",
+ className: "EncryptionSetIdentity"
+ }
+ },
+ activeKey: {
+ serializedName: "properties.activeKey",
+ type: {
+ name: "Composite",
+ className: "KeyVaultAndKeyReference"
+ }
+ },
+ previousKeys: {
+ readOnly: true,
+ serializedName: "properties.previousKeys",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "KeyVaultAndKeyReference"
+ }
+ }
+ }
+ },
+ provisioningState: {
+ readOnly: true,
+ serializedName: "properties.provisioningState",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const DiskEncryptionSetUpdate: msRest.CompositeMapper = {
+ serializedName: "DiskEncryptionSetUpdate",
+ type: {
+ name: "Composite",
+ className: "DiskEncryptionSetUpdate",
+ modelProperties: {
+ activeKey: {
+ serializedName: "properties.activeKey",
+ type: {
+ name: "Composite",
+ className: "KeyVaultAndKeyReference"
+ }
+ },
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
export const GalleryIdentifier: msRest.CompositeMapper = {
serializedName: "GalleryIdentifier",
type: {
@@ -8775,6 +9044,35 @@ export const SnapshotList: msRest.CompositeMapper = {
}
};
+export const DiskEncryptionSetList: msRest.CompositeMapper = {
+ serializedName: "DiskEncryptionSetList",
+ type: {
+ name: "Composite",
+ className: "DiskEncryptionSetList",
+ modelProperties: {
+ value: {
+ required: true,
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "DiskEncryptionSet"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
export const GalleryList: msRest.CompositeMapper = {
serializedName: "GalleryList",
type: {
diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts
index 58135a3b975d..03d2749bba17 100644
--- a/sdk/compute/arm-compute/src/models/parameters.ts
+++ b/sdk/compute/arm-compute/src/models/parameters.ts
@@ -26,7 +26,7 @@ export const apiVersion0: msRest.OperationQueryParameter = {
required: true,
isConstant: true,
serializedName: "api-version",
- defaultValue: '2019-03-01',
+ defaultValue: '2019-07-01',
type: {
name: "String"
}
@@ -45,18 +45,6 @@ export const apiVersion1: msRest.OperationQueryParameter = {
}
};
export const apiVersion2: msRest.OperationQueryParameter = {
- parameterPath: "apiVersion",
- mapper: {
- required: true,
- isConstant: true,
- serializedName: "api-version",
- defaultValue: '2019-07-01',
- type: {
- name: "String"
- }
- }
-};
-export const apiVersion3: msRest.OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
required: true,
@@ -98,6 +86,16 @@ export const containerServiceName: msRest.OperationURLParameter = {
}
}
};
+export const diskEncryptionSetName: msRest.OperationURLParameter = {
+ parameterPath: "diskEncryptionSetName",
+ mapper: {
+ required: true,
+ serializedName: "diskEncryptionSetName",
+ type: {
+ name: "String"
+ }
+ }
+};
export const diskName: msRest.OperationURLParameter = {
parameterPath: "diskName",
mapper: {
@@ -378,6 +376,18 @@ export const snapshotName: msRest.OperationURLParameter = {
}
}
};
+export const statusOnly: msRest.OperationQueryParameter = {
+ parameterPath: [
+ "options",
+ "statusOnly"
+ ],
+ mapper: {
+ serializedName: "statusOnly",
+ type: {
+ name: "String"
+ }
+ }
+};
export const subscriptionId: msRest.OperationURLParameter = {
parameterPath: "subscriptionId",
mapper: {
diff --git a/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts b/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts
index 5e9fa524f104..b218fb7e88b6 100644
--- a/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts
+++ b/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts
@@ -14,6 +14,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -47,9 +48,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -70,6 +75,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -104,6 +110,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/snapshotsMappers.ts b/sdk/compute/arm-compute/src/models/snapshotsMappers.ts
index e409c0e642cf..5f639b4b2840 100644
--- a/sdk/compute/arm-compute/src/models/snapshotsMappers.ts
+++ b/sdk/compute/arm-compute/src/models/snapshotsMappers.ts
@@ -15,6 +15,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -48,9 +49,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -72,6 +77,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -105,6 +111,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts
index d1e3cac8fde3..d20211d4faca 100644
--- a/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts
+++ b/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts
@@ -14,6 +14,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -47,9 +48,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -70,6 +75,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -103,6 +109,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts
index 2f63bad6a879..0a0773a1fedc 100644
--- a/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts
+++ b/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts
@@ -14,6 +14,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -47,9 +48,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -70,6 +75,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -103,6 +109,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts
index d1e3cac8fde3..d20211d4faca 100644
--- a/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts
+++ b/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts
@@ -14,6 +14,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -47,9 +48,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -70,6 +75,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -103,6 +109,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts
index dbb2f92b03ff..547c26d0bf19 100644
--- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts
+++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts
@@ -14,6 +14,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -47,9 +48,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -70,6 +75,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -103,6 +109,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetOperationsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetOperationsMappers.ts
deleted file mode 100644
index 69efd164735c..000000000000
--- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetOperationsMappers.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
- * 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 {
- CloudError,
- VMScaleSetConvertToSinglePlacementGroupInput
-} from "../models/mappers";
diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts
index d1e3cac8fde3..d20211d4faca 100644
--- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts
+++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts
@@ -14,6 +14,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -47,9 +48,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -70,6 +75,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -103,6 +109,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts
new file mode 100644
index 000000000000..0a0773a1fedc
--- /dev/null
+++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts
@@ -0,0 +1,181 @@
+/*
+ * 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 {
+ AdditionalCapabilities,
+ AdditionalUnattendContent,
+ ApiEntityReference,
+ ApiError,
+ ApiErrorBase,
+ AutomaticOSUpgradePolicy,
+ AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
+ AvailabilitySet,
+ AvailabilitySetUpdate,
+ BaseResource,
+ BillingProfile,
+ BootDiagnostics,
+ BootDiagnosticsInstanceView,
+ CloudError,
+ ContainerService,
+ ContainerServiceAgentPoolProfile,
+ ContainerServiceCustomProfile,
+ ContainerServiceDiagnosticsProfile,
+ ContainerServiceLinuxProfile,
+ ContainerServiceMasterProfile,
+ ContainerServiceOrchestratorProfile,
+ ContainerServiceServicePrincipalProfile,
+ ContainerServiceSshConfiguration,
+ ContainerServiceSshPublicKey,
+ ContainerServiceVMDiagnostics,
+ ContainerServiceWindowsProfile,
+ CreationData,
+ DataDisk,
+ DataDiskImage,
+ DedicatedHost,
+ DedicatedHostAllocatableVM,
+ DedicatedHostAvailableCapacity,
+ DedicatedHostGroup,
+ DedicatedHostGroupUpdate,
+ DedicatedHostInstanceView,
+ DedicatedHostUpdate,
+ DiagnosticsProfile,
+ DiffDiskSettings,
+ Disallowed,
+ Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
+ DiskEncryptionSettings,
+ DiskInstanceView,
+ DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
+ EncryptionSettingsCollection,
+ EncryptionSettingsElement,
+ Gallery,
+ GalleryApplication,
+ GalleryApplicationVersion,
+ GalleryApplicationVersionPublishingProfile,
+ GalleryArtifactPublishingProfileBase,
+ GalleryArtifactVersionSource,
+ GalleryDataDiskImage,
+ GalleryDiskImage,
+ GalleryIdentifier,
+ GalleryImage,
+ GalleryImageIdentifier,
+ GalleryImageVersion,
+ GalleryImageVersionPublishingProfile,
+ GalleryImageVersionStorageProfile,
+ GalleryOSDiskImage,
+ HardwareProfile,
+ Image,
+ ImageDataDisk,
+ ImageDisk,
+ ImageDiskReference,
+ ImageOSDisk,
+ ImagePurchasePlan,
+ ImageReference,
+ ImageStorageProfile,
+ ImageUpdate,
+ InnerError,
+ InstanceViewStatus,
+ KeyVaultAndKeyReference,
+ KeyVaultAndSecretReference,
+ KeyVaultKeyReference,
+ KeyVaultSecretReference,
+ LinuxConfiguration,
+ MaintenanceRedeployStatus,
+ ManagedDiskParameters,
+ NetworkInterfaceReference,
+ NetworkProfile,
+ OSDisk,
+ OSDiskImage,
+ OSProfile,
+ Plan,
+ ProximityPlacementGroup,
+ ProximityPlacementGroupUpdate,
+ PurchasePlan,
+ RecommendedMachineConfiguration,
+ RegionalReplicationStatus,
+ ReplicationStatus,
+ Resource,
+ ResourceRange,
+ RollingUpgradePolicy,
+ RollingUpgradeProgressInfo,
+ RollingUpgradeRunningStatus,
+ RollingUpgradeStatusInfo,
+ ScaleInPolicy,
+ ScheduledEventsProfile,
+ Sku,
+ Snapshot,
+ SnapshotSku,
+ SourceVault,
+ SshConfiguration,
+ SshPublicKey,
+ StorageProfile,
+ SubResource,
+ SubResourceReadOnly,
+ TargetRegion,
+ TerminateNotificationProfile,
+ UpdateResource,
+ UpgradePolicy,
+ UserArtifactSource,
+ VaultCertificate,
+ VaultSecretGroup,
+ VirtualHardDisk,
+ VirtualMachine,
+ VirtualMachineAgentInstanceView,
+ VirtualMachineCaptureResult,
+ VirtualMachineExtension,
+ VirtualMachineExtensionHandlerInstanceView,
+ VirtualMachineExtensionImage,
+ VirtualMachineExtensionInstanceView,
+ VirtualMachineExtensionsListResult,
+ VirtualMachineExtensionUpdate,
+ VirtualMachineHealthStatus,
+ VirtualMachineIdentity,
+ VirtualMachineIdentityUserAssignedIdentitiesValue,
+ VirtualMachineImage,
+ VirtualMachineImageResource,
+ VirtualMachineInstanceView,
+ VirtualMachineScaleSet,
+ VirtualMachineScaleSetDataDisk,
+ VirtualMachineScaleSetExtension,
+ VirtualMachineScaleSetExtensionProfile,
+ VirtualMachineScaleSetIdentity,
+ VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue,
+ VirtualMachineScaleSetIPConfiguration,
+ VirtualMachineScaleSetIpTag,
+ VirtualMachineScaleSetManagedDiskParameters,
+ VirtualMachineScaleSetNetworkConfiguration,
+ VirtualMachineScaleSetNetworkConfigurationDnsSettings,
+ VirtualMachineScaleSetNetworkProfile,
+ VirtualMachineScaleSetOSDisk,
+ VirtualMachineScaleSetOSProfile,
+ VirtualMachineScaleSetPublicIPAddressConfiguration,
+ VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings,
+ VirtualMachineScaleSetStorageProfile,
+ VirtualMachineScaleSetUpdate,
+ VirtualMachineScaleSetUpdateIPConfiguration,
+ VirtualMachineScaleSetUpdateNetworkConfiguration,
+ VirtualMachineScaleSetUpdateNetworkProfile,
+ VirtualMachineScaleSetUpdateOSDisk,
+ VirtualMachineScaleSetUpdateOSProfile,
+ VirtualMachineScaleSetUpdatePublicIPAddressConfiguration,
+ VirtualMachineScaleSetUpdateStorageProfile,
+ VirtualMachineScaleSetUpdateVMProfile,
+ VirtualMachineScaleSetVM,
+ VirtualMachineScaleSetVMInstanceView,
+ VirtualMachineScaleSetVMNetworkProfileConfiguration,
+ VirtualMachineScaleSetVMProfile,
+ VirtualMachineScaleSetVMProtectionPolicy,
+ VirtualMachineUpdate,
+ WindowsConfiguration,
+ WinRMConfiguration,
+ WinRMListener
+} from "../models/mappers";
diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts
index 2f3a8c997aaa..970b2ef56b78 100644
--- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts
+++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts
@@ -14,6 +14,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -47,9 +48,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -70,6 +75,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -106,6 +112,7 @@ export {
RunCommandInput,
RunCommandInputParameter,
RunCommandResult,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts
index f8f1ea2f1e43..0ff3e9b90b7a 100644
--- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts
+++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts
@@ -14,6 +14,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -47,9 +48,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -70,6 +75,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -105,6 +111,7 @@ export {
RollingUpgradeProgressInfo,
RollingUpgradeRunningStatus,
RollingUpgradeStatusInfo,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts
index 22a44428c85e..3193450c167d 100644
--- a/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts
+++ b/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts
@@ -14,6 +14,7 @@ export {
ApiErrorBase,
AutomaticOSUpgradePolicy,
AutomaticOSUpgradeProperties,
+ AutomaticRepairsPolicy,
AvailabilitySet,
AvailabilitySetUpdate,
BaseResource,
@@ -47,9 +48,13 @@ export {
DiffDiskSettings,
Disallowed,
Disk,
+ DiskEncryptionSet,
+ DiskEncryptionSetParameters,
DiskEncryptionSettings,
DiskInstanceView,
DiskSku,
+ Encryption,
+ EncryptionSetIdentity,
EncryptionSettingsCollection,
EncryptionSettingsElement,
Gallery,
@@ -70,6 +75,7 @@ export {
HardwareProfile,
Image,
ImageDataDisk,
+ ImageDisk,
ImageDiskReference,
ImageOSDisk,
ImagePurchasePlan,
@@ -106,6 +112,7 @@ export {
RunCommandInput,
RunCommandInputParameter,
RunCommandResult,
+ ScaleInPolicy,
ScheduledEventsProfile,
Sku,
Snapshot,
diff --git a/sdk/compute/arm-compute/src/operations/containerServices.ts b/sdk/compute/arm-compute/src/operations/containerServices.ts
index fb409253f04a..282f1bc59fd9 100644
--- a/sdk/compute/arm-compute/src/operations/containerServices.ts
+++ b/sdk/compute/arm-compute/src/operations/containerServices.ts
@@ -274,7 +274,7 @@ const listOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
- Parameters.apiVersion3
+ Parameters.apiVersion2
],
headerParameters: [
Parameters.acceptLanguage
@@ -299,7 +299,7 @@ const getOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
- Parameters.apiVersion3
+ Parameters.apiVersion2
],
headerParameters: [
Parameters.acceptLanguage
@@ -323,7 +323,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
- Parameters.apiVersion3
+ Parameters.apiVersion2
],
headerParameters: [
Parameters.acceptLanguage
@@ -348,7 +348,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
- Parameters.apiVersion3
+ Parameters.apiVersion2
],
headerParameters: [
Parameters.acceptLanguage
@@ -386,7 +386,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
- Parameters.apiVersion3
+ Parameters.apiVersion2
],
headerParameters: [
Parameters.acceptLanguage
diff --git a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts
new file mode 100644
index 000000000000..2f01f2601461
--- /dev/null
+++ b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts
@@ -0,0 +1,498 @@
+/*
+ * 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 msRestAzure from "@azure/ms-rest-azure-js";
+import * as Models from "../models";
+import * as Mappers from "../models/diskEncryptionSetsMappers";
+import * as Parameters from "../models/parameters";
+import { ComputeManagementClientContext } from "../computeManagementClientContext";
+
+/** Class representing a DiskEncryptionSets. */
+export class DiskEncryptionSets {
+ private readonly client: ComputeManagementClientContext;
+
+ /**
+ * Create a DiskEncryptionSets.
+ * @param {ComputeManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: ComputeManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * Creates or updates a disk encryption set
+ * @param resourceGroupName The name of the resource group.
+ * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name
+ * can't be changed after the disk encryption set is created. Supported characters for the name are
+ * a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
+ * @param diskEncryptionSet disk encryption set object supplied in the body of the Put disk
+ * encryption set operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ createOrUpdate(resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: Models.DiskEncryptionSet, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginCreateOrUpdate(resourceGroupName,diskEncryptionSetName,diskEncryptionSet,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * Updates (patches) a disk encryption set.
+ * @param resourceGroupName The name of the resource group.
+ * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name
+ * can't be changed after the disk encryption set is created. Supported characters for the name are
+ * a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
+ * @param diskEncryptionSet disk encryption set object supplied in the body of the Patch disk
+ * encryption set operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ update(resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: Models.DiskEncryptionSetUpdate, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginUpdate(resourceGroupName,diskEncryptionSetName,diskEncryptionSet,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * Gets information about a disk encryption set.
+ * @param resourceGroupName The name of the resource group.
+ * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name
+ * can't be changed after the disk encryption set is created. Supported characters for the name are
+ * a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ get(resourceGroupName: string, diskEncryptionSetName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name
+ * can't be changed after the disk encryption set is created. Supported characters for the name are
+ * a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, diskEncryptionSetName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name
+ * can't be changed after the disk encryption set is created. Supported characters for the name are
+ * a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, diskEncryptionSetName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ get(resourceGroupName: string, diskEncryptionSetName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ diskEncryptionSetName,
+ options
+ },
+ getOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Deletes a disk encryption set.
+ * @param resourceGroupName The name of the resource group.
+ * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name
+ * can't be changed after the disk encryption set is created. Supported characters for the name are
+ * a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ deleteMethod(resourceGroupName: string, diskEncryptionSetName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginDeleteMethod(resourceGroupName,diskEncryptionSetName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished());
+ }
+
+ /**
+ * Lists all the disk encryption sets under a resource group.
+ * @param resourceGroupName The name of the resource group.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param callback The callback
+ */
+ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ options
+ },
+ listByResourceGroupOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists all the disk encryption sets under a subscription.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ list(options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param callback The callback
+ */
+ list(callback: msRest.ServiceCallback): void;
+ /**
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ options
+ },
+ listOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Creates or updates a disk encryption set
+ * @param resourceGroupName The name of the resource group.
+ * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name
+ * can't be changed after the disk encryption set is created. Supported characters for the name are
+ * a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
+ * @param diskEncryptionSet disk encryption set object supplied in the body of the Put disk
+ * encryption set operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginCreateOrUpdate(resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: Models.DiskEncryptionSet, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ diskEncryptionSetName,
+ diskEncryptionSet,
+ options
+ },
+ beginCreateOrUpdateOperationSpec,
+ options);
+ }
+
+ /**
+ * Updates (patches) a disk encryption set.
+ * @param resourceGroupName The name of the resource group.
+ * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name
+ * can't be changed after the disk encryption set is created. Supported characters for the name are
+ * a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
+ * @param diskEncryptionSet disk encryption set object supplied in the body of the Patch disk
+ * encryption set operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginUpdate(resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: Models.DiskEncryptionSetUpdate, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ diskEncryptionSetName,
+ diskEncryptionSet,
+ options
+ },
+ beginUpdateOperationSpec,
+ options);
+ }
+
+ /**
+ * Deletes a disk encryption set.
+ * @param resourceGroupName The name of the resource group.
+ * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name
+ * can't be changed after the disk encryption set is created. Supported characters for the name are
+ * a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginDeleteMethod(resourceGroupName: string, diskEncryptionSetName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ diskEncryptionSetName,
+ options
+ },
+ beginDeleteMethodOperationSpec,
+ options);
+ }
+
+ /**
+ * Lists all the disk encryption sets under a resource group.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listByResourceGroupNextOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists all the disk encryption sets under a subscription.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const getOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.diskEncryptionSetName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DiskEncryptionSet
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listByResourceGroupOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DiskEncryptionSetList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets",
+ urlParameters: [
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DiskEncryptionSetList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PUT",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.diskEncryptionSetName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "diskEncryptionSet",
+ mapper: {
+ ...Mappers.DiskEncryptionSet,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DiskEncryptionSet
+ },
+ 201: {
+ bodyMapper: Mappers.DiskEncryptionSet
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginUpdateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PATCH",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.diskEncryptionSetName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "diskEncryptionSet",
+ mapper: {
+ ...Mappers.DiskEncryptionSetUpdate,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DiskEncryptionSet
+ },
+ 202: {
+ bodyMapper: Mappers.DiskEncryptionSet
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
+ httpMethod: "DELETE",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.diskEncryptionSetName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {},
+ 202: {},
+ 204: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DiskEncryptionSetList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DiskEncryptionSetList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
diff --git a/sdk/compute/arm-compute/src/operations/galleries.ts b/sdk/compute/arm-compute/src/operations/galleries.ts
index 974eb128b68f..bf566595c4a2 100644
--- a/sdk/compute/arm-compute/src/operations/galleries.ts
+++ b/sdk/compute/arm-compute/src/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/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts
index 37731bbced03..eeefec14f744 100644
--- a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts
+++ b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts
@@ -252,7 +252,7 @@ const getOperationSpec: msRest.OperationSpec = {
],
queryParameters: [
Parameters.expand0,
- Parameters.apiVersion2
+ Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
@@ -278,7 +278,7 @@ const listByGalleryApplicationOperationSpec: msRest.OperationSpec = {
Parameters.galleryApplicationName
],
queryParameters: [
- Parameters.apiVersion2
+ Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
@@ -305,7 +305,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
Parameters.galleryApplicationVersionName
],
queryParameters: [
- Parameters.apiVersion2
+ Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
@@ -345,7 +345,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
Parameters.galleryApplicationVersionName
],
queryParameters: [
- Parameters.apiVersion2
+ Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
diff --git a/sdk/compute/arm-compute/src/operations/galleryApplications.ts b/sdk/compute/arm-compute/src/operations/galleryApplications.ts
index 5e44c9d4fa72..5a3b0e83b2ea 100644
--- a/sdk/compute/arm-compute/src/operations/galleryApplications.ts
+++ b/sdk/compute/arm-compute/src/operations/galleryApplications.ts
@@ -221,7 +221,7 @@ const getOperationSpec: msRest.OperationSpec = {
Parameters.galleryApplicationName
],
queryParameters: [
- Parameters.apiVersion2
+ Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
@@ -246,7 +246,7 @@ const listByGalleryOperationSpec: msRest.OperationSpec = {
Parameters.galleryName
],
queryParameters: [
- Parameters.apiVersion2
+ Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
@@ -272,7 +272,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
Parameters.galleryApplicationName
],
queryParameters: [
- Parameters.apiVersion2
+ Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
@@ -311,7 +311,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
Parameters.galleryApplicationName
],
queryParameters: [
- Parameters.apiVersion2
+ Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
diff --git a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts
index 7e92617c0e45..02c415f95c6e 100644
--- a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts
+++ b/sdk/compute/arm-compute/src/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/sdk/compute/arm-compute/src/operations/galleryImages.ts b/sdk/compute/arm-compute/src/operations/galleryImages.ts
index f61ec5fc1cf2..1205d3f7d769 100644
--- a/sdk/compute/arm-compute/src/operations/galleryImages.ts
+++ b/sdk/compute/arm-compute/src/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/sdk/compute/arm-compute/src/operations/index.ts b/sdk/compute/arm-compute/src/operations/index.ts
index b26c11d09d16..a18768f5f0c2 100644
--- a/sdk/compute/arm-compute/src/operations/index.ts
+++ b/sdk/compute/arm-compute/src/operations/index.ts
@@ -23,12 +23,14 @@ export * from "./images";
export * from "./virtualMachineScaleSets";
export * from "./virtualMachineScaleSetExtensions";
export * from "./virtualMachineScaleSetRollingUpgrades";
+export * from "./virtualMachineScaleSetVMExtensions";
export * from "./virtualMachineScaleSetVMs";
export * from "./logAnalytics";
export * from "./virtualMachineRunCommands";
export * from "./resourceSkus";
export * from "./disks";
export * from "./snapshots";
+export * from "./diskEncryptionSets";
export * from "./galleries";
export * from "./galleryImages";
export * from "./galleryImageVersions";
diff --git a/sdk/compute/arm-compute/src/operations/resourceSkus.ts b/sdk/compute/arm-compute/src/operations/resourceSkus.ts
index c5118454eadd..db92867631a2 100644
--- a/sdk/compute/arm-compute/src/operations/resourceSkus.ts
+++ b/sdk/compute/arm-compute/src/operations/resourceSkus.ts
@@ -31,7 +31,7 @@ export class ResourceSkus {
* @param [options] The optional parameters
* @returns Promise
*/
- list(options?: msRest.RequestOptionsBase): Promise;
+ list(options?: Models.ResourceSkusListOptionalParams): Promise;
/**
* @param callback The callback
*/
@@ -40,8 +40,8 @@ export class ResourceSkus {
* @param options The optional parameters
* @param callback The callback
*/
- list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ list(options: Models.ResourceSkusListOptionalParams, callback: msRest.ServiceCallback): void;
+ list(options?: Models.ResourceSkusListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -88,7 +88,8 @@ const listOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
- Parameters.apiVersion1
+ Parameters.apiVersion1,
+ Parameters.filter
],
headerParameters: [
Parameters.acceptLanguage
diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetOperations.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetOperations.ts
deleted file mode 100644
index 543a734532de..000000000000
--- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetOperations.ts
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * 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/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts
new file mode 100644
index 000000000000..50181fa1a83a
--- /dev/null
+++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts
@@ -0,0 +1,378 @@
+/*
+ * 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 msRestAzure from "@azure/ms-rest-azure-js";
+import * as Models from "../models";
+import * as Mappers from "../models/virtualMachineScaleSetVMExtensionsMappers";
+import * as Parameters from "../models/parameters";
+import { ComputeManagementClientContext } from "../computeManagementClientContext";
+
+/** Class representing a VirtualMachineScaleSetVMExtensions. */
+export class VirtualMachineScaleSetVMExtensions {
+ private readonly client: ComputeManagementClientContext;
+
+ /**
+ * Create a VirtualMachineScaleSetVMExtensions.
+ * @param {ComputeManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: ComputeManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * The operation to create or update the VMSS VM extension.
+ * @param resourceGroupName The name of the resource group.
+ * @param vmScaleSetName The name of the VM scale set.
+ * @param instanceId The instance ID of the virtual machine.
+ * @param vmExtensionName The name of the virtual machine extension.
+ * @param extensionParameters Parameters supplied to the Create Virtual Machine Extension
+ * operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ createOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineExtension, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginCreateOrUpdate(resourceGroupName,vmScaleSetName,instanceId,vmExtensionName,extensionParameters,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * The operation to update the VMSS VM extension.
+ * @param resourceGroupName The name of the resource group.
+ * @param vmScaleSetName The name of the VM scale set.
+ * @param instanceId The instance ID of the virtual machine.
+ * @param vmExtensionName The name of the virtual machine extension.
+ * @param extensionParameters Parameters supplied to the Update Virtual Machine Extension
+ * operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ update(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineExtensionUpdate, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginUpdate(resourceGroupName,vmScaleSetName,instanceId,vmExtensionName,extensionParameters,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * The operation to delete the VMSS VM extension.
+ * @param resourceGroupName The name of the resource group.
+ * @param vmScaleSetName The name of the VM scale set.
+ * @param instanceId The instance ID of the virtual machine.
+ * @param vmExtensionName The name of the virtual machine extension.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ deleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginDeleteMethod(resourceGroupName,vmScaleSetName,instanceId,vmExtensionName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished());
+ }
+
+ /**
+ * The operation to get the VMSS VM extension.
+ * @param resourceGroupName The name of the resource group.
+ * @param vmScaleSetName The name of the VM scale set.
+ * @param instanceId The instance ID of the virtual machine.
+ * @param vmExtensionName The name of the virtual machine extension.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, options?: Models.VirtualMachineScaleSetVMExtensionsGetOptionalParams): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param vmScaleSetName The name of the VM scale set.
+ * @param instanceId The instance ID of the virtual machine.
+ * @param vmExtensionName The name of the virtual machine extension.
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param vmScaleSetName The name of the VM scale set.
+ * @param instanceId The instance ID of the virtual machine.
+ * @param vmExtensionName The name of the virtual machine extension.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, options: Models.VirtualMachineScaleSetVMExtensionsGetOptionalParams, callback: msRest.ServiceCallback): void;
+ get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, options?: Models.VirtualMachineScaleSetVMExtensionsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ vmScaleSetName,
+ instanceId,
+ vmExtensionName,
+ options
+ },
+ getOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * The operation to get all extensions of an instance in Virtual Machine Scaleset.
+ * @param resourceGroupName The name of the resource group.
+ * @param vmScaleSetName The name of the VM scale set.
+ * @param instanceId The instance ID of the virtual machine.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMExtensionsListOptionalParams): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param vmScaleSetName The name of the VM scale set.
+ * @param instanceId The instance ID of the virtual machine.
+ * @param callback The callback
+ */
+ list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param vmScaleSetName The name of the VM scale set.
+ * @param instanceId The instance ID of the virtual machine.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options: Models.VirtualMachineScaleSetVMExtensionsListOptionalParams, callback: msRest.ServiceCallback): void;
+ list(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMExtensionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ vmScaleSetName,
+ instanceId,
+ options
+ },
+ listOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * The operation to create or update the VMSS VM extension.
+ * @param resourceGroupName The name of the resource group.
+ * @param vmScaleSetName The name of the VM scale set.
+ * @param instanceId The instance ID of the virtual machine.
+ * @param vmExtensionName The name of the virtual machine extension.
+ * @param extensionParameters Parameters supplied to the Create Virtual Machine Extension
+ * operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineExtension, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ vmScaleSetName,
+ instanceId,
+ vmExtensionName,
+ extensionParameters,
+ options
+ },
+ beginCreateOrUpdateOperationSpec,
+ options);
+ }
+
+ /**
+ * The operation to update the VMSS VM extension.
+ * @param resourceGroupName The name of the resource group.
+ * @param vmScaleSetName The name of the VM scale set.
+ * @param instanceId The instance ID of the virtual machine.
+ * @param vmExtensionName The name of the virtual machine extension.
+ * @param extensionParameters Parameters supplied to the Update Virtual Machine Extension
+ * operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginUpdate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, extensionParameters: Models.VirtualMachineExtensionUpdate, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ vmScaleSetName,
+ instanceId,
+ vmExtensionName,
+ extensionParameters,
+ options
+ },
+ beginUpdateOperationSpec,
+ options);
+ }
+
+ /**
+ * The operation to delete the VMSS VM extension.
+ * @param resourceGroupName The name of the resource group.
+ * @param vmScaleSetName The name of the VM scale set.
+ * @param instanceId The instance ID of the virtual machine.
+ * @param vmExtensionName The name of the virtual machine extension.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginDeleteMethod(resourceGroupName: string, vmScaleSetName: string, instanceId: string, vmExtensionName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ vmScaleSetName,
+ instanceId,
+ vmExtensionName,
+ options
+ },
+ beginDeleteMethodOperationSpec,
+ options);
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const getOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.vmScaleSetName,
+ Parameters.instanceId,
+ Parameters.vmExtensionName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.expand0,
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.VirtualMachineExtension
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.vmScaleSetName,
+ Parameters.instanceId,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.expand0,
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.VirtualMachineExtensionsListResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PUT",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.vmScaleSetName,
+ Parameters.instanceId,
+ Parameters.vmExtensionName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "extensionParameters",
+ mapper: {
+ ...Mappers.VirtualMachineExtension,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.VirtualMachineExtension
+ },
+ 201: {
+ bodyMapper: Mappers.VirtualMachineExtension
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginUpdateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PATCH",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.vmScaleSetName,
+ Parameters.instanceId,
+ Parameters.vmExtensionName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "extensionParameters",
+ mapper: {
+ ...Mappers.VirtualMachineExtensionUpdate,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.VirtualMachineExtension
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
+ httpMethod: "DELETE",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.vmScaleSetName,
+ Parameters.instanceId,
+ Parameters.vmExtensionName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {},
+ 202: {},
+ 204: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts
index e6929a1d0aab..b77e80b27d03 100644
--- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts
+++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts
@@ -243,7 +243,8 @@ export class VirtualMachineScaleSetVMs {
}
/**
- * Redeploys a virtual machine in a VM scale set.
+ * Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and
+ * powers it back on.
* @param resourceGroupName The name of the resource group.
* @param vmScaleSetName The name of the VM scale set.
* @param instanceId The instance ID of the virtual machine.
@@ -451,7 +452,8 @@ export class VirtualMachineScaleSetVMs {
}
/**
- * Redeploys a virtual machine in a VM scale set.
+ * Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and
+ * powers it back on.
* @param resourceGroupName The name of the resource group.
* @param vmScaleSetName The name of the VM scale set.
* @param instanceId The instance ID of the virtual machine.
diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts
index 5aa9dbc78a1b..93f81dfd0a63 100644
--- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts
+++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts
@@ -314,7 +314,8 @@ export class VirtualMachineScaleSets {
}
/**
- * Redeploy one or more virtual machines in a VM scale set.
+ * Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node,
+ * and powers them back on.
* @param resourceGroupName The name of the resource group.
* @param vmScaleSetName The name of the VM scale set.
* @param [options] The optional parameters
@@ -612,7 +613,8 @@ export class VirtualMachineScaleSets {
}
/**
- * Redeploy one or more virtual machines in a VM scale set.
+ * Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node,
+ * and powers them back on.
* @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/sdk/compute/arm-compute/src/operations/virtualMachines.ts b/sdk/compute/arm-compute/src/operations/virtualMachines.ts
index a535ced3f9da..86375a70676f 100644
--- a/sdk/compute/arm-compute/src/operations/virtualMachines.ts
+++ b/sdk/compute/arm-compute/src/operations/virtualMachines.ts
@@ -264,7 +264,7 @@ export class VirtualMachines {
* @param [options] The optional parameters
* @returns Promise
*/
- listAll(options?: msRest.RequestOptionsBase): Promise;
+ listAll(options?: Models.VirtualMachinesListAllOptionalParams): Promise;
/**
* @param callback The callback
*/
@@ -273,8 +273,8 @@ export class VirtualMachines {
* @param options The optional parameters
* @param callback The callback
*/
- listAll(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listAll(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ listAll(options: Models.VirtualMachinesListAllOptionalParams, callback: msRest.ServiceCallback): void;
+ listAll(options?: Models.VirtualMachinesListAllOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -328,6 +328,18 @@ export class VirtualMachines {
.then(lroPoller => lroPoller.pollUntilFinished());
}
+ /**
+ * The operation to reapply a virtual machine's state.
+ * @param resourceGroupName The name of the resource group.
+ * @param vmName The name of the virtual machine.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ reapply(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginReapply(resourceGroupName,vmName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished());
+ }
+
/**
* The operation to restart a virtual machine.
* @param resourceGroupName The name of the resource group.
@@ -353,7 +365,7 @@ export class VirtualMachines {
}
/**
- * The operation to redeploy a virtual machine.
+ * Shuts down the virtual machine, moves it to a new node, and powers it back on.
* @param resourceGroupName The name of the resource group.
* @param vmName The name of the virtual machine.
* @param [options] The optional parameters
@@ -537,6 +549,24 @@ export class VirtualMachines {
options);
}
+ /**
+ * The operation to reapply a virtual machine's state.
+ * @param resourceGroupName The name of the resource group.
+ * @param vmName The name of the virtual machine.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginReapply(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ vmName,
+ options
+ },
+ beginReapplyOperationSpec,
+ options);
+ }
+
/**
* The operation to restart a virtual machine.
* @param resourceGroupName The name of the resource group.
@@ -574,7 +604,7 @@ export class VirtualMachines {
}
/**
- * The operation to redeploy a virtual machine.
+ * Shuts down the virtual machine, moves it to a new node, and powers it back on.
* @param resourceGroupName The name of the resource group.
* @param vmName The name of the virtual machine.
* @param [options] The optional parameters
@@ -865,7 +895,8 @@ const listAllOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
- Parameters.apiVersion0
+ Parameters.apiVersion0,
+ Parameters.statusOnly
],
headerParameters: [
Parameters.acceptLanguage
@@ -1107,6 +1138,30 @@ const beginPowerOffOperationSpec: msRest.OperationSpec = {
serializer
};
+const beginReapplyOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.vmName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {},
+ 202: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
const beginRestartOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart",
diff --git a/swagger_to_sdk_config.json b/swagger_to_sdk_config.json
index a4f763911359..0387101043cb 100644
--- a/swagger_to_sdk_config.json
+++ b/swagger_to_sdk_config.json
@@ -5,7 +5,8 @@
"typescript": "",
"license-header": "MICROSOFT_MIT_NO_VERSION",
"sdkrel:typescript-sdks-folder": ".",
- "use": "@microsoft.azure/autorest.typescript@4.1.1"
+ "typescript.clear-output-folder": "",
+ "use": "@microsoft.azure/autorest.typescript@4.2.2"
},
"advanced_options": {
"clone_dir": "./azure-sdk-for-js",