Class: OpenAI::Models::Admin::Organization::Projects::ServiceAccountCreateResponse::APIKey
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Admin::Organization::Projects::ServiceAccountCreateResponse::APIKey
- Defined in:
- lib/openai/models/admin/organization/projects/service_account_create_response.rb,
sig/openai/models/admin/organization/projects/service_account_create_response.rbs
Overview
Instance Attribute Summary collapse
- #created_at ⇒ Integer
-
#expires_at ⇒ Integer?
The Unix timestamp (in seconds) when the API key expires, or null if it does not expire.
- #id ⇒ String
- #name ⇒ String
-
#object ⇒ :"organization.project.service_account.api_key"
The object type, which is always
organization.project.service_account.api_key. - #value ⇒ String
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ APIKey
constructor
A new instance of APIKey.
- #to_hash ⇒ { id: String, created_at: Integer, name: String, ?object: :"organization.project.service_account.api_key", value: String, ?expires_at: Integer? }
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_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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 ⇒ APIKey
Returns a new instance of APIKey.
83 84 85 86 87 88 89 90 |
# File 'sig/openai/models/admin/organization/projects/service_account_create_response.rbs', line 83
def initialize: (
id: String,
created_at: Integer,
name: String,
value: String,
?expires_at: Integer?,
?object: :"organization.project.service_account.api_key"
) -> void
|
Instance Attribute Details
#created_at ⇒ Integer
74 |
# File 'lib/openai/models/admin/organization/projects/service_account_create_response.rb', line 74 required :created_at, Integer |
#expires_at ⇒ Integer?
The Unix timestamp (in seconds) when the API key expires, or null if it does not expire.
97 |
# File 'lib/openai/models/admin/organization/projects/service_account_create_response.rb', line 97 optional :expires_at, Integer, nil?: true |
#id ⇒ String
69 |
# File 'lib/openai/models/admin/organization/projects/service_account_create_response.rb', line 69 required :id, String |
#name ⇒ String
79 |
# File 'lib/openai/models/admin/organization/projects/service_account_create_response.rb', line 79 required :name, String |
#object ⇒ :"organization.project.service_account.api_key"
The object type, which is always organization.project.service_account.api_key
85 |
# File 'lib/openai/models/admin/organization/projects/service_account_create_response.rb', line 85 required :object, const: :"organization.project.service_account.api_key" |
#value ⇒ String
90 |
# File 'lib/openai/models/admin/organization/projects/service_account_create_response.rb', line 90 required :value, String |
Instance Method Details
#to_hash ⇒ { id: String, created_at: Integer, name: String, ?object: :"organization.project.service_account.api_key", value: String, ?expires_at: Integer? }
92 93 94 95 96 97 98 99 |
# File 'sig/openai/models/admin/organization/projects/service_account_create_response.rbs', line 92
def to_hash: -> {
id: String,
created_at: Integer,
name: String,
?object: :"organization.project.service_account.api_key",
value: String,
?expires_at: Integer?
}
|