Class: TencentCloud::Chdfs::V20190718::LifeCycleRule
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Chdfs::V20190718::LifeCycleRule
- Defined in:
- lib/v20190718/models.rb
Overview
生命周期规则
Instance Attribute Summary collapse
- #CreateTime ⇒ Object
- #LifeCycleRuleId ⇒ Object
- #LifeCycleRuleName ⇒ Object
- #Path ⇒ Object
- #Status ⇒ Object
- #Transitions ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(lifecycleruleid = nil, lifecyclerulename = nil, path = nil, transitions = nil, status = nil, createtime = nil) ⇒ LifeCycleRule
constructor
A new instance of LifeCycleRule.
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
#CreateTime ⇒ Object
1036 1037 1038 |
# File 'lib/v20190718/models.rb', line 1036 def CreateTime @CreateTime end |
#LifeCycleRuleId ⇒ Object
1036 1037 1038 |
# File 'lib/v20190718/models.rb', line 1036 def LifeCycleRuleId @LifeCycleRuleId end |
#LifeCycleRuleName ⇒ Object
1036 1037 1038 |
# File 'lib/v20190718/models.rb', line 1036 def LifeCycleRuleName @LifeCycleRuleName end |
#Path ⇒ Object
1036 1037 1038 |
# File 'lib/v20190718/models.rb', line 1036 def Path @Path end |
#Status ⇒ Object
1036 1037 1038 |
# File 'lib/v20190718/models.rb', line 1036 def Status @Status end |
#Transitions ⇒ Object
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 |