class

OpenAI::GroupListResource

Inherits JSON::Serializable < Reference < Object

Paginated list of organization groups.

Constructors

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

Instance methods

data

Groups returned in the current page.

Source
data=(data : Array(GroupResponse))

Groups returned in the current page.

Source
has_more

Whether additional groups are available when paginating.

Source
has_more=(has_more : Bool)

Whether additional groups are available when paginating.

Source
next_value

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

Source
next_value=(next_value : GroupListResourceNext)

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

Source
object

Always list.

Source
object=(object : GroupListResourceObject)

Always list.

Source