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.11.0 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.10.8 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.10.7 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.10.6 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.10.5 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.10.4 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.10.3 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.10.2 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.10.1 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.10.0 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.9.0 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.8.2 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.8.1 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.8.0 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.7.0 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.6.2 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.6.1 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.6.0 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.5.0 lib/ms_rest_azure/cloud_error_data.rb
ms_rest_azure-0.4.0 lib/ms_rest_azure/cloud_error_data.rb