Class: TencentCloud::Ckafka::V20190819::CreateAclRuleRequest

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190819/models.rb

Overview

CreateAclRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#CommentObject

Parameters:

  • InstanceId:

    ckafka集群实例Id,可通过DescribeInstances接口获取

  • ResourceType:

    Acl资源类型,目前只支持Topic,枚举值列表:Topic

  • PatternType:

    ACL规则匹配类型,目前支持前缀匹配与预设策略,枚举值列表:PREFIXED/PRESET

  • RuleName:

    规则名称

  • RuleList:

    设置的ACL规则列表

  • Pattern:

    表示前缀匹配的前缀的值 (当PatternType取值为PREFIXED时,此参数必填)

  • IsApplied:

    预设ACL规则是否应用到新增的topic中。默认为0,表示否。取值为1时表示是。

  • Comment:

    ACL规则的备注



1443
1444
1445
# File 'lib/v20190819/models.rb', line 1443

def Comment
  @Comment
end

#InstanceIdObject

Parameters:

  • InstanceId:

    ckafka集群实例Id,可通过DescribeInstances接口获取

  • ResourceType:

    Acl资源类型,目前只支持Topic,枚举值列表:Topic

  • PatternType:

    ACL规则匹配类型,目前支持前缀匹配与预设策略,枚举值列表:PREFIXED/PRESET

  • RuleName:

    规则名称

  • RuleList:

    设置的ACL规则列表

  • Pattern:

    表示前缀匹配的前缀的值 (当PatternType取值为PREFIXED时,此参数必填)

  • IsApplied:

    预设ACL规则是否应用到新增的topic中。默认为0,表示否。取值为1时表示是。

  • Comment:

    ACL规则的备注



1443
1444
1445
# File 'lib/v20190819/models.rb', line 1443

def InstanceId
  @InstanceId
end

#IsAppliedObject

Parameters:

  • InstanceId:

    ckafka集群实例Id,可通过DescribeInstances接口获取

  • ResourceType:

    Acl资源类型,目前只支持Topic,枚举值列表:Topic

  • PatternType:

    ACL规则匹配类型,目前支持前缀匹配与预设策略,枚举值列表:PREFIXED/PRESET

  • RuleName:

    规则名称

  • RuleList:

    设置的ACL规则列表

  • Pattern:

    表示前缀匹配的前缀的值 (当PatternType取值为PREFIXED时,此参数必填)

  • IsApplied:

    预设ACL规则是否应用到新增的topic中。默认为0,表示否。取值为1时表示是。

  • Comment:

    ACL规则的备注



1443
1444
1445
# File 'lib/v20190819/models.rb', line 1443

def IsApplied
  @IsApplied
end

#PatternObject

Parameters:

  • InstanceId:

    ckafka集群实例Id,可通过DescribeInstances接口获取

  • ResourceType:

    Acl资源类型,目前只支持Topic,枚举值列表:Topic

  • PatternType:

    ACL规则匹配类型,目前支持前缀匹配与预设策略,枚举值列表:PREFIXED/PRESET

  • RuleName:

    规则名称

  • RuleList:

    设置的ACL规则列表

  • Pattern:

    表示前缀匹配的前缀的值 (当PatternType取值为PREFIXED时,此参数必填)

  • IsApplied:

    预设ACL规则是否应用到新增的topic中。默认为0,表示否。取值为1时表示是。

  • Comment:

    ACL规则的备注



1443
1444
1445
# File 'lib/v20190819/models.rb', line 1443

def Pattern
  @Pattern
end

#PatternTypeObject

Parameters:

  • InstanceId:

    ckafka集群实例Id,可通过DescribeInstances接口获取

  • ResourceType:

    Acl资源类型,目前只支持Topic,枚举值列表:Topic

  • PatternType:

    ACL规则匹配类型,目前支持前缀匹配与预设策略,枚举值列表:PREFIXED/PRESET

  • RuleName:

    规则名称

  • RuleList:

    设置的ACL规则列表

  • Pattern:

    表示前缀匹配的前缀的值 (当PatternType取值为PREFIXED时,此参数必填)

  • IsApplied:

    预设ACL规则是否应用到新增的topic中。默认为0,表示否。取值为1时表示是。

  • Comment:

    ACL规则的备注



1443
1444
1445
# File 'lib/v20190819/models.rb', line 1443

def PatternType
  @PatternType
end

#ResourceTypeObject

Parameters:

  • InstanceId:

    ckafka集群实例Id,可通过DescribeInstances接口获取

  • ResourceType:

    Acl资源类型,目前只支持Topic,枚举值列表:Topic

  • PatternType:

    ACL规则匹配类型,目前支持前缀匹配与预设策略,枚举值列表:PREFIXED/PRESET

  • RuleName:

    规则名称

  • RuleList:

    设置的ACL规则列表

  • Pattern:

    表示前缀匹配的前缀的值 (当PatternType取值为PREFIXED时,此参数必填)

  • IsApplied:

    预设ACL规则是否应用到新增的topic中。默认为0,表示否。取值为1时表示是。

  • Comment:

    ACL规则的备注



1443
1444
1445
# File 'lib/v20190819/models.rb', line 1443

def ResourceType
  @ResourceType
end

#RuleListObject

Parameters:

  • InstanceId:

    ckafka集群实例Id,可通过DescribeInstances接口获取

  • ResourceType:

    Acl资源类型,目前只支持Topic,枚举值列表:Topic

  • PatternType:

    ACL规则匹配类型,目前支持前缀匹配与预设策略,枚举值列表:PREFIXED/PRESET

  • RuleName:

    规则名称

  • RuleList:

    设置的ACL规则列表

  • Pattern:

    表示前缀匹配的前缀的值 (当PatternType取值为PREFIXED时,此参数必填)

  • IsApplied:

    预设ACL规则是否应用到新增的topic中。默认为0,表示否。取值为1时表示是。

  • Comment:

    ACL规则的备注



1443
1444
1445
# File 'lib/v20190819/models.rb', line 1443

def RuleList
  @RuleList
end

#RuleNameObject

Parameters:

  • InstanceId:

    ckafka集群实例Id,可通过DescribeInstances接口获取

  • ResourceType:

    Acl资源类型,目前只支持Topic,枚举值列表:Topic

  • PatternType:

    ACL规则匹配类型,目前支持前缀匹配与预设策略,枚举值列表:PREFIXED/PRESET

  • RuleName:

    规则名称

  • RuleList:

    设置的ACL规则列表

  • Pattern:

    表示前缀匹配的前缀的值 (当PatternType取值为PREFIXED时,此参数必填)

  • IsApplied:

    预设ACL规则是否应用到新增的topic中。默认为0,表示否。取值为1时表示是。

  • Comment:

    ACL规则的备注



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