Class: Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap
- Inherits:
-
Object
- Object
- Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap
- 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 ConfigMap used by Airflow tasks that run with Kubernetes executor or KubernetesPodOperator.
Instance Attribute Summary collapse
-
#data ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Identifier.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserWorkloadsConfigMap
constructor
A new instance of UserWorkloadsConfigMap.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UserWorkloadsConfigMap
Returns a new instance of UserWorkloadsConfigMap.
2265 2266 2267 |
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 2265 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data ⇒ Hash<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
2256 2257 2258 |
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 2256 def data @data end |
#name ⇒ String
Identifier. The resource name of the ConfigMap, in the form: "projects/
projectId/locations/locationId/environments/environmentId/
userWorkloadsConfigMaps/userWorkloadsConfigMapId"
Corresponds to the JSON property name
2263 2264 2265 |
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 2263 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2270 2271 2272 2273 |
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 2270 def update!(**args) @data = args[:data] if args.key?(:data) @name = args[:name] if args.key?(:name) end |