Class: OpenAI::Models::Admin::Organization::Projects::ProjectServiceAccount
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Admin::Organization::Projects::ProjectServiceAccount
- Defined in:
- lib/openai/models/admin/organization/projects/project_service_account.rb
Overview
Defined Under Namespace
Modules: Role
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.
-
#object ⇒ Symbol, :"organization.project.service_account"
The object type, which is always ‘organization.project.service_account`.
-
#role ⇒ Symbol, OpenAI::Models::Admin::Organization::Projects::ProjectServiceAccount::Role
‘owner` or `member`.
Instance Method Summary collapse
-
#initialize(id:, created_at:, name:, role:, object: :"organization.project.service_account") ⇒ Object
constructor
Represents an individual service account 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:, name:, role:, object: :"organization.project.service_account") ⇒ Object
Represents an individual service account in a project.
|
|
# File 'lib/openai/models/admin/organization/projects/project_service_account.rb', line 40
|
Instance Attribute Details
#created_at ⇒ Integer
The Unix timestamp (in seconds) of when the service account was created
20 |
# File 'lib/openai/models/admin/organization/projects/project_service_account.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_service_account.rb', line 14 required :id, String |
#name ⇒ String
The name of the service account
26 |
# File 'lib/openai/models/admin/organization/projects/project_service_account.rb', line 26 required :name, String |
#object ⇒ Symbol, :"organization.project.service_account"
The object type, which is always ‘organization.project.service_account`
32 |
# File 'lib/openai/models/admin/organization/projects/project_service_account.rb', line 32 required :object, const: :"organization.project.service_account" |
#role ⇒ Symbol, OpenAI::Models::Admin::Organization::Projects::ProjectServiceAccount::Role
‘owner` or `member`
38 |
# File 'lib/openai/models/admin/organization/projects/project_service_account.rb', line 38 required :role, enum: -> { OpenAI::Admin::Organization::Projects::ProjectServiceAccount::Role } |