Class: Google::Apis::PrivatecaV1beta1::SubjectConfig
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1beta1::SubjectConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/privateca_v1beta1/classes.rb,
generated/google/apis/privateca_v1beta1/representations.rb,
generated/google/apis/privateca_v1beta1/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
-
#common_name ⇒ String
Optional.
-
#subject ⇒ Google::Apis::PrivatecaV1beta1::Subject
Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate.
-
#subject_alt_name ⇒ Google::Apis::PrivatecaV1beta1::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).
Instance Method Summary collapse
-
#initialize(**args) ⇒ SubjectConfig
constructor
A new instance of SubjectConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SubjectConfig
Returns a new instance of SubjectConfig.
2267 2268 2269 |
# File 'generated/google/apis/privateca_v1beta1/classes.rb', line 2267 def initialize(**args) update!(**args) end |
Instance Attribute Details
#common_name ⇒ String
Optional. The "common name" of the distinguished name.
Corresponds to the JSON property commonName
2252 2253 2254 |
# File 'generated/google/apis/privateca_v1beta1/classes.rb', line 2252 def common_name @common_name end |
#subject ⇒ Google::Apis::PrivatecaV1beta1::Subject
Subject describes parts of a distinguished name that, in turn, describes the
subject of the certificate.
Corresponds to the JSON property subject
2258 2259 2260 |
# File 'generated/google/apis/privateca_v1beta1/classes.rb', line 2258 def subject @subject end |
#subject_alt_name ⇒ Google::Apis::PrivatecaV1beta1::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
2265 2266 2267 |
# File 'generated/google/apis/privateca_v1beta1/classes.rb', line 2265 def subject_alt_name @subject_alt_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2272 2273 2274 2275 2276 |
# File 'generated/google/apis/privateca_v1beta1/classes.rb', line 2272 def update!(**args) @common_name = args[:common_name] if args.key?(:common_name) @subject = args[:subject] if args.key?(:subject) @subject_alt_name = args[:subject_alt_name] if args.key?(:subject_alt_name) end |