Class: TencentCloud::Trp::V20210515::ModifyCustomRuleRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Trp::V20210515::ModifyCustomRuleRequest
- Defined in:
- lib/v20210515/models.rb
Overview
ModifyCustomRule请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(customid = nil, name = nil, codelength = nil, codeparts = nil, corpid = nil) ⇒ ModifyCustomRuleRequest
constructor
A new instance of ModifyCustomRuleRequest.
Constructor Details
#initialize(customid = nil, name = nil, codelength = nil, codeparts = nil, corpid = nil) ⇒ ModifyCustomRuleRequest
Returns a new instance of ModifyCustomRuleRequest.
3267 3268 3269 3270 3271 3272 3273 |
# File 'lib/v20210515/models.rb', line 3267 def initialize(customid=nil, name=nil, codelength=nil, codeparts=nil, corpid=nil) @CustomId = customid @Name = name @CodeLength = codelength @CodeParts = codeparts @CorpId = corpid end |
Instance Attribute Details
#CodeLength ⇒ Object
3265 3266 3267 |
# File 'lib/v20210515/models.rb', line 3265 def CodeLength @CodeLength end |
#CodeParts ⇒ Object
3265 3266 3267 |
# File 'lib/v20210515/models.rb', line 3265 def CodeParts @CodeParts end |
#CorpId ⇒ Object
3265 3266 3267 |
# File 'lib/v20210515/models.rb', line 3265 def CorpId @CorpId end |
#CustomId ⇒ Object
3265 3266 3267 |
# File 'lib/v20210515/models.rb', line 3265 def CustomId @CustomId end |
#Name ⇒ Object
3265 3266 3267 |
# File 'lib/v20210515/models.rb', line 3265 def Name @Name end |
Instance Method Details
#deserialize(params) ⇒ Object
3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 |
# File 'lib/v20210515/models.rb', line 3275 def deserialize(params) @CustomId = params['CustomId'] @Name = params['Name'] @CodeLength = params['CodeLength'] unless params['CodeParts'].nil? @CodeParts = [] params['CodeParts'].each do |i| codepart_tmp = CodePart.new codepart_tmp.deserialize(i) @CodeParts << codepart_tmp end end @CorpId = params['CorpId'] end |