Class: OpenAI::Models::Admin::Organization::Projects::ServiceAccounts::APIKeyCreateResponse

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

Overview

See Also:

  • OpenAI::Resources::Admin::Organization::Projects::ServiceAccounts::APIKeys#create

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:, value:, object: :"organization.project.service_account.api_key") ⇒ Object

Parameters:

  • id (String)

    The identifier of the API key.

  • created_at (Integer)

    The Unix timestamp (in seconds) when the API key was created.

  • name (String)

    The name of the API key.

  • value (String)

    The unredacted API key value.

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

    The object type, which is always organization.project.service_account.api_key



# File 'lib/openai/models/admin/organization/projects/service_accounts/api_key_create_response.rb', line 41

Instance Attribute Details

#created_atInteger

The Unix timestamp (in seconds) when the API key was created.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


21
# File 'lib/openai/models/admin/organization/projects/service_accounts/api_key_create_response.rb', line 21

required :created_at, Integer

#idString

The identifier of the API key.

Parameters:

  • value (String)

Returns:

  • (String)


15
# File 'lib/openai/models/admin/organization/projects/service_accounts/api_key_create_response.rb', line 15

required :id, String

#nameString

The name of the API key.

Parameters:

  • value (String)

Returns:

  • (String)


27
# File 'lib/openai/models/admin/organization/projects/service_accounts/api_key_create_response.rb', line 27

required :name, String

#objectSymbol, :"organization.project.service_account.api_key"

The object type, which is always organization.project.service_account.api_key

Parameters:

  • value (:"organization.project.service_account.api_key")

Returns:

  • (Symbol, :"organization.project.service_account.api_key")


33
# File 'lib/openai/models/admin/organization/projects/service_accounts/api_key_create_response.rb', line 33

required :object, const: :"organization.project.service_account.api_key"

#valueString

The unredacted API key value.

Parameters:

  • value (String)

Returns:

  • (String)


39
# File 'lib/openai/models/admin/organization/projects/service_accounts/api_key_create_response.rb', line 39

required :value, String

Instance Method Details

#to_hash{

Returns:

  • ({)


35
# File 'sig/openai/models/admin/organization/projects/service_accounts/api_key_create_response.rbs', line 35

def to_hash: -> {