tencentcloud-sdk-teo 3.0.755 → 3.0.757
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/v20220901/client.rb +240 -0
- data/lib/v20220901/models.rb +731 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 784c732ab326f247c4d8d86c74c9ae0480b3695d
|
4
|
+
data.tar.gz: bdbd70b96735865ef66d03fb803fd8fbf29d81b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f72a842ea850448a7fd2e5e37b39651cf360049125b02180682d653c62d82c09cbe0a42142db4f665a2943cc6f86c761c7fcd77bdcaf83d29cbdbc703db50c8a
|
7
|
+
data.tar.gz: c33208ef0f1cf982f7e0dba5ee0d69037fef97bc7eb65bcfed5bbb1c750f85ae3c08d402d02524657c0b5a9036fb5f9af55bf3a708b6c4c35f36b068e6dd9ec4
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.757
|
data/lib/v20220901/client.rb
CHANGED
@@ -247,6 +247,54 @@ module TencentCloud
|
|
247
247
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
248
248
|
end
|
249
249
|
|
250
|
+
# 用于创建四层代理实例。
|
251
|
+
|
252
|
+
# @param request: Request instance for CreateL4Proxy.
|
253
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::CreateL4ProxyRequest`
|
254
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateL4ProxyResponse`
|
255
|
+
def CreateL4Proxy(request)
|
256
|
+
body = send_request('CreateL4Proxy', request.serialize)
|
257
|
+
response = JSON.parse(body)
|
258
|
+
if response['Response'].key?('Error') == false
|
259
|
+
model = CreateL4ProxyResponse.new
|
260
|
+
model.deserialize(response['Response'])
|
261
|
+
model
|
262
|
+
else
|
263
|
+
code = response['Response']['Error']['Code']
|
264
|
+
message = response['Response']['Error']['Message']
|
265
|
+
reqid = response['Response']['RequestId']
|
266
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
267
|
+
end
|
268
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
269
|
+
raise e
|
270
|
+
rescue StandardError => e
|
271
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
272
|
+
end
|
273
|
+
|
274
|
+
# 用于创建四层代理实例规则,支持单条或者批量创建。
|
275
|
+
|
276
|
+
# @param request: Request instance for CreateL4ProxyRules.
|
277
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::CreateL4ProxyRulesRequest`
|
278
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateL4ProxyRulesResponse`
|
279
|
+
def CreateL4ProxyRules(request)
|
280
|
+
body = send_request('CreateL4ProxyRules', request.serialize)
|
281
|
+
response = JSON.parse(body)
|
282
|
+
if response['Response'].key?('Error') == false
|
283
|
+
model = CreateL4ProxyRulesResponse.new
|
284
|
+
model.deserialize(response['Response'])
|
285
|
+
model
|
286
|
+
else
|
287
|
+
code = response['Response']['Error']['Code']
|
288
|
+
message = response['Response']['Error']['Message']
|
289
|
+
reqid = response['Response']['RequestId']
|
290
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
291
|
+
end
|
292
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
293
|
+
raise e
|
294
|
+
rescue StandardError => e
|
295
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
296
|
+
end
|
297
|
+
|
250
298
|
# 创建源站组,以源站组的方式管理业务源站。此处配置的源站组可于**添加加速域名**和**四层代理**等功能中引用。
|
251
299
|
|
252
300
|
# @param request: Request instance for CreateOriginGroup.
|
@@ -539,6 +587,54 @@ module TencentCloud
|
|
539
587
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
540
588
|
end
|
541
589
|
|
590
|
+
# 用于删除四层代理实例。
|
591
|
+
|
592
|
+
# @param request: Request instance for DeleteL4Proxy.
|
593
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteL4ProxyRequest`
|
594
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteL4ProxyResponse`
|
595
|
+
def DeleteL4Proxy(request)
|
596
|
+
body = send_request('DeleteL4Proxy', request.serialize)
|
597
|
+
response = JSON.parse(body)
|
598
|
+
if response['Response'].key?('Error') == false
|
599
|
+
model = DeleteL4ProxyResponse.new
|
600
|
+
model.deserialize(response['Response'])
|
601
|
+
model
|
602
|
+
else
|
603
|
+
code = response['Response']['Error']['Code']
|
604
|
+
message = response['Response']['Error']['Message']
|
605
|
+
reqid = response['Response']['RequestId']
|
606
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
607
|
+
end
|
608
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
609
|
+
raise e
|
610
|
+
rescue StandardError => e
|
611
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
612
|
+
end
|
613
|
+
|
614
|
+
# 用于删除四层代理转发规则,支持单条或者批量操作。
|
615
|
+
|
616
|
+
# @param request: Request instance for DeleteL4ProxyRules.
|
617
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteL4ProxyRulesRequest`
|
618
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteL4ProxyRulesResponse`
|
619
|
+
def DeleteL4ProxyRules(request)
|
620
|
+
body = send_request('DeleteL4ProxyRules', request.serialize)
|
621
|
+
response = JSON.parse(body)
|
622
|
+
if response['Response'].key?('Error') == false
|
623
|
+
model = DeleteL4ProxyRulesResponse.new
|
624
|
+
model.deserialize(response['Response'])
|
625
|
+
model
|
626
|
+
else
|
627
|
+
code = response['Response']['Error']['Code']
|
628
|
+
message = response['Response']['Error']['Message']
|
629
|
+
reqid = response['Response']['RequestId']
|
630
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
631
|
+
end
|
632
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
633
|
+
raise e
|
634
|
+
rescue StandardError => e
|
635
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
636
|
+
end
|
637
|
+
|
542
638
|
# 删除源站组,若源站组仍然被服务(例如:四层代理,域名服务,负载均衡,规则引起)引用,将不允许删除。
|
543
639
|
|
544
640
|
# @param request: Request instance for DeleteOriginGroup.
|
@@ -1067,6 +1163,54 @@ module TencentCloud
|
|
1067
1163
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1068
1164
|
end
|
1069
1165
|
|
1166
|
+
# 用于查询四层代理实例列表。
|
1167
|
+
|
1168
|
+
# @param request: Request instance for DescribeL4Proxy.
|
1169
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeL4ProxyRequest`
|
1170
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeL4ProxyResponse`
|
1171
|
+
def DescribeL4Proxy(request)
|
1172
|
+
body = send_request('DescribeL4Proxy', request.serialize)
|
1173
|
+
response = JSON.parse(body)
|
1174
|
+
if response['Response'].key?('Error') == false
|
1175
|
+
model = DescribeL4ProxyResponse.new
|
1176
|
+
model.deserialize(response['Response'])
|
1177
|
+
model
|
1178
|
+
else
|
1179
|
+
code = response['Response']['Error']['Code']
|
1180
|
+
message = response['Response']['Error']['Message']
|
1181
|
+
reqid = response['Response']['RequestId']
|
1182
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1183
|
+
end
|
1184
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1185
|
+
raise e
|
1186
|
+
rescue StandardError => e
|
1187
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1188
|
+
end
|
1189
|
+
|
1190
|
+
# 查询四层代理实例下的规则列表。
|
1191
|
+
|
1192
|
+
# @param request: Request instance for DescribeL4ProxyRules.
|
1193
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeL4ProxyRulesRequest`
|
1194
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeL4ProxyRulesResponse`
|
1195
|
+
def DescribeL4ProxyRules(request)
|
1196
|
+
body = send_request('DescribeL4ProxyRules', request.serialize)
|
1197
|
+
response = JSON.parse(body)
|
1198
|
+
if response['Response'].key?('Error') == false
|
1199
|
+
model = DescribeL4ProxyRulesResponse.new
|
1200
|
+
model.deserialize(response['Response'])
|
1201
|
+
model
|
1202
|
+
else
|
1203
|
+
code = response['Response']['Error']['Code']
|
1204
|
+
message = response['Response']['Error']['Message']
|
1205
|
+
reqid = response['Response']['RequestId']
|
1206
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1207
|
+
end
|
1208
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1209
|
+
raise e
|
1210
|
+
rescue StandardError => e
|
1211
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1212
|
+
end
|
1213
|
+
|
1070
1214
|
# 获取源站组列表
|
1071
1215
|
|
1072
1216
|
# @param request: Request instance for DescribeOriginGroup.
|
@@ -1717,6 +1861,102 @@ module TencentCloud
|
|
1717
1861
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1718
1862
|
end
|
1719
1863
|
|
1864
|
+
# 用于修改四层代理实例的配置。
|
1865
|
+
|
1866
|
+
# @param request: Request instance for ModifyL4Proxy.
|
1867
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifyL4ProxyRequest`
|
1868
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifyL4ProxyResponse`
|
1869
|
+
def ModifyL4Proxy(request)
|
1870
|
+
body = send_request('ModifyL4Proxy', request.serialize)
|
1871
|
+
response = JSON.parse(body)
|
1872
|
+
if response['Response'].key?('Error') == false
|
1873
|
+
model = ModifyL4ProxyResponse.new
|
1874
|
+
model.deserialize(response['Response'])
|
1875
|
+
model
|
1876
|
+
else
|
1877
|
+
code = response['Response']['Error']['Code']
|
1878
|
+
message = response['Response']['Error']['Message']
|
1879
|
+
reqid = response['Response']['RequestId']
|
1880
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1881
|
+
end
|
1882
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1883
|
+
raise e
|
1884
|
+
rescue StandardError => e
|
1885
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1886
|
+
end
|
1887
|
+
|
1888
|
+
# 用于修改四层代理转发规则,支持单条或者批量修改。
|
1889
|
+
|
1890
|
+
# @param request: Request instance for ModifyL4ProxyRules.
|
1891
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifyL4ProxyRulesRequest`
|
1892
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifyL4ProxyRulesResponse`
|
1893
|
+
def ModifyL4ProxyRules(request)
|
1894
|
+
body = send_request('ModifyL4ProxyRules', request.serialize)
|
1895
|
+
response = JSON.parse(body)
|
1896
|
+
if response['Response'].key?('Error') == false
|
1897
|
+
model = ModifyL4ProxyRulesResponse.new
|
1898
|
+
model.deserialize(response['Response'])
|
1899
|
+
model
|
1900
|
+
else
|
1901
|
+
code = response['Response']['Error']['Code']
|
1902
|
+
message = response['Response']['Error']['Message']
|
1903
|
+
reqid = response['Response']['RequestId']
|
1904
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1905
|
+
end
|
1906
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1907
|
+
raise e
|
1908
|
+
rescue StandardError => e
|
1909
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1910
|
+
end
|
1911
|
+
|
1912
|
+
# 用于启用/停用四层代理转发规则状态,支持单条或者批量操作。
|
1913
|
+
|
1914
|
+
# @param request: Request instance for ModifyL4ProxyRulesStatus.
|
1915
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifyL4ProxyRulesStatusRequest`
|
1916
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifyL4ProxyRulesStatusResponse`
|
1917
|
+
def ModifyL4ProxyRulesStatus(request)
|
1918
|
+
body = send_request('ModifyL4ProxyRulesStatus', request.serialize)
|
1919
|
+
response = JSON.parse(body)
|
1920
|
+
if response['Response'].key?('Error') == false
|
1921
|
+
model = ModifyL4ProxyRulesStatusResponse.new
|
1922
|
+
model.deserialize(response['Response'])
|
1923
|
+
model
|
1924
|
+
else
|
1925
|
+
code = response['Response']['Error']['Code']
|
1926
|
+
message = response['Response']['Error']['Message']
|
1927
|
+
reqid = response['Response']['RequestId']
|
1928
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1929
|
+
end
|
1930
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1931
|
+
raise e
|
1932
|
+
rescue StandardError => e
|
1933
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1934
|
+
end
|
1935
|
+
|
1936
|
+
# 用于启用/停用四层代理实例。
|
1937
|
+
|
1938
|
+
# @param request: Request instance for ModifyL4ProxyStatus.
|
1939
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifyL4ProxyStatusRequest`
|
1940
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifyL4ProxyStatusResponse`
|
1941
|
+
def ModifyL4ProxyStatus(request)
|
1942
|
+
body = send_request('ModifyL4ProxyStatus', request.serialize)
|
1943
|
+
response = JSON.parse(body)
|
1944
|
+
if response['Response'].key?('Error') == false
|
1945
|
+
model = ModifyL4ProxyStatusResponse.new
|
1946
|
+
model.deserialize(response['Response'])
|
1947
|
+
model
|
1948
|
+
else
|
1949
|
+
code = response['Response']['Error']['Code']
|
1950
|
+
message = response['Response']['Error']['Message']
|
1951
|
+
reqid = response['Response']['RequestId']
|
1952
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1953
|
+
end
|
1954
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1955
|
+
raise e
|
1956
|
+
rescue StandardError => e
|
1957
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1958
|
+
end
|
1959
|
+
|
1720
1960
|
# 修改源站组配置,新提交的源站记录将会覆盖原有源站组中的源站记录。
|
1721
1961
|
|
1722
1962
|
# @param request: Request instance for ModifyOriginGroup.
|
data/lib/v20220901/models.rb
CHANGED
@@ -2174,6 +2174,131 @@ module TencentCloud
|
|
2174
2174
|
end
|
2175
2175
|
end
|
2176
2176
|
|
2177
|
+
# CreateL4Proxy请求参数结构体
|
2178
|
+
class CreateL4ProxyRequest < TencentCloud::Common::AbstractModel
|
2179
|
+
# @param ZoneId: 站点 ID。
|
2180
|
+
# @type ZoneId: String
|
2181
|
+
# @param ProxyName: 四层代理实例名称,可输入 1-50 个字符,允许的字符为 a-z、0-9、-,且 - 不能单独注册或连续使用,不能放在开头或结尾。创建完成后不支持修改。
|
2182
|
+
# @type ProxyName: String
|
2183
|
+
# @param Area: 四层代理实例加速区域。
|
2184
|
+
# <li>mainland:中国大陆可用区;</li>
|
2185
|
+
# <li>overseas:全球可用区(不含中国大陆);</li>
|
2186
|
+
# <li>global:全球可用区。</li>
|
2187
|
+
# @type Area: String
|
2188
|
+
# @param Ipv6: 是否开启 IPv6 访问,不填写时默认为 off。该配置仅在部分加速区域和安全防护配置下支持开启,详情请参考 [新建四层代理实例](https://cloud.tencent.com/document/product/1552/90025) 。取值为:
|
2189
|
+
# <li>on:开启;</li>
|
2190
|
+
# <li>off:关闭。</li>
|
2191
|
+
|
2192
|
+
# @type Ipv6: String
|
2193
|
+
# @param StaticIp: 是否开启固定 IP,不填写时默认为 off。该配置仅在部分加速区域和安全防护配置下支持开启,详情请参考 [新建四层代理实例](https://cloud.tencent.com/document/product/1552/90025) 。取值为:
|
2194
|
+
# <li>on:开启;</li>
|
2195
|
+
# <li>off:关闭。</li>
|
2196
|
+
# @type StaticIp: String
|
2197
|
+
# @param AccelerateMainland: 是否开启中国大陆网络优化,不填写时默认为 off。该配置仅在部分加速区域和安全防护配置下支持开启,详情请参考 [新建四层代理实例](https://cloud.tencent.com/document/product/1552/90025) 。取值为:
|
2198
|
+
# <li>on:开启;</li>
|
2199
|
+
# <li>off:关闭。</li>
|
2200
|
+
# @type AccelerateMainland: String
|
2201
|
+
# @param DDosProtectionConfig: L3/L4 DDoS 防护配置,不填写时默认使用平台默认防护选项。详情参考 [独立 DDoS 防护](https://cloud.tencent.com/document/product/1552/95994)。
|
2202
|
+
# @type DDosProtectionConfig: :class:`Tencentcloud::Teo.v20220901.models.DDosProtectionConfig`
|
2203
|
+
|
2204
|
+
attr_accessor :ZoneId, :ProxyName, :Area, :Ipv6, :StaticIp, :AccelerateMainland, :DDosProtectionConfig
|
2205
|
+
|
2206
|
+
def initialize(zoneid=nil, proxyname=nil, area=nil, ipv6=nil, staticip=nil, acceleratemainland=nil, ddosprotectionconfig=nil)
|
2207
|
+
@ZoneId = zoneid
|
2208
|
+
@ProxyName = proxyname
|
2209
|
+
@Area = area
|
2210
|
+
@Ipv6 = ipv6
|
2211
|
+
@StaticIp = staticip
|
2212
|
+
@AccelerateMainland = acceleratemainland
|
2213
|
+
@DDosProtectionConfig = ddosprotectionconfig
|
2214
|
+
end
|
2215
|
+
|
2216
|
+
def deserialize(params)
|
2217
|
+
@ZoneId = params['ZoneId']
|
2218
|
+
@ProxyName = params['ProxyName']
|
2219
|
+
@Area = params['Area']
|
2220
|
+
@Ipv6 = params['Ipv6']
|
2221
|
+
@StaticIp = params['StaticIp']
|
2222
|
+
@AccelerateMainland = params['AccelerateMainland']
|
2223
|
+
unless params['DDosProtectionConfig'].nil?
|
2224
|
+
@DDosProtectionConfig = DDosProtectionConfig.new
|
2225
|
+
@DDosProtectionConfig.deserialize(params['DDosProtectionConfig'])
|
2226
|
+
end
|
2227
|
+
end
|
2228
|
+
end
|
2229
|
+
|
2230
|
+
# CreateL4Proxy返回参数结构体
|
2231
|
+
class CreateL4ProxyResponse < TencentCloud::Common::AbstractModel
|
2232
|
+
# @param ProxyId: 四层实例 ID。
|
2233
|
+
# @type ProxyId: String
|
2234
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2235
|
+
# @type RequestId: String
|
2236
|
+
|
2237
|
+
attr_accessor :ProxyId, :RequestId
|
2238
|
+
|
2239
|
+
def initialize(proxyid=nil, requestid=nil)
|
2240
|
+
@ProxyId = proxyid
|
2241
|
+
@RequestId = requestid
|
2242
|
+
end
|
2243
|
+
|
2244
|
+
def deserialize(params)
|
2245
|
+
@ProxyId = params['ProxyId']
|
2246
|
+
@RequestId = params['RequestId']
|
2247
|
+
end
|
2248
|
+
end
|
2249
|
+
|
2250
|
+
# CreateL4ProxyRules请求参数结构体
|
2251
|
+
class CreateL4ProxyRulesRequest < TencentCloud::Common::AbstractModel
|
2252
|
+
# @param ZoneId: 站点 ID。
|
2253
|
+
# @type ZoneId: String
|
2254
|
+
# @param ProxyId: 四层代理实例 ID。
|
2255
|
+
# @type ProxyId: String
|
2256
|
+
# @param L4ProxyRules: 转发规则列表。单次最多支持 200 条转发规则。
|
2257
|
+
# 注意:L4ProxyRule 在此处使用时,Protocol、PortRange、OriginType、OriginValue、OriginPortRange 为必填字段;ClientIPPassThroughMode、SessionPersist、SessionPersistTime、RuleTag 均为选填字段;RuleId、Status 请勿填写。
|
2258
|
+
# @type L4ProxyRules: Array
|
2259
|
+
|
2260
|
+
attr_accessor :ZoneId, :ProxyId, :L4ProxyRules
|
2261
|
+
|
2262
|
+
def initialize(zoneid=nil, proxyid=nil, l4proxyrules=nil)
|
2263
|
+
@ZoneId = zoneid
|
2264
|
+
@ProxyId = proxyid
|
2265
|
+
@L4ProxyRules = l4proxyrules
|
2266
|
+
end
|
2267
|
+
|
2268
|
+
def deserialize(params)
|
2269
|
+
@ZoneId = params['ZoneId']
|
2270
|
+
@ProxyId = params['ProxyId']
|
2271
|
+
unless params['L4ProxyRules'].nil?
|
2272
|
+
@L4ProxyRules = []
|
2273
|
+
params['L4ProxyRules'].each do |i|
|
2274
|
+
l4proxyrule_tmp = L4ProxyRule.new
|
2275
|
+
l4proxyrule_tmp.deserialize(i)
|
2276
|
+
@L4ProxyRules << l4proxyrule_tmp
|
2277
|
+
end
|
2278
|
+
end
|
2279
|
+
end
|
2280
|
+
end
|
2281
|
+
|
2282
|
+
# CreateL4ProxyRules返回参数结构体
|
2283
|
+
class CreateL4ProxyRulesResponse < TencentCloud::Common::AbstractModel
|
2284
|
+
# @param L4ProxyRuleIds: 新增转发规则的 ID,以数组的形式返回。
|
2285
|
+
# @type L4ProxyRuleIds: Array
|
2286
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2287
|
+
# @type RequestId: String
|
2288
|
+
|
2289
|
+
attr_accessor :L4ProxyRuleIds, :RequestId
|
2290
|
+
|
2291
|
+
def initialize(l4proxyruleids=nil, requestid=nil)
|
2292
|
+
@L4ProxyRuleIds = l4proxyruleids
|
2293
|
+
@RequestId = requestid
|
2294
|
+
end
|
2295
|
+
|
2296
|
+
def deserialize(params)
|
2297
|
+
@L4ProxyRuleIds = params['L4ProxyRuleIds']
|
2298
|
+
@RequestId = params['RequestId']
|
2299
|
+
end
|
2300
|
+
end
|
2301
|
+
|
2177
2302
|
# CreateOriginGroup请求参数结构体
|
2178
2303
|
class CreateOriginGroupRequest < TencentCloud::Common::AbstractModel
|
2179
2304
|
# @param ZoneId: 站点 ID
|
@@ -2794,6 +2919,40 @@ module TencentCloud
|
|
2794
2919
|
end
|
2795
2920
|
end
|
2796
2921
|
|
2922
|
+
# 适用于四层代理或 Web 站点服务的独立 DDoS 防护规格配置。
|
2923
|
+
class DDosProtectionConfig < TencentCloud::Common::AbstractModel
|
2924
|
+
# @param LevelMainland: 中国大陆地区独立 DDoS 防护的规格。详情请参考 [独立 DDoS 防护相关费用](https://cloud.tencent.com/document/product/1552/94162)
|
2925
|
+
# <li>PLATFORM:平台默认防护,即不开启独立 DDoS 防护;</li>
|
2926
|
+
# <li>BASE30_MAX300:开启独立 DDoS 防护,提供 30 Gbps 保底防护带宽,可配置最高 300 Gpbs 弹性防护带宽;</li>
|
2927
|
+
# <li>BASE60_MAX600:开启独立 DDoS 防护,提供 60 Gbps 保底防护带宽,可配置最高 600 Gpbs 弹性防护带宽。</li>不填写参数时,取默认值 PLATFORM。
|
2928
|
+
# @type LevelMainland: String
|
2929
|
+
# @param MaxBandwidthMainland: 中国大陆地区独立 DDoS 防护的弹性防护带宽配置。
|
2930
|
+
# 仅当开启中国大陆区域独立 DDos 防护时有效(详见 LevelMainland 参数配置),且取值范围有如下限制:
|
2931
|
+
# <li>开启中国大陆地区独立 DDoS 防护,使用 30 Gbps 保底防护带宽规格时( LevelMainland 参数值为 BASE30_MAX300 ):有效取值范围为 30 至 300,单位为 Gbps;</li>
|
2932
|
+
# <li>开启中国大陆地区独立 DDoS 防护,使用 60 Gbps 保底防护带宽规格时( LevelMainland 参数值为 BASE60_MAX600 ):有效取值范围为 60 至 600,单位为 Gbps;</li>
|
2933
|
+
# <li>使用平台默认防护( LevelMainland 参数值为 PLATFORM ):不支持配置,本参数值无效。</li>
|
2934
|
+
# @type MaxBandwidthMainland: Integer
|
2935
|
+
# @param LevelOverseas: 全球(除中国大陆以外)地区独立 DDoS 防护的规格。
|
2936
|
+
# <li>PLATFORM:平台默认防护,即不开启独立 DDoS 防护;</li>
|
2937
|
+
# <li>ANYCAST300:开启独立 DDoS 防护,提供合计最大 300 Gbps 防护带宽;</li>
|
2938
|
+
# <li>ANYCAST_ALLIN:开启独立 DDoS 防护,使用全部可用防护资源进行防护。</li>不填写参数时,取默认值 PLATFORM。
|
2939
|
+
# @type LevelOverseas: String
|
2940
|
+
|
2941
|
+
attr_accessor :LevelMainland, :MaxBandwidthMainland, :LevelOverseas
|
2942
|
+
|
2943
|
+
def initialize(levelmainland=nil, maxbandwidthmainland=nil, leveloverseas=nil)
|
2944
|
+
@LevelMainland = levelmainland
|
2945
|
+
@MaxBandwidthMainland = maxbandwidthmainland
|
2946
|
+
@LevelOverseas = leveloverseas
|
2947
|
+
end
|
2948
|
+
|
2949
|
+
def deserialize(params)
|
2950
|
+
@LevelMainland = params['LevelMainland']
|
2951
|
+
@MaxBandwidthMainland = params['MaxBandwidthMainland']
|
2952
|
+
@LevelOverseas = params['LevelOverseas']
|
2953
|
+
end
|
2954
|
+
end
|
2955
|
+
|
2797
2956
|
# https 服务端证书配置
|
2798
2957
|
class DefaultServerCertInfo < TencentCloud::Common::AbstractModel
|
2799
2958
|
# @param CertId: 服务器证书 ID。
|
@@ -3016,6 +3175,82 @@ module TencentCloud
|
|
3016
3175
|
end
|
3017
3176
|
end
|
3018
3177
|
|
3178
|
+
# DeleteL4Proxy请求参数结构体
|
3179
|
+
class DeleteL4ProxyRequest < TencentCloud::Common::AbstractModel
|
3180
|
+
# @param ZoneId: 站点 ID。
|
3181
|
+
# @type ZoneId: String
|
3182
|
+
# @param ProxyId: 四层代理实例 ID。
|
3183
|
+
# @type ProxyId: String
|
3184
|
+
|
3185
|
+
attr_accessor :ZoneId, :ProxyId
|
3186
|
+
|
3187
|
+
def initialize(zoneid=nil, proxyid=nil)
|
3188
|
+
@ZoneId = zoneid
|
3189
|
+
@ProxyId = proxyid
|
3190
|
+
end
|
3191
|
+
|
3192
|
+
def deserialize(params)
|
3193
|
+
@ZoneId = params['ZoneId']
|
3194
|
+
@ProxyId = params['ProxyId']
|
3195
|
+
end
|
3196
|
+
end
|
3197
|
+
|
3198
|
+
# DeleteL4Proxy返回参数结构体
|
3199
|
+
class DeleteL4ProxyResponse < TencentCloud::Common::AbstractModel
|
3200
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3201
|
+
# @type RequestId: String
|
3202
|
+
|
3203
|
+
attr_accessor :RequestId
|
3204
|
+
|
3205
|
+
def initialize(requestid=nil)
|
3206
|
+
@RequestId = requestid
|
3207
|
+
end
|
3208
|
+
|
3209
|
+
def deserialize(params)
|
3210
|
+
@RequestId = params['RequestId']
|
3211
|
+
end
|
3212
|
+
end
|
3213
|
+
|
3214
|
+
# DeleteL4ProxyRules请求参数结构体
|
3215
|
+
class DeleteL4ProxyRulesRequest < TencentCloud::Common::AbstractModel
|
3216
|
+
# @param ZoneId: 站点 ID。
|
3217
|
+
# @type ZoneId: String
|
3218
|
+
# @param ProxyId: 四层代理实例 ID。
|
3219
|
+
# @type ProxyId: String
|
3220
|
+
# @param RuleIds: 转发规则 ID 列表。单次最多支持 200 条转发规则。
|
3221
|
+
# @type RuleIds: Array
|
3222
|
+
|
3223
|
+
attr_accessor :ZoneId, :ProxyId, :RuleIds
|
3224
|
+
|
3225
|
+
def initialize(zoneid=nil, proxyid=nil, ruleids=nil)
|
3226
|
+
@ZoneId = zoneid
|
3227
|
+
@ProxyId = proxyid
|
3228
|
+
@RuleIds = ruleids
|
3229
|
+
end
|
3230
|
+
|
3231
|
+
def deserialize(params)
|
3232
|
+
@ZoneId = params['ZoneId']
|
3233
|
+
@ProxyId = params['ProxyId']
|
3234
|
+
@RuleIds = params['RuleIds']
|
3235
|
+
end
|
3236
|
+
end
|
3237
|
+
|
3238
|
+
# DeleteL4ProxyRules返回参数结构体
|
3239
|
+
class DeleteL4ProxyRulesResponse < TencentCloud::Common::AbstractModel
|
3240
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3241
|
+
# @type RequestId: String
|
3242
|
+
|
3243
|
+
attr_accessor :RequestId
|
3244
|
+
|
3245
|
+
def initialize(requestid=nil)
|
3246
|
+
@RequestId = requestid
|
3247
|
+
end
|
3248
|
+
|
3249
|
+
def deserialize(params)
|
3250
|
+
@RequestId = params['RequestId']
|
3251
|
+
end
|
3252
|
+
end
|
3253
|
+
|
3019
3254
|
# DeleteOriginGroup请求参数结构体
|
3020
3255
|
class DeleteOriginGroupRequest < TencentCloud::Common::AbstractModel
|
3021
3256
|
# @param ZoneId: 站点 ID
|
@@ -4351,6 +4586,146 @@ module TencentCloud
|
|
4351
4586
|
end
|
4352
4587
|
end
|
4353
4588
|
|
4589
|
+
# DescribeL4Proxy请求参数结构体
|
4590
|
+
class DescribeL4ProxyRequest < TencentCloud::Common::AbstractModel
|
4591
|
+
# @param ZoneId: 四层代理实例所属站点的 ID。
|
4592
|
+
# @type ZoneId: String
|
4593
|
+
# @param Offset: 分页查询偏移量,不填写时默认为 0。
|
4594
|
+
# @type Offset: Integer
|
4595
|
+
# @param Limit: 分页查询限制数目。默认值:20,最大值:1000。
|
4596
|
+
# @type Limit: Integer
|
4597
|
+
# @param Filters: 过滤条件,Filters.Values 的上限为 20。该参数不填写时,返回当前 zone-id 下所有四层代理实例信息。详细的过滤条件如下:
|
4598
|
+
# <li>proxy-id:按照四层代理实例 ID 进行过滤;</li>
|
4599
|
+
# <li>ddos-protection-type:按照安全防护类型进行过滤。</li>
|
4600
|
+
|
4601
|
+
# @type Filters: Array
|
4602
|
+
|
4603
|
+
attr_accessor :ZoneId, :Offset, :Limit, :Filters
|
4604
|
+
|
4605
|
+
def initialize(zoneid=nil, offset=nil, limit=nil, filters=nil)
|
4606
|
+
@ZoneId = zoneid
|
4607
|
+
@Offset = offset
|
4608
|
+
@Limit = limit
|
4609
|
+
@Filters = filters
|
4610
|
+
end
|
4611
|
+
|
4612
|
+
def deserialize(params)
|
4613
|
+
@ZoneId = params['ZoneId']
|
4614
|
+
@Offset = params['Offset']
|
4615
|
+
@Limit = params['Limit']
|
4616
|
+
unless params['Filters'].nil?
|
4617
|
+
@Filters = []
|
4618
|
+
params['Filters'].each do |i|
|
4619
|
+
filter_tmp = Filter.new
|
4620
|
+
filter_tmp.deserialize(i)
|
4621
|
+
@Filters << filter_tmp
|
4622
|
+
end
|
4623
|
+
end
|
4624
|
+
end
|
4625
|
+
end
|
4626
|
+
|
4627
|
+
# DescribeL4Proxy返回参数结构体
|
4628
|
+
class DescribeL4ProxyResponse < TencentCloud::Common::AbstractModel
|
4629
|
+
# @param TotalCount: 四层代理实例的数量。
|
4630
|
+
# @type TotalCount: Integer
|
4631
|
+
# @param L4Proxies: 四层代理实例列表。
|
4632
|
+
# @type L4Proxies: Array
|
4633
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4634
|
+
# @type RequestId: String
|
4635
|
+
|
4636
|
+
attr_accessor :TotalCount, :L4Proxies, :RequestId
|
4637
|
+
|
4638
|
+
def initialize(totalcount=nil, l4proxies=nil, requestid=nil)
|
4639
|
+
@TotalCount = totalcount
|
4640
|
+
@L4Proxies = l4proxies
|
4641
|
+
@RequestId = requestid
|
4642
|
+
end
|
4643
|
+
|
4644
|
+
def deserialize(params)
|
4645
|
+
@TotalCount = params['TotalCount']
|
4646
|
+
unless params['L4Proxies'].nil?
|
4647
|
+
@L4Proxies = []
|
4648
|
+
params['L4Proxies'].each do |i|
|
4649
|
+
l4proxy_tmp = L4Proxy.new
|
4650
|
+
l4proxy_tmp.deserialize(i)
|
4651
|
+
@L4Proxies << l4proxy_tmp
|
4652
|
+
end
|
4653
|
+
end
|
4654
|
+
@RequestId = params['RequestId']
|
4655
|
+
end
|
4656
|
+
end
|
4657
|
+
|
4658
|
+
# DescribeL4ProxyRules请求参数结构体
|
4659
|
+
class DescribeL4ProxyRulesRequest < TencentCloud::Common::AbstractModel
|
4660
|
+
# @param ZoneId: 站点 ID。
|
4661
|
+
# @type ZoneId: String
|
4662
|
+
# @param ProxyId: 四层代理实例 ID。
|
4663
|
+
# @type ProxyId: String
|
4664
|
+
# @param Offset: 分页查询偏移量,不填写时默认为 0。
|
4665
|
+
# @type Offset: Integer
|
4666
|
+
# @param Limit: 分页查询限制数目。默认值:20,最大值:1000。
|
4667
|
+
# @type Limit: Integer
|
4668
|
+
# @param Filters: 过滤条件,Filters.Values的上限为20。不填写时返回当前四层实例下所有的规则信息,详细的过滤条件如下:
|
4669
|
+
# <li>rule-tag:按照规则标签对四层代理实例下的规则进行过滤。</li>
|
4670
|
+
# @type Filters: Array
|
4671
|
+
|
4672
|
+
attr_accessor :ZoneId, :ProxyId, :Offset, :Limit, :Filters
|
4673
|
+
|
4674
|
+
def initialize(zoneid=nil, proxyid=nil, offset=nil, limit=nil, filters=nil)
|
4675
|
+
@ZoneId = zoneid
|
4676
|
+
@ProxyId = proxyid
|
4677
|
+
@Offset = offset
|
4678
|
+
@Limit = limit
|
4679
|
+
@Filters = filters
|
4680
|
+
end
|
4681
|
+
|
4682
|
+
def deserialize(params)
|
4683
|
+
@ZoneId = params['ZoneId']
|
4684
|
+
@ProxyId = params['ProxyId']
|
4685
|
+
@Offset = params['Offset']
|
4686
|
+
@Limit = params['Limit']
|
4687
|
+
unless params['Filters'].nil?
|
4688
|
+
@Filters = []
|
4689
|
+
params['Filters'].each do |i|
|
4690
|
+
filter_tmp = Filter.new
|
4691
|
+
filter_tmp.deserialize(i)
|
4692
|
+
@Filters << filter_tmp
|
4693
|
+
end
|
4694
|
+
end
|
4695
|
+
end
|
4696
|
+
end
|
4697
|
+
|
4698
|
+
# DescribeL4ProxyRules返回参数结构体
|
4699
|
+
class DescribeL4ProxyRulesResponse < TencentCloud::Common::AbstractModel
|
4700
|
+
# @param TotalCount: 转发规则总数。
|
4701
|
+
# @type TotalCount: Integer
|
4702
|
+
# @param L4ProxyRules: 转发规则列表。
|
4703
|
+
# @type L4ProxyRules: Array
|
4704
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4705
|
+
# @type RequestId: String
|
4706
|
+
|
4707
|
+
attr_accessor :TotalCount, :L4ProxyRules, :RequestId
|
4708
|
+
|
4709
|
+
def initialize(totalcount=nil, l4proxyrules=nil, requestid=nil)
|
4710
|
+
@TotalCount = totalcount
|
4711
|
+
@L4ProxyRules = l4proxyrules
|
4712
|
+
@RequestId = requestid
|
4713
|
+
end
|
4714
|
+
|
4715
|
+
def deserialize(params)
|
4716
|
+
@TotalCount = params['TotalCount']
|
4717
|
+
unless params['L4ProxyRules'].nil?
|
4718
|
+
@L4ProxyRules = []
|
4719
|
+
params['L4ProxyRules'].each do |i|
|
4720
|
+
l4proxyrule_tmp = L4ProxyRule.new
|
4721
|
+
l4proxyrule_tmp.deserialize(i)
|
4722
|
+
@L4ProxyRules << l4proxyrule_tmp
|
4723
|
+
end
|
4724
|
+
end
|
4725
|
+
@RequestId = params['RequestId']
|
4726
|
+
end
|
4727
|
+
end
|
4728
|
+
|
4354
4729
|
# DescribeOriginGroup请求参数结构体
|
4355
4730
|
class DescribeOriginGroupRequest < TencentCloud::Common::AbstractModel
|
4356
4731
|
# @param ZoneId: 站点ID,此参数必填。
|
@@ -6951,6 +7326,178 @@ module TencentCloud
|
|
6951
7326
|
end
|
6952
7327
|
end
|
6953
7328
|
|
7329
|
+
# 四层代理实例。
|
7330
|
+
class L4Proxy < TencentCloud::Common::AbstractModel
|
7331
|
+
# @param ZoneId: 站点 ID。
|
7332
|
+
# @type ZoneId: String
|
7333
|
+
# @param ProxyId: 四层代理实例 ID。
|
7334
|
+
# @type ProxyId: String
|
7335
|
+
# @param ProxyName: 四层代理实例名称。
|
7336
|
+
# @type ProxyName: String
|
7337
|
+
# @param Area: 四层代理实例的加速区域。
|
7338
|
+
# <li>mainland:中国大陆可用区;</li>
|
7339
|
+
# <li>overseas: 全球可用区(不含中国大陆);</li>
|
7340
|
+
# <li>global:全球可用区。</li>
|
7341
|
+
# @type Area: String
|
7342
|
+
# @param Cname: 接入 CNAME。
|
7343
|
+
# @type Cname: String
|
7344
|
+
# @param Ips: 开启固定 IP 后,该值会返回对应的接入 IP;未开启时,该值为空。
|
7345
|
+
# @type Ips: Array
|
7346
|
+
# @param Status: 四层代理实例状态。
|
7347
|
+
# <li>online:已启用;</li>
|
7348
|
+
# <li>offline:已停用;</li>
|
7349
|
+
# <li>progress:部署中;</li>
|
7350
|
+
# <li>stopping:停用中;</li>
|
7351
|
+
# <li>banned:已封禁;</li>
|
7352
|
+
# <li>fail:部署失败/停用失败。</li>
|
7353
|
+
# @type Status: String
|
7354
|
+
# @param Ipv6: 是否开启 IPv6 访问。
|
7355
|
+
# <li>on:开启;</li>
|
7356
|
+
# <li>off:关闭。</li>
|
7357
|
+
# @type Ipv6: String
|
7358
|
+
# @param StaticIp: 是否开启固定 IP。
|
7359
|
+
# <li>on:开启;</li> <li>off:关闭。</li>
|
7360
|
+
# @type StaticIp: String
|
7361
|
+
# @param AccelerateMainland: 是否开启中国大陆网络优化。
|
7362
|
+
# <li>on:开启</li> <li>off:关闭</li>
|
7363
|
+
# @type AccelerateMainland: String
|
7364
|
+
# @param DDosProtectionConfig: 安全防护配置。
|
7365
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7366
|
+
# @type DDosProtectionConfig: :class:`Tencentcloud::Teo.v20220901.models.DDosProtectionConfig`
|
7367
|
+
# @param L4ProxyRuleCount: 四层代理实例下的转发规则数量。
|
7368
|
+
# @type L4ProxyRuleCount: Integer
|
7369
|
+
# @param UpdateTime: 最新变更时间。
|
7370
|
+
# @type UpdateTime: String
|
7371
|
+
|
7372
|
+
attr_accessor :ZoneId, :ProxyId, :ProxyName, :Area, :Cname, :Ips, :Status, :Ipv6, :StaticIp, :AccelerateMainland, :DDosProtectionConfig, :L4ProxyRuleCount, :UpdateTime
|
7373
|
+
|
7374
|
+
def initialize(zoneid=nil, proxyid=nil, proxyname=nil, area=nil, cname=nil, ips=nil, status=nil, ipv6=nil, staticip=nil, acceleratemainland=nil, ddosprotectionconfig=nil, l4proxyrulecount=nil, updatetime=nil)
|
7375
|
+
@ZoneId = zoneid
|
7376
|
+
@ProxyId = proxyid
|
7377
|
+
@ProxyName = proxyname
|
7378
|
+
@Area = area
|
7379
|
+
@Cname = cname
|
7380
|
+
@Ips = ips
|
7381
|
+
@Status = status
|
7382
|
+
@Ipv6 = ipv6
|
7383
|
+
@StaticIp = staticip
|
7384
|
+
@AccelerateMainland = acceleratemainland
|
7385
|
+
@DDosProtectionConfig = ddosprotectionconfig
|
7386
|
+
@L4ProxyRuleCount = l4proxyrulecount
|
7387
|
+
@UpdateTime = updatetime
|
7388
|
+
end
|
7389
|
+
|
7390
|
+
def deserialize(params)
|
7391
|
+
@ZoneId = params['ZoneId']
|
7392
|
+
@ProxyId = params['ProxyId']
|
7393
|
+
@ProxyName = params['ProxyName']
|
7394
|
+
@Area = params['Area']
|
7395
|
+
@Cname = params['Cname']
|
7396
|
+
@Ips = params['Ips']
|
7397
|
+
@Status = params['Status']
|
7398
|
+
@Ipv6 = params['Ipv6']
|
7399
|
+
@StaticIp = params['StaticIp']
|
7400
|
+
@AccelerateMainland = params['AccelerateMainland']
|
7401
|
+
unless params['DDosProtectionConfig'].nil?
|
7402
|
+
@DDosProtectionConfig = DDosProtectionConfig.new
|
7403
|
+
@DDosProtectionConfig.deserialize(params['DDosProtectionConfig'])
|
7404
|
+
end
|
7405
|
+
@L4ProxyRuleCount = params['L4ProxyRuleCount']
|
7406
|
+
@UpdateTime = params['UpdateTime']
|
7407
|
+
end
|
7408
|
+
end
|
7409
|
+
|
7410
|
+
# 四层代理转发规则详情。
|
7411
|
+
class L4ProxyRule < TencentCloud::Common::AbstractModel
|
7412
|
+
# @param RuleId: 转发规则 ID。
|
7413
|
+
# 注意:L4ProxyRule 在 CreateL4ProxyRules 作为入参使用时,该参数请勿填写;在 ModifyL4ProxyRules 作为入参使用时,该参数必填。
|
7414
|
+
# @type RuleId: String
|
7415
|
+
# @param Protocol: 转发协议。取值有:
|
7416
|
+
# <li>TCP:TCP 协议;</li>
|
7417
|
+
# <li>UDP:UDP 协议。</li>
|
7418
|
+
# 注意:L4ProxyRule 在 CreateL4ProxyRules 作为入参使用时,该参数必填;在 ModifyL4ProxyRules 作为入参使用时,该参数选填,不填写时表示不修改。
|
7419
|
+
# @type Protocol: String
|
7420
|
+
# @param PortRange: 转发端口,支持按照以下形式填写:
|
7421
|
+
# <li>单端口,如:80;</li>
|
7422
|
+
# <li>端口段,如:81-85。表示 81、82、83、84、85 五个端口。</li>
|
7423
|
+
# 注意:L4ProxyRule 在 CreateL4ProxyRules 作为入参使用时,该参数必填;在 ModifyL4ProxyRules 作为入参使用时,该参数选填,不填写时表示不修改。
|
7424
|
+
# @type PortRange: Array
|
7425
|
+
# @param OriginType: 源站类型,取值有:
|
7426
|
+
# <li>IP_DOMAIN:IP/域名源站;</li>
|
7427
|
+
# <li>ORIGIN_GROUP:源站组;</li>
|
7428
|
+
# <li>LB:负载均衡,当前仅白名单开放。</li>
|
7429
|
+
# 注意:L4ProxyRule 在 CreateL4ProxyRules 作为入参使用时,该参数必填;在 ModifyL4ProxyRules 作为入参使用时,该参数选填,不填写时表示不修改。
|
7430
|
+
# @type OriginType: String
|
7431
|
+
# @param OriginValue: 源站地址:
|
7432
|
+
# <li>当 OriginType 为 IP_DOMAIN 时,填写 IP 或域名,如 8.8.8.8 或 test.com ;</li>
|
7433
|
+
# <li>当 OriginType 为 ORIGIN_GROUP 时,填写源站组 ID,如 og-537y24vf5b41;</li>
|
7434
|
+
# <li>当 OriginType 为 LB 时,填写负载均衡实例 ID,如 lb-2qwk30xf7s9g。</li>
|
7435
|
+
# 注意:L4ProxyRule 在 CreateL4ProxyRules 作为入参使用时,该参数必填;在 ModifyL4ProxyRules 作为入参使用时,该参数选填,不填写时表示不修改。
|
7436
|
+
# @type OriginValue: Array
|
7437
|
+
# @param OriginPortRange: 源站端口,支持按照以下形式填写:
|
7438
|
+
# <li>单端口,如:80;</li>
|
7439
|
+
# <li>端口段,如:81-85,表示 81、82、83、84、85 五个端口。填写端口段时,则需要与转发端口段长度保持一致,例如转发端口:80-90,则转发端口:90-100。</li>
|
7440
|
+
# 注意:L4ProxyRule 在 CreateL4ProxyRules 作为入参使用时,该参数必填;在 ModifyL4ProxyRules 作为入参使用时,该参数选填,不填写时表示不修改。
|
7441
|
+
# @type OriginPortRange: String
|
7442
|
+
# @param ClientIPPassThroughMode: 传递客户端 IP 的形式,取值有:
|
7443
|
+
# <li>TOA:TOA(仅 Protocol = TCP 时可选);</li>
|
7444
|
+
# <li>PPV1:Proxy Protocol 传递,协议版本 V1(仅 Protocol = TCP 时可选);</li>
|
7445
|
+
# <li>PPV2:Proxy Protocol 传递,协议版本 V2;</li>
|
7446
|
+
# <li>SPP:Simple Proxy Protocol 传递,(仅 Protocol = UDP 时可选);</li>
|
7447
|
+
# <li>OFF:不传递。</li>
|
7448
|
+
# 注意:L4ProxyRule 在 CreateL4ProxyRules 作为入参使用时,该参数选填,不填写时默认为 OFF;在 ModifyL4ProxyRules 作为入参使用时,该参数选填,不填写表示不修改。
|
7449
|
+
# @type ClientIPPassThroughMode: String
|
7450
|
+
# @param SessionPersist: 是否开启会话保持,取值有:
|
7451
|
+
# <li>on:开启;</li>
|
7452
|
+
# <li>off:关闭。</li>
|
7453
|
+
# 注意:L4ProxyRule 在 CreateL4ProxyRules 作为入参使用时,该参数选填,不填写时默认为 off;在 ModifyL4ProxyRules 作为入参使用时,该参数选填,不填写表示不修改。
|
7454
|
+
# @type SessionPersist: String
|
7455
|
+
# @param SessionPersistTime: 会话保持时间,取值范围为 30-3600,单位为秒。
|
7456
|
+
# 注意:L4ProxyRule 在 CreateL4ProxyRules 作为入参使用时,该参数选填,仅当 SessionPersist = on 时,该值才会生效,且当 SessionPersist = on ,该值不填写默认为 3600;在 ModifyL4ProxyRules 作为入参使用时,该参数选填,不填写表示不修改。
|
7457
|
+
# @type SessionPersistTime: Integer
|
7458
|
+
# @param RuleTag: 规则标签。可输入1-50 个任意字符。
|
7459
|
+
# 注意:L4ProxyRule 在 CreateL4ProxyRules 作为入参使用时,该参数选填;在 ModifyL4ProxyRules 作为入参使用时,该参数选填,不填写表示不修改。
|
7460
|
+
# @type RuleTag: String
|
7461
|
+
# @param Status: 规则状态,取值有:
|
7462
|
+
# <li>online:已启用;</li>
|
7463
|
+
# <li>offline:已停用;</li>
|
7464
|
+
# <li>progress:部署中;</li>
|
7465
|
+
# <li>stopping:停用中;</li>
|
7466
|
+
# <li>fail:部署失败/停用失败。</li>
|
7467
|
+
# 注意:L4ProxyRule 在 CreateL4ProxyRules、ModifyL4ProxyRules 作为入参使用时,该参数请勿填写。
|
7468
|
+
# @type Status: String
|
7469
|
+
|
7470
|
+
attr_accessor :RuleId, :Protocol, :PortRange, :OriginType, :OriginValue, :OriginPortRange, :ClientIPPassThroughMode, :SessionPersist, :SessionPersistTime, :RuleTag, :Status
|
7471
|
+
|
7472
|
+
def initialize(ruleid=nil, protocol=nil, portrange=nil, origintype=nil, originvalue=nil, originportrange=nil, clientippassthroughmode=nil, sessionpersist=nil, sessionpersisttime=nil, ruletag=nil, status=nil)
|
7473
|
+
@RuleId = ruleid
|
7474
|
+
@Protocol = protocol
|
7475
|
+
@PortRange = portrange
|
7476
|
+
@OriginType = origintype
|
7477
|
+
@OriginValue = originvalue
|
7478
|
+
@OriginPortRange = originportrange
|
7479
|
+
@ClientIPPassThroughMode = clientippassthroughmode
|
7480
|
+
@SessionPersist = sessionpersist
|
7481
|
+
@SessionPersistTime = sessionpersisttime
|
7482
|
+
@RuleTag = ruletag
|
7483
|
+
@Status = status
|
7484
|
+
end
|
7485
|
+
|
7486
|
+
def deserialize(params)
|
7487
|
+
@RuleId = params['RuleId']
|
7488
|
+
@Protocol = params['Protocol']
|
7489
|
+
@PortRange = params['PortRange']
|
7490
|
+
@OriginType = params['OriginType']
|
7491
|
+
@OriginValue = params['OriginValue']
|
7492
|
+
@OriginPortRange = params['OriginPortRange']
|
7493
|
+
@ClientIPPassThroughMode = params['ClientIPPassThroughMode']
|
7494
|
+
@SessionPersist = params['SessionPersist']
|
7495
|
+
@SessionPersistTime = params['SessionPersistTime']
|
7496
|
+
@RuleTag = params['RuleTag']
|
7497
|
+
@Status = params['Status']
|
7498
|
+
end
|
7499
|
+
end
|
7500
|
+
|
6954
7501
|
# 七层离线日志详细信息。
|
6955
7502
|
class L7OfflineLog < TencentCloud::Common::AbstractModel
|
6956
7503
|
# @param Domain: 离线日志域名。
|
@@ -7539,6 +8086,190 @@ module TencentCloud
|
|
7539
8086
|
end
|
7540
8087
|
end
|
7541
8088
|
|
8089
|
+
# ModifyL4Proxy请求参数结构体
|
8090
|
+
class ModifyL4ProxyRequest < TencentCloud::Common::AbstractModel
|
8091
|
+
# @param ZoneId: 站点 ID。
|
8092
|
+
# @type ZoneId: String
|
8093
|
+
# @param ProxyId: 应用 ID。
|
8094
|
+
# @type ProxyId: String
|
8095
|
+
# @param Ipv6: 是否开启 IPv6 访问。 不填该参数时,表示不修改该配置。该配置仅在部分加速区域和安全防护配置下支持开启,详情请参考 [新建四层代理实例](https://cloud.tencent.com/document/product/1552/90025) 。取值为:
|
8096
|
+
# <li>on:开启;</li>
|
8097
|
+
# <li>off:关闭。</li>
|
8098
|
+
# @type Ipv6: String
|
8099
|
+
# @param AccelerateMainland: 是否开启中国大陆网络优化。不填该参数时,表示不修改该配置。该配置仅在部分加速区域和安全防护配置下支持开启,详情请参考 [新建四层代理实例](https://cloud.tencent.com/document/product/1552/90025) 。取值为:
|
8100
|
+
# <li>on:开启;</li>
|
8101
|
+
# <li>off:关闭。</li>
|
8102
|
+
# @type AccelerateMainland: String
|
8103
|
+
|
8104
|
+
attr_accessor :ZoneId, :ProxyId, :Ipv6, :AccelerateMainland
|
8105
|
+
|
8106
|
+
def initialize(zoneid=nil, proxyid=nil, ipv6=nil, acceleratemainland=nil)
|
8107
|
+
@ZoneId = zoneid
|
8108
|
+
@ProxyId = proxyid
|
8109
|
+
@Ipv6 = ipv6
|
8110
|
+
@AccelerateMainland = acceleratemainland
|
8111
|
+
end
|
8112
|
+
|
8113
|
+
def deserialize(params)
|
8114
|
+
@ZoneId = params['ZoneId']
|
8115
|
+
@ProxyId = params['ProxyId']
|
8116
|
+
@Ipv6 = params['Ipv6']
|
8117
|
+
@AccelerateMainland = params['AccelerateMainland']
|
8118
|
+
end
|
8119
|
+
end
|
8120
|
+
|
8121
|
+
# ModifyL4Proxy返回参数结构体
|
8122
|
+
class ModifyL4ProxyResponse < TencentCloud::Common::AbstractModel
|
8123
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8124
|
+
# @type RequestId: String
|
8125
|
+
|
8126
|
+
attr_accessor :RequestId
|
8127
|
+
|
8128
|
+
def initialize(requestid=nil)
|
8129
|
+
@RequestId = requestid
|
8130
|
+
end
|
8131
|
+
|
8132
|
+
def deserialize(params)
|
8133
|
+
@RequestId = params['RequestId']
|
8134
|
+
end
|
8135
|
+
end
|
8136
|
+
|
8137
|
+
# ModifyL4ProxyRules请求参数结构体
|
8138
|
+
class ModifyL4ProxyRulesRequest < TencentCloud::Common::AbstractModel
|
8139
|
+
# @param ZoneId: 站点 ID。
|
8140
|
+
# @type ZoneId: String
|
8141
|
+
# @param ProxyId: 四层代理实例 ID。
|
8142
|
+
# @type ProxyId: String
|
8143
|
+
# @param L4ProxyRules: 转发规则列表。单次最多支持 200 条转发规则。
|
8144
|
+
# 注意:L4ProxyRule 在此处使用时,RuleId 为必填字段;Protocol、PortRange、OriginType、OriginValue、OriginPortRange、ClientIPPassThroughMode、SessionPersist、SessionPersistTime、RuleTag 均为选填字段,不填写表示不修改;Status 请勿填写。
|
8145
|
+
# @type L4ProxyRules: Array
|
8146
|
+
|
8147
|
+
attr_accessor :ZoneId, :ProxyId, :L4ProxyRules
|
8148
|
+
|
8149
|
+
def initialize(zoneid=nil, proxyid=nil, l4proxyrules=nil)
|
8150
|
+
@ZoneId = zoneid
|
8151
|
+
@ProxyId = proxyid
|
8152
|
+
@L4ProxyRules = l4proxyrules
|
8153
|
+
end
|
8154
|
+
|
8155
|
+
def deserialize(params)
|
8156
|
+
@ZoneId = params['ZoneId']
|
8157
|
+
@ProxyId = params['ProxyId']
|
8158
|
+
unless params['L4ProxyRules'].nil?
|
8159
|
+
@L4ProxyRules = []
|
8160
|
+
params['L4ProxyRules'].each do |i|
|
8161
|
+
l4proxyrule_tmp = L4ProxyRule.new
|
8162
|
+
l4proxyrule_tmp.deserialize(i)
|
8163
|
+
@L4ProxyRules << l4proxyrule_tmp
|
8164
|
+
end
|
8165
|
+
end
|
8166
|
+
end
|
8167
|
+
end
|
8168
|
+
|
8169
|
+
# ModifyL4ProxyRules返回参数结构体
|
8170
|
+
class ModifyL4ProxyRulesResponse < TencentCloud::Common::AbstractModel
|
8171
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8172
|
+
# @type RequestId: String
|
8173
|
+
|
8174
|
+
attr_accessor :RequestId
|
8175
|
+
|
8176
|
+
def initialize(requestid=nil)
|
8177
|
+
@RequestId = requestid
|
8178
|
+
end
|
8179
|
+
|
8180
|
+
def deserialize(params)
|
8181
|
+
@RequestId = params['RequestId']
|
8182
|
+
end
|
8183
|
+
end
|
8184
|
+
|
8185
|
+
# ModifyL4ProxyRulesStatus请求参数结构体
|
8186
|
+
class ModifyL4ProxyRulesStatusRequest < TencentCloud::Common::AbstractModel
|
8187
|
+
# @param ZoneId: 站点 ID。
|
8188
|
+
# @type ZoneId: String
|
8189
|
+
# @param ProxyId: 四层代理实例 ID。
|
8190
|
+
# @type ProxyId: String
|
8191
|
+
# @param RuleIds: 转发规则 ID 列表。单次最多支持 200 条转发规则。
|
8192
|
+
# @type RuleIds: Array
|
8193
|
+
# @param Status: 转发规则状态,取值有:
|
8194
|
+
# <li>online:启用;</li>
|
8195
|
+
# <li>offline:停用。</li>
|
8196
|
+
# @type Status: String
|
8197
|
+
|
8198
|
+
attr_accessor :ZoneId, :ProxyId, :RuleIds, :Status
|
8199
|
+
|
8200
|
+
def initialize(zoneid=nil, proxyid=nil, ruleids=nil, status=nil)
|
8201
|
+
@ZoneId = zoneid
|
8202
|
+
@ProxyId = proxyid
|
8203
|
+
@RuleIds = ruleids
|
8204
|
+
@Status = status
|
8205
|
+
end
|
8206
|
+
|
8207
|
+
def deserialize(params)
|
8208
|
+
@ZoneId = params['ZoneId']
|
8209
|
+
@ProxyId = params['ProxyId']
|
8210
|
+
@RuleIds = params['RuleIds']
|
8211
|
+
@Status = params['Status']
|
8212
|
+
end
|
8213
|
+
end
|
8214
|
+
|
8215
|
+
# ModifyL4ProxyRulesStatus返回参数结构体
|
8216
|
+
class ModifyL4ProxyRulesStatusResponse < TencentCloud::Common::AbstractModel
|
8217
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8218
|
+
# @type RequestId: String
|
8219
|
+
|
8220
|
+
attr_accessor :RequestId
|
8221
|
+
|
8222
|
+
def initialize(requestid=nil)
|
8223
|
+
@RequestId = requestid
|
8224
|
+
end
|
8225
|
+
|
8226
|
+
def deserialize(params)
|
8227
|
+
@RequestId = params['RequestId']
|
8228
|
+
end
|
8229
|
+
end
|
8230
|
+
|
8231
|
+
# ModifyL4ProxyStatus请求参数结构体
|
8232
|
+
class ModifyL4ProxyStatusRequest < TencentCloud::Common::AbstractModel
|
8233
|
+
# @param ZoneId: 站点 ID。
|
8234
|
+
# @type ZoneId: String
|
8235
|
+
# @param ProxyId: 四层代理实例 ID。
|
8236
|
+
# @type ProxyId: String
|
8237
|
+
# @param Status: 四层代理实例状态,取值有:
|
8238
|
+
# <li>online:启用;</li>
|
8239
|
+
# <li>offline:停用。</li>
|
8240
|
+
# @type Status: String
|
8241
|
+
|
8242
|
+
attr_accessor :ZoneId, :ProxyId, :Status
|
8243
|
+
|
8244
|
+
def initialize(zoneid=nil, proxyid=nil, status=nil)
|
8245
|
+
@ZoneId = zoneid
|
8246
|
+
@ProxyId = proxyid
|
8247
|
+
@Status = status
|
8248
|
+
end
|
8249
|
+
|
8250
|
+
def deserialize(params)
|
8251
|
+
@ZoneId = params['ZoneId']
|
8252
|
+
@ProxyId = params['ProxyId']
|
8253
|
+
@Status = params['Status']
|
8254
|
+
end
|
8255
|
+
end
|
8256
|
+
|
8257
|
+
# ModifyL4ProxyStatus返回参数结构体
|
8258
|
+
class ModifyL4ProxyStatusResponse < TencentCloud::Common::AbstractModel
|
8259
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8260
|
+
# @type RequestId: String
|
8261
|
+
|
8262
|
+
attr_accessor :RequestId
|
8263
|
+
|
8264
|
+
def initialize(requestid=nil)
|
8265
|
+
@RequestId = requestid
|
8266
|
+
end
|
8267
|
+
|
8268
|
+
def deserialize(params)
|
8269
|
+
@RequestId = params['RequestId']
|
8270
|
+
end
|
8271
|
+
end
|
8272
|
+
|
7542
8273
|
# ModifyOriginGroup请求参数结构体
|
7543
8274
|
class ModifyOriginGroupRequest < TencentCloud::Common::AbstractModel
|
7544
8275
|
# @param ZoneId: 站点 ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-teo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.757
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -33,11 +33,11 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
-
- lib/
|
36
|
+
- lib/tencentcloud-sdk-teo.rb
|
37
37
|
- lib/v20220901/models.rb
|
38
|
-
- lib/
|
38
|
+
- lib/v20220901/client.rb
|
39
39
|
- lib/v20220106/models.rb
|
40
|
-
- lib/
|
40
|
+
- lib/v20220106/client.rb
|
41
41
|
- lib/VERSION
|
42
42
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
43
43
|
licenses:
|