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.



2231
2232
2233
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2231

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)


2208
2209
2210
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2208

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)


2216
2217
2218
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2216

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)


2222
2223
2224
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2222

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)


2229
2230
2231
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2229

def reserved_space_used_percent
  @reserved_space_used_percent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2236
2237
2238
2239
2240
2241
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2236

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