Sha256: 7ce08c5bb7562ce3ca6fb6dc01aa56459b3eaebb28ffd9b18ca0bf76c20c808c

Contents?: true

Size: 1.55 KB

Versions: 1

Compression:

Stored size: 1.55 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::Storage::Mgmt::V2021_01_01
  module Models
    #
    # Error response body contract.
    #
    class ErrorResponseBody

      include MsRestAzure

      # @return [String] An identifier for the error. Codes are invariant and
      # are intended to be consumed programmatically.
      attr_accessor :code

      # @return [String] A message describing the error, intended to be
      # suitable for display in a user interface.
      attr_accessor :message


      #
      # Mapper for ErrorResponseBody class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ErrorResponseBody',
          type: {
            name: 'Composite',
            class_name: 'ErrorResponseBody',
            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

1 entries across 1 versions & 1 rubygems

Version Path
azure_mgmt_storage-0.23.0 lib/2021-01-01/generated/azure_mgmt_storage/models/error_response_body.rb