class Google::Apis::CloudbuildV1beta1::WorkerConfig
Defines the configuration to be used for creating workers in the pool.
Attributes
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 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]
If true, workers are created without any public address, which prevents network egress to public IPs. Corresponds to the JSON property `noExternalIp` @return [Boolean]
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
# File lib/google/apis/cloudbuild_v1beta1/classes.rb, line 2146 def initialize(**args) update!(**args) end
Public Instance Methods
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