class MsRestAzure::CloudErrorData
Class which represents keeps aux data about Azure invalid response.
Attributes
additionalInfo[RW]
@return [Array<TypedErrorInfo>] the list of additional error info parsed from the body of the http error response.
code[RW]
@return [String] the error code parsed from the body of the http error response.
message[RW]
@return [String] the error message parsed from the body of the http error response.
target[RW]
@return [String] the error target parsed from the body of the http error response.
Public Class Methods
deserialize_object(object)
click to toggle source
Deserializes given hash into CloudErrorData object. @param object [Hash] object to deserialize.
@return [CloudErrorData] deserialized object.
# File lib/ms_rest_azure/cloud_error_data.rb, line 27 def self.deserialize_object(object) return if object.nil? output_object = CloudErrorData.new output_object.code = object['code'] output_object.message = object['message'] output_object.target = object['target'] unless object['additionalInfo'].nil? output_object.additionalInfo = [] object['additionalInfo'].each do |info| output_object.additionalInfo << MsRestAzure::TypedErrorInfo.deserialize_object(info) end end output_object end