Class: Google::Apis::ComposerV1::WorkloadsConfig
- Inherits:
-
Object
- Object
- Google::Apis::ComposerV1::WorkloadsConfig
- 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
The Kubernetes workloads configuration for GKE cluster associated with the Cloud Composer environment. Supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.
Instance Attribute Summary collapse
-
#scheduler ⇒ Google::Apis::ComposerV1::SchedulerResource
Configuration for resources used by Airflow schedulers.
-
#web_server ⇒ Google::Apis::ComposerV1::WebServerResource
Configuration for resources used by Airflow web server.
-
#worker ⇒ Google::Apis::ComposerV1::WorkerResource
Configuration for resources used by Airflow workers.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WorkloadsConfig
constructor
A new instance of WorkloadsConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WorkloadsConfig
Returns a new instance of WorkloadsConfig.
1431 1432 1433 |
# File 'lib/google/apis/composer_v1/classes.rb', line 1431 def initialize(**args) update!(**args) end |
Instance Attribute Details
#scheduler ⇒ Google::Apis::ComposerV1::SchedulerResource
Configuration for resources used by Airflow schedulers.
Corresponds to the JSON property scheduler
1419 1420 1421 |
# File 'lib/google/apis/composer_v1/classes.rb', line 1419 def scheduler @scheduler end |
#web_server ⇒ Google::Apis::ComposerV1::WebServerResource
Configuration for resources used by Airflow web server.
Corresponds to the JSON property webServer
1424 1425 1426 |
# File 'lib/google/apis/composer_v1/classes.rb', line 1424 def web_server @web_server end |
#worker ⇒ Google::Apis::ComposerV1::WorkerResource
Configuration for resources used by Airflow workers.
Corresponds to the JSON property worker
1429 1430 1431 |
# File 'lib/google/apis/composer_v1/classes.rb', line 1429 def worker @worker end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1436 1437 1438 1439 1440 |
# File 'lib/google/apis/composer_v1/classes.rb', line 1436 def update!(**args) @scheduler = args[:scheduler] if args.key?(:scheduler) @web_server = args[:web_server] if args.key?(:web_server) @worker = args[:worker] if args.key?(:worker) end |