# Secret Manager V1 Client - Class Automatic (2.3.0)

2.3.0 (latest) 2.2.2 2.1.1 2.0.2 1.15.4 1.13.0 1.12.3 1.11.0 1.10.4 1.9.7 Reference documentation and code samples for the Secret Manager V1 Client class Automatic.

A replication policy that replicates the
[Secret](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.Secret) payload without any
restrictions.

Generated from protobuf message `google.cloud.secretmanager.v1.Replication.Automatic`

## Namespace

Google \\ Cloud \\ SecretManager \\ V1 \\ Replication

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ customer_managed_encryption` | `Google\Cloud\SecretManager\V1\CustomerManagedEncryption` Optional. The customer-managed encryption configuration of the [Secret](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.Secret). If no configuration is provided, Google-managed default encryption is used. Updates to the [Secret](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.Secret) encryption configuration only apply to [SecretVersions](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion) added afterwards. They do not apply retroactively to existing [SecretVersions](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion). |

### getCustomerManagedEncryption

Optional. The customer-managed encryption configuration of the
[Secret](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.Secret). If no configuration is
provided, Google-managed default encryption is used.

Updates to the [Secret](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.Secret) encryption
configuration only apply to
[SecretVersions](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion) added
afterwards. They do not apply retroactively to existing
[SecretVersions](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Cloud\SecretManager\V1\CustomerManagedEncryption|null` |   |

### hasCustomerManagedEncryption

### clearCustomerManagedEncryption

### setCustomerManagedEncryption

Optional. The customer-managed encryption configuration of the
[Secret](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.Secret). If no configuration is
provided, Google-managed default encryption is used.

Updates to the [Secret](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.Secret) encryption
configuration only apply to
[SecretVersions](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion) added
afterwards. They do not apply retroactively to existing
[SecretVersions](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Cloud\SecretManager\V1\CustomerManagedEncryption` |

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