class Google::Apis::CloudbuildV1::WorkerConfig

Defines the configuration to be used for creating workers in the pool.

Attributes

disk_size_gb[RW]

Size of the disk attached to the worker, in GB. See [Worker pool config file]( cloud.google.com/build/docs/private-pools/worker-pool-config-file- schema). Specify a value of up to 1000. If `0` is specified, Cloud Build will use a standard disk size. Corresponds to the JSON property `diskSizeGb` @return [Fixnum]

machine_type[RW]

Machine type of a worker, such as `e2-medium`. See [Worker pool config file]( cloud.google.com/build/docs/private-pools/worker-pool-config-file- schema). If left blank, Cloud Build will use a sensible default. Corresponds to the JSON property `machineType` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudbuild_v1/classes.rb, line 3021
def update!(**args)
  @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
  @machine_type = args[:machine_type] if args.key?(:machine_type)
end