Skip to content

Commit 9900670

Browse files
authored
[AutoPR compute/resource-manager] [Compute] add zone and rolling upgrade. (#3148)
* Generated from 8f16e79b245d1c099de8ba5252eee3950d22f3c9 Update compute.json and disk.json for some issues and add zone and rolling upgrade. * Generated from 88a505b7a2de9272891f77bbf24c4eeeb34aa0d2 Update compute.json and disk.json for some issues and add zone and rolling upgrade.
1 parent 8819a52 commit 9900670

35 files changed

+253
-58
lines changed

azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@
6363
from .virtual_machine_identity_py3 import VirtualMachineIdentity
6464
from .maintenance_redeploy_status_py3 import MaintenanceRedeployStatus
6565
from .virtual_machine_instance_view_py3 import VirtualMachineInstanceView
66-
from .virtual_machine_health_status_py3 import VirtualMachineHealthStatus
67-
from .virtual_machine_scale_set_vm_instance_view_py3 import VirtualMachineScaleSetVMInstanceView
6866
from .virtual_machine_py3 import VirtualMachine
6967
from .virtual_machine_update_py3 import VirtualMachineUpdate
7068
from .auto_os_upgrade_policy_py3 import AutoOSUpgradePolicy
@@ -117,6 +115,8 @@
117115
from .rolling_upgrade_progress_info_py3 import RollingUpgradeProgressInfo
118116
from .upgrade_operation_historical_status_info_properties_py3 import UpgradeOperationHistoricalStatusInfoProperties
119117
from .upgrade_operation_historical_status_info_py3 import UpgradeOperationHistoricalStatusInfo
118+
from .virtual_machine_health_status_py3 import VirtualMachineHealthStatus
119+
from .virtual_machine_scale_set_vm_instance_view_py3 import VirtualMachineScaleSetVMInstanceView
120120
from .virtual_machine_scale_set_vm_py3 import VirtualMachineScaleSetVM
121121
from .rolling_upgrade_running_status_py3 import RollingUpgradeRunningStatus
122122
from .rolling_upgrade_status_info_py3 import RollingUpgradeStatusInfo
@@ -191,8 +191,6 @@
191191
from .virtual_machine_identity import VirtualMachineIdentity
192192
from .maintenance_redeploy_status import MaintenanceRedeployStatus
193193
from .virtual_machine_instance_view import VirtualMachineInstanceView
194-
from .virtual_machine_health_status import VirtualMachineHealthStatus
195-
from .virtual_machine_scale_set_vm_instance_view import VirtualMachineScaleSetVMInstanceView
196194
from .virtual_machine import VirtualMachine
197195
from .virtual_machine_update import VirtualMachineUpdate
198196
from .auto_os_upgrade_policy import AutoOSUpgradePolicy
@@ -245,6 +243,8 @@
245243
from .rolling_upgrade_progress_info import RollingUpgradeProgressInfo
246244
from .upgrade_operation_historical_status_info_properties import UpgradeOperationHistoricalStatusInfoProperties
247245
from .upgrade_operation_historical_status_info import UpgradeOperationHistoricalStatusInfo
246+
from .virtual_machine_health_status import VirtualMachineHealthStatus
247+
from .virtual_machine_scale_set_vm_instance_view import VirtualMachineScaleSetVMInstanceView
248248
from .virtual_machine_scale_set_vm import VirtualMachineScaleSetVM
249249
from .rolling_upgrade_running_status import RollingUpgradeRunningStatus
250250
from .rolling_upgrade_status_info import RollingUpgradeStatusInfo
@@ -358,8 +358,6 @@
358358
'VirtualMachineIdentity',
359359
'MaintenanceRedeployStatus',
360360
'VirtualMachineInstanceView',
361-
'VirtualMachineHealthStatus',
362-
'VirtualMachineScaleSetVMInstanceView',
363361
'VirtualMachine',
364362
'VirtualMachineUpdate',
365363
'AutoOSUpgradePolicy',
@@ -412,6 +410,8 @@
412410
'RollingUpgradeProgressInfo',
413411
'UpgradeOperationHistoricalStatusInfoProperties',
414412
'UpgradeOperationHistoricalStatusInfo',
413+
'VirtualMachineHealthStatus',
414+
'VirtualMachineScaleSetVMInstanceView',
415415
'VirtualMachineScaleSetVM',
416416
'RollingUpgradeRunningStatus',
417417
'RollingUpgradeStatusInfo',

azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class VirtualMachine(Resource):
7474
:vartype provisioning_state: str
7575
:ivar instance_view: The virtual machine instance view.
7676
:vartype instance_view:
77-
~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceView
77+
~azure.mgmt.compute.v2017_12_01.models.VirtualMachineInstanceView
7878
:param license_type: Specifies that the image or disk that is being used
7979
was licensed on-premises. This element is only used for images that
8080
contain the Windows Server operating system. <br><br> Possible values are:
@@ -124,7 +124,7 @@ class VirtualMachine(Resource):
124124
'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'},
125125
'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'},
126126
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
127-
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineScaleSetVMInstanceView'},
127+
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineInstanceView'},
128128
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
129129
'vm_id': {'key': 'properties.vmId', 'type': 'str'},
130130
'resources': {'key': 'resources', 'type': '[VirtualMachineExtension]'},

azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_py3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class VirtualMachine(Resource):
7474
:vartype provisioning_state: str
7575
:ivar instance_view: The virtual machine instance view.
7676
:vartype instance_view:
77-
~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceView
77+
~azure.mgmt.compute.v2017_12_01.models.VirtualMachineInstanceView
7878
:param license_type: Specifies that the image or disk that is being used
7979
was licensed on-premises. This element is only used for images that
8080
contain the Windows Server operating system. <br><br> Possible values are:
@@ -124,7 +124,7 @@ class VirtualMachine(Resource):
124124
'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'},
125125
'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'},
126126
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
127-
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineScaleSetVMInstanceView'},
127+
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineInstanceView'},
128128
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
129129
'vm_id': {'key': 'properties.vmId', 'type': 'str'},
130130
'resources': {'key': 'resources', 'type': '[VirtualMachineExtension]'},

azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class VirtualMachineScaleSetVM(Resource):
4141
:vartype vm_id: str
4242
:ivar instance_view: The virtual machine instance view.
4343
:vartype instance_view:
44-
~azure.mgmt.compute.v2017_12_01.models.VirtualMachineInstanceView
44+
~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceView
4545
:param hardware_profile: Specifies the hardware settings for the virtual
4646
machine.
4747
:type hardware_profile:
@@ -123,7 +123,7 @@ class VirtualMachineScaleSetVM(Resource):
123123
'sku': {'key': 'sku', 'type': 'Sku'},
124124
'latest_model_applied': {'key': 'properties.latestModelApplied', 'type': 'bool'},
125125
'vm_id': {'key': 'properties.vmId', 'type': 'str'},
126-
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineInstanceView'},
126+
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineScaleSetVMInstanceView'},
127127
'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'},
128128
'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'},
129129
'os_profile': {'key': 'properties.osProfile', 'type': 'OSProfile'},

azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_py3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class VirtualMachineScaleSetVM(Resource):
4141
:vartype vm_id: str
4242
:ivar instance_view: The virtual machine instance view.
4343
:vartype instance_view:
44-
~azure.mgmt.compute.v2017_12_01.models.VirtualMachineInstanceView
44+
~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceView
4545
:param hardware_profile: Specifies the hardware settings for the virtual
4646
machine.
4747
:type hardware_profile:
@@ -123,7 +123,7 @@ class VirtualMachineScaleSetVM(Resource):
123123
'sku': {'key': 'sku', 'type': 'Sku'},
124124
'latest_model_applied': {'key': 'properties.latestModelApplied', 'type': 'bool'},
125125
'vm_id': {'key': 'properties.vmId', 'type': 'str'},
126-
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineInstanceView'},
126+
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineScaleSetVMInstanceView'},
127127
'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'},
128128
'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'},
129129
'os_profile': {'key': 'properties.osProfile', 'type': 'OSProfile'},

azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_update.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class VirtualMachineUpdate(UpdateResource):
6464
:vartype provisioning_state: str
6565
:ivar instance_view: The virtual machine instance view.
6666
:vartype instance_view:
67-
~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceView
67+
~azure.mgmt.compute.v2017_12_01.models.VirtualMachineInstanceView
6868
:param license_type: Specifies that the image or disk that is being used
6969
was licensed on-premises. This element is only used for images that
7070
contain the Windows Server operating system. <br><br> Possible values are:
@@ -102,7 +102,7 @@ class VirtualMachineUpdate(UpdateResource):
102102
'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'},
103103
'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'},
104104
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
105-
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineScaleSetVMInstanceView'},
105+
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineInstanceView'},
106106
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
107107
'vm_id': {'key': 'properties.vmId', 'type': 'str'},
108108
'identity': {'key': 'identity', 'type': 'VirtualMachineIdentity'},

azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_update_py3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class VirtualMachineUpdate(UpdateResource):
6464
:vartype provisioning_state: str
6565
:ivar instance_view: The virtual machine instance view.
6666
:vartype instance_view:
67-
~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceView
67+
~azure.mgmt.compute.v2017_12_01.models.VirtualMachineInstanceView
6868
:param license_type: Specifies that the image or disk that is being used
6969
was licensed on-premises. This element is only used for images that
7070
contain the Windows Server operating system. <br><br> Possible values are:
@@ -102,7 +102,7 @@ class VirtualMachineUpdate(UpdateResource):
102102
'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'},
103103
'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'},
104104
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
105-
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineScaleSetVMInstanceView'},
105+
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineInstanceView'},
106106
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
107107
'vm_id': {'key': 'properties.vmId', 'type': 'str'},
108108
'identity': {'key': 'identity', 'type': 'VirtualMachineIdentity'},

azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/access_uri.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class AccessUri(Model):
2727
}
2828

2929
_attribute_map = {
30-
'access_sas': {'key': 'properties.output.accessSAS', 'type': 'str'},
30+
'access_sas': {'key': 'accessSAS', 'type': 'str'},
3131
}
3232

3333
def __init__(self, **kwargs):

azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/access_uri_py3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class AccessUri(Model):
2727
}
2828

2929
_attribute_map = {
30-
'access_sas': {'key': 'properties.output.accessSAS', 'type': 'str'},
30+
'access_sas': {'key': 'accessSAS', 'type': 'str'},
3131
}
3232

3333
def __init__(self, **kwargs) -> None:

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_publishing_profile_base.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,18 @@
1515
class GalleryArtifactPublishingProfileBase(Model):
1616
"""Describes the basic gallery artifact publishing profile.
1717
18+
All required parameters must be populated in order to send to Azure.
19+
1820
:param regions: The regions where the artifact is going to be published.
1921
:type regions: list[str]
20-
:param source:
22+
:param source: Required.
2123
:type source: ~azure.mgmt.compute.v2018_06_01.models.GalleryArtifactSource
2224
"""
2325

26+
_validation = {
27+
'source': {'required': True},
28+
}
29+
2430
_attribute_map = {
2531
'regions': {'key': 'regions', 'type': '[str]'},
2632
'source': {'key': 'source', 'type': 'GalleryArtifactSource'},

0 commit comments

Comments
 (0)