Class: Anthropic::Models::Beta::Organization::BetaRBACRole
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Organization::BetaRBACRole
- Defined in:
- lib/anthropic/models/beta/organization/beta_rbac_role.rb,
sig/anthropic/models/beta/organization/beta_rbac_role.rbs
Overview
Instance Attribute Summary collapse
-
#created_at ⇒ Time
RFC 3339 datetime string indicating when the RBAC Role was created.
-
#display_name ⇒ String
Name of the RBAC Role.
-
#id ⇒ String
ID of the RBAC Role.
-
#source ⇒ Anthropic::Models::Beta::Organization::BetaRBACRoleSourceBuiltIn, Anthropic::Models::Beta::Organization::BetaRBACRoleSourceCustom
Whether the RBAC Role is built-in or custom.
-
#type ⇒ Symbol, :rbac_role
Object type.
-
#updated_at ⇒ Time
RFC 3339 datetime string indicating when the RBAC Role was last updated.
Instance Method Summary collapse
-
#initialize(id:, created_at:, display_name:, source:, updated_at:, type: :rbac_role) ⇒ BetaRBACRole
constructor
Some parameter documentations has been truncated, see BetaRBACRole for more details.
- #to_hash ⇒ { id: String, created_at: Time, display_name: String, source: Anthropic::Models::Beta::Organization::beta_rbac_role_source, type: :rbac_role, 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:, display_name:, source:, updated_at:, type: :rbac_role) ⇒ BetaRBACRole
Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::BetaRBACRole for more details.
|
|
# File 'lib/anthropic/models/beta/organization/beta_rbac_role.rb', line 50
|
Instance Attribute Details
#created_at ⇒ Time
RFC 3339 datetime string indicating when the RBAC Role was created.
19 |
# File 'lib/anthropic/models/beta/organization/beta_rbac_role.rb', line 19 required :created_at, Time |
#display_name ⇒ String
Name of the RBAC Role. For a built-in role, this is Anthropic's name for the
access that the role grants. Anthropic may change this name, so to keep a
lasting reference to a role, store its id.
27 |
# File 'lib/anthropic/models/beta/organization/beta_rbac_role.rb', line 27 required :display_name, String |
#id ⇒ String
ID of the RBAC Role.
13 |
# File 'lib/anthropic/models/beta/organization/beta_rbac_role.rb', line 13 required :id, String |
#source ⇒ Anthropic::Models::Beta::Organization::BetaRBACRoleSourceBuiltIn, Anthropic::Models::Beta::Organization::BetaRBACRoleSourceCustom
Whether the RBAC Role is built-in or custom. More values of type may be added,
so do not treat every role that is not built_in as custom.
34 |
# File 'lib/anthropic/models/beta/organization/beta_rbac_role.rb', line 34 required :source, union: -> { Anthropic::Beta::Organization::BetaRBACRoleSource } |
#type ⇒ Symbol, :rbac_role
Object type.
For RBAC Roles, this is always "rbac_role".
42 |
# File 'lib/anthropic/models/beta/organization/beta_rbac_role.rb', line 42 required :type, const: :rbac_role |
#updated_at ⇒ Time
RFC 3339 datetime string indicating when the RBAC Role was last updated.
48 |
# File 'lib/anthropic/models/beta/organization/beta_rbac_role.rb', line 48 required :updated_at, Time |
Instance Method Details
#to_hash ⇒ { id: String, created_at: Time, display_name: String, source: Anthropic::Models::Beta::Organization::beta_rbac_role_source, type: :rbac_role, updated_at: Time }
37 38 39 40 41 42 43 44 |
# File 'sig/anthropic/models/beta/organization/beta_rbac_role.rbs', line 37
def to_hash: -> {
id: String,
created_at: Time,
display_name: String,
source: Anthropic::Models::Beta::Organization::beta_rbac_role_source,
type: :rbac_role,
updated_at: Time
}
|