Class: TencentCloud::Ckafka::V20190819::CreateAclRuleRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Ckafka::V20190819::CreateAclRuleRequest
- Defined in:
- lib/v20190819/models.rb
Overview
CreateAclRule请求参数结构体
Instance Attribute Summary collapse
- #Comment ⇒ Object
- #InstanceId ⇒ Object
- #IsApplied ⇒ Object
- #Pattern ⇒ Object
- #PatternType ⇒ Object
- #ResourceType ⇒ Object
- #RuleList ⇒ Object
- #RuleName ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, resourcetype = nil, patterntype = nil, rulename = nil, rulelist = nil, pattern = nil, isapplied = nil, comment = nil) ⇒ CreateAclRuleRequest
constructor
A new instance of CreateAclRuleRequest.
Constructor Details
#initialize(instanceid = nil, resourcetype = nil, patterntype = nil, rulename = nil, rulelist = nil, pattern = nil, isapplied = nil, comment = nil) ⇒ CreateAclRuleRequest
Returns a new instance of CreateAclRuleRequest.
1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 |
# File 'lib/v20190819/models.rb', line 1445 def initialize(instanceid=nil, resourcetype=nil, patterntype=nil, rulename=nil, rulelist=nil, pattern=nil, isapplied=nil, comment=nil) @InstanceId = instanceid @ResourceType = resourcetype @PatternType = patterntype @RuleName = rulename @RuleList = rulelist @Pattern = pattern @IsApplied = isapplied @Comment = comment end |
Instance Attribute Details
#Comment ⇒ Object
1443 1444 1445 |
# File 'lib/v20190819/models.rb', line 1443 def Comment @Comment end |
#InstanceId ⇒ Object
1443 1444 1445 |
# File 'lib/v20190819/models.rb', line 1443 def InstanceId @InstanceId end |
#IsApplied ⇒ Object
1443 1444 1445 |
# File 'lib/v20190819/models.rb', line 1443 def IsApplied @IsApplied end |
#Pattern ⇒ Object
1443 1444 1445 |
# File 'lib/v20190819/models.rb', line 1443 def Pattern @Pattern end |
#PatternType ⇒ Object
1443 1444 1445 |
# File 'lib/v20190819/models.rb', line 1443 def PatternType @PatternType end |
#ResourceType ⇒ Object
1443 1444 1445 |
# File 'lib/v20190819/models.rb', line 1443 def ResourceType @ResourceType end |
#RuleList ⇒ Object
1443 1444 1445 |
# File 'lib/v20190819/models.rb', line 1443 def RuleList @RuleList end |
#RuleName ⇒ Object
1443 1444 1445 |
# File 'lib/v20190819/models.rb', line 1443 def RuleName @RuleName end |
Instance Method Details
#deserialize(params) ⇒ Object
1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 |
# File 'lib/v20190819/models.rb', line 1456 def deserialize(params) @InstanceId = params['InstanceId'] @ResourceType = params['ResourceType'] @PatternType = params['PatternType'] @RuleName = params['RuleName'] unless params['RuleList'].nil? @RuleList = [] params['RuleList'].each do |i| aclruleinfo_tmp = AclRuleInfo.new aclruleinfo_tmp.deserialize(i) @RuleList << aclruleinfo_tmp end end @Pattern = params['Pattern'] @IsApplied = params['IsApplied'] @Comment = params['Comment'] end |