Class: Google::Apis::PrivatecaV1beta1::SubjectConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/privateca_v1beta1/classes.rb,
lib/google/apis/privateca_v1beta1/representations.rb,
lib/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SubjectConfig

Returns a new instance of SubjectConfig.



2296
2297
2298
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2296

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

Instance Attribute Details

#common_nameString

Optional. The "common name" of the distinguished name. Corresponds to the JSON property commonName

Returns:

  • (String)


2281
2282
2283
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2281

def common_name
  @common_name
end

#subjectGoogle::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



2287
2288
2289
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2287

def subject
  @subject
end

#subject_alt_nameGoogle::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



2294
2295
2296
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2294

def subject_alt_name
  @subject_alt_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2301
2302
2303
2304
2305
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2301

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