Class: OpenAI::Models::Admin::Organization::Project

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

Overview

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:, created_at:, archived_at: nil, external_key_id: nil, name: nil, status: nil, object: :"organization.project") ⇒ Object

Represents an individual project.

Parameters:

  • id (String)

    The identifier, which can be referenced in API endpoints

  • created_at (Integer)

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

  • archived_at (Integer, nil) (defaults to: nil)

    The Unix timestamp (in seconds) of when the project was archived or ‘null`.

  • external_key_id (String, nil) (defaults to: nil)

    The external key associated with the project.

  • name (String, nil) (defaults to: nil)

    The name of the project. This appears in reporting.

  • status (String, nil) (defaults to: nil)

    ‘active` or `archived`

  • object (Symbol, :"organization.project") (defaults to: :"organization.project")

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



# File 'lib/openai/models/admin/organization/project.rb', line 51

Instance Attribute Details

#archived_atInteger?

The Unix timestamp (in seconds) of when the project was archived or ‘null`.

Returns:

  • (Integer, nil)


31
# File 'lib/openai/models/admin/organization/project.rb', line 31

optional :archived_at, Integer, nil?: true

#created_atInteger

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

Returns:

  • (Integer)


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

required :created_at, Integer

#external_key_idString?

The external key associated with the project.

Returns:

  • (String, nil)


37
# File 'lib/openai/models/admin/organization/project.rb', line 37

optional :external_key_id, String, nil?: true

#idString

The identifier, which can be referenced in API endpoints

Returns:

  • (String)


13
# File 'lib/openai/models/admin/organization/project.rb', line 13

required :id, String

#nameString?

The name of the project. This appears in reporting.

Returns:

  • (String, nil)


43
# File 'lib/openai/models/admin/organization/project.rb', line 43

optional :name, String, nil?: true

#objectSymbol, :"organization.project"

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

Returns:

  • (Symbol, :"organization.project")


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

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

#statusString?

‘active` or `archived`

Returns:

  • (String, nil)


49
# File 'lib/openai/models/admin/organization/project.rb', line 49

optional :status, String, nil?: true