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 storage volume.
Instance Attribute Summary collapse
-
#reserved_space_gib ⇒ Fixnum
The space on this storage volume reserved for snapshots, shown in GiB.
-
#reserved_space_remaining_gib ⇒ Fixnum
The amount, in GiB, of available space in this storage volume's reserved snapshot space.
-
#reserved_space_used_percent ⇒ Fixnum
The percent of snapshot space on this storage volume actually being used by the 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.
700 701 702 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 700 def initialize(**args) update!(**args) end |
Instance Attribute Details
#reserved_space_gib ⇒ Fixnum
The space on this storage volume reserved for snapshots, shown in GiB.
Corresponds to the JSON property reservedSpaceGib
685 686 687 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 685 def reserved_space_gib @reserved_space_gib end |
#reserved_space_remaining_gib ⇒ Fixnum
The amount, in GiB, of available space in this storage volume's reserved
snapshot space.
Corresponds to the JSON property reservedSpaceRemainingGib
691 692 693 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 691 def reserved_space_remaining_gib @reserved_space_remaining_gib end |
#reserved_space_used_percent ⇒ Fixnum
The percent of snapshot space on this storage volume actually being used by
the snapshot copies. This value might be higher than 100% if the snapshot
copies have overflowed into the data portion of the storage volume.
Corresponds to the JSON property reservedSpaceUsedPercent
698 699 700 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 698 def reserved_space_used_percent @reserved_space_used_percent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
705 706 707 708 709 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 705 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 |