Class: Google::Apis::ContaineranalysisV1alpha1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/containeranalysis_v1alpha1/classes.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb

Overview

Configuration per workload for both Private Pools and Hybrid Pools.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig

Returns a new instance of ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig.



1390
1391
1392
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1390

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#disk_size_gbFixnum

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

Returns:

  • (Fixnum)


1376
1377
1378
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1376

def disk_size_gb
  @disk_size_gb
end

#memory_gbFloat

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

Returns:

  • (Float)


1382
1383
1384
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1382

def memory_gb
  @memory_gb
end

#vcpu_countFloat

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

Returns:

  • (Float)


1388
1389
1390
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1388

def vcpu_count
  @vcpu_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1395
1396
1397
1398
1399
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1395

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