OpenAI::ProjectApiKey
Inherits JSON::Serializable < Reference < Object
Represents an individual API key in a project.
Constructors
new(pull : JSON::PullParser)
Sourcenew(object : ProjectApiKeyObject = ProjectApiKeyObject::OrganizationProjectApiKey, redacted_value : String = "", name : String = "", created_at : Int64 = 0, last_used_at : Int64 = 0, id : String = "", owner : ProjectApiKeyOwner = ProjectApiKeyOwner.new)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
created_at=(created_at : Int64)
The Unix timestamp (in seconds) of when the API key was created
last_used_at=(last_used_at : Int64)
The Unix timestamp (in seconds) of when the API key was last used.
object=(object : ProjectApiKeyObject)
The object type, which is always organization.project.api_key
owner
Sourceowner=(owner : ProjectApiKeyOwner)
Source