Class: Anthropic::Models::Organization::ServiceAccountWorkspaceMember

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/organization/service_account_workspace_member.rb,
sig/anthropic/models/organization/service_account_workspace_member.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(created_by_actor_id:, implicit:, service_account_id:, workspace_id:, workspace_role:, type: :service_account_workspace_member) ⇒ void

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

Parameters:

  • created_by_actor_id (String, nil) —

    Tagged ID (user_.../svac_...) of the actor who created this membership.

  • implicit (Boolean, nil) —

    True when this is the implicit default-workspace membership every service accoun

  • service_account_id (String) —

    Tagged service account ID (svac_...).

  • workspace_id (String) —

    Tagged workspace ID (wrkspc_...).

  • workspace_role (Symbol, Anthropic::Models::Organization::WorkspaceRole) —

    Role of the service account in this workspace. Service accounts cannot hold the

  • type (Symbol, :service_account_workspace_member) (defaults to: :service_account_workspace_member)


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

Instance Attribute Details

#created_by_actor_id ⇒ String?

Tagged ID (user_.../svac_...) of the actor who created this membership.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


11
# File 'lib/anthropic/models/organization/service_account_workspace_member.rb', line 11

required :created_by_actor_id, String, nil?: true

#implicit ⇒ Boolean?

True when this is the implicit default-workspace membership every service account has when no explicit membership exists. Implicit memberships have role workspace_user and cannot be removed.

Parameters:

Returns:



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

required :implicit, Anthropic::Internal::Type::Boolean, nil?: true

#service_account_id ⇒ String

Tagged service account ID (svac_...).

Parameters:

  • value (String)

Returns:

  • (String)


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

required :service_account_id, String

#type ⇒ Symbol, :service_account_workspace_member

Parameters:

  • value (:service_account_workspace_member)

Returns:

  • (Symbol, :service_account_workspace_member)


30
# File 'lib/anthropic/models/organization/service_account_workspace_member.rb', line 30

required :type, const: :service_account_workspace_member

#workspace_id ⇒ String

Tagged workspace ID (wrkspc_...).

Parameters:

  • value (String)

Returns:

  • (String)


36
# File 'lib/anthropic/models/organization/service_account_workspace_member.rb', line 36

required :workspace_id, String

#workspace_role ⇒ Symbol, Anthropic::Models::Organization::WorkspaceRole

Role of the service account in this workspace. Service accounts cannot hold the workspace_billing role.

Parameters:

  • value (Anthropic::Models::Organization::workspace_role)

Returns:



43
# File 'lib/anthropic/models/organization/service_account_workspace_member.rb', line 43

required :workspace_role, enum: -> { Anthropic::Organization::WorkspaceRole }

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


36
# File 'sig/anthropic/models/organization/service_account_workspace_member.rbs', line 36

def to_hash: -> {