Class: OpenAI::Models::Admin::Organization::Projects::ProjectAPIKey::Owner::ServiceAccount
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Admin::Organization::Projects::ProjectAPIKey::Owner::ServiceAccount
- Defined in:
- lib/openai/models/admin/organization/projects/project_api_key.rb,
sig/openai/models/admin/organization/projects/project_api_key.rbs
Overview
Instance Attribute Summary collapse
-
#created_at ⇒ Integer
The Unix timestamp (in seconds) of when the service account was created.
-
#id ⇒ String
The identifier, which can be referenced in API endpoints.
-
#name ⇒ String
The name of the service account.
-
#role ⇒ String
The service account's project role.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ ServiceAccount
constructor
A new instance of ServiceAccount.
- #to_hash ⇒ { id: String, created_at: Integer, name: String, role: String }
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 ⇒ ServiceAccount
Returns a new instance of ServiceAccount.
164 165 166 167 168 169 |
# File 'sig/openai/models/admin/organization/projects/project_api_key.rbs', line 164
def initialize: (
id: String,
created_at: Integer,
name: String,
role: String
) -> void
|
Instance Attribute Details
#created_at ⇒ Integer
The Unix timestamp (in seconds) of when the service account was created.
142 |
# File 'lib/openai/models/admin/organization/projects/project_api_key.rb', line 142 required :created_at, Integer |
#id ⇒ String
The identifier, which can be referenced in API endpoints
136 |
# File 'lib/openai/models/admin/organization/projects/project_api_key.rb', line 136 required :id, String |
#name ⇒ String
The name of the service account.
148 |
# File 'lib/openai/models/admin/organization/projects/project_api_key.rb', line 148 required :name, String |
#role ⇒ String
The service account's project role.
154 |
# File 'lib/openai/models/admin/organization/projects/project_api_key.rb', line 154 required :role, String |
Instance Method Details
#to_hash ⇒ { id: String, created_at: Integer, name: String, role: String }
171 172 173 174 175 176 |
# File 'sig/openai/models/admin/organization/projects/project_api_key.rbs', line 171
def to_hash: -> {
id: String,
created_at: Integer,
name: String,
role: String
}
|