diff --git a/profiles/latest/compute/mgmt/compute/models.go b/profiles/latest/compute/mgmt/compute/models.go index cc724490ffe3..3f2ff246e949 100644 --- a/profiles/latest/compute/mgmt/compute/models.go +++ b/profiles/latest/compute/mgmt/compute/models.go @@ -189,6 +189,13 @@ const ( V2 HyperVGeneration = original.V2 ) +type HyperVGenerationType = original.HyperVGenerationType + +const ( + HyperVGenerationTypeV1 HyperVGenerationType = original.HyperVGenerationTypeV1 + HyperVGenerationTypeV2 HyperVGenerationType = original.HyperVGenerationTypeV2 +) + type HyperVGenerationTypes = original.HyperVGenerationTypes const ( @@ -1287,6 +1294,9 @@ func PossibleDiskStorageAccountTypesValues() []DiskStorageAccountTypes { func PossibleHostCachingValues() []HostCaching { return original.PossibleHostCachingValues() } +func PossibleHyperVGenerationTypeValues() []HyperVGenerationType { + return original.PossibleHyperVGenerationTypeValues() +} func PossibleHyperVGenerationTypesValues() []HyperVGenerationTypes { return original.PossibleHyperVGenerationTypesValues() } diff --git a/profiles/preview/compute/mgmt/compute/models.go b/profiles/preview/compute/mgmt/compute/models.go index e4502994db76..881ed4f9eacc 100644 --- a/profiles/preview/compute/mgmt/compute/models.go +++ b/profiles/preview/compute/mgmt/compute/models.go @@ -189,6 +189,13 @@ const ( V2 HyperVGeneration = original.V2 ) +type HyperVGenerationType = original.HyperVGenerationType + +const ( + HyperVGenerationTypeV1 HyperVGenerationType = original.HyperVGenerationTypeV1 + HyperVGenerationTypeV2 HyperVGenerationType = original.HyperVGenerationTypeV2 +) + type HyperVGenerationTypes = original.HyperVGenerationTypes const ( @@ -1287,6 +1294,9 @@ func PossibleDiskStorageAccountTypesValues() []DiskStorageAccountTypes { func PossibleHostCachingValues() []HostCaching { return original.PossibleHostCachingValues() } +func PossibleHyperVGenerationTypeValues() []HyperVGenerationType { + return original.PossibleHyperVGenerationTypeValues() +} func PossibleHyperVGenerationTypesValues() []HyperVGenerationTypes { return original.PossibleHyperVGenerationTypesValues() } diff --git a/services/compute/mgmt/2017-09-01/skus/models.go b/services/compute/mgmt/2017-09-01/skus/models.go index dcbb275d90b5..b46a35563630 100644 --- a/services/compute/mgmt/2017-09-01/skus/models.go +++ b/services/compute/mgmt/2017-09-01/skus/models.go @@ -163,12 +163,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } -// ResourceSkusResult the Compute List Skus operation response. +// ResourceSkusResult the List Resource Skus operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` // Value - The list of skus available for the subscription. Value *[]ResourceSku `json:"value,omitempty"` - // NextLink - The uri to fetch the next page of Compute Skus. Call ListNext() with this to fetch the next page of VMSS Skus. + // NextLink - The URI to fetch the next page of Resource Skus. Call ListNext() with this URI to fetch the next page of Resource Skus NextLink *string `json:"nextLink,omitempty"` } diff --git a/services/compute/mgmt/2017-12-01/compute/models.go b/services/compute/mgmt/2017-12-01/compute/models.go index 4a3b482bf285..e224b7c120d5 100644 --- a/services/compute/mgmt/2017-12-01/compute/models.go +++ b/services/compute/mgmt/2017-12-01/compute/models.go @@ -3143,12 +3143,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } -// ResourceSkusResult the Compute List Skus operation response. +// ResourceSkusResult the List Resource Skus operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` // Value - The list of skus available for the subscription. Value *[]ResourceSku `json:"value,omitempty"` - // NextLink - The uri to fetch the next page of Compute Skus. Call ListNext() with this to fetch the next page of VMSS Skus. + // NextLink - The URI to fetch the next page of Resource Skus. Call ListNext() with this URI to fetch the next page of Resource Skus NextLink *string `json:"nextLink,omitempty"` } diff --git a/services/compute/mgmt/2018-06-01/compute/models.go b/services/compute/mgmt/2018-06-01/compute/models.go index 00148c04c44b..77b8f233c22b 100644 --- a/services/compute/mgmt/2018-06-01/compute/models.go +++ b/services/compute/mgmt/2018-06-01/compute/models.go @@ -5155,12 +5155,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } -// ResourceSkusResult the Compute List Skus operation response. +// ResourceSkusResult the List Resource Skus operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` // Value - The list of skus available for the subscription. Value *[]ResourceSku `json:"value,omitempty"` - // NextLink - The uri to fetch the next page of Compute Skus. Call ListNext() with this to fetch the next page of VMSS Skus. + // NextLink - The URI to fetch the next page of Resource Skus. Call ListNext() with this URI to fetch the next page of Resource Skus NextLink *string `json:"nextLink,omitempty"` } @@ -7342,10 +7342,10 @@ type VirtualMachineProperties struct { VMID *string `json:"vmId,omitempty"` } -// VirtualMachineReimageParameters parameters for Reimaging Virtual Machine. Default value for OSDisk : -// true. +// VirtualMachineReimageParameters parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk +// will always be reimaged type VirtualMachineReimageParameters struct { - // TempDisk - Specifies whether to reimage temp disk. Default value: false. + // TempDisk - Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. TempDisk *bool `json:"tempDisk,omitempty"` } @@ -8797,7 +8797,7 @@ type VirtualMachineScaleSetPublicIPAddressConfigurationProperties struct { type VirtualMachineScaleSetReimageParameters struct { // InstanceIds - The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set. InstanceIds *[]string `json:"instanceIds,omitempty"` - // TempDisk - Specifies whether to reimage temp disk. Default value: false. + // TempDisk - Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. TempDisk *bool `json:"tempDisk,omitempty"` } @@ -10023,7 +10023,7 @@ type VirtualMachineScaleSetVMProperties struct { // VirtualMachineScaleSetVMReimageParameters describes a Virtual Machine Scale Set VM Reimage Parameters. type VirtualMachineScaleSetVMReimageParameters struct { - // TempDisk - Specifies whether to reimage temp disk. Default value: false. + // TempDisk - Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. TempDisk *bool `json:"tempDisk,omitempty"` } diff --git a/services/compute/mgmt/2018-10-01/compute/models.go b/services/compute/mgmt/2018-10-01/compute/models.go index 2ee87f2139c7..6177a45ab3ee 100644 --- a/services/compute/mgmt/2018-10-01/compute/models.go +++ b/services/compute/mgmt/2018-10-01/compute/models.go @@ -5163,12 +5163,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } -// ResourceSkusResult the Compute List Skus operation response. +// ResourceSkusResult the List Resource Skus operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` // Value - The list of skus available for the subscription. Value *[]ResourceSku `json:"value,omitempty"` - // NextLink - The uri to fetch the next page of Compute Skus. Call ListNext() with this to fetch the next page of VMSS Skus. + // NextLink - The URI to fetch the next page of Resource Skus. Call ListNext() with this URI to fetch the next page of Resource Skus NextLink *string `json:"nextLink,omitempty"` } @@ -7352,7 +7352,7 @@ type VirtualMachineProperties struct { // VirtualMachineReimageParameters parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk // will always be reimaged type VirtualMachineReimageParameters struct { - // TempDisk - Specifies whether to reimage temp disk. Default value: false. + // TempDisk - Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. TempDisk *bool `json:"tempDisk,omitempty"` } @@ -8806,7 +8806,7 @@ type VirtualMachineScaleSetPublicIPAddressConfigurationProperties struct { type VirtualMachineScaleSetReimageParameters struct { // InstanceIds - The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set. InstanceIds *[]string `json:"instanceIds,omitempty"` - // TempDisk - Specifies whether to reimage temp disk. Default value: false. + // TempDisk - Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. TempDisk *bool `json:"tempDisk,omitempty"` } @@ -10032,7 +10032,7 @@ type VirtualMachineScaleSetVMProperties struct { // VirtualMachineScaleSetVMReimageParameters describes a Virtual Machine Scale Set VM Reimage Parameters. type VirtualMachineScaleSetVMReimageParameters struct { - // TempDisk - Specifies whether to reimage temp disk. Default value: false. + // TempDisk - Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. TempDisk *bool `json:"tempDisk,omitempty"` } diff --git a/services/compute/mgmt/2019-03-01/compute/models.go b/services/compute/mgmt/2019-03-01/compute/models.go index 23f80d2fae72..314cba08d779 100644 --- a/services/compute/mgmt/2019-03-01/compute/models.go +++ b/services/compute/mgmt/2019-03-01/compute/models.go @@ -365,6 +365,21 @@ func PossibleHyperVGenerationValues() []HyperVGeneration { return []HyperVGeneration{V1, V2} } +// HyperVGenerationType enumerates the values for hyper v generation type. +type HyperVGenerationType string + +const ( + // HyperVGenerationTypeV1 ... + HyperVGenerationTypeV1 HyperVGenerationType = "V1" + // HyperVGenerationTypeV2 ... + HyperVGenerationTypeV2 HyperVGenerationType = "V2" +) + +// PossibleHyperVGenerationTypeValues returns an array of possible values for the HyperVGenerationType const type. +func PossibleHyperVGenerationTypeValues() []HyperVGenerationType { + return []HyperVGenerationType{HyperVGenerationTypeV1, HyperVGenerationTypeV2} +} + // HyperVGenerationTypes enumerates the values for hyper v generation types. type HyperVGenerationTypes string @@ -1304,7 +1319,7 @@ type APIErrorBase struct { // AutomaticOSUpgradePolicy the configuration parameters used for performing automatic OS upgrade. type AutomaticOSUpgradePolicy struct { - // EnableAutomaticOSUpgrade - Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false. If this is set to true for Windows based scale sets, recommendation is to set [enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet) to false. + // EnableAutomaticOSUpgrade - Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false.

If this is set to true for Windows based scale sets, [enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet) is automatically set to false and cannot be set to true. EnableAutomaticOSUpgrade *bool `json:"enableAutomaticOSUpgrade,omitempty"` // DisableAutomaticRollback - Whether OS image rollback feature should be disabled. Default value is false. DisableAutomaticRollback *bool `json:"disableAutomaticRollback,omitempty"` @@ -5253,12 +5268,12 @@ type ResourceSkuRestrictions struct { ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"` } -// ResourceSkusResult the Compute List Skus operation response. +// ResourceSkusResult the List Resource Skus operation response. type ResourceSkusResult struct { autorest.Response `json:"-"` // Value - The list of skus available for the subscription. Value *[]ResourceSku `json:"value,omitempty"` - // NextLink - The uri to fetch the next page of Compute Skus. Call ListNext() with this to fetch the next page of VMSS Skus. + // NextLink - The URI to fetch the next page of Resource Skus. Call ListNext() with this URI to fetch the next page of Resource Skus NextLink *string `json:"nextLink,omitempty"` } @@ -7261,6 +7276,8 @@ type VirtualMachineInstanceView struct { OsName *string `json:"osName,omitempty"` // OsVersion - The version of Operating System running on the virtual machine. OsVersion *string `json:"osVersion,omitempty"` + // HyperVGeneration - Specifies the HyperVGeneration Type associated with a resource. Possible values include: 'HyperVGenerationTypeV1', 'HyperVGenerationTypeV2' + HyperVGeneration HyperVGenerationType `json:"hyperVGeneration,omitempty"` // RdpThumbPrint - The Remote desktop certificate thumbprint. RdpThumbPrint *string `json:"rdpThumbPrint,omitempty"` // VMAgent - The VM Agent running on the virtual machine. @@ -7454,7 +7471,7 @@ type VirtualMachineProperties struct { // VirtualMachineReimageParameters parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk // will always be reimaged type VirtualMachineReimageParameters struct { - // TempDisk - Specifies whether to reimage temp disk. Default value: false. + // TempDisk - Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. TempDisk *bool `json:"tempDisk,omitempty"` } @@ -8910,7 +8927,7 @@ type VirtualMachineScaleSetPublicIPAddressConfigurationProperties struct { type VirtualMachineScaleSetReimageParameters struct { // InstanceIds - The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set. InstanceIds *[]string `json:"instanceIds,omitempty"` - // TempDisk - Specifies whether to reimage temp disk. Default value: false. + // TempDisk - Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. TempDisk *bool `json:"tempDisk,omitempty"` } @@ -10157,7 +10174,7 @@ type VirtualMachineScaleSetVMProtectionPolicy struct { // VirtualMachineScaleSetVMReimageParameters describes a Virtual Machine Scale Set VM Reimage Parameters. type VirtualMachineScaleSetVMReimageParameters struct { - // TempDisk - Specifies whether to reimage temp disk. Default value: false. + // TempDisk - Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. TempDisk *bool `json:"tempDisk,omitempty"` } @@ -10885,7 +10902,7 @@ type VMScaleSetConvertToSinglePlacementGroupInput struct { type WindowsConfiguration struct { // ProvisionVMAgent - Indicates whether virtual machine agent should be provisioned on the virtual machine.

When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. ProvisionVMAgent *bool `json:"provisionVMAgent,omitempty"` - // EnableAutomaticUpdates - Indicates whether virtual machine is enabled for automatic Windows updates. Default value is true.

For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning. + // EnableAutomaticUpdates - Indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value is true.

For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning. EnableAutomaticUpdates *bool `json:"enableAutomaticUpdates,omitempty"` // TimeZone - Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time" TimeZone *string `json:"timeZone,omitempty"`