Class: TencentCloud::Chdfs::V20190718::LifeCycleRule

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(lifecycleruleid = nil, lifecyclerulename = nil, path = nil, transitions = nil, status = nil, createtime = nil) ⇒ LifeCycleRule

Returns a new instance of LifeCycleRule.



1038
1039
1040
1041
1042
1043
1044
1045
# File 'lib/v20190718/models.rb', line 1038

def initialize(lifecycleruleid=nil, lifecyclerulename=nil, path=nil, transitions=nil, status=nil, createtime=nil)
  @LifeCycleRuleId = lifecycleruleid
  @LifeCycleRuleName = lifecyclerulename
  @Path = path
  @Transitions = transitions
  @Status = status
  @CreateTime = createtime
end

Instance Attribute Details

#CreateTimeObject

Parameters:

  • LifeCycleRuleId:

    生命周期规则ID

  • LifeCycleRuleName:

    生命周期规则名称

  • Path:

    生命周期规则路径(目录或文件)

  • Transitions:

    生命周期规则转换列表

  • Status:

    生命周期规则状态(1:打开;2:关闭)

  • CreateTime:

    创建时间



1036
1037
1038
# File 'lib/v20190718/models.rb', line 1036

def CreateTime
  @CreateTime
end

#LifeCycleRuleIdObject

Parameters:

  • LifeCycleRuleId:

    生命周期规则ID

  • LifeCycleRuleName:

    生命周期规则名称

  • Path:

    生命周期规则路径(目录或文件)

  • Transitions:

    生命周期规则转换列表

  • Status:

    生命周期规则状态(1:打开;2:关闭)

  • CreateTime:

    创建时间



1036
1037
1038
# File 'lib/v20190718/models.rb', line 1036

def LifeCycleRuleId
  @LifeCycleRuleId
end

#LifeCycleRuleNameObject

Parameters:

  • LifeCycleRuleId:

    生命周期规则ID

  • LifeCycleRuleName:

    生命周期规则名称

  • Path:

    生命周期规则路径(目录或文件)

  • Transitions:

    生命周期规则转换列表

  • Status:

    生命周期规则状态(1:打开;2:关闭)

  • CreateTime:

    创建时间



1036
1037
1038
# File 'lib/v20190718/models.rb', line 1036

def LifeCycleRuleName
  @LifeCycleRuleName
end

#PathObject

Parameters:

  • LifeCycleRuleId:

    生命周期规则ID

  • LifeCycleRuleName:

    生命周期规则名称

  • Path:

    生命周期规则路径(目录或文件)

  • Transitions:

    生命周期规则转换列表

  • Status:

    生命周期规则状态(1:打开;2:关闭)

  • CreateTime:

    创建时间



1036
1037
1038
# File 'lib/v20190718/models.rb', line 1036

def Path
  @Path
end

#StatusObject

Parameters:

  • LifeCycleRuleId:

    生命周期规则ID

  • LifeCycleRuleName:

    生命周期规则名称

  • Path:

    生命周期规则路径(目录或文件)

  • Transitions:

    生命周期规则转换列表

  • Status:

    生命周期规则状态(1:打开;2:关闭)

  • CreateTime:

    创建时间



1036
1037
1038
# File 'lib/v20190718/models.rb', line 1036

def Status
  @Status
end

#TransitionsObject

Parameters:

  • LifeCycleRuleId:

    生命周期规则ID

  • LifeCycleRuleName:

    生命周期规则名称

  • Path:

    生命周期规则路径(目录或文件)

  • Transitions:

    生命周期规则转换列表

  • Status:

    生命周期规则状态(1:打开;2:关闭)

  • CreateTime:

    创建时间



1036
1037
1038
# File 'lib/v20190718/models.rb', line 1036

def Transitions
  @Transitions
end

Instance Method Details

#deserialize(params) ⇒ Object



1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
# File 'lib/v20190718/models.rb', line 1047

def deserialize(params)
  @LifeCycleRuleId = params['LifeCycleRuleId']
  @LifeCycleRuleName = params['LifeCycleRuleName']
  @Path = params['Path']
  unless params['Transitions'].nil?
    @Transitions = []
    params['Transitions'].each do |i|
      transition_tmp = Transition.new
      transition_tmp.deserialize(i)
      @Transitions << transition_tmp
    end
  end
  @Status = params['Status']
  @CreateTime = params['CreateTime']
end