Class: OpenAI::Models::Admin::Organization::OrganizationUser::User
- Inherits:
-
Internal::Type::BaseModel
show all
- Defined in:
- lib/openai/models/admin/organization/organization_user.rb,
sig/openai/models/admin/organization/organization_user.rbs
Overview
Instance Attribute Summary collapse
#last_response
Instance Method Summary
collapse
==, #==, #[], #_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
#coerce, coerce, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize ⇒ User
Returns a new instance of User.
232
233
234
235
236
237
238
239
240
241
|
# File 'sig/openai/models/admin/organization/organization_user.rbs', line 232
def initialize: (
id: String,
?banned: bool?,
?banned_at: Integer?,
?email: String?,
?enabled: bool?,
?name: String?,
?picture: String?,
?object: :user
) -> void
|
Instance Attribute Details
215
|
# File 'lib/openai/models/admin/organization/organization_user.rb', line 215
optional :banned, OpenAI::Internal::Type::Boolean, nil?: true
|
#banned_at ⇒ Integer?
220
|
# File 'lib/openai/models/admin/organization/organization_user.rb', line 220
optional :banned_at, Integer, nil?: true
|
#email ⇒ String?
225
|
# File 'lib/openai/models/admin/organization/organization_user.rb', line 225
optional :email, String, nil?: true
|
230
|
# File 'lib/openai/models/admin/organization/organization_user.rb', line 230
optional :enabled, OpenAI::Internal::Type::Boolean, nil?: true
|
#id ⇒ String
205
|
# File 'lib/openai/models/admin/organization/organization_user.rb', line 205
required :id, String
|
#name ⇒ String?
235
|
# File 'lib/openai/models/admin/organization/organization_user.rb', line 235
optional :name, String, nil?: true
|
#object ⇒ Symbol, :user
210
|
# File 'lib/openai/models/admin/organization/organization_user.rb', line 210
required :object, const: :user
|
#picture ⇒ String?
240
|
# File 'lib/openai/models/admin/organization/organization_user.rb', line 240
optional :picture, String, nil?: true
|
Instance Method Details
#to_hash ⇒ { id: String, ?object: :user, ?banned: bool?, ?banned_at: Integer?, ?email: String?, ?enabled: bool?, ?name: String?, ?picture: String? }
243
244
245
246
247
248
249
250
251
252
|
# File 'sig/openai/models/admin/organization/organization_user.rbs', line 243
def to_hash: -> {
id: String,
?object: :user,
?banned: bool?,
?banned_at: Integer?,
?email: String?,
?enabled: bool?,
?name: String?,
?picture: String?
}
|