Sha256: e18d3f4a20f8cbe5acb554c844ad4230bfa00aef4c29a66739f01fed98e3b6ee

Contents?: true

Size: 1.38 KB

Versions: 5

Compression:

Stored size: 1.38 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::Cosmosdb::Mgmt::V2020_03_01
  module Models
    #
    # Error Response.
    #
    class ErrorResponse

      include MsRestAzure

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

      # @return [String] Error message indicating why the operation failed.
      attr_accessor :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: {
              code: {
                client_side_validation: true,
                required: false,
                serialized_name: 'code',
                type: {
                  name: 'String'
                }
              },
              message: {
                client_side_validation: true,
                required: false,
                serialized_name: 'message',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
azure_mgmt_cosmosdb-0.24.1 lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/error_response.rb
azure_mgmt_cosmosdb-0.24.0 lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/error_response.rb
azure_mgmt_cosmosdb-0.23.1 lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/error_response.rb
azure_mgmt_cosmosdb-0.22.0 lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/error_response.rb
azure_mgmt_cosmosdb-0.21.2 lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/error_response.rb