# Google Cloud Life Sciences V2beta Client - Class Secret (0.9.0)

0.9.0 (latest) 0.8.1 0.7.3 0.6.8 0.5.4 0.4.0 0.3.5

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Life Sciences V2beta Client class Secret.

Holds encrypted information that is only decrypted and stored in RAM
by the worker VM when running the pipeline.

Generated from protobuf message `google.cloud.lifesciences.v2beta.Secret`

## Namespace

Google \\ Cloud \\ LifeSciences \\ V2beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ key_name` | `string` The name of the Cloud KMS key that will be used to decrypt the secret value. The VM service account must have the required permissions and authentication scopes to invoke the `decrypt` method on the specified key. |
| `↳ cipher_text` | `string` The value of the cipherText response from the `encrypt` method. This field is intentionally unaudited. |

### getKeyName

The name of the Cloud KMS key that will be used to decrypt the secret
value. The VM service account must have the required permissions and
authentication scopes to invoke the `decrypt` method on the specified key.

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

### setKeyName

The name of the Cloud KMS key that will be used to decrypt the secret
value. The VM service account must have the required permissions and
authentication scopes to invoke the `decrypt` method on the specified key.

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

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

### getCipherText

The value of the cipherText response from the `encrypt` method. This field
is intentionally unaudited.

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

### setCipherText

The value of the cipherText response from the `encrypt` method. This field
is intentionally unaudited.

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

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