Class: Google::Apis::NetappV1::TieringPolicy

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

Overview

Defines tiering policy for the volume.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TieringPolicy

Returns a new instance of TieringPolicy.



1879
1880
1881
# File 'lib/google/apis/netapp_v1/classes.rb', line 1879

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

Instance Attribute Details

#cooling_threshold_daysFixnum

Optional. Time in days to mark the volume's data block as cold and make it eligible for tiering, can be range from 7-183. Default is 31. Corresponds to the JSON property coolingThresholdDays

Returns:

  • (Fixnum)


1871
1872
1873
# File 'lib/google/apis/netapp_v1/classes.rb', line 1871

def cooling_threshold_days
  @cooling_threshold_days
end

#tier_actionString

Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED. Corresponds to the JSON property tierAction

Returns:

  • (String)


1877
1878
1879
# File 'lib/google/apis/netapp_v1/classes.rb', line 1877

def tier_action
  @tier_action
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1884
1885
1886
1887
# File 'lib/google/apis/netapp_v1/classes.rb', line 1884

def update!(**args)
  @cooling_threshold_days = args[:cooling_threshold_days] if args.key?(:cooling_threshold_days)
  @tier_action = args[:tier_action] if args.key?(:tier_action)
end