# Certificate Authority Service V1 API - Class Google::Cloud::Security::PrivateCA::V1::CertificateIdentityConstraints (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::CertificateIdentityConstraints.

Describes constraints on a
[Certificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Certificate "Google::Cloud::Security::PrivateCA::V1::Certificate (class)")'s
[Subject](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Subject "Google::Cloud::Security::PrivateCA::V1::Subject (class)") and
[SubjectAltNames](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-SubjectAltNames "Google::Cloud::Security::PrivateCA::V1::SubjectAltNames (class)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #allow_subject_alt_names_passthrough

    def allow_subject_alt_names_passthrough() -> ::Boolean

**Returns**

- (::Boolean) --- Required. If this is true, the [SubjectAltNames](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-SubjectAltNames "Google::Cloud::Security::PrivateCA::V1::SubjectAltNames (class)") extension may be copied from a certificate request into the signed certificate. Otherwise, the requested [SubjectAltNames](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-SubjectAltNames "Google::Cloud::Security::PrivateCA::V1::SubjectAltNames (class)") will be discarded.

### #allow_subject_alt_names_passthrough=

    def allow_subject_alt_names_passthrough=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Required. If this is true, the [SubjectAltNames](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-SubjectAltNames "Google::Cloud::Security::PrivateCA::V1::SubjectAltNames (class)") extension may be copied from a certificate request into the signed certificate. Otherwise, the requested [SubjectAltNames](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-SubjectAltNames "Google::Cloud::Security::PrivateCA::V1::SubjectAltNames (class)") will be discarded.
**Returns**

- (::Boolean) --- Required. If this is true, the [SubjectAltNames](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-SubjectAltNames "Google::Cloud::Security::PrivateCA::V1::SubjectAltNames (class)") extension may be copied from a certificate request into the signed certificate. Otherwise, the requested [SubjectAltNames](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-SubjectAltNames "Google::Cloud::Security::PrivateCA::V1::SubjectAltNames (class)") will be discarded.

### #allow_subject_passthrough

    def allow_subject_passthrough() -> ::Boolean

**Returns**

- (::Boolean) --- Required. If this is true, the [Subject](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Subject "Google::Cloud::Security::PrivateCA::V1::Subject (class)") field may be copied from a certificate request into the signed certificate. Otherwise, the requested [Subject](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Subject "Google::Cloud::Security::PrivateCA::V1::Subject (class)") will be discarded.

### #allow_subject_passthrough=

    def allow_subject_passthrough=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Required. If this is true, the [Subject](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Subject "Google::Cloud::Security::PrivateCA::V1::Subject (class)") field may be copied from a certificate request into the signed certificate. Otherwise, the requested [Subject](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Subject "Google::Cloud::Security::PrivateCA::V1::Subject (class)") will be discarded.
**Returns**

- (::Boolean) --- Required. If this is true, the [Subject](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Subject "Google::Cloud::Security::PrivateCA::V1::Subject (class)") field may be copied from a certificate request into the signed certificate. Otherwise, the requested [Subject](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Subject "Google::Cloud::Security::PrivateCA::V1::Subject (class)") will be discarded.

### #cel_expression

    def cel_expression() -> ::Google::Type::Expr

**Returns**

- ([::Google::Type::Expr](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Type-Expr)) --- Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see https://cloud.google.com/certificate-authority-service/docs/using-cel

### #cel_expression=

    def cel_expression=(value) -> ::Google::Type::Expr

**Parameter**

- **value** ([::Google::Type::Expr](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Type-Expr)) --- Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see https://cloud.google.com/certificate-authority-service/docs/using-cel
**Returns**

- ([::Google::Type::Expr](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Type-Expr)) --- Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see https://cloud.google.com/certificate-authority-service/docs/using-cel