Class: Anthropic::Models::Organization::RBACGroup
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Organization::RBACGroup
- Defined in:
- lib/anthropic/models/organization/rbac_group.rb,
sig/anthropic/models/organization/rbac_group.rbs
Overview
Defined Under Namespace
Modules: SourceType
Instance Attribute Summary collapse
-
#created_at ⇒ Time
RFC 3339 timestamp of when the RBAC Group was created.
-
#id ⇒ String
ID of the RBAC Group.
-
#name ⇒ String
Name of the RBAC Group.
-
#role_ids ⇒ Array<String>?
RBAC Role IDs attached to this RBAC Group.
-
#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. -
#type ⇒ Symbol, :rbac_group
Object type.
-
#updated_at ⇒ Time
RFC 3339 timestamp of when the RBAC Group was last updated.
Instance Method Summary collapse
-
#initialize(id:, created_at:, name:, role_ids:, source_type:, updated_at:, type: :rbac_group) ⇒ RBACGroup
constructor
Some parameter documentations has been truncated, see RBACGroup for more 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 }
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.
|
|
# 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.
18 |
# File 'lib/anthropic/models/organization/rbac_group.rb', line 18 required :created_at, Time |
#id ⇒ String
ID of the RBAC Group.
12 |
# File 'lib/anthropic/models/organization/rbac_group.rb', line 12 required :id, String |
#name ⇒ String
Name of the RBAC Group. Not uniqueness-enforced.
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.
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.
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".
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.
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 }
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
}
|