class

OpenAI::RoleListResource

Inherits JSON::Serializable < Reference < Object

Paginated list of roles assigned to a principal.

Constructors

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

Instance methods

data

Role assignments returned in the current page.

Source
data=(data : Array(AssignedRoleDetails))

Role assignments returned in the current page.

Source
has_more

Whether additional assignments are available when paginating.

Source
has_more=(has_more : Bool)

Whether additional assignments are available when paginating.

Source
next_value

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

Source
next_value=(next_value : RoleListResourceNext)

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

Source
object

Always list.

Source
object=(object : RoleListResourceObject)

Always list.

Source