Class: Google::Apis::CloudbuildV1beta1::WorkerConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1beta1::WorkerConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v1beta1/classes.rb,
lib/google/apis/cloudbuild_v1beta1/representations.rb,
lib/google/apis/cloudbuild_v1beta1/representations.rb
Overview
Defines the configuration to be used for creating workers in the pool.
Instance Attribute Summary collapse
-
#disk_size_gb ⇒ Fixnum
Size of the disk attached to the worker, in GB.
-
#machine_type ⇒ String
Machine type of a worker, such as
n1-standard-1
. -
#no_external_ip ⇒ Boolean
(also: #no_external_ip?)
If true, workers are created without any public address, which prevents network egress to public IPs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WorkerConfig
constructor
A new instance of WorkerConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WorkerConfig
Returns a new instance of WorkerConfig.
2911 2912 2913 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 2911 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_size_gb ⇒ Fixnum
Size of the disk attached to the worker, in GB. See 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
2895 2896 2897 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 2895 def disk_size_gb @disk_size_gb end |
#machine_type ⇒ String
Machine type of a worker, such as n1-standard-1
. See Worker pool config
file. If left blank, Cloud Build will use n1-standard-1
.
Corresponds to the JSON property machineType
2902 2903 2904 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 2902 def machine_type @machine_type end |
#no_external_ip ⇒ Boolean Also known as: no_external_ip?
If true, workers are created without any public address, which prevents
network egress to public IPs.
Corresponds to the JSON property noExternalIp
2908 2909 2910 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 2908 def no_external_ip @no_external_ip end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2916 2917 2918 2919 2920 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 2916 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 |