tencentcloud-sdk-eb 1.0.245 → 1.0.246

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: 1765cd331b46207f4b14b3e7fd58a2c2f94c4237
4
- data.tar.gz: c2e16cc01b912c45e63efdf3665f2787b18bdb06
3
+ metadata.gz: c4f6a1a9c7375831a7b6ee9a0dc726b615fe45ee
4
+ data.tar.gz: 57b5877ee16a513425a339a1ebc5c1e8945b0bda
5
5
  SHA512:
6
- metadata.gz: 524f5522580ca144f54852950183c34cc7f5ff9ef6672f6764b1b977cfc0c9fd9647f1899e4c1bd183109080cb9b0b6e73a3b4463c98c27fb5906fa6437aa968
7
- data.tar.gz: e144fecdf1787c7b0ab7aaa0c18ef6d5d5377e72479a36e0e73aa0681ed21f265ad50eb792dbfbcf42c71dccef2b656acb82066614a4ec493c52238bb37a78c7
6
+ metadata.gz: a3799171bdb713b7e194ff0482df246a97792b7a50242fc54037d15df6d07839fee4107dc6aada128a757e063e8d2dc68506cb7b69fa53d9c5cbbdf6b95eaaca
7
+ data.tar.gz: f937a98754ce88473d7c9e512d99df58891009b2a5141dd08f96623f5445377ddf030ce49f5de57ca67bb0197ed6f34e3ae0762d298480efc41cedebf2fa3dc4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.245
1
+ 1.0.246
@@ -485,7 +485,7 @@ module TencentCloud
485
485
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
486
486
  end
487
487
 
488
- # 用于Event事件投递
488
+ # (已废弃)用于Event事件投递
489
489
 
490
490
  # @param request: Request instance for PublishEvent.
491
491
  # @type request: :class:`Tencentcloud::eb::V20210416::PublishEventRequest`
@@ -509,6 +509,30 @@ module TencentCloud
509
509
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
510
510
  end
511
511
 
512
+ # 用于Event事件投递
513
+
514
+ # @param request: Request instance for PutEvents.
515
+ # @type request: :class:`Tencentcloud::eb::V20210416::PutEventsRequest`
516
+ # @rtype: :class:`Tencentcloud::eb::V20210416::PutEventsResponse`
517
+ def PutEvents(request)
518
+ body = send_request('PutEvents', request.serialize)
519
+ response = JSON.parse(body)
520
+ if response['Response'].key?('Error') == false
521
+ model = PutEventsResponse.new
522
+ model.deserialize(response['Response'])
523
+ model
524
+ else
525
+ code = response['Response']['Error']['Code']
526
+ message = response['Response']['Error']['Message']
527
+ reqid = response['Response']['RequestId']
528
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
529
+ end
530
+ rescue TencentCloud::Common::TencentCloudSDKException => e
531
+ raise e
532
+ rescue StandardError => e
533
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
+ end
535
+
512
536
  # 更新事件连接器
513
537
 
514
538
  # @param request: Request instance for UpdateConnection.
@@ -1369,6 +1369,49 @@ module TencentCloud
1369
1369
  end
1370
1370
  end
1371
1371
 
1372
+ # PutEvents请求参数结构体
1373
+ class PutEventsRequest < TencentCloud::Common::AbstractModel
1374
+ # @param EventList: 事件列表
1375
+ # @type EventList: Array
1376
+ # @param EventBusId: 事件集ID
1377
+ # @type EventBusId: String
1378
+
1379
+ attr_accessor :EventList, :EventBusId
1380
+
1381
+ def initialize(eventlist=nil, eventbusid=nil)
1382
+ @EventList = eventlist
1383
+ @EventBusId = eventbusid
1384
+ end
1385
+
1386
+ def deserialize(params)
1387
+ unless params['EventList'].nil?
1388
+ @EventList = []
1389
+ params['EventList'].each do |i|
1390
+ event_tmp = Event.new
1391
+ event_tmp.deserialize(i)
1392
+ @EventList << event_tmp
1393
+ end
1394
+ end
1395
+ @EventBusId = params['EventBusId']
1396
+ end
1397
+ end
1398
+
1399
+ # PutEvents返回参数结构体
1400
+ class PutEventsResponse < TencentCloud::Common::AbstractModel
1401
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1402
+ # @type RequestId: String
1403
+
1404
+ attr_accessor :RequestId
1405
+
1406
+ def initialize(requestid=nil)
1407
+ @RequestId = requestid
1408
+ end
1409
+
1410
+ def deserialize(params)
1411
+ @RequestId = params['RequestId']
1412
+ end
1413
+ end
1414
+
1372
1415
  # 用来描述一个ckafka投递目标的重试策略
1373
1416
  class RetryPolicy < TencentCloud::Common::AbstractModel
1374
1417
  # @param RetryInterval: 重试间隔 单位:秒
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-eb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.245
4
+ version: 1.0.246
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-19 00:00:00.000000000 Z
11
+ date: 2022-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common