Class: Anthropic::Models::Beta::Organization::BetaSpendLimitUserActor

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

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(deleted:, email_address:, name:, user_id:, type: :user_actor) ⇒ void

A user within the organization. name and email_address are null when the underlying account is unavailable or has been deleted; deleted is true only for deleted accounts.

Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::BetaSpendLimitUserActor for more details.

Parameters:

  • deleted (Boolean) —

    True only when the underlying account has been deleted.

  • email_address (String, nil) —

    The user's email address. Null when the account is unavailable or has been delet

  • name (String, nil) —

    The user's current display name. Null when the account is unavailable, has been

  • user_id (String) —

    Tagged ID of the user.

  • type (Symbol, :user_actor) (defaults to: :user_actor) —

    Actor type. Always user_actor.



# File 'lib/anthropic/models/beta/organization/beta_spend_limit_user_actor.rb', line 40

Instance Attribute Details

#deleted ⇒ Boolean

True only when the underlying account has been deleted.

Parameters:

Returns:



12
# File 'lib/anthropic/models/beta/organization/beta_spend_limit_user_actor.rb', line 12

required :deleted, Anthropic::Internal::Type::Boolean

#email_address ⇒ String?

The user's email address. Null when the account is unavailable or has been deleted.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :email_address, String, nil?: true

#name ⇒ String?

The user's current display name. Null when the account is unavailable, has been deleted, or has no name set.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


26
# File 'lib/anthropic/models/beta/organization/beta_spend_limit_user_actor.rb', line 26

required :name, String, nil?: true

#type ⇒ Symbol, :user_actor

Actor type. Always user_actor.

Parameters:

  • value (:user_actor)

Returns:

  • (Symbol, :user_actor)


32
# File 'lib/anthropic/models/beta/organization/beta_spend_limit_user_actor.rb', line 32

required :type, const: :user_actor

#user_id ⇒ String

Tagged ID of the user.

Parameters:

  • value (String)

Returns:

  • (String)


38
# File 'lib/anthropic/models/beta/organization/beta_spend_limit_user_actor.rb', line 38

required :user_id, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


33
# File 'sig/anthropic/models/beta/organization/beta_spend_limit_user_actor.rbs', line 33

def to_hash: -> {