Class: Google::Apis::BaremetalsolutionV2::SnapshotReservationDetail

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

Overview

Details about snapshot space reservation and usage on the Volume.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SnapshotReservationDetail

Returns a new instance of SnapshotReservationDetail.



785
786
787
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 785

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

Instance Attribute Details

#reserved_space_gibFixnum

The space on this Volume reserved for snapshotsk, provided in GiB. Corresponds to the JSON property reservedSpaceGib

Returns:

  • (Fixnum)


770
771
772
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 770

def reserved_space_gib
  @reserved_space_gib
end

#reserved_space_remaining_gibFixnum

The amount, in GiB, of space available in this Volume's reserved snapshot space. Corresponds to the JSON property reservedSpaceRemainingGib

Returns:

  • (Fixnum)


776
777
778
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 776

def reserved_space_remaining_gib
  @reserved_space_remaining_gib
end

#reserved_space_used_percentFixnum

The percent of reserved snapshot space on this Volume that is actually used by snapshot copies. This may be higher than 100% if snapshot copies are occupying more space than has been reserved on the Volume. Corresponds to the JSON property reservedSpaceUsedPercent

Returns:

  • (Fixnum)


783
784
785
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 783

def reserved_space_used_percent
  @reserved_space_used_percent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



790
791
792
793
794
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 790

def update!(**args)
  @reserved_space_gib = args[:reserved_space_gib] if args.key?(:reserved_space_gib)
  @reserved_space_remaining_gib = args[:reserved_space_remaining_gib] if args.key?(:reserved_space_remaining_gib)
  @reserved_space_used_percent = args[:reserved_space_used_percent] if args.key?(:reserved_space_used_percent)
end