Class: OpenAI::Models::Admin::Organization::Projects::ProjectAPIKey::Owner::ServiceAccount

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/admin/organization/projects/project_api_key.rb,
sig/openai/models/admin/organization/projects/project_api_key.rbs

Overview

See Also:

  • OpenAI::Models::Admin::Organization::Projects::ProjectAPIKey::Owner#service_account

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

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_with_error, 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 ⇒ Object

Parameters:

  • id —

    The identifier, which can be referenced in API endpoints

  • created_at —

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

  • name —

    The name of the service account.

  • role —

    The service account's project role.



164
# File 'sig/openai/models/admin/organization/projects/project_api_key.rbs', line 164

def initialize: (

Instance Attribute Details

#created_at ⇒ Integer

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

Returns:

  • (Integer)


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

Returns:

  • (String)


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.

Returns:

  • (String)


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.

Returns:

  • (String)


154
# File 'lib/openai/models/admin/organization/projects/project_api_key.rb', line 154

required :role, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


171
# File 'sig/openai/models/admin/organization/projects/project_api_key.rbs', line 171

def to_hash: -> {