Class: Google::Apis::PrivatecaV1::SubjectConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/privateca_v1/classes.rb,
lib/google/apis/privateca_v1/representations.rb,
lib/google/apis/privateca_v1/representations.rb

Overview

These values are used to create the distinguished name and subject alternative name fields in an X.509 certificate.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SubjectConfig

Returns a new instance of SubjectConfig.



2616
2617
2618
# File 'lib/google/apis/privateca_v1/classes.rb', line 2616

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#subjectGoogle::Apis::PrivatecaV1::Subject

Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. Corresponds to the JSON property subject



2607
2608
2609
# File 'lib/google/apis/privateca_v1/classes.rb', line 2607

def subject
  @subject
end

#subject_alt_nameGoogle::Apis::PrivatecaV1::SubjectAltNames

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



2614
2615
2616
# File 'lib/google/apis/privateca_v1/classes.rb', line 2614

def subject_alt_name
  @subject_alt_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2621
2622
2623
2624
# File 'lib/google/apis/privateca_v1/classes.rb', line 2621

def update!(**args)
  @subject = args[:subject] if args.key?(:subject)
  @subject_alt_name = args[:subject_alt_name] if args.key?(:subject_alt_name)
end