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}"
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"
}
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"
}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Google Cloud Orchestration Airflow V1 Client - Class UserWorkloadsSecret (2.1.8)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.8 (latest)](/php/docs/reference/cloud-orchestration-airflow/latest/V1.UserWorkloadsSecret)\n- [2.1.7](/php/docs/reference/cloud-orchestration-airflow/2.1.7/V1.UserWorkloadsSecret)\n- [2.0.1](/php/docs/reference/cloud-orchestration-airflow/2.0.1/V1.UserWorkloadsSecret)\n- [1.6.4](/php/docs/reference/cloud-orchestration-airflow/1.6.4/V1.UserWorkloadsSecret)\n- [1.5.0](/php/docs/reference/cloud-orchestration-airflow/1.5.0/V1.UserWorkloadsSecret)\n- [1.4.2](/php/docs/reference/cloud-orchestration-airflow/1.4.2/V1.UserWorkloadsSecret)\n- [1.3.0](/php/docs/reference/cloud-orchestration-airflow/1.3.0/V1.UserWorkloadsSecret)\n- [1.2.0](/php/docs/reference/cloud-orchestration-airflow/1.2.0/V1.UserWorkloadsSecret)\n- [1.1.0](/php/docs/reference/cloud-orchestration-airflow/1.1.0/V1.UserWorkloadsSecret)\n- [1.0.4](/php/docs/reference/cloud-orchestration-airflow/1.0.4/V1.UserWorkloadsSecret) \nReference documentation and code samples for the Google Cloud Orchestration Airflow V1 Client class UserWorkloadsSecret.\n\nUser workloads Secret used by Airflow tasks that run with Kubernetes executor\nor KubernetesPodOperator.\n\nGenerated from protobuf message `google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Orchestration \\\\ Airflow \\\\ Service \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nIdentifier. The resource name of the Secret, in the form:\n\"projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}\"\n\n### setName\n\nIdentifier. The resource name of the Secret, in the form:\n\"projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}\"\n\n### getData\n\nOptional. The \"data\" field of Kubernetes Secret, organized in key-value\npairs, which can contain sensitive values such as a password, a token, or a\nkey. The values for all keys have to be base64-encoded strings. For details\nsee: \u003chttps://kubernetes.io/docs/concepts/configuration/secret/\u003e\nExample:\n{\n\"example\": \"ZXhhbXBsZV92YWx1ZQ==\",\n\"another-example\": \"YW5vdGhlcl9leGFtcGxlX3ZhbHVl\"\n}\n\n### setData\n\nOptional. The \"data\" field of Kubernetes Secret, organized in key-value\npairs, which can contain sensitive values such as a password, a token, or a\nkey. The values for all keys have to be base64-encoded strings. For details\nsee: \u003chttps://kubernetes.io/docs/concepts/configuration/secret/\u003e\nExample:\n{\n\"example\": \"ZXhhbXBsZV92YWx1ZQ==\",\n\"another-example\": \"YW5vdGhlcl9leGFtcGxlX3ZhbHVl\"\n}"]]