class Google::Apis::PrivatecaV1beta1::SubjectDescription

These values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime.

Attributes

common_name[RW]

The “common name” of the distinguished name. Corresponds to the JSON property `commonName` @return [String]

hex_serial_number[RW]

The serial number encoded in lowercase hexadecimal. Corresponds to the JSON property `hexSerialNumber` @return [String]

lifetime[RW]

For convenience, the actual lifetime of an issued certificate. Corresponds to ' not_after_time' - 'not_before_time'. Corresponds to the JSON property `lifetime` @return [String]

not_after_time[RW]

The time at which the certificate expires. Corresponds to the JSON property `notAfterTime` @return [String]

not_before_time[RW]

The time at which the certificate becomes valid. Corresponds to the JSON property `notBeforeTime` @return [String]

subject[RW]

Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. Corresponds to the JSON property `subject` @return [Google::Apis::PrivatecaV1beta1::Subject]

subject_alt_name[RW]

SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the “common name” in the distinguished name). Corresponds to the JSON property `subjectAltName` @return [Google::Apis::PrivatecaV1beta1::SubjectAltNames]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/privateca_v1beta1/classes.rb, line 2357
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/privateca_v1beta1/classes.rb, line 2362
def update!(**args)
  @common_name = args[:common_name] if args.key?(:common_name)
  @hex_serial_number = args[:hex_serial_number] if args.key?(:hex_serial_number)
  @lifetime = args[:lifetime] if args.key?(:lifetime)
  @not_after_time = args[:not_after_time] if args.key?(:not_after_time)
  @not_before_time = args[:not_before_time] if args.key?(:not_before_time)
  @subject = args[:subject] if args.key?(:subject)
  @subject_alt_name = args[:subject_alt_name] if args.key?(:subject_alt_name)
end