class Google::Apis::BaremetalsolutionV2::Volume

A storage Volume.

Attributes

auto_grown_size_gib[RW]

The size, in GiB, that this Volume has expanded as a result of an auto grow policy. In the absence of auto-grow, the value is 0. Corresponds to the JSON property `autoGrownSizeGib` @return [Fixnum]

current_size_gib[RW]

The current size of this Volume, in GiB, 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 `currentSizeGib` @return [Fixnum]

name[RW]

Output only. The resource name of this `Volume`. Resource names are schemeless URIs that follow the conventions in cloud.google.com/apis/design/ resource_names. Format: `projects/`project`/locations/`location`/volumes/` volumeā€œ Corresponds to the JSON property `name` @return [String]

remaining_space_gib[RW]

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

requested_size_gib[RW]

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

snapshot_reservation_detail[RW]

Details about snapshot space reservation and usage on the Volume. Corresponds to the JSON property `snapshotReservationDetail` @return [Google::Apis::BaremetalsolutionV2::SnapshotReservationDetail]

state[RW]

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

storage_type[RW]

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

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/baremetalsolution_v2/classes.rb, line 927
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_v2/classes.rb, line 932
def update!(**args)
  @auto_grown_size_gib = args[:auto_grown_size_gib] if args.key?(:auto_grown_size_gib)
  @current_size_gib = args[:current_size_gib] if args.key?(:current_size_gib)
  @name = args[:name] if args.key?(:name)
  @remaining_space_gib = args[:remaining_space_gib] if args.key?(:remaining_space_gib)
  @requested_size_gib = args[:requested_size_gib] if args.key?(:requested_size_gib)
  @snapshot_reservation_detail = args[:snapshot_reservation_detail] if args.key?(:snapshot_reservation_detail)
  @state = args[:state] if args.key?(:state)
  @storage_type = args[:storage_type] if args.key?(:storage_type)
end