class Google::Apis::BaremetalsolutionV1alpha1::Volume

Volume registered in the project.

Attributes

auto_grown_size_gb[RW]

The size, in GB, that this Volume has expanded as a result of an auto grow policy. Corresponds to the JSON property `autoGrownSizeGb` @return [Fixnum]

current_size_gb[RW]

The current size of this Volume, in GB, including space reserved for snapshots. This size may be different than the requested size if the Volume has been configured with auto grow or auto shrink. Corresponds to the JSON property `currentSizeGb` @return [Fixnum]

name[RW]

Output only. The name of this Volume. Corresponds to the JSON property `name` @return [String]

remaining_space_gb[RW]

The space remaining in the Volume for new LUNs, in GB, excluding space reserved for snapshots. Corresponds to the JSON property `remainingSpaceGb` @return [Fixnum]

requested_size_gb[RW]

The requested size of this Volume, in GB. Corresponds to the JSON property `requestedSizeGb` @return [Fixnum]

snapshot_auto_delete_behavior[RW]

The behavior to use when snapshot reserved space is full. Corresponds to the JSON property `snapshotAutoDeleteBehavior` @return [String]

snapshot_reserved_space_percent[RW]

The percent of space on this Volume reserved for snapshots. Corresponds to the JSON property `snapshotReservedSpacePercent` @return [Fixnum]

snapshot_reserved_space_remaining_gb[RW]

The amount, in GB, of space available in this Volume's reserved snapshot space. Corresponds to the JSON property `snapshotReservedSpaceRemainingGb` @return [Fixnum]

snapshot_reserved_space_used_percent[RW]

The percent of reserved snapshot space on this Volume that is actually used by snapshot copies. This may be higher than 100% if snapshot copies are occupying more space than has been reserved on the Volume. Corresponds to the JSON property `snapshotReservedSpaceUsedPercent` @return [Fixnum]

state[RW]

The state of this Volume. Corresponds to the JSON property `state` @return [String]

type[RW]

The type of this Volume. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/baremetalsolution_v1alpha1/classes.rb, line 1027
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/baremetalsolution_v1alpha1/classes.rb, line 1032
def update!(**args)
  @auto_grown_size_gb = args[:auto_grown_size_gb] if args.key?(:auto_grown_size_gb)
  @current_size_gb = args[:current_size_gb] if args.key?(:current_size_gb)
  @name = args[:name] if args.key?(:name)
  @remaining_space_gb = args[:remaining_space_gb] if args.key?(:remaining_space_gb)
  @requested_size_gb = args[:requested_size_gb] if args.key?(:requested_size_gb)
  @snapshot_auto_delete_behavior = args[:snapshot_auto_delete_behavior] if args.key?(:snapshot_auto_delete_behavior)
  @snapshot_reserved_space_percent = args[:snapshot_reserved_space_percent] if args.key?(:snapshot_reserved_space_percent)
  @snapshot_reserved_space_remaining_gb = args[:snapshot_reserved_space_remaining_gb] if args.key?(:snapshot_reserved_space_remaining_gb)
  @snapshot_reserved_space_used_percent = args[:snapshot_reserved_space_used_percent] if args.key?(:snapshot_reserved_space_used_percent)
  @state = args[:state] if args.key?(:state)
  @type = args[:type] if args.key?(:type)
end