Skip to content

Commit 22b6a39

Browse files
authored
[AutoPR automation/resource-manager] Swagger change for Update configuration dynamic group Saved Search Query (#4107)
* Generated from 5c9b5836b2067fd623c49b79bd15ff36d4d8aebb Swagger change for Update configuration dynamic group Saved Search Query * Generated from f3813d89e619417184a43e8a56ab00452f8ee204 Merge branch 'master' into SavedSearchSwagger
1 parent 5ffc485 commit 22b6a39

File tree

5 files changed

+82
-1
lines changed

5 files changed

+82
-1
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
from .linux_properties_py3 import LinuxProperties
8383
from .tag_settings_properties_py3 import TagSettingsProperties
8484
from .azure_query_properties_py3 import AzureQueryProperties
85+
from .non_azure_query_properties_py3 import NonAzureQueryProperties
8586
from .target_properties_py3 import TargetProperties
8687
from .update_configuration_py3 import UpdateConfiguration
8788
from .task_properties_py3 import TaskProperties
@@ -217,6 +218,7 @@
217218
from .linux_properties import LinuxProperties
218219
from .tag_settings_properties import TagSettingsProperties
219220
from .azure_query_properties import AzureQueryProperties
221+
from .non_azure_query_properties import NonAzureQueryProperties
220222
from .target_properties import TargetProperties
221223
from .update_configuration import UpdateConfiguration
222224
from .task_properties import TaskProperties
@@ -412,6 +414,7 @@
412414
'LinuxProperties',
413415
'TagSettingsProperties',
414416
'AzureQueryProperties',
417+
'NonAzureQueryProperties',
415418
'TargetProperties',
416419
'UpdateConfiguration',
417420
'TaskProperties',
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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 NonAzureQueryProperties(Model):
16+
"""Non Azure query for the update configuration.
17+
18+
:param function_alias: Log Analytics Saved Search name.
19+
:type function_alias: str
20+
:param workspace_id: Workspace Id for Log Analytics in which the saved
21+
Search is resided.
22+
:type workspace_id: str
23+
"""
24+
25+
_attribute_map = {
26+
'function_alias': {'key': 'functionAlias', 'type': 'str'},
27+
'workspace_id': {'key': 'workspaceId', 'type': 'str'},
28+
}
29+
30+
def __init__(self, **kwargs):
31+
super(NonAzureQueryProperties, self).__init__(**kwargs)
32+
self.function_alias = kwargs.get('function_alias', None)
33+
self.workspace_id = kwargs.get('workspace_id', None)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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 NonAzureQueryProperties(Model):
16+
"""Non Azure query for the update configuration.
17+
18+
:param function_alias: Log Analytics Saved Search name.
19+
:type function_alias: str
20+
:param workspace_id: Workspace Id for Log Analytics in which the saved
21+
Search is resided.
22+
:type workspace_id: str
23+
"""
24+
25+
_attribute_map = {
26+
'function_alias': {'key': 'functionAlias', 'type': 'str'},
27+
'workspace_id': {'key': 'workspaceId', 'type': 'str'},
28+
}
29+
30+
def __init__(self, *, function_alias: str=None, workspace_id: str=None, **kwargs) -> None:
31+
super(NonAzureQueryProperties, self).__init__(**kwargs)
32+
self.function_alias = function_alias
33+
self.workspace_id = workspace_id

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,18 @@ class TargetProperties(Model):
1919
configuration.
2020
:type azure_queries:
2121
list[~azure.mgmt.automation.models.AzureQueryProperties]
22+
:param non_azure_queries: List of non Azure queries in the software update
23+
configuration.
24+
:type non_azure_queries:
25+
list[~azure.mgmt.automation.models.NonAzureQueryProperties]
2226
"""
2327

2428
_attribute_map = {
2529
'azure_queries': {'key': 'azureQueries', 'type': '[AzureQueryProperties]'},
30+
'non_azure_queries': {'key': 'nonAzureQueries', 'type': '[NonAzureQueryProperties]'},
2631
}
2732

2833
def __init__(self, **kwargs):
2934
super(TargetProperties, self).__init__(**kwargs)
3035
self.azure_queries = kwargs.get('azure_queries', None)
36+
self.non_azure_queries = kwargs.get('non_azure_queries', None)

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,18 @@ class TargetProperties(Model):
1919
configuration.
2020
:type azure_queries:
2121
list[~azure.mgmt.automation.models.AzureQueryProperties]
22+
:param non_azure_queries: List of non Azure queries in the software update
23+
configuration.
24+
:type non_azure_queries:
25+
list[~azure.mgmt.automation.models.NonAzureQueryProperties]
2226
"""
2327

2428
_attribute_map = {
2529
'azure_queries': {'key': 'azureQueries', 'type': '[AzureQueryProperties]'},
30+
'non_azure_queries': {'key': 'nonAzureQueries', 'type': '[NonAzureQueryProperties]'},
2631
}
2732

28-
def __init__(self, *, azure_queries=None, **kwargs) -> None:
33+
def __init__(self, *, azure_queries=None, non_azure_queries=None, **kwargs) -> None:
2934
super(TargetProperties, self).__init__(**kwargs)
3035
self.azure_queries = azure_queries
36+
self.non_azure_queries = non_azure_queries

0 commit comments

Comments
 (0)