-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR advisor/resource-manager] Swaggerfix (#2721)
* Generated from 8f325f540f597ae184379bed0676e8cdfd42039f Add C# settings * Generated from a3db9ba57ede1858830cee525cf8f2bb9124e143 Remove wrong tag
- Loading branch information
1 parent
412e27e
commit d0789c0
Showing
25 changed files
with
523 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
azure-mgmt-advisor/azure/mgmt/advisor/models/arm_error_response_body_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ARMErrorResponseBody(Model): | ||
"""ARM error response body. | ||
:param message: Gets or sets the string that describes the error in detail | ||
and provides debugging information. | ||
:type message: str | ||
:param code: Gets or sets the string that can be used to programmatically | ||
identify the error. | ||
:type code: str | ||
""" | ||
|
||
_attribute_map = { | ||
'message': {'key': 'message', 'type': 'str'}, | ||
'code': {'key': 'code', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, message: str=None, code: str=None, **kwargs) -> None: | ||
super(ARMErrorResponseBody, self).__init__(**kwargs) | ||
self.message = message | ||
self.code = code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
azure-mgmt-advisor/azure/mgmt/advisor/models/config_data_properties_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# 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 ConfigDataProperties(Model): | ||
"""The list of property name/value pairs. | ||
:param additional_properties: Unmatched properties from the message are | ||
deserialized this collection | ||
:type additional_properties: dict[str, object] | ||
:param exclude: Exclude the resource from Advisor evaluations. Valid | ||
values: False (default) or True. | ||
:type exclude: bool | ||
:param low_cpu_threshold: Minimum percentage threshold for Advisor low CPU | ||
utilization evaluation. Valid only for subscriptions. Valid values: 5 | ||
(default), 10, 15 or 20. | ||
:type low_cpu_threshold: str | ||
""" | ||
|
||
_attribute_map = { | ||
'additional_properties': {'key': '', 'type': '{object}'}, | ||
'exclude': {'key': 'exclude', 'type': 'bool'}, | ||
'low_cpu_threshold': {'key': 'low_cpu_threshold', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, additional_properties=None, exclude: bool=None, low_cpu_threshold: str=None, **kwargs) -> None: | ||
super(ConfigDataProperties, self).__init__(**kwargs) | ||
self.additional_properties = additional_properties | ||
self.exclude = exclude | ||
self.low_cpu_threshold = low_cpu_threshold |
40 changes: 40 additions & 0 deletions
40
azure-mgmt-advisor/azure/mgmt/advisor/models/config_data_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# 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 ConfigData(Model): | ||
"""The Advisor configuration data structure. | ||
:param id: The resource Id of the configuration resource. | ||
:type id: str | ||
:param type: The type of the configuration resource. | ||
:type type: str | ||
:param name: The name of the configuration resource. | ||
:type name: str | ||
:param properties: The list of property name/value pairs. | ||
:type properties: ~azure.mgmt.advisor.models.ConfigDataProperties | ||
""" | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'properties': {'key': 'properties', 'type': 'ConfigDataProperties'}, | ||
} | ||
|
||
def __init__(self, *, id: str=None, type: str=None, name: str=None, properties=None, **kwargs) -> None: | ||
super(ConfigData, self).__init__(**kwargs) | ||
self.id = id | ||
self.type = type | ||
self.name = name | ||
self.properties = properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
azure-mgmt-advisor/azure/mgmt/advisor/models/operation_display_info_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# 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 OperationDisplayInfo(Model): | ||
"""The operation supported by Advisor. | ||
:param description: The description of the operation. | ||
:type description: str | ||
:param operation: The action that users can perform, based on their | ||
permission level. | ||
:type operation: str | ||
:param provider: Service provider: Microsoft Advisor. | ||
:type provider: str | ||
:param resource: Resource on which the operation is performed. | ||
:type resource: str | ||
""" | ||
|
||
_attribute_map = { | ||
'description': {'key': 'description', 'type': 'str'}, | ||
'operation': {'key': 'operation', 'type': 'str'}, | ||
'provider': {'key': 'provider', 'type': 'str'}, | ||
'resource': {'key': 'resource', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, description: str=None, operation: str=None, provider: str=None, resource: str=None, **kwargs) -> None: | ||
super(OperationDisplayInfo, self).__init__(**kwargs) | ||
self.description = description | ||
self.operation = operation | ||
self.provider = provider | ||
self.resource = resource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
azure-mgmt-advisor/azure/mgmt/advisor/models/operation_entity_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 OperationEntity(Model): | ||
"""The operation supported by Advisor. | ||
:param name: Operation name: {provider}/{resource}/{operation}. | ||
:type name: str | ||
:param display: The operation supported by Advisor. | ||
:type display: ~azure.mgmt.advisor.models.OperationDisplayInfo | ||
""" | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'display': {'key': 'display', 'type': 'OperationDisplayInfo'}, | ||
} | ||
|
||
def __init__(self, *, name: str=None, display=None, **kwargs) -> None: | ||
super(OperationEntity, self).__init__(**kwargs) | ||
self.name = name | ||
self.display = display |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.