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.
-
#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.
2535 2536 2537 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2535 def initialize(**args) update!(**args) end |
Instance Attribute Details
#common_name ⇒ String
The "common name" of the subject.
Corresponds to the JSON property commonName
2498 2499 2500 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2498 def common_name @common_name end |
#country_code ⇒ String
The country code of the subject.
Corresponds to the JSON property countryCode
2503 2504 2505 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2503 def country_code @country_code end |
#locality ⇒ String
The locality or city of the subject.
Corresponds to the JSON property locality
2508 2509 2510 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2508 def locality @locality end |
#organization ⇒ String
The organization of the subject.
Corresponds to the JSON property organization
2513 2514 2515 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2513 def organization @organization end |
#organizational_unit ⇒ String
The organizational_unit of the subject.
Corresponds to the JSON property organizationalUnit
2518 2519 2520 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2518 def organizational_unit @organizational_unit end |
#postal_code ⇒ String
The postal code of the subject.
Corresponds to the JSON property postalCode
2523 2524 2525 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2523 def postal_code @postal_code end |
#province ⇒ String
The province, territory, or regional state of the subject.
Corresponds to the JSON property province
2528 2529 2530 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2528 def province @province end |
#street_address ⇒ String
The street address of the subject.
Corresponds to the JSON property streetAddress
2533 2534 2535 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2533 def street_address @street_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2540 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) @street_address = args[:street_address] if args.key?(:street_address) end |