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

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

Overview

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from OpenAI::Internal::Type::BaseModel

Instance Attribute Details

#added_atInteger

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

#emailString?

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

#idString

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

#nameString?

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

#objectSymbol, :"organization.project.user"

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

Returns:

  • (Symbol, :"organization.project.user")


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

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

#roleString

‘owner` or `member`

Returns:

  • (String)


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

required :role, String