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

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)") represents a group of
[CertificateAuthorities](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)")
that form a trust anchor. 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)") can be used to manage
issuance policies for one or more
[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)")
resources and to rotate CA certificates in and out of the trust anchor.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #encryption_spec

    def encryption_spec() -> ::Google::Cloud::Security::PrivateCA::V1::EncryptionSpec

**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::EncryptionSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-EncryptionSpec)) --- Optional. When [EncryptionSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-EncryptionSpec "Google::Cloud::Security::PrivateCA::V1::EncryptionSpec (class)") is provided, 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)"), [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)"), and the PEM-encoded certificate fields will be encrypted at rest.

### #encryption_spec=

    def encryption_spec=(value) -> ::Google::Cloud::Security::PrivateCA::V1::EncryptionSpec

**Parameter**

- **value** ([::Google::Cloud::Security::PrivateCA::V1::EncryptionSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-EncryptionSpec)) --- Optional. When [EncryptionSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-EncryptionSpec "Google::Cloud::Security::PrivateCA::V1::EncryptionSpec (class)") is provided, 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)"), [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)"), and the PEM-encoded certificate fields will be encrypted at rest.
**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::EncryptionSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-EncryptionSpec)) --- Optional. When [EncryptionSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-EncryptionSpec "Google::Cloud::Security::PrivateCA::V1::EncryptionSpec (class)") is provided, 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)"), [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)"), and the PEM-encoded certificate fields will be encrypted at rest.

### #issuance_policy

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

**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy)) --- Optional. The [IssuancePolicy](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 (class)") to control how [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)") will be 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)").

### #issuance_policy=

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

**Parameter**

- **value** ([::Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy)) --- Optional. The [IssuancePolicy](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 (class)") to control how [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)") will be 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)").
**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-IssuancePolicy)) --- Optional. The [IssuancePolicy](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 (class)") to control how [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)") will be 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)").

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Labels with user-defined metadata.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Labels with user-defined metadata.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Labels with user-defined metadata.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. The resource name for 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)") in the format `projects/*/locations/*/caPools/*`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. The resource name for 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)") in the format `projects/*/locations/*/caPools/*`.
**Returns**

- (::String) --- Identifier. The resource name for 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)") in the format `projects/*/locations/*/caPools/*`.

### #publishing_options

    def publishing_options() -> ::Google::Cloud::Security::PrivateCA::V1::CaPool::PublishingOptions

**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::CaPool::PublishingOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-PublishingOptions)) --- Optional. The [PublishingOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-PublishingOptions "Google::Cloud::Security::PrivateCA::V1::CaPool::PublishingOptions (class)") to follow when issuing [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)") from any [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)") 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)").

### #publishing_options=

    def publishing_options=(value) -> ::Google::Cloud::Security::PrivateCA::V1::CaPool::PublishingOptions

**Parameter**

- **value** ([::Google::Cloud::Security::PrivateCA::V1::CaPool::PublishingOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-PublishingOptions)) --- Optional. The [PublishingOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-PublishingOptions "Google::Cloud::Security::PrivateCA::V1::CaPool::PublishingOptions (class)") to follow when issuing [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)") from any [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)") 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)").
**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::CaPool::PublishingOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-PublishingOptions)) --- Optional. The [PublishingOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-PublishingOptions "Google::Cloud::Security::PrivateCA::V1::CaPool::PublishingOptions (class)") to follow when issuing [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)") from any [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)") 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)").

### #tier

    def tier() -> ::Google::Cloud::Security::PrivateCA::V1::CaPool::Tier

**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::CaPool::Tier](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-Tier)) --- Required. Immutable. The [Tier](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-Tier "Google::Cloud::Security::PrivateCA::V1::CaPool::Tier (module)") of 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)").

### #tier=

    def tier=(value) -> ::Google::Cloud::Security::PrivateCA::V1::CaPool::Tier

**Parameter**

- **value** ([::Google::Cloud::Security::PrivateCA::V1::CaPool::Tier](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-Tier)) --- Required. Immutable. The [Tier](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-Tier "Google::Cloud::Security::PrivateCA::V1::CaPool::Tier (module)") of 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)").
**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::CaPool::Tier](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-Tier)) --- Required. Immutable. The [Tier](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-Tier "Google::Cloud::Security::PrivateCA::V1::CaPool::Tier (module)") of 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)").