Class: Anthropic::Models::Beta::BetaTunnelToken

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_tunnel_token.rb,
sig/anthropic/models/beta/beta_tunnel_token.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::Tunnels#reveal_token

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

#initializeObject



16
# File 'sig/anthropic/models/beta/beta_tunnel_token.rbs', line 16

def initialize: (

Instance Attribute Details

#idString

Stable identifier for the current token value. Changes when the token is rotated.

Parameters:

  • value (String)

Returns:

  • (String)


13
# File 'lib/anthropic/models/beta/beta_tunnel_token.rb', line 13

required :id, String

#tunnel_tokenString

The connector token used to run the tunnel. Treat as a credential.

Parameters:

  • value (String)

Returns:

  • (String)


19
# File 'lib/anthropic/models/beta/beta_tunnel_token.rb', line 19

required :tunnel_token, String

#typeSymbol, :tunnel_token

Parameters:

  • value (:tunnel_token)

Returns:

  • (Symbol, :tunnel_token)


24
# File 'lib/anthropic/models/beta/beta_tunnel_token.rb', line 24

required :type, const: :tunnel_token

Instance Method Details

#to_hash{

Returns:

  • ({)


22
# File 'sig/anthropic/models/beta/beta_tunnel_token.rbs', line 22

def to_hash: -> {