# Secret Manager V1 Client - Class ReplicationStatus (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 ReplicationStatus.

The replication status of a
[SecretVersion](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion).

Generated from protobuf message `google.cloud.secretmanager.v1.ReplicationStatus`

## Namespace

Google \\ Cloud \\ SecretManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ automatic` | `https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.ReplicationStatus.AutomaticStatus` Describes the replication status of a [SecretVersion](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion) with automatic replication. Only populated if the parent [Secret](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.Secret) has an automatic replication policy. |
| `↳ user_managed` | `https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.ReplicationStatus.UserManagedStatus` Describes the replication status of a [SecretVersion](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion) with user-managed replication. Only populated if the parent [Secret](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.Secret) has a user-managed replication policy. |

### getAutomatic

Describes the replication status of a
[SecretVersion](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion) with
automatic replication.

Only populated if the parent
[Secret](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.Secret) has an automatic
replication policy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.ReplicationStatus.AutomaticStatus|null` |   |

### hasAutomatic

### setAutomatic

Describes the replication status of a
[SecretVersion](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion) with
automatic replication.

Only populated if the parent
[Secret](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.Secret) has an automatic
replication policy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.ReplicationStatus.AutomaticStatus` |

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

### getUserManaged

Describes the replication status of a
[SecretVersion](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion) with
user-managed replication.

Only populated if the parent
[Secret](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.Secret) has a user-managed
replication policy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.ReplicationStatus.UserManagedStatus|null` |   |

### hasUserManaged

### setUserManaged

Describes the replication status of a
[SecretVersion](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion) with
user-managed replication.

Only populated if the parent
[Secret](https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.Secret) has a user-managed
replication policy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-secret-manager/latest/V1.ReplicationStatus.UserManagedStatus` |

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

### getReplicationStatus

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