Class: Telnyx::Models::OAuthIntrospectResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/oauth_introspect_response.rb,
sig/telnyx/models/oauth_introspect_response.rbs

Overview

See Also:

  • Telnyx::Resources::OAuth#introspect

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(active:, aud: nil, client_id: nil, exp: nil, iat: nil, iss: nil, scope: nil) ⇒ Object

Parameters:

  • active (Boolean)

    Whether the token is active

  • aud (String) (defaults to: nil)

    Audience

  • client_id (String) (defaults to: nil)

    Client identifier

  • exp (Integer) (defaults to: nil)

    Expiration timestamp

  • iat (Integer) (defaults to: nil)

    Issued at timestamp

  • iss (String) (defaults to: nil)

    Issuer

  • scope (String) (defaults to: nil)

    Space-separated list of scopes



# File 'lib/telnyx/models/oauth_introspect_response.rb', line 49

Instance Attribute Details

#activeBoolean

Whether the token is active

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


11
# File 'lib/telnyx/models/oauth_introspect_response.rb', line 11

required :active, Telnyx::Internal::Type::Boolean

#audString?

Audience

Parameters:

  • (String)

Returns:

  • (String, nil)


17
# File 'lib/telnyx/models/oauth_introspect_response.rb', line 17

optional :aud, String

#client_idString?

Client identifier

Parameters:

  • (String)

Returns:

  • (String, nil)


23
# File 'lib/telnyx/models/oauth_introspect_response.rb', line 23

optional :client_id, String

#expInteger?

Expiration timestamp

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


29
# File 'lib/telnyx/models/oauth_introspect_response.rb', line 29

optional :exp, Integer

#iatInteger?

Issued at timestamp

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


35
# File 'lib/telnyx/models/oauth_introspect_response.rb', line 35

optional :iat, Integer

#issString?

Issuer

Parameters:

  • (String)

Returns:

  • (String, nil)


41
# File 'lib/telnyx/models/oauth_introspect_response.rb', line 41

optional :iss, String

#scopeString?

Space-separated list of scopes

Parameters:

  • (String)

Returns:

  • (String, nil)


47
# File 'lib/telnyx/models/oauth_introspect_response.rb', line 47

optional :scope, String

Instance Method Details

#to_hash{

Returns:

  • ({)


51
# File 'sig/telnyx/models/oauth_introspect_response.rbs', line 51

def to_hash: -> {