Class: TencentCloud::Chdfs::V20190718::Transition

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190718/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.



1423
1424
1425
1426
# File 'lib/v20190718/models.rb', line 1423

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

Instance Attribute Details

#DaysObject

Parameters:

  • Days:

    触发时间(单位天)

  • Type:

    转换类型(1:归档;2:删除)



1421
1422
1423
# File 'lib/v20190718/models.rb', line 1421

def Days
  @Days
end

#TypeObject

Parameters:

  • Days:

    触发时间(单位天)

  • Type:

    转换类型(1:归档;2:删除)



1421
1422
1423
# File 'lib/v20190718/models.rb', line 1421

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



1428
1429
1430
1431
# File 'lib/v20190718/models.rb', line 1428

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