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

Defines controls over all certificate issuance within a
[CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #allow_requester_specified_not_before_time

    def allow_requester_specified_not_before_time() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. If set to true, allows requesters to specify the [requested_not_before_time](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_requested_not_before_time_instance_ "Google::Cloud::Security::PrivateCA::V1::Certificate#requested_not_before_time (method)") field when creating 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)"). Certificates requested with this option enabled will have a 'not_before_time' equal to the value specified in the request. The 'not_after_time' will be adjusted to preserve the requested lifetime. The maximum time that a certificate can be backdated with these options is 48 hours in the past. This option cannot be set if [backdate_duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy#Google__Cloud__Security__PrivateCA__V1__CaPool__IssuancePolicy_backdate_duration_instance_ "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy#backdate_duration (method)") is set.

### #allow_requester_specified_not_before_time=

    def allow_requester_specified_not_before_time=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. If set to true, allows requesters to specify the [requested_not_before_time](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_requested_not_before_time_instance_ "Google::Cloud::Security::PrivateCA::V1::Certificate#requested_not_before_time (method)") field when creating 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)"). Certificates requested with this option enabled will have a 'not_before_time' equal to the value specified in the request. The 'not_after_time' will be adjusted to preserve the requested lifetime. The maximum time that a certificate can be backdated with these options is 48 hours in the past. This option cannot be set if [backdate_duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy#Google__Cloud__Security__PrivateCA__V1__CaPool__IssuancePolicy_backdate_duration_instance_ "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy#backdate_duration (method)") is set.
**Returns**

- (::Boolean) --- Optional. If set to true, allows requesters to specify the [requested_not_before_time](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_requested_not_before_time_instance_ "Google::Cloud::Security::PrivateCA::V1::Certificate#requested_not_before_time (method)") field when creating 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)"). Certificates requested with this option enabled will have a 'not_before_time' equal to the value specified in the request. The 'not_after_time' will be adjusted to preserve the requested lifetime. The maximum time that a certificate can be backdated with these options is 48 hours in the past. This option cannot be set if [backdate_duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy#Google__Cloud__Security__PrivateCA__V1__CaPool__IssuancePolicy_backdate_duration_instance_ "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy#backdate_duration (method)") is set.

### #allowed_issuance_modes

    def allowed_issuance_modes() -> ::Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy::IssuanceModes

**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy::IssuanceModes](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy-IssuanceModes)) --- Optional. If specified, then only methods allowed in the [IssuanceModes](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy-IssuanceModes "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy::IssuanceModes (class)") may be used to issue [Certificates](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)").

### #allowed_issuance_modes=

    def allowed_issuance_modes=(value) -> ::Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy::IssuanceModes

**Parameter**

- **value** ([::Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy::IssuanceModes](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy-IssuanceModes)) --- Optional. If specified, then only methods allowed in the [IssuanceModes](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy-IssuanceModes "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy::IssuanceModes (class)") may be used to issue [Certificates](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)").
**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy::IssuanceModes](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy-IssuanceModes)) --- Optional. If specified, then only methods allowed in the [IssuanceModes](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy-IssuanceModes "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy::IssuanceModes (class)") may be used to issue [Certificates](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)").

### #allowed_key_types

    def allowed_key_types() -> ::Array<::Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy::AllowedKeyType>

**Returns**

- (::Array\<[::Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy::AllowedKeyType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy-AllowedKeyType)\>) --- Optional. If any [AllowedKeyType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy-AllowedKeyType "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy::AllowedKeyType (class)") is specified, then the certificate request's public key must match one of the key types listed here. Otherwise, any key may be used.

### #allowed_key_types=

    def allowed_key_types=(value) -> ::Array<::Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy::AllowedKeyType>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy::AllowedKeyType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy-AllowedKeyType)\>) --- Optional. If any [AllowedKeyType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy-AllowedKeyType "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy::AllowedKeyType (class)") is specified, then the certificate request's public key must match one of the key types listed here. Otherwise, any key may be used.
**Returns**

- (::Array\<[::Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy::AllowedKeyType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy-AllowedKeyType)\>) --- Optional. If any [AllowedKeyType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy-AllowedKeyType "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy::AllowedKeyType (class)") is specified, then the certificate request's public key must match one of the key types listed here. Otherwise, any key may be used.

### #backdate_duration

    def backdate_duration() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Protobuf-Duration)) --- Optional. If set, all certificates issued from this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)") will be backdated by this duration. The 'not_before_time' will be the issuance time minus this [backdate_duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy#Google__Cloud__Security__PrivateCA__V1__CaPool__IssuancePolicy_backdate_duration_instance_ "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy#backdate_duration (method)"), and the 'not_after_time' will be adjusted to preserve the requested lifetime. The maximum duration that a certificate can be backdated with these options is 48 hours in the past. This option cannot be set if [allow_requester_specified_not_before_time](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy#Google__Cloud__Security__PrivateCA__V1__CaPool__IssuancePolicy_allow_requester_specified_not_before_time_instance_ "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy#allow_requester_specified_not_before_time (method)") is set.

### #backdate_duration=

    def backdate_duration=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Protobuf-Duration)) --- Optional. If set, all certificates issued from this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)") will be backdated by this duration. The 'not_before_time' will be the issuance time minus this [backdate_duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy#Google__Cloud__Security__PrivateCA__V1__CaPool__IssuancePolicy_backdate_duration_instance_ "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy#backdate_duration (method)"), and the 'not_after_time' will be adjusted to preserve the requested lifetime. The maximum duration that a certificate can be backdated with these options is 48 hours in the past. This option cannot be set if [allow_requester_specified_not_before_time](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy#Google__Cloud__Security__PrivateCA__V1__CaPool__IssuancePolicy_allow_requester_specified_not_before_time_instance_ "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy#allow_requester_specified_not_before_time (method)") is set.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Protobuf-Duration)) --- Optional. If set, all certificates issued from this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)") will be backdated by this duration. The 'not_before_time' will be the issuance time minus this [backdate_duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy#Google__Cloud__Security__PrivateCA__V1__CaPool__IssuancePolicy_backdate_duration_instance_ "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy#backdate_duration (method)"), and the 'not_after_time' will be adjusted to preserve the requested lifetime. The maximum duration that a certificate can be backdated with these options is 48 hours in the past. This option cannot be set if [allow_requester_specified_not_before_time](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy#Google__Cloud__Security__PrivateCA__V1__CaPool__IssuancePolicy_allow_requester_specified_not_before_time_instance_ "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy#allow_requester_specified_not_before_time (method)") is set.

### #baseline_values

    def baseline_values() -> ::Google::Cloud::Security::PrivateCA::V1::X509Parameters

**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::X509Parameters](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-X509Parameters)) --- Optional. A set of X.509 values that will be applied to all certificates issued through this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)"). If a certificate request includes conflicting values for the same properties, they will be overwritten by the values defined here. If a certificate request uses a [CertificateTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateTemplate "Google::Cloud::Security::PrivateCA::V1::CertificateTemplate (class)") that defines conflicting [predefined_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateTemplate#Google__Cloud__Security__PrivateCA__V1__CertificateTemplate_predefined_values_instance_ "Google::Cloud::Security::PrivateCA::V1::CertificateTemplate#predefined_values (method)") for the same properties, the certificate issuance request will fail.

### #baseline_values=

    def baseline_values=(value) -> ::Google::Cloud::Security::PrivateCA::V1::X509Parameters

**Parameter**

- **value** ([::Google::Cloud::Security::PrivateCA::V1::X509Parameters](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-X509Parameters)) --- Optional. A set of X.509 values that will be applied to all certificates issued through this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)"). If a certificate request includes conflicting values for the same properties, they will be overwritten by the values defined here. If a certificate request uses a [CertificateTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateTemplate "Google::Cloud::Security::PrivateCA::V1::CertificateTemplate (class)") that defines conflicting [predefined_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateTemplate#Google__Cloud__Security__PrivateCA__V1__CertificateTemplate_predefined_values_instance_ "Google::Cloud::Security::PrivateCA::V1::CertificateTemplate#predefined_values (method)") for the same properties, the certificate issuance request will fail.
**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::X509Parameters](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-X509Parameters)) --- Optional. A set of X.509 values that will be applied to all certificates issued through this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)"). If a certificate request includes conflicting values for the same properties, they will be overwritten by the values defined here. If a certificate request uses a [CertificateTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateTemplate "Google::Cloud::Security::PrivateCA::V1::CertificateTemplate (class)") that defines conflicting [predefined_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateTemplate#Google__Cloud__Security__PrivateCA__V1__CertificateTemplate_predefined_values_instance_ "Google::Cloud::Security::PrivateCA::V1::CertificateTemplate#predefined_values (method)") for the same properties, the certificate issuance request will fail.

### #identity_constraints

    def identity_constraints() -> ::Google::Cloud::Security::PrivateCA::V1::CertificateIdentityConstraints

**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::CertificateIdentityConstraints](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateIdentityConstraints)) --- Optional. Describes constraints on identities that may appear in [Certificates](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)") issued through this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)"). If this is omitted, then this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)") will not add restrictions on a certificate's identity.

### #identity_constraints=

    def identity_constraints=(value) -> ::Google::Cloud::Security::PrivateCA::V1::CertificateIdentityConstraints

**Parameter**

- **value** ([::Google::Cloud::Security::PrivateCA::V1::CertificateIdentityConstraints](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateIdentityConstraints)) --- Optional. Describes constraints on identities that may appear in [Certificates](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)") issued through this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)"). If this is omitted, then this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)") will not add restrictions on a certificate's identity.
**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::CertificateIdentityConstraints](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateIdentityConstraints)) --- Optional. Describes constraints on identities that may appear in [Certificates](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)") issued through this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)"). If this is omitted, then this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)") will not add restrictions on a certificate's identity.

### #maximum_lifetime

    def maximum_lifetime() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Protobuf-Duration)) --- Optional. The maximum lifetime allowed for issued [Certificates](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)"). Note that if the issuing [CertificateAuthority](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateAuthority "Google::Cloud::Security::PrivateCA::V1::CertificateAuthority (class)") expires before 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)") resource's requested maximum_lifetime, the effective lifetime will be explicitly truncated to match it.

### #maximum_lifetime=

    def maximum_lifetime=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Protobuf-Duration)) --- Optional. The maximum lifetime allowed for issued [Certificates](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)"). Note that if the issuing [CertificateAuthority](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateAuthority "Google::Cloud::Security::PrivateCA::V1::CertificateAuthority (class)") expires before 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)") resource's requested maximum_lifetime, the effective lifetime will be explicitly truncated to match it.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Protobuf-Duration)) --- Optional. The maximum lifetime allowed for issued [Certificates](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)"). Note that if the issuing [CertificateAuthority](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateAuthority "Google::Cloud::Security::PrivateCA::V1::CertificateAuthority (class)") expires before 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)") resource's requested maximum_lifetime, the effective lifetime will be explicitly truncated to match it.

### #passthrough_extensions

    def passthrough_extensions() -> ::Google::Cloud::Security::PrivateCA::V1::CertificateExtensionConstraints

**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::CertificateExtensionConstraints](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateExtensionConstraints)) --- Optional. Describes the set of X.509 extensions that may appear in 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)") issued through this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)"). If a certificate request sets extensions that don't appear in the [passthrough_extensions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy#Google__Cloud__Security__PrivateCA__V1__CaPool__IssuancePolicy_passthrough_extensions_instance_ "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy#passthrough_extensions (method)"), those extensions will be dropped. If a certificate request uses a [CertificateTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateTemplate "Google::Cloud::Security::PrivateCA::V1::CertificateTemplate (class)") with [predefined_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateTemplate#Google__Cloud__Security__PrivateCA__V1__CertificateTemplate_predefined_values_instance_ "Google::Cloud::Security::PrivateCA::V1::CertificateTemplate#predefined_values (method)") that don't appear here, the certificate issuance request will fail. If this is omitted, then this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)") will not add restrictions on a certificate's X.509 extensions. These constraints do not apply to X.509 extensions set in this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)")'s [baseline_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy#Google__Cloud__Security__PrivateCA__V1__CaPool__IssuancePolicy_baseline_values_instance_ "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy#baseline_values (method)").

### #passthrough_extensions=

    def passthrough_extensions=(value) -> ::Google::Cloud::Security::PrivateCA::V1::CertificateExtensionConstraints

**Parameter**

- **value** ([::Google::Cloud::Security::PrivateCA::V1::CertificateExtensionConstraints](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateExtensionConstraints)) --- Optional. Describes the set of X.509 extensions that may appear in 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)") issued through this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)"). If a certificate request sets extensions that don't appear in the [passthrough_extensions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy#Google__Cloud__Security__PrivateCA__V1__CaPool__IssuancePolicy_passthrough_extensions_instance_ "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy#passthrough_extensions (method)"), those extensions will be dropped. If a certificate request uses a [CertificateTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateTemplate "Google::Cloud::Security::PrivateCA::V1::CertificateTemplate (class)") with [predefined_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateTemplate#Google__Cloud__Security__PrivateCA__V1__CertificateTemplate_predefined_values_instance_ "Google::Cloud::Security::PrivateCA::V1::CertificateTemplate#predefined_values (method)") that don't appear here, the certificate issuance request will fail. If this is omitted, then this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)") will not add restrictions on a certificate's X.509 extensions. These constraints do not apply to X.509 extensions set in this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)")'s [baseline_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy#Google__Cloud__Security__PrivateCA__V1__CaPool__IssuancePolicy_baseline_values_instance_ "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy#baseline_values (method)").
**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::CertificateExtensionConstraints](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateExtensionConstraints)) --- Optional. Describes the set of X.509 extensions that may appear in 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)") issued through this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)"). If a certificate request sets extensions that don't appear in the [passthrough_extensions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy#Google__Cloud__Security__PrivateCA__V1__CaPool__IssuancePolicy_passthrough_extensions_instance_ "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy#passthrough_extensions (method)"), those extensions will be dropped. If a certificate request uses a [CertificateTemplate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateTemplate "Google::Cloud::Security::PrivateCA::V1::CertificateTemplate (class)") with [predefined_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateTemplate#Google__Cloud__Security__PrivateCA__V1__CertificateTemplate_predefined_values_instance_ "Google::Cloud::Security::PrivateCA::V1::CertificateTemplate#predefined_values (method)") that don't appear here, the certificate issuance request will fail. If this is omitted, then this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)") will not add restrictions on a certificate's X.509 extensions. These constraints do not apply to X.509 extensions set in this [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)")'s [baseline_values](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy#Google__Cloud__Security__PrivateCA__V1__CaPool__IssuancePolicy_baseline_values_instance_ "Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy#baseline_values (method)").