tencentcloud-sdk-tse 3.0.707 → 3.0.709

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c99750fa3f7c6efa79812577c947ba2f10569bf0
4
- data.tar.gz: fbfd61605218b432fb38286d460f161cd97a186d
3
+ metadata.gz: 7112c364ca6ba02fb53932ff704e8882533664c0
4
+ data.tar.gz: beb9efee797781af4886a105dec963f5a743128a
5
5
  SHA512:
6
- metadata.gz: 99e677199d8025ac1e12a35f76819171ee1d000c527114719f881c68043eb88c4cdac389bda16a704afff49ef7b9faa18d9ebde208ba90e6317df3a4c36ddd59
7
- data.tar.gz: 76ed8e8f10c73f7eba1d5ec513111bc0f09f77ac65e5937b925fb84742c41c6a3e9b5c95d815e316f22db8a99a802a04e6f69b72aefa8418a6c9cc948200440a
6
+ metadata.gz: 5138408e7d39a51ab05a11f4f282216a52a9f7e9d4f11bf4f7550b8924dc51ab2471ea8f698626f469106652fa8e4ba71d4d61fc15a9ecc6c5c4befc933ac08f
7
+ data.tar.gz: 694e8065e6bd28dbdc214e7cd172c4d56bcdc9bd14c437e915d27b163147e38bd90fc25551e3489c1dc37fe4ffad28701ca6defd7e5feaad1802fe62c8bc3ba0
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.707
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
@@ -4517,16 +4597,24 @@ module TencentCloud
4517
4597
  # @param Source: Target的来源
4518
4598
  # 注意:此字段可能返回 null,表示取不到有效值。
4519
4599
  # @type Source: String
4600
+ # @param CvmInstanceId: CVM实例ID
4601
+ # 注意:此字段可能返回 null,表示取不到有效值。
4602
+ # @type CvmInstanceId: String
4603
+ # @param CvmInstanceName: CVM实例名称
4604
+ # 注意:此字段可能返回 null,表示取不到有效值。
4605
+ # @type CvmInstanceName: String
4520
4606
 
4521
- attr_accessor :Host, :Port, :Weight, :Health, :CreatedTime, :Source
4607
+ attr_accessor :Host, :Port, :Weight, :Health, :CreatedTime, :Source, :CvmInstanceId, :CvmInstanceName
4522
4608
 
4523
- def initialize(host=nil, port=nil, weight=nil, health=nil, createdtime=nil, source=nil)
4609
+ def initialize(host=nil, port=nil, weight=nil, health=nil, createdtime=nil, source=nil, cvminstanceid=nil, cvminstancename=nil)
4524
4610
  @Host = host
4525
4611
  @Port = port
4526
4612
  @Weight = weight
4527
4613
  @Health = health
4528
4614
  @CreatedTime = createdtime
4529
4615
  @Source = source
4616
+ @CvmInstanceId = cvminstanceid
4617
+ @CvmInstanceName = cvminstancename
4530
4618
  end
4531
4619
 
4532
4620
  def deserialize(params)
@@ -4536,6 +4624,8 @@ module TencentCloud
4536
4624
  @Health = params['Health']
4537
4625
  @CreatedTime = params['CreatedTime']
4538
4626
  @Source = params['Source']
4627
+ @CvmInstanceId = params['CvmInstanceId']
4628
+ @CvmInstanceName = params['CvmInstanceName']
4539
4629
  end
4540
4630
  end
4541
4631
 
@@ -5482,6 +5572,50 @@ module TencentCloud
5482
5572
  end
5483
5573
  end
5484
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
+
5485
5619
  # 北极星日志主题信息
5486
5620
  class PolarisCLSTopicInfo < TencentCloud::Common::AbstractModel
5487
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.707
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-19 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