Class: Google::Apis::GenomicsV2alpha1::WorkerStatus

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/genomics_v2alpha1/classes.rb,
generated/google/apis/genomics_v2alpha1/representations.rb,
generated/google/apis/genomics_v2alpha1/representations.rb

Overview

The status of the worker VM.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ WorkerStatus

Returns a new instance of WorkerStatus.



1464
1465
1466
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1464

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

Instance Attribute Details

#attached_disksHash<String,Google::Apis::GenomicsV2alpha1::DiskStatus>

Status of attached disks. Corresponds to the JSON property attachedDisks



1442
1443
1444
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1442

def attached_disks
  @attached_disks
end

#boot_diskGoogle::Apis::GenomicsV2alpha1::DiskStatus

The status of a disk on a VM. Corresponds to the JSON property bootDisk



1447
1448
1449
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1447

def boot_disk
  @boot_disk
end

#free_ram_bytesFixnum

Free RAM. Corresponds to the JSON property freeRamBytes

Returns:

  • (Fixnum)


1452
1453
1454
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1452

def free_ram_bytes
  @free_ram_bytes
end

#total_ram_bytesFixnum

Total RAM. Corresponds to the JSON property totalRamBytes

Returns:

  • (Fixnum)


1457
1458
1459
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1457

def total_ram_bytes
  @total_ram_bytes
end

#uptime_secondsFixnum

System uptime. Corresponds to the JSON property uptimeSeconds

Returns:

  • (Fixnum)


1462
1463
1464
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1462

def uptime_seconds
  @uptime_seconds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1469
1470
1471
1472
1473
1474
1475
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1469

def update!(**args)
  @attached_disks = args[:attached_disks] if args.key?(:attached_disks)
  @boot_disk = args[:boot_disk] if args.key?(:boot_disk)
  @free_ram_bytes = args[:free_ram_bytes] if args.key?(:free_ram_bytes)
  @total_ram_bytes = args[:total_ram_bytes] if args.key?(:total_ram_bytes)
  @uptime_seconds = args[:uptime_seconds] if args.key?(:uptime_seconds)
end