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

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

Overview

See Also:

  • OpenAI::Models::Admin::Organization::AdminAPIKey#owner

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_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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) ⇒ Owner

Returns a new instance of Owner.

Parameters:

  • id (defaults to: nil) —

    The identifier, which can be referenced in API endpoints

  • created_at (defaults to: nil) —

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

  • name (defaults to: nil) —

    The name of the user

  • object (defaults to: nil) —

    The object type, which is always organization.user

  • role (defaults to: nil) —

    Always owner

  • type (defaults to: nil) —

    Always user

  • id: (String) (defaults to: nil)
  • created_at: (Integer) (defaults to: nil)
  • name: (String) (defaults to: nil)
  • object: (String) (defaults to: nil)
  • role: (String) (defaults to: nil)
  • type: (String) (defaults to: nil)


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

Instance Attribute Details

#created_at ⇒ Integer?

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

Returns:

  • (Integer, nil)


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

optional :created_at, Integer

#id ⇒ String?

The identifier, which can be referenced in API endpoints

Returns:

  • (String, nil)


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

optional :id, String

#name ⇒ String?

The name of the user

Returns:

  • (String, nil)


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

optional :name, String

#object ⇒ String?

The object type, which is always organization.user

Returns:

  • (String, nil)


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

optional :object, String

#role ⇒ String?

Always owner

Returns:

  • (String, nil)


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

optional :role, String

#type ⇒ String?

Always user

Returns:

  • (String, nil)


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

optional :type, String

Instance Method Details

#to_hash ⇒ { ?id: String, ?created_at: Integer, ?name: String, ?object: String, ?role: String, ?type: String }

Returns:

  • ({ ?id: String, ?created_at: Integer, ?name: String, ?object: String, ?role: String, ?type: String })


145
146
147
148
149
150
151
152
# File 'sig/openai/models/admin/organization/admin_api_key.rbs', line 145

def to_hash: -> {
  ?id: String,
  ?created_at: Integer,
  ?name: String,
  ?object: String,
  ?role: String,
  ?type: String
}