Class: Anthropic::Models::Organization::RBACGroup

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

Overview

See Also:

  • Anthropic::Resources::Organization::RBACGroups#create

Defined Under Namespace

Modules: SourceType

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:, created_at:, name:, role_ids:, source_type:, updated_at:, type: :rbac_group) ⇒ RBACGroup

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

Parameters:

  • id (String) —

    ID of the RBAC Group.

  • created_at (Time) —

    RFC 3339 timestamp of when the RBAC Group was created.

  • name (String) —

    Name of the RBAC Group. Not uniqueness-enforced.

  • role_ids (Array<String>, nil) —

    RBAC Role IDs attached to this RBAC Group. Role attachment is managed in the adm

  • source_type (Symbol, Anthropic::Models::Organization::RBACGroup::SourceType) —

    How the RBAC Group was created: "direct" for groups created directly (for exam

  • updated_at (Time) —

    RFC 3339 timestamp of when the RBAC Group was last updated.

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

    Object type.

  • id: (String)
  • created_at: (Time)
  • name: (String)
  • role_ids: (::Array[String], nil)
  • source_type: (Anthropic::Models::Organization::RBACGroup::source_type)
  • updated_at: (Time)
  • type: (:rbac_group) (defaults to: :rbac_group)


# File 'lib/anthropic/models/organization/rbac_group.rb', line 56

Instance Attribute Details

#created_at ⇒ Time

RFC 3339 timestamp of when the RBAC Group was created.

Parameters:

  • value (Time)

Returns:

  • (Time)


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

required :created_at, Time

#id ⇒ String

ID of the RBAC Group.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#name ⇒ String

Name of the RBAC Group. Not uniqueness-enforced.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :name, String

#role_ids ⇒ Array<String>?

RBAC Role IDs attached to this RBAC Group. Role attachment is managed in the admin settings and is read-only on this API. null means role data was temporarily unavailable — retry to distinguish from an empty list.

Parameters:

  • value (::Array[String], nil)

Returns:

  • (Array<String>, nil)


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

required :role_ids, Anthropic::Internal::Type::ArrayOf[String], nil?: true

#source_type ⇒ Symbol, Anthropic::Models::Organization::RBACGroup::SourceType

How the RBAC Group was created: "direct" for groups created directly (for example, in the organization's admin settings), "scim" for groups provisioned by the identity provider.

Parameters:

  • value (Anthropic::Models::Organization::RBACGroup::source_type)

Returns:



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

required :source_type, enum: -> { Anthropic::Organization::RBACGroup::SourceType }

#type ⇒ Symbol, :rbac_group

Object type.

For RBAC Groups, this is always "rbac_group".

Parameters:

  • value (:rbac_group)

Returns:

  • (Symbol, :rbac_group)


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

required :type, const: :rbac_group

#updated_at ⇒ Time

RFC 3339 timestamp of when the RBAC Group was last updated.

Parameters:

  • value (Time)

Returns:

  • (Time)


54
# File 'lib/anthropic/models/organization/rbac_group.rb', line 54

required :updated_at, Time

Instance Method Details

#to_hash ⇒ { id: String, created_at: Time, name: String, role_ids: ::Array[String]?, source_type: Anthropic::Models::Organization::RBACGroup::source_type, type: :rbac_group, updated_at: Time }

Returns:

  • ({ id: String, created_at: Time, name: String, role_ids: ::Array[String]?, source_type: Anthropic::Models::Organization::RBACGroup::source_type, type: :rbac_group, updated_at: Time })


40
41
42
43
44
45
46
47
48
# File 'sig/anthropic/models/organization/rbac_group.rbs', line 40

def to_hash: -> {
  id: String,
  created_at: Time,
  name: String,
  role_ids: ::Array[String]?,
  source_type: Anthropic::Models::Organization::RBACGroup::source_type,
  type: :rbac_group,
  updated_at: Time
}