Class: Google::Apis::BatchV1::ComputeResource

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComputeResource

Returns a new instance of ComputeResource.



437
438
439
# File 'lib/google/apis/batch_v1/classes.rb', line 437

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

Instance Attribute Details

#boot_disk_mibFixnum

Extra boot disk size in MiB for each task. Corresponds to the JSON property bootDiskMib

Returns:

  • (Fixnum)


425
426
427
# File 'lib/google/apis/batch_v1/classes.rb', line 425

def boot_disk_mib
  @boot_disk_mib
end

#cpu_milliFixnum

The milliCPU count. Corresponds to the JSON property cpuMilli

Returns:

  • (Fixnum)


430
431
432
# File 'lib/google/apis/batch_v1/classes.rb', line 430

def cpu_milli
  @cpu_milli
end

#memory_mibFixnum

Memory in MiB. Corresponds to the JSON property memoryMib

Returns:

  • (Fixnum)


435
436
437
# File 'lib/google/apis/batch_v1/classes.rb', line 435

def memory_mib
  @memory_mib
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



442
443
444
445
446
# File 'lib/google/apis/batch_v1/classes.rb', line 442

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