tencentcloud-sdk-teo 3.0.1114 → 3.0.1116
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 +489 -2
- data/lib/v20220901/models.rb +1345 -76
- 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: 65128d59bc59028f618b0cedaa26655b906822b2
|
4
|
+
data.tar.gz: 8bfeb705ce03eb4c1f3997c29d1540883d74b6fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 817ec358d68cda9e4a3e0199d9e989d930e2ab27afd8a7f6fe93584cac23e6e50d96e29cc72f86df7ce67995e3cf19fbaf1e3d2313b8a7029efaa46ddc73576d
|
7
|
+
data.tar.gz: 68584cf681ffdffd85bbb701c936182f1e12326cca33fc9cae40b60a6fdc46ce268bf8e2a8d50078d1c304b435d9b05a69fbe4497a3ec26da3aaeeab0075ad19
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1116
|
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.
|
@@ -708,8 +734,13 @@ module TencentCloud
|
|
708
734
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
709
735
|
end
|
710
736
|
|
711
|
-
#
|
712
|
-
#
|
737
|
+
# 本接口用于创建实时日志投递任务。本接口有如下限制:
|
738
|
+
# - 当数据投递类型(LogType)为站点加速日志(七层访问日志)、四层代理日志、边缘函数运行日志时,同一个实体(七层域名、四层代理实例、边缘函数实例)在同种数据投递类型(LogType)和数据投递区域(Area)的组合下,只能被添加到如下实时日志投递任务类型(TaskType)组合中:
|
739
|
+
# - 一个推送至腾讯云 CLS 的任务,加上另一个推送至自定义 HTTP(S) 地址的任务;
|
740
|
+
# - 一个推送至腾讯云 CLS 的任务,加上另一个推送至 AWS S3 兼容对象存储的任务;
|
741
|
+
# - 当数据投递类型(LogType)为速率限制和 CC 攻击防护日志、托管规则日志、自定义规则日志、Bot 管理日志时,同一个实体在同种数据投递类型(LogType)和数据投递区域(Area)的组合下,只能被添加到一个实时日志投递任务中。
|
742
|
+
|
743
|
+
# 建议先通过 [DescribeRealtimeLogDeliveryTasks](https://cloud.tencent.com/document/product/1552/104110) 接口根据实体查询实时日志投递任务列表,检查实体是否已经被添加到另一实时日志投递任务中。
|
713
744
|
|
714
745
|
# @param request: Request instance for CreateRealtimeLogDeliveryTask.
|
715
746
|
# @type request: :class:`Tencentcloud::teo::V20220901::CreateRealtimeLogDeliveryTaskRequest`
|
@@ -758,6 +789,78 @@ module TencentCloud
|
|
758
789
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
759
790
|
end
|
760
791
|
|
792
|
+
# 用于创建 API 资源。
|
793
|
+
|
794
|
+
# @param request: Request instance for CreateSecurityAPIResource.
|
795
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::CreateSecurityAPIResourceRequest`
|
796
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateSecurityAPIResourceResponse`
|
797
|
+
def CreateSecurityAPIResource(request)
|
798
|
+
body = send_request('CreateSecurityAPIResource', request.serialize)
|
799
|
+
response = JSON.parse(body)
|
800
|
+
if response['Response'].key?('Error') == false
|
801
|
+
model = CreateSecurityAPIResourceResponse.new
|
802
|
+
model.deserialize(response['Response'])
|
803
|
+
model
|
804
|
+
else
|
805
|
+
code = response['Response']['Error']['Code']
|
806
|
+
message = response['Response']['Error']['Message']
|
807
|
+
reqid = response['Response']['RequestId']
|
808
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
809
|
+
end
|
810
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
811
|
+
raise e
|
812
|
+
rescue StandardError => e
|
813
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
814
|
+
end
|
815
|
+
|
816
|
+
# 用于创建 API 服务。
|
817
|
+
|
818
|
+
# @param request: Request instance for CreateSecurityAPIService.
|
819
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::CreateSecurityAPIServiceRequest`
|
820
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateSecurityAPIServiceResponse`
|
821
|
+
def CreateSecurityAPIService(request)
|
822
|
+
body = send_request('CreateSecurityAPIService', request.serialize)
|
823
|
+
response = JSON.parse(body)
|
824
|
+
if response['Response'].key?('Error') == false
|
825
|
+
model = CreateSecurityAPIServiceResponse.new
|
826
|
+
model.deserialize(response['Response'])
|
827
|
+
model
|
828
|
+
else
|
829
|
+
code = response['Response']['Error']['Code']
|
830
|
+
message = response['Response']['Error']['Message']
|
831
|
+
reqid = response['Response']['RequestId']
|
832
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
833
|
+
end
|
834
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
835
|
+
raise e
|
836
|
+
rescue StandardError => e
|
837
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
838
|
+
end
|
839
|
+
|
840
|
+
# 创建客户端认证选项。
|
841
|
+
|
842
|
+
# @param request: Request instance for CreateSecurityClientAttester.
|
843
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::CreateSecurityClientAttesterRequest`
|
844
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateSecurityClientAttesterResponse`
|
845
|
+
def CreateSecurityClientAttester(request)
|
846
|
+
body = send_request('CreateSecurityClientAttester', request.serialize)
|
847
|
+
response = JSON.parse(body)
|
848
|
+
if response['Response'].key?('Error') == false
|
849
|
+
model = CreateSecurityClientAttesterResponse.new
|
850
|
+
model.deserialize(response['Response'])
|
851
|
+
model
|
852
|
+
else
|
853
|
+
code = response['Response']['Error']['Code']
|
854
|
+
message = response['Response']['Error']['Message']
|
855
|
+
reqid = response['Response']['RequestId']
|
856
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
857
|
+
end
|
858
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
859
|
+
raise e
|
860
|
+
rescue StandardError => e
|
861
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
862
|
+
end
|
863
|
+
|
761
864
|
# 创建安全 IP 组
|
762
865
|
|
763
866
|
# @param request: Request instance for CreateSecurityIPGroup.
|
@@ -782,6 +885,30 @@ module TencentCloud
|
|
782
885
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
783
886
|
end
|
784
887
|
|
888
|
+
# 创建 JavaScript 注入规则。
|
889
|
+
|
890
|
+
# @param request: Request instance for CreateSecurityJSInjectionRule.
|
891
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::CreateSecurityJSInjectionRuleRequest`
|
892
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateSecurityJSInjectionRuleResponse`
|
893
|
+
def CreateSecurityJSInjectionRule(request)
|
894
|
+
body = send_request('CreateSecurityJSInjectionRule', request.serialize)
|
895
|
+
response = JSON.parse(body)
|
896
|
+
if response['Response'].key?('Error') == false
|
897
|
+
model = CreateSecurityJSInjectionRuleResponse.new
|
898
|
+
model.deserialize(response['Response'])
|
899
|
+
model
|
900
|
+
else
|
901
|
+
code = response['Response']['Error']['Code']
|
902
|
+
message = response['Response']['Error']['Message']
|
903
|
+
reqid = response['Response']['RequestId']
|
904
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
905
|
+
end
|
906
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
907
|
+
raise e
|
908
|
+
rescue StandardError => e
|
909
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
910
|
+
end
|
911
|
+
|
785
912
|
# 用于创建共享 CNAME,该功能白名单内测中。
|
786
913
|
|
787
914
|
# @param request: Request instance for CreateSharedCNAME.
|
@@ -1074,6 +1201,30 @@ module TencentCloud
|
|
1074
1201
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1075
1202
|
end
|
1076
1203
|
|
1204
|
+
# 根据站点 id 下唯一的模板标识,删除相应的即时转码模板。
|
1205
|
+
|
1206
|
+
# @param request: Request instance for DeleteJustInTimeTranscodeTemplates.
|
1207
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteJustInTimeTranscodeTemplatesRequest`
|
1208
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteJustInTimeTranscodeTemplatesResponse`
|
1209
|
+
def DeleteJustInTimeTranscodeTemplates(request)
|
1210
|
+
body = send_request('DeleteJustInTimeTranscodeTemplates', request.serialize)
|
1211
|
+
response = JSON.parse(body)
|
1212
|
+
if response['Response'].key?('Error') == false
|
1213
|
+
model = DeleteJustInTimeTranscodeTemplatesResponse.new
|
1214
|
+
model.deserialize(response['Response'])
|
1215
|
+
model
|
1216
|
+
else
|
1217
|
+
code = response['Response']['Error']['Code']
|
1218
|
+
message = response['Response']['Error']['Message']
|
1219
|
+
reqid = response['Response']['RequestId']
|
1220
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1221
|
+
end
|
1222
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1223
|
+
raise e
|
1224
|
+
rescue StandardError => e
|
1225
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1226
|
+
end
|
1227
|
+
|
1077
1228
|
# 用于删除四层代理实例。
|
1078
1229
|
|
1079
1230
|
# @param request: Request instance for DeleteL4Proxy.
|
@@ -1291,6 +1442,78 @@ module TencentCloud
|
|
1291
1442
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1292
1443
|
end
|
1293
1444
|
|
1445
|
+
# 用于删除 API 资源。
|
1446
|
+
|
1447
|
+
# @param request: Request instance for DeleteSecurityAPIResource.
|
1448
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteSecurityAPIResourceRequest`
|
1449
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteSecurityAPIResourceResponse`
|
1450
|
+
def DeleteSecurityAPIResource(request)
|
1451
|
+
body = send_request('DeleteSecurityAPIResource', request.serialize)
|
1452
|
+
response = JSON.parse(body)
|
1453
|
+
if response['Response'].key?('Error') == false
|
1454
|
+
model = DeleteSecurityAPIResourceResponse.new
|
1455
|
+
model.deserialize(response['Response'])
|
1456
|
+
model
|
1457
|
+
else
|
1458
|
+
code = response['Response']['Error']['Code']
|
1459
|
+
message = response['Response']['Error']['Message']
|
1460
|
+
reqid = response['Response']['RequestId']
|
1461
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1462
|
+
end
|
1463
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1464
|
+
raise e
|
1465
|
+
rescue StandardError => e
|
1466
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1467
|
+
end
|
1468
|
+
|
1469
|
+
# 用于删除 API 服务。
|
1470
|
+
|
1471
|
+
# @param request: Request instance for DeleteSecurityAPIService.
|
1472
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteSecurityAPIServiceRequest`
|
1473
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteSecurityAPIServiceResponse`
|
1474
|
+
def DeleteSecurityAPIService(request)
|
1475
|
+
body = send_request('DeleteSecurityAPIService', request.serialize)
|
1476
|
+
response = JSON.parse(body)
|
1477
|
+
if response['Response'].key?('Error') == false
|
1478
|
+
model = DeleteSecurityAPIServiceResponse.new
|
1479
|
+
model.deserialize(response['Response'])
|
1480
|
+
model
|
1481
|
+
else
|
1482
|
+
code = response['Response']['Error']['Code']
|
1483
|
+
message = response['Response']['Error']['Message']
|
1484
|
+
reqid = response['Response']['RequestId']
|
1485
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1486
|
+
end
|
1487
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1488
|
+
raise e
|
1489
|
+
rescue StandardError => e
|
1490
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1491
|
+
end
|
1492
|
+
|
1493
|
+
# 删除客户端认证选项。
|
1494
|
+
|
1495
|
+
# @param request: Request instance for DeleteSecurityClientAttester.
|
1496
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteSecurityClientAttesterRequest`
|
1497
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteSecurityClientAttesterResponse`
|
1498
|
+
def DeleteSecurityClientAttester(request)
|
1499
|
+
body = send_request('DeleteSecurityClientAttester', request.serialize)
|
1500
|
+
response = JSON.parse(body)
|
1501
|
+
if response['Response'].key?('Error') == false
|
1502
|
+
model = DeleteSecurityClientAttesterResponse.new
|
1503
|
+
model.deserialize(response['Response'])
|
1504
|
+
model
|
1505
|
+
else
|
1506
|
+
code = response['Response']['Error']['Code']
|
1507
|
+
message = response['Response']['Error']['Message']
|
1508
|
+
reqid = response['Response']['RequestId']
|
1509
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1510
|
+
end
|
1511
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1512
|
+
raise e
|
1513
|
+
rescue StandardError => e
|
1514
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1515
|
+
end
|
1516
|
+
|
1294
1517
|
# 删除指定 IP 组,如果有规则引用了 IP 组情况,则不允许删除。
|
1295
1518
|
|
1296
1519
|
# @param request: Request instance for DeleteSecurityIPGroup.
|
@@ -1315,6 +1538,30 @@ module TencentCloud
|
|
1315
1538
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1316
1539
|
end
|
1317
1540
|
|
1541
|
+
# 删除 JavaScript 注入规则。
|
1542
|
+
|
1543
|
+
# @param request: Request instance for DeleteSecurityJSInjectionRule.
|
1544
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteSecurityJSInjectionRuleRequest`
|
1545
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteSecurityJSInjectionRuleResponse`
|
1546
|
+
def DeleteSecurityJSInjectionRule(request)
|
1547
|
+
body = send_request('DeleteSecurityJSInjectionRule', request.serialize)
|
1548
|
+
response = JSON.parse(body)
|
1549
|
+
if response['Response'].key?('Error') == false
|
1550
|
+
model = DeleteSecurityJSInjectionRuleResponse.new
|
1551
|
+
model.deserialize(response['Response'])
|
1552
|
+
model
|
1553
|
+
else
|
1554
|
+
code = response['Response']['Error']['Code']
|
1555
|
+
message = response['Response']['Error']['Message']
|
1556
|
+
reqid = response['Response']['RequestId']
|
1557
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1558
|
+
end
|
1559
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1560
|
+
raise e
|
1561
|
+
rescue StandardError => e
|
1562
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1563
|
+
end
|
1564
|
+
|
1318
1565
|
# 用于删除共享 CNAME,该功能白名单内测中。
|
1319
1566
|
|
1320
1567
|
# @param request: Request instance for DeleteSharedCNAME.
|
@@ -1988,6 +2235,30 @@ module TencentCloud
|
|
1988
2235
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1989
2236
|
end
|
1990
2237
|
|
2238
|
+
# 根据即时转码模板名字、模板类型或唯一标识,获取即时转码模板详情列表。返回结果包含符合条件的所有用户自定义模板及预置模板。
|
2239
|
+
|
2240
|
+
# @param request: Request instance for DescribeJustInTimeTranscodeTemplates.
|
2241
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeJustInTimeTranscodeTemplatesRequest`
|
2242
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeJustInTimeTranscodeTemplatesResponse`
|
2243
|
+
def DescribeJustInTimeTranscodeTemplates(request)
|
2244
|
+
body = send_request('DescribeJustInTimeTranscodeTemplates', request.serialize)
|
2245
|
+
response = JSON.parse(body)
|
2246
|
+
if response['Response'].key?('Error') == false
|
2247
|
+
model = DescribeJustInTimeTranscodeTemplatesResponse.new
|
2248
|
+
model.deserialize(response['Response'])
|
2249
|
+
model
|
2250
|
+
else
|
2251
|
+
code = response['Response']['Error']['Code']
|
2252
|
+
message = response['Response']['Error']['Message']
|
2253
|
+
reqid = response['Response']['RequestId']
|
2254
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2255
|
+
end
|
2256
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2257
|
+
raise e
|
2258
|
+
rescue StandardError => e
|
2259
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2260
|
+
end
|
2261
|
+
|
1991
2262
|
# 用于查询四层代理实例列表。
|
1992
2263
|
|
1993
2264
|
# @param request: Request instance for DescribeL4Proxy.
|
@@ -2495,6 +2766,78 @@ module TencentCloud
|
|
2495
2766
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2496
2767
|
end
|
2497
2768
|
|
2769
|
+
# 查询站点下的 API 资源。
|
2770
|
+
|
2771
|
+
# @param request: Request instance for DescribeSecurityAPIResource.
|
2772
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeSecurityAPIResourceRequest`
|
2773
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeSecurityAPIResourceResponse`
|
2774
|
+
def DescribeSecurityAPIResource(request)
|
2775
|
+
body = send_request('DescribeSecurityAPIResource', request.serialize)
|
2776
|
+
response = JSON.parse(body)
|
2777
|
+
if response['Response'].key?('Error') == false
|
2778
|
+
model = DescribeSecurityAPIResourceResponse.new
|
2779
|
+
model.deserialize(response['Response'])
|
2780
|
+
model
|
2781
|
+
else
|
2782
|
+
code = response['Response']['Error']['Code']
|
2783
|
+
message = response['Response']['Error']['Message']
|
2784
|
+
reqid = response['Response']['RequestId']
|
2785
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2786
|
+
end
|
2787
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2788
|
+
raise e
|
2789
|
+
rescue StandardError => e
|
2790
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2791
|
+
end
|
2792
|
+
|
2793
|
+
# 查询站点下的 API 服务。
|
2794
|
+
|
2795
|
+
# @param request: Request instance for DescribeSecurityAPIService.
|
2796
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeSecurityAPIServiceRequest`
|
2797
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeSecurityAPIServiceResponse`
|
2798
|
+
def DescribeSecurityAPIService(request)
|
2799
|
+
body = send_request('DescribeSecurityAPIService', request.serialize)
|
2800
|
+
response = JSON.parse(body)
|
2801
|
+
if response['Response'].key?('Error') == false
|
2802
|
+
model = DescribeSecurityAPIServiceResponse.new
|
2803
|
+
model.deserialize(response['Response'])
|
2804
|
+
model
|
2805
|
+
else
|
2806
|
+
code = response['Response']['Error']['Code']
|
2807
|
+
message = response['Response']['Error']['Message']
|
2808
|
+
reqid = response['Response']['RequestId']
|
2809
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2810
|
+
end
|
2811
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2812
|
+
raise e
|
2813
|
+
rescue StandardError => e
|
2814
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2815
|
+
end
|
2816
|
+
|
2817
|
+
# 查询客户端认证选项配置。
|
2818
|
+
|
2819
|
+
# @param request: Request instance for DescribeSecurityClientAttester.
|
2820
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeSecurityClientAttesterRequest`
|
2821
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeSecurityClientAttesterResponse`
|
2822
|
+
def DescribeSecurityClientAttester(request)
|
2823
|
+
body = send_request('DescribeSecurityClientAttester', request.serialize)
|
2824
|
+
response = JSON.parse(body)
|
2825
|
+
if response['Response'].key?('Error') == false
|
2826
|
+
model = DescribeSecurityClientAttesterResponse.new
|
2827
|
+
model.deserialize(response['Response'])
|
2828
|
+
model
|
2829
|
+
else
|
2830
|
+
code = response['Response']['Error']['Code']
|
2831
|
+
message = response['Response']['Error']['Message']
|
2832
|
+
reqid = response['Response']['RequestId']
|
2833
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2834
|
+
end
|
2835
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2836
|
+
raise e
|
2837
|
+
rescue StandardError => e
|
2838
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2839
|
+
end
|
2840
|
+
|
2498
2841
|
# 查询安全 IP 组的配置信息,包括安全 IP 组的 ID、名称和内容。本接口的查询结果中,每个 IP 组最多只返回 2000 个 IP / 网段。如果存在超过 2000 个 IP / 网段的超大 IP 组,请调用 DescribeSecurityIPGroupContent 进行分页查询。
|
2499
2842
|
|
2500
2843
|
# @param request: Request instance for DescribeSecurityIPGroup.
|
@@ -2519,6 +2862,30 @@ module TencentCloud
|
|
2519
2862
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2520
2863
|
end
|
2521
2864
|
|
2865
|
+
# 该接口用于分页查询指定 IP 组中的 IP 地址列表。当 IP 组中的 IP 地址数量超过 2000 个时,可以使用此接口进行分页查询,以获取完整的 IP 地址列表。
|
2866
|
+
|
2867
|
+
# @param request: Request instance for DescribeSecurityIPGroupContent.
|
2868
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeSecurityIPGroupContentRequest`
|
2869
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeSecurityIPGroupContentResponse`
|
2870
|
+
def DescribeSecurityIPGroupContent(request)
|
2871
|
+
body = send_request('DescribeSecurityIPGroupContent', request.serialize)
|
2872
|
+
response = JSON.parse(body)
|
2873
|
+
if response['Response'].key?('Error') == false
|
2874
|
+
model = DescribeSecurityIPGroupContentResponse.new
|
2875
|
+
model.deserialize(response['Response'])
|
2876
|
+
model
|
2877
|
+
else
|
2878
|
+
code = response['Response']['Error']['Code']
|
2879
|
+
message = response['Response']['Error']['Message']
|
2880
|
+
reqid = response['Response']['RequestId']
|
2881
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2882
|
+
end
|
2883
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2884
|
+
raise e
|
2885
|
+
rescue StandardError => e
|
2886
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2887
|
+
end
|
2888
|
+
|
2522
2889
|
# 接口已废弃,将于 2024 年 6 月 30 日停止服务。请使用 [查询安全 IP 组
|
2523
2890
|
# ](https://cloud.tencent.com/document/product/1552/105866) 接口。
|
2524
2891
|
|
@@ -2546,6 +2913,30 @@ module TencentCloud
|
|
2546
2913
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2547
2914
|
end
|
2548
2915
|
|
2916
|
+
# 查询 JavaScript 注入规则。
|
2917
|
+
|
2918
|
+
# @param request: Request instance for DescribeSecurityJSInjectionRule.
|
2919
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeSecurityJSInjectionRuleRequest`
|
2920
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeSecurityJSInjectionRuleResponse`
|
2921
|
+
def DescribeSecurityJSInjectionRule(request)
|
2922
|
+
body = send_request('DescribeSecurityJSInjectionRule', request.serialize)
|
2923
|
+
response = JSON.parse(body)
|
2924
|
+
if response['Response'].key?('Error') == false
|
2925
|
+
model = DescribeSecurityJSInjectionRuleResponse.new
|
2926
|
+
model.deserialize(response['Response'])
|
2927
|
+
model
|
2928
|
+
else
|
2929
|
+
code = response['Response']['Error']['Code']
|
2930
|
+
message = response['Response']['Error']['Message']
|
2931
|
+
reqid = response['Response']['RequestId']
|
2932
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2933
|
+
end
|
2934
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2935
|
+
raise e
|
2936
|
+
rescue StandardError => e
|
2937
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2938
|
+
end
|
2939
|
+
|
2549
2940
|
# 查询安全防护配置详情。
|
2550
2941
|
|
2551
2942
|
# @param request: Request instance for DescribeSecurityPolicy.
|
@@ -3887,6 +4278,78 @@ module TencentCloud
|
|
3887
4278
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3888
4279
|
end
|
3889
4280
|
|
4281
|
+
# 该接口用于修改 API 资源。
|
4282
|
+
|
4283
|
+
# @param request: Request instance for ModifySecurityAPIResource.
|
4284
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifySecurityAPIResourceRequest`
|
4285
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifySecurityAPIResourceResponse`
|
4286
|
+
def ModifySecurityAPIResource(request)
|
4287
|
+
body = send_request('ModifySecurityAPIResource', request.serialize)
|
4288
|
+
response = JSON.parse(body)
|
4289
|
+
if response['Response'].key?('Error') == false
|
4290
|
+
model = ModifySecurityAPIResourceResponse.new
|
4291
|
+
model.deserialize(response['Response'])
|
4292
|
+
model
|
4293
|
+
else
|
4294
|
+
code = response['Response']['Error']['Code']
|
4295
|
+
message = response['Response']['Error']['Message']
|
4296
|
+
reqid = response['Response']['RequestId']
|
4297
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4298
|
+
end
|
4299
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4300
|
+
raise e
|
4301
|
+
rescue StandardError => e
|
4302
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4303
|
+
end
|
4304
|
+
|
4305
|
+
# 该接口用于修改 API 服务。
|
4306
|
+
|
4307
|
+
# @param request: Request instance for ModifySecurityAPIService.
|
4308
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifySecurityAPIServiceRequest`
|
4309
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifySecurityAPIServiceResponse`
|
4310
|
+
def ModifySecurityAPIService(request)
|
4311
|
+
body = send_request('ModifySecurityAPIService', request.serialize)
|
4312
|
+
response = JSON.parse(body)
|
4313
|
+
if response['Response'].key?('Error') == false
|
4314
|
+
model = ModifySecurityAPIServiceResponse.new
|
4315
|
+
model.deserialize(response['Response'])
|
4316
|
+
model
|
4317
|
+
else
|
4318
|
+
code = response['Response']['Error']['Code']
|
4319
|
+
message = response['Response']['Error']['Message']
|
4320
|
+
reqid = response['Response']['RequestId']
|
4321
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4322
|
+
end
|
4323
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4324
|
+
raise e
|
4325
|
+
rescue StandardError => e
|
4326
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4327
|
+
end
|
4328
|
+
|
4329
|
+
# 修改客户端认证选项。
|
4330
|
+
|
4331
|
+
# @param request: Request instance for ModifySecurityClientAttester.
|
4332
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifySecurityClientAttesterRequest`
|
4333
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifySecurityClientAttesterResponse`
|
4334
|
+
def ModifySecurityClientAttester(request)
|
4335
|
+
body = send_request('ModifySecurityClientAttester', request.serialize)
|
4336
|
+
response = JSON.parse(body)
|
4337
|
+
if response['Response'].key?('Error') == false
|
4338
|
+
model = ModifySecurityClientAttesterResponse.new
|
4339
|
+
model.deserialize(response['Response'])
|
4340
|
+
model
|
4341
|
+
else
|
4342
|
+
code = response['Response']['Error']['Code']
|
4343
|
+
message = response['Response']['Error']['Message']
|
4344
|
+
reqid = response['Response']['RequestId']
|
4345
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4346
|
+
end
|
4347
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4348
|
+
raise e
|
4349
|
+
rescue StandardError => e
|
4350
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4351
|
+
end
|
4352
|
+
|
3890
4353
|
# 修改安全 IP 组。
|
3891
4354
|
|
3892
4355
|
# @param request: Request instance for ModifySecurityIPGroup.
|
@@ -3911,6 +4374,30 @@ module TencentCloud
|
|
3911
4374
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3912
4375
|
end
|
3913
4376
|
|
4377
|
+
# 修改 JavaScript 注入规则。
|
4378
|
+
|
4379
|
+
# @param request: Request instance for ModifySecurityJSInjectionRule.
|
4380
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifySecurityJSInjectionRuleRequest`
|
4381
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifySecurityJSInjectionRuleResponse`
|
4382
|
+
def ModifySecurityJSInjectionRule(request)
|
4383
|
+
body = send_request('ModifySecurityJSInjectionRule', request.serialize)
|
4384
|
+
response = JSON.parse(body)
|
4385
|
+
if response['Response'].key?('Error') == false
|
4386
|
+
model = ModifySecurityJSInjectionRuleResponse.new
|
4387
|
+
model.deserialize(response['Response'])
|
4388
|
+
model
|
4389
|
+
else
|
4390
|
+
code = response['Response']['Error']['Code']
|
4391
|
+
message = response['Response']['Error']['Message']
|
4392
|
+
reqid = response['Response']['RequestId']
|
4393
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4394
|
+
end
|
4395
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4396
|
+
raise e
|
4397
|
+
rescue StandardError => e
|
4398
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4399
|
+
end
|
4400
|
+
|
3914
4401
|
# 修改Web&Bot安全配置。
|
3915
4402
|
|
3916
4403
|
# @param request: Request instance for ModifySecurityPolicy.
|