tencentcloud-sdk-teo 3.0.1097 → 3.0.1102
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 +456 -0
- data/lib/v20220901/models.rb +1089 -39
- 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: 5e578b80515fab6d429032be73e21f6d2dd6feae
|
4
|
+
data.tar.gz: a4b220f554565566cfa7ef1c2898261a7dfaa98e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eccd8fa3c159028a55e83de0674d2d80c157d31756bfd5152bd26243cb0129c7f9d4bb694e1907f05fed144190893f672d7169aaba8263148af18f8ea3a483a2
|
7
|
+
data.tar.gz: de8b69b85ad4fe953f5295d9d52fd2925824def5b9c3d616b87ba384096744c391a2744bd43a5198dfbe885181a03bc09ded92e554d33fcfdb2950fdcdaf7496
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1102
|
data/lib/v20220901/client.rb
CHANGED
@@ -513,6 +513,78 @@ module TencentCloud
|
|
513
513
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
514
514
|
end
|
515
515
|
|
516
|
+
# 通过本接口创建多通道安全加速网关,包括云上网关(腾讯云创建和管理的网关)和自有网关(用户部署的私有网关),需要通过接口 DescribeMultiPathGateway,查询状态为 online 即创建成功。
|
517
|
+
|
518
|
+
# @param request: Request instance for CreateMultiPathGateway.
|
519
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::CreateMultiPathGatewayRequest`
|
520
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateMultiPathGatewayResponse`
|
521
|
+
def CreateMultiPathGateway(request)
|
522
|
+
body = send_request('CreateMultiPathGateway', request.serialize)
|
523
|
+
response = JSON.parse(body)
|
524
|
+
if response['Response'].key?('Error') == false
|
525
|
+
model = CreateMultiPathGatewayResponse.new
|
526
|
+
model.deserialize(response['Response'])
|
527
|
+
model
|
528
|
+
else
|
529
|
+
code = response['Response']['Error']['Code']
|
530
|
+
message = response['Response']['Error']['Message']
|
531
|
+
reqid = response['Response']['RequestId']
|
532
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
533
|
+
end
|
534
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
535
|
+
raise e
|
536
|
+
rescue StandardError => e
|
537
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
538
|
+
end
|
539
|
+
|
540
|
+
# 通过本接口创建接入多通道安全加速网关的线路。包括 EdgeOne 四层代理线路、自定义线路。
|
541
|
+
|
542
|
+
# @param request: Request instance for CreateMultiPathGatewayLine.
|
543
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::CreateMultiPathGatewayLineRequest`
|
544
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateMultiPathGatewayLineResponse`
|
545
|
+
def CreateMultiPathGatewayLine(request)
|
546
|
+
body = send_request('CreateMultiPathGatewayLine', request.serialize)
|
547
|
+
response = JSON.parse(body)
|
548
|
+
if response['Response'].key?('Error') == false
|
549
|
+
model = CreateMultiPathGatewayLineResponse.new
|
550
|
+
model.deserialize(response['Response'])
|
551
|
+
model
|
552
|
+
else
|
553
|
+
code = response['Response']['Error']['Code']
|
554
|
+
message = response['Response']['Error']['Message']
|
555
|
+
reqid = response['Response']['RequestId']
|
556
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
557
|
+
end
|
558
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
559
|
+
raise e
|
560
|
+
rescue StandardError => e
|
561
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
562
|
+
end
|
563
|
+
|
564
|
+
# 通过本接口创建接入多通道安全加速网关的密钥,客户基于接入密钥签名接入多通道安全加速网关。每个站点下只有一个密钥,可用于接入该站点下的所有网关,可通过接口 DescribeMultiPathGatewaySecretKey 查询。
|
565
|
+
|
566
|
+
# @param request: Request instance for CreateMultiPathGatewaySecretKey.
|
567
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::CreateMultiPathGatewaySecretKeyRequest`
|
568
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateMultiPathGatewaySecretKeyResponse`
|
569
|
+
def CreateMultiPathGatewaySecretKey(request)
|
570
|
+
body = send_request('CreateMultiPathGatewaySecretKey', request.serialize)
|
571
|
+
response = JSON.parse(body)
|
572
|
+
if response['Response'].key?('Error') == false
|
573
|
+
model = CreateMultiPathGatewaySecretKeyResponse.new
|
574
|
+
model.deserialize(response['Response'])
|
575
|
+
model
|
576
|
+
else
|
577
|
+
code = response['Response']['Error']['Code']
|
578
|
+
message = response['Response']['Error']['Message']
|
579
|
+
reqid = response['Response']['RequestId']
|
580
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
581
|
+
end
|
582
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
583
|
+
raise e
|
584
|
+
rescue StandardError => e
|
585
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
586
|
+
end
|
587
|
+
|
516
588
|
# 创建源站组,以源站组的方式管理业务源站。此处配置的源站组可于**添加加速域名**和**四层代理**等功能中引用。
|
517
589
|
|
518
590
|
# @param request: Request instance for CreateOriginGroup.
|
@@ -734,6 +806,30 @@ module TencentCloud
|
|
734
806
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
735
807
|
end
|
736
808
|
|
809
|
+
# 创建安全策略配置模板
|
810
|
+
|
811
|
+
# @param request: Request instance for CreateWebSecurityTemplate.
|
812
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::CreateWebSecurityTemplateRequest`
|
813
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateWebSecurityTemplateResponse`
|
814
|
+
def CreateWebSecurityTemplate(request)
|
815
|
+
body = send_request('CreateWebSecurityTemplate', request.serialize)
|
816
|
+
response = JSON.parse(body)
|
817
|
+
if response['Response'].key?('Error') == false
|
818
|
+
model = CreateWebSecurityTemplateResponse.new
|
819
|
+
model.deserialize(response['Response'])
|
820
|
+
model
|
821
|
+
else
|
822
|
+
code = response['Response']['Error']['Code']
|
823
|
+
message = response['Response']['Error']['Message']
|
824
|
+
reqid = response['Response']['RequestId']
|
825
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
826
|
+
end
|
827
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
828
|
+
raise e
|
829
|
+
rescue StandardError => e
|
830
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
831
|
+
end
|
832
|
+
|
737
833
|
# EdgeOne 为您提供 CNAME、NS 和无域名接入三种接入方式,您需要先通过此接口完成站点创建。CNAME 和 NS 接入站点的场景可参考 [从零开始快速接入 EdgeOne](https://cloud.tencent.com/document/product/1552/87601); 无域名接入的场景可参考 [快速启用四层代理服务](https://cloud.tencent.com/document/product/1552/96051)。
|
738
834
|
|
739
835
|
# > 建议您在账号下已存在套餐时调用本接口创建站点,请在入参时传入 PlanId ,直接将站点绑定至该套餐;不传入 PlanId 时,创建出来的站点会处于未激活状态,无法正常服务,您需要通过 [BindZoneToPlan](https://cloud.tencent.com/document/product/1552/83042) 完成套餐绑定之后,站点才可正常提供服务 。若您当前没有可绑定的套餐时,请前往控制台购买套餐完成站点创建。
|
@@ -1074,6 +1170,54 @@ module TencentCloud
|
|
1074
1170
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1075
1171
|
end
|
1076
1172
|
|
1173
|
+
# 通过本接口删除多通道安全加速网关,包括自有网关和云上网关。
|
1174
|
+
|
1175
|
+
# @param request: Request instance for DeleteMultiPathGateway.
|
1176
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteMultiPathGatewayRequest`
|
1177
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteMultiPathGatewayResponse`
|
1178
|
+
def DeleteMultiPathGateway(request)
|
1179
|
+
body = send_request('DeleteMultiPathGateway', request.serialize)
|
1180
|
+
response = JSON.parse(body)
|
1181
|
+
if response['Response'].key?('Error') == false
|
1182
|
+
model = DeleteMultiPathGatewayResponse.new
|
1183
|
+
model.deserialize(response['Response'])
|
1184
|
+
model
|
1185
|
+
else
|
1186
|
+
code = response['Response']['Error']['Code']
|
1187
|
+
message = response['Response']['Error']['Message']
|
1188
|
+
reqid = response['Response']['RequestId']
|
1189
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1190
|
+
end
|
1191
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1192
|
+
raise e
|
1193
|
+
rescue StandardError => e
|
1194
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1195
|
+
end
|
1196
|
+
|
1197
|
+
# 通过本接口删除接入多通道安全加速网关的线路,仅自定义线路支持删除。
|
1198
|
+
|
1199
|
+
# @param request: Request instance for DeleteMultiPathGatewayLine.
|
1200
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteMultiPathGatewayLineRequest`
|
1201
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteMultiPathGatewayLineResponse`
|
1202
|
+
def DeleteMultiPathGatewayLine(request)
|
1203
|
+
body = send_request('DeleteMultiPathGatewayLine', request.serialize)
|
1204
|
+
response = JSON.parse(body)
|
1205
|
+
if response['Response'].key?('Error') == false
|
1206
|
+
model = DeleteMultiPathGatewayLineResponse.new
|
1207
|
+
model.deserialize(response['Response'])
|
1208
|
+
model
|
1209
|
+
else
|
1210
|
+
code = response['Response']['Error']['Code']
|
1211
|
+
message = response['Response']['Error']['Message']
|
1212
|
+
reqid = response['Response']['RequestId']
|
1213
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1214
|
+
end
|
1215
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1216
|
+
raise e
|
1217
|
+
rescue StandardError => e
|
1218
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1219
|
+
end
|
1220
|
+
|
1077
1221
|
# 删除源站组,若源站组仍然被服务(例如:四层代理,域名服务,负载均衡,规则引起)引用,将不允许删除。
|
1078
1222
|
|
1079
1223
|
# @param request: Request instance for DeleteOriginGroup.
|
@@ -1195,6 +1339,30 @@ module TencentCloud
|
|
1195
1339
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1196
1340
|
end
|
1197
1341
|
|
1342
|
+
# 删除安全策略配置模板
|
1343
|
+
|
1344
|
+
# @param request: Request instance for DeleteWebSecurityTemplate.
|
1345
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteWebSecurityTemplateRequest`
|
1346
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteWebSecurityTemplateResponse`
|
1347
|
+
def DeleteWebSecurityTemplate(request)
|
1348
|
+
body = send_request('DeleteWebSecurityTemplate', request.serialize)
|
1349
|
+
response = JSON.parse(body)
|
1350
|
+
if response['Response'].key?('Error') == false
|
1351
|
+
model = DeleteWebSecurityTemplateResponse.new
|
1352
|
+
model.deserialize(response['Response'])
|
1353
|
+
model
|
1354
|
+
else
|
1355
|
+
code = response['Response']['Error']['Code']
|
1356
|
+
message = response['Response']['Error']['Message']
|
1357
|
+
reqid = response['Response']['RequestId']
|
1358
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1359
|
+
end
|
1360
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1361
|
+
raise e
|
1362
|
+
rescue StandardError => e
|
1363
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1364
|
+
end
|
1365
|
+
|
1198
1366
|
# 删除站点。
|
1199
1367
|
|
1200
1368
|
# @param request: Request instance for DeleteZone.
|
@@ -1916,6 +2084,126 @@ module TencentCloud
|
|
1916
2084
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1917
2085
|
end
|
1918
2086
|
|
2087
|
+
# 通过本接口查询多通道安全加速网关详情。如名称、网关 ID、IP、端口、类型等。
|
2088
|
+
|
2089
|
+
# @param request: Request instance for DescribeMultiPathGateway.
|
2090
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeMultiPathGatewayRequest`
|
2091
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeMultiPathGatewayResponse`
|
2092
|
+
def DescribeMultiPathGateway(request)
|
2093
|
+
body = send_request('DescribeMultiPathGateway', request.serialize)
|
2094
|
+
response = JSON.parse(body)
|
2095
|
+
if response['Response'].key?('Error') == false
|
2096
|
+
model = DescribeMultiPathGatewayResponse.new
|
2097
|
+
model.deserialize(response['Response'])
|
2098
|
+
model
|
2099
|
+
else
|
2100
|
+
code = response['Response']['Error']['Code']
|
2101
|
+
message = response['Response']['Error']['Message']
|
2102
|
+
reqid = response['Response']['RequestId']
|
2103
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2104
|
+
end
|
2105
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2106
|
+
raise e
|
2107
|
+
rescue StandardError => e
|
2108
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2109
|
+
end
|
2110
|
+
|
2111
|
+
# 通过本接口查询接入多通道安全加速网关的线路。包括直连、EdgeOne 四层代理线路、自定义线路。
|
2112
|
+
|
2113
|
+
# @param request: Request instance for DescribeMultiPathGatewayLine.
|
2114
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeMultiPathGatewayLineRequest`
|
2115
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeMultiPathGatewayLineResponse`
|
2116
|
+
def DescribeMultiPathGatewayLine(request)
|
2117
|
+
body = send_request('DescribeMultiPathGatewayLine', request.serialize)
|
2118
|
+
response = JSON.parse(body)
|
2119
|
+
if response['Response'].key?('Error') == false
|
2120
|
+
model = DescribeMultiPathGatewayLineResponse.new
|
2121
|
+
model.deserialize(response['Response'])
|
2122
|
+
model
|
2123
|
+
else
|
2124
|
+
code = response['Response']['Error']['Code']
|
2125
|
+
message = response['Response']['Error']['Message']
|
2126
|
+
reqid = response['Response']['RequestId']
|
2127
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2128
|
+
end
|
2129
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2130
|
+
raise e
|
2131
|
+
rescue StandardError => e
|
2132
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2133
|
+
end
|
2134
|
+
|
2135
|
+
# 通过本接口查询用户创建的多通道安全加速网关(云上网关)的可用地域列表。
|
2136
|
+
|
2137
|
+
# @param request: Request instance for DescribeMultiPathGatewayRegions.
|
2138
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeMultiPathGatewayRegionsRequest`
|
2139
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeMultiPathGatewayRegionsResponse`
|
2140
|
+
def DescribeMultiPathGatewayRegions(request)
|
2141
|
+
body = send_request('DescribeMultiPathGatewayRegions', request.serialize)
|
2142
|
+
response = JSON.parse(body)
|
2143
|
+
if response['Response'].key?('Error') == false
|
2144
|
+
model = DescribeMultiPathGatewayRegionsResponse.new
|
2145
|
+
model.deserialize(response['Response'])
|
2146
|
+
model
|
2147
|
+
else
|
2148
|
+
code = response['Response']['Error']['Code']
|
2149
|
+
message = response['Response']['Error']['Message']
|
2150
|
+
reqid = response['Response']['RequestId']
|
2151
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2152
|
+
end
|
2153
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2154
|
+
raise e
|
2155
|
+
rescue StandardError => e
|
2156
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2157
|
+
end
|
2158
|
+
|
2159
|
+
# 通过本接口查询接入多通道安全加速网关的密钥,客户基于接入密钥签名接入多通道安全加速网关。
|
2160
|
+
|
2161
|
+
# @param request: Request instance for DescribeMultiPathGatewaySecretKey.
|
2162
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeMultiPathGatewaySecretKeyRequest`
|
2163
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeMultiPathGatewaySecretKeyResponse`
|
2164
|
+
def DescribeMultiPathGatewaySecretKey(request)
|
2165
|
+
body = send_request('DescribeMultiPathGatewaySecretKey', request.serialize)
|
2166
|
+
response = JSON.parse(body)
|
2167
|
+
if response['Response'].key?('Error') == false
|
2168
|
+
model = DescribeMultiPathGatewaySecretKeyResponse.new
|
2169
|
+
model.deserialize(response['Response'])
|
2170
|
+
model
|
2171
|
+
else
|
2172
|
+
code = response['Response']['Error']['Code']
|
2173
|
+
message = response['Response']['Error']['Message']
|
2174
|
+
reqid = response['Response']['RequestId']
|
2175
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2176
|
+
end
|
2177
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2178
|
+
raise e
|
2179
|
+
rescue StandardError => e
|
2180
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2181
|
+
end
|
2182
|
+
|
2183
|
+
# 通过本接口查询用户创建的多通道安全加速网关列表。支持翻页。
|
2184
|
+
|
2185
|
+
# @param request: Request instance for DescribeMultiPathGateways.
|
2186
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeMultiPathGatewaysRequest`
|
2187
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeMultiPathGatewaysResponse`
|
2188
|
+
def DescribeMultiPathGateways(request)
|
2189
|
+
body = send_request('DescribeMultiPathGateways', request.serialize)
|
2190
|
+
response = JSON.parse(body)
|
2191
|
+
if response['Response'].key?('Error') == false
|
2192
|
+
model = DescribeMultiPathGatewaysResponse.new
|
2193
|
+
model.deserialize(response['Response'])
|
2194
|
+
model
|
2195
|
+
else
|
2196
|
+
code = response['Response']['Error']['Code']
|
2197
|
+
message = response['Response']['Error']['Message']
|
2198
|
+
reqid = response['Response']['RequestId']
|
2199
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2200
|
+
end
|
2201
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2202
|
+
raise e
|
2203
|
+
rescue StandardError => e
|
2204
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2205
|
+
end
|
2206
|
+
|
1919
2207
|
# 本接口用于查询站点下的七层加速域名/四层代理实例与回源 IP 网段的绑定关系,以及回源 IP 网段详情。如果您想通过自动化脚本定期获取回源 IP 网段的最新版本,可以较低频率(建议每三天一次)轮询本接口,若 NextOriginACL 字段有返回值,则将最新的回源 IP 网段同步到源站防火墙配置中。
|
1920
2208
|
|
1921
2209
|
# @param request: Request instance for DescribeOriginACL.
|
@@ -2402,6 +2690,54 @@ module TencentCloud
|
|
2402
2690
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2403
2691
|
end
|
2404
2692
|
|
2693
|
+
# 查询安全策略配置模板详情
|
2694
|
+
|
2695
|
+
# @param request: Request instance for DescribeWebSecurityTemplate.
|
2696
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeWebSecurityTemplateRequest`
|
2697
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeWebSecurityTemplateResponse`
|
2698
|
+
def DescribeWebSecurityTemplate(request)
|
2699
|
+
body = send_request('DescribeWebSecurityTemplate', request.serialize)
|
2700
|
+
response = JSON.parse(body)
|
2701
|
+
if response['Response'].key?('Error') == false
|
2702
|
+
model = DescribeWebSecurityTemplateResponse.new
|
2703
|
+
model.deserialize(response['Response'])
|
2704
|
+
model
|
2705
|
+
else
|
2706
|
+
code = response['Response']['Error']['Code']
|
2707
|
+
message = response['Response']['Error']['Message']
|
2708
|
+
reqid = response['Response']['RequestId']
|
2709
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2710
|
+
end
|
2711
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2712
|
+
raise e
|
2713
|
+
rescue StandardError => e
|
2714
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2715
|
+
end
|
2716
|
+
|
2717
|
+
# 查询安全策略配置模板列表
|
2718
|
+
|
2719
|
+
# @param request: Request instance for DescribeWebSecurityTemplates.
|
2720
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeWebSecurityTemplatesRequest`
|
2721
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeWebSecurityTemplatesResponse`
|
2722
|
+
def DescribeWebSecurityTemplates(request)
|
2723
|
+
body = send_request('DescribeWebSecurityTemplates', request.serialize)
|
2724
|
+
response = JSON.parse(body)
|
2725
|
+
if response['Response'].key?('Error') == false
|
2726
|
+
model = DescribeWebSecurityTemplatesResponse.new
|
2727
|
+
model.deserialize(response['Response'])
|
2728
|
+
model
|
2729
|
+
else
|
2730
|
+
code = response['Response']['Error']['Code']
|
2731
|
+
message = response['Response']['Error']['Message']
|
2732
|
+
reqid = response['Response']['RequestId']
|
2733
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2734
|
+
end
|
2735
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2736
|
+
raise e
|
2737
|
+
rescue StandardError => e
|
2738
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2739
|
+
end
|
2740
|
+
|
2405
2741
|
# 查询站点配置项导入结果接口,本接口用于站点配置导入接口(ImportZoneConfig)的结果查询。该功能仅支持标准版或企业版套餐的站点使用。
|
2406
2742
|
|
2407
2743
|
# @param request: Request instance for DescribeZoneConfigImportResult.
|
@@ -3310,6 +3646,78 @@ module TencentCloud
|
|
3310
3646
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3311
3647
|
end
|
3312
3648
|
|
3649
|
+
# 通过本接口修改多通道安全加速网关信息,如名称、网关 ID、IP、端口等。
|
3650
|
+
|
3651
|
+
# @param request: Request instance for ModifyMultiPathGateway.
|
3652
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifyMultiPathGatewayRequest`
|
3653
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifyMultiPathGatewayResponse`
|
3654
|
+
def ModifyMultiPathGateway(request)
|
3655
|
+
body = send_request('ModifyMultiPathGateway', request.serialize)
|
3656
|
+
response = JSON.parse(body)
|
3657
|
+
if response['Response'].key?('Error') == false
|
3658
|
+
model = ModifyMultiPathGatewayResponse.new
|
3659
|
+
model.deserialize(response['Response'])
|
3660
|
+
model
|
3661
|
+
else
|
3662
|
+
code = response['Response']['Error']['Code']
|
3663
|
+
message = response['Response']['Error']['Message']
|
3664
|
+
reqid = response['Response']['RequestId']
|
3665
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3666
|
+
end
|
3667
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3668
|
+
raise e
|
3669
|
+
rescue StandardError => e
|
3670
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3671
|
+
end
|
3672
|
+
|
3673
|
+
# 通过本接口修改接入多通道安全加速网关的线路,包括 EdgeOne 四层代理线路、自定义线路。
|
3674
|
+
|
3675
|
+
# @param request: Request instance for ModifyMultiPathGatewayLine.
|
3676
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifyMultiPathGatewayLineRequest`
|
3677
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifyMultiPathGatewayLineResponse`
|
3678
|
+
def ModifyMultiPathGatewayLine(request)
|
3679
|
+
body = send_request('ModifyMultiPathGatewayLine', request.serialize)
|
3680
|
+
response = JSON.parse(body)
|
3681
|
+
if response['Response'].key?('Error') == false
|
3682
|
+
model = ModifyMultiPathGatewayLineResponse.new
|
3683
|
+
model.deserialize(response['Response'])
|
3684
|
+
model
|
3685
|
+
else
|
3686
|
+
code = response['Response']['Error']['Code']
|
3687
|
+
message = response['Response']['Error']['Message']
|
3688
|
+
reqid = response['Response']['RequestId']
|
3689
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3690
|
+
end
|
3691
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3692
|
+
raise e
|
3693
|
+
rescue StandardError => e
|
3694
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3695
|
+
end
|
3696
|
+
|
3697
|
+
# 通过本接口修改接入多通道安全加速网关的密钥,客户基于接入密钥签名接入多通道安全加速网关,修改后原密钥失效。
|
3698
|
+
|
3699
|
+
# @param request: Request instance for ModifyMultiPathGatewaySecretKey.
|
3700
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifyMultiPathGatewaySecretKeyRequest`
|
3701
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifyMultiPathGatewaySecretKeyResponse`
|
3702
|
+
def ModifyMultiPathGatewaySecretKey(request)
|
3703
|
+
body = send_request('ModifyMultiPathGatewaySecretKey', request.serialize)
|
3704
|
+
response = JSON.parse(body)
|
3705
|
+
if response['Response'].key?('Error') == false
|
3706
|
+
model = ModifyMultiPathGatewaySecretKeyResponse.new
|
3707
|
+
model.deserialize(response['Response'])
|
3708
|
+
model
|
3709
|
+
else
|
3710
|
+
code = response['Response']['Error']['Code']
|
3711
|
+
message = response['Response']['Error']['Message']
|
3712
|
+
reqid = response['Response']['RequestId']
|
3713
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3714
|
+
end
|
3715
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3716
|
+
raise e
|
3717
|
+
rescue StandardError => e
|
3718
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3719
|
+
end
|
3720
|
+
|
3313
3721
|
# 本接口用于对七层加速域名/四层代理实例启用/关闭特定回源 IP 网段回源。单次支持提交的七层加速域名的数量最大为 200,四层代理实例的数量最大为 100,支持七层加速域名/四层代理实例混合提交,总实例个数最大为 200。如需变更超过 200 个实例,请通过本接口分批提交。
|
3314
3722
|
|
3315
3723
|
# @param request: Request instance for ModifyOriginACL.
|
@@ -3479,6 +3887,30 @@ module TencentCloud
|
|
3479
3887
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3480
3888
|
end
|
3481
3889
|
|
3890
|
+
# 修改安全策略配置模板
|
3891
|
+
|
3892
|
+
# @param request: Request instance for ModifyWebSecurityTemplate.
|
3893
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifyWebSecurityTemplateRequest`
|
3894
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifyWebSecurityTemplateResponse`
|
3895
|
+
def ModifyWebSecurityTemplate(request)
|
3896
|
+
body = send_request('ModifyWebSecurityTemplate', request.serialize)
|
3897
|
+
response = JSON.parse(body)
|
3898
|
+
if response['Response'].key?('Error') == false
|
3899
|
+
model = ModifyWebSecurityTemplateResponse.new
|
3900
|
+
model.deserialize(response['Response'])
|
3901
|
+
model
|
3902
|
+
else
|
3903
|
+
code = response['Response']['Error']['Code']
|
3904
|
+
message = response['Response']['Error']['Message']
|
3905
|
+
reqid = response['Response']['RequestId']
|
3906
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3907
|
+
end
|
3908
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3909
|
+
raise e
|
3910
|
+
rescue StandardError => e
|
3911
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3912
|
+
end
|
3913
|
+
|
3482
3914
|
# 修改站点信息。
|
3483
3915
|
|
3484
3916
|
# @param request: Request instance for ModifyZone.
|
@@ -3551,6 +3983,30 @@ module TencentCloud
|
|
3551
3983
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3552
3984
|
end
|
3553
3985
|
|
3986
|
+
# 通过本接口刷新多通道安全加速网关的密钥。客户基于接入密钥签名接入多通道安全加速网关。每个站点下只有一个密钥,可用于接入该站点下的所有网关,刷新密钥后,原始密钥会失效。
|
3987
|
+
|
3988
|
+
# @param request: Request instance for RefreshMultiPathGatewaySecretKey.
|
3989
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::RefreshMultiPathGatewaySecretKeyRequest`
|
3990
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::RefreshMultiPathGatewaySecretKeyResponse`
|
3991
|
+
def RefreshMultiPathGatewaySecretKey(request)
|
3992
|
+
body = send_request('RefreshMultiPathGatewaySecretKey', request.serialize)
|
3993
|
+
response = JSON.parse(body)
|
3994
|
+
if response['Response'].key?('Error') == false
|
3995
|
+
model = RefreshMultiPathGatewaySecretKeyResponse.new
|
3996
|
+
model.deserialize(response['Response'])
|
3997
|
+
model
|
3998
|
+
else
|
3999
|
+
code = response['Response']['Error']['Code']
|
4000
|
+
message = response['Response']['Error']['Message']
|
4001
|
+
reqid = response['Response']['RequestId']
|
4002
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4003
|
+
end
|
4004
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4005
|
+
raise e
|
4006
|
+
rescue StandardError => e
|
4007
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4008
|
+
end
|
4009
|
+
|
3554
4010
|
# 当您的套餐需要延长有效期,可以通过该接口进行续费。套餐续费仅支持个人版,基础版,标准版套餐。
|
3555
4011
|
# > 费用详情可参考 [套餐费用](https://cloud.tencent.com/document/product/1552/94158)
|
3556
4012
|
|