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.



1916
1917
1918
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1916

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)


1893
1894
1895
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1893

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)


1901
1902
1903
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1901

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)


1907
1908
1909
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1907

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)


1914
1915
1916
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1914

def reserved_space_used_percent
  @reserved_space_used_percent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1921
1922
1923
1924
1925
1926
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1921

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