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.



1607
1608
1609
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1607

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)


1584
1585
1586
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1584

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)


1592
1593
1594
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1592

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)


1598
1599
1600
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1598

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)


1605
1606
1607
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1605

def reserved_space_used_percent
  @reserved_space_used_percent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1612
1613
1614
1615
1616
1617
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1612

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