tencentcloud-sdk-teo 3.0.1114 → 3.0.1115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220901/client.rb +482 -0
- data/lib/v20220901/models.rb +1312 -48
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: effa5753d6288da935f38eb52e0b844ff062447d
|
4
|
+
data.tar.gz: 11f59f55b7de9aca7e72662ec3bc7ed6e54c47e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16fd6b5e6fa240d7c72afac4e783e3368cf17ef7b4e267e4bdf42082bedf623913c86cf3737be2711695f08d5253eb20d67f07028fa3c239cb3162e65be63b05
|
7
|
+
data.tar.gz: d1563d9be534ebe9816459caca150395d28fe386b6862285d2b83083e894947dffa255cf09639a6a850331743366e026062470cba5fa643efd709bd35e3662cf
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1115
|
data/lib/v20220901/client.rb
CHANGED
@@ -417,6 +417,32 @@ module TencentCloud
|
|
417
417
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
418
418
|
end
|
419
419
|
|
420
|
+
# 即时转码已经提供了预置转码模板,满足大部分的需求。如果有个性化的转码需求,可以通过本接口创建自定义的转码模板,最多可创建100个自定义转码模板。
|
421
|
+
# 为了确保即时转码效果的一致性,避免因 EO 缓存或 M3U8 分片处理过程中的模板变更导致视频输出异常,模板在创建后不可进行修改。
|
422
|
+
# 即时转码详细能力了解:[EdgeOne视频即时处理功能介绍](https://cloud.tencent.com/document/product/1552/111927)。
|
423
|
+
|
424
|
+
# @param request: Request instance for CreateJustInTimeTranscodeTemplate.
|
425
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::CreateJustInTimeTranscodeTemplateRequest`
|
426
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateJustInTimeTranscodeTemplateResponse`
|
427
|
+
def CreateJustInTimeTranscodeTemplate(request)
|
428
|
+
body = send_request('CreateJustInTimeTranscodeTemplate', request.serialize)
|
429
|
+
response = JSON.parse(body)
|
430
|
+
if response['Response'].key?('Error') == false
|
431
|
+
model = CreateJustInTimeTranscodeTemplateResponse.new
|
432
|
+
model.deserialize(response['Response'])
|
433
|
+
model
|
434
|
+
else
|
435
|
+
code = response['Response']['Error']['Code']
|
436
|
+
message = response['Response']['Error']['Message']
|
437
|
+
reqid = response['Response']['RequestId']
|
438
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
439
|
+
end
|
440
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
441
|
+
raise e
|
442
|
+
rescue StandardError => e
|
443
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
444
|
+
end
|
445
|
+
|
420
446
|
# 用于创建四层代理实例。
|
421
447
|
|
422
448
|
# @param request: Request instance for CreateL4Proxy.
|
@@ -758,6 +784,78 @@ module TencentCloud
|
|
758
784
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
759
785
|
end
|
760
786
|
|
787
|
+
# 用于创建 API 资源。
|
788
|
+
|
789
|
+
# @param request: Request instance for CreateSecurityAPIResource.
|
790
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::CreateSecurityAPIResourceRequest`
|
791
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateSecurityAPIResourceResponse`
|
792
|
+
def CreateSecurityAPIResource(request)
|
793
|
+
body = send_request('CreateSecurityAPIResource', request.serialize)
|
794
|
+
response = JSON.parse(body)
|
795
|
+
if response['Response'].key?('Error') == false
|
796
|
+
model = CreateSecurityAPIResourceResponse.new
|
797
|
+
model.deserialize(response['Response'])
|
798
|
+
model
|
799
|
+
else
|
800
|
+
code = response['Response']['Error']['Code']
|
801
|
+
message = response['Response']['Error']['Message']
|
802
|
+
reqid = response['Response']['RequestId']
|
803
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
804
|
+
end
|
805
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
806
|
+
raise e
|
807
|
+
rescue StandardError => e
|
808
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
809
|
+
end
|
810
|
+
|
811
|
+
# 用于创建 API 服务。
|
812
|
+
|
813
|
+
# @param request: Request instance for CreateSecurityAPIService.
|
814
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::CreateSecurityAPIServiceRequest`
|
815
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateSecurityAPIServiceResponse`
|
816
|
+
def CreateSecurityAPIService(request)
|
817
|
+
body = send_request('CreateSecurityAPIService', request.serialize)
|
818
|
+
response = JSON.parse(body)
|
819
|
+
if response['Response'].key?('Error') == false
|
820
|
+
model = CreateSecurityAPIServiceResponse.new
|
821
|
+
model.deserialize(response['Response'])
|
822
|
+
model
|
823
|
+
else
|
824
|
+
code = response['Response']['Error']['Code']
|
825
|
+
message = response['Response']['Error']['Message']
|
826
|
+
reqid = response['Response']['RequestId']
|
827
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
828
|
+
end
|
829
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
830
|
+
raise e
|
831
|
+
rescue StandardError => e
|
832
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
833
|
+
end
|
834
|
+
|
835
|
+
# 创建客户端认证选项。
|
836
|
+
|
837
|
+
# @param request: Request instance for CreateSecurityClientAttester.
|
838
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::CreateSecurityClientAttesterRequest`
|
839
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateSecurityClientAttesterResponse`
|
840
|
+
def CreateSecurityClientAttester(request)
|
841
|
+
body = send_request('CreateSecurityClientAttester', request.serialize)
|
842
|
+
response = JSON.parse(body)
|
843
|
+
if response['Response'].key?('Error') == false
|
844
|
+
model = CreateSecurityClientAttesterResponse.new
|
845
|
+
model.deserialize(response['Response'])
|
846
|
+
model
|
847
|
+
else
|
848
|
+
code = response['Response']['Error']['Code']
|
849
|
+
message = response['Response']['Error']['Message']
|
850
|
+
reqid = response['Response']['RequestId']
|
851
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
852
|
+
end
|
853
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
854
|
+
raise e
|
855
|
+
rescue StandardError => e
|
856
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
857
|
+
end
|
858
|
+
|
761
859
|
# 创建安全 IP 组
|
762
860
|
|
763
861
|
# @param request: Request instance for CreateSecurityIPGroup.
|
@@ -782,6 +880,30 @@ module TencentCloud
|
|
782
880
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
783
881
|
end
|
784
882
|
|
883
|
+
# 创建 JavaScript 注入规则。
|
884
|
+
|
885
|
+
# @param request: Request instance for CreateSecurityJSInjectionRule.
|
886
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::CreateSecurityJSInjectionRuleRequest`
|
887
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateSecurityJSInjectionRuleResponse`
|
888
|
+
def CreateSecurityJSInjectionRule(request)
|
889
|
+
body = send_request('CreateSecurityJSInjectionRule', request.serialize)
|
890
|
+
response = JSON.parse(body)
|
891
|
+
if response['Response'].key?('Error') == false
|
892
|
+
model = CreateSecurityJSInjectionRuleResponse.new
|
893
|
+
model.deserialize(response['Response'])
|
894
|
+
model
|
895
|
+
else
|
896
|
+
code = response['Response']['Error']['Code']
|
897
|
+
message = response['Response']['Error']['Message']
|
898
|
+
reqid = response['Response']['RequestId']
|
899
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
900
|
+
end
|
901
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
902
|
+
raise e
|
903
|
+
rescue StandardError => e
|
904
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
905
|
+
end
|
906
|
+
|
785
907
|
# 用于创建共享 CNAME,该功能白名单内测中。
|
786
908
|
|
787
909
|
# @param request: Request instance for CreateSharedCNAME.
|
@@ -1074,6 +1196,30 @@ module TencentCloud
|
|
1074
1196
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1075
1197
|
end
|
1076
1198
|
|
1199
|
+
# 根据站点 id 下唯一的模板标识,删除相应的即时转码模板。
|
1200
|
+
|
1201
|
+
# @param request: Request instance for DeleteJustInTimeTranscodeTemplates.
|
1202
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteJustInTimeTranscodeTemplatesRequest`
|
1203
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteJustInTimeTranscodeTemplatesResponse`
|
1204
|
+
def DeleteJustInTimeTranscodeTemplates(request)
|
1205
|
+
body = send_request('DeleteJustInTimeTranscodeTemplates', request.serialize)
|
1206
|
+
response = JSON.parse(body)
|
1207
|
+
if response['Response'].key?('Error') == false
|
1208
|
+
model = DeleteJustInTimeTranscodeTemplatesResponse.new
|
1209
|
+
model.deserialize(response['Response'])
|
1210
|
+
model
|
1211
|
+
else
|
1212
|
+
code = response['Response']['Error']['Code']
|
1213
|
+
message = response['Response']['Error']['Message']
|
1214
|
+
reqid = response['Response']['RequestId']
|
1215
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1216
|
+
end
|
1217
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1218
|
+
raise e
|
1219
|
+
rescue StandardError => e
|
1220
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1221
|
+
end
|
1222
|
+
|
1077
1223
|
# 用于删除四层代理实例。
|
1078
1224
|
|
1079
1225
|
# @param request: Request instance for DeleteL4Proxy.
|
@@ -1291,6 +1437,78 @@ module TencentCloud
|
|
1291
1437
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1292
1438
|
end
|
1293
1439
|
|
1440
|
+
# 用于删除 API 资源。
|
1441
|
+
|
1442
|
+
# @param request: Request instance for DeleteSecurityAPIResource.
|
1443
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteSecurityAPIResourceRequest`
|
1444
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteSecurityAPIResourceResponse`
|
1445
|
+
def DeleteSecurityAPIResource(request)
|
1446
|
+
body = send_request('DeleteSecurityAPIResource', request.serialize)
|
1447
|
+
response = JSON.parse(body)
|
1448
|
+
if response['Response'].key?('Error') == false
|
1449
|
+
model = DeleteSecurityAPIResourceResponse.new
|
1450
|
+
model.deserialize(response['Response'])
|
1451
|
+
model
|
1452
|
+
else
|
1453
|
+
code = response['Response']['Error']['Code']
|
1454
|
+
message = response['Response']['Error']['Message']
|
1455
|
+
reqid = response['Response']['RequestId']
|
1456
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1457
|
+
end
|
1458
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1459
|
+
raise e
|
1460
|
+
rescue StandardError => e
|
1461
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1462
|
+
end
|
1463
|
+
|
1464
|
+
# 用于删除 API 服务。
|
1465
|
+
|
1466
|
+
# @param request: Request instance for DeleteSecurityAPIService.
|
1467
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteSecurityAPIServiceRequest`
|
1468
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteSecurityAPIServiceResponse`
|
1469
|
+
def DeleteSecurityAPIService(request)
|
1470
|
+
body = send_request('DeleteSecurityAPIService', request.serialize)
|
1471
|
+
response = JSON.parse(body)
|
1472
|
+
if response['Response'].key?('Error') == false
|
1473
|
+
model = DeleteSecurityAPIServiceResponse.new
|
1474
|
+
model.deserialize(response['Response'])
|
1475
|
+
model
|
1476
|
+
else
|
1477
|
+
code = response['Response']['Error']['Code']
|
1478
|
+
message = response['Response']['Error']['Message']
|
1479
|
+
reqid = response['Response']['RequestId']
|
1480
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1481
|
+
end
|
1482
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1483
|
+
raise e
|
1484
|
+
rescue StandardError => e
|
1485
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1486
|
+
end
|
1487
|
+
|
1488
|
+
# 删除客户端认证选项。
|
1489
|
+
|
1490
|
+
# @param request: Request instance for DeleteSecurityClientAttester.
|
1491
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteSecurityClientAttesterRequest`
|
1492
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteSecurityClientAttesterResponse`
|
1493
|
+
def DeleteSecurityClientAttester(request)
|
1494
|
+
body = send_request('DeleteSecurityClientAttester', request.serialize)
|
1495
|
+
response = JSON.parse(body)
|
1496
|
+
if response['Response'].key?('Error') == false
|
1497
|
+
model = DeleteSecurityClientAttesterResponse.new
|
1498
|
+
model.deserialize(response['Response'])
|
1499
|
+
model
|
1500
|
+
else
|
1501
|
+
code = response['Response']['Error']['Code']
|
1502
|
+
message = response['Response']['Error']['Message']
|
1503
|
+
reqid = response['Response']['RequestId']
|
1504
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1505
|
+
end
|
1506
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1507
|
+
raise e
|
1508
|
+
rescue StandardError => e
|
1509
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1510
|
+
end
|
1511
|
+
|
1294
1512
|
# 删除指定 IP 组,如果有规则引用了 IP 组情况,则不允许删除。
|
1295
1513
|
|
1296
1514
|
# @param request: Request instance for DeleteSecurityIPGroup.
|
@@ -1315,6 +1533,30 @@ module TencentCloud
|
|
1315
1533
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1316
1534
|
end
|
1317
1535
|
|
1536
|
+
# 删除 JavaScript 注入规则。
|
1537
|
+
|
1538
|
+
# @param request: Request instance for DeleteSecurityJSInjectionRule.
|
1539
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteSecurityJSInjectionRuleRequest`
|
1540
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteSecurityJSInjectionRuleResponse`
|
1541
|
+
def DeleteSecurityJSInjectionRule(request)
|
1542
|
+
body = send_request('DeleteSecurityJSInjectionRule', request.serialize)
|
1543
|
+
response = JSON.parse(body)
|
1544
|
+
if response['Response'].key?('Error') == false
|
1545
|
+
model = DeleteSecurityJSInjectionRuleResponse.new
|
1546
|
+
model.deserialize(response['Response'])
|
1547
|
+
model
|
1548
|
+
else
|
1549
|
+
code = response['Response']['Error']['Code']
|
1550
|
+
message = response['Response']['Error']['Message']
|
1551
|
+
reqid = response['Response']['RequestId']
|
1552
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1553
|
+
end
|
1554
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1555
|
+
raise e
|
1556
|
+
rescue StandardError => e
|
1557
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1558
|
+
end
|
1559
|
+
|
1318
1560
|
# 用于删除共享 CNAME,该功能白名单内测中。
|
1319
1561
|
|
1320
1562
|
# @param request: Request instance for DeleteSharedCNAME.
|
@@ -1988,6 +2230,30 @@ module TencentCloud
|
|
1988
2230
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1989
2231
|
end
|
1990
2232
|
|
2233
|
+
# 根据即时转码模板名字、模板类型或唯一标识,获取即时转码模板详情列表。返回结果包含符合条件的所有用户自定义模板及预置模板。
|
2234
|
+
|
2235
|
+
# @param request: Request instance for DescribeJustInTimeTranscodeTemplates.
|
2236
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeJustInTimeTranscodeTemplatesRequest`
|
2237
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeJustInTimeTranscodeTemplatesResponse`
|
2238
|
+
def DescribeJustInTimeTranscodeTemplates(request)
|
2239
|
+
body = send_request('DescribeJustInTimeTranscodeTemplates', request.serialize)
|
2240
|
+
response = JSON.parse(body)
|
2241
|
+
if response['Response'].key?('Error') == false
|
2242
|
+
model = DescribeJustInTimeTranscodeTemplatesResponse.new
|
2243
|
+
model.deserialize(response['Response'])
|
2244
|
+
model
|
2245
|
+
else
|
2246
|
+
code = response['Response']['Error']['Code']
|
2247
|
+
message = response['Response']['Error']['Message']
|
2248
|
+
reqid = response['Response']['RequestId']
|
2249
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2250
|
+
end
|
2251
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2252
|
+
raise e
|
2253
|
+
rescue StandardError => e
|
2254
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2255
|
+
end
|
2256
|
+
|
1991
2257
|
# 用于查询四层代理实例列表。
|
1992
2258
|
|
1993
2259
|
# @param request: Request instance for DescribeL4Proxy.
|
@@ -2495,6 +2761,78 @@ module TencentCloud
|
|
2495
2761
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2496
2762
|
end
|
2497
2763
|
|
2764
|
+
# 查询站点下的 API 资源。
|
2765
|
+
|
2766
|
+
# @param request: Request instance for DescribeSecurityAPIResource.
|
2767
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeSecurityAPIResourceRequest`
|
2768
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeSecurityAPIResourceResponse`
|
2769
|
+
def DescribeSecurityAPIResource(request)
|
2770
|
+
body = send_request('DescribeSecurityAPIResource', request.serialize)
|
2771
|
+
response = JSON.parse(body)
|
2772
|
+
if response['Response'].key?('Error') == false
|
2773
|
+
model = DescribeSecurityAPIResourceResponse.new
|
2774
|
+
model.deserialize(response['Response'])
|
2775
|
+
model
|
2776
|
+
else
|
2777
|
+
code = response['Response']['Error']['Code']
|
2778
|
+
message = response['Response']['Error']['Message']
|
2779
|
+
reqid = response['Response']['RequestId']
|
2780
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2781
|
+
end
|
2782
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2783
|
+
raise e
|
2784
|
+
rescue StandardError => e
|
2785
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2786
|
+
end
|
2787
|
+
|
2788
|
+
# 查询站点下的 API 服务。
|
2789
|
+
|
2790
|
+
# @param request: Request instance for DescribeSecurityAPIService.
|
2791
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeSecurityAPIServiceRequest`
|
2792
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeSecurityAPIServiceResponse`
|
2793
|
+
def DescribeSecurityAPIService(request)
|
2794
|
+
body = send_request('DescribeSecurityAPIService', request.serialize)
|
2795
|
+
response = JSON.parse(body)
|
2796
|
+
if response['Response'].key?('Error') == false
|
2797
|
+
model = DescribeSecurityAPIServiceResponse.new
|
2798
|
+
model.deserialize(response['Response'])
|
2799
|
+
model
|
2800
|
+
else
|
2801
|
+
code = response['Response']['Error']['Code']
|
2802
|
+
message = response['Response']['Error']['Message']
|
2803
|
+
reqid = response['Response']['RequestId']
|
2804
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2805
|
+
end
|
2806
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2807
|
+
raise e
|
2808
|
+
rescue StandardError => e
|
2809
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2810
|
+
end
|
2811
|
+
|
2812
|
+
# 查询客户端认证选项配置。
|
2813
|
+
|
2814
|
+
# @param request: Request instance for DescribeSecurityClientAttester.
|
2815
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeSecurityClientAttesterRequest`
|
2816
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeSecurityClientAttesterResponse`
|
2817
|
+
def DescribeSecurityClientAttester(request)
|
2818
|
+
body = send_request('DescribeSecurityClientAttester', request.serialize)
|
2819
|
+
response = JSON.parse(body)
|
2820
|
+
if response['Response'].key?('Error') == false
|
2821
|
+
model = DescribeSecurityClientAttesterResponse.new
|
2822
|
+
model.deserialize(response['Response'])
|
2823
|
+
model
|
2824
|
+
else
|
2825
|
+
code = response['Response']['Error']['Code']
|
2826
|
+
message = response['Response']['Error']['Message']
|
2827
|
+
reqid = response['Response']['RequestId']
|
2828
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2829
|
+
end
|
2830
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2831
|
+
raise e
|
2832
|
+
rescue StandardError => e
|
2833
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2834
|
+
end
|
2835
|
+
|
2498
2836
|
# 查询安全 IP 组的配置信息,包括安全 IP 组的 ID、名称和内容。本接口的查询结果中,每个 IP 组最多只返回 2000 个 IP / 网段。如果存在超过 2000 个 IP / 网段的超大 IP 组,请调用 DescribeSecurityIPGroupContent 进行分页查询。
|
2499
2837
|
|
2500
2838
|
# @param request: Request instance for DescribeSecurityIPGroup.
|
@@ -2519,6 +2857,30 @@ module TencentCloud
|
|
2519
2857
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2520
2858
|
end
|
2521
2859
|
|
2860
|
+
# 该接口用于分页查询指定 IP 组中的 IP 地址列表。当 IP 组中的 IP 地址数量超过 2000 个时,可以使用此接口进行分页查询,以获取完整的 IP 地址列表。
|
2861
|
+
|
2862
|
+
# @param request: Request instance for DescribeSecurityIPGroupContent.
|
2863
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeSecurityIPGroupContentRequest`
|
2864
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeSecurityIPGroupContentResponse`
|
2865
|
+
def DescribeSecurityIPGroupContent(request)
|
2866
|
+
body = send_request('DescribeSecurityIPGroupContent', request.serialize)
|
2867
|
+
response = JSON.parse(body)
|
2868
|
+
if response['Response'].key?('Error') == false
|
2869
|
+
model = DescribeSecurityIPGroupContentResponse.new
|
2870
|
+
model.deserialize(response['Response'])
|
2871
|
+
model
|
2872
|
+
else
|
2873
|
+
code = response['Response']['Error']['Code']
|
2874
|
+
message = response['Response']['Error']['Message']
|
2875
|
+
reqid = response['Response']['RequestId']
|
2876
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2877
|
+
end
|
2878
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2879
|
+
raise e
|
2880
|
+
rescue StandardError => e
|
2881
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2882
|
+
end
|
2883
|
+
|
2522
2884
|
# 接口已废弃,将于 2024 年 6 月 30 日停止服务。请使用 [查询安全 IP 组
|
2523
2885
|
# ](https://cloud.tencent.com/document/product/1552/105866) 接口。
|
2524
2886
|
|
@@ -2546,6 +2908,30 @@ module TencentCloud
|
|
2546
2908
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2547
2909
|
end
|
2548
2910
|
|
2911
|
+
# 查询 JavaScript 注入规则。
|
2912
|
+
|
2913
|
+
# @param request: Request instance for DescribeSecurityJSInjectionRule.
|
2914
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeSecurityJSInjectionRuleRequest`
|
2915
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeSecurityJSInjectionRuleResponse`
|
2916
|
+
def DescribeSecurityJSInjectionRule(request)
|
2917
|
+
body = send_request('DescribeSecurityJSInjectionRule', request.serialize)
|
2918
|
+
response = JSON.parse(body)
|
2919
|
+
if response['Response'].key?('Error') == false
|
2920
|
+
model = DescribeSecurityJSInjectionRuleResponse.new
|
2921
|
+
model.deserialize(response['Response'])
|
2922
|
+
model
|
2923
|
+
else
|
2924
|
+
code = response['Response']['Error']['Code']
|
2925
|
+
message = response['Response']['Error']['Message']
|
2926
|
+
reqid = response['Response']['RequestId']
|
2927
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2928
|
+
end
|
2929
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2930
|
+
raise e
|
2931
|
+
rescue StandardError => e
|
2932
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2933
|
+
end
|
2934
|
+
|
2549
2935
|
# 查询安全防护配置详情。
|
2550
2936
|
|
2551
2937
|
# @param request: Request instance for DescribeSecurityPolicy.
|
@@ -3887,6 +4273,78 @@ module TencentCloud
|
|
3887
4273
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3888
4274
|
end
|
3889
4275
|
|
4276
|
+
# 该接口用于修改 API 资源。
|
4277
|
+
|
4278
|
+
# @param request: Request instance for ModifySecurityAPIResource.
|
4279
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifySecurityAPIResourceRequest`
|
4280
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifySecurityAPIResourceResponse`
|
4281
|
+
def ModifySecurityAPIResource(request)
|
4282
|
+
body = send_request('ModifySecurityAPIResource', request.serialize)
|
4283
|
+
response = JSON.parse(body)
|
4284
|
+
if response['Response'].key?('Error') == false
|
4285
|
+
model = ModifySecurityAPIResourceResponse.new
|
4286
|
+
model.deserialize(response['Response'])
|
4287
|
+
model
|
4288
|
+
else
|
4289
|
+
code = response['Response']['Error']['Code']
|
4290
|
+
message = response['Response']['Error']['Message']
|
4291
|
+
reqid = response['Response']['RequestId']
|
4292
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4293
|
+
end
|
4294
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4295
|
+
raise e
|
4296
|
+
rescue StandardError => e
|
4297
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4298
|
+
end
|
4299
|
+
|
4300
|
+
# 该接口用于修改 API 服务。
|
4301
|
+
|
4302
|
+
# @param request: Request instance for ModifySecurityAPIService.
|
4303
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifySecurityAPIServiceRequest`
|
4304
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifySecurityAPIServiceResponse`
|
4305
|
+
def ModifySecurityAPIService(request)
|
4306
|
+
body = send_request('ModifySecurityAPIService', request.serialize)
|
4307
|
+
response = JSON.parse(body)
|
4308
|
+
if response['Response'].key?('Error') == false
|
4309
|
+
model = ModifySecurityAPIServiceResponse.new
|
4310
|
+
model.deserialize(response['Response'])
|
4311
|
+
model
|
4312
|
+
else
|
4313
|
+
code = response['Response']['Error']['Code']
|
4314
|
+
message = response['Response']['Error']['Message']
|
4315
|
+
reqid = response['Response']['RequestId']
|
4316
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4317
|
+
end
|
4318
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4319
|
+
raise e
|
4320
|
+
rescue StandardError => e
|
4321
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4322
|
+
end
|
4323
|
+
|
4324
|
+
# 修改客户端认证选项。
|
4325
|
+
|
4326
|
+
# @param request: Request instance for ModifySecurityClientAttester.
|
4327
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifySecurityClientAttesterRequest`
|
4328
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifySecurityClientAttesterResponse`
|
4329
|
+
def ModifySecurityClientAttester(request)
|
4330
|
+
body = send_request('ModifySecurityClientAttester', request.serialize)
|
4331
|
+
response = JSON.parse(body)
|
4332
|
+
if response['Response'].key?('Error') == false
|
4333
|
+
model = ModifySecurityClientAttesterResponse.new
|
4334
|
+
model.deserialize(response['Response'])
|
4335
|
+
model
|
4336
|
+
else
|
4337
|
+
code = response['Response']['Error']['Code']
|
4338
|
+
message = response['Response']['Error']['Message']
|
4339
|
+
reqid = response['Response']['RequestId']
|
4340
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4341
|
+
end
|
4342
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4343
|
+
raise e
|
4344
|
+
rescue StandardError => e
|
4345
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4346
|
+
end
|
4347
|
+
|
3890
4348
|
# 修改安全 IP 组。
|
3891
4349
|
|
3892
4350
|
# @param request: Request instance for ModifySecurityIPGroup.
|
@@ -3911,6 +4369,30 @@ module TencentCloud
|
|
3911
4369
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3912
4370
|
end
|
3913
4371
|
|
4372
|
+
# 修改 JavaScript 注入规则。
|
4373
|
+
|
4374
|
+
# @param request: Request instance for ModifySecurityJSInjectionRule.
|
4375
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifySecurityJSInjectionRuleRequest`
|
4376
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifySecurityJSInjectionRuleResponse`
|
4377
|
+
def ModifySecurityJSInjectionRule(request)
|
4378
|
+
body = send_request('ModifySecurityJSInjectionRule', request.serialize)
|
4379
|
+
response = JSON.parse(body)
|
4380
|
+
if response['Response'].key?('Error') == false
|
4381
|
+
model = ModifySecurityJSInjectionRuleResponse.new
|
4382
|
+
model.deserialize(response['Response'])
|
4383
|
+
model
|
4384
|
+
else
|
4385
|
+
code = response['Response']['Error']['Code']
|
4386
|
+
message = response['Response']['Error']['Message']
|
4387
|
+
reqid = response['Response']['RequestId']
|
4388
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4389
|
+
end
|
4390
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4391
|
+
raise e
|
4392
|
+
rescue StandardError => e
|
4393
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4394
|
+
end
|
4395
|
+
|
3914
4396
|
# 修改Web&Bot安全配置。
|
3915
4397
|
|
3916
4398
|
# @param request: Request instance for ModifySecurityPolicy.
|