Class: Google::Apis::CloudbuildV1::HybridWorkerConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::HybridWorkerConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v1/classes.rb,
lib/google/apis/cloudbuild_v1/representations.rb,
lib/google/apis/cloudbuild_v1/representations.rb
Overview
These settings can be applied to a user's build operations. Next ID: 4
Instance Attribute Summary collapse
-
#disk_size_gb ⇒ Fixnum
The disk size (in GB) which is requested for the build container.
-
#memory_gb ⇒ Float
The memory (in GB) which is requested for the build container.
-
#vcpu_count ⇒ Float
The number of vCPUs which are requested for the build container.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HybridWorkerConfig
constructor
A new instance of HybridWorkerConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HybridWorkerConfig
Returns a new instance of HybridWorkerConfig.
2285 2286 2287 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2285 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_size_gb ⇒ Fixnum
The disk size (in GB) which is requested for the build container. Defaults to
10 GB.
Corresponds to the JSON property diskSizeGb
2272 2273 2274 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2272 def disk_size_gb @disk_size_gb end |
#memory_gb ⇒ Float
The memory (in GB) which is requested for the build container. Defaults to 4
GB.
Corresponds to the JSON property memoryGb
2278 2279 2280 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2278 def memory_gb @memory_gb end |
#vcpu_count ⇒ Float
The number of vCPUs which are requested for the build container. Defaults to 1.
Corresponds to the JSON property vcpuCount
2283 2284 2285 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2283 def vcpu_count @vcpu_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2290 2291 2292 2293 2294 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2290 def update!(**args) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @memory_gb = args[:memory_gb] if args.key?(:memory_gb) @vcpu_count = args[:vcpu_count] if args.key?(:vcpu_count) end |