Class: OpenAI::Models::Admin::Organization::Groups::UserRetrieveResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/admin/organization/groups/user_retrieve_response.rb

Overview

Defined Under Namespace

Modules: UserType

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, 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(id:, email:, is_service_account:, name:, picture:, user_type:) ⇒ Object

Details about a user returned from an organization group membership lookup.

Parameters:

  • id (String)

    Identifier for the user.

  • email (String, nil)

    Email address of the user, or ‘null` for users without an email.

  • is_service_account (Boolean, nil)

    Whether the user is a service account.

  • name (String)

    Display name of the user.

  • picture (String, nil)

    URL of the user’s profile picture, if available.

  • user_type (Symbol, OpenAI::Models::Admin::Organization::Groups::UserRetrieveResponse::UserType)

    The type of user.



# File 'lib/openai/models/admin/organization/groups/user_retrieve_response.rb', line 47

Instance Attribute Details

#emailString?

Email address of the user, or ‘null` for users without an email.

Returns:

  • (String, nil)


20
# File 'lib/openai/models/admin/organization/groups/user_retrieve_response.rb', line 20

required :email, String, nil?: true

#idString

Identifier for the user.

Returns:

  • (String)


14
# File 'lib/openai/models/admin/organization/groups/user_retrieve_response.rb', line 14

required :id, String

#is_service_accountBoolean?

Whether the user is a service account.

Returns:



26
# File 'lib/openai/models/admin/organization/groups/user_retrieve_response.rb', line 26

required :is_service_account, OpenAI::Internal::Type::Boolean, nil?: true

#nameString

Display name of the user.

Returns:

  • (String)


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

required :name, String

#pictureString?

URL of the user’s profile picture, if available.

Returns:

  • (String, nil)


38
# File 'lib/openai/models/admin/organization/groups/user_retrieve_response.rb', line 38

required :picture, String, nil?: true

#user_typeSymbol, OpenAI::Models::Admin::Organization::Groups::UserRetrieveResponse::UserType

The type of user.



44
45
# File 'lib/openai/models/admin/organization/groups/user_retrieve_response.rb', line 44

required :user_type,
enum: -> { OpenAI::Models::Admin::Organization::Groups::UserRetrieveResponse::UserType }