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.



1370
1371
1372
# File 'lib/google/apis/composer_v1/classes.rb', line 1370

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

Instance Attribute Details

#schedulerGoogle::Apis::ComposerV1::SchedulerResource

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



1358
1359
1360
# File 'lib/google/apis/composer_v1/classes.rb', line 1358

def scheduler
  @scheduler
end

#web_serverGoogle::Apis::ComposerV1::WebServerResource

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



1363
1364
1365
# File 'lib/google/apis/composer_v1/classes.rb', line 1363

def web_server
  @web_server
end

#workerGoogle::Apis::ComposerV1::WorkerResource

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



1368
1369
1370
# File 'lib/google/apis/composer_v1/classes.rb', line 1368

def worker
  @worker
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1375
1376
1377
1378
1379
# File 'lib/google/apis/composer_v1/classes.rb', line 1375

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