diff --git a/azure-mgmt-resourcegraph/azure/mgmt/resourcegraph/models/error_details.py b/azure-mgmt-resourcegraph/azure/mgmt/resourcegraph/models/error_details.py index cc6a9b8ce133..492ef064177f 100644 --- a/azure-mgmt-resourcegraph/azure/mgmt/resourcegraph/models/error_details.py +++ b/azure-mgmt-resourcegraph/azure/mgmt/resourcegraph/models/error_details.py @@ -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 = { @@ -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) diff --git a/azure-mgmt-resourcegraph/azure/mgmt/resourcegraph/models/error_details_py3.py b/azure-mgmt-resourcegraph/azure/mgmt/resourcegraph/models/error_details_py3.py index 4a9e5079b695..9477601ee29f 100644 --- a/azure-mgmt-resourcegraph/azure/mgmt/resourcegraph/models/error_details_py3.py +++ b/azure-mgmt-resourcegraph/azure/mgmt/resourcegraph/models/error_details_py3.py @@ -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 = { @@ -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