Class: TencentCloud::Dayu::V20180709::CreateL7CCRuleRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dayu::V20180709::CreateL7CCRuleRequest
- Defined in:
- lib/v20180709/models.rb
Overview
CreateL7CCRule请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(business = nil, id = nil, method = nil, ruleid = nil, ruleconfig = nil) ⇒ CreateL7CCRuleRequest
constructor
A new instance of CreateL7CCRuleRequest.
Constructor Details
#initialize(business = nil, id = nil, method = nil, ruleid = nil, ruleconfig = nil) ⇒ CreateL7CCRuleRequest
Returns a new instance of CreateL7CCRuleRequest.
970 971 972 973 974 975 976 |
# File 'lib/v20180709/models.rb', line 970 def initialize(business=nil, id=nil, method=nil, ruleid=nil, ruleconfig=nil) @Business = business @Id = id @Method = method @RuleId = ruleid @RuleConfig = ruleconfig end |
Instance Attribute Details
#Business ⇒ Object
968 969 970 |
# File 'lib/v20180709/models.rb', line 968 def Business @Business end |
#Id ⇒ Object
968 969 970 |
# File 'lib/v20180709/models.rb', line 968 def Id @Id end |
#Method ⇒ Object
968 969 970 |
# File 'lib/v20180709/models.rb', line 968 def Method @Method end |
#RuleConfig ⇒ Object
968 969 970 |
# File 'lib/v20180709/models.rb', line 968 def RuleConfig @RuleConfig end |
#RuleId ⇒ Object
968 969 970 |
# File 'lib/v20180709/models.rb', line 968 def RuleId @RuleId end |
Instance Method Details
#deserialize(params) ⇒ Object
978 979 980 981 982 983 984 985 986 987 988 989 990 991 |
# File 'lib/v20180709/models.rb', line 978 def deserialize(params) @Business = params['Business'] @Id = params['Id'] @Method = params['Method'] @RuleId = params['RuleId'] unless params['RuleConfig'].nil? @RuleConfig = [] params['RuleConfig'].each do |i| ccruleconfig_tmp = CCRuleConfig.new ccruleconfig_tmp.deserialize(i) @RuleConfig << ccruleconfig_tmp end end end |