Class: Braintrust::Models::APIKey

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/braintrust/models/api_key.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseModel

#[], #initialize, #inspect, #to_h, #to_s

Constructor Details

This class inherits a constructor from Braintrust::BaseModel

Instance Attribute Details

#createdDateTime

Date of api key creation

Returns:

  • (DateTime)


23
# File 'lib/braintrust/models/api_key.rb', line 23

optional :created, DateTime

#idString

Unique identifier for the api key

Returns:

  • (String)


9
# File 'lib/braintrust/models/api_key.rb', line 9

required :id, String

#name_String

Name of the api key

Returns:

  • (String)


14
# File 'lib/braintrust/models/api_key.rb', line 14

required :name_, String

#org_idString

Unique identifier for the organization

Returns:

  • (String)


28
# File 'lib/braintrust/models/api_key.rb', line 28

optional :org_id, String

#preview_nameString

Returns:

  • (String)


18
# File 'lib/braintrust/models/api_key.rb', line 18

required :preview_name, String

#user_idString

Unique identifier for the user

Returns:

  • (String)


33
# File 'lib/braintrust/models/api_key.rb', line 33

optional :user_id, String