Class: Google::Apis::PrivatecaV1beta1::Subject
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1beta1::Subject
- 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
Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate.
Instance Attribute Summary collapse
-
#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.
-
#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.
2222 2223 2224 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2222 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country_code ⇒ String
The country code of the subject.
Corresponds to the JSON property countryCode
2190 2191 2192 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2190 def country_code @country_code end |
#locality ⇒ String
The locality or city of the subject.
Corresponds to the JSON property locality
2195 2196 2197 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2195 def locality @locality end |
#organization ⇒ String
The organization of the subject.
Corresponds to the JSON property organization
2200 2201 2202 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2200 def organization @organization end |
#organizational_unit ⇒ String
The organizational_unit of the subject.
Corresponds to the JSON property organizationalUnit
2205 2206 2207 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2205 def organizational_unit @organizational_unit end |
#postal_code ⇒ String
The postal code of the subject.
Corresponds to the JSON property postalCode
2210 2211 2212 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2210 def postal_code @postal_code end |
#province ⇒ String
The province, territory, or regional state of the subject.
Corresponds to the JSON property province
2215 2216 2217 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2215 def province @province end |
#street_address ⇒ String
The street address of the subject.
Corresponds to the JSON property streetAddress
2220 2221 2222 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2220 def street_address @street_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2227 2228 2229 2230 2231 2232 2233 2234 2235 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2227 def update!(**args) @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) @street_address = args[:street_address] if args.key?(:street_address) end |