Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Generated from 7442759cb5c9c5e38cc411680346176c17a80b08
Promote additionalProperties to a dictionary
  • Loading branch information
AutorestCI committed Aug 31, 2018
commit 85a670b93ce37287e083863d8c8615e4332d9418
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