Class: Anthropic::Models::Beta::Organization::BetaAnalyticsReportUserActor

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/beta_analytics_report_user_actor.rb,
sig/anthropic/models/beta/organization/beta_analytics_report_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) ⇒ BetaAnalyticsReportUserActor

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

Parameters:

  • deleted (Boolean) —

    True when the account has been deleted, or when the user is no longer a member o

  • email_address (String, nil) —

    The user's current email address, including for users who are no longer members

  • name (String, nil) —

    The user's current full name. Null when the user has not set one.

  • user_id (String) —

    Tagged user ID.

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

    Actor type. Always "user_actor".

  • deleted: (Boolean)
  • email_address: (String, nil)
  • name: (String, nil)
  • user_id: (String)
  • type: (:user_actor) (defaults to: :user_actor)


# File 'lib/anthropic/models/beta/organization/beta_analytics_report_user_actor.rb', line 47

Instance Attribute Details

#deleted ⇒ Boolean

True when the account has been deleted, or when the user is no longer a member of the organization or its associated organizations (for example, their membership was removed or they were deprovisioned via your identity provider). email_address stays populated for removed users and is null when the account has been deleted. name follows the rules described on that field. The user_id is still populated for reconciliation.

Parameters:

Returns:



17
# File 'lib/anthropic/models/beta/organization/beta_analytics_report_user_actor.rb', line 17

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

#email_address ⇒ String?

The user's current email address, including for users who are no longer members of the organization. Null when the account has been deleted and for system-minted service accounts.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


25
# File 'lib/anthropic/models/beta/organization/beta_analytics_report_user_actor.rb', line 25

required :email_address, String, nil?: true

#name ⇒ String?

The user's current full name. Null when the user has not set one. "Deleted User" when the account has been deleted, or when the user is no longer a member and the organization hides removed users' names.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


33
# File 'lib/anthropic/models/beta/organization/beta_analytics_report_user_actor.rb', line 33

required :name, String, nil?: true

#type ⇒ Symbol, :user_actor

Actor type. Always "user_actor".

Parameters:

  • value (:user_actor)

Returns:

  • (Symbol, :user_actor)


39
# File 'lib/anthropic/models/beta/organization/beta_analytics_report_user_actor.rb', line 39

required :type, const: :user_actor

#user_id ⇒ String

Tagged user ID.

Parameters:

  • value (String)

Returns:

  • (String)


45
# File 'lib/anthropic/models/beta/organization/beta_analytics_report_user_actor.rb', line 45

required :user_id, String

Instance Method Details

#to_hash ⇒ { deleted: bool, email_address: String?, name: String?, type: :user_actor, user_id: String }

Returns:

  • ({ deleted: bool, email_address: String?, name: String?, type: :user_actor, user_id: String })


33
34
35
36
37
38
39
# File 'sig/anthropic/models/beta/organization/beta_analytics_report_user_actor.rbs', line 33

def to_hash: -> {
  deleted: bool,
  email_address: String?,
  name: String?,
  type: :user_actor,
  user_id: String
}