From 08dafd2fca2afee24210ad93aebe86fb4f07ca32 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 23 Oct 2018 22:50:56 +0000 Subject: [PATCH] Generated from 0bc254b75a8f859c2046c4a7710572d90b1262db fix description --- .../azure/mgmt/automation/models/__init__.py | 12 +++++++ .../models/azure_query_properties.py | 8 ++--- .../models/azure_query_properties_py3.py | 10 +++--- ...pdate_configuration_run_task_properties.py | 36 +++++++++++++++++++ ...e_configuration_run_task_properties_py3.py | 36 +++++++++++++++++++ .../softare_update_configuration_run_tasks.py | 34 ++++++++++++++++++ ...tare_update_configuration_run_tasks_py3.py | 34 ++++++++++++++++++ .../models/software_update_configuration.py | 13 ++++--- ...ftware_update_configuration_machine_run.py | 4 +++ ...re_update_configuration_machine_run_py3.py | 6 +++- .../software_update_configuration_py3.py | 15 +++++--- .../software_update_configuration_run.py | 13 ++++--- .../software_update_configuration_run_py3.py | 15 +++++--- .../software_update_configuration_tasks.py | 32 +++++++++++++++++ ...software_update_configuration_tasks_py3.py | 32 +++++++++++++++++ .../mgmt/automation/models/task_properties.py | 32 +++++++++++++++++ .../automation/models/task_properties_py3.py | 32 +++++++++++++++++ ...re_update_configuration_runs_operations.py | 2 +- 18 files changed, 337 insertions(+), 29 deletions(-) create mode 100644 azure-mgmt-automation/azure/mgmt/automation/models/softare_update_configuration_run_task_properties.py create mode 100644 azure-mgmt-automation/azure/mgmt/automation/models/softare_update_configuration_run_task_properties_py3.py create mode 100644 azure-mgmt-automation/azure/mgmt/automation/models/softare_update_configuration_run_tasks.py create mode 100644 azure-mgmt-automation/azure/mgmt/automation/models/softare_update_configuration_run_tasks_py3.py create mode 100644 azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_tasks.py create mode 100644 azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_tasks_py3.py create mode 100644 azure-mgmt-automation/azure/mgmt/automation/models/task_properties.py create mode 100644 azure-mgmt-automation/azure/mgmt/automation/models/task_properties_py3.py diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/__init__.py b/azure-mgmt-automation/azure/mgmt/automation/models/__init__.py index a7e86f06a02d..4098e7fb554d 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/__init__.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/__init__.py @@ -84,11 +84,15 @@ from .azure_query_properties_py3 import AzureQueryProperties from .target_properties_py3 import TargetProperties from .update_configuration_py3 import UpdateConfiguration + from .task_properties_py3 import TaskProperties + from .software_update_configuration_tasks_py3 import SoftwareUpdateConfigurationTasks from .software_update_configuration_py3 import SoftwareUpdateConfiguration from .collection_item_update_configuration_py3 import CollectionItemUpdateConfiguration from .software_update_configuration_collection_item_py3 import SoftwareUpdateConfigurationCollectionItem from .software_update_configuration_list_result_py3 import SoftwareUpdateConfigurationListResult from .update_configuration_navigation_py3 import UpdateConfigurationNavigation + from .softare_update_configuration_run_task_properties_py3 import SoftareUpdateConfigurationRunTaskProperties + from .softare_update_configuration_run_tasks_py3 import SoftareUpdateConfigurationRunTasks from .software_update_configuration_run_py3 import SoftwareUpdateConfigurationRun from .software_update_configuration_run_list_result_py3 import SoftwareUpdateConfigurationRunListResult from .job_navigation_py3 import JobNavigation @@ -215,11 +219,15 @@ from .azure_query_properties import AzureQueryProperties from .target_properties import TargetProperties from .update_configuration import UpdateConfiguration + from .task_properties import TaskProperties + from .software_update_configuration_tasks import SoftwareUpdateConfigurationTasks from .software_update_configuration import SoftwareUpdateConfiguration from .collection_item_update_configuration import CollectionItemUpdateConfiguration from .software_update_configuration_collection_item import SoftwareUpdateConfigurationCollectionItem from .software_update_configuration_list_result import SoftwareUpdateConfigurationListResult from .update_configuration_navigation import UpdateConfigurationNavigation + from .softare_update_configuration_run_task_properties import SoftareUpdateConfigurationRunTaskProperties + from .softare_update_configuration_run_tasks import SoftareUpdateConfigurationRunTasks from .software_update_configuration_run import SoftwareUpdateConfigurationRun from .software_update_configuration_run_list_result import SoftwareUpdateConfigurationRunListResult from .job_navigation import JobNavigation @@ -406,11 +414,15 @@ 'AzureQueryProperties', 'TargetProperties', 'UpdateConfiguration', + 'TaskProperties', + 'SoftwareUpdateConfigurationTasks', 'SoftwareUpdateConfiguration', 'CollectionItemUpdateConfiguration', 'SoftwareUpdateConfigurationCollectionItem', 'SoftwareUpdateConfigurationListResult', 'UpdateConfigurationNavigation', + 'SoftareUpdateConfigurationRunTaskProperties', + 'SoftareUpdateConfigurationRunTasks', 'SoftwareUpdateConfigurationRun', 'SoftwareUpdateConfigurationRunListResult', 'JobNavigation', diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/azure_query_properties.py b/azure-mgmt-automation/azure/mgmt/automation/models/azure_query_properties.py index cd8526e0f5f4..ce71d53e4983 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/azure_query_properties.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/azure_query_properties.py @@ -17,20 +17,20 @@ class AzureQueryProperties(Model): :param scope: List of Subscription or Resource Group ARM Ids. :type scope: list[str] - :param location: List of locations to scope the query to. - :type location: list[str] + :param locations: List of locations to scope the query to. + :type locations: list[str] :param tag_settings: Tag settings for the VM. :type tag_settings: ~azure.mgmt.automation.models.TagSettingsProperties """ _attribute_map = { 'scope': {'key': 'scope', 'type': '[str]'}, - 'location': {'key': 'location', 'type': '[str]'}, + 'locations': {'key': 'locations', 'type': '[str]'}, 'tag_settings': {'key': 'tagSettings', 'type': 'TagSettingsProperties'}, } def __init__(self, **kwargs): super(AzureQueryProperties, self).__init__(**kwargs) self.scope = kwargs.get('scope', None) - self.location = kwargs.get('location', None) + self.locations = kwargs.get('locations', None) self.tag_settings = kwargs.get('tag_settings', None) diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/azure_query_properties_py3.py b/azure-mgmt-automation/azure/mgmt/automation/models/azure_query_properties_py3.py index 1e12644f7f54..b600bb0fe753 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/azure_query_properties_py3.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/azure_query_properties_py3.py @@ -17,20 +17,20 @@ class AzureQueryProperties(Model): :param scope: List of Subscription or Resource Group ARM Ids. :type scope: list[str] - :param location: List of locations to scope the query to. - :type location: list[str] + :param locations: List of locations to scope the query to. + :type locations: list[str] :param tag_settings: Tag settings for the VM. :type tag_settings: ~azure.mgmt.automation.models.TagSettingsProperties """ _attribute_map = { 'scope': {'key': 'scope', 'type': '[str]'}, - 'location': {'key': 'location', 'type': '[str]'}, + 'locations': {'key': 'locations', 'type': '[str]'}, 'tag_settings': {'key': 'tagSettings', 'type': 'TagSettingsProperties'}, } - def __init__(self, *, scope=None, location=None, tag_settings=None, **kwargs) -> None: + def __init__(self, *, scope=None, locations=None, tag_settings=None, **kwargs) -> None: super(AzureQueryProperties, self).__init__(**kwargs) self.scope = scope - self.location = location + self.locations = locations self.tag_settings = tag_settings diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/softare_update_configuration_run_task_properties.py b/azure-mgmt-automation/azure/mgmt/automation/models/softare_update_configuration_run_task_properties.py new file mode 100644 index 000000000000..4d1353965f11 --- /dev/null +++ b/azure-mgmt-automation/azure/mgmt/automation/models/softare_update_configuration_run_task_properties.py @@ -0,0 +1,36 @@ +# 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 SoftareUpdateConfigurationRunTaskProperties(Model): + """Task properties of the software update configuration. + + :param status: The status of the task. + :type status: str + :param source: The name of the source of the task. + :type source: str + :param job_id: The job id of the task. + :type job_id: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SoftareUpdateConfigurationRunTaskProperties, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + self.source = kwargs.get('source', None) + self.job_id = kwargs.get('job_id', None) diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/softare_update_configuration_run_task_properties_py3.py b/azure-mgmt-automation/azure/mgmt/automation/models/softare_update_configuration_run_task_properties_py3.py new file mode 100644 index 000000000000..68e8d65d46d7 --- /dev/null +++ b/azure-mgmt-automation/azure/mgmt/automation/models/softare_update_configuration_run_task_properties_py3.py @@ -0,0 +1,36 @@ +# 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 SoftareUpdateConfigurationRunTaskProperties(Model): + """Task properties of the software update configuration. + + :param status: The status of the task. + :type status: str + :param source: The name of the source of the task. + :type source: str + :param job_id: The job id of the task. + :type job_id: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + } + + def __init__(self, *, status: str=None, source: str=None, job_id: str=None, **kwargs) -> None: + super(SoftareUpdateConfigurationRunTaskProperties, self).__init__(**kwargs) + self.status = status + self.source = source + self.job_id = job_id diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/softare_update_configuration_run_tasks.py b/azure-mgmt-automation/azure/mgmt/automation/models/softare_update_configuration_run_tasks.py new file mode 100644 index 000000000000..6c498c985b96 --- /dev/null +++ b/azure-mgmt-automation/azure/mgmt/automation/models/softare_update_configuration_run_tasks.py @@ -0,0 +1,34 @@ +# 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 SoftareUpdateConfigurationRunTasks(Model): + """Software update configuration run tasks model. + + :param pre_task: Pre task properties. + :type pre_task: + ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties + :param post_task: Post task properties. + :type post_task: + ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties + """ + + _attribute_map = { + 'pre_task': {'key': 'preTask', 'type': 'SoftareUpdateConfigurationRunTaskProperties'}, + 'post_task': {'key': 'postTask', 'type': 'SoftareUpdateConfigurationRunTaskProperties'}, + } + + def __init__(self, **kwargs): + super(SoftareUpdateConfigurationRunTasks, self).__init__(**kwargs) + self.pre_task = kwargs.get('pre_task', None) + self.post_task = kwargs.get('post_task', None) diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/softare_update_configuration_run_tasks_py3.py b/azure-mgmt-automation/azure/mgmt/automation/models/softare_update_configuration_run_tasks_py3.py new file mode 100644 index 000000000000..a01a566996b5 --- /dev/null +++ b/azure-mgmt-automation/azure/mgmt/automation/models/softare_update_configuration_run_tasks_py3.py @@ -0,0 +1,34 @@ +# 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 SoftareUpdateConfigurationRunTasks(Model): + """Software update configuration run tasks model. + + :param pre_task: Pre task properties. + :type pre_task: + ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties + :param post_task: Post task properties. + :type post_task: + ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties + """ + + _attribute_map = { + 'pre_task': {'key': 'preTask', 'type': 'SoftareUpdateConfigurationRunTaskProperties'}, + 'post_task': {'key': 'postTask', 'type': 'SoftareUpdateConfigurationRunTaskProperties'}, + } + + def __init__(self, *, pre_task=None, post_task=None, **kwargs) -> None: + super(SoftareUpdateConfigurationRunTasks, self).__init__(**kwargs) + self.pre_task = pre_task + self.post_task = post_task diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration.py b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration.py index b2e5eec93568..ace7dc3f7dd6 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration.py @@ -36,19 +36,22 @@ class SoftwareUpdateConfiguration(Model): :ivar provisioning_state: Provisioning state for the software update configuration, which only appears in the response. :vartype provisioning_state: str - :param error: detailes of provisioning error + :param error: Details of provisioning error :type error: ~azure.mgmt.automation.models.ErrorResponse - :ivar creation_time: Creation time of theresource, which only appears in + :ivar creation_time: Creation time of the resource, which only appears in the response. :vartype creation_time: datetime - :ivar created_by: createdBy property, which only appears in the response. + :ivar created_by: CreatedBy property, which only appears in the response. :vartype created_by: str :ivar last_modified_time: Last time resource was modified, which only appears in the response. :vartype last_modified_time: datetime - :ivar last_modified_by: lastModifiedBy property, which only appears in the + :ivar last_modified_by: LastModifiedBy property, which only appears in the response. :vartype last_modified_by: str + :param tasks: Tasks information for the Software update configuration. + :type tasks: + ~azure.mgmt.automation.models.SoftwareUpdateConfigurationTasks """ _validation = { @@ -76,6 +79,7 @@ class SoftwareUpdateConfiguration(Model): 'created_by': {'key': 'properties.createdBy', 'type': 'str'}, 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, 'last_modified_by': {'key': 'properties.lastModifiedBy', 'type': 'str'}, + 'tasks': {'key': 'properties.tasks', 'type': 'SoftwareUpdateConfigurationTasks'}, } def __init__(self, **kwargs): @@ -91,3 +95,4 @@ def __init__(self, **kwargs): self.created_by = None self.last_modified_time = None self.last_modified_by = None + self.tasks = kwargs.get('tasks', None) diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_machine_run.py b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_machine_run.py index 5307f22d1d3c..c1ef244cdfdc 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_machine_run.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_machine_run.py @@ -63,6 +63,8 @@ class SoftwareUpdateConfigurationMachineRun(Model): :ivar last_modified_by: lastModifiedBy property, which only appears in the response. :vartype last_modified_by: str + :param error: detailes of provisioning error + :type error: ~azure.mgmt.automation.models.ErrorResponse """ _validation = { @@ -101,6 +103,7 @@ class SoftwareUpdateConfigurationMachineRun(Model): 'created_by': {'key': 'properties.createdBy', 'type': 'str'}, 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, 'last_modified_by': {'key': 'properties.lastModifiedBy', 'type': 'str'}, + 'error': {'key': 'properties.error', 'type': 'ErrorResponse'}, } def __init__(self, **kwargs): @@ -122,3 +125,4 @@ def __init__(self, **kwargs): self.created_by = None self.last_modified_time = None self.last_modified_by = None + self.error = kwargs.get('error', None) diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_machine_run_py3.py b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_machine_run_py3.py index 55927e6f7590..4cbf36f473f3 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_machine_run_py3.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_machine_run_py3.py @@ -63,6 +63,8 @@ class SoftwareUpdateConfigurationMachineRun(Model): :ivar last_modified_by: lastModifiedBy property, which only appears in the response. :vartype last_modified_by: str + :param error: detailes of provisioning error + :type error: ~azure.mgmt.automation.models.ErrorResponse """ _validation = { @@ -101,9 +103,10 @@ class SoftwareUpdateConfigurationMachineRun(Model): 'created_by': {'key': 'properties.createdBy', 'type': 'str'}, 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, 'last_modified_by': {'key': 'properties.lastModifiedBy', 'type': 'str'}, + 'error': {'key': 'properties.error', 'type': 'ErrorResponse'}, } - def __init__(self, *, software_update_configuration=None, job=None, **kwargs) -> None: + def __init__(self, *, software_update_configuration=None, job=None, error=None, **kwargs) -> None: super(SoftwareUpdateConfigurationMachineRun, self).__init__(**kwargs) self.name = None self.id = None @@ -122,3 +125,4 @@ def __init__(self, *, software_update_configuration=None, job=None, **kwargs) -> self.created_by = None self.last_modified_time = None self.last_modified_by = None + self.error = error diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_py3.py b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_py3.py index 9c5b28ff2cb5..443fd1507e2f 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_py3.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_py3.py @@ -36,19 +36,22 @@ class SoftwareUpdateConfiguration(Model): :ivar provisioning_state: Provisioning state for the software update configuration, which only appears in the response. :vartype provisioning_state: str - :param error: detailes of provisioning error + :param error: Details of provisioning error :type error: ~azure.mgmt.automation.models.ErrorResponse - :ivar creation_time: Creation time of theresource, which only appears in + :ivar creation_time: Creation time of the resource, which only appears in the response. :vartype creation_time: datetime - :ivar created_by: createdBy property, which only appears in the response. + :ivar created_by: CreatedBy property, which only appears in the response. :vartype created_by: str :ivar last_modified_time: Last time resource was modified, which only appears in the response. :vartype last_modified_time: datetime - :ivar last_modified_by: lastModifiedBy property, which only appears in the + :ivar last_modified_by: LastModifiedBy property, which only appears in the response. :vartype last_modified_by: str + :param tasks: Tasks information for the Software update configuration. + :type tasks: + ~azure.mgmt.automation.models.SoftwareUpdateConfigurationTasks """ _validation = { @@ -76,9 +79,10 @@ class SoftwareUpdateConfiguration(Model): 'created_by': {'key': 'properties.createdBy', 'type': 'str'}, 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, 'last_modified_by': {'key': 'properties.lastModifiedBy', 'type': 'str'}, + 'tasks': {'key': 'properties.tasks', 'type': 'SoftwareUpdateConfigurationTasks'}, } - def __init__(self, *, update_configuration, schedule_info, error=None, **kwargs) -> None: + def __init__(self, *, update_configuration, schedule_info, error=None, tasks=None, **kwargs) -> None: super(SoftwareUpdateConfiguration, self).__init__(**kwargs) self.name = None self.id = None @@ -91,3 +95,4 @@ def __init__(self, *, update_configuration, schedule_info, error=None, **kwargs) self.created_by = None self.last_modified_time = None self.last_modified_by = None + self.tasks = tasks diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_run.py b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_run.py index 71c188478ea2..fb6741be8a71 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_run.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_run.py @@ -28,13 +28,13 @@ class SoftwareUpdateConfigurationRun(Model): ~azure.mgmt.automation.models.UpdateConfigurationNavigation :ivar status: Status of the software update configuration run. :vartype status: str - :ivar configured_duration: configured duration for the software update + :ivar configured_duration: Configured duration for the software update configuration run. :vartype configured_duration: str :ivar os_type: Operating system target of the software update configuration triggered this run :vartype os_type: str - :ivar start_time: Etart time of the software update configuration run. + :ivar start_time: Start time of the software update configuration run. :vartype start_time: datetime :ivar end_time: End time of the software update configuration run. :vartype end_time: datetime @@ -46,14 +46,17 @@ class SoftwareUpdateConfigurationRun(Model): :ivar creation_time: Creation time of theresource, which only appears in the response. :vartype creation_time: datetime - :ivar created_by: createdBy property, which only appears in the response. + :ivar created_by: CreatedBy property, which only appears in the response. :vartype created_by: str :ivar last_modified_time: Last time resource was modified, which only appears in the response. :vartype last_modified_time: datetime - :ivar last_modified_by: lastModifiedBy property, which only appears in the + :ivar last_modified_by: LastModifiedBy property, which only appears in the response. :vartype last_modified_by: str + :param tasks: Software update configuration tasks triggered in this run + :type tasks: + ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTasks """ _validation = { @@ -87,6 +90,7 @@ class SoftwareUpdateConfigurationRun(Model): 'created_by': {'key': 'properties.createdBy', 'type': 'str'}, 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, 'last_modified_by': {'key': 'properties.lastModifiedBy', 'type': 'str'}, + 'tasks': {'key': 'properties.tasks', 'type': 'SoftareUpdateConfigurationRunTasks'}, } def __init__(self, **kwargs): @@ -105,3 +109,4 @@ def __init__(self, **kwargs): self.created_by = None self.last_modified_time = None self.last_modified_by = None + self.tasks = kwargs.get('tasks', None) diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_run_py3.py b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_run_py3.py index e2ed13d8cc76..031e7e26689d 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_run_py3.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_run_py3.py @@ -28,13 +28,13 @@ class SoftwareUpdateConfigurationRun(Model): ~azure.mgmt.automation.models.UpdateConfigurationNavigation :ivar status: Status of the software update configuration run. :vartype status: str - :ivar configured_duration: configured duration for the software update + :ivar configured_duration: Configured duration for the software update configuration run. :vartype configured_duration: str :ivar os_type: Operating system target of the software update configuration triggered this run :vartype os_type: str - :ivar start_time: Etart time of the software update configuration run. + :ivar start_time: Start time of the software update configuration run. :vartype start_time: datetime :ivar end_time: End time of the software update configuration run. :vartype end_time: datetime @@ -46,14 +46,17 @@ class SoftwareUpdateConfigurationRun(Model): :ivar creation_time: Creation time of theresource, which only appears in the response. :vartype creation_time: datetime - :ivar created_by: createdBy property, which only appears in the response. + :ivar created_by: CreatedBy property, which only appears in the response. :vartype created_by: str :ivar last_modified_time: Last time resource was modified, which only appears in the response. :vartype last_modified_time: datetime - :ivar last_modified_by: lastModifiedBy property, which only appears in the + :ivar last_modified_by: LastModifiedBy property, which only appears in the response. :vartype last_modified_by: str + :param tasks: Software update configuration tasks triggered in this run + :type tasks: + ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTasks """ _validation = { @@ -87,9 +90,10 @@ class SoftwareUpdateConfigurationRun(Model): 'created_by': {'key': 'properties.createdBy', 'type': 'str'}, 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, 'last_modified_by': {'key': 'properties.lastModifiedBy', 'type': 'str'}, + 'tasks': {'key': 'properties.tasks', 'type': 'SoftareUpdateConfigurationRunTasks'}, } - def __init__(self, *, software_update_configuration=None, **kwargs) -> None: + def __init__(self, *, software_update_configuration=None, tasks=None, **kwargs) -> None: super(SoftwareUpdateConfigurationRun, self).__init__(**kwargs) self.name = None self.id = None @@ -105,3 +109,4 @@ def __init__(self, *, software_update_configuration=None, **kwargs) -> None: self.created_by = None self.last_modified_time = None self.last_modified_by = None + self.tasks = tasks diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_tasks.py b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_tasks.py new file mode 100644 index 000000000000..9e6a2db68b4b --- /dev/null +++ b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_tasks.py @@ -0,0 +1,32 @@ +# 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 SoftwareUpdateConfigurationTasks(Model): + """Task properties of the software update configuration. + + :param pre_task: Pre task properties. + :type pre_task: ~azure.mgmt.automation.models.TaskProperties + :param post_task: Post task properties. + :type post_task: ~azure.mgmt.automation.models.TaskProperties + """ + + _attribute_map = { + 'pre_task': {'key': 'preTask', 'type': 'TaskProperties'}, + 'post_task': {'key': 'postTask', 'type': 'TaskProperties'}, + } + + def __init__(self, **kwargs): + super(SoftwareUpdateConfigurationTasks, self).__init__(**kwargs) + self.pre_task = kwargs.get('pre_task', None) + self.post_task = kwargs.get('post_task', None) diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_tasks_py3.py b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_tasks_py3.py new file mode 100644 index 000000000000..a86ae40781b1 --- /dev/null +++ b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_tasks_py3.py @@ -0,0 +1,32 @@ +# 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 SoftwareUpdateConfigurationTasks(Model): + """Task properties of the software update configuration. + + :param pre_task: Pre task properties. + :type pre_task: ~azure.mgmt.automation.models.TaskProperties + :param post_task: Post task properties. + :type post_task: ~azure.mgmt.automation.models.TaskProperties + """ + + _attribute_map = { + 'pre_task': {'key': 'preTask', 'type': 'TaskProperties'}, + 'post_task': {'key': 'postTask', 'type': 'TaskProperties'}, + } + + def __init__(self, *, pre_task=None, post_task=None, **kwargs) -> None: + super(SoftwareUpdateConfigurationTasks, self).__init__(**kwargs) + self.pre_task = pre_task + self.post_task = post_task diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/task_properties.py b/azure-mgmt-automation/azure/mgmt/automation/models/task_properties.py new file mode 100644 index 000000000000..7f169e37defe --- /dev/null +++ b/azure-mgmt-automation/azure/mgmt/automation/models/task_properties.py @@ -0,0 +1,32 @@ +# 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 TaskProperties(Model): + """Task properties of the software update configuration. + + :param parameters: Gets or sets the parameters of the task. + :type parameters: dict[str, str] + :param source: Gets or sets the name of the runbook. + :type source: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'source': {'key': 'source', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TaskProperties, self).__init__(**kwargs) + self.parameters = kwargs.get('parameters', None) + self.source = kwargs.get('source', None) diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/task_properties_py3.py b/azure-mgmt-automation/azure/mgmt/automation/models/task_properties_py3.py new file mode 100644 index 000000000000..17ad507fd469 --- /dev/null +++ b/azure-mgmt-automation/azure/mgmt/automation/models/task_properties_py3.py @@ -0,0 +1,32 @@ +# 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 TaskProperties(Model): + """Task properties of the software update configuration. + + :param parameters: Gets or sets the parameters of the task. + :type parameters: dict[str, str] + :param source: Gets or sets the name of the runbook. + :type source: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'source': {'key': 'source', 'type': 'str'}, + } + + def __init__(self, *, parameters=None, source: str=None, **kwargs) -> None: + super(TaskProperties, self).__init__(**kwargs) + self.parameters = parameters + self.source = source diff --git a/azure-mgmt-automation/azure/mgmt/automation/operations/software_update_configuration_runs_operations.py b/azure-mgmt-automation/azure/mgmt/automation/operations/software_update_configuration_runs_operations.py index 7ba4e735a516..0f87349f0cb0 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/operations/software_update_configuration_runs_operations.py +++ b/azure-mgmt-automation/azure/mgmt/automation/operations/software_update_configuration_runs_operations.py @@ -121,7 +121,7 @@ def list( 'properties/startTime', and 'properties/softwareUpdateConfiguration/name' :type filter: str - :param skip: number of entries you skip before returning results + :param skip: Number of entries you skip before returning results :type skip: str :param top: Maximum number of entries returned in the results collection