Class: Google::Apis::ComposerV1::WorkloadsConfig

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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkloadsConfig

Returns a new instance of WorkloadsConfig.



2421
2422
2423
# File 'lib/google/apis/composer_v1/classes.rb', line 2421

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

Instance Attribute Details

#dag_processorGoogle::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



2399
2400
2401
# File 'lib/google/apis/composer_v1/classes.rb', line 2399

def dag_processor
  @dag_processor
end

#schedulerGoogle::Apis::ComposerV1::SchedulerResource

Configuration for resources used by Airflow schedulers. Corresponds to the JSON property scheduler



2404
2405
2406
# File 'lib/google/apis/composer_v1/classes.rb', line 2404

def scheduler
  @scheduler
end

#triggererGoogle::Apis::ComposerV1::TriggererResource

Configuration for resources used by Airflow triggerers. Corresponds to the JSON property triggerer



2409
2410
2411
# File 'lib/google/apis/composer_v1/classes.rb', line 2409

def triggerer
  @triggerer
end

#web_serverGoogle::Apis::ComposerV1::WebServerResource

Configuration for resources used by Airflow web server. Corresponds to the JSON property webServer



2414
2415
2416
# File 'lib/google/apis/composer_v1/classes.rb', line 2414

def web_server
  @web_server
end

#workerGoogle::Apis::ComposerV1::WorkerResource

Configuration for resources used by Airflow workers. Corresponds to the JSON property worker



2419
2420
2421
# File 'lib/google/apis/composer_v1/classes.rb', line 2419

def worker
  @worker
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2426
2427
2428
2429
2430
2431
2432
# File 'lib/google/apis/composer_v1/classes.rb', line 2426

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