Skip to content

Commit a8f53dd

Browse files
authored
Generated from 0bc254b75a8f859c2046c4a7710572d90b1262db (#3676)
fix description
1 parent 11ecdb3 commit a8f53dd

18 files changed

+337
-29
lines changed

azure-mgmt-automation/azure/mgmt/automation/models/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,15 @@
8484
from .azure_query_properties_py3 import AzureQueryProperties
8585
from .target_properties_py3 import TargetProperties
8686
from .update_configuration_py3 import UpdateConfiguration
87+
from .task_properties_py3 import TaskProperties
88+
from .software_update_configuration_tasks_py3 import SoftwareUpdateConfigurationTasks
8789
from .software_update_configuration_py3 import SoftwareUpdateConfiguration
8890
from .collection_item_update_configuration_py3 import CollectionItemUpdateConfiguration
8991
from .software_update_configuration_collection_item_py3 import SoftwareUpdateConfigurationCollectionItem
9092
from .software_update_configuration_list_result_py3 import SoftwareUpdateConfigurationListResult
9193
from .update_configuration_navigation_py3 import UpdateConfigurationNavigation
94+
from .softare_update_configuration_run_task_properties_py3 import SoftareUpdateConfigurationRunTaskProperties
95+
from .softare_update_configuration_run_tasks_py3 import SoftareUpdateConfigurationRunTasks
9296
from .software_update_configuration_run_py3 import SoftwareUpdateConfigurationRun
9397
from .software_update_configuration_run_list_result_py3 import SoftwareUpdateConfigurationRunListResult
9498
from .job_navigation_py3 import JobNavigation
@@ -215,11 +219,15 @@
215219
from .azure_query_properties import AzureQueryProperties
216220
from .target_properties import TargetProperties
217221
from .update_configuration import UpdateConfiguration
222+
from .task_properties import TaskProperties
223+
from .software_update_configuration_tasks import SoftwareUpdateConfigurationTasks
218224
from .software_update_configuration import SoftwareUpdateConfiguration
219225
from .collection_item_update_configuration import CollectionItemUpdateConfiguration
220226
from .software_update_configuration_collection_item import SoftwareUpdateConfigurationCollectionItem
221227
from .software_update_configuration_list_result import SoftwareUpdateConfigurationListResult
222228
from .update_configuration_navigation import UpdateConfigurationNavigation
229+
from .softare_update_configuration_run_task_properties import SoftareUpdateConfigurationRunTaskProperties
230+
from .softare_update_configuration_run_tasks import SoftareUpdateConfigurationRunTasks
223231
from .software_update_configuration_run import SoftwareUpdateConfigurationRun
224232
from .software_update_configuration_run_list_result import SoftwareUpdateConfigurationRunListResult
225233
from .job_navigation import JobNavigation
@@ -406,11 +414,15 @@
406414
'AzureQueryProperties',
407415
'TargetProperties',
408416
'UpdateConfiguration',
417+
'TaskProperties',
418+
'SoftwareUpdateConfigurationTasks',
409419
'SoftwareUpdateConfiguration',
410420
'CollectionItemUpdateConfiguration',
411421
'SoftwareUpdateConfigurationCollectionItem',
412422
'SoftwareUpdateConfigurationListResult',
413423
'UpdateConfigurationNavigation',
424+
'SoftareUpdateConfigurationRunTaskProperties',
425+
'SoftareUpdateConfigurationRunTasks',
414426
'SoftwareUpdateConfigurationRun',
415427
'SoftwareUpdateConfigurationRunListResult',
416428
'JobNavigation',

azure-mgmt-automation/azure/mgmt/automation/models/azure_query_properties.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ class AzureQueryProperties(Model):
1717
1818
:param scope: List of Subscription or Resource Group ARM Ids.
1919
:type scope: list[str]
20-
:param location: List of locations to scope the query to.
21-
:type location: list[str]
20+
:param locations: List of locations to scope the query to.
21+
:type locations: list[str]
2222
:param tag_settings: Tag settings for the VM.
2323
:type tag_settings: ~azure.mgmt.automation.models.TagSettingsProperties
2424
"""
2525

2626
_attribute_map = {
2727
'scope': {'key': 'scope', 'type': '[str]'},
28-
'location': {'key': 'location', 'type': '[str]'},
28+
'locations': {'key': 'locations', 'type': '[str]'},
2929
'tag_settings': {'key': 'tagSettings', 'type': 'TagSettingsProperties'},
3030
}
3131

3232
def __init__(self, **kwargs):
3333
super(AzureQueryProperties, self).__init__(**kwargs)
3434
self.scope = kwargs.get('scope', None)
35-
self.location = kwargs.get('location', None)
35+
self.locations = kwargs.get('locations', None)
3636
self.tag_settings = kwargs.get('tag_settings', None)

azure-mgmt-automation/azure/mgmt/automation/models/azure_query_properties_py3.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ class AzureQueryProperties(Model):
1717
1818
:param scope: List of Subscription or Resource Group ARM Ids.
1919
:type scope: list[str]
20-
:param location: List of locations to scope the query to.
21-
:type location: list[str]
20+
:param locations: List of locations to scope the query to.
21+
:type locations: list[str]
2222
:param tag_settings: Tag settings for the VM.
2323
:type tag_settings: ~azure.mgmt.automation.models.TagSettingsProperties
2424
"""
2525

2626
_attribute_map = {
2727
'scope': {'key': 'scope', 'type': '[str]'},
28-
'location': {'key': 'location', 'type': '[str]'},
28+
'locations': {'key': 'locations', 'type': '[str]'},
2929
'tag_settings': {'key': 'tagSettings', 'type': 'TagSettingsProperties'},
3030
}
3131

32-
def __init__(self, *, scope=None, location=None, tag_settings=None, **kwargs) -> None:
32+
def __init__(self, *, scope=None, locations=None, tag_settings=None, **kwargs) -> None:
3333
super(AzureQueryProperties, self).__init__(**kwargs)
3434
self.scope = scope
35-
self.location = location
35+
self.locations = locations
3636
self.tag_settings = tag_settings
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class SoftareUpdateConfigurationRunTaskProperties(Model):
16+
"""Task properties of the software update configuration.
17+
18+
:param status: The status of the task.
19+
:type status: str
20+
:param source: The name of the source of the task.
21+
:type source: str
22+
:param job_id: The job id of the task.
23+
:type job_id: str
24+
"""
25+
26+
_attribute_map = {
27+
'status': {'key': 'status', 'type': 'str'},
28+
'source': {'key': 'source', 'type': 'str'},
29+
'job_id': {'key': 'jobId', 'type': 'str'},
30+
}
31+
32+
def __init__(self, **kwargs):
33+
super(SoftareUpdateConfigurationRunTaskProperties, self).__init__(**kwargs)
34+
self.status = kwargs.get('status', None)
35+
self.source = kwargs.get('source', None)
36+
self.job_id = kwargs.get('job_id', None)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class SoftareUpdateConfigurationRunTaskProperties(Model):
16+
"""Task properties of the software update configuration.
17+
18+
:param status: The status of the task.
19+
:type status: str
20+
:param source: The name of the source of the task.
21+
:type source: str
22+
:param job_id: The job id of the task.
23+
:type job_id: str
24+
"""
25+
26+
_attribute_map = {
27+
'status': {'key': 'status', 'type': 'str'},
28+
'source': {'key': 'source', 'type': 'str'},
29+
'job_id': {'key': 'jobId', 'type': 'str'},
30+
}
31+
32+
def __init__(self, *, status: str=None, source: str=None, job_id: str=None, **kwargs) -> None:
33+
super(SoftareUpdateConfigurationRunTaskProperties, self).__init__(**kwargs)
34+
self.status = status
35+
self.source = source
36+
self.job_id = job_id
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class SoftareUpdateConfigurationRunTasks(Model):
16+
"""Software update configuration run tasks model.
17+
18+
:param pre_task: Pre task properties.
19+
:type pre_task:
20+
~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties
21+
:param post_task: Post task properties.
22+
:type post_task:
23+
~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties
24+
"""
25+
26+
_attribute_map = {
27+
'pre_task': {'key': 'preTask', 'type': 'SoftareUpdateConfigurationRunTaskProperties'},
28+
'post_task': {'key': 'postTask', 'type': 'SoftareUpdateConfigurationRunTaskProperties'},
29+
}
30+
31+
def __init__(self, **kwargs):
32+
super(SoftareUpdateConfigurationRunTasks, self).__init__(**kwargs)
33+
self.pre_task = kwargs.get('pre_task', None)
34+
self.post_task = kwargs.get('post_task', None)
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class SoftareUpdateConfigurationRunTasks(Model):
16+
"""Software update configuration run tasks model.
17+
18+
:param pre_task: Pre task properties.
19+
:type pre_task:
20+
~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties
21+
:param post_task: Post task properties.
22+
:type post_task:
23+
~azure.mgmt.automation.models.SoftareUpdateConfigurationRunTaskProperties
24+
"""
25+
26+
_attribute_map = {
27+
'pre_task': {'key': 'preTask', 'type': 'SoftareUpdateConfigurationRunTaskProperties'},
28+
'post_task': {'key': 'postTask', 'type': 'SoftareUpdateConfigurationRunTaskProperties'},
29+
}
30+
31+
def __init__(self, *, pre_task=None, post_task=None, **kwargs) -> None:
32+
super(SoftareUpdateConfigurationRunTasks, self).__init__(**kwargs)
33+
self.pre_task = pre_task
34+
self.post_task = post_task

azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,22 @@ class SoftwareUpdateConfiguration(Model):
3636
:ivar provisioning_state: Provisioning state for the software update
3737
configuration, which only appears in the response.
3838
:vartype provisioning_state: str
39-
:param error: detailes of provisioning error
39+
:param error: Details of provisioning error
4040
:type error: ~azure.mgmt.automation.models.ErrorResponse
41-
:ivar creation_time: Creation time of theresource, which only appears in
41+
:ivar creation_time: Creation time of the resource, which only appears in
4242
the response.
4343
:vartype creation_time: datetime
44-
:ivar created_by: createdBy property, which only appears in the response.
44+
:ivar created_by: CreatedBy property, which only appears in the response.
4545
:vartype created_by: str
4646
:ivar last_modified_time: Last time resource was modified, which only
4747
appears in the response.
4848
:vartype last_modified_time: datetime
49-
:ivar last_modified_by: lastModifiedBy property, which only appears in the
49+
:ivar last_modified_by: LastModifiedBy property, which only appears in the
5050
response.
5151
:vartype last_modified_by: str
52+
:param tasks: Tasks information for the Software update configuration.
53+
:type tasks:
54+
~azure.mgmt.automation.models.SoftwareUpdateConfigurationTasks
5255
"""
5356

5457
_validation = {
@@ -76,6 +79,7 @@ class SoftwareUpdateConfiguration(Model):
7679
'created_by': {'key': 'properties.createdBy', 'type': 'str'},
7780
'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'},
7881
'last_modified_by': {'key': 'properties.lastModifiedBy', 'type': 'str'},
82+
'tasks': {'key': 'properties.tasks', 'type': 'SoftwareUpdateConfigurationTasks'},
7983
}
8084

8185
def __init__(self, **kwargs):
@@ -91,3 +95,4 @@ def __init__(self, **kwargs):
9195
self.created_by = None
9296
self.last_modified_time = None
9397
self.last_modified_by = None
98+
self.tasks = kwargs.get('tasks', None)

azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_machine_run.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ class SoftwareUpdateConfigurationMachineRun(Model):
6363
:ivar last_modified_by: lastModifiedBy property, which only appears in the
6464
response.
6565
:vartype last_modified_by: str
66+
:param error: detailes of provisioning error
67+
:type error: ~azure.mgmt.automation.models.ErrorResponse
6668
"""
6769

6870
_validation = {
@@ -101,6 +103,7 @@ class SoftwareUpdateConfigurationMachineRun(Model):
101103
'created_by': {'key': 'properties.createdBy', 'type': 'str'},
102104
'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'},
103105
'last_modified_by': {'key': 'properties.lastModifiedBy', 'type': 'str'},
106+
'error': {'key': 'properties.error', 'type': 'ErrorResponse'},
104107
}
105108

106109
def __init__(self, **kwargs):
@@ -122,3 +125,4 @@ def __init__(self, **kwargs):
122125
self.created_by = None
123126
self.last_modified_time = None
124127
self.last_modified_by = None
128+
self.error = kwargs.get('error', None)

azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_machine_run_py3.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ class SoftwareUpdateConfigurationMachineRun(Model):
6363
:ivar last_modified_by: lastModifiedBy property, which only appears in the
6464
response.
6565
:vartype last_modified_by: str
66+
:param error: detailes of provisioning error
67+
:type error: ~azure.mgmt.automation.models.ErrorResponse
6668
"""
6769

6870
_validation = {
@@ -101,9 +103,10 @@ class SoftwareUpdateConfigurationMachineRun(Model):
101103
'created_by': {'key': 'properties.createdBy', 'type': 'str'},
102104
'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'},
103105
'last_modified_by': {'key': 'properties.lastModifiedBy', 'type': 'str'},
106+
'error': {'key': 'properties.error', 'type': 'ErrorResponse'},
104107
}
105108

106-
def __init__(self, *, software_update_configuration=None, job=None, **kwargs) -> None:
109+
def __init__(self, *, software_update_configuration=None, job=None, error=None, **kwargs) -> None:
107110
super(SoftwareUpdateConfigurationMachineRun, self).__init__(**kwargs)
108111
self.name = None
109112
self.id = None
@@ -122,3 +125,4 @@ def __init__(self, *, software_update_configuration=None, job=None, **kwargs) ->
122125
self.created_by = None
123126
self.last_modified_time = None
124127
self.last_modified_by = None
128+
self.error = error

azure-mgmt-automation/azure/mgmt/automation/models/software_update_configuration_py3.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,22 @@ class SoftwareUpdateConfiguration(Model):
3636
:ivar provisioning_state: Provisioning state for the software update
3737
configuration, which only appears in the response.
3838
:vartype provisioning_state: str
39-
:param error: detailes of provisioning error
39+
:param error: Details of provisioning error
4040
:type error: ~azure.mgmt.automation.models.ErrorResponse
41-
:ivar creation_time: Creation time of theresource, which only appears in
41+
:ivar creation_time: Creation time of the resource, which only appears in
4242
the response.
4343
:vartype creation_time: datetime
44-
:ivar created_by: createdBy property, which only appears in the response.
44+
:ivar created_by: CreatedBy property, which only appears in the response.
4545
:vartype created_by: str
4646
:ivar last_modified_time: Last time resource was modified, which only
4747
appears in the response.
4848
:vartype last_modified_time: datetime
49-
:ivar last_modified_by: lastModifiedBy property, which only appears in the
49+
:ivar last_modified_by: LastModifiedBy property, which only appears in the
5050
response.
5151
:vartype last_modified_by: str
52+
:param tasks: Tasks information for the Software update configuration.
53+
:type tasks:
54+
~azure.mgmt.automation.models.SoftwareUpdateConfigurationTasks
5255
"""
5356

5457
_validation = {
@@ -76,9 +79,10 @@ class SoftwareUpdateConfiguration(Model):
7679
'created_by': {'key': 'properties.createdBy', 'type': 'str'},
7780
'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'},
7881
'last_modified_by': {'key': 'properties.lastModifiedBy', 'type': 'str'},
82+
'tasks': {'key': 'properties.tasks', 'type': 'SoftwareUpdateConfigurationTasks'},
7983
}
8084

81-
def __init__(self, *, update_configuration, schedule_info, error=None, **kwargs) -> None:
85+
def __init__(self, *, update_configuration, schedule_info, error=None, tasks=None, **kwargs) -> None:
8286
super(SoftwareUpdateConfiguration, self).__init__(**kwargs)
8387
self.name = None
8488
self.id = None
@@ -91,3 +95,4 @@ def __init__(self, *, update_configuration, schedule_info, error=None, **kwargs)
9195
self.created_by = None
9296
self.last_modified_time = None
9397
self.last_modified_by = None
98+
self.tasks = tasks

0 commit comments

Comments
 (0)