Sha256: 7d9f3961dfaa78de74482e43a1078ccc68e1b0aef2740d1793b46552e349a1f9

Contents?: true

Size: 939 Bytes

Versions: 28

Compression:

Stored size: 939 Bytes

Contents

# encoding: utf-8
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.

module MsRestAzure
  #
  # Class which represents keeps aux data about Azure invalid response.
  #
  class CloudErrorData

    # @return [String] the error code parsed from the body of the http error response.
    attr_accessor :code

    # @return [String] the error message parsed from the body of the http error response.
    attr_accessor :message

    #
    # Deserializes given hash into CloudErrorData object.
    # @param object [Hash] object to deserialize.
    #
    # @return [CloudErrorData] deserialized object.
    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
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
ms_rest_azure-0.3.1 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.3.0 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.2.3 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.2.2 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.2.1 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.2.0 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.1.2 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.1.1 lib/ms_rest_azure/cloud_error_data.rb