# Certificate Authority Service V1 API - Class Google::Cloud::Security::PrivateCA::V1::CertificateConfig::SubjectConfig (v2.8.0)

2.8.0 (latest) 2.7.0 2.6.1 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.13.0 0.12.0 0.11.0 0.10.2 0.9.0 0.8.1 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.6 Reference documentation and code samples for the Certificate Authority Service V1 API class Google::Cloud::Security::PrivateCA::V1::CertificateConfig::SubjectConfig.

These values are used to create the distinguished name and subject
alternative name fields in an X.509 certificate.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #subject

    def subject() -> ::Google::Cloud::Security::PrivateCA::V1::Subject

**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::Subject](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Subject)) --- Optional. Contains distinguished name fields such as the common name, location and organization.

### #subject=

    def subject=(value) -> ::Google::Cloud::Security::PrivateCA::V1::Subject

**Parameter**

- **value** ([::Google::Cloud::Security::PrivateCA::V1::Subject](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Subject)) --- Optional. Contains distinguished name fields such as the common name, location and organization.
**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::Subject](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Subject)) --- Optional. Contains distinguished name fields such as the common name, location and organization.

### #subject_alt_name

    def subject_alt_name() -> ::Google::Cloud::Security::PrivateCA::V1::SubjectAltNames

**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::SubjectAltNames](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-SubjectAltNames)) --- Optional. The subject alternative name fields.

### #subject_alt_name=

    def subject_alt_name=(value) -> ::Google::Cloud::Security::PrivateCA::V1::SubjectAltNames

**Parameter**

- **value** ([::Google::Cloud::Security::PrivateCA::V1::SubjectAltNames](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-SubjectAltNames)) --- Optional. The subject alternative name fields.
**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::SubjectAltNames](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-SubjectAltNames)) --- Optional. The subject alternative name fields.