Sha256: ab7ea54a57cdb8e499c7701cbad25a08b02b377bed86cc8f8612323495cc4127

Contents?: true

Size: 1.85 KB

Versions: 2

Compression:

Stored size: 1.85 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Resources2::Mgmt::V2018_06_01
  module Models
    #
    # Error response indicates managed application is not able to process the
    # incoming request. The reason is provided in the error message.
    #
    class ErrorResponse

      include MsRestAzure2

      # @return [String] Http status code.
      attr_accessor :http_status

      # @return [String] Error code.
      attr_accessor :error_code

      # @return [String] Error message indicating why the operation failed.
      attr_accessor :error_message


      #
      # Mapper for ErrorResponse class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ErrorResponse',
          type: {
            name: 'Composite',
            class_name: 'ErrorResponse',
            model_properties: {
              http_status: {
                client_side_validation: true,
                required: false,
                serialized_name: 'httpStatus',
                type: {
                  name: 'String'
                }
              },
              error_code: {
                client_side_validation: true,
                required: false,
                serialized_name: 'errorCode',
                type: {
                  name: 'String'
                }
              },
              error_message: {
                client_side_validation: true,
                required: false,
                serialized_name: 'errorMessage',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_mgmt_resources2-1.0.1 lib/2018-06-01/generated/azure_mgmt_resources2/models/error_response.rb
azure_mgmt_resources2-1.0.0 lib/2018-06-01/generated/azure_mgmt_resources2/models/error_response.rb