Class: Anthropic::Models::Organization::RBACGroups::RBACGroupMember

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

Overview

See Also:

  • Anthropic::Resources::Organization::RBACGroups::Members#list

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 ⇒ RBACGroupMember

Returns a new instance of RBACGroupMember.

Parameters:

  • created_at: (Time)
  • email: (String)
  • rbac_group_id: (String)
  • user_id: (String)
  • type: (:rbac_group_member)


27
28
29
30
31
32
33
# File 'sig/anthropic/models/organization/rbac_groups/rbac_group_member.rbs', line 27

def initialize: (
  created_at: Time,
  email: String,
  rbac_group_id: String,
  user_id: String,
  ?type: :rbac_group_member
) -> void

Instance Attribute Details

#created_at ⇒ Time

RFC 3339 timestamp of when the User was added to the RBAC Group.

Parameters:

  • value (Time)

Returns:

  • (Time)


13
# File 'lib/anthropic/models/organization/rbac_groups/rbac_group_member.rb', line 13

required :created_at, Time

#email ⇒ String

Email of the User.

Parameters:

  • value (String)

Returns:

  • (String)


19
# File 'lib/anthropic/models/organization/rbac_groups/rbac_group_member.rb', line 19

required :email, String

#rbac_group_id ⇒ String

ID of the RBAC Group.

Parameters:

  • value (String)

Returns:

  • (String)


25
# File 'lib/anthropic/models/organization/rbac_groups/rbac_group_member.rb', line 25

required :rbac_group_id, String

#type ⇒ Symbol, :rbac_group_member

Object type.

For RBAC Group Members, this is always "rbac_group_member".

Parameters:

  • value (:rbac_group_member)

Returns:

  • (Symbol, :rbac_group_member)


33
# File 'lib/anthropic/models/organization/rbac_groups/rbac_group_member.rb', line 33

required :type, const: :rbac_group_member

#user_id ⇒ String

ID of the User.

Parameters:

  • value (String)

Returns:

  • (String)


39
# File 'lib/anthropic/models/organization/rbac_groups/rbac_group_member.rb', line 39

required :user_id, String

Instance Method Details

#to_hash ⇒ { created_at: Time, email: String, rbac_group_id: String, type: :rbac_group_member, user_id: String }

Returns:

  • ({ created_at: Time, email: String, rbac_group_id: String, type: :rbac_group_member, user_id: String })


35
36
37
38
39
40
41
# File 'sig/anthropic/models/organization/rbac_groups/rbac_group_member.rbs', line 35

def to_hash: -> {
  created_at: Time,
  email: String,
  rbac_group_id: String,
  type: :rbac_group_member,
  user_id: String
}