Class: TencentCloud::Chdfs::V20201112::Transition

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20201112/models.rb

Overview

生命周期规则转换属性

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(days = nil, type = nil) ⇒ Transition

Returns a new instance of Transition.



1608
1609
1610
1611
# File 'lib/v20201112/models.rb', line 1608

def initialize(days=nil, type=nil)
  @Days = days
  @Type = type
end

Instance Attribute Details

#DaysObject

Parameters:

  • Days:

    触发时间(单位天)

  • Type:

    转换类型(1:归档;2:删除;3:低频;4:深度归档;5:智能分层)



1606
1607
1608
# File 'lib/v20201112/models.rb', line 1606

def Days
  @Days
end

#TypeObject

Parameters:

  • Days:

    触发时间(单位天)

  • Type:

    转换类型(1:归档;2:删除;3:低频;4:深度归档;5:智能分层)



1606
1607
1608
# File 'lib/v20201112/models.rb', line 1606

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



1613
1614
1615
1616
# File 'lib/v20201112/models.rb', line 1613

def deserialize(params)
  @Days = params['Days']
  @Type = params['Type']
end