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

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

Overview

See Also:

  • OpenAI::Resources::Admin::Organization::Projects#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(id:, created_at:, archived_at: nil, external_key_id: nil, name: nil, residency: nil, status: nil, object: :"organization.project") ⇒ Object

Parameters:

  • id —

    The identifier, which can be referenced in API endpoints

  • created_at —

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

  • archived_at (defaults to: nil) —

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

  • external_key_id (defaults to: nil) —

    The external key associated with the project.

  • name (defaults to: nil) —

    The name of the project. This appears in reporting.

  • residency (defaults to: nil) —

    The residency configuration for the project.

  • status (defaults to: nil) —

    active or archived

  • object (defaults to: :"organization.project") —

    The object type, which is always organization.project



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

Instance Attribute Details

#archived_at ⇒ Integer?

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_at ⇒ Integer

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_id ⇒ String?

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

#id ⇒ String

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

#name ⇒ String?

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

#object ⇒ :"organization.project"

The object type, which is always organization.project

Returns:

  • (:"organization.project")


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

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

#residency ⇒ OpenAI::Models::Admin::Organization::project_residency?

The residency configuration for the project.

Returns:

  • (OpenAI::Models::Admin::Organization::project_residency, nil)


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

optional :residency, enum: -> { OpenAI::Admin::Organization::ProjectResidency }

#status ⇒ String?

active or archived

Returns:

  • (String, nil)


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

optional :status, String, nil?: true

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


74
# File 'sig/openai/models/admin/organization/project.rbs', line 74

def to_hash: -> {