class Google::Apis::PrivatecaV1beta1::Subject

Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate.

Attributes

country_code[RW]

The country code of the subject. Corresponds to the JSON property `countryCode` @return [String]

locality[RW]

The locality or city of the subject. Corresponds to the JSON property `locality` @return [String]

organization[RW]

The organization of the subject. Corresponds to the JSON property `organization` @return [String]

organizational_unit[RW]

The organizational_unit of the subject. Corresponds to the JSON property `organizationalUnit` @return [String]

postal_code[RW]

The postal code of the subject. Corresponds to the JSON property `postalCode` @return [String]

province[RW]

The province, territory, or regional state of the subject. Corresponds to the JSON property `province` @return [String]

street_address[RW]

The street address of the subject. Corresponds to the JSON property `streetAddress` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/privateca_v1beta1/classes.rb, line 2217
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/privateca_v1beta1/classes.rb, line 2222
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