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
-
#dag_processor ⇒ Google::Apis::ComposerV1::DagProcessorResource
Configuration for resources used by Airflow DAG processors.
-
#scheduler ⇒ Google::Apis::ComposerV1::SchedulerResource
Configuration for resources used by Airflow schedulers.
-
#triggerer ⇒ Google::Apis::ComposerV1::TriggererResource
Configuration for resources used by Airflow triggerers.
-
#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.
2419 2420 2421 |
# File 'lib/google/apis/composer_v1/classes.rb', line 2419 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dag_processor ⇒ Google::Apis::ComposerV1::DagProcessorResource
Configuration for resources used by Airflow DAG processors. This field is
supported for Cloud Composer environments in versions composer-3..-airflow-.
*. and newer.
Corresponds to the JSON property dagProcessor
2397 2398 2399 |
# File 'lib/google/apis/composer_v1/classes.rb', line 2397 def dag_processor @dag_processor end |
#scheduler ⇒ Google::Apis::ComposerV1::SchedulerResource
Configuration for resources used by Airflow schedulers.
Corresponds to the JSON property scheduler
2402 2403 2404 |
# File 'lib/google/apis/composer_v1/classes.rb', line 2402 def scheduler @scheduler end |
#triggerer ⇒ Google::Apis::ComposerV1::TriggererResource
Configuration for resources used by Airflow triggerers.
Corresponds to the JSON property triggerer
2407 2408 2409 |
# File 'lib/google/apis/composer_v1/classes.rb', line 2407 def triggerer @triggerer end |
#web_server ⇒ Google::Apis::ComposerV1::WebServerResource
Configuration for resources used by Airflow web server.
Corresponds to the JSON property webServer
2412 2413 2414 |
# File 'lib/google/apis/composer_v1/classes.rb', line 2412 def web_server @web_server end |
#worker ⇒ Google::Apis::ComposerV1::WorkerResource
Configuration for resources used by Airflow workers.
Corresponds to the JSON property worker
2417 2418 2419 |
# File 'lib/google/apis/composer_v1/classes.rb', line 2417 def worker @worker end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2424 2425 2426 2427 2428 2429 2430 |
# File 'lib/google/apis/composer_v1/classes.rb', line 2424 def update!(**args) @dag_processor = args[:dag_processor] if args.key?(:dag_processor) @scheduler = args[:scheduler] if args.key?(:scheduler) @triggerer = args[:triggerer] if args.key?(:triggerer) @web_server = args[:web_server] if args.key?(:web_server) @worker = args[:worker] if args.key?(:worker) end |