Class: OpenAI::Models::Admin::Organization::UserListParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/openai/models/admin/organization/user_list_params.rb,
sig/openai/models/admin/organization/user_list_params.rbs

Overview

See Also:

  • OpenAI::Resources::Admin::Organization::Users#list

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, fields, hash, #hash, inherited, #inspect, inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(after: nil, emails: nil, limit: nil, request_options: {}) ⇒ UserListParams

Returns a new instance of UserListParams.

Parameters:

  • after (defaults to: nil) —

    A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.

  • emails (defaults to: nil) —

    Filter by the email address of users.

  • limit (defaults to: nil) —

    A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.

  • after: (String) (defaults to: nil)
  • emails: (::Array[String]) (defaults to: nil)
  • limit: (Integer) (defaults to: nil)
  • request_options: (OpenAI::request_opts) (defaults to: {})


# File 'lib/openai/models/admin/organization/user_list_params.rb', line 34

Instance Attribute Details

#after ⇒ String?

A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.

Returns:

  • (String, nil)


19
# File 'lib/openai/models/admin/organization/user_list_params.rb', line 19

optional :after, String

#emails ⇒ ::Array[String]?

Filter by the email address of users.

Returns:

  • (::Array[String], nil)


25
# File 'lib/openai/models/admin/organization/user_list_params.rb', line 25

optional :emails, OpenAI::Internal::Type::ArrayOf[String]

#limit ⇒ Integer?

A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.

Returns:

  • (Integer, nil)


32
# File 'lib/openai/models/admin/organization/user_list_params.rb', line 32

optional :limit, Integer

Instance Method Details

#to_hash ⇒ { ?after: String, ?emails: ::Array[String], ?limit: Integer, ?request_options: OpenAI::RequestOptions }

Returns:



60
61
62
63
64
65
# File 'sig/openai/models/admin/organization/user_list_params.rbs', line 60

def to_hash: -> {
  ?after: String,
  ?emails: ::Array[String],
  ?limit: Integer,
  ?request_options: OpenAI::RequestOptions
}