# Certificate Authority Service V1beta1 API - Class Google::Cloud::Security::PrivateCA::V1beta1::Subject (v0.18.0)

0.18.0 (latest) 0.17.1 0.16.0 0.15.1 0.14.0 0.13.0 0.12.1 0.11.0 0.10.0 0.9.1 0.8.2 0.7.0 0.6.1 0.5.0 0.4.0 0.3.6 Reference documentation and code samples for the Certificate Authority Service V1beta1 API class Google::Cloud::Security::PrivateCA::V1beta1::Subject.

[Subject](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1beta1/latest/Google-Cloud-Security-PrivateCA-V1beta1-Subject "Google::Cloud::Security::PrivateCA::V1beta1::Subject (class)") describes parts of a distinguished name that, in turn,
describes the subject of the certificate.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #country_code

    def country_code() -> ::String

**Returns**

- (::String) --- The country code of the subject.

### #country_code=

    def country_code=(value) -> ::String

**Parameter**

- **value** (::String) --- The country code of the subject.
**Returns**

- (::String) --- The country code of the subject.

### #locality

    def locality() -> ::String

**Returns**

- (::String) --- The locality or city of the subject.

### #locality=

    def locality=(value) -> ::String

**Parameter**

- **value** (::String) --- The locality or city of the subject.
**Returns**

- (::String) --- The locality or city of the subject.

### #organization

    def organization() -> ::String

**Returns**

- (::String) --- The organization of the subject.

### #organization=

    def organization=(value) -> ::String

**Parameter**

- **value** (::String) --- The organization of the subject.
**Returns**

- (::String) --- The organization of the subject.

### #organizational_unit

    def organizational_unit() -> ::String

**Returns**

- (::String) --- The organizational_unit of the subject.

### #organizational_unit=

    def organizational_unit=(value) -> ::String

**Parameter**

- **value** (::String) --- The organizational_unit of the subject.
**Returns**

- (::String) --- The organizational_unit of the subject.

### #postal_code

    def postal_code() -> ::String

**Returns**

- (::String) --- The postal code of the subject.

### #postal_code=

    def postal_code=(value) -> ::String

**Parameter**

- **value** (::String) --- The postal code of the subject.
**Returns**

- (::String) --- The postal code of the subject.

### #province

    def province() -> ::String

**Returns**

- (::String) --- The province, territory, or regional state of the subject.

### #province=

    def province=(value) -> ::String

**Parameter**

- **value** (::String) --- The province, territory, or regional state of the subject.
**Returns**

- (::String) --- The province, territory, or regional state of the subject.

### #street_address

    def street_address() -> ::String

**Returns**

- (::String) --- The street address of the subject.

### #street_address=

    def street_address=(value) -> ::String

**Parameter**

- **value** (::String) --- The street address of the subject.
**Returns**

- (::String) --- The street address of the subject.