class

OpenAI::Certificate

Inherits JSON::Serializable < Reference < Object

Represents an individual certificate uploaded to the organization.

Constructors

new(object : CertificateObject = CertificateObject::Certificate, id : String = "", name : String = "", created_at : Int64 = 0, certificate_details : CertificateCertificateDetails = CertificateCertificateDetails.new, active : Bool | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

active

Whether the certificate is currently active at the specified scope. Not returned when getting details for a specific certificate.

Source
active=(active : Bool | Nil)

Whether the certificate is currently active at the specified scope. Not returned when getting details for a specific certificate.

Source
certificate_details
Source
certificate_details=(certificate_details : CertificateCertificateDetails)
Source
created_at

The Unix timestamp (in seconds) of when the certificate was uploaded.

Source
created_at=(created_at : Int64)

The Unix timestamp (in seconds) of when the certificate was uploaded.

Source
id

The identifier, which can be referenced in API endpoints

Source
id=(id : String)

The identifier, which can be referenced in API endpoints

Source
name

The name of the certificate.

Source
name=(name : String)

The name of the certificate.

Source
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.
Source
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.
Source