Class: Google::Apis::BaremetalsolutionV2::SnapshotReservationDetail
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::SnapshotReservationDetail
- 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
-
#reserved_space_gib ⇒ Fixnum
The space on this Volume reserved for snapshotsk, provided in GiB.
-
#reserved_space_remaining_gib ⇒ Fixnum
The amount, in GiB, of space available in this Volume's reserved snapshot space.
-
#reserved_space_used_percent ⇒ Fixnum
The percent of reserved snapshot space on this Volume that is actually used by snapshot copies.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SnapshotReservationDetail
constructor
A new instance of SnapshotReservationDetail.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_gib ⇒ Fixnum
The space on this Volume reserved for snapshotsk, provided in GiB.
Corresponds to the JSON property reservedSpaceGib
770 771 772 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 770 def reserved_space_gib @reserved_space_gib end |
#reserved_space_remaining_gib ⇒ Fixnum
The amount, in GiB, of space available in this Volume's reserved snapshot
space.
Corresponds to the JSON property reservedSpaceRemainingGib
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_percent ⇒ Fixnum
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
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 |