Class: Google::Apis::BaremetalsolutionV1alpha1::Volume
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV1alpha1::Volume
- 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
-
#auto_grown_size_gb ⇒ Fixnum
The size, in GB, that this Volume has expanded as a result of an auto grow policy.
-
#current_size_gb ⇒ Fixnum
The current size of this Volume, in GB, including space reserved for snapshots.
-
#name ⇒ String
Output only.
-
#remaining_space_gb ⇒ Fixnum
The space remaining in the Volume for new LUNs, in GB, excluding space reserved for snapshots.
-
#requested_size_gb ⇒ Fixnum
The requested size of this Volume, in GB.
-
#snapshot_auto_delete_behavior ⇒ String
The behavior to use when snapshot reserved space is full.
-
#snapshot_reserved_space_percent ⇒ Fixnum
The percent of space on this Volume reserved for snapshots.
-
#snapshot_reserved_space_remaining_gb ⇒ Fixnum
The amount, in GB, of space available in this Volume's reserved snapshot space.
-
#snapshot_reserved_space_used_percent ⇒ Fixnum
The percent of reserved snapshot space on this Volume that is actually used by snapshot copies.
-
#state ⇒ String
The state of this Volume.
-
#type ⇒ String
The type of this Volume.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Volume
constructor
A new instance of Volume.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_gb ⇒ Fixnum
The size, in GB, that this Volume has expanded as a result of an auto grow
policy.
Corresponds to the JSON property autoGrownSizeGb
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_gb ⇒ Fixnum
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
977 978 979 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 977 def current_size_gb @current_size_gb end |
#name ⇒ String
Output only. The name of this Volume.
Corresponds to the JSON property name
982 983 984 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 982 def name @name end |
#remaining_space_gb ⇒ Fixnum
The space remaining in the Volume for new LUNs, in GB, excluding space
reserved for snapshots.
Corresponds to the JSON property remainingSpaceGb
988 989 990 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 988 def remaining_space_gb @remaining_space_gb end |
#requested_size_gb ⇒ Fixnum
The requested size of this Volume, in GB.
Corresponds to the JSON property requestedSizeGb
993 994 995 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 993 def requested_size_gb @requested_size_gb end |
#snapshot_auto_delete_behavior ⇒ String
The behavior to use when snapshot reserved space is full.
Corresponds to the JSON property snapshotAutoDeleteBehavior
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_percent ⇒ Fixnum
The percent of space on this Volume reserved for snapshots.
Corresponds to the JSON property snapshotReservedSpacePercent
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_gb ⇒ Fixnum
The amount, in GB, of space available in this Volume's reserved snapshot space.
Corresponds to the JSON property snapshotReservedSpaceRemainingGb
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_percent ⇒ Fixnum
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
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 |
#state ⇒ String
The state of this Volume.
Corresponds to the JSON property state
1020 1021 1022 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1020 def state @state end |
#type ⇒ String
The type of this Volume.
Corresponds to the JSON property type
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 |