Skip to content

Commit c51b6fd

Browse files
authored
Generated from 7442759cb5c9c5e38cc411680346176c17a80b08 (#3255)
Promote additionalProperties to a dictionary
1 parent 675d02e commit c51b6fd

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

azure-mgmt-resourcegraph/azure/mgmt/resourcegraph/models/error_details.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ class ErrorDetails(Model):
1717
1818
All required parameters must be populated in order to send to Azure.
1919
20+
:param additional_properties: Unmatched properties from the message are
21+
deserialized this collection
22+
:type additional_properties: dict[str, object]
2023
:param code: Required. Error code identifying the specific error.
2124
:type code: str
2225
:param message: Required. A human readable error message.
2326
:type message: str
24-
:param additional_properties: Additional custom properties.
25-
:type additional_properties: object
2627
"""
2728

2829
_validation = {
@@ -31,13 +32,13 @@ class ErrorDetails(Model):
3132
}
3233

3334
_attribute_map = {
35+
'additional_properties': {'key': '', 'type': '{object}'},
3436
'code': {'key': 'code', 'type': 'str'},
3537
'message': {'key': 'message', 'type': 'str'},
36-
'additional_properties': {'key': 'additionalProperties', 'type': 'object'},
3738
}
3839

3940
def __init__(self, **kwargs):
4041
super(ErrorDetails, self).__init__(**kwargs)
42+
self.additional_properties = kwargs.get('additional_properties', None)
4143
self.code = kwargs.get('code', None)
4244
self.message = kwargs.get('message', None)
43-
self.additional_properties = kwargs.get('additional_properties', None)

azure-mgmt-resourcegraph/azure/mgmt/resourcegraph/models/error_details_py3.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ class ErrorDetails(Model):
1717
1818
All required parameters must be populated in order to send to Azure.
1919
20+
:param additional_properties: Unmatched properties from the message are
21+
deserialized this collection
22+
:type additional_properties: dict[str, object]
2023
:param code: Required. Error code identifying the specific error.
2124
:type code: str
2225
:param message: Required. A human readable error message.
2326
:type message: str
24-
:param additional_properties: Additional custom properties.
25-
:type additional_properties: object
2627
"""
2728

2829
_validation = {
@@ -31,13 +32,13 @@ class ErrorDetails(Model):
3132
}
3233

3334
_attribute_map = {
35+
'additional_properties': {'key': '', 'type': '{object}'},
3436
'code': {'key': 'code', 'type': 'str'},
3537
'message': {'key': 'message', 'type': 'str'},
36-
'additional_properties': {'key': 'additionalProperties', 'type': 'object'},
3738
}
3839

3940
def __init__(self, *, code: str, message: str, additional_properties=None, **kwargs) -> None:
4041
super(ErrorDetails, self).__init__(**kwargs)
42+
self.additional_properties = additional_properties
4143
self.code = code
4244
self.message = message
43-
self.additional_properties = additional_properties

0 commit comments

Comments
 (0)