Sha256: 16c874e185665db4e7d86b1fbcc9a08bec87dbc1b7c6d8e46e3e76f56400f536

Contents?: true

Size: 1.24 KB

Versions: 4

Compression:

Stored size: 1.24 KB

Contents

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

module Azure::ARM::MediaServices
  module Models
    #
    # The error returned from a failed Media Services REST API call.
    #
    class ApiError

      include MsRestAzure

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

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


      #
      # Mapper for ApiError class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'ApiError',
          type: {
            name: 'Composite',
            class_name: 'ApiError',
            model_properties: {
              code: {
                required: false,
                serialized_name: 'code',
                type: {
                  name: 'String'
                }
              },
              message: {
                required: false,
                serialized_name: 'message',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
azure_mgmt_media_services-0.7.0 lib/generated/azure_mgmt_media_services/models/api_error.rb
azure_mgmt_media_services-0.6.0 lib/generated/azure_mgmt_media_services/models/api_error.rb
azure_mgmt_media_services-0.5.0 lib/generated/azure_mgmt_media_services/models/api_error.rb
azure_mgmt_media_services-0.4.0 lib/generated/azure_mgmt_media_services/models/api_error.rb