From c1e1a5d82aaff942377078612bf61df4d1a5cbe3 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 19 Oct 2018 23:33:15 +0000 Subject: [PATCH 1/6] Generated from 1c1dddf99919adb6b5507a57163ab9597dc1962a Swagger change for Pre and post script --- .../azure/mgmt/automation/models/__init__.py | 12 +++++++ ...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 | 16 ++++----- ...ftware_update_configuration_machine_run.py | 4 +++ ...re_update_configuration_machine_run_py3.py | 6 +++- .../software_update_configuration_py3.py | 18 +++++----- .../software_update_configuration_run.py | 5 +++ .../software_update_configuration_run_py3.py | 7 +++- .../mgmt/automation/models/task_properties.py | 32 +++++++++++++++++ .../automation/models/task_properties_py3.py | 32 +++++++++++++++++ .../automation/models/tasks_properties.py | 32 +++++++++++++++++ .../automation/models/tasks_properties_py3.py | 32 +++++++++++++++++ 15 files changed, 317 insertions(+), 19 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/task_properties.py create mode 100644 azure-mgmt-automation/azure/mgmt/automation/models/task_properties_py3.py create mode 100644 azure-mgmt-automation/azure/mgmt/automation/models/tasks_properties.py create mode 100644 azure-mgmt-automation/azure/mgmt/automation/models/tasks_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..4a320b574dd4 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 .tasks_properties_py3 import TasksProperties 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 .tasks_properties import TasksProperties 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', + 'TasksProperties', 'SoftwareUpdateConfiguration', 'CollectionItemUpdateConfiguration', 'SoftwareUpdateConfigurationCollectionItem', 'SoftwareUpdateConfigurationListResult', 'UpdateConfigurationNavigation', + 'SoftareUpdateConfigurationRunTaskProperties', + 'SoftareUpdateConfigurationRunTasks', 'SoftwareUpdateConfigurationRun', 'SoftwareUpdateConfigurationRunListResult', 'JobNavigation', 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..f9935fa0aaeb --- /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..fe82f4c35b9e --- /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..3c638d6c64b0 --- /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 object + :type pre_task: + ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties + :param post_task: Post task object + :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..b3c44b4e83d8 --- /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 object + :type pre_task: + ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties + :param post_task: Post task object + :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..844f19bf4826 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 @@ -18,20 +18,18 @@ class SoftwareUpdateConfiguration(Model): 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. - :ivar name: Resource name. :vartype name: str :ivar id: Resource Id. :vartype id: str :ivar type: Resource type :vartype type: str - :param update_configuration: Required. update specific properties for the - Software update configuration + :param update_configuration: update specific properties for the Software + update configuration :type update_configuration: ~azure.mgmt.automation.models.UpdateConfiguration - :param schedule_info: Required. Schedule information for the Software - update configuration + :param schedule_info: Schedule information for the Software update + configuration :type schedule_info: ~azure.mgmt.automation.models.ScheduleProperties :ivar provisioning_state: Provisioning state for the software update configuration, which only appears in the response. @@ -49,14 +47,14 @@ class SoftwareUpdateConfiguration(Model): :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.TasksProperties """ _validation = { 'name': {'readonly': True}, 'id': {'readonly': True}, 'type': {'readonly': True}, - 'update_configuration': {'required': True}, - 'schedule_info': {'required': True}, 'provisioning_state': {'readonly': True}, 'creation_time': {'readonly': True}, 'created_by': {'readonly': True}, @@ -76,6 +74,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': 'TasksProperties'}, } def __init__(self, **kwargs): @@ -91,3 +90,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..64a6dfb1b014 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 @@ -18,20 +18,18 @@ class SoftwareUpdateConfiguration(Model): 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. - :ivar name: Resource name. :vartype name: str :ivar id: Resource Id. :vartype id: str :ivar type: Resource type :vartype type: str - :param update_configuration: Required. update specific properties for the - Software update configuration + :param update_configuration: update specific properties for the Software + update configuration :type update_configuration: ~azure.mgmt.automation.models.UpdateConfiguration - :param schedule_info: Required. Schedule information for the Software - update configuration + :param schedule_info: Schedule information for the Software update + configuration :type schedule_info: ~azure.mgmt.automation.models.ScheduleProperties :ivar provisioning_state: Provisioning state for the software update configuration, which only appears in the response. @@ -49,14 +47,14 @@ class SoftwareUpdateConfiguration(Model): :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.TasksProperties """ _validation = { 'name': {'readonly': True}, 'id': {'readonly': True}, 'type': {'readonly': True}, - 'update_configuration': {'required': True}, - 'schedule_info': {'required': True}, 'provisioning_state': {'readonly': True}, 'creation_time': {'readonly': True}, 'created_by': {'readonly': True}, @@ -76,9 +74,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': 'TasksProperties'}, } - def __init__(self, *, update_configuration, schedule_info, error=None, **kwargs) -> None: + def __init__(self, *, update_configuration=None, schedule_info=None, error=None, tasks=None, **kwargs) -> None: super(SoftwareUpdateConfiguration, self).__init__(**kwargs) self.name = None self.id = None @@ -91,3 +90,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..369e1b885491 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 @@ -54,6 +54,9 @@ class SoftwareUpdateConfigurationRun(Model): :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..ce2e4c440272 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 @@ -54,6 +54,9 @@ class SoftwareUpdateConfigurationRun(Model): :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/task_properties.py b/azure-mgmt-automation/azure/mgmt/automation/models/task_properties.py new file mode 100644 index 000000000000..1385167e9279 --- /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..954479cc7ffa --- /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/models/tasks_properties.py b/azure-mgmt-automation/azure/mgmt/automation/models/tasks_properties.py new file mode 100644 index 000000000000..b76bcf79fc8c --- /dev/null +++ b/azure-mgmt-automation/azure/mgmt/automation/models/tasks_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 TasksProperties(Model): + """task properties of the software update configuration. + + :param pre_task: Pre task object + :type pre_task: ~azure.mgmt.automation.models.TaskProperties + :param post_task: Post task object + :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(TasksProperties, 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/tasks_properties_py3.py b/azure-mgmt-automation/azure/mgmt/automation/models/tasks_properties_py3.py new file mode 100644 index 000000000000..4a8f9b6ba259 --- /dev/null +++ b/azure-mgmt-automation/azure/mgmt/automation/models/tasks_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 TasksProperties(Model): + """task properties of the software update configuration. + + :param pre_task: Pre task object + :type pre_task: ~azure.mgmt.automation.models.TaskProperties + :param post_task: Post task object + :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(TasksProperties, self).__init__(**kwargs) + self.pre_task = pre_task + self.post_task = post_task From f285c6dd73b64b0eee4425c9b73e7fe7f82f0626 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 22 Oct 2018 20:13:20 +0000 Subject: [PATCH 2/6] Generated from 0ab8993c8202abd45e54f61082ed13c4cad26e9e fixing the Required filed --- .../models/software_update_configuration.py | 12 ++++++++---- .../models/software_update_configuration_py3.py | 14 +++++++++----- 2 files changed, 17 insertions(+), 9 deletions(-) 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 844f19bf4826..cc94a3cb22dd 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 @@ -18,18 +18,20 @@ class SoftwareUpdateConfiguration(Model): 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. + :ivar name: Resource name. :vartype name: str :ivar id: Resource Id. :vartype id: str :ivar type: Resource type :vartype type: str - :param update_configuration: update specific properties for the Software - update configuration + :param update_configuration: Required. update specific properties for the + Software update configuration :type update_configuration: ~azure.mgmt.automation.models.UpdateConfiguration - :param schedule_info: Schedule information for the Software update - configuration + :param schedule_info: Required. Schedule information for the Software + update configuration :type schedule_info: ~azure.mgmt.automation.models.ScheduleProperties :ivar provisioning_state: Provisioning state for the software update configuration, which only appears in the response. @@ -55,6 +57,8 @@ class SoftwareUpdateConfiguration(Model): 'name': {'readonly': True}, 'id': {'readonly': True}, 'type': {'readonly': True}, + 'update_configuration': {'required': True}, + 'schedule_info': {'required': True}, 'provisioning_state': {'readonly': True}, 'creation_time': {'readonly': True}, 'created_by': {'readonly': True}, 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 64a6dfb1b014..577b0c9278f2 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 @@ -18,18 +18,20 @@ class SoftwareUpdateConfiguration(Model): 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. + :ivar name: Resource name. :vartype name: str :ivar id: Resource Id. :vartype id: str :ivar type: Resource type :vartype type: str - :param update_configuration: update specific properties for the Software - update configuration + :param update_configuration: Required. update specific properties for the + Software update configuration :type update_configuration: ~azure.mgmt.automation.models.UpdateConfiguration - :param schedule_info: Schedule information for the Software update - configuration + :param schedule_info: Required. Schedule information for the Software + update configuration :type schedule_info: ~azure.mgmt.automation.models.ScheduleProperties :ivar provisioning_state: Provisioning state for the software update configuration, which only appears in the response. @@ -55,6 +57,8 @@ class SoftwareUpdateConfiguration(Model): 'name': {'readonly': True}, 'id': {'readonly': True}, 'type': {'readonly': True}, + 'update_configuration': {'required': True}, + 'schedule_info': {'required': True}, 'provisioning_state': {'readonly': True}, 'creation_time': {'readonly': True}, 'created_by': {'readonly': True}, @@ -77,7 +81,7 @@ class SoftwareUpdateConfiguration(Model): 'tasks': {'key': 'properties.tasks', 'type': 'TasksProperties'}, } - def __init__(self, *, update_configuration=None, schedule_info=None, error=None, tasks=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 From 25488cb46bf7e3cdcf719ae7697d509f0748f1a0 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 22 Oct 2018 21:43:06 +0000 Subject: [PATCH 3/6] Generated from 10c3dc5bd25bd2790fe68a913028082c3f6dbcce changing the capitalization on the description --- ...softare_update_configuration_run_task_properties.py | 2 +- ...are_update_configuration_run_task_properties_py3.py | 2 +- .../models/softare_update_configuration_run_tasks.py | 4 ++-- .../softare_update_configuration_run_tasks_py3.py | 4 ++-- .../automation/models/software_update_configuration.py | 10 +++++----- .../models/software_update_configuration_py3.py | 10 +++++----- .../models/software_update_configuration_run.py | 10 +++++----- .../models/software_update_configuration_run_py3.py | 10 +++++----- .../azure/mgmt/automation/models/task_properties.py | 2 +- .../mgmt/automation/models/task_properties_py3.py | 2 +- .../azure/mgmt/automation/models/tasks_properties.py | 6 +++--- .../mgmt/automation/models/tasks_properties_py3.py | 6 +++--- .../software_update_configuration_runs_operations.py | 2 +- 13 files changed, 35 insertions(+), 35 deletions(-) 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 index f9935fa0aaeb..4d1353965f11 100644 --- 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 @@ -13,7 +13,7 @@ class SoftareUpdateConfigurationRunTaskProperties(Model): - """task properties of the software update configuration. + """Task properties of the software update configuration. :param status: The status of the task. :type status: str 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 index fe82f4c35b9e..68e8d65d46d7 100644 --- 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 @@ -13,7 +13,7 @@ class SoftareUpdateConfigurationRunTaskProperties(Model): - """task properties of the software update configuration. + """Task properties of the software update configuration. :param status: The status of the task. :type status: str 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 index 3c638d6c64b0..8b77d06adb56 100644 --- 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 @@ -15,10 +15,10 @@ class SoftareUpdateConfigurationRunTasks(Model): """Software update configuration run tasks model. - :param pre_task: Pre task object + :param pre_task: Pre task object. :type pre_task: ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties - :param post_task: Post task object + :param post_task: Post task object. :type post_task: ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties """ 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 index b3c44b4e83d8..7d3677629952 100644 --- 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 @@ -15,10 +15,10 @@ class SoftareUpdateConfigurationRunTasks(Model): """Software update configuration run tasks model. - :param pre_task: Pre task object + :param pre_task: Pre task object. :type pre_task: ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties - :param post_task: Post task object + :param post_task: Post task object. :type post_task: ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties """ 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 cc94a3cb22dd..f2e9963434b7 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,20 +36,20 @@ 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 there source, 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 + :param tasks: Tasks information for the Software update configuration. :type tasks: ~azure.mgmt.automation.models.TasksProperties """ 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 577b0c9278f2..68d65db4dbc1 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,20 +36,20 @@ 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 there source, 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 + :param tasks: Tasks information for the Software update configuration. :type tasks: ~azure.mgmt.automation.models.TasksProperties """ 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 369e1b885491..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,15 +46,15 @@ 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 + :param tasks: Software update configuration tasks triggered in this run :type tasks: ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTasks """ 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 ce2e4c440272..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,15 +46,15 @@ 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 + :param tasks: Software update configuration tasks triggered in this run :type tasks: ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTasks """ diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/task_properties.py b/azure-mgmt-automation/azure/mgmt/automation/models/task_properties.py index 1385167e9279..7f169e37defe 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/task_properties.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/task_properties.py @@ -13,7 +13,7 @@ class TaskProperties(Model): - """task properties of the software update configuration. + """Task properties of the software update configuration. :param parameters: Gets or sets the parameters of the task. :type parameters: dict[str, str] 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 index 954479cc7ffa..17ad507fd469 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/task_properties_py3.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/task_properties_py3.py @@ -13,7 +13,7 @@ class TaskProperties(Model): - """task properties of the software update configuration. + """Task properties of the software update configuration. :param parameters: Gets or sets the parameters of the task. :type parameters: dict[str, str] diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/tasks_properties.py b/azure-mgmt-automation/azure/mgmt/automation/models/tasks_properties.py index b76bcf79fc8c..24b07154e7cf 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/tasks_properties.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/tasks_properties.py @@ -13,11 +13,11 @@ class TasksProperties(Model): - """task properties of the software update configuration. + """Task properties of the software update configuration. - :param pre_task: Pre task object + :param pre_task: Pre task object. :type pre_task: ~azure.mgmt.automation.models.TaskProperties - :param post_task: Post task object + :param post_task: Post task object. :type post_task: ~azure.mgmt.automation.models.TaskProperties """ diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/tasks_properties_py3.py b/azure-mgmt-automation/azure/mgmt/automation/models/tasks_properties_py3.py index 4a8f9b6ba259..f0d751fe43f6 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/tasks_properties_py3.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/tasks_properties_py3.py @@ -13,11 +13,11 @@ class TasksProperties(Model): - """task properties of the software update configuration. + """Task properties of the software update configuration. - :param pre_task: Pre task object + :param pre_task: Pre task object. :type pre_task: ~azure.mgmt.automation.models.TaskProperties - :param post_task: Post task object + :param post_task: Post task object. :type post_task: ~azure.mgmt.automation.models.TaskProperties """ 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 From dd809d982c4a90a7d7577fcb50d2f06db5785364 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 22 Oct 2018 23:08:03 +0000 Subject: [PATCH 4/6] Generated from 671c1c2eb8251c447517f286ca228df3aea67147 fixing the model validation error --- .../mgmt/automation/models/azure_query_properties.py | 8 ++++---- .../automation/models/azure_query_properties_py3.py | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) 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 From 91083bb333b063975e4c2dc6335d20a66df80f8a Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 22 Oct 2018 23:44:10 +0000 Subject: [PATCH 5/6] Generated from b02018f790643acb7d8fc04ee76440563c585f1f addressing PR feedback --- .../azure/mgmt/automation/models/__init__.py | 6 +++--- .../models/softare_update_configuration_run_tasks.py | 2 +- .../models/softare_update_configuration_run_tasks_py3.py | 2 +- .../automation/models/software_update_configuration.py | 7 ++++--- .../models/software_update_configuration_py3.py | 7 ++++--- ...operties.py => software_update_configuration_tasks.py} | 8 ++++---- ..._py3.py => software_update_configuration_tasks_py3.py} | 8 ++++---- 7 files changed, 21 insertions(+), 19 deletions(-) rename azure-mgmt-automation/azure/mgmt/automation/models/{tasks_properties.py => software_update_configuration_tasks.py} (83%) rename azure-mgmt-automation/azure/mgmt/automation/models/{tasks_properties_py3.py => software_update_configuration_tasks_py3.py} (83%) diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/__init__.py b/azure-mgmt-automation/azure/mgmt/automation/models/__init__.py index 4a320b574dd4..4098e7fb554d 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/__init__.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/__init__.py @@ -85,7 +85,7 @@ from .target_properties_py3 import TargetProperties from .update_configuration_py3 import UpdateConfiguration from .task_properties_py3 import TaskProperties - from .tasks_properties_py3 import TasksProperties + 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 @@ -220,7 +220,7 @@ from .target_properties import TargetProperties from .update_configuration import UpdateConfiguration from .task_properties import TaskProperties - from .tasks_properties import TasksProperties + 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 @@ -415,7 +415,7 @@ 'TargetProperties', 'UpdateConfiguration', 'TaskProperties', - 'TasksProperties', + 'SoftwareUpdateConfigurationTasks', 'SoftwareUpdateConfiguration', 'CollectionItemUpdateConfiguration', 'SoftwareUpdateConfigurationCollectionItem', 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 index 8b77d06adb56..899730259323 100644 --- 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 @@ -15,7 +15,7 @@ class SoftareUpdateConfigurationRunTasks(Model): """Software update configuration run tasks model. - :param pre_task: Pre task object. + :param pre_task: Pre task properties. :type pre_task: ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties :param post_task: Post task object. 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 index 7d3677629952..447b5f7cf2e2 100644 --- 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 @@ -15,7 +15,7 @@ class SoftareUpdateConfigurationRunTasks(Model): """Software update configuration run tasks model. - :param pre_task: Pre task object. + :param pre_task: Pre task properties. :type pre_task: ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties :param post_task: Post task object. 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 f2e9963434b7..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 @@ -38,7 +38,7 @@ class SoftwareUpdateConfiguration(Model): :vartype provisioning_state: str :param error: Details of provisioning error :type error: ~azure.mgmt.automation.models.ErrorResponse - :ivar creation_time: Creation time of there source, 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. @@ -50,7 +50,8 @@ class SoftwareUpdateConfiguration(Model): response. :vartype last_modified_by: str :param tasks: Tasks information for the Software update configuration. - :type tasks: ~azure.mgmt.automation.models.TasksProperties + :type tasks: + ~azure.mgmt.automation.models.SoftwareUpdateConfigurationTasks """ _validation = { @@ -78,7 +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': 'TasksProperties'}, + 'tasks': {'key': 'properties.tasks', 'type': 'SoftwareUpdateConfigurationTasks'}, } def __init__(self, **kwargs): 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 68d65db4dbc1..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 @@ -38,7 +38,7 @@ class SoftwareUpdateConfiguration(Model): :vartype provisioning_state: str :param error: Details of provisioning error :type error: ~azure.mgmt.automation.models.ErrorResponse - :ivar creation_time: Creation time of there source, 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. @@ -50,7 +50,8 @@ class SoftwareUpdateConfiguration(Model): response. :vartype last_modified_by: str :param tasks: Tasks information for the Software update configuration. - :type tasks: ~azure.mgmt.automation.models.TasksProperties + :type tasks: + ~azure.mgmt.automation.models.SoftwareUpdateConfigurationTasks """ _validation = { @@ -78,7 +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': 'TasksProperties'}, + 'tasks': {'key': 'properties.tasks', 'type': 'SoftwareUpdateConfigurationTasks'}, } def __init__(self, *, update_configuration, schedule_info, error=None, tasks=None, **kwargs) -> None: diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/tasks_properties.py b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_tasks.py similarity index 83% rename from azure-mgmt-automation/azure/mgmt/automation/models/tasks_properties.py rename to azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_tasks.py index 24b07154e7cf..9e6a2db68b4b 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/tasks_properties.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_tasks.py @@ -12,12 +12,12 @@ from msrest.serialization import Model -class TasksProperties(Model): +class SoftwareUpdateConfigurationTasks(Model): """Task properties of the software update configuration. - :param pre_task: Pre task object. + :param pre_task: Pre task properties. :type pre_task: ~azure.mgmt.automation.models.TaskProperties - :param post_task: Post task object. + :param post_task: Post task properties. :type post_task: ~azure.mgmt.automation.models.TaskProperties """ @@ -27,6 +27,6 @@ class TasksProperties(Model): } def __init__(self, **kwargs): - super(TasksProperties, self).__init__(**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/tasks_properties_py3.py b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_tasks_py3.py similarity index 83% rename from azure-mgmt-automation/azure/mgmt/automation/models/tasks_properties_py3.py rename to azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_tasks_py3.py index f0d751fe43f6..a86ae40781b1 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/tasks_properties_py3.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_tasks_py3.py @@ -12,12 +12,12 @@ from msrest.serialization import Model -class TasksProperties(Model): +class SoftwareUpdateConfigurationTasks(Model): """Task properties of the software update configuration. - :param pre_task: Pre task object. + :param pre_task: Pre task properties. :type pre_task: ~azure.mgmt.automation.models.TaskProperties - :param post_task: Post task object. + :param post_task: Post task properties. :type post_task: ~azure.mgmt.automation.models.TaskProperties """ @@ -27,6 +27,6 @@ class TasksProperties(Model): } def __init__(self, *, pre_task=None, post_task=None, **kwargs) -> None: - super(TasksProperties, self).__init__(**kwargs) + super(SoftwareUpdateConfigurationTasks, self).__init__(**kwargs) self.pre_task = pre_task self.post_task = post_task From ca1f34ab4ebd7e1483ac0ff0c1e90cc3a93968ec Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 23 Oct 2018 22:45:35 +0000 Subject: [PATCH 6/6] Generated from 0bc254b75a8f859c2046c4a7710572d90b1262db fix description --- .../azure/mgmt/automation/models/automation_client_enums.py | 2 +- .../models/softare_update_configuration_run_tasks.py | 2 +- .../models/softare_update_configuration_run_tasks_py3.py | 2 +- .../azure/mgmt/automation/models/source_control_sync_job.py | 4 ++-- .../mgmt/automation/models/source_control_sync_job_by_id.py | 4 ++-- .../automation/models/source_control_sync_job_by_id_py3.py | 4 ++-- .../mgmt/automation/models/source_control_sync_job_py3.py | 4 ++-- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/automation_client_enums.py b/azure-mgmt-automation/azure/mgmt/automation/models/automation_client_enums.py index 81ac857e1823..390b88163978 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/automation_client_enums.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/automation_client_enums.py @@ -156,7 +156,7 @@ class ProvisioningState(str, Enum): class SyncType(str, Enum): - incremental_sync = "IncrementalSync" + partial_sync = "PartialSync" full_sync = "FullSync" 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 index 899730259323..6c498c985b96 100644 --- 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 @@ -18,7 +18,7 @@ class SoftareUpdateConfigurationRunTasks(Model): :param pre_task: Pre task properties. :type pre_task: ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties - :param post_task: Post task object. + :param post_task: Post task properties. :type post_task: ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties """ 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 index 447b5f7cf2e2..a01a566996b5 100644 --- 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 @@ -18,7 +18,7 @@ class SoftareUpdateConfigurationRunTasks(Model): :param pre_task: Pre task properties. :type pre_task: ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties - :param post_task: Post task object. + :param post_task: Post task properties. :type post_task: ~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties """ diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job.py b/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job.py index a64dded461f3..a4687eb011e2 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job.py @@ -36,8 +36,8 @@ class SourceControlSyncJob(Model): :vartype start_time: datetime :ivar end_time: The end time of the job. :vartype end_time: datetime - :param sync_type: The sync type. Possible values include: - 'IncrementalSync', 'FullSync' + :param sync_type: The sync type. Possible values include: 'PartialSync', + 'FullSync' :type sync_type: str or ~azure.mgmt.automation.models.SyncType """ diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job_by_id.py b/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job_by_id.py index 9c6925636495..69408bee1c21 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job_by_id.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job_by_id.py @@ -32,8 +32,8 @@ class SourceControlSyncJobById(Model): :vartype start_time: datetime :ivar end_time: The end time of the job. :vartype end_time: datetime - :param sync_type: The sync type. Possible values include: - 'IncrementalSync', 'FullSync' + :param sync_type: The sync type. Possible values include: 'PartialSync', + 'FullSync' :type sync_type: str or ~azure.mgmt.automation.models.SyncType :param exception: The exceptions that occured while running the sync job. :type exception: str diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job_by_id_py3.py b/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job_by_id_py3.py index 67bc029d5745..04a74360f6d4 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job_by_id_py3.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job_by_id_py3.py @@ -32,8 +32,8 @@ class SourceControlSyncJobById(Model): :vartype start_time: datetime :ivar end_time: The end time of the job. :vartype end_time: datetime - :param sync_type: The sync type. Possible values include: - 'IncrementalSync', 'FullSync' + :param sync_type: The sync type. Possible values include: 'PartialSync', + 'FullSync' :type sync_type: str or ~azure.mgmt.automation.models.SyncType :param exception: The exceptions that occured while running the sync job. :type exception: str diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job_py3.py b/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job_py3.py index 27e60c509857..c6a4cd4ac6ca 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job_py3.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job_py3.py @@ -36,8 +36,8 @@ class SourceControlSyncJob(Model): :vartype start_time: datetime :ivar end_time: The end time of the job. :vartype end_time: datetime - :param sync_type: The sync type. Possible values include: - 'IncrementalSync', 'FullSync' + :param sync_type: The sync type. Possible values include: 'PartialSync', + 'FullSync' :type sync_type: str or ~azure.mgmt.automation.models.SyncType """