class Google::Apis::ComposerV1beta1::WorkerResource

Configuration for resources used by Airflow workers.

Attributes

cpu[RW]

Optional. CPU request and limit for a single Airflow worker replica. Corresponds to the JSON property `cpu` @return [Float]

max_count[RW]

Optional. Maximum number of workers for autoscaling. Corresponds to the JSON property `maxCount` @return [Fixnum]

memory_gb[RW]

Optional. Memory (GB) request and limit for a single Airflow worker replica. Corresponds to the JSON property `memoryGb` @return [Float]

min_count[RW]

Optional. Minimum number of workers for autoscaling. Corresponds to the JSON property `minCount` @return [Fixnum]

storage_gb[RW]

Optional. Storage (GB) request and limit for a single Airflow worker replica. Corresponds to the JSON property `storageGb` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/composer_v1beta1/classes.rb, line 1329
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/composer_v1beta1/classes.rb, line 1334
def update!(**args)
  @cpu = args[:cpu] if args.key?(:cpu)
  @max_count = args[:max_count] if args.key?(:max_count)
  @memory_gb = args[:memory_gb] if args.key?(:memory_gb)
  @min_count = args[:min_count] if args.key?(:min_count)
  @storage_gb = args[:storage_gb] if args.key?(:storage_gb)
end