# Google Cloud Orchestration Airflow V1 Client - Class UserWorkloadsSecret (2.2.3)

2.2.3 (latest) 2.2.2 2.1.8 2.0.1 1.6.4 1.5.0 1.4.2 1.3.0 1.2.0 1.1.0 1.0.4 Reference documentation and code samples for the Google Cloud Orchestration Airflow V1 Client class UserWorkloadsSecret.

User workloads Secret used by Airflow tasks that run with Kubernetes executor
or KubernetesPodOperator.

Generated from protobuf message `google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret`

## Namespace

Google \\ Cloud \\ Orchestration \\ Airflow \\ Service \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of the Secret, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" |
| `↳ data` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. The "data" field of Kubernetes Secret, organized in key-value pairs, which can contain sensitive values such as a password, a token, or a key. The values for all keys have to be base64-encoded strings. For details see: <https://kubernetes.io/docs/concepts/configuration/secret/> Example: { "example": "ZXhhbXBsZV92YWx1ZQ==", "another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" } |

### getName

Identifier. The resource name of the Secret, in the form:
"projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}"

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

### setName

Identifier. The resource name of the Secret, in the form:
"projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}"

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

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

### getData

Optional. The "data" field of Kubernetes Secret, organized in key-value
pairs, which can contain sensitive values such as a password, a token, or a
key. The values for all keys have to be base64-encoded strings. For details
see: <https://kubernetes.io/docs/concepts/configuration/secret/>
Example:
{
"example": "ZXhhbXBsZV92YWx1ZQ==",
"another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl"
}

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

### setData

Optional. The "data" field of Kubernetes Secret, organized in key-value
pairs, which can contain sensitive values such as a password, a token, or a
key. The values for all keys have to be base64-encoded strings. For details
see: <https://kubernetes.io/docs/concepts/configuration/secret/>
Example:
{
"example": "ZXhhbXBsZV92YWx1ZQ==",
"another-example": "YW5vdGhlcl9leGFtcGxlX3ZhbHVl"
}

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

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