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.



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_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)


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_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)


951
952
953
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 951

def current_size_gb
  @current_size_gb
end

#nameString

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

Returns:

  • (String)


956
957
958
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 956

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)


962
963
964
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 962

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)


967
968
969
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 967

def requested_size_gb
  @requested_size_gb
end

#snapshot_reserved_space_percentFixnum

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

Returns:

  • (Fixnum)


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_gbFixnum

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

Returns:

  • (Fixnum)


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_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)


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

#stateString

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

Returns:

  • (String)


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

def state
  @state
end

#typeString

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

Returns:

  • (String)


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