diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/__init__.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/__init__.py
index ace2f7aed980..a3e0cce25339 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/__init__.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/__init__.py
@@ -63,8 +63,6 @@
from .virtual_machine_identity_py3 import VirtualMachineIdentity
from .maintenance_redeploy_status_py3 import MaintenanceRedeployStatus
from .virtual_machine_instance_view_py3 import VirtualMachineInstanceView
- from .virtual_machine_health_status_py3 import VirtualMachineHealthStatus
- from .virtual_machine_scale_set_vm_instance_view_py3 import VirtualMachineScaleSetVMInstanceView
from .virtual_machine_py3 import VirtualMachine
from .virtual_machine_update_py3 import VirtualMachineUpdate
from .auto_os_upgrade_policy_py3 import AutoOSUpgradePolicy
@@ -117,6 +115,8 @@
from .rolling_upgrade_progress_info_py3 import RollingUpgradeProgressInfo
from .upgrade_operation_historical_status_info_properties_py3 import UpgradeOperationHistoricalStatusInfoProperties
from .upgrade_operation_historical_status_info_py3 import UpgradeOperationHistoricalStatusInfo
+ from .virtual_machine_health_status_py3 import VirtualMachineHealthStatus
+ from .virtual_machine_scale_set_vm_instance_view_py3 import VirtualMachineScaleSetVMInstanceView
from .virtual_machine_scale_set_vm_py3 import VirtualMachineScaleSetVM
from .rolling_upgrade_running_status_py3 import RollingUpgradeRunningStatus
from .rolling_upgrade_status_info_py3 import RollingUpgradeStatusInfo
@@ -191,8 +191,6 @@
from .virtual_machine_identity import VirtualMachineIdentity
from .maintenance_redeploy_status import MaintenanceRedeployStatus
from .virtual_machine_instance_view import VirtualMachineInstanceView
- from .virtual_machine_health_status import VirtualMachineHealthStatus
- from .virtual_machine_scale_set_vm_instance_view import VirtualMachineScaleSetVMInstanceView
from .virtual_machine import VirtualMachine
from .virtual_machine_update import VirtualMachineUpdate
from .auto_os_upgrade_policy import AutoOSUpgradePolicy
@@ -245,6 +243,8 @@
from .rolling_upgrade_progress_info import RollingUpgradeProgressInfo
from .upgrade_operation_historical_status_info_properties import UpgradeOperationHistoricalStatusInfoProperties
from .upgrade_operation_historical_status_info import UpgradeOperationHistoricalStatusInfo
+ from .virtual_machine_health_status import VirtualMachineHealthStatus
+ from .virtual_machine_scale_set_vm_instance_view import VirtualMachineScaleSetVMInstanceView
from .virtual_machine_scale_set_vm import VirtualMachineScaleSetVM
from .rolling_upgrade_running_status import RollingUpgradeRunningStatus
from .rolling_upgrade_status_info import RollingUpgradeStatusInfo
@@ -358,8 +358,6 @@
'VirtualMachineIdentity',
'MaintenanceRedeployStatus',
'VirtualMachineInstanceView',
- 'VirtualMachineHealthStatus',
- 'VirtualMachineScaleSetVMInstanceView',
'VirtualMachine',
'VirtualMachineUpdate',
'AutoOSUpgradePolicy',
@@ -412,6 +410,8 @@
'RollingUpgradeProgressInfo',
'UpgradeOperationHistoricalStatusInfoProperties',
'UpgradeOperationHistoricalStatusInfo',
+ 'VirtualMachineHealthStatus',
+ 'VirtualMachineScaleSetVMInstanceView',
'VirtualMachineScaleSetVM',
'RollingUpgradeRunningStatus',
'RollingUpgradeStatusInfo',
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine.py
index 8f9d1a3bb872..5810c1a09641 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine.py
@@ -74,7 +74,7 @@ class VirtualMachine(Resource):
:vartype provisioning_state: str
:ivar instance_view: The virtual machine instance view.
:vartype instance_view:
- ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceView
+ ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineInstanceView
:param license_type: Specifies that the image or disk that is being used
was licensed on-premises. This element is only used for images that
contain the Windows Server operating system.
Possible values are:
@@ -124,7 +124,7 @@ class VirtualMachine(Resource):
'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'},
'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
- 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineScaleSetVMInstanceView'},
+ 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineInstanceView'},
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
'vm_id': {'key': 'properties.vmId', 'type': 'str'},
'resources': {'key': 'resources', 'type': '[VirtualMachineExtension]'},
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_py3.py
index c3f1a274e98e..53a7270afebc 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_py3.py
@@ -74,7 +74,7 @@ class VirtualMachine(Resource):
:vartype provisioning_state: str
:ivar instance_view: The virtual machine instance view.
:vartype instance_view:
- ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceView
+ ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineInstanceView
:param license_type: Specifies that the image or disk that is being used
was licensed on-premises. This element is only used for images that
contain the Windows Server operating system.
Possible values are:
@@ -124,7 +124,7 @@ class VirtualMachine(Resource):
'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'},
'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
- 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineScaleSetVMInstanceView'},
+ 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineInstanceView'},
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
'vm_id': {'key': 'properties.vmId', 'type': 'str'},
'resources': {'key': 'resources', 'type': '[VirtualMachineExtension]'},
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm.py
index 0bde411429e5..323df5aaceaf 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm.py
@@ -41,7 +41,7 @@ class VirtualMachineScaleSetVM(Resource):
:vartype vm_id: str
:ivar instance_view: The virtual machine instance view.
:vartype instance_view:
- ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineInstanceView
+ ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceView
:param hardware_profile: Specifies the hardware settings for the virtual
machine.
:type hardware_profile:
@@ -123,7 +123,7 @@ class VirtualMachineScaleSetVM(Resource):
'sku': {'key': 'sku', 'type': 'Sku'},
'latest_model_applied': {'key': 'properties.latestModelApplied', 'type': 'bool'},
'vm_id': {'key': 'properties.vmId', 'type': 'str'},
- 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineInstanceView'},
+ 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineScaleSetVMInstanceView'},
'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'},
'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'},
'os_profile': {'key': 'properties.osProfile', 'type': 'OSProfile'},
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_py3.py
index 24d0acda8dcb..1d0b7ce4dca1 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_py3.py
@@ -41,7 +41,7 @@ class VirtualMachineScaleSetVM(Resource):
:vartype vm_id: str
:ivar instance_view: The virtual machine instance view.
:vartype instance_view:
- ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineInstanceView
+ ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceView
:param hardware_profile: Specifies the hardware settings for the virtual
machine.
:type hardware_profile:
@@ -123,7 +123,7 @@ class VirtualMachineScaleSetVM(Resource):
'sku': {'key': 'sku', 'type': 'Sku'},
'latest_model_applied': {'key': 'properties.latestModelApplied', 'type': 'bool'},
'vm_id': {'key': 'properties.vmId', 'type': 'str'},
- 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineInstanceView'},
+ 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineScaleSetVMInstanceView'},
'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'},
'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'},
'os_profile': {'key': 'properties.osProfile', 'type': 'OSProfile'},
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_update.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_update.py
index 1d3cfde50468..710df35dad13 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_update.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_update.py
@@ -64,7 +64,7 @@ class VirtualMachineUpdate(UpdateResource):
:vartype provisioning_state: str
:ivar instance_view: The virtual machine instance view.
:vartype instance_view:
- ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceView
+ ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineInstanceView
:param license_type: Specifies that the image or disk that is being used
was licensed on-premises. This element is only used for images that
contain the Windows Server operating system.
Possible values are:
@@ -102,7 +102,7 @@ class VirtualMachineUpdate(UpdateResource):
'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'},
'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
- 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineScaleSetVMInstanceView'},
+ 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineInstanceView'},
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
'vm_id': {'key': 'properties.vmId', 'type': 'str'},
'identity': {'key': 'identity', 'type': 'VirtualMachineIdentity'},
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_update_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_update_py3.py
index d90f69d892df..33abe81fdb0b 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_update_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_update_py3.py
@@ -64,7 +64,7 @@ class VirtualMachineUpdate(UpdateResource):
:vartype provisioning_state: str
:ivar instance_view: The virtual machine instance view.
:vartype instance_view:
- ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceView
+ ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineInstanceView
:param license_type: Specifies that the image or disk that is being used
was licensed on-premises. This element is only used for images that
contain the Windows Server operating system.
Possible values are:
@@ -102,7 +102,7 @@ class VirtualMachineUpdate(UpdateResource):
'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'},
'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
- 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineScaleSetVMInstanceView'},
+ 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineInstanceView'},
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
'vm_id': {'key': 'properties.vmId', 'type': 'str'},
'identity': {'key': 'identity', 'type': 'VirtualMachineIdentity'},
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/access_uri.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/access_uri.py
index 9ee6b01de1e1..fec7ad1244ab 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/access_uri.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/access_uri.py
@@ -27,7 +27,7 @@ class AccessUri(Model):
}
_attribute_map = {
- 'access_sas': {'key': 'properties.output.accessSAS', 'type': 'str'},
+ 'access_sas': {'key': 'accessSAS', 'type': 'str'},
}
def __init__(self, **kwargs):
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/access_uri_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/access_uri_py3.py
index bb9e56aa4221..c13208a20d8d 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/access_uri_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/access_uri_py3.py
@@ -27,7 +27,7 @@ class AccessUri(Model):
}
_attribute_map = {
- 'access_sas': {'key': 'properties.output.accessSAS', 'type': 'str'},
+ 'access_sas': {'key': 'accessSAS', 'type': 'str'},
}
def __init__(self, **kwargs) -> None:
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_publishing_profile_base.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_publishing_profile_base.py
index 8b01e7c2da2c..e596234aadff 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_publishing_profile_base.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_publishing_profile_base.py
@@ -15,12 +15,18 @@
class GalleryArtifactPublishingProfileBase(Model):
"""Describes the basic gallery artifact publishing profile.
+ All required parameters must be populated in order to send to Azure.
+
:param regions: The regions where the artifact is going to be published.
:type regions: list[str]
- :param source:
+ :param source: Required.
:type source: ~azure.mgmt.compute.v2018_06_01.models.GalleryArtifactSource
"""
+ _validation = {
+ 'source': {'required': True},
+ }
+
_attribute_map = {
'regions': {'key': 'regions', 'type': '[str]'},
'source': {'key': 'source', 'type': 'GalleryArtifactSource'},
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_publishing_profile_base_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_publishing_profile_base_py3.py
index 5a69aa10ec9e..bcbf1b231b2d 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_publishing_profile_base_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_publishing_profile_base_py3.py
@@ -15,18 +15,24 @@
class GalleryArtifactPublishingProfileBase(Model):
"""Describes the basic gallery artifact publishing profile.
+ All required parameters must be populated in order to send to Azure.
+
:param regions: The regions where the artifact is going to be published.
:type regions: list[str]
- :param source:
+ :param source: Required.
:type source: ~azure.mgmt.compute.v2018_06_01.models.GalleryArtifactSource
"""
+ _validation = {
+ 'source': {'required': True},
+ }
+
_attribute_map = {
'regions': {'key': 'regions', 'type': '[str]'},
'source': {'key': 'source', 'type': 'GalleryArtifactSource'},
}
- def __init__(self, *, regions=None, source=None, **kwargs) -> None:
+ def __init__(self, *, source, regions=None, **kwargs) -> None:
super(GalleryArtifactPublishingProfileBase, self).__init__(**kwargs)
self.regions = regions
self.source = source
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_source.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_source.py
index a4b32f9ccb89..d0a6d0fee7f2 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_source.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_source.py
@@ -15,11 +15,17 @@
class GalleryArtifactSource(Model):
"""The source of the gallery artifact.
- :param managed_image:
+ All required parameters must be populated in order to send to Azure.
+
+ :param managed_image: Required.
:type managed_image:
~azure.mgmt.compute.v2018_06_01.models.ManagedArtifact
"""
+ _validation = {
+ 'managed_image': {'required': True},
+ }
+
_attribute_map = {
'managed_image': {'key': 'managedImage', 'type': 'ManagedArtifact'},
}
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_source_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_source_py3.py
index 77e793f91b43..2fe76b0a2bf2 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_source_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_source_py3.py
@@ -15,15 +15,21 @@
class GalleryArtifactSource(Model):
"""The source of the gallery artifact.
- :param managed_image:
+ All required parameters must be populated in order to send to Azure.
+
+ :param managed_image: Required.
:type managed_image:
~azure.mgmt.compute.v2018_06_01.models.ManagedArtifact
"""
+ _validation = {
+ 'managed_image': {'required': True},
+ }
+
_attribute_map = {
'managed_image': {'key': 'managedImage', 'type': 'ManagedArtifact'},
}
- def __init__(self, *, managed_image=None, **kwargs) -> None:
+ def __init__(self, *, managed_image, **kwargs) -> None:
super(GalleryArtifactSource, self).__init__(**kwargs)
self.managed_image = managed_image
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image.py
index 21af4252c4bf..5f019792c881 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image.py
@@ -39,19 +39,19 @@ class GalleryImage(Resource):
:type privacy_statement_uri: str
:param release_note_uri: The release note uri.
:type release_note_uri: str
- :param os_type: This property allows you to specify the type of the OS
- that is included in the disk if creating a VM from user-image or a
+ :param os_type: Required. This property allows you to specify the type of
+ the OS that is included in the disk if creating a VM from user-image or a
specialized VHD.
Possible values are:
**Windows**
**Linux**. Possible values include: 'Windows', 'Linux'
:type os_type: str or
~azure.mgmt.compute.v2018_06_01.models.OperatingSystemTypes
- :param os_state: The OS State. Possible values include: 'Generalized',
- 'Specialized'
+ :param os_state: Required. The OS State. Possible values include:
+ 'Generalized', 'Specialized'
:type os_state: str or
~azure.mgmt.compute.v2018_06_01.models.OperatingSystemStateTypes
:param end_of_life_date: The end of life of this gallery image.
:type end_of_life_date: datetime
- :param identifier:
+ :param identifier: Required.
:type identifier:
~azure.mgmt.compute.v2018_06_01.models.GalleryImageIdentifier
:param recommended:
@@ -75,6 +75,9 @@ class GalleryImage(Resource):
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
+ 'os_type': {'required': True},
+ 'os_state': {'required': True},
+ 'identifier': {'required': True},
'provisioning_state': {'readonly': True},
}
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_identifier.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_identifier.py
index 2f27b4d520aa..0a3e89879504 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_identifier.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_identifier.py
@@ -15,14 +15,22 @@
class GalleryImageIdentifier(Model):
"""This is the gallery image identifier.
- :param publisher: The gallery image publisher name.
+ All required parameters must be populated in order to send to Azure.
+
+ :param publisher: Required. The gallery image publisher name.
:type publisher: str
- :param offer: The gallery image offer name.
+ :param offer: Required. The gallery image offer name.
:type offer: str
- :param sku: The gallery image sku name.
+ :param sku: Required. The gallery image sku name.
:type sku: str
"""
+ _validation = {
+ 'publisher': {'required': True},
+ 'offer': {'required': True},
+ 'sku': {'required': True},
+ }
+
_attribute_map = {
'publisher': {'key': 'publisher', 'type': 'str'},
'offer': {'key': 'offer', 'type': 'str'},
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_identifier_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_identifier_py3.py
index b858e464271c..4d48b4b4f889 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_identifier_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_identifier_py3.py
@@ -15,21 +15,29 @@
class GalleryImageIdentifier(Model):
"""This is the gallery image identifier.
- :param publisher: The gallery image publisher name.
+ All required parameters must be populated in order to send to Azure.
+
+ :param publisher: Required. The gallery image publisher name.
:type publisher: str
- :param offer: The gallery image offer name.
+ :param offer: Required. The gallery image offer name.
:type offer: str
- :param sku: The gallery image sku name.
+ :param sku: Required. The gallery image sku name.
:type sku: str
"""
+ _validation = {
+ 'publisher': {'required': True},
+ 'offer': {'required': True},
+ 'sku': {'required': True},
+ }
+
_attribute_map = {
'publisher': {'key': 'publisher', 'type': 'str'},
'offer': {'key': 'offer', 'type': 'str'},
'sku': {'key': 'sku', 'type': 'str'},
}
- def __init__(self, *, publisher: str=None, offer: str=None, sku: str=None, **kwargs) -> None:
+ def __init__(self, *, publisher: str, offer: str, sku: str, **kwargs) -> None:
super(GalleryImageIdentifier, self).__init__(**kwargs)
self.publisher = publisher
self.offer = offer
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_py3.py
index ea37cbf9541b..d263e80f3e1e 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_py3.py
@@ -39,19 +39,19 @@ class GalleryImage(Resource):
:type privacy_statement_uri: str
:param release_note_uri: The release note uri.
:type release_note_uri: str
- :param os_type: This property allows you to specify the type of the OS
- that is included in the disk if creating a VM from user-image or a
+ :param os_type: Required. This property allows you to specify the type of
+ the OS that is included in the disk if creating a VM from user-image or a
specialized VHD.
Possible values are:
**Windows**
**Linux**. Possible values include: 'Windows', 'Linux'
:type os_type: str or
~azure.mgmt.compute.v2018_06_01.models.OperatingSystemTypes
- :param os_state: The OS State. Possible values include: 'Generalized',
- 'Specialized'
+ :param os_state: Required. The OS State. Possible values include:
+ 'Generalized', 'Specialized'
:type os_state: str or
~azure.mgmt.compute.v2018_06_01.models.OperatingSystemStateTypes
:param end_of_life_date: The end of life of this gallery image.
:type end_of_life_date: datetime
- :param identifier:
+ :param identifier: Required.
:type identifier:
~azure.mgmt.compute.v2018_06_01.models.GalleryImageIdentifier
:param recommended:
@@ -75,6 +75,9 @@ class GalleryImage(Resource):
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
+ 'os_type': {'required': True},
+ 'os_state': {'required': True},
+ 'identifier': {'required': True},
'provisioning_state': {'readonly': True},
}
@@ -98,7 +101,7 @@ class GalleryImage(Resource):
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
}
- def __init__(self, *, location: str, tags=None, description: str=None, eula: str=None, privacy_statement_uri: str=None, release_note_uri: str=None, os_type=None, os_state=None, end_of_life_date=None, identifier=None, recommended=None, disallowed=None, purchase_plan=None, **kwargs) -> None:
+ def __init__(self, *, location: str, os_type, os_state, identifier, tags=None, description: str=None, eula: str=None, privacy_statement_uri: str=None, release_note_uri: str=None, end_of_life_date=None, recommended=None, disallowed=None, purchase_plan=None, **kwargs) -> None:
super(GalleryImage, self).__init__(location=location, tags=tags, **kwargs)
self.description = description
self.eula = eula
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version.py
index 69cdf916c67b..b470e70077a9 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version.py
@@ -31,7 +31,7 @@ class GalleryImageVersion(Resource):
:type location: str
:param tags: Resource tags
:type tags: dict[str, str]
- :param publishing_profile:
+ :param publishing_profile: Required.
:type publishing_profile:
~azure.mgmt.compute.v2018_06_01.models.GalleryImageVersionPublishingProfile
:ivar provisioning_state: The current state of the gallery image version.
@@ -53,6 +53,7 @@ class GalleryImageVersion(Resource):
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
+ 'publishing_profile': {'required': True},
'provisioning_state': {'readonly': True},
'storage_profile': {'readonly': True},
'replication_status': {'readonly': True},
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_publishing_profile.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_publishing_profile.py
index e475a6192ec7..7f1a56ccf562 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_publishing_profile.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_publishing_profile.py
@@ -18,9 +18,11 @@ class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase)
Variables are only populated by the server, and will be ignored when
sending a request.
+ All required parameters must be populated in order to send to Azure.
+
:param regions: The regions where the artifact is going to be published.
:type regions: list[str]
- :param source:
+ :param source: Required.
:type source: ~azure.mgmt.compute.v2018_06_01.models.GalleryArtifactSource
:param scale_tier: The scale tier of the gallery image version. Valid
values are 'S30' and 'S100'. Possible values include: 'S30', 'S100'
@@ -37,6 +39,7 @@ class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase)
"""
_validation = {
+ 'source': {'required': True},
'published_date': {'readonly': True},
}
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_publishing_profile_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_publishing_profile_py3.py
index 13b13fdd244f..cb022546367b 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_publishing_profile_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_publishing_profile_py3.py
@@ -18,9 +18,11 @@ class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase)
Variables are only populated by the server, and will be ignored when
sending a request.
+ All required parameters must be populated in order to send to Azure.
+
:param regions: The regions where the artifact is going to be published.
:type regions: list[str]
- :param source:
+ :param source: Required.
:type source: ~azure.mgmt.compute.v2018_06_01.models.GalleryArtifactSource
:param scale_tier: The scale tier of the gallery image version. Valid
values are 'S30' and 'S100'. Possible values include: 'S30', 'S100'
@@ -37,6 +39,7 @@ class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase)
"""
_validation = {
+ 'source': {'required': True},
'published_date': {'readonly': True},
}
@@ -49,7 +52,7 @@ class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase)
'end_of_life_date': {'key': 'endOfLifeDate', 'type': 'iso-8601'},
}
- def __init__(self, *, regions=None, source=None, scale_tier=None, exclude_from_latest: bool=None, end_of_life_date=None, **kwargs) -> None:
+ def __init__(self, *, source, regions=None, scale_tier=None, exclude_from_latest: bool=None, end_of_life_date=None, **kwargs) -> None:
super(GalleryImageVersionPublishingProfile, self).__init__(regions=regions, source=source, **kwargs)
self.scale_tier = scale_tier
self.exclude_from_latest = exclude_from_latest
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_py3.py
index b01071bd2279..ada04160caf9 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_py3.py
@@ -31,7 +31,7 @@ class GalleryImageVersion(Resource):
:type location: str
:param tags: Resource tags
:type tags: dict[str, str]
- :param publishing_profile:
+ :param publishing_profile: Required.
:type publishing_profile:
~azure.mgmt.compute.v2018_06_01.models.GalleryImageVersionPublishingProfile
:ivar provisioning_state: The current state of the gallery image version.
@@ -53,6 +53,7 @@ class GalleryImageVersion(Resource):
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
+ 'publishing_profile': {'required': True},
'provisioning_state': {'readonly': True},
'storage_profile': {'readonly': True},
'replication_status': {'readonly': True},
@@ -70,7 +71,7 @@ class GalleryImageVersion(Resource):
'replication_status': {'key': 'properties.replicationStatus', 'type': 'ReplicationStatus'},
}
- def __init__(self, *, location: str, tags=None, publishing_profile=None, **kwargs) -> None:
+ def __init__(self, *, location: str, publishing_profile, tags=None, **kwargs) -> None:
super(GalleryImageVersion, self).__init__(location=location, tags=tags, **kwargs)
self.publishing_profile = publishing_profile
self.provisioning_state = None
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/managed_artifact.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/managed_artifact.py
index 75d0cf2708c0..753e9704d755 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/managed_artifact.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/managed_artifact.py
@@ -15,10 +15,16 @@
class ManagedArtifact(Model):
"""The managed artifact.
- :param id: The managed artifact id.
+ All required parameters must be populated in order to send to Azure.
+
+ :param id: Required. The managed artifact id.
:type id: str
"""
+ _validation = {
+ 'id': {'required': True},
+ }
+
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
}
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/managed_artifact_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/managed_artifact_py3.py
index 2afb7d06ce6a..0e8a6b2bfa40 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/managed_artifact_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/managed_artifact_py3.py
@@ -15,14 +15,20 @@
class ManagedArtifact(Model):
"""The managed artifact.
- :param id: The managed artifact id.
+ All required parameters must be populated in order to send to Azure.
+
+ :param id: Required. The managed artifact id.
:type id: str
"""
+ _validation = {
+ 'id': {'required': True},
+ }
+
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
}
- def __init__(self, *, id: str=None, **kwargs) -> None:
+ def __init__(self, *, id: str, **kwargs) -> None:
super(ManagedArtifact, self).__init__(**kwargs)
self.id = id
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_data_disk.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_data_disk.py
index a4280ab06217..48791267028c 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_data_disk.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_data_disk.py
@@ -36,7 +36,7 @@ class VirtualMachineScaleSetDataDisk(Model):
:type create_option: str or
~azure.mgmt.compute.v2018_06_01.models.DiskCreateOptionTypes
:param disk_size_gb: Specifies the size of an empty data disk in
- gigabytes. This element can be used to overwrite the name of the disk in a
+ gigabytes. This element can be used to overwrite the size of the disk in a
virtual machine image.
This value cannot be larger than 1023 GB
:type disk_size_gb: int
:param managed_disk: The managed disk parameters.
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_data_disk_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_data_disk_py3.py
index eb40c17afad2..92a530925ba5 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_data_disk_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_data_disk_py3.py
@@ -36,7 +36,7 @@ class VirtualMachineScaleSetDataDisk(Model):
:type create_option: str or
~azure.mgmt.compute.v2018_06_01.models.DiskCreateOptionTypes
:param disk_size_gb: Specifies the size of an empty data disk in
- gigabytes. This element can be used to overwrite the name of the disk in a
+ gigabytes. This element can be used to overwrite the size of the disk in a
virtual machine image.
This value cannot be larger than 1023 GB
:type disk_size_gb: int
:param managed_disk: The managed disk parameters.
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_os_disk.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_os_disk.py
index b6c87a946f94..7a1676cfe1e3 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_os_disk.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_os_disk.py
@@ -36,6 +36,10 @@ class VirtualMachineScaleSetOSDisk(Model):
Possible values include: 'FromImage', 'Empty', 'Attach'
:type create_option: str or
~azure.mgmt.compute.v2018_06_01.models.DiskCreateOptionTypes
+ :param disk_size_gb: Specifies the size of the operating system disk in
+ gigabytes. This element can be used to overwrite the size of the disk in a
+ virtual machine image.
This value cannot be larger than 1023 GB
+ :type disk_size_gb: int
:param os_type: This property allows you to specify the type of the OS
that is included in the disk if creating a VM from user-image or a
specialized VHD.
Possible values are:
**Windows**
@@ -62,6 +66,7 @@ class VirtualMachineScaleSetOSDisk(Model):
'caching': {'key': 'caching', 'type': 'CachingTypes'},
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
'create_option': {'key': 'createOption', 'type': 'str'},
+ 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'os_type': {'key': 'osType', 'type': 'OperatingSystemTypes'},
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
'vhd_containers': {'key': 'vhdContainers', 'type': '[str]'},
@@ -74,6 +79,7 @@ def __init__(self, **kwargs):
self.caching = kwargs.get('caching', None)
self.write_accelerator_enabled = kwargs.get('write_accelerator_enabled', None)
self.create_option = kwargs.get('create_option', None)
+ self.disk_size_gb = kwargs.get('disk_size_gb', None)
self.os_type = kwargs.get('os_type', None)
self.image = kwargs.get('image', None)
self.vhd_containers = kwargs.get('vhd_containers', None)
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_os_disk_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_os_disk_py3.py
index 051ec3187023..5b44c8e2e8f9 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_os_disk_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_os_disk_py3.py
@@ -36,6 +36,10 @@ class VirtualMachineScaleSetOSDisk(Model):
Possible values include: 'FromImage', 'Empty', 'Attach'
:type create_option: str or
~azure.mgmt.compute.v2018_06_01.models.DiskCreateOptionTypes
+ :param disk_size_gb: Specifies the size of the operating system disk in
+ gigabytes. This element can be used to overwrite the size of the disk in a
+ virtual machine image.
This value cannot be larger than 1023 GB
+ :type disk_size_gb: int
:param os_type: This property allows you to specify the type of the OS
that is included in the disk if creating a VM from user-image or a
specialized VHD.
Possible values are:
**Windows**
@@ -62,18 +66,20 @@ class VirtualMachineScaleSetOSDisk(Model):
'caching': {'key': 'caching', 'type': 'CachingTypes'},
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
'create_option': {'key': 'createOption', 'type': 'str'},
+ 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'os_type': {'key': 'osType', 'type': 'OperatingSystemTypes'},
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
'vhd_containers': {'key': 'vhdContainers', 'type': '[str]'},
'managed_disk': {'key': 'managedDisk', 'type': 'VirtualMachineScaleSetManagedDiskParameters'},
}
- def __init__(self, *, create_option, name: str=None, caching=None, write_accelerator_enabled: bool=None, os_type=None, image=None, vhd_containers=None, managed_disk=None, **kwargs) -> None:
+ def __init__(self, *, create_option, name: str=None, caching=None, write_accelerator_enabled: bool=None, disk_size_gb: int=None, os_type=None, image=None, vhd_containers=None, managed_disk=None, **kwargs) -> None:
super(VirtualMachineScaleSetOSDisk, self).__init__(**kwargs)
self.name = name
self.caching = caching
self.write_accelerator_enabled = write_accelerator_enabled
self.create_option = create_option
+ self.disk_size_gb = disk_size_gb
self.os_type = os_type
self.image = image
self.vhd_containers = vhd_containers
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_public_ip_address_configuration.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_public_ip_address_configuration.py
index c43e3909c23d..ca667579db68 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_public_ip_address_configuration.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_public_ip_address_configuration.py
@@ -29,6 +29,9 @@ class VirtualMachineScaleSetPublicIPAddressConfiguration(Model):
:param ip_tags: The list of IP tags associated with the public IP address.
:type ip_tags:
list[~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetIpTag]
+ :param public_ip_prefix: The PublicIPPrefix from which to allocate
+ publicIP addresses.
+ :type public_ip_prefix: ~azure.mgmt.compute.v2018_06_01.models.SubResource
"""
_validation = {
@@ -40,6 +43,7 @@ class VirtualMachineScaleSetPublicIPAddressConfiguration(Model):
'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'},
'dns_settings': {'key': 'properties.dnsSettings', 'type': 'VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings'},
'ip_tags': {'key': 'properties.ipTags', 'type': '[VirtualMachineScaleSetIpTag]'},
+ 'public_ip_prefix': {'key': 'properties.publicIPPrefix', 'type': 'SubResource'},
}
def __init__(self, **kwargs):
@@ -48,3 +52,4 @@ def __init__(self, **kwargs):
self.idle_timeout_in_minutes = kwargs.get('idle_timeout_in_minutes', None)
self.dns_settings = kwargs.get('dns_settings', None)
self.ip_tags = kwargs.get('ip_tags', None)
+ self.public_ip_prefix = kwargs.get('public_ip_prefix', None)
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_public_ip_address_configuration_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_public_ip_address_configuration_py3.py
index 1997921b01de..3d6ba42bf5f6 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_public_ip_address_configuration_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_public_ip_address_configuration_py3.py
@@ -29,6 +29,9 @@ class VirtualMachineScaleSetPublicIPAddressConfiguration(Model):
:param ip_tags: The list of IP tags associated with the public IP address.
:type ip_tags:
list[~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetIpTag]
+ :param public_ip_prefix: The PublicIPPrefix from which to allocate
+ publicIP addresses.
+ :type public_ip_prefix: ~azure.mgmt.compute.v2018_06_01.models.SubResource
"""
_validation = {
@@ -40,11 +43,13 @@ class VirtualMachineScaleSetPublicIPAddressConfiguration(Model):
'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'},
'dns_settings': {'key': 'properties.dnsSettings', 'type': 'VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings'},
'ip_tags': {'key': 'properties.ipTags', 'type': '[VirtualMachineScaleSetIpTag]'},
+ 'public_ip_prefix': {'key': 'properties.publicIPPrefix', 'type': 'SubResource'},
}
- def __init__(self, *, name: str, idle_timeout_in_minutes: int=None, dns_settings=None, ip_tags=None, **kwargs) -> None:
+ def __init__(self, *, name: str, idle_timeout_in_minutes: int=None, dns_settings=None, ip_tags=None, public_ip_prefix=None, **kwargs) -> None:
super(VirtualMachineScaleSetPublicIPAddressConfiguration, self).__init__(**kwargs)
self.name = name
self.idle_timeout_in_minutes = idle_timeout_in_minutes
self.dns_settings = dns_settings
self.ip_tags = ip_tags
+ self.public_ip_prefix = public_ip_prefix
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_update_os_disk.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_update_os_disk.py
index 8a1968c828c4..1b2702a1659d 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_update_os_disk.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_update_os_disk.py
@@ -22,6 +22,10 @@ class VirtualMachineScaleSetUpdateOSDisk(Model):
:param write_accelerator_enabled: Specifies whether writeAccelerator
should be enabled or disabled on the disk.
:type write_accelerator_enabled: bool
+ :param disk_size_gb: Specifies the size of the operating system disk in
+ gigabytes. This element can be used to overwrite the size of the disk in a
+ virtual machine image.
This value cannot be larger than 1023 GB
+ :type disk_size_gb: int
:param image: The Source User Image VirtualHardDisk. This VirtualHardDisk
will be copied before using it to attach to the Virtual Machine. If
SourceImage is provided, the destination VirtualHardDisk should not exist.
@@ -36,6 +40,7 @@ class VirtualMachineScaleSetUpdateOSDisk(Model):
_attribute_map = {
'caching': {'key': 'caching', 'type': 'CachingTypes'},
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
+ 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
'vhd_containers': {'key': 'vhdContainers', 'type': '[str]'},
'managed_disk': {'key': 'managedDisk', 'type': 'VirtualMachineScaleSetManagedDiskParameters'},
@@ -45,6 +50,7 @@ def __init__(self, **kwargs):
super(VirtualMachineScaleSetUpdateOSDisk, self).__init__(**kwargs)
self.caching = kwargs.get('caching', None)
self.write_accelerator_enabled = kwargs.get('write_accelerator_enabled', None)
+ self.disk_size_gb = kwargs.get('disk_size_gb', None)
self.image = kwargs.get('image', None)
self.vhd_containers = kwargs.get('vhd_containers', None)
self.managed_disk = kwargs.get('managed_disk', None)
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_update_os_disk_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_update_os_disk_py3.py
index b5b2138e378a..ae479089bf38 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_update_os_disk_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_update_os_disk_py3.py
@@ -22,6 +22,10 @@ class VirtualMachineScaleSetUpdateOSDisk(Model):
:param write_accelerator_enabled: Specifies whether writeAccelerator
should be enabled or disabled on the disk.
:type write_accelerator_enabled: bool
+ :param disk_size_gb: Specifies the size of the operating system disk in
+ gigabytes. This element can be used to overwrite the size of the disk in a
+ virtual machine image.
This value cannot be larger than 1023 GB
+ :type disk_size_gb: int
:param image: The Source User Image VirtualHardDisk. This VirtualHardDisk
will be copied before using it to attach to the Virtual Machine. If
SourceImage is provided, the destination VirtualHardDisk should not exist.
@@ -36,15 +40,17 @@ class VirtualMachineScaleSetUpdateOSDisk(Model):
_attribute_map = {
'caching': {'key': 'caching', 'type': 'CachingTypes'},
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
+ 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
'vhd_containers': {'key': 'vhdContainers', 'type': '[str]'},
'managed_disk': {'key': 'managedDisk', 'type': 'VirtualMachineScaleSetManagedDiskParameters'},
}
- def __init__(self, *, caching=None, write_accelerator_enabled: bool=None, image=None, vhd_containers=None, managed_disk=None, **kwargs) -> None:
+ def __init__(self, *, caching=None, write_accelerator_enabled: bool=None, disk_size_gb: int=None, image=None, vhd_containers=None, managed_disk=None, **kwargs) -> None:
super(VirtualMachineScaleSetUpdateOSDisk, self).__init__(**kwargs)
self.caching = caching
self.write_accelerator_enabled = write_accelerator_enabled
+ self.disk_size_gb = disk_size_gb
self.image = image
self.vhd_containers = vhd_containers
self.managed_disk = managed_disk
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_vm.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_vm.py
index 503bd3c007fd..88735cbf628b 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_vm.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_vm.py
@@ -97,6 +97,8 @@ class VirtualMachineScaleSetVM(Resource):
:ivar resources: The virtual machine child extension resources.
:vartype resources:
list[~azure.mgmt.compute.v2018_06_01.models.VirtualMachineExtension]
+ :ivar zones: The virtual machine zones.
+ :vartype zones: list[str]
"""
_validation = {
@@ -111,6 +113,7 @@ class VirtualMachineScaleSetVM(Resource):
'instance_view': {'readonly': True},
'provisioning_state': {'readonly': True},
'resources': {'readonly': True},
+ 'zones': {'readonly': True},
}
_attribute_map = {
@@ -134,6 +137,7 @@ class VirtualMachineScaleSetVM(Resource):
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
'plan': {'key': 'plan', 'type': 'Plan'},
'resources': {'key': 'resources', 'type': '[VirtualMachineExtension]'},
+ 'zones': {'key': 'zones', 'type': '[str]'},
}
def __init__(self, **kwargs):
@@ -153,3 +157,4 @@ def __init__(self, **kwargs):
self.license_type = kwargs.get('license_type', None)
self.plan = kwargs.get('plan', None)
self.resources = None
+ self.zones = None
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_vm_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_vm_py3.py
index c64077b1c210..a4b43de56d0f 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_vm_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_vm_py3.py
@@ -97,6 +97,8 @@ class VirtualMachineScaleSetVM(Resource):
:ivar resources: The virtual machine child extension resources.
:vartype resources:
list[~azure.mgmt.compute.v2018_06_01.models.VirtualMachineExtension]
+ :ivar zones: The virtual machine zones.
+ :vartype zones: list[str]
"""
_validation = {
@@ -111,6 +113,7 @@ class VirtualMachineScaleSetVM(Resource):
'instance_view': {'readonly': True},
'provisioning_state': {'readonly': True},
'resources': {'readonly': True},
+ 'zones': {'readonly': True},
}
_attribute_map = {
@@ -134,6 +137,7 @@ class VirtualMachineScaleSetVM(Resource):
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
'plan': {'key': 'plan', 'type': 'Plan'},
'resources': {'key': 'resources', 'type': '[VirtualMachineExtension]'},
+ 'zones': {'key': 'zones', 'type': '[str]'},
}
def __init__(self, *, location: str, tags=None, hardware_profile=None, storage_profile=None, os_profile=None, network_profile=None, diagnostics_profile=None, availability_set=None, license_type: str=None, plan=None, **kwargs) -> None:
@@ -153,3 +157,4 @@ def __init__(self, *, location: str, tags=None, hardware_profile=None, storage_p
self.license_type = license_type
self.plan = plan
self.resources = None
+ self.zones = None
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/virtual_machine_scale_set_rolling_upgrades_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/virtual_machine_scale_set_rolling_upgrades_operations.py
index 0fb3a482349b..0127fe1c5c4a 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/virtual_machine_scale_set_rolling_upgrades_operations.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/virtual_machine_scale_set_rolling_upgrades_operations.py
@@ -200,6 +200,88 @@ def get_long_running_output(response):
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
start_os_upgrade.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade'}
+
+ def _start_extension_upgrade_initial(
+ self, resource_group_name, vm_scale_set_name, custom_headers=None, raw=False, **operation_config):
+ # Construct URL
+ url = self.start_extension_upgrade.metadata['url']
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
+ 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'),
+ 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
+ }
+ url = self._client.format_url(url, **path_format_arguments)
+
+ # Construct parameters
+ query_parameters = {}
+ query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
+
+ # Construct headers
+ header_parameters = {}
+ if self.config.generate_client_request_id:
+ header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
+ if custom_headers:
+ header_parameters.update(custom_headers)
+ if self.config.accept_language is not None:
+ header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
+
+ # Construct and send request
+ request = self._client.post(url, query_parameters, header_parameters)
+ response = self._client.send(request, stream=False, **operation_config)
+
+ if response.status_code not in [200, 202]:
+ exp = CloudError(response)
+ exp.request_id = response.headers.get('x-ms-request-id')
+ raise exp
+
+ if raw:
+ client_raw_response = ClientRawResponse(None, response)
+ return client_raw_response
+
+ def start_extension_upgrade(
+ self, resource_group_name, vm_scale_set_name, custom_headers=None, raw=False, polling=True, **operation_config):
+ """Starts a rolling upgrade to move all extensions for all virtual machine
+ scale set instances to the latest available extension version.
+ Instances which are already running the latest extension versions are
+ not affected.
+
+ :param resource_group_name: The name of the resource group.
+ :type resource_group_name: str
+ :param vm_scale_set_name: The name of the VM scale set.
+ :type vm_scale_set_name: str
+ :param dict custom_headers: headers that will be added to the request
+ :param bool raw: The poller return type is ClientRawResponse, the
+ direct response alongside the deserialized response
+ :param polling: True for ARMPolling, False for no polling, or a
+ polling object for personal polling strategy
+ :return: An instance of LROPoller that returns None or
+ ClientRawResponse if raw==True
+ :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or
+ ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]]
+ :raises: :class:`CloudError`
+ """
+ raw_result = self._start_extension_upgrade_initial(
+ resource_group_name=resource_group_name,
+ vm_scale_set_name=vm_scale_set_name,
+ custom_headers=custom_headers,
+ raw=True,
+ **operation_config
+ )
+
+ def get_long_running_output(response):
+ if raw:
+ client_raw_response = ClientRawResponse(None, response)
+ return client_raw_response
+
+ lro_delay = operation_config.get(
+ 'long_running_operation_timeout',
+ self.config.long_running_operation_timeout)
+ if polling is True: polling_method = ARMPolling(lro_delay, **operation_config)
+ elif polling is False: polling_method = NoPolling()
+ else: polling_method = polling
+ return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
+ start_extension_upgrade.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade'}
+
def get_latest(
self, resource_group_name, vm_scale_set_name, custom_headers=None, raw=False, **operation_config):
"""Gets the status of the latest virtual machine scale set rolling
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/virtual_machine_scale_sets_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/virtual_machine_scale_sets_operations.py
index ee4c53596d64..7fa76a536bac 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/virtual_machine_scale_sets_operations.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/virtual_machine_scale_sets_operations.py
@@ -1352,6 +1352,9 @@ def _perform_maintenance_initial(
def perform_maintenance(
self, resource_group_name, vm_scale_set_name, instance_ids=None, custom_headers=None, raw=False, polling=True, **operation_config):
"""Perform maintenance on one or more virtual machines in a VM scale set.
+ Operation on instances which are not eligible for perform maintenance
+ will be failed. Please refer to best practices for more details:
+ https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str