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_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.
996 997 998 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 996 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
944 945 946 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 944 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
951 952 953 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 951 def current_size_gb @current_size_gb end |
#name ⇒ String
Output only. The name of this Volume.
Corresponds to the JSON property name
956 957 958 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 956 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
962 963 964 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 962 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
967 968 969 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 967 def requested_size_gb @requested_size_gb end |
#snapshot_reserved_space_percent ⇒ Fixnum
The percent of space on this Volume reserved for snapshots.
Corresponds to the JSON property snapshotReservedSpacePercent
972 973 974 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 972 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
977 978 979 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 977 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
984 985 986 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 984 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
989 990 991 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 989 def state @state end |
#type ⇒ String
The type of this Volume.
Corresponds to the JSON property type
994 995 996 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 994 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1001 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_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 |