Class: Anthropic::Models::Beta::Organization::BetaServiceAccountWorkspaceMember

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

Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::BetaServiceAccountWorkspaceMember 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::Beta::Organization::BetaWorkspaceRole)

    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/beta/organization/beta_service_account_workspace_member.rb', line 46

Instance Attribute Details

#created_by_actor_idString?

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

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :created_by_actor_id, String, nil?: true

#implicitBoolean?

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:



20
# File 'lib/anthropic/models/beta/organization/beta_service_account_workspace_member.rb', line 20

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

#service_account_idString

Tagged service account ID (svac_...).

Parameters:

  • value (String)

Returns:

  • (String)


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

required :service_account_id, String

#typeSymbol, :service_account_workspace_member

Parameters:

  • value (:service_account_workspace_member)

Returns:

  • (Symbol, :service_account_workspace_member)


31
# File 'lib/anthropic/models/beta/organization/beta_service_account_workspace_member.rb', line 31

required :type, const: :service_account_workspace_member

#workspace_idString

Tagged workspace ID (wrkspc_...).

Parameters:

  • value (String)

Returns:

  • (String)


37
# File 'lib/anthropic/models/beta/organization/beta_service_account_workspace_member.rb', line 37

required :workspace_id, String

#workspace_roleSymbol, Anthropic::Models::Beta::Organization::BetaWorkspaceRole

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

Parameters:

  • value (Anthropic::Models::Beta::Organization::beta_workspace_role)

Returns:



44
# File 'lib/anthropic/models/beta/organization/beta_service_account_workspace_member.rb', line 44

required :workspace_role, enum: -> { Anthropic::Beta::Organization::BetaWorkspaceRole }

Instance Method Details

#to_hash{

Returns:

  • ({)


37
# File 'sig/anthropic/models/beta/organization/beta_service_account_workspace_member.rbs', line 37

def to_hash: -> {