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.



1482
1483
1484
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1482

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)


1459
1460
1461
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1459

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)


1467
1468
1469
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1467

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)


1473
1474
1475
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1473

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)


1480
1481
1482
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1480

def reserved_space_used_percent
  @reserved_space_used_percent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1487
1488
1489
1490
1491
1492
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1487

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