Class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1beta1/classes.rb,
lib/google/apis/containeranalysis_v1beta1/representations.rb,
lib/google/apis/containeranalysis_v1beta1/representations.rb
Overview
Configuration per workload for both Private Pools and Hybrid Pools.
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) ⇒ ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig
constructor
A new instance of ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig
Returns a new instance of ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig.
1308 1309 1310 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 1308 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. If unset, a
value of 10 GB will be used.
Corresponds to the JSON property diskSizeGb
1294 1295 1296 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 1294 def disk_size_gb @disk_size_gb end |
#memory_gb ⇒ Float
The memory (in GB) which is requested for the build container. If unset, a
value of 4 GB will be used.
Corresponds to the JSON property memoryGb
1300 1301 1302 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 1300 def memory_gb @memory_gb end |
#vcpu_count ⇒ Float
The number of vCPUs which are requested for the build container. If unset, a
value of 1 will be used.
Corresponds to the JSON property vcpuCount
1306 1307 1308 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 1306 def vcpu_count @vcpu_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1313 1314 1315 1316 1317 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 1313 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 |