Class: Google::Apis::BaremetalsolutionV1alpha1::Volume

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/baremetalsolution_v1alpha1/classes.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb

Overview

Volume registered in the project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Volume

Returns a new instance of Volume.



1027
1028
1029
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1027

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#auto_grown_size_gbFixnum

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

Returns:

  • (Fixnum)


970
971
972
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 970

def auto_grown_size_gb
  @auto_grown_size_gb
end

#current_size_gbFixnum

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

Returns:

  • (Fixnum)


977
978
979
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 977

def current_size_gb
  @current_size_gb
end

#nameString

Output only. The name of this Volume. Corresponds to the JSON property name

Returns:

  • (String)


982
983
984
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 982

def name
  @name
end

#remaining_space_gbFixnum

The space remaining in the Volume for new LUNs, in GB, excluding space reserved for snapshots. Corresponds to the JSON property remainingSpaceGb

Returns:

  • (Fixnum)


988
989
990
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 988

def remaining_space_gb
  @remaining_space_gb
end

#requested_size_gbFixnum

The requested size of this Volume, in GB. Corresponds to the JSON property requestedSizeGb

Returns:

  • (Fixnum)


993
994
995
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 993

def requested_size_gb
  @requested_size_gb
end

#snapshot_auto_delete_behaviorString

The behavior to use when snapshot reserved space is full. Corresponds to the JSON property snapshotAutoDeleteBehavior

Returns:

  • (String)


998
999
1000
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 998

def snapshot_auto_delete_behavior
  @snapshot_auto_delete_behavior
end

#snapshot_reserved_space_percentFixnum

The percent of space on this Volume reserved for snapshots. Corresponds to the JSON property snapshotReservedSpacePercent

Returns:

  • (Fixnum)


1003
1004
1005
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1003

def snapshot_reserved_space_percent
  @snapshot_reserved_space_percent
end

#snapshot_reserved_space_remaining_gbFixnum

The amount, in GB, of space available in this Volume's reserved snapshot space. Corresponds to the JSON property snapshotReservedSpaceRemainingGb

Returns:

  • (Fixnum)


1008
1009
1010
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1008

def snapshot_reserved_space_remaining_gb
  @snapshot_reserved_space_remaining_gb
end

#snapshot_reserved_space_used_percentFixnum

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

Returns:

  • (Fixnum)


1015
1016
1017
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1015

def snapshot_reserved_space_used_percent
  @snapshot_reserved_space_used_percent
end

#stateString

The state of this Volume. Corresponds to the JSON property state

Returns:

  • (String)


1020
1021
1022
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1020

def state
  @state
end

#typeString

The type of this Volume. Corresponds to the JSON property type

Returns:

  • (String)


1025
1026
1027
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1025

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
# 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