Class: Google::Apis::ComposerV1::UserWorkloadsConfigMap

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserWorkloadsConfigMap

Returns a new instance of UserWorkloadsConfigMap.



2227
2228
2229
# File 'lib/google/apis/composer_v1/classes.rb', line 2227

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

Instance Attribute Details

#dataHash<String,String>

Optional. The "data" field of Kubernetes ConfigMap, organized in key-value pairs. For details see: https://kubernetes.io/docs/concepts/configuration/ configmap/ Example: "example_key": "example_value", "another_key": " another_value" Corresponds to the JSON property data

Returns:

  • (Hash<String,String>)


2218
2219
2220
# File 'lib/google/apis/composer_v1/classes.rb', line 2218

def data
  @data
end

#nameString

Identifier. The resource name of the ConfigMap, in the form: "projects/ projectId/locations/locationId/environments/environmentId/ userWorkloadsConfigMaps/userWorkloadsConfigMapId" Corresponds to the JSON property name

Returns:

  • (String)


2225
2226
2227
# File 'lib/google/apis/composer_v1/classes.rb', line 2225

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2232
2233
2234
2235
# File 'lib/google/apis/composer_v1/classes.rb', line 2232

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