tencentcloud-sdk-waf 3.0.674 → 3.0.675

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: 9ab5051dc829801368053e10e5d923d901491743
4
- data.tar.gz: 06864f04f3cf0ee5b0f56005e89ea86381f421b4
3
+ metadata.gz: 016ec2d03130e94638d97a0ab62a94ed61fec488
4
+ data.tar.gz: acab7862e8daa6aa169e33bb328fe65dc7ac1dd2
5
5
  SHA512:
6
- metadata.gz: 411045b575f2d9b01c7d153f435892f1bc34f0d53cc757b88798577da37d2cb4d71b389465cd6de4fee3dbd5cda7b528b017969df270288c2998a583a4d436ac
7
- data.tar.gz: d6eede14ee78007fb25d6c088b9a9015455e3fae014222bcf39ad4d77686ec6cabf3e92767bb3c0cf79d8f1ad0a72d220f5098dd1bf168aad1ce89cbf415e4ac
6
+ metadata.gz: 0d921d1ae45ba082e9424712810731cdb584541294612db384208c7729320347c1b8af9385d3f02956d009913ddb6f48e353114d0de07942219919240ad15750
7
+ data.tar.gz: ab278b0e07aa5f40389457e12418d13a74f4a229eb4e8cc42a778a09cac55d76d711a065288d06387684c3f48e7247ddbbe915108fd8382732dc9f7402654752
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.674
1
+ 3.0.675
@@ -1306,6 +1306,30 @@ module TencentCloud
1306
1306
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1307
1307
  end
1308
1308
 
1309
+ # 查看防护对象列表
1310
+
1311
+ # @param request: Request instance for DescribeObjects.
1312
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribeObjectsRequest`
1313
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeObjectsResponse`
1314
+ def DescribeObjects(request)
1315
+ body = send_request('DescribeObjects', request.serialize)
1316
+ response = JSON.parse(body)
1317
+ if response['Response'].key?('Error') == false
1318
+ model = DescribeObjectsResponse.new
1319
+ model.deserialize(response['Response'])
1320
+ model
1321
+ else
1322
+ code = response['Response']['Error']['Code']
1323
+ message = response['Response']['Error']['Message']
1324
+ reqid = response['Response']['RequestId']
1325
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1326
+ end
1327
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1328
+ raise e
1329
+ rescue StandardError => e
1330
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1331
+ end
1332
+
1309
1333
  # 查询业务和攻击概要趋势
1310
1334
 
1311
1335
  # @param request: Request instance for DescribePeakPoints.
@@ -2413,6 +2437,30 @@ module TencentCloud
2413
2437
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2414
2438
  end
2415
2439
 
2440
+ # 修改防护对象
2441
+
2442
+ # @param request: Request instance for ModifyObject.
2443
+ # @type request: :class:`Tencentcloud::waf::V20180125::ModifyObjectRequest`
2444
+ # @rtype: :class:`Tencentcloud::waf::V20180125::ModifyObjectResponse`
2445
+ def ModifyObject(request)
2446
+ body = send_request('ModifyObject', request.serialize)
2447
+ response = JSON.parse(body)
2448
+ if response['Response'].key?('Error') == false
2449
+ model = ModifyObjectResponse.new
2450
+ model.deserialize(response['Response'])
2451
+ model
2452
+ else
2453
+ code = response['Response']['Error']['Code']
2454
+ message = response['Response']['Error']['Message']
2455
+ reqid = response['Response']['RequestId']
2456
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2457
+ end
2458
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2459
+ raise e
2460
+ rescue StandardError => e
2461
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2462
+ end
2463
+
2416
2464
  # waf斯巴达-waf开关
2417
2465
 
2418
2466
  # @param request: Request instance for ModifyProtectionStatus.
@@ -1461,6 +1461,78 @@ module TencentCloud
1461
1461
  end
1462
1462
  end
1463
1463
 
1464
+ # Clb类型防护对象
1465
+ class ClbObject < TencentCloud::Common::AbstractModel
1466
+ # @param ObjectId: 对象ID
1467
+ # @type ObjectId: String
1468
+ # @param InstanceId: 实例ID
1469
+ # @type InstanceId: String
1470
+ # @param InstanceName: 实例名称
1471
+ # @type InstanceName: String
1472
+ # @param PreciseDomains: 精准域名列表
1473
+ # @type PreciseDomains: Array
1474
+ # @param Status: WAF功能开关状态,0关闭1开启
1475
+ # @type Status: Integer
1476
+ # @param ClsStatus: WAF日志开关状态,0关闭1开启
1477
+ # @type ClsStatus: Integer
1478
+ # @param VirtualDomain: CLB对象对应的虚拟域名
1479
+ # @type VirtualDomain: String
1480
+ # @param ObjectName: 对象名称
1481
+ # @type ObjectName: String
1482
+ # @param PublicIp: 公网地址
1483
+ # @type PublicIp: Array
1484
+ # @param PrivateIp: 内网地址
1485
+ # @type PrivateIp: Array
1486
+ # @param VpcName: VPC名称
1487
+ # @type VpcName: String
1488
+ # @param Vpc: VPC ID
1489
+ # @type Vpc: String
1490
+ # @param InstanceLevel: waf实例等级,如果未绑定实例为0
1491
+ # @type InstanceLevel: Integer
1492
+ # @param PostCLSStatus: clb投递开关
1493
+ # @type PostCLSStatus: Integer
1494
+ # @param PostCKafkaStatus: kafka投递开关
1495
+ # @type PostCKafkaStatus: Integer
1496
+
1497
+ attr_accessor :ObjectId, :InstanceId, :InstanceName, :PreciseDomains, :Status, :ClsStatus, :VirtualDomain, :ObjectName, :PublicIp, :PrivateIp, :VpcName, :Vpc, :InstanceLevel, :PostCLSStatus, :PostCKafkaStatus
1498
+
1499
+ def initialize(objectid=nil, instanceid=nil, instancename=nil, precisedomains=nil, status=nil, clsstatus=nil, virtualdomain=nil, objectname=nil, publicip=nil, privateip=nil, vpcname=nil, vpc=nil, instancelevel=nil, postclsstatus=nil, postckafkastatus=nil)
1500
+ @ObjectId = objectid
1501
+ @InstanceId = instanceid
1502
+ @InstanceName = instancename
1503
+ @PreciseDomains = precisedomains
1504
+ @Status = status
1505
+ @ClsStatus = clsstatus
1506
+ @VirtualDomain = virtualdomain
1507
+ @ObjectName = objectname
1508
+ @PublicIp = publicip
1509
+ @PrivateIp = privateip
1510
+ @VpcName = vpcname
1511
+ @Vpc = vpc
1512
+ @InstanceLevel = instancelevel
1513
+ @PostCLSStatus = postclsstatus
1514
+ @PostCKafkaStatus = postckafkastatus
1515
+ end
1516
+
1517
+ def deserialize(params)
1518
+ @ObjectId = params['ObjectId']
1519
+ @InstanceId = params['InstanceId']
1520
+ @InstanceName = params['InstanceName']
1521
+ @PreciseDomains = params['PreciseDomains']
1522
+ @Status = params['Status']
1523
+ @ClsStatus = params['ClsStatus']
1524
+ @VirtualDomain = params['VirtualDomain']
1525
+ @ObjectName = params['ObjectName']
1526
+ @PublicIp = params['PublicIp']
1527
+ @PrivateIp = params['PrivateIp']
1528
+ @VpcName = params['VpcName']
1529
+ @Vpc = params['Vpc']
1530
+ @InstanceLevel = params['InstanceLevel']
1531
+ @PostCLSStatus = params['PostCLSStatus']
1532
+ @PostCKafkaStatus = params['PostCKafkaStatus']
1533
+ end
1534
+ end
1535
+
1464
1536
  # CreateAccessExport请求参数结构体
1465
1537
  class CreateAccessExportRequest < TencentCloud::Common::AbstractModel
1466
1538
  # @param TopicId: 客户要查询的日志主题ID,每个客户都有对应的一个主题
@@ -4205,6 +4277,62 @@ module TencentCloud
4205
4277
  end
4206
4278
  end
4207
4279
 
4280
+ # DescribeObjects请求参数结构体
4281
+ class DescribeObjectsRequest < TencentCloud::Common::AbstractModel
4282
+ # @param Filters: 支持的过滤器:
4283
+ # ObjectId: clb实例ID
4284
+ # VIP: clb实例的公网IP
4285
+ # InstanceId: waf实例ID
4286
+ # Domain: 精准域名
4287
+ # Status: waf防护开关状态: 0关闭,1开启
4288
+ # ClsStatus: waf日志开关: 0关闭,1开启
4289
+ # @type Filters: Array
4290
+
4291
+ attr_accessor :Filters
4292
+
4293
+ def initialize(filters=nil)
4294
+ @Filters = filters
4295
+ end
4296
+
4297
+ def deserialize(params)
4298
+ unless params['Filters'].nil?
4299
+ @Filters = []
4300
+ params['Filters'].each do |i|
4301
+ filtersitemnew_tmp = FiltersItemNew.new
4302
+ filtersitemnew_tmp.deserialize(i)
4303
+ @Filters << filtersitemnew_tmp
4304
+ end
4305
+ end
4306
+ end
4307
+ end
4308
+
4309
+ # DescribeObjects返回参数结构体
4310
+ class DescribeObjectsResponse < TencentCloud::Common::AbstractModel
4311
+ # @param ClbObjects: 对象列表
4312
+ # @type ClbObjects: Array
4313
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4314
+ # @type RequestId: String
4315
+
4316
+ attr_accessor :ClbObjects, :RequestId
4317
+
4318
+ def initialize(clbobjects=nil, requestid=nil)
4319
+ @ClbObjects = clbobjects
4320
+ @RequestId = requestid
4321
+ end
4322
+
4323
+ def deserialize(params)
4324
+ unless params['ClbObjects'].nil?
4325
+ @ClbObjects = []
4326
+ params['ClbObjects'].each do |i|
4327
+ clbobject_tmp = ClbObject.new
4328
+ clbobject_tmp.deserialize(i)
4329
+ @ClbObjects << clbobject_tmp
4330
+ end
4331
+ end
4332
+ @RequestId = params['RequestId']
4333
+ end
4334
+ end
4335
+
4208
4336
  # DescribePeakPoints请求参数结构体
4209
4337
  class DescribePeakPointsRequest < TencentCloud::Common::AbstractModel
4210
4338
  # @param FromTime: 查询起始时间
@@ -7947,6 +8075,50 @@ module TencentCloud
7947
8075
  end
7948
8076
  end
7949
8077
 
8078
+ # ModifyObject请求参数结构体
8079
+ class ModifyObjectRequest < TencentCloud::Common::AbstractModel
8080
+ # @param ObjectId: 修改对象标识
8081
+ # @type ObjectId: String
8082
+ # @param OpType: 改动作类型:Status修改开关,InstanceId绑定实例
8083
+ # @type OpType: String
8084
+ # @param Status: 新的Waf开关状态,如果和已有状态相同认为修改成功
8085
+ # @type Status: Integer
8086
+ # @param InstanceId: 新的实例ID,如果和已绑定的实例相同认为修改成功
8087
+ # @type InstanceId: String
8088
+
8089
+ attr_accessor :ObjectId, :OpType, :Status, :InstanceId
8090
+
8091
+ def initialize(objectid=nil, optype=nil, status=nil, instanceid=nil)
8092
+ @ObjectId = objectid
8093
+ @OpType = optype
8094
+ @Status = status
8095
+ @InstanceId = instanceid
8096
+ end
8097
+
8098
+ def deserialize(params)
8099
+ @ObjectId = params['ObjectId']
8100
+ @OpType = params['OpType']
8101
+ @Status = params['Status']
8102
+ @InstanceId = params['InstanceId']
8103
+ end
8104
+ end
8105
+
8106
+ # ModifyObject返回参数结构体
8107
+ class ModifyObjectResponse < TencentCloud::Common::AbstractModel
8108
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8109
+ # @type RequestId: String
8110
+
8111
+ attr_accessor :RequestId
8112
+
8113
+ def initialize(requestid=nil)
8114
+ @RequestId = requestid
8115
+ end
8116
+
8117
+ def deserialize(params)
8118
+ @RequestId = params['RequestId']
8119
+ end
8120
+ end
8121
+
7950
8122
  # ModifyProtectionStatus请求参数结构体
7951
8123
  class ModifyProtectionStatusRequest < TencentCloud::Common::AbstractModel
7952
8124
  # @param Domain: 域名
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-waf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.674
4
+ version: 3.0.675
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-11 00:00:00.000000000 Z
11
+ date: 2023-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/tencentcloud-sdk-waf.rb
37
- - lib/v20180125/models.rb
38
36
  - lib/v20180125/client.rb
37
+ - lib/v20180125/models.rb
38
+ - lib/tencentcloud-sdk-waf.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: