Class: OpenAI::Models::Admin::Organization::Projects::ProjectUser

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/admin/organization/projects/project_user.rb,
sig/openai/models/admin/organization/projects/project_user.rbs

Overview

See Also:

  • OpenAI::Resources::Admin::Organization::Projects::Users#create

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

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_with_error, 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 ⇒ Object

Parameters:

  • id —

    The identifier, which can be referenced in API endpoints

  • added_at —

    The Unix timestamp (in seconds) of when the project was added.

  • role —

    owner or member

  • email —

    The email address of the user

  • name —

    The name of the user

  • object —

    The object type, which is always organization.project.user



49
# File 'sig/openai/models/admin/organization/projects/project_user.rbs', line 49

def initialize: (

Instance Attribute Details

#added_at ⇒ Integer

The Unix timestamp (in seconds) of when the project was added.

Returns:

  • (Integer)


20
# File 'lib/openai/models/admin/organization/projects/project_user.rb', line 20

required :added_at, Integer

#email ⇒ String?

The email address of the user

Returns:

  • (String, nil)


38
# File 'lib/openai/models/admin/organization/projects/project_user.rb', line 38

optional :email, String, nil?: true

#id ⇒ String

The identifier, which can be referenced in API endpoints

Returns:

  • (String)


14
# File 'lib/openai/models/admin/organization/projects/project_user.rb', line 14

required :id, String

#name ⇒ String?

The name of the user

Returns:

  • (String, nil)


44
# File 'lib/openai/models/admin/organization/projects/project_user.rb', line 44

optional :name, String, nil?: true

#object ⇒ :"organization.project.user"

The object type, which is always organization.project.user

Returns:

  • (:"organization.project.user")


26
# File 'lib/openai/models/admin/organization/projects/project_user.rb', line 26

required :object, const: :"organization.project.user"

#role ⇒ String

owner or member

Returns:

  • (String)


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

required :role, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


58
# File 'sig/openai/models/admin/organization/projects/project_user.rbs', line 58

def to_hash: -> {