Class: Google::Apis::PrivatecaV1beta1::Subject

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Subject

Returns a new instance of Subject.



2221
2222
2223
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2221

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

Instance Attribute Details

#country_codeString

The country code of the subject. Corresponds to the JSON property countryCode

Returns:

  • (String)


2189
2190
2191
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2189

def country_code
  @country_code
end

#localityString

The locality or city of the subject. Corresponds to the JSON property locality

Returns:

  • (String)


2194
2195
2196
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2194

def locality
  @locality
end

#organizationString

The organization of the subject. Corresponds to the JSON property organization

Returns:

  • (String)


2199
2200
2201
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2199

def organization
  @organization
end

#organizational_unitString

The organizational_unit of the subject. Corresponds to the JSON property organizationalUnit

Returns:

  • (String)


2204
2205
2206
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2204

def organizational_unit
  @organizational_unit
end

#postal_codeString

The postal code of the subject. Corresponds to the JSON property postalCode

Returns:

  • (String)


2209
2210
2211
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2209

def postal_code
  @postal_code
end

#provinceString

The province, territory, or regional state of the subject. Corresponds to the JSON property province

Returns:

  • (String)


2214
2215
2216
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2214

def province
  @province
end

#street_addressString

The street address of the subject. Corresponds to the JSON property streetAddress

Returns:

  • (String)


2219
2220
2221
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2219

def street_address
  @street_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2226
2227
2228
2229
2230
2231
2232
2233
2234
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2226

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