Class: OpenAI::Models::Admin::Organization::Projects::ProjectAPIKey
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Admin::Organization::Projects::ProjectAPIKey
- Defined in:
- lib/openai/models/admin/organization/projects/project_api_key.rb
Overview
Defined Under Namespace
Classes: Owner
Instance Attribute Summary collapse
-
#created_at ⇒ Integer
The Unix timestamp (in seconds) of when the API key was created.
-
#id ⇒ String
The identifier, which can be referenced in API endpoints.
-
#last_used_at ⇒ Integer?
The Unix timestamp (in seconds) of when the API key was last used.
-
#name ⇒ String
The name of the API key.
-
#object ⇒ Symbol, :"organization.project.api_key"
The object type, which is always ‘organization.project.api_key`.
- #owner ⇒ OpenAI::Models::Admin::Organization::Projects::ProjectAPIKey::Owner
-
#redacted_value ⇒ String
The redacted value of the API key.
Instance Method Summary collapse
-
#initialize(id:, created_at:, last_used_at:, name:, owner:, redacted_value:, object: :"organization.project.api_key") ⇒ Object
constructor
Represents an individual API key in a project.
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:, last_used_at:, name:, owner:, redacted_value:, object: :"organization.project.api_key") ⇒ Object
Represents an individual API key in a project.
|
|
# File 'lib/openai/models/admin/organization/projects/project_api_key.rb', line 51
|
Instance Attribute Details
#created_at ⇒ Integer
The Unix timestamp (in seconds) of when the API key was created
20 |
# File 'lib/openai/models/admin/organization/projects/project_api_key.rb', line 20 required :created_at, Integer |
#id ⇒ String
The identifier, which can be referenced in API endpoints
14 |
# File 'lib/openai/models/admin/organization/projects/project_api_key.rb', line 14 required :id, String |
#last_used_at ⇒ Integer?
The Unix timestamp (in seconds) of when the API key was last used.
26 |
# File 'lib/openai/models/admin/organization/projects/project_api_key.rb', line 26 required :last_used_at, Integer, nil?: true |
#name ⇒ String
The name of the API key
32 |
# File 'lib/openai/models/admin/organization/projects/project_api_key.rb', line 32 required :name, String |
#object ⇒ Symbol, :"organization.project.api_key"
The object type, which is always ‘organization.project.api_key`
38 |
# File 'lib/openai/models/admin/organization/projects/project_api_key.rb', line 38 required :object, const: :"organization.project.api_key" |
#owner ⇒ OpenAI::Models::Admin::Organization::Projects::ProjectAPIKey::Owner
43 |
# File 'lib/openai/models/admin/organization/projects/project_api_key.rb', line 43 required :owner, -> { OpenAI::Admin::Organization::Projects::ProjectAPIKey::Owner } |
#redacted_value ⇒ String
The redacted value of the API key
49 |
# File 'lib/openai/models/admin/organization/projects/project_api_key.rb', line 49 required :redacted_value, String |