Class: OpenAI::Models::Admin::Organization::AdminAPIKey::Owner

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

Overview

See Also:

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: nil, created_at: nil, name: nil, object: nil, role: nil, type: nil) ⇒ Object

Parameters:

  • id (String) (defaults to: nil)

    The identifier, which can be referenced in API endpoints

  • created_at (Integer) (defaults to: nil)

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

  • name (String) (defaults to: nil)

    The name of the user

  • object (String) (defaults to: nil)

    The object type, which is always organization.user

  • role (String) (defaults to: nil)

    Always ‘owner`

  • type (String) (defaults to: nil)

    Always ‘user`



# File 'lib/openai/models/admin/organization/admin_api_key.rb', line 105

Instance Attribute Details

#created_atInteger?

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

Returns:

  • (Integer, nil)


79
# File 'lib/openai/models/admin/organization/admin_api_key.rb', line 79

optional :created_at, Integer

#idString?

The identifier, which can be referenced in API endpoints

Returns:

  • (String, nil)


73
# File 'lib/openai/models/admin/organization/admin_api_key.rb', line 73

optional :id, String

#nameString?

The name of the user

Returns:

  • (String, nil)


85
# File 'lib/openai/models/admin/organization/admin_api_key.rb', line 85

optional :name, String

#objectString?

The object type, which is always organization.user

Returns:

  • (String, nil)


91
# File 'lib/openai/models/admin/organization/admin_api_key.rb', line 91

optional :object, String

#roleString?

Always ‘owner`

Returns:

  • (String, nil)


97
# File 'lib/openai/models/admin/organization/admin_api_key.rb', line 97

optional :role, String

#typeString?

Always ‘user`

Returns:

  • (String, nil)


103
# File 'lib/openai/models/admin/organization/admin_api_key.rb', line 103

optional :type, String