tencentcloud-sdk-cfw 1.0.204 → 1.0.205

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96407b9728a9af3fe064e243d6a197c2025e2ddb
4
- data.tar.gz: 31e827dfe95d68df64f4188230d6c044164e63a6
3
+ metadata.gz: d17769dcf9f8c7bf6c7d50d7c3dc0e2a76695272
4
+ data.tar.gz: 8dbd3b434f63ab6f7cb20e239213aafd2dd22d5d
5
5
  SHA512:
6
- metadata.gz: 84773dc4c5b590f5c0cec86171e2d1089db8a4195140e68195c42102591b8301d02ee878bbb83ebbb136cf24074aaa33ceba52b3606aa258cd6be9f0b590a908
7
- data.tar.gz: 51d24dfbe3df3d82a65c10939d56d1bf2427ab2516103be3b1912254de26ba2111a251b75765b06109a5db334e4e83b8d3cc53df7b8367e59362c8fd673f311d
6
+ metadata.gz: 6182d9429fddedd892bc268e67cec28440d7ab3cba11cdf698cd0e6d4e633a960203f0b200c61e4bbf943f66d990f475a18353a8b1f7be65c21c58a6633fd3da
7
+ data.tar.gz: 4d988e8fe84595e9c124431af272a3915c3d3a94402bb8b5e28cd0ee954037864e2482d2fa6c4e9f6d22ba97915f6fa184cc3c435b888a015cd0abf5579a73f5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.204
1
+ 1.0.205
@@ -53,6 +53,30 @@ module TencentCloud
53
53
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
54
  end
55
55
 
56
+ # 创建新企业安全组规则
57
+
58
+ # @param request: Request instance for AddEnterpriseSecurityGroupRules.
59
+ # @type request: :class:`Tencentcloud::cfw::V20190904::AddEnterpriseSecurityGroupRulesRequest`
60
+ # @rtype: :class:`Tencentcloud::cfw::V20190904::AddEnterpriseSecurityGroupRulesResponse`
61
+ def AddEnterpriseSecurityGroupRules(request)
62
+ body = send_request('AddEnterpriseSecurityGroupRules', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = AddEnterpriseSecurityGroupRulesResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
56
80
  # 创建规则
57
81
 
58
82
  # @param request: Request instance for CreateAcRules.
@@ -509,6 +533,30 @@ module TencentCloud
509
533
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
510
534
  end
511
535
 
536
+ # 查询新企业安全组规则
537
+
538
+ # @param request: Request instance for DescribeEnterpriseSecurityGroupRule.
539
+ # @type request: :class:`Tencentcloud::cfw::V20190904::DescribeEnterpriseSecurityGroupRuleRequest`
540
+ # @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeEnterpriseSecurityGroupRuleResponse`
541
+ def DescribeEnterpriseSecurityGroupRule(request)
542
+ body = send_request('DescribeEnterpriseSecurityGroupRule', request.serialize)
543
+ response = JSON.parse(body)
544
+ if response['Response'].key?('Error') == false
545
+ model = DescribeEnterpriseSecurityGroupRuleResponse.new
546
+ model.deserialize(response['Response'])
547
+ model
548
+ else
549
+ code = response['Response']['Error']['Code']
550
+ message = response['Response']['Error']['Message']
551
+ reqid = response['Response']['RequestId']
552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
553
+ end
554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
555
+ raise e
556
+ rescue StandardError => e
557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
+ end
559
+
512
560
  # DescribeGuideScanInfo新手引导扫描接口信息
513
561
 
514
562
  # @param request: Request instance for DescribeGuideScanInfo.
@@ -1521,6 +1569,30 @@ module TencentCloud
1521
1569
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1522
1570
  end
1523
1571
 
1572
+ # 删除新企业安全组规则
1573
+
1574
+ # @param request: Request instance for RemoveEnterpriseSecurityGroupRule.
1575
+ # @type request: :class:`Tencentcloud::cfw::V20190904::RemoveEnterpriseSecurityGroupRuleRequest`
1576
+ # @rtype: :class:`Tencentcloud::cfw::V20190904::RemoveEnterpriseSecurityGroupRuleResponse`
1577
+ def RemoveEnterpriseSecurityGroupRule(request)
1578
+ body = send_request('RemoveEnterpriseSecurityGroupRule', request.serialize)
1579
+ response = JSON.parse(body)
1580
+ if response['Response'].key?('Error') == false
1581
+ model = RemoveEnterpriseSecurityGroupRuleResponse.new
1582
+ model.deserialize(response['Response'])
1583
+ model
1584
+ else
1585
+ code = response['Response']['Error']['Code']
1586
+ message = response['Response']['Error']['Message']
1587
+ reqid = response['Response']['RequestId']
1588
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1589
+ end
1590
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1591
+ raise e
1592
+ rescue StandardError => e
1593
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1594
+ end
1595
+
1524
1596
  # 同步资产-互联网&VPC
1525
1597
 
1526
1598
  # @param request: Request instance for RunSyncAsset.
@@ -214,6 +214,57 @@ module TencentCloud
214
214
  end
215
215
  end
216
216
 
217
+ # AddEnterpriseSecurityGroupRules请求参数结构体
218
+ class AddEnterpriseSecurityGroupRulesRequest < TencentCloud::Common::AbstractModel
219
+ # @param Data: 创建规则数据
220
+ # @type Data: Array
221
+ # @param Type: 添加类型,0:添加到最后,1:添加到最前;2:中间插入;默认0添加到最后
222
+ # @type Type: Integer
223
+ # @param ClientToken: 保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。
224
+ # @type ClientToken: String
225
+
226
+ attr_accessor :Data, :Type, :ClientToken
227
+
228
+ def initialize(data=nil, type=nil, clienttoken=nil)
229
+ @Data = data
230
+ @Type = type
231
+ @ClientToken = clienttoken
232
+ end
233
+
234
+ def deserialize(params)
235
+ unless params['Data'].nil?
236
+ @Data = []
237
+ params['Data'].each do |i|
238
+ securitygrouprule_tmp = SecurityGroupRule.new
239
+ securitygrouprule_tmp.deserialize(i)
240
+ @Data << securitygrouprule_tmp
241
+ end
242
+ end
243
+ @Type = params['Type']
244
+ @ClientToken = params['ClientToken']
245
+ end
246
+ end
247
+
248
+ # AddEnterpriseSecurityGroupRules返回参数结构体
249
+ class AddEnterpriseSecurityGroupRulesResponse < TencentCloud::Common::AbstractModel
250
+ # @param Status: 状态值,0:添加成功,非0:添加失败
251
+ # @type Status: Integer
252
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
253
+ # @type RequestId: String
254
+
255
+ attr_accessor :Status, :RequestId
256
+
257
+ def initialize(status=nil, requestid=nil)
258
+ @Status = status
259
+ @RequestId = requestid
260
+ end
261
+
262
+ def deserialize(params)
263
+ @Status = params['Status']
264
+ @RequestId = params['RequestId']
265
+ end
266
+ end
267
+
217
268
  # AssetZone
218
269
  class AssetZone < TencentCloud::Common::AbstractModel
219
270
  # @param Zone: 地域
@@ -1425,6 +1476,120 @@ module TencentCloud
1425
1476
  end
1426
1477
  end
1427
1478
 
1479
+ # DescribeEnterpriseSecurityGroupRule请求参数结构体
1480
+ class DescribeEnterpriseSecurityGroupRuleRequest < TencentCloud::Common::AbstractModel
1481
+ # @param PageNo: 分页查询时,显示的当前页的页码。
1482
+
1483
+ # 默认值为1。
1484
+ # @type PageNo: String
1485
+ # @param PageSize: 分页查询时,显示的每页数据的最大条数。
1486
+
1487
+ # 可设置值最大为50。
1488
+ # @type PageSize: String
1489
+ # @param SourceContent: 访问源示例:
1490
+ # net:IP/CIDR(192.168.0.2)
1491
+ # template:参数模板(ipm-dyodhpby)
1492
+ # instance:资产实例(ins-123456)
1493
+ # resourcegroup:资产分组(/全部分组/分组1/子分组1)
1494
+ # tag:资源标签({"Key":"标签key值","Value":"标签Value值"})
1495
+ # region:地域(ap-gaungzhou)
1496
+ # 支持通配
1497
+ # @type SourceContent: String
1498
+ # @param DestContent: 访问目的示例:
1499
+ # net:IP/CIDR(192.168.0.2)
1500
+ # template:参数模板(ipm-dyodhpby)
1501
+ # instance:资产实例(ins-123456)
1502
+ # resourcegroup:资产分组(/全部分组/分组1/子分组1)
1503
+ # tag:资源标签({"Key":"标签key值","Value":"标签Value值"})
1504
+ # region:地域(ap-gaungzhou)
1505
+ # 支持通配
1506
+ # @type DestContent: String
1507
+ # @param Description: 规则描述,支持通配
1508
+ # @type Description: String
1509
+ # @param RuleAction: 访问控制策略中设置的流量通过云防火墙的方式。取值:
1510
+ # accept:放行
1511
+ # drop:拒绝
1512
+ # @type RuleAction: String
1513
+ # @param Enable: 是否启用规则,默认为启用,取值:
1514
+ # true为启用,false为不启用
1515
+ # @type Enable: String
1516
+ # @param Port: 访问控制策略的端口。取值:
1517
+ # -1/-1:全部端口
1518
+ # 80:80端口
1519
+ # @type Port: String
1520
+ # @param Protocol: 协议;TCP/UDP/ICMP/ANY
1521
+ # @type Protocol: String
1522
+ # @param ServiceTemplateId: 端口协议类型参数模板id;协议端口模板id;与Protocol,Port互斥
1523
+ # @type ServiceTemplateId: String
1524
+
1525
+ attr_accessor :PageNo, :PageSize, :SourceContent, :DestContent, :Description, :RuleAction, :Enable, :Port, :Protocol, :ServiceTemplateId
1526
+
1527
+ def initialize(pageno=nil, pagesize=nil, sourcecontent=nil, destcontent=nil, description=nil, ruleaction=nil, enable=nil, port=nil, protocol=nil, servicetemplateid=nil)
1528
+ @PageNo = pageno
1529
+ @PageSize = pagesize
1530
+ @SourceContent = sourcecontent
1531
+ @DestContent = destcontent
1532
+ @Description = description
1533
+ @RuleAction = ruleaction
1534
+ @Enable = enable
1535
+ @Port = port
1536
+ @Protocol = protocol
1537
+ @ServiceTemplateId = servicetemplateid
1538
+ end
1539
+
1540
+ def deserialize(params)
1541
+ @PageNo = params['PageNo']
1542
+ @PageSize = params['PageSize']
1543
+ @SourceContent = params['SourceContent']
1544
+ @DestContent = params['DestContent']
1545
+ @Description = params['Description']
1546
+ @RuleAction = params['RuleAction']
1547
+ @Enable = params['Enable']
1548
+ @Port = params['Port']
1549
+ @Protocol = params['Protocol']
1550
+ @ServiceTemplateId = params['ServiceTemplateId']
1551
+ end
1552
+ end
1553
+
1554
+ # DescribeEnterpriseSecurityGroupRule返回参数结构体
1555
+ class DescribeEnterpriseSecurityGroupRuleResponse < TencentCloud::Common::AbstractModel
1556
+ # @param PageNo: 分页查询时,显示的当前页的页码。
1557
+ # @type PageNo: String
1558
+ # @param PageSize: 分页查询时,显示的每页数据的最大条数。
1559
+ # @type PageSize: String
1560
+ # @param Rules: 访问控制策略列表
1561
+ # @type Rules: Array
1562
+ # @param TotalCount: 访问控制策略的总数量。
1563
+ # @type TotalCount: String
1564
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1565
+ # @type RequestId: String
1566
+
1567
+ attr_accessor :PageNo, :PageSize, :Rules, :TotalCount, :RequestId
1568
+
1569
+ def initialize(pageno=nil, pagesize=nil, rules=nil, totalcount=nil, requestid=nil)
1570
+ @PageNo = pageno
1571
+ @PageSize = pagesize
1572
+ @Rules = rules
1573
+ @TotalCount = totalcount
1574
+ @RequestId = requestid
1575
+ end
1576
+
1577
+ def deserialize(params)
1578
+ @PageNo = params['PageNo']
1579
+ @PageSize = params['PageSize']
1580
+ unless params['Rules'].nil?
1581
+ @Rules = []
1582
+ params['Rules'].each do |i|
1583
+ securitygrouprule_tmp = SecurityGroupRule.new
1584
+ securitygrouprule_tmp.deserialize(i)
1585
+ @Rules << securitygrouprule_tmp
1586
+ end
1587
+ end
1588
+ @TotalCount = params['TotalCount']
1589
+ @RequestId = params['RequestId']
1590
+ end
1591
+ end
1592
+
1428
1593
  # DescribeGuideScanInfo请求参数结构体
1429
1594
  class DescribeGuideScanInfoRequest < TencentCloud::Common::AbstractModel
1430
1595
 
@@ -3923,6 +4088,51 @@ module TencentCloud
3923
4088
  end
3924
4089
  end
3925
4090
 
4091
+ # RemoveEnterpriseSecurityGroupRule请求参数结构体
4092
+ class RemoveEnterpriseSecurityGroupRuleRequest < TencentCloud::Common::AbstractModel
4093
+ # @param RuleUuid: 规则的uuid,可通过查询规则列表获取
4094
+ # @type RuleUuid: Integer
4095
+ # @param RemoveType: 删除类型,0是单条删除,RuleUuid填写删除规则id,1为全部删除,RuleUuid填0即可
4096
+ # @type RemoveType: Integer
4097
+
4098
+ attr_accessor :RuleUuid, :RemoveType
4099
+
4100
+ def initialize(ruleuuid=nil, removetype=nil)
4101
+ @RuleUuid = ruleuuid
4102
+ @RemoveType = removetype
4103
+ end
4104
+
4105
+ def deserialize(params)
4106
+ @RuleUuid = params['RuleUuid']
4107
+ @RemoveType = params['RemoveType']
4108
+ end
4109
+ end
4110
+
4111
+ # RemoveEnterpriseSecurityGroupRule返回参数结构体
4112
+ class RemoveEnterpriseSecurityGroupRuleResponse < TencentCloud::Common::AbstractModel
4113
+ # @param RuleUuid: 删除成功后返回被删除策略的uuid
4114
+ # @type RuleUuid: Integer
4115
+ # @param Status: 0代表成功,-1代表失败
4116
+ # 注意:此字段可能返回 null,表示取不到有效值。
4117
+ # @type Status: Integer
4118
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4119
+ # @type RequestId: String
4120
+
4121
+ attr_accessor :RuleUuid, :Status, :RequestId
4122
+
4123
+ def initialize(ruleuuid=nil, status=nil, requestid=nil)
4124
+ @RuleUuid = ruleuuid
4125
+ @Status = status
4126
+ @RequestId = requestid
4127
+ end
4128
+
4129
+ def deserialize(params)
4130
+ @RuleUuid = params['RuleUuid']
4131
+ @Status = params['Status']
4132
+ @RequestId = params['RequestId']
4133
+ end
4134
+ end
4135
+
3926
4136
  # 规则输入对象
3927
4137
  class RuleInfoData < TencentCloud::Common::AbstractModel
3928
4138
  # @param OrderIndex: 执行顺序
@@ -4422,6 +4632,77 @@ module TencentCloud
4422
4632
  end
4423
4633
  end
4424
4634
 
4635
+ # 安全组规则
4636
+ class SecurityGroupRule < TencentCloud::Common::AbstractModel
4637
+ # @param SourceContent: 访问源示例:
4638
+ # net:IP/CIDR(192.168.0.2)
4639
+ # template:参数模板(ipm-dyodhpby)
4640
+ # instance:资产实例(ins-123456)
4641
+ # resourcegroup:资产分组(/全部分组/分组1/子分组1)
4642
+ # tag:资源标签({"Key":"标签key值","Value":"标签Value值"})
4643
+ # region:地域(ap-gaungzhou)
4644
+ # @type SourceContent: String
4645
+ # @param SourceType: 访问源类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region
4646
+ # @type SourceType: String
4647
+ # @param DestContent: 访问目的示例:
4648
+ # net:IP/CIDR(192.168.0.2)
4649
+ # template:参数模板(ipm-dyodhpby)
4650
+ # instance:资产实例(ins-123456)
4651
+ # resourcegroup:资产分组(/全部分组/分组1/子分组1)
4652
+ # tag:资源标签({"Key":"标签key值","Value":"标签Value值"})
4653
+ # region:地域(ap-gaungzhou)
4654
+ # @type DestContent: String
4655
+ # @param DestType: 访问目的类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region
4656
+ # @type DestType: String
4657
+ # @param RuleAction: 访问控制策略中设置的流量通过云防火墙的方式。取值:
4658
+ # accept:放行
4659
+ # drop:拒绝
4660
+ # @type RuleAction: String
4661
+ # @param Description: 描述
4662
+ # @type Description: String
4663
+ # @param OrderIndex: 规则顺序,-1表示最低,1表示最高
4664
+ # @type OrderIndex: String
4665
+ # @param Protocol: 协议;TCP/UDP/ICMP/ANY
4666
+ # 注意:此字段可能返回 null,表示取不到有效值。
4667
+ # @type Protocol: String
4668
+ # @param Port: 访问控制策略的端口。取值:
4669
+ # -1/-1:全部端口
4670
+ # 80:80端口
4671
+ # 注意:此字段可能返回 null,表示取不到有效值。
4672
+ # @type Port: String
4673
+ # @param ServiceTemplateId: 端口协议类型参数模板id;协议端口模板id;与Protocol,Port互斥
4674
+ # 注意:此字段可能返回 null,表示取不到有效值。
4675
+ # @type ServiceTemplateId: String
4676
+
4677
+ attr_accessor :SourceContent, :SourceType, :DestContent, :DestType, :RuleAction, :Description, :OrderIndex, :Protocol, :Port, :ServiceTemplateId
4678
+
4679
+ def initialize(sourcecontent=nil, sourcetype=nil, destcontent=nil, desttype=nil, ruleaction=nil, description=nil, orderindex=nil, protocol=nil, port=nil, servicetemplateid=nil)
4680
+ @SourceContent = sourcecontent
4681
+ @SourceType = sourcetype
4682
+ @DestContent = destcontent
4683
+ @DestType = desttype
4684
+ @RuleAction = ruleaction
4685
+ @Description = description
4686
+ @OrderIndex = orderindex
4687
+ @Protocol = protocol
4688
+ @Port = port
4689
+ @ServiceTemplateId = servicetemplateid
4690
+ end
4691
+
4692
+ def deserialize(params)
4693
+ @SourceContent = params['SourceContent']
4694
+ @SourceType = params['SourceType']
4695
+ @DestContent = params['DestContent']
4696
+ @DestType = params['DestType']
4697
+ @RuleAction = params['RuleAction']
4698
+ @Description = params['Description']
4699
+ @OrderIndex = params['OrderIndex']
4700
+ @Protocol = params['Protocol']
4701
+ @Port = params['Port']
4702
+ @ServiceTemplateId = params['ServiceTemplateId']
4703
+ end
4704
+ end
4705
+
4425
4706
  # 执行顺序对象
4426
4707
  class SequenceData < TencentCloud::Common::AbstractModel
4427
4708
  # @param Id: 规则Id值
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cfw
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.204
4
+ version: 1.0.205
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-17 00:00:00.000000000 Z
11
+ date: 2021-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common