tencentcloud-sdk-tse 3.0.708 → 3.0.709

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ba7e6d82fb070a47badbb1819cebefaf266caeb
4
- data.tar.gz: d0e0dab0e5e0cea4ca66cc66371d496f74b1c222
3
+ metadata.gz: 7112c364ca6ba02fb53932ff704e8882533664c0
4
+ data.tar.gz: beb9efee797781af4886a105dec963f5a743128a
5
5
  SHA512:
6
- metadata.gz: 225eda8f7c3726bb100c5f1f63996fd112ed89357cb9f55d76674b4cc353479cb40d42a702dcb2da4ddd164ced5ceb04e1d997df8c73bea309b78e533d1a8172
7
- data.tar.gz: 4bd716c4e33525cda3fb574eecec030c62ffadf6e15201c6b99870ce4ffc75dbaa03ac0ad1f4e66ecd3952b4bf33886c6558ae3b4cc694f0ae490e94dde05be2
6
+ metadata.gz: 5138408e7d39a51ab05a11f4f282216a52a9f7e9d4f11bf4f7550b8924dc51ab2471ea8f698626f469106652fa8e4ba71d4d61fc15a9ecc6c5c4befc933ac08f
7
+ data.tar.gz: 694e8065e6bd28dbdc214e7cd172c4d56bcdc9bd14c437e915d27b163147e38bd90fc25551e3489c1dc37fe4ffad28701ca6defd7e5feaad1802fe62c8bc3ba0
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.708
1
+ 3.0.709
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 关闭 WAF 防护
33
+
34
+ # @param request: Request instance for CloseWafProtection.
35
+ # @type request: :class:`Tencentcloud::tse::V20201207::CloseWafProtectionRequest`
36
+ # @rtype: :class:`Tencentcloud::tse::V20201207::CloseWafProtectionResponse`
37
+ def CloseWafProtection(request)
38
+ body = send_request('CloseWafProtection', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CloseWafProtectionResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
32
56
  # 创建云原生API网关实例
33
57
 
34
58
  # @param request: Request instance for CreateCloudNativeAPIGateway.
@@ -245,6 +269,30 @@ module TencentCloud
245
269
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
270
  end
247
271
 
272
+ # 新建 WAF 防护域名
273
+
274
+ # @param request: Request instance for CreateWafDomains.
275
+ # @type request: :class:`Tencentcloud::tse::V20201207::CreateWafDomainsRequest`
276
+ # @rtype: :class:`Tencentcloud::tse::V20201207::CreateWafDomainsResponse`
277
+ def CreateWafDomains(request)
278
+ body = send_request('CreateWafDomains', request.serialize)
279
+ response = JSON.parse(body)
280
+ if response['Response'].key?('Error') == false
281
+ model = CreateWafDomainsResponse.new
282
+ model.deserialize(response['Response'])
283
+ model
284
+ else
285
+ code = response['Response']['Error']['Code']
286
+ message = response['Response']['Error']['Message']
287
+ reqid = response['Response']['RequestId']
288
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
289
+ end
290
+ rescue TencentCloud::Common::TencentCloudSDKException => e
291
+ raise e
292
+ rescue StandardError => e
293
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
+ end
295
+
248
296
  # 删除云原生API网关实例
249
297
 
250
298
  # @param request: Request instance for DeleteCloudNativeAPIGateway.
@@ -1205,6 +1253,30 @@ module TencentCloud
1205
1253
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1206
1254
  end
1207
1255
 
1256
+ # 开启 WAF 防护
1257
+
1258
+ # @param request: Request instance for OpenWafProtection.
1259
+ # @type request: :class:`Tencentcloud::tse::V20201207::OpenWafProtectionRequest`
1260
+ # @rtype: :class:`Tencentcloud::tse::V20201207::OpenWafProtectionResponse`
1261
+ def OpenWafProtection(request)
1262
+ body = send_request('OpenWafProtection', request.serialize)
1263
+ response = JSON.parse(body)
1264
+ if response['Response'].key?('Error') == false
1265
+ model = OpenWafProtectionResponse.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
+
1208
1280
  # 修改云原生网关证书信息
1209
1281
 
1210
1282
  # @param request: Request instance for UpdateCloudNativeAPIGatewayCertificateInfo.
@@ -224,6 +224,50 @@ module TencentCloud
224
224
  end
225
225
  end
226
226
 
227
+ # CloseWafProtection请求参数结构体
228
+ class CloseWafProtectionRequest < TencentCloud::Common::AbstractModel
229
+ # @param GatewayId: 网关ID
230
+ # @type GatewayId: String
231
+ # @param Type: 防护资源的类型。
232
+ # - Global 实例
233
+ # - Service 服务
234
+ # - Route 路由
235
+ # - Object 对象
236
+ # @type Type: String
237
+ # @param List: 当资源类型 Type 是 Service 或 Route 的时候,传入的服务或路由的列表
238
+ # @type List: Array
239
+
240
+ attr_accessor :GatewayId, :Type, :List
241
+
242
+ def initialize(gatewayid=nil, type=nil, list=nil)
243
+ @GatewayId = gatewayid
244
+ @Type = type
245
+ @List = list
246
+ end
247
+
248
+ def deserialize(params)
249
+ @GatewayId = params['GatewayId']
250
+ @Type = params['Type']
251
+ @List = params['List']
252
+ end
253
+ end
254
+
255
+ # CloseWafProtection返回参数结构体
256
+ class CloseWafProtectionResponse < TencentCloud::Common::AbstractModel
257
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
258
+ # @type RequestId: String
259
+
260
+ attr_accessor :RequestId
261
+
262
+ def initialize(requestid=nil)
263
+ @RequestId = requestid
264
+ end
265
+
266
+ def deserialize(params)
267
+ @RequestId = params['RequestId']
268
+ end
269
+ end
270
+
227
271
  # 灰度规则列表
228
272
  class CloudAPIGatewayCanaryRuleList < TencentCloud::Common::AbstractModel
229
273
  # @param CanaryRuleList: 灰度规则
@@ -1753,6 +1797,42 @@ module TencentCloud
1753
1797
  end
1754
1798
  end
1755
1799
 
1800
+ # CreateWafDomains请求参数结构体
1801
+ class CreateWafDomainsRequest < TencentCloud::Common::AbstractModel
1802
+ # @param GatewayId: 网关ID
1803
+ # @type GatewayId: String
1804
+ # @param Domains: WAF 防护域名列表
1805
+ # @type Domains: Array
1806
+
1807
+ attr_accessor :GatewayId, :Domains
1808
+
1809
+ def initialize(gatewayid=nil, domains=nil)
1810
+ @GatewayId = gatewayid
1811
+ @Domains = domains
1812
+ end
1813
+
1814
+ def deserialize(params)
1815
+ @GatewayId = params['GatewayId']
1816
+ @Domains = params['Domains']
1817
+ end
1818
+ end
1819
+
1820
+ # CreateWafDomains返回参数结构体
1821
+ class CreateWafDomainsResponse < TencentCloud::Common::AbstractModel
1822
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1823
+ # @type RequestId: String
1824
+
1825
+ attr_accessor :RequestId
1826
+
1827
+ def initialize(requestid=nil)
1828
+ @RequestId = requestid
1829
+ end
1830
+
1831
+ def deserialize(params)
1832
+ @RequestId = params['RequestId']
1833
+ end
1834
+ end
1835
+
1756
1836
  # DeleteCloudNativeAPIGatewayCanaryRule请求参数结构体
1757
1837
  class DeleteCloudNativeAPIGatewayCanaryRuleRequest < TencentCloud::Common::AbstractModel
1758
1838
  # @param GatewayId: 网关 ID
@@ -5492,6 +5572,50 @@ module TencentCloud
5492
5572
  end
5493
5573
  end
5494
5574
 
5575
+ # OpenWafProtection请求参数结构体
5576
+ class OpenWafProtectionRequest < TencentCloud::Common::AbstractModel
5577
+ # @param GatewayId: 网关ID
5578
+ # @type GatewayId: String
5579
+ # @param Type: 防护资源的类型。
5580
+ # - Global 实例
5581
+ # - Service 服务
5582
+ # - Route 路由
5583
+ # - Object 对象(接口暂不支持)
5584
+ # @type Type: String
5585
+ # @param List: 当资源类型 Type 是 Service 或 Route 的时候,传入的服务或路由的列表
5586
+ # @type List: Array
5587
+
5588
+ attr_accessor :GatewayId, :Type, :List
5589
+
5590
+ def initialize(gatewayid=nil, type=nil, list=nil)
5591
+ @GatewayId = gatewayid
5592
+ @Type = type
5593
+ @List = list
5594
+ end
5595
+
5596
+ def deserialize(params)
5597
+ @GatewayId = params['GatewayId']
5598
+ @Type = params['Type']
5599
+ @List = params['List']
5600
+ end
5601
+ end
5602
+
5603
+ # OpenWafProtection返回参数结构体
5604
+ class OpenWafProtectionResponse < TencentCloud::Common::AbstractModel
5605
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5606
+ # @type RequestId: String
5607
+
5608
+ attr_accessor :RequestId
5609
+
5610
+ def initialize(requestid=nil)
5611
+ @RequestId = requestid
5612
+ end
5613
+
5614
+ def deserialize(params)
5615
+ @RequestId = params['RequestId']
5616
+ end
5617
+ end
5618
+
5495
5619
  # 北极星日志主题信息
5496
5620
  class PolarisCLSTopicInfo < TencentCloud::Common::AbstractModel
5497
5621
  # @param LogSetId: 日志集ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tse
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.708
4
+ version: 3.0.709
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-20 00:00:00.000000000 Z
11
+ date: 2023-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common