Class: Google::Apis::ComposerV1beta1::UserWorkloadsSecret

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/composer_v1beta1/classes.rb,
lib/google/apis/composer_v1beta1/representations.rb,
lib/google/apis/composer_v1beta1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserWorkloadsSecret

Returns a new instance of UserWorkloadsSecret.



2288
2289
2290
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 2288

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#dataHash<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/ Corresponds to the JSON property data

Returns:

  • (Hash<String,String>)


2279
2280
2281
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 2279

def data
  @data
end

#nameString

Identifier. The resource name of the Secret, in the form: "projects/projectId /locations/locationId/environments/environmentId/userWorkloadsSecrets/ userWorkloadsSecretId" Corresponds to the JSON property name

Returns:

  • (String)


2286
2287
2288
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 2286

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2293
2294
2295
2296
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 2293

def update!(**args)
  @data = args[:data] if args.key?(:data)
  @name = args[:name] if args.key?(:name)
end