Class: Braintrust::Models::Group

Inherits:
BaseModel show all
Defined in:
lib/braintrust/models/group.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseModel

#[], #initialize, #inspect, #to_h, #to_s

Constructor Details

This class inherits a constructor from Braintrust::BaseModel

Instance Attribute Details

#createdDateTime

Date of group creation

Returns:

  • (DateTime)


26
# File 'lib/braintrust/models/group.rb', line 26

optional :created, DateTime

#deleted_atDateTime

Date of group deletion, or null if the group is still active

Returns:

  • (DateTime)


31
# File 'lib/braintrust/models/group.rb', line 31

optional :deleted_at, DateTime

#descriptionString

Textual description of the group

Returns:

  • (String)


36
# File 'lib/braintrust/models/group.rb', line 36

optional :description, String

#idString

Unique identifier for the group

Returns:

  • (String)


9
# File 'lib/braintrust/models/group.rb', line 9

required :id, String

#member_groupsObject

Ids of the groups this group inherits from



43
# File 'lib/braintrust/models/group.rb', line 43

optional :member_groups, Braintrust::ArrayOf.new(String)

#member_usersArray<String>

Ids of users which belong to this group

Returns:

  • (Array<String>)


48
# File 'lib/braintrust/models/group.rb', line 48

optional :member_users, Braintrust::ArrayOf.new(String)

#name_String

Name of the group

Returns:

  • (String)


14
# File 'lib/braintrust/models/group.rb', line 14

required :name_, String

#org_idObject

Unique id for the organization that the group belongs under



21
# File 'lib/braintrust/models/group.rb', line 21

required :org_id, String

#user_idString

Identifies the user who created the group

Returns:

  • (String)


53
# File 'lib/braintrust/models/group.rb', line 53

optional :user_id, String