Class: OpenAI::Models::Admin::Organization::Projects::ProjectServiceAccount

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/admin/organization/projects/project_service_account.rb

Overview

Defined Under Namespace

Modules: Role

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • id (String)

    The identifier, which can be referenced in API endpoints

  • created_at (Integer)

    The Unix timestamp (in seconds) of when the service account was created

  • name (String)

    The name of the service account

  • role (Symbol, OpenAI::Models::Admin::Organization::Projects::ProjectServiceAccount::Role)

    ‘owner` or `member`

  • object (Symbol, :"organization.project.service_account") (defaults to: :"organization.project.service_account")

    The object type, which is always ‘organization.project.service_account`



# File 'lib/openai/models/admin/organization/projects/project_service_account.rb', line 40

Instance Attribute Details

#created_atInteger

The Unix timestamp (in seconds) of when the service account was created

Returns:

  • (Integer)


20
# File 'lib/openai/models/admin/organization/projects/project_service_account.rb', line 20

required :created_at, Integer

#idString

The identifier, which can be referenced in API endpoints

Returns:

  • (String)


14
# File 'lib/openai/models/admin/organization/projects/project_service_account.rb', line 14

required :id, String

#nameString

The name of the service account

Returns:

  • (String)


26
# File 'lib/openai/models/admin/organization/projects/project_service_account.rb', line 26

required :name, String

#objectSymbol, :"organization.project.service_account"

The object type, which is always ‘organization.project.service_account`

Returns:

  • (Symbol, :"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"

#roleSymbol, 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 }