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 storage volume.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SnapshotReservationDetail

Returns a new instance of SnapshotReservationDetail.



1646
1647
1648
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1646

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

Instance Attribute Details

#reserved_space_gibFixnum

The space on this storage volume reserved for snapshots, shown in GiB. Corresponds to the JSON property reservedSpaceGib

Returns:

  • (Fixnum)


1623
1624
1625
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1623

def reserved_space_gib
  @reserved_space_gib
end

#reserved_space_percentFixnum

Percent of the total Volume size reserved for snapshot copies. Enabling snapshots requires reserving 20% or more of the storage volume space for snapshots. Maximum reserved space for snapshots is 40%. Setting this field will effectively set snapshot_enabled to true. Corresponds to the JSON property reservedSpacePercent

Returns:

  • (Fixnum)


1631
1632
1633
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1631

def reserved_space_percent
  @reserved_space_percent
end

#reserved_space_remaining_gibFixnum

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

Returns:

  • (Fixnum)


1637
1638
1639
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1637

def reserved_space_remaining_gib
  @reserved_space_remaining_gib
end

#reserved_space_used_percentFixnum

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

Returns:

  • (Fixnum)


1644
1645
1646
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1644

def reserved_space_used_percent
  @reserved_space_used_percent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1651
1652
1653
1654
1655
1656
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1651

def update!(**args)
  @reserved_space_gib = args[:reserved_space_gib] if args.key?(:reserved_space_gib)
  @reserved_space_percent = args[:reserved_space_percent] if args.key?(:reserved_space_percent)
  @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