OpenAI::Role
Inherits JSON::Serializable < Reference < Object
Details about a role that can be assigned through the public Roles API.
Constructors
new(pull : JSON::PullParser)
Sourcenew(object : RoleObject = RoleObject::Role, id : String = "", name : String = "", description : RoleDescription = nil, permissions : Array(String) = [] of String, resource_type : String = "", predefined_role : Bool = false)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
predefined_role=(predefined_role : Bool)
Whether the role is predefined and managed by OpenAI.
resource_type
Resource type the role is bound to (for example api.organization or api.project).