Class: Google::Apis::GenomicsV2alpha1::DiskStatus

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 a disk on a 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) ⇒ DiskStatus

Returns a new instance of DiskStatus.



516
517
518
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 516

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

Instance Attribute Details

#free_space_bytesFixnum

Free disk space. Corresponds to the JSON property freeSpaceBytes

Returns:

  • (Fixnum)


509
510
511
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 509

def free_space_bytes
  @free_space_bytes
end

#total_space_bytesFixnum

Total disk space. Corresponds to the JSON property totalSpaceBytes

Returns:

  • (Fixnum)


514
515
516
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 514

def total_space_bytes
  @total_space_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



521
522
523
524
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 521

def update!(**args)
  @free_space_bytes = args[:free_space_bytes] if args.key?(:free_space_bytes)
  @total_space_bytes = args[:total_space_bytes] if args.key?(:total_space_bytes)
end