From 532dba70a9d991a4799b47438fd411dbd42b12b4 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 28 Sep 2018 16:47:57 +0000 Subject: [PATCH] Generated from 4927713e353793ac5f22f0c0954e51ba5623034e Added VirtualMachineImageProperties.AutomaticOSUpgradeProperties in GET VMImageVersion API Added VirtualMachineImageProperties.AutomaticOSUpgradeProperties in GET VMImageVersion API --- .../compute/v2018_10_01/models/__init__.py | 3 ++ .../models/automatic_os_upgrade_properties.py | 35 +++++++++++++++++++ .../automatic_os_upgrade_properties_py3.py | 35 +++++++++++++++++++ .../models/virtual_machine_image.py | 5 +++ .../models/virtual_machine_image_py3.py | 7 +++- 5 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/automatic_os_upgrade_properties.py create mode 100644 azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/automatic_os_upgrade_properties_py3.py diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/__init__.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/__init__.py index 6cd083bb87a5..d9f30207ad02 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/__init__.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/__init__.py @@ -26,6 +26,7 @@ from .purchase_plan_py3 import PurchasePlan from .os_disk_image_py3 import OSDiskImage from .data_disk_image_py3 import DataDiskImage + from .automatic_os_upgrade_properties_py3 import AutomaticOSUpgradeProperties from .virtual_machine_image_py3 import VirtualMachineImage from .usage_name_py3 import UsageName from .usage_py3 import Usage @@ -157,6 +158,7 @@ from .purchase_plan import PurchasePlan from .os_disk_image import OSDiskImage from .data_disk_image import DataDiskImage + from .automatic_os_upgrade_properties import AutomaticOSUpgradeProperties from .virtual_machine_image import VirtualMachineImage from .usage_name import UsageName from .usage import Usage @@ -329,6 +331,7 @@ 'PurchasePlan', 'OSDiskImage', 'DataDiskImage', + 'AutomaticOSUpgradeProperties', 'VirtualMachineImage', 'UsageName', 'Usage', diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/automatic_os_upgrade_properties.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/automatic_os_upgrade_properties.py new file mode 100644 index 000000000000..b0a11290b7d3 --- /dev/null +++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/automatic_os_upgrade_properties.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutomaticOSUpgradeProperties(Model): + """Describes automatic OS upgrade properties on the image. + + All required parameters must be populated in order to send to Azure. + + :param automatic_os_upgrade_supported: Required. Specifies whether + automatic OS upgrade is supported on the image. + :type automatic_os_upgrade_supported: bool + """ + + _validation = { + 'automatic_os_upgrade_supported': {'required': True}, + } + + _attribute_map = { + 'automatic_os_upgrade_supported': {'key': 'automaticOSUpgradeSupported', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(AutomaticOSUpgradeProperties, self).__init__(**kwargs) + self.automatic_os_upgrade_supported = kwargs.get('automatic_os_upgrade_supported', None) diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/automatic_os_upgrade_properties_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/automatic_os_upgrade_properties_py3.py new file mode 100644 index 000000000000..0bf3f1f57628 --- /dev/null +++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/automatic_os_upgrade_properties_py3.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutomaticOSUpgradeProperties(Model): + """Describes automatic OS upgrade properties on the image. + + All required parameters must be populated in order to send to Azure. + + :param automatic_os_upgrade_supported: Required. Specifies whether + automatic OS upgrade is supported on the image. + :type automatic_os_upgrade_supported: bool + """ + + _validation = { + 'automatic_os_upgrade_supported': {'required': True}, + } + + _attribute_map = { + 'automatic_os_upgrade_supported': {'key': 'automaticOSUpgradeSupported', 'type': 'bool'}, + } + + def __init__(self, *, automatic_os_upgrade_supported: bool, **kwargs) -> None: + super(AutomaticOSUpgradeProperties, self).__init__(**kwargs) + self.automatic_os_upgrade_supported = automatic_os_upgrade_supported diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/virtual_machine_image.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/virtual_machine_image.py index c520d4d0417b..9fba8ad6bd3b 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/virtual_machine_image.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/virtual_machine_image.py @@ -35,6 +35,9 @@ class VirtualMachineImage(VirtualMachineImageResource): :param data_disk_images: :type data_disk_images: list[~azure.mgmt.compute.v2018_10_01.models.DataDiskImage] + :param automatic_os_upgrade_properties: + :type automatic_os_upgrade_properties: + ~azure.mgmt.compute.v2018_10_01.models.AutomaticOSUpgradeProperties """ _validation = { @@ -50,6 +53,7 @@ class VirtualMachineImage(VirtualMachineImageResource): 'plan': {'key': 'properties.plan', 'type': 'PurchasePlan'}, 'os_disk_image': {'key': 'properties.osDiskImage', 'type': 'OSDiskImage'}, 'data_disk_images': {'key': 'properties.dataDiskImages', 'type': '[DataDiskImage]'}, + 'automatic_os_upgrade_properties': {'key': 'properties.automaticOSUpgradeProperties', 'type': 'AutomaticOSUpgradeProperties'}, } def __init__(self, **kwargs): @@ -57,3 +61,4 @@ def __init__(self, **kwargs): self.plan = kwargs.get('plan', None) self.os_disk_image = kwargs.get('os_disk_image', None) self.data_disk_images = kwargs.get('data_disk_images', None) + self.automatic_os_upgrade_properties = kwargs.get('automatic_os_upgrade_properties', None) diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/virtual_machine_image_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/virtual_machine_image_py3.py index 18e7313d4cf4..8a6bf2baea0e 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/virtual_machine_image_py3.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/virtual_machine_image_py3.py @@ -35,6 +35,9 @@ class VirtualMachineImage(VirtualMachineImageResource): :param data_disk_images: :type data_disk_images: list[~azure.mgmt.compute.v2018_10_01.models.DataDiskImage] + :param automatic_os_upgrade_properties: + :type automatic_os_upgrade_properties: + ~azure.mgmt.compute.v2018_10_01.models.AutomaticOSUpgradeProperties """ _validation = { @@ -50,10 +53,12 @@ class VirtualMachineImage(VirtualMachineImageResource): 'plan': {'key': 'properties.plan', 'type': 'PurchasePlan'}, 'os_disk_image': {'key': 'properties.osDiskImage', 'type': 'OSDiskImage'}, 'data_disk_images': {'key': 'properties.dataDiskImages', 'type': '[DataDiskImage]'}, + 'automatic_os_upgrade_properties': {'key': 'properties.automaticOSUpgradeProperties', 'type': 'AutomaticOSUpgradeProperties'}, } - def __init__(self, *, name: str, location: str, id: str=None, tags=None, plan=None, os_disk_image=None, data_disk_images=None, **kwargs) -> None: + def __init__(self, *, name: str, location: str, id: str=None, tags=None, plan=None, os_disk_image=None, data_disk_images=None, automatic_os_upgrade_properties=None, **kwargs) -> None: super(VirtualMachineImage, self).__init__(id=id, name=name, location=location, tags=tags, **kwargs) self.plan = plan self.os_disk_image = os_disk_image self.data_disk_images = data_disk_images + self.automatic_os_upgrade_properties = automatic_os_upgrade_properties