class Google::Apis::CloudbuildV1beta1::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/cloud-build/docs/custom-workers/worker-pool-config- file). 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 `n1-standard-1`. See [Worker pool config file](cloud.google.com/cloud-build/docs/custom-workers/worker-pool- config-file). If left blank, Cloud Build will use `n1-standard-1`. Corresponds to the JSON property `machineType` @return [String]

no_external_ip[RW]

If true, workers are created without any public address, which prevents network egress to public IPs. Corresponds to the JSON property `noExternalIp` @return [Boolean]

no_external_ip?[RW]

If true, workers are created without any public address, which prevents network egress to public IPs. Corresponds to the JSON property `noExternalIp` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudbuild_v1beta1/classes.rb, line 2146
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_v1beta1/classes.rb, line 2151
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)
  @no_external_ip = args[:no_external_ip] if args.key?(:no_external_ip)
end