# Cloud Composer V1 API - Class Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsSecret (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.4 1.2.0 1.1.0 1.0.1 0.11.0 0.10.0 0.9.2 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.1 0.2.0 0.1.2 Reference documentation and code samples for the Cloud Composer V1 API class Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsSecret.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #data

    def data() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- 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"
  }

### #data=

    def data=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- 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**

- (::Google::Protobuf::Map{::String =\> ::String}) --- 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"
  }

### #name

    def name() -> ::String

**Returns**

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

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. The resource name of the Secret, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}"
**Returns**

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