Class: TencentCloud::Trp::V20210515::CreateCustomRuleRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Trp::V20210515::CreateCustomRuleRequest
- Defined in:
- lib/v20210515/models.rb
Overview
CreateCustomRule请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, merchantid = nil, codelength = nil, codeparts = nil, corpid = nil) ⇒ CreateCustomRuleRequest
constructor
A new instance of CreateCustomRuleRequest.
Constructor Details
#initialize(name = nil, merchantid = nil, codelength = nil, codeparts = nil, corpid = nil) ⇒ CreateCustomRuleRequest
Returns a new instance of CreateCustomRuleRequest.
919 920 921 922 923 924 925 |
# File 'lib/v20210515/models.rb', line 919 def initialize(name=nil, merchantid=nil, codelength=nil, codeparts=nil, corpid=nil) @Name = name @MerchantId = merchantid @CodeLength = codelength @CodeParts = codeparts @CorpId = corpid end |
Instance Attribute Details
#CodeLength ⇒ Object
917 918 919 |
# File 'lib/v20210515/models.rb', line 917 def CodeLength @CodeLength end |
#CodeParts ⇒ Object
917 918 919 |
# File 'lib/v20210515/models.rb', line 917 def CodeParts @CodeParts end |
#CorpId ⇒ Object
917 918 919 |
# File 'lib/v20210515/models.rb', line 917 def CorpId @CorpId end |
#MerchantId ⇒ Object
917 918 919 |
# File 'lib/v20210515/models.rb', line 917 def MerchantId @MerchantId end |
#Name ⇒ Object
917 918 919 |
# File 'lib/v20210515/models.rb', line 917 def Name @Name end |
Instance Method Details
#deserialize(params) ⇒ Object
927 928 929 930 931 932 933 934 935 936 937 938 939 940 |
# File 'lib/v20210515/models.rb', line 927 def deserialize(params) @Name = params['Name'] @MerchantId = params['MerchantId'] @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 |