Class: Google::Apis::PrivatecaV1::Subject
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1::Subject
- 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
Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate.
Instance Attribute Summary collapse
-
#common_name ⇒ String
The "common name" of the subject.
-
#country_code ⇒ String
The country code of the subject.
-
#locality ⇒ String
The locality or city of the subject.
-
#organization ⇒ String
The organization of the subject.
-
#organizational_unit ⇒ String
The organizational_unit of the subject.
-
#postal_code ⇒ String
The postal code of the subject.
-
#province ⇒ String
The province, territory, or regional state of the subject.
-
#rdn_sequence ⇒ Array<Google::Apis::PrivatecaV1::RelativeDistinguishedName>
This field can be used in place of the named subject fields.
-
#street_address ⇒ String
The street address of the subject.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Subject
constructor
A new instance of Subject.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Subject
Returns a new instance of Subject.
2618 2619 2620 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2618 def initialize(**args) update!(**args) end |
Instance Attribute Details
#common_name ⇒ String
The "common name" of the subject.
Corresponds to the JSON property commonName
2576 2577 2578 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2576 def common_name @common_name end |
#country_code ⇒ String
The country code of the subject.
Corresponds to the JSON property countryCode
2581 2582 2583 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2581 def country_code @country_code end |
#locality ⇒ String
The locality or city of the subject.
Corresponds to the JSON property locality
2586 2587 2588 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2586 def locality @locality end |
#organization ⇒ String
The organization of the subject.
Corresponds to the JSON property organization
2591 2592 2593 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2591 def organization @organization end |
#organizational_unit ⇒ String
The organizational_unit of the subject.
Corresponds to the JSON property organizationalUnit
2596 2597 2598 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2596 def organizational_unit @organizational_unit end |
#postal_code ⇒ String
The postal code of the subject.
Corresponds to the JSON property postalCode
2601 2602 2603 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2601 def postal_code @postal_code end |
#province ⇒ String
The province, territory, or regional state of the subject.
Corresponds to the JSON property province
2606 2607 2608 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2606 def province @province end |
#rdn_sequence ⇒ Array<Google::Apis::PrivatecaV1::RelativeDistinguishedName>
This field can be used in place of the named subject fields.
Corresponds to the JSON property rdnSequence
2611 2612 2613 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2611 def rdn_sequence @rdn_sequence end |
#street_address ⇒ String
The street address of the subject.
Corresponds to the JSON property streetAddress
2616 2617 2618 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2616 def street_address @street_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2623 def update!(**args) @common_name = args[:common_name] if args.key?(:common_name) @country_code = args[:country_code] if args.key?(:country_code) @locality = args[:locality] if args.key?(:locality) @organization = args[:organization] if args.key?(:organization) @organizational_unit = args[:organizational_unit] if args.key?(:organizational_unit) @postal_code = args[:postal_code] if args.key?(:postal_code) @province = args[:province] if args.key?(:province) @rdn_sequence = args[:rdn_sequence] if args.key?(:rdn_sequence) @street_address = args[:street_address] if args.key?(:street_address) end |