Class: Anthropic::Models::Beta::Organization::BetaRBACGroup

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

Overview

See Also:

  • Anthropic::Resources::Beta::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) ⇒ BetaRBACGroup

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

Parameters:

  • ID of the RBAC Group.

  • RFC 3339 timestamp of when the RBAC Group was created.

  • Name of the RBAC Group. Not uniqueness-enforced.

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

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

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

  • (defaults to: :rbac_group)

    Object type.

  • (defaults to: :rbac_group)


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

Instance Attribute Details

#created_at ⇒ Time

RFC 3339 timestamp of when the RBAC Group was created.

Parameters:

Returns:



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

required :created_at, Time

#id ⇒ String

ID of the RBAC Group.

Parameters:

Returns:



13
# File 'lib/anthropic/models/beta/organization/beta_rbac_group.rb', line 13

required :id, String

#name ⇒ String

Name of the RBAC Group. Not uniqueness-enforced.

Parameters:

Returns:



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

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:

Returns:



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

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

#source_type ⇒ Symbol, Anthropic::Models::Beta::Organization::BetaRBACGroup::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:

Returns:



41
# File 'lib/anthropic/models/beta/organization/beta_rbac_group.rb', line 41

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

#type ⇒ Symbol, :rbac_group

Object type.

For RBAC Groups, this is always "rbac_group".

Parameters:

Returns:



49
# File 'lib/anthropic/models/beta/organization/beta_rbac_group.rb', line 49

required :type, const: :rbac_group

#updated_at ⇒ Time

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

Parameters:

Returns:



55
# File 'lib/anthropic/models/beta/organization/beta_rbac_group.rb', line 55

required :updated_at, Time

Instance Method Details

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

Returns:



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

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