Reference documentation and code samples for the Google Certificate Authority Service V1beta1 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.v1beta1.Subject
Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ 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. |
getCountryCode
The country code of the subject.
| Returns | |
|---|---|
| Type | Description |
string |
|
setCountryCode
The country code of the subject.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOrganization
The organization of the subject.
| Returns | |
|---|---|
| Type | Description |
string |
|
setOrganization
The organization of the subject.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOrganizationalUnit
The organizational_unit of the subject.
| Returns | |
|---|---|
| Type | Description |
string |
|
setOrganizationalUnit
The organizational_unit of the subject.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLocality
The locality or city of the subject.
| Returns | |
|---|---|
| Type | Description |
string |
|
setLocality
The locality or city of the subject.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getProvince
The province, territory, or regional state of the subject.
| Returns | |
|---|---|
| Type | Description |
string |
|
setProvince
The province, territory, or regional state of the subject.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getStreetAddress
The street address of the subject.
| Returns | |
|---|---|
| Type | Description |
string |
|
setStreetAddress
The street address of the subject.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPostalCode
The postal code of the subject.
| Returns | |
|---|---|
| Type | Description |
string |
|
setPostalCode
The postal code of the subject.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|