Skip to content

Commit

Permalink
Generated from 7442759cb5c9c5e38cc411680346176c17a80b08 (#3255)
Browse files Browse the repository at this point in the history
Promote additionalProperties to a dictionary
  • Loading branch information
AutorestCI authored Sep 4, 2018
1 parent 675d02e commit c51b6fd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ class ErrorDetails(Model):
All required parameters must be populated in order to send to Azure.
:param additional_properties: Unmatched properties from the message are
deserialized this collection
:type additional_properties: dict[str, object]
:param code: Required. Error code identifying the specific error.
:type code: str
:param message: Required. A human readable error message.
:type message: str
:param additional_properties: Additional custom properties.
:type additional_properties: object
"""

_validation = {
Expand All @@ -31,13 +32,13 @@ class ErrorDetails(Model):
}

_attribute_map = {
'additional_properties': {'key': '', 'type': '{object}'},
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'additional_properties': {'key': 'additionalProperties', 'type': 'object'},
}

def __init__(self, **kwargs):
super(ErrorDetails, self).__init__(**kwargs)
self.additional_properties = kwargs.get('additional_properties', None)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)
self.additional_properties = kwargs.get('additional_properties', None)
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ class ErrorDetails(Model):
All required parameters must be populated in order to send to Azure.
:param additional_properties: Unmatched properties from the message are
deserialized this collection
:type additional_properties: dict[str, object]
:param code: Required. Error code identifying the specific error.
:type code: str
:param message: Required. A human readable error message.
:type message: str
:param additional_properties: Additional custom properties.
:type additional_properties: object
"""

_validation = {
Expand All @@ -31,13 +32,13 @@ class ErrorDetails(Model):
}

_attribute_map = {
'additional_properties': {'key': '', 'type': '{object}'},
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'additional_properties': {'key': 'additionalProperties', 'type': 'object'},
}

def __init__(self, *, code: str, message: str, additional_properties=None, **kwargs) -> None:
super(ErrorDetails, self).__init__(**kwargs)
self.additional_properties = additional_properties
self.code = code
self.message = message
self.additional_properties = additional_properties

0 comments on commit c51b6fd

Please sign in to comment.