# Google Certificate Authority Service V1 Client - Class CaPool (2.4.0)

2.4.0 (latest) 2.3.0 2.2.2 2.1.1 2.0.3 1.7.3 1.5.0 1.4.2 1.3.1 1.2.2 1.1.0 1.0.3 Reference documentation and code samples for the Google Certificate Authority Service V1 Client class CaPool.

A [CaPool](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool) represents a group of
[CertificateAuthorities](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority)
that form a trust anchor. A
[CaPool](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool) can be used to manage
issuance policies for one or more
[CertificateAuthority](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority)
resources and to rotate CA certificates in and out of the trust anchor.

Generated from protobuf message `google.cloud.security.privateca.v1.CaPool`

## Namespace

Google \\ Cloud \\ Security \\ PrivateCA \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getName

Identifier. The resource name for this
[CaPool](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool) in the format
`projects/*/locations/*/caPools/*`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Identifier. The resource name for this
[CaPool](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool) in the format
`projects/*/locations/*/caPools/*`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTier

Required. Immutable. The
[Tier](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.Tier) of this
[CaPool](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Tier](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.Tier). |

### setTier

Required. Immutable. The
[Tier](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.Tier) of this
[CaPool](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Tier](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.Tier). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getIssuancePolicy

Optional. The
[IssuancePolicy](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.IssuancePolicy)
to control how
[Certificates](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) will be
issued from this [CaPool](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.IssuancePolicy|null` |   |

### hasIssuancePolicy

### clearIssuancePolicy

### setIssuancePolicy

Optional. The
[IssuancePolicy](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.IssuancePolicy)
to control how
[Certificates](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) will be
issued from this [CaPool](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.IssuancePolicy` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPublishingOptions

Optional. The
[PublishingOptions](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.PublishingOptions)
to follow when issuing
[Certificates](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) from any
[CertificateAuthority](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority)
in this [CaPool](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.PublishingOptions|null` |   |

### hasPublishingOptions

### clearPublishingOptions

### setPublishingOptions

Optional. The
[PublishingOptions](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.PublishingOptions)
to follow when issuing
[Certificates](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) from any
[CertificateAuthority](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority)
in this [CaPool](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.PublishingOptions` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEncryptionSpec

Optional. When
[EncryptionSpec](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.EncryptionSpec) is
provided, the [Subject](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Subject),
[SubjectAltNames](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.SubjectAltNames), and
the PEM-encoded certificate fields will be encrypted at rest.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.EncryptionSpec|null` |   |

### hasEncryptionSpec

### clearEncryptionSpec

### setEncryptionSpec

Optional. When
[EncryptionSpec](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.EncryptionSpec) is
provided, the [Subject](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Subject),
[SubjectAltNames](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.SubjectAltNames), and
the PEM-encoded certificate fields will be encrypted at rest.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.EncryptionSpec` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLabels

Optional. Labels with user-defined metadata.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Optional. Labels with user-defined metadata.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |