Class: TencentCloud::Gpm::V20200820::ModifyRuleRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Gpm::V20200820::ModifyRuleRequest
- Defined in:
- lib/v20200820/models.rb
Overview
ModifyRule请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(rulecode = nil, rulename = nil, ruledesc = nil, tags = nil) ⇒ ModifyRuleRequest
constructor
A new instance of ModifyRuleRequest.
Constructor Details
#initialize(rulecode = nil, rulename = nil, ruledesc = nil, tags = nil) ⇒ ModifyRuleRequest
Returns a new instance of ModifyRuleRequest.
1177 1178 1179 1180 1181 1182 |
# File 'lib/v20200820/models.rb', line 1177 def initialize(rulecode=nil, rulename=nil, ruledesc=nil, =nil) @RuleCode = rulecode @RuleName = rulename @RuleDesc = ruledesc @Tags = end |
Instance Attribute Details
#RuleCode ⇒ Object
1175 1176 1177 |
# File 'lib/v20200820/models.rb', line 1175 def RuleCode @RuleCode end |
#RuleDesc ⇒ Object
1175 1176 1177 |
# File 'lib/v20200820/models.rb', line 1175 def RuleDesc @RuleDesc end |
#RuleName ⇒ Object
1175 1176 1177 |
# File 'lib/v20200820/models.rb', line 1175 def RuleName @RuleName end |
#Tags ⇒ Object
1175 1176 1177 |
# File 'lib/v20200820/models.rb', line 1175 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 |
# File 'lib/v20200820/models.rb', line 1184 def deserialize(params) @RuleCode = params['RuleCode'] @RuleName = params['RuleName'] @RuleDesc = params['RuleDesc'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| stringkv_tmp = StringKV.new stringkv_tmp.deserialize(i) @Tags << stringkv_tmp end end end |