class

OpenAI::PublicRoleListResource

Inherits JSON::Serializable < Reference < Object

Paginated list of roles available on an organization or project.

Constructors

new(object : PublicRoleListResourceObject = PublicRoleListResourceObject::List, data : Array(Role) = [] of Role, has_more : Bool = false, next_value : PublicRoleListResourceNext = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

data

Roles returned in the current page.

Source
data=(data : Array(Role))

Roles returned in the current page.

Source
has_more

Whether more roles are available when paginating.

Source
has_more=(has_more : Bool)

Whether more roles are available when paginating.

Source
next_value

Cursor to fetch the next page of results, or null when there are no additional roles.

Source
next_value=(next_value : PublicRoleListResourceNext)

Cursor to fetch the next page of results, or null when there are no additional roles.

Source
object

Always list.

Source
object=(object : PublicRoleListResourceObject)

Always list.

Source