Sha256: dceb41e073def23204657d7ba1852ef57bbec5beec23ed90b7e92eefb865460c

Contents?: true

Size: 1.14 KB

Versions: 34

Compression:

Stored size: 1.14 KB

Contents

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

# typed: true
# frozen_string_literal: true


module OpenApiSDK
  module Shared
  

    class UnauthorizedError < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig

      # A short code indicating the error code returned.
      field :code, ::OpenApiSDK::Shared::UnauthorizedCode, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('code'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Shared::UnauthorizedCode, false) } }
      # A human readable explanation of what went wrong.
      field :message, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('message') } }
      # A link to our documentation with more details about this error code
      field :doc_url, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('doc_url') } }


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

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
dub-0.2.2.pre.alpha.38 lib/open_api_sdk/models/shared/unauthorized_error.rb
dub-0.2.2.pre.alpha.37 lib/open_api_sdk/models/shared/unauthorized_error.rb
dub-0.2.2.pre.alpha.36 lib/open_api_sdk/models/shared/unauthorized_error.rb
dub-0.2.2.pre.alpha.35 lib/open_api_sdk/models/shared/unauthorized_error.rb
dub-0.2.2.pre.alpha.34 lib/open_api_sdk/models/shared/unauthorized_error.rb
dub-0.2.2.pre.alpha.33 lib/open_api_sdk/models/shared/unauthorized_error.rb
dub-0.2.2.pre.alpha.32 lib/open_api_sdk/models/shared/unauthorized_error.rb
dub-0.2.2.pre.alpha.31 lib/open_api_sdk/models/shared/unauthorized_error.rb
dub-0.2.2.pre.alpha.30 lib/open_api_sdk/models/shared/unauthorized_error.rb
dub-0.2.2.pre.alpha.29 lib/open_api_sdk/models/shared/unauthorized_error.rb
dub-0.2.2.pre.alpha.28 lib/open_api_sdk/models/shared/unauthorized_error.rb
dub-0.2.2.pre.alpha.27 lib/open_api_sdk/models/shared/unauthorized_error.rb
dub-0.2.2.pre.alpha.26 lib/open_api_sdk/models/shared/unauthorized_error.rb
dub-0.2.2.pre.alpha.25 lib/open_api_sdk/models/shared/unauthorized_error.rb
dub-0.2.2.pre.alpha.24 lib/open_api_sdk/models/shared/unauthorized_error.rb
dub-0.2.2.pre.alpha.23 lib/open_api_sdk/models/shared/unauthorized_error.rb
dub-0.2.2.pre.alpha.22 lib/open_api_sdk/models/shared/unauthorized_error.rb
dub-0.2.2.pre.alpha.21 lib/open_api_sdk/models/shared/unauthorized_error.rb
dub-0.2.2.pre.alpha.20 lib/open_api_sdk/models/shared/unauthorized_error.rb
dub-0.2.2.pre.alpha.19 lib/open_api_sdk/models/shared/unauthorized_error.rb