Class: Google::Apis::BatchV1::ComputeResource
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::ComputeResource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/batch_v1/classes.rb,
lib/google/apis/batch_v1/representations.rb,
lib/google/apis/batch_v1/representations.rb
Overview
Compute resource requirements
Instance Attribute Summary collapse
-
#boot_disk_mib ⇒ Fixnum
Extra boot disk size in MiB for each task.
-
#cpu_milli ⇒ Fixnum
The milliCPU count.
-
#memory_mib ⇒ Fixnum
Memory in MiB.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComputeResource
constructor
A new instance of ComputeResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComputeResource
Returns a new instance of ComputeResource.
450 451 452 |
# File 'lib/google/apis/batch_v1/classes.rb', line 450 def initialize(**args) update!(**args) end |
Instance Attribute Details
#boot_disk_mib ⇒ Fixnum
Extra boot disk size in MiB for each task.
Corresponds to the JSON property bootDiskMib
438 439 440 |
# File 'lib/google/apis/batch_v1/classes.rb', line 438 def boot_disk_mib @boot_disk_mib end |
#cpu_milli ⇒ Fixnum
The milliCPU count.
Corresponds to the JSON property cpuMilli
443 444 445 |
# File 'lib/google/apis/batch_v1/classes.rb', line 443 def cpu_milli @cpu_milli end |
#memory_mib ⇒ Fixnum
Memory in MiB.
Corresponds to the JSON property memoryMib
448 449 450 |
# File 'lib/google/apis/batch_v1/classes.rb', line 448 def memory_mib @memory_mib end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
455 456 457 458 459 |
# File 'lib/google/apis/batch_v1/classes.rb', line 455 def update!(**args) @boot_disk_mib = args[:boot_disk_mib] if args.key?(:boot_disk_mib) @cpu_milli = args[:cpu_milli] if args.key?(:cpu_milli) @memory_mib = args[:memory_mib] if args.key?(:memory_mib) end |