Class: OpenAI::Models::Admin::Organization::Certificate::CertificateDetails

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

Overview

See Also:

  • OpenAI::Models::Admin::Organization::Certificate#certificate_details

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_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, 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 ⇒ Object

Parameters:

  • content —

    The content of the certificate in PEM format.

  • expires_at —

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

  • valid_at —

    The Unix timestamp (in seconds) of when the certificate becomes valid.



109
# File 'sig/openai/models/admin/organization/certificate.rbs', line 109

def initialize: (

Instance Attribute Details

#content ⇒ String?

The content of the certificate in PEM format.

Returns:

  • (String, nil)


86
# File 'lib/openai/models/admin/organization/certificate.rb', line 86

optional :content, String

#expires_at ⇒ Integer?

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

Returns:

  • (Integer, nil)


92
# File 'lib/openai/models/admin/organization/certificate.rb', line 92

optional :expires_at, Integer

#valid_at ⇒ Integer?

The Unix timestamp (in seconds) of when the certificate becomes valid.

Returns:

  • (Integer, nil)


98
# File 'lib/openai/models/admin/organization/certificate.rb', line 98

optional :valid_at, Integer

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


115
# File 'sig/openai/models/admin/organization/certificate.rbs', line 115

def to_hash: -> {