Class: Anthropic::Models::Organization::ServiceAccount

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

Overview

See Also:

  • Anthropic::Resources::Organization::ServiceAccounts#create

Defined Under Namespace

Modules: OrganizationRole

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(id:, archived_at:, archived_by_actor_id:, created_at:, created_by_actor_id:, description:, name:, organization_role:, updated_at:, updated_by_actor_id:, type: :service_account) ⇒ void

Named non-human identity within the caller's organization.

A service account is a pure identity: name + org. Authorization lives on whatever references it (federation rules).

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



# File 'lib/anthropic/models/organization/service_account.rb', line 76

Instance Attribute Details

#archived_at ⇒ Time?

If set, this service account is archived.



18
# File 'lib/anthropic/models/organization/service_account.rb', line 18

required :archived_at, Time, nil?: true

#archived_by_actor_id ⇒ String?

Tagged ID (user_/svac_) of the actor that archived this service account.



24
# File 'lib/anthropic/models/organization/service_account.rb', line 24

required :archived_by_actor_id, String, nil?: true

#created_at ⇒ Time

When this service account was created.



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

required :created_at, Time

#created_by_actor_id ⇒ String?

Tagged ID (user_/svac_) of the actor that created this service account.



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

required :created_by_actor_id, String, nil?: true

#description ⇒ String?

Optional free-text description.



42
# File 'lib/anthropic/models/organization/service_account.rb', line 42

required :description, String, nil?: true

#id ⇒ String

Tagged ID of the service account.



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

required :id, String

#name ⇒ String

Admin-chosen slug identifier.



48
# File 'lib/anthropic/models/organization/service_account.rb', line 48

required :name, String

#organization_role ⇒ Symbol, Anthropic::Models::Organization::ServiceAccount::OrganizationRole

Org-level role. A federation rule may only be created or retargeted to grant org:admin scope when this is admin. A rule granting org:admin whose target is later demoted to developer is rejected at token exchange. Rules granting org:admin are managed in the Console.



57
# File 'lib/anthropic/models/organization/service_account.rb', line 57

required :organization_role, enum: -> { Anthropic::Organization::ServiceAccount::OrganizationRole }

#type ⇒ Symbol, :service_account



62
# File 'lib/anthropic/models/organization/service_account.rb', line 62

required :type, const: :service_account

#updated_at ⇒ Time

When this service account was last updated.



68
# File 'lib/anthropic/models/organization/service_account.rb', line 68

required :updated_at, Time

#updated_by_actor_id ⇒ String?

Tagged ID (user_/svac_) of the actor that last updated this service account.



74
# File 'lib/anthropic/models/organization/service_account.rb', line 74

required :updated_by_actor_id, String, nil?: true

Instance Method Details

#to_hash ⇒ {



56
# File 'sig/anthropic/models/organization/service_account.rbs', line 56

def to_hash: -> {