Class: Braintrust::Models::ACL
- Defined in:
- lib/braintrust/models/acl.rb
Defined Under Namespace
Classes: ObjectType, Permission, RestrictObjectType
Instance Attribute Summary collapse
-
#_object_org_id ⇒ String
The organization the ACL's referred object belongs to.
-
#created ⇒ DateTime
Date of acl creation.
-
#group_id ⇒ String
Id of the group the ACL applies to.
-
#id ⇒ String
Unique identifier for the acl.
-
#object_id_ ⇒ String
The id of the object the ACL applies to.
-
#object_type ⇒ Symbol
The object type that the ACL applies to One of the constants defined in ObjectType.
-
#permission ⇒ Object
Each permission permits a certain type of operation on an object in the system.
-
#restrict_object_type ⇒ Symbol
The object type that the ACL applies to One of the constants defined in RestrictObjectType.
-
#role_id ⇒ String
Id of the role the ACL grants.
-
#user_id ⇒ String
Id of the user the ACL applies to.
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_id ⇒ String
The organization the ACL's referred object belongs to
14 |
# File 'lib/braintrust/models/acl.rb', line 14 required :_object_org_id, String |
#created ⇒ DateTime
Date of acl creation
30 |
# File 'lib/braintrust/models/acl.rb', line 30 optional :created, DateTime |
#group_id ⇒ String
Id of the group the ACL applies to. Exactly one of user_id
and group_id
will be provided
35 |
# File 'lib/braintrust/models/acl.rb', line 35 optional :group_id, String |
#id ⇒ String
Unique identifier for the acl
9 |
# File 'lib/braintrust/models/acl.rb', line 9 required :id, String |
#object_id_ ⇒ String
The id of the object the ACL applies to
19 |
# File 'lib/braintrust/models/acl.rb', line 19 required :object_id_, String |
#object_type ⇒ Symbol
The object type that the ACL applies to One of the constants defined in ObjectType
25 |
# File 'lib/braintrust/models/acl.rb', line 25 required :object_type, enum: -> { Braintrust::Models::ACL::ObjectType } |
#permission ⇒ Object
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_type ⇒ Symbol
The object type that the ACL applies to One of the constants defined in RestrictObjectType
49 |
# File 'lib/braintrust/models/acl.rb', line 49 optional :restrict_object_type, enum: -> { Braintrust::Models::ACL::RestrictObjectType } |
#role_id ⇒ String
Id of the role the ACL grants. Exactly one of permission
and role_id
will be provided
54 |
# File 'lib/braintrust/models/acl.rb', line 54 optional :role_id, String |
#user_id ⇒ String
Id of the user the ACL applies to. Exactly one of user_id
and group_id
will be provided
59 |
# File 'lib/braintrust/models/acl.rb', line 59 optional :user_id, String |