Google Certificate Authority Service V1 Client - Class Subject (1.5.0)

Reference documentation and code samples for the Google Certificate Authority Service V1 Client class Subject.

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

Generated from protobuf message google.cloud.security.privateca.v1.Subject

Namespace

Google \ Cloud \ Security \ PrivateCA \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ common_name string

The "common name" of the subject.

↳ country_code string

The country code of the subject.

↳ organization string

The organization of the subject.

↳ organizational_unit string

The organizational_unit of the subject.

↳ locality string

The locality or city of the subject.

↳ province string

The province, territory, or regional state of the subject.

↳ street_address string

The street address of the subject.

↳ postal_code string

The postal code of the subject.

getCommonName

The "common name" of the subject.

Returns
TypeDescription
string

setCommonName

The "common name" of the subject.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCountryCode

The country code of the subject.

Returns
TypeDescription
string

setCountryCode

The country code of the subject.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getOrganization

The organization of the subject.

Returns
TypeDescription
string

setOrganization

The organization of the subject.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getOrganizationalUnit

The organizational_unit of the subject.

Returns
TypeDescription
string

setOrganizationalUnit

The organizational_unit of the subject.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLocality

The locality or city of the subject.

Returns
TypeDescription
string

setLocality

The locality or city of the subject.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProvince

The province, territory, or regional state of the subject.

Returns
TypeDescription
string

setProvince

The province, territory, or regional state of the subject.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStreetAddress

The street address of the subject.

Returns
TypeDescription
string

setStreetAddress

The street address of the subject.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPostalCode

The postal code of the subject.

Returns
TypeDescription
string

setPostalCode

The postal code of the subject.

Parameter
NameDescription
var string
Returns
TypeDescription
$this