tencentcloud-sdk-teo 1.0.327 → 1.0.328
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220106/client.rb +408 -0
- data/lib/v20220106/models.rb +2401 -142
- 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: 162df55ddb0a3c9baa57c9b2bff24d0e7bf68922
|
4
|
+
data.tar.gz: 1262dd83b44dfb6f0dd2b74779ef9a88a277eda7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 793ad64b7236022bfc563e3975a9cfff0aa47735be4c5045f48961d7a29093b9e601c3665eec0d9568b0faf71424278ea7d829aa4ec8bd7fab58f8fd3cb32652
|
7
|
+
data.tar.gz: d46cc468d1181a7a6e219cf27067a096f921dfeeb3f300e1501cd06c2f96f2fd3c4414306aaf188edc29be626a2b625796b3f85e42615082c4c9de072e591a08
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.328
|
data/lib/v20220106/client.rb
CHANGED
@@ -125,6 +125,30 @@ module TencentCloud
|
|
125
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
126
|
end
|
127
127
|
|
128
|
+
# 创建自定义规则的自定义页
|
129
|
+
|
130
|
+
# @param request: Request instance for CreateCustomErrorPage.
|
131
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::CreateCustomErrorPageRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::CreateCustomErrorPageResponse`
|
133
|
+
def CreateCustomErrorPage(request)
|
134
|
+
body = send_request('CreateCustomErrorPage', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = CreateCustomErrorPageResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
128
152
|
# 创建 DNS 记录
|
129
153
|
|
130
154
|
# @param request: Request instance for CreateDnsRecord.
|
@@ -173,6 +197,30 @@ module TencentCloud
|
|
173
197
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
198
|
end
|
175
199
|
|
200
|
+
# 源站组创建
|
201
|
+
|
202
|
+
# @param request: Request instance for CreateOriginGroup.
|
203
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::CreateOriginGroupRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::CreateOriginGroupResponse`
|
205
|
+
def CreateOriginGroup(request)
|
206
|
+
body = send_request('CreateOriginGroup', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = CreateOriginGroupResponse.new
|
210
|
+
model.deserialize(response['Response'])
|
211
|
+
model
|
212
|
+
else
|
213
|
+
code = response['Response']['Error']['Code']
|
214
|
+
message = response['Response']['Error']['Message']
|
215
|
+
reqid = response['Response']['RequestId']
|
216
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
217
|
+
end
|
218
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
219
|
+
raise e
|
220
|
+
rescue StandardError => e
|
221
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
|
+
end
|
223
|
+
|
176
224
|
# 创建预热任务
|
177
225
|
|
178
226
|
# @param request: Request instance for CreatePrefetchTask.
|
@@ -341,6 +389,30 @@ module TencentCloud
|
|
341
389
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
390
|
end
|
343
391
|
|
392
|
+
# 源站组删除
|
393
|
+
|
394
|
+
# @param request: Request instance for DeleteOriginGroup.
|
395
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DeleteOriginGroupRequest`
|
396
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DeleteOriginGroupResponse`
|
397
|
+
def DeleteOriginGroup(request)
|
398
|
+
body = send_request('DeleteOriginGroup', request.serialize)
|
399
|
+
response = JSON.parse(body)
|
400
|
+
if response['Response'].key?('Error') == false
|
401
|
+
model = DeleteOriginGroupResponse.new
|
402
|
+
model.deserialize(response['Response'])
|
403
|
+
model
|
404
|
+
else
|
405
|
+
code = response['Response']['Error']['Code']
|
406
|
+
message = response['Response']['Error']['Message']
|
407
|
+
reqid = response['Response']['RequestId']
|
408
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
409
|
+
end
|
410
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
411
|
+
raise e
|
412
|
+
rescue StandardError => e
|
413
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
|
+
end
|
415
|
+
|
344
416
|
# 删除站点
|
345
417
|
|
346
418
|
# @param request: Request instance for DeleteZone.
|
@@ -413,6 +485,30 @@ module TencentCloud
|
|
413
485
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
486
|
end
|
415
487
|
|
488
|
+
# 分页查询Bot托管规则
|
489
|
+
|
490
|
+
# @param request: Request instance for DescribeBotManagedRules.
|
491
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeBotManagedRulesRequest`
|
492
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeBotManagedRulesResponse`
|
493
|
+
def DescribeBotManagedRules(request)
|
494
|
+
body = send_request('DescribeBotManagedRules', request.serialize)
|
495
|
+
response = JSON.parse(body)
|
496
|
+
if response['Response'].key?('Error') == false
|
497
|
+
model = DescribeBotManagedRulesResponse.new
|
498
|
+
model.deserialize(response['Response'])
|
499
|
+
model
|
500
|
+
else
|
501
|
+
code = response['Response']['Error']['Code']
|
502
|
+
message = response['Response']['Error']['Message']
|
503
|
+
reqid = response['Response']['RequestId']
|
504
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
505
|
+
end
|
506
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
507
|
+
raise e
|
508
|
+
rescue StandardError => e
|
509
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
510
|
+
end
|
511
|
+
|
416
512
|
# 查询域名 CNAME 状态
|
417
513
|
|
418
514
|
# @param request: Request instance for DescribeCnameStatus.
|
@@ -437,6 +533,30 @@ module TencentCloud
|
|
437
533
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
534
|
end
|
439
535
|
|
536
|
+
# 查询DDoS防护配置详情
|
537
|
+
|
538
|
+
# @param request: Request instance for DescribeDDoSPolicy.
|
539
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeDDoSPolicyRequest`
|
540
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeDDoSPolicyResponse`
|
541
|
+
def DescribeDDoSPolicy(request)
|
542
|
+
body = send_request('DescribeDDoSPolicy', request.serialize)
|
543
|
+
response = JSON.parse(body)
|
544
|
+
if response['Response'].key?('Error') == false
|
545
|
+
model = DescribeDDoSPolicyResponse.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
|
+
|
440
560
|
# 查询默认证书列表
|
441
561
|
|
442
562
|
# @param request: Request instance for DescribeDefaultCertificates.
|
@@ -653,6 +773,54 @@ module TencentCloud
|
|
653
773
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
654
774
|
end
|
655
775
|
|
776
|
+
# 获取源站组信息列表
|
777
|
+
|
778
|
+
# @param request: Request instance for DescribeOriginGroup.
|
779
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeOriginGroupRequest`
|
780
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeOriginGroupResponse`
|
781
|
+
def DescribeOriginGroup(request)
|
782
|
+
body = send_request('DescribeOriginGroup', request.serialize)
|
783
|
+
response = JSON.parse(body)
|
784
|
+
if response['Response'].key?('Error') == false
|
785
|
+
model = DescribeOriginGroupResponse.new
|
786
|
+
model.deserialize(response['Response'])
|
787
|
+
model
|
788
|
+
else
|
789
|
+
code = response['Response']['Error']['Code']
|
790
|
+
message = response['Response']['Error']['Message']
|
791
|
+
reqid = response['Response']['RequestId']
|
792
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
793
|
+
end
|
794
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
795
|
+
raise e
|
796
|
+
rescue StandardError => e
|
797
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
798
|
+
end
|
799
|
+
|
800
|
+
# 获取源站组详细信息
|
801
|
+
|
802
|
+
# @param request: Request instance for DescribeOriginGroupDetail.
|
803
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeOriginGroupDetailRequest`
|
804
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeOriginGroupDetailResponse`
|
805
|
+
def DescribeOriginGroupDetail(request)
|
806
|
+
body = send_request('DescribeOriginGroupDetail', request.serialize)
|
807
|
+
response = JSON.parse(body)
|
808
|
+
if response['Response'].key?('Error') == false
|
809
|
+
model = DescribeOriginGroupDetailResponse.new
|
810
|
+
model.deserialize(response['Response'])
|
811
|
+
model
|
812
|
+
else
|
813
|
+
code = response['Response']['Error']['Code']
|
814
|
+
message = response['Response']['Error']['Message']
|
815
|
+
reqid = response['Response']['RequestId']
|
816
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
817
|
+
end
|
818
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
819
|
+
raise e
|
820
|
+
rescue StandardError => e
|
821
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
822
|
+
end
|
823
|
+
|
656
824
|
# 查询预热任务状态
|
657
825
|
|
658
826
|
# @param request: Request instance for DescribePrefetchTasks.
|
@@ -701,6 +869,150 @@ module TencentCloud
|
|
701
869
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
702
870
|
end
|
703
871
|
|
872
|
+
# 查询安全防护配置详情
|
873
|
+
|
874
|
+
# @param request: Request instance for DescribeSecurityPolicy.
|
875
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyRequest`
|
876
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyResponse`
|
877
|
+
def DescribeSecurityPolicy(request)
|
878
|
+
body = send_request('DescribeSecurityPolicy', request.serialize)
|
879
|
+
response = JSON.parse(body)
|
880
|
+
if response['Response'].key?('Error') == false
|
881
|
+
model = DescribeSecurityPolicyResponse.new
|
882
|
+
model.deserialize(response['Response'])
|
883
|
+
model
|
884
|
+
else
|
885
|
+
code = response['Response']['Error']['Code']
|
886
|
+
message = response['Response']['Error']['Message']
|
887
|
+
reqid = response['Response']['RequestId']
|
888
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
889
|
+
end
|
890
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
891
|
+
raise e
|
892
|
+
rescue StandardError => e
|
893
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
894
|
+
end
|
895
|
+
|
896
|
+
# 查询全部安全实例
|
897
|
+
|
898
|
+
# @param request: Request instance for DescribeSecurityPolicyList.
|
899
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyListRequest`
|
900
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyListResponse`
|
901
|
+
def DescribeSecurityPolicyList(request)
|
902
|
+
body = send_request('DescribeSecurityPolicyList', request.serialize)
|
903
|
+
response = JSON.parse(body)
|
904
|
+
if response['Response'].key?('Error') == false
|
905
|
+
model = DescribeSecurityPolicyListResponse.new
|
906
|
+
model.deserialize(response['Response'])
|
907
|
+
model
|
908
|
+
else
|
909
|
+
code = response['Response']['Error']['Code']
|
910
|
+
message = response['Response']['Error']['Message']
|
911
|
+
reqid = response['Response']['RequestId']
|
912
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
913
|
+
end
|
914
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
915
|
+
raise e
|
916
|
+
rescue StandardError => e
|
917
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
918
|
+
end
|
919
|
+
|
920
|
+
# 分页查询门神规则
|
921
|
+
|
922
|
+
# @param request: Request instance for DescribeSecurityPolicyManagedRules.
|
923
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyManagedRulesRequest`
|
924
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyManagedRulesResponse`
|
925
|
+
def DescribeSecurityPolicyManagedRules(request)
|
926
|
+
body = send_request('DescribeSecurityPolicyManagedRules', request.serialize)
|
927
|
+
response = JSON.parse(body)
|
928
|
+
if response['Response'].key?('Error') == false
|
929
|
+
model = DescribeSecurityPolicyManagedRulesResponse.new
|
930
|
+
model.deserialize(response['Response'])
|
931
|
+
model
|
932
|
+
else
|
933
|
+
code = response['Response']['Error']['Code']
|
934
|
+
message = response['Response']['Error']['Message']
|
935
|
+
reqid = response['Response']['RequestId']
|
936
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
937
|
+
end
|
938
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
939
|
+
raise e
|
940
|
+
rescue StandardError => e
|
941
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
942
|
+
end
|
943
|
+
|
944
|
+
# 规则id查询门神规则详情
|
945
|
+
|
946
|
+
# @param request: Request instance for DescribeSecurityPolicyManagedRulesId.
|
947
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyManagedRulesIdRequest`
|
948
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyManagedRulesIdResponse`
|
949
|
+
def DescribeSecurityPolicyManagedRulesId(request)
|
950
|
+
body = send_request('DescribeSecurityPolicyManagedRulesId', request.serialize)
|
951
|
+
response = JSON.parse(body)
|
952
|
+
if response['Response'].key?('Error') == false
|
953
|
+
model = DescribeSecurityPolicyManagedRulesIdResponse.new
|
954
|
+
model.deserialize(response['Response'])
|
955
|
+
model
|
956
|
+
else
|
957
|
+
code = response['Response']['Error']['Code']
|
958
|
+
message = response['Response']['Error']['Message']
|
959
|
+
reqid = response['Response']['RequestId']
|
960
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
961
|
+
end
|
962
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
963
|
+
raise e
|
964
|
+
rescue StandardError => e
|
965
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
966
|
+
end
|
967
|
+
|
968
|
+
# 查询所有地域信息
|
969
|
+
|
970
|
+
# @param request: Request instance for DescribeSecurityPolicyRegions.
|
971
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyRegionsRequest`
|
972
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeSecurityPolicyRegionsResponse`
|
973
|
+
def DescribeSecurityPolicyRegions(request)
|
974
|
+
body = send_request('DescribeSecurityPolicyRegions', request.serialize)
|
975
|
+
response = JSON.parse(body)
|
976
|
+
if response['Response'].key?('Error') == false
|
977
|
+
model = DescribeSecurityPolicyRegionsResponse.new
|
978
|
+
model.deserialize(response['Response'])
|
979
|
+
model
|
980
|
+
else
|
981
|
+
code = response['Response']['Error']['Code']
|
982
|
+
message = response['Response']['Error']['Message']
|
983
|
+
reqid = response['Response']['RequestId']
|
984
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
985
|
+
end
|
986
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
987
|
+
raise e
|
988
|
+
rescue StandardError => e
|
989
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
990
|
+
end
|
991
|
+
|
992
|
+
# 查询所有DDoS防护分区
|
993
|
+
|
994
|
+
# @param request: Request instance for DescribeZoneDDoSPolicy.
|
995
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DescribeZoneDDoSPolicyRequest`
|
996
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DescribeZoneDDoSPolicyResponse`
|
997
|
+
def DescribeZoneDDoSPolicy(request)
|
998
|
+
body = send_request('DescribeZoneDDoSPolicy', request.serialize)
|
999
|
+
response = JSON.parse(body)
|
1000
|
+
if response['Response'].key?('Error') == false
|
1001
|
+
model = DescribeZoneDDoSPolicyResponse.new
|
1002
|
+
model.deserialize(response['Response'])
|
1003
|
+
model
|
1004
|
+
else
|
1005
|
+
code = response['Response']['Error']['Code']
|
1006
|
+
message = response['Response']['Error']['Message']
|
1007
|
+
reqid = response['Response']['RequestId']
|
1008
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1009
|
+
end
|
1010
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1011
|
+
raise e
|
1012
|
+
rescue StandardError => e
|
1013
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1014
|
+
end
|
1015
|
+
|
704
1016
|
# 根据站点 ID 查询站点的详细信息
|
705
1017
|
|
706
1018
|
# @param request: Request instance for DescribeZoneDetails.
|
@@ -941,6 +1253,54 @@ module TencentCloud
|
|
941
1253
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
942
1254
|
end
|
943
1255
|
|
1256
|
+
# 修改DDoS防护分区配置
|
1257
|
+
|
1258
|
+
# @param request: Request instance for ModifyDDoSPolicy.
|
1259
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyDDoSPolicyRequest`
|
1260
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyDDoSPolicyResponse`
|
1261
|
+
def ModifyDDoSPolicy(request)
|
1262
|
+
body = send_request('ModifyDDoSPolicy', request.serialize)
|
1263
|
+
response = JSON.parse(body)
|
1264
|
+
if response['Response'].key?('Error') == false
|
1265
|
+
model = ModifyDDoSPolicyResponse.new
|
1266
|
+
model.deserialize(response['Response'])
|
1267
|
+
model
|
1268
|
+
else
|
1269
|
+
code = response['Response']['Error']['Code']
|
1270
|
+
message = response['Response']['Error']['Message']
|
1271
|
+
reqid = response['Response']['RequestId']
|
1272
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1273
|
+
end
|
1274
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1275
|
+
raise e
|
1276
|
+
rescue StandardError => e
|
1277
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1278
|
+
end
|
1279
|
+
|
1280
|
+
# 域名DDoS高可用开关
|
1281
|
+
|
1282
|
+
# @param request: Request instance for ModifyDDoSPolicyHost.
|
1283
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyDDoSPolicyHostRequest`
|
1284
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyDDoSPolicyHostResponse`
|
1285
|
+
def ModifyDDoSPolicyHost(request)
|
1286
|
+
body = send_request('ModifyDDoSPolicyHost', request.serialize)
|
1287
|
+
response = JSON.parse(body)
|
1288
|
+
if response['Response'].key?('Error') == false
|
1289
|
+
model = ModifyDDoSPolicyHostResponse.new
|
1290
|
+
model.deserialize(response['Response'])
|
1291
|
+
model
|
1292
|
+
else
|
1293
|
+
code = response['Response']['Error']['Code']
|
1294
|
+
message = response['Response']['Error']['Message']
|
1295
|
+
reqid = response['Response']['RequestId']
|
1296
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1297
|
+
end
|
1298
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1299
|
+
raise e
|
1300
|
+
rescue StandardError => e
|
1301
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1302
|
+
end
|
1303
|
+
|
944
1304
|
# 修改默认证书状态
|
945
1305
|
|
946
1306
|
# @param request: Request instance for ModifyDefaultCertificate.
|
@@ -1085,6 +1445,54 @@ module TencentCloud
|
|
1085
1445
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1086
1446
|
end
|
1087
1447
|
|
1448
|
+
# 源站组修改
|
1449
|
+
|
1450
|
+
# @param request: Request instance for ModifyOriginGroup.
|
1451
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::ModifyOriginGroupRequest`
|
1452
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifyOriginGroupResponse`
|
1453
|
+
def ModifyOriginGroup(request)
|
1454
|
+
body = send_request('ModifyOriginGroup', request.serialize)
|
1455
|
+
response = JSON.parse(body)
|
1456
|
+
if response['Response'].key?('Error') == false
|
1457
|
+
model = ModifyOriginGroupResponse.new
|
1458
|
+
model.deserialize(response['Response'])
|
1459
|
+
model
|
1460
|
+
else
|
1461
|
+
code = response['Response']['Error']['Code']
|
1462
|
+
message = response['Response']['Error']['Message']
|
1463
|
+
reqid = response['Response']['RequestId']
|
1464
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1465
|
+
end
|
1466
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1467
|
+
raise e
|
1468
|
+
rescue StandardError => e
|
1469
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1470
|
+
end
|
1471
|
+
|
1472
|
+
# 修改Web&Bot安全配置
|
1473
|
+
|
1474
|
+
# @param request: Request instance for ModifySecurityPolicy.
|
1475
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::ModifySecurityPolicyRequest`
|
1476
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::ModifySecurityPolicyResponse`
|
1477
|
+
def ModifySecurityPolicy(request)
|
1478
|
+
body = send_request('ModifySecurityPolicy', request.serialize)
|
1479
|
+
response = JSON.parse(body)
|
1480
|
+
if response['Response'].key?('Error') == false
|
1481
|
+
model = ModifySecurityPolicyResponse.new
|
1482
|
+
model.deserialize(response['Response'])
|
1483
|
+
model
|
1484
|
+
else
|
1485
|
+
code = response['Response']['Error']['Code']
|
1486
|
+
message = response['Response']['Error']['Message']
|
1487
|
+
reqid = response['Response']['RequestId']
|
1488
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1489
|
+
end
|
1490
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1491
|
+
raise e
|
1492
|
+
rescue StandardError => e
|
1493
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1494
|
+
end
|
1495
|
+
|
1088
1496
|
# 用该站点信息
|
1089
1497
|
|
1090
1498
|
# @param request: Request instance for ModifyZone.
|