Class: Braintrust::Models::Role::MemberPermission

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/braintrust/models/role.rb

Defined Under Namespace

Classes: 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

#permissionObject

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



64
# File 'lib/braintrust/models/role.rb', line 64

required :permission, enum: -> { Braintrust::Models::Role::MemberPermission::Permission }

#restrict_object_typeSymbol

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

Returns:

  • (Symbol)


70
71
# File 'lib/braintrust/models/role.rb', line 70

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