Class: Braintrust::Models::ACL

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

Defined Under Namespace

Classes: ObjectType, Permission, RestrictObjectType

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

#_object_org_idString

The organization the ACL's referred object belongs to

Returns:

  • (String)


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

required :_object_org_id, String

#createdDateTime

Date of acl creation

Returns:

  • (DateTime)


30
# File 'lib/braintrust/models/acl.rb', line 30

optional :created, DateTime

#group_idString

Id of the group the ACL applies to. Exactly one of user_id and group_id will be provided

Returns:

  • (String)


35
# File 'lib/braintrust/models/acl.rb', line 35

optional :group_id, String

#idString

Unique identifier for the acl

Returns:

  • (String)


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

required :id, String

#object_id_String

The id of the object the ACL applies to

Returns:

  • (String)


19
# File 'lib/braintrust/models/acl.rb', line 19

required :object_id_, String

#object_typeSymbol

The object type that the ACL applies to One of the constants defined in ObjectType

Returns:

  • (Symbol)


25
# File 'lib/braintrust/models/acl.rb', line 25

required :object_type, enum: -> { Braintrust::Models::ACL::ObjectType }

#permissionObject

Each permission permits a certain type of operation on an object in the system



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

optional :permission, enum: -> { Braintrust::Models::ACL::Permission }

#restrict_object_typeSymbol

The object type that the ACL applies to One of the constants defined in RestrictObjectType

Returns:

  • (Symbol)


49
# File 'lib/braintrust/models/acl.rb', line 49

optional :restrict_object_type, enum: -> { Braintrust::Models::ACL::RestrictObjectType }

#role_idString

Id of the role the ACL grants. Exactly one of permission and role_id will be provided

Returns:

  • (String)


54
# File 'lib/braintrust/models/acl.rb', line 54

optional :role_id, String

#user_idString

Id of the user the ACL applies to. Exactly one of user_id and group_id will be provided

Returns:

  • (String)


59
# File 'lib/braintrust/models/acl.rb', line 59

optional :user_id, String