Sha256: 70a2dc2b03c0da88e789ea504e607c64d349a895db2fa4863b59028fc65f7aff

Contents?: true

Size: 1.11 KB

Versions: 34

Compression:

Stored size: 1.11 KB

Contents

# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

# typed: true
# frozen_string_literal: true


module DingSDK
  module Shared
  

    class ErrorResponse < ::DingSDK::Utils::FieldAugmented
      extend T::Sig

      # A machine-readable code that describes the error.
      field :code, T.nilable(::DingSDK::Shared::Code), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('code'), 'decoder': Utils.enum_from_string(::DingSDK::Shared::Code, true) } }
      # A link to the documentation that describes the error.
      field :doc_url, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('doc_url') } }
      # A human-readable message that describes the error.
      field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('message') } }


      sig { params(code: T.nilable(::DingSDK::Shared::Code), doc_url: T.nilable(::String), message: T.nilable(::String)).void }
      def initialize(code: nil, doc_url: nil, message: nil)
        @code = code
        @doc_url = doc_url
        @message = message
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
ding_sdk-0.9.18 lib/ding_sdk/models/shared/errorresponse.rb
ding_sdk-0.9.17 lib/ding_sdk/models/shared/errorresponse.rb
ding_sdk-0.9.16 lib/ding_sdk/models/shared/errorresponse.rb
ding_sdk-0.9.15 lib/ding_sdk/models/shared/errorresponse.rb
ding_sdk-0.9.14 lib/ding_sdk/models/shared/errorresponse.rb
ding_sdk-0.9.13 lib/ding_sdk/models/shared/errorresponse.rb
ding_sdk-0.9.12 lib/ding_sdk/models/shared/errorresponse.rb
ding_sdk-0.9.11 lib/ding_sdk/models/shared/errorresponse.rb
ding_sdk-0.9.10 lib/ding_sdk/models/shared/errorresponse.rb
ding_sdk-0.9.9 lib/ding_sdk/models/shared/errorresponse.rb
ding_sdk-0.9.8 lib/ding_sdk/models/shared/errorresponse.rb
ding_sdk-0.9.7 lib/ding_sdk/models/shared/errorresponse.rb
ding_sdk-0.9.6 lib/ding_sdk/models/shared/errorresponse.rb
ding_sdk-0.9.5 lib/ding_sdk/models/shared/errorresponse.rb
ding_sdk-0.9.4 lib/ding_sdk/models/shared/errorresponse.rb
ding_sdk-0.9.3 lib/ding_sdk/models/shared/errorresponse.rb
ding_sdk-0.9.2 lib/ding_sdk/models/shared/errorresponse.rb
ding_sdk-0.9.1 lib/ding_sdk/models/shared/errorresponse.rb
ding_sdk-0.9.0 lib/ding_sdk/models/shared/errorresponse.rb
ding_sdk-0.8.27 lib/ding_sdk/models/shared/errorresponse.rb