OpenAI::Certificate
Inherits JSON::Serializable < Reference < Object
Represents an individual certificate uploaded to the organization.
Constructors
new(pull : JSON::PullParser)
Sourcenew(object : CertificateObject = CertificateObject::Certificate, id : String = "", name : String = "", created_at : Int64 = 0, certificate_details : CertificateCertificateDetails = CertificateCertificateDetails.new, active : Bool | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
active
Whether the certificate is currently active at the specified scope. Not returned when getting details for a specific certificate.
Whether the certificate is currently active at the specified scope. Not returned when getting details for a specific certificate.
certificate_details
Sourcecertificate_details=(certificate_details : CertificateCertificateDetails)
Sourcecreated_at=(created_at : Int64)
The Unix timestamp (in seconds) of when the certificate was uploaded.
object
The object type.
- If creating, updating, or getting a specific certificate, the object type is
certificate. - If listing, activating, or deactivating certificates for the organization, the object type is
organization.certificate. - If listing, activating, or deactivating certificates for a project, the object type is
organization.project.certificate.
object=(object : CertificateObject)
The object type.
- If creating, updating, or getting a specific certificate, the object type is
certificate. - If listing, activating, or deactivating certificates for the organization, the object type is
organization.certificate. - If listing, activating, or deactivating certificates for a project, the object type is
organization.project.certificate.