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.



2156
2157
2158
# File 'lib/google/apis/netapp_v1/classes.rb', line 2156

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)


2148
2149
2150
# File 'lib/google/apis/netapp_v1/classes.rb', line 2148

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)


2154
2155
2156
# File 'lib/google/apis/netapp_v1/classes.rb', line 2154

def tier_action
  @tier_action
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2161
2162
2163
2164
# File 'lib/google/apis/netapp_v1/classes.rb', line 2161

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