tencentcloud-sdk-ckafka 3.0.533 → 3.0.534

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: b81a7317a6ac3f708314b5d22917556e66a51d9f
4
- data.tar.gz: 2c235ca8da9ae2edb5ea24c0b8dcd94ab74de8ef
3
+ metadata.gz: e935a26aca742f8b7a8331f397e540342bdb4a34
4
+ data.tar.gz: 1e8d13562f6ceb4f4e0bd15754b3fe323d32c012
5
5
  SHA512:
6
- metadata.gz: 5a81cbb9d5881263c4b651a178a6305fc7441097565499c87316c9e5ce07268a5e3efa75b47f2c8d181d925c06c921697af46f95968fcbdce079be463212a6f1
7
- data.tar.gz: eaf22b09744b2a1086f0843c862a0db9232324c6dd61bee7da16986e92dcaa9b4e09f4ed66c4bb4e712c5b64a9ff4ab2d800707f645b24fba38c34d6413d2912
6
+ metadata.gz: 53a393e4e83f2f0c4f8d439aed133d768cbbcea8eee46ac68925dcf6724344c731a81b1c7997a61188b6a61ee2b23af40b0367aa9a3d49c7031830975ef3c90e
7
+ data.tar.gz: 16e0aa4d86d446ada6db2d0896e2441d4e132d8db825fb4dd82f38318b1c0492364af6bc7cb948ef6c14a3e373bf00380b56a78fe92448454203a3c358918c9f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.533
1
+ 3.0.534
@@ -293,6 +293,30 @@ module TencentCloud
293
293
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
294
  end
295
295
 
296
+ # 创建Datahub主题
297
+
298
+ # @param request: Request instance for CreateDatahubTopic.
299
+ # @type request: :class:`Tencentcloud::ckafka::V20190819::CreateDatahubTopicRequest`
300
+ # @rtype: :class:`Tencentcloud::ckafka::V20190819::CreateDatahubTopicResponse`
301
+ def CreateDatahubTopic(request)
302
+ body = send_request('CreateDatahubTopic', request.serialize)
303
+ response = JSON.parse(body)
304
+ if response['Response'].key?('Error') == false
305
+ model = CreateDatahubTopicResponse.new
306
+ model.deserialize(response['Response'])
307
+ model
308
+ else
309
+ code = response['Response']['Error']['Code']
310
+ message = response['Response']['Error']['Message']
311
+ reqid = response['Response']['RequestId']
312
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
313
+ end
314
+ rescue TencentCloud::Common::TencentCloudSDKException => e
315
+ raise e
316
+ rescue StandardError => e
317
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
+ end
319
+
296
320
  # 创建按量计费实例
297
321
 
298
322
  # @param request: Request instance for CreateInstancePost.
@@ -920,15 +920,12 @@ module TencentCloud
920
920
  # Cls类型入参
921
921
  class ClsParam < TencentCloud::Common::AbstractModel
922
922
  # @param DecodeJson: 生产的信息是否为json格式
923
- # 注意:此字段可能返回 null,表示取不到有效值。
924
923
  # @type DecodeJson: Boolean
925
924
  # @param Resource: cls日志主题id
926
925
  # @type Resource: String
927
926
  # @param LogSet: cls日志集id
928
- # 注意:此字段可能返回 null,表示取不到有效值。
929
927
  # @type LogSet: String
930
928
  # @param ContentKey: 当DecodeJson为false时必填
931
- # 注意:此字段可能返回 null,表示取不到有效值。
932
929
  # @type ContentKey: String
933
930
  # @param TimeField: 指定消息中的某字段内容作为cls日志的时间。
934
931
  # 字段内容格式需要是秒级时间戳
@@ -1478,10 +1475,12 @@ module TencentCloud
1478
1475
  # @type SQLServerConnectParam: :class:`Tencentcloud::Ckafka.v20190819.models.SQLServerConnectParam`
1479
1476
  # @param DorisConnectParam: Doris 配置,Type为 DORIS 时必填
1480
1477
  # @type DorisConnectParam: :class:`Tencentcloud::Ckafka.v20190819.models.DorisConnectParam`
1478
+ # @param KafkaConnectParam: Kafka配置,Type为 KAFKA 时必填
1479
+ # @type KafkaConnectParam: :class:`Tencentcloud::Ckafka.v20190819.models.KafkaConnectParam`
1481
1480
 
1482
- attr_accessor :ResourceName, :Type, :Description, :DtsConnectParam, :MongoDBConnectParam, :EsConnectParam, :ClickHouseConnectParam, :MySQLConnectParam, :PostgreSQLConnectParam, :MariaDBConnectParam, :SQLServerConnectParam, :DorisConnectParam
1481
+ attr_accessor :ResourceName, :Type, :Description, :DtsConnectParam, :MongoDBConnectParam, :EsConnectParam, :ClickHouseConnectParam, :MySQLConnectParam, :PostgreSQLConnectParam, :MariaDBConnectParam, :SQLServerConnectParam, :DorisConnectParam, :KafkaConnectParam
1483
1482
 
1484
- def initialize(resourcename=nil, type=nil, description=nil, dtsconnectparam=nil, mongodbconnectparam=nil, esconnectparam=nil, clickhouseconnectparam=nil, mysqlconnectparam=nil, postgresqlconnectparam=nil, mariadbconnectparam=nil, sqlserverconnectparam=nil, dorisconnectparam=nil)
1483
+ def initialize(resourcename=nil, type=nil, description=nil, dtsconnectparam=nil, mongodbconnectparam=nil, esconnectparam=nil, clickhouseconnectparam=nil, mysqlconnectparam=nil, postgresqlconnectparam=nil, mariadbconnectparam=nil, sqlserverconnectparam=nil, dorisconnectparam=nil, kafkaconnectparam=nil)
1485
1484
  @ResourceName = resourcename
1486
1485
  @Type = type
1487
1486
  @Description = description
@@ -1494,6 +1493,7 @@ module TencentCloud
1494
1493
  @MariaDBConnectParam = mariadbconnectparam
1495
1494
  @SQLServerConnectParam = sqlserverconnectparam
1496
1495
  @DorisConnectParam = dorisconnectparam
1496
+ @KafkaConnectParam = kafkaconnectparam
1497
1497
  end
1498
1498
 
1499
1499
  def deserialize(params)
@@ -1536,6 +1536,10 @@ module TencentCloud
1536
1536
  @DorisConnectParam = DorisConnectParam.new
1537
1537
  @DorisConnectParam.deserialize(params['DorisConnectParam'])
1538
1538
  end
1539
+ unless params['KafkaConnectParam'].nil?
1540
+ @KafkaConnectParam = KafkaConnectParam.new
1541
+ @KafkaConnectParam.deserialize(params['KafkaConnectParam'])
1542
+ end
1539
1543
  end
1540
1544
  end
1541
1545
 
@@ -1731,6 +1735,68 @@ module TencentCloud
1731
1735
  end
1732
1736
  end
1733
1737
 
1738
+ # CreateDatahubTopic请求参数结构体
1739
+ class CreateDatahubTopicRequest < TencentCloud::Common::AbstractModel
1740
+ # @param Name: 名称,是一个不超过 128 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
1741
+ # @type Name: String
1742
+ # @param PartitionNum: Partition个数,大于0
1743
+ # @type PartitionNum: Integer
1744
+ # @param RetentionMs: 消息保留时间,单位ms,当前最小值为60000ms
1745
+ # @type RetentionMs: Integer
1746
+ # @param Note: 主题备注,是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
1747
+ # @type Note: String
1748
+ # @param Tags: 标签列表
1749
+ # @type Tags: Array
1750
+
1751
+ attr_accessor :Name, :PartitionNum, :RetentionMs, :Note, :Tags
1752
+
1753
+ def initialize(name=nil, partitionnum=nil, retentionms=nil, note=nil, tags=nil)
1754
+ @Name = name
1755
+ @PartitionNum = partitionnum
1756
+ @RetentionMs = retentionms
1757
+ @Note = note
1758
+ @Tags = tags
1759
+ end
1760
+
1761
+ def deserialize(params)
1762
+ @Name = params['Name']
1763
+ @PartitionNum = params['PartitionNum']
1764
+ @RetentionMs = params['RetentionMs']
1765
+ @Note = params['Note']
1766
+ unless params['Tags'].nil?
1767
+ @Tags = []
1768
+ params['Tags'].each do |i|
1769
+ tag_tmp = Tag.new
1770
+ tag_tmp.deserialize(i)
1771
+ @Tags << tag_tmp
1772
+ end
1773
+ end
1774
+ end
1775
+ end
1776
+
1777
+ # CreateDatahubTopic返回参数结构体
1778
+ class CreateDatahubTopicResponse < TencentCloud::Common::AbstractModel
1779
+ # @param Result: 返回创建结果
1780
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.DatahubTopicResp`
1781
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1782
+ # @type RequestId: String
1783
+
1784
+ attr_accessor :Result, :RequestId
1785
+
1786
+ def initialize(result=nil, requestid=nil)
1787
+ @Result = result
1788
+ @RequestId = requestid
1789
+ end
1790
+
1791
+ def deserialize(params)
1792
+ unless params['Result'].nil?
1793
+ @Result = DatahubTopicResp.new
1794
+ @Result.deserialize(params['Result'])
1795
+ end
1796
+ @RequestId = params['RequestId']
1797
+ end
1798
+ end
1799
+
1734
1800
  # CreateInstancePost请求参数结构体
1735
1801
  class CreateInstancePostRequest < TencentCloud::Common::AbstractModel
1736
1802
  # @param InstanceName: 实例名称,是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
@@ -2727,6 +2793,22 @@ module TencentCloud
2727
2793
  end
2728
2794
  end
2729
2795
 
2796
+ # Datahub Topic 响应
2797
+ class DatahubTopicResp < TencentCloud::Common::AbstractModel
2798
+ # @param TopicName: Topic名称
2799
+ # @type TopicName: String
2800
+
2801
+ attr_accessor :TopicName
2802
+
2803
+ def initialize(topicname=nil)
2804
+ @TopicName = topicname
2805
+ end
2806
+
2807
+ def deserialize(params)
2808
+ @TopicName = params['TopicName']
2809
+ end
2810
+ end
2811
+
2730
2812
  # 数据处理——Value处理参数——转换时间格式参数
2731
2813
  class DateParam < TencentCloud::Common::AbstractModel
2732
2814
  # @param Format: 时间格式
@@ -3499,10 +3581,13 @@ module TencentCloud
3499
3581
  # @param DorisConnectParam: Doris 配置,Type 为 DORIS 时返回
3500
3582
  # 注意:此字段可能返回 null,表示取不到有效值。
3501
3583
  # @type DorisConnectParam: :class:`Tencentcloud::Ckafka.v20190819.models.DorisConnectParam`
3584
+ # @param KafkaConnectParam: Kafka配置,Type 为 KAFKA 时返回
3585
+ # 注意:此字段可能返回 null,表示取不到有效值。
3586
+ # @type KafkaConnectParam: :class:`Tencentcloud::Ckafka.v20190819.models.KafkaConnectParam`
3502
3587
 
3503
- attr_accessor :ResourceId, :ResourceName, :Description, :Type, :Status, :CreateTime, :ErrorMessage, :CurrentStep, :DatahubTaskCount, :DtsConnectParam, :MongoDBConnectParam, :EsConnectParam, :ClickHouseConnectParam, :MySQLConnectParam, :PostgreSQLConnectParam, :MariaDBConnectParam, :SQLServerConnectParam, :CtsdbConnectParam, :DorisConnectParam
3588
+ attr_accessor :ResourceId, :ResourceName, :Description, :Type, :Status, :CreateTime, :ErrorMessage, :CurrentStep, :DatahubTaskCount, :DtsConnectParam, :MongoDBConnectParam, :EsConnectParam, :ClickHouseConnectParam, :MySQLConnectParam, :PostgreSQLConnectParam, :MariaDBConnectParam, :SQLServerConnectParam, :CtsdbConnectParam, :DorisConnectParam, :KafkaConnectParam
3504
3589
 
3505
- def initialize(resourceid=nil, resourcename=nil, description=nil, type=nil, status=nil, createtime=nil, errormessage=nil, currentstep=nil, datahubtaskcount=nil, dtsconnectparam=nil, mongodbconnectparam=nil, esconnectparam=nil, clickhouseconnectparam=nil, mysqlconnectparam=nil, postgresqlconnectparam=nil, mariadbconnectparam=nil, sqlserverconnectparam=nil, ctsdbconnectparam=nil, dorisconnectparam=nil)
3590
+ def initialize(resourceid=nil, resourcename=nil, description=nil, type=nil, status=nil, createtime=nil, errormessage=nil, currentstep=nil, datahubtaskcount=nil, dtsconnectparam=nil, mongodbconnectparam=nil, esconnectparam=nil, clickhouseconnectparam=nil, mysqlconnectparam=nil, postgresqlconnectparam=nil, mariadbconnectparam=nil, sqlserverconnectparam=nil, ctsdbconnectparam=nil, dorisconnectparam=nil, kafkaconnectparam=nil)
3506
3591
  @ResourceId = resourceid
3507
3592
  @ResourceName = resourcename
3508
3593
  @Description = description
@@ -3522,6 +3607,7 @@ module TencentCloud
3522
3607
  @SQLServerConnectParam = sqlserverconnectparam
3523
3608
  @CtsdbConnectParam = ctsdbconnectparam
3524
3609
  @DorisConnectParam = dorisconnectparam
3610
+ @KafkaConnectParam = kafkaconnectparam
3525
3611
  end
3526
3612
 
3527
3613
  def deserialize(params)
@@ -3574,6 +3660,10 @@ module TencentCloud
3574
3660
  @DorisConnectParam = DorisConnectParam.new
3575
3661
  @DorisConnectParam.deserialize(params['DorisConnectParam'])
3576
3662
  end
3663
+ unless params['KafkaConnectParam'].nil?
3664
+ @KafkaConnectParam = KafkaConnectParam.new
3665
+ @KafkaConnectParam.deserialize(params['KafkaConnectParam'])
3666
+ end
3577
3667
  end
3578
3668
  end
3579
3669
 
@@ -3652,10 +3742,13 @@ module TencentCloud
3652
3742
  # @param DorisConnectParam: Doris 配置,Type 为 DORIS 时返回
3653
3743
  # 注意:此字段可能返回 null,表示取不到有效值。
3654
3744
  # @type DorisConnectParam: :class:`Tencentcloud::Ckafka.v20190819.models.DorisConnectParam`
3745
+ # @param KafkaConnectParam: Kafka配置,Type 为 KAFKA 时返回
3746
+ # 注意:此字段可能返回 null,表示取不到有效值。
3747
+ # @type KafkaConnectParam: :class:`Tencentcloud::Ckafka.v20190819.models.KafkaConnectParam`
3655
3748
 
3656
- attr_accessor :ResourceId, :ResourceName, :Description, :Type, :Status, :CreateTime, :ErrorMessage, :CurrentStep, :StepList, :MySQLConnectParam, :PostgreSQLConnectParam, :DtsConnectParam, :MongoDBConnectParam, :EsConnectParam, :ClickHouseConnectParam, :MariaDBConnectParam, :SQLServerConnectParam, :CtsdbConnectParam, :DorisConnectParam
3749
+ attr_accessor :ResourceId, :ResourceName, :Description, :Type, :Status, :CreateTime, :ErrorMessage, :CurrentStep, :StepList, :MySQLConnectParam, :PostgreSQLConnectParam, :DtsConnectParam, :MongoDBConnectParam, :EsConnectParam, :ClickHouseConnectParam, :MariaDBConnectParam, :SQLServerConnectParam, :CtsdbConnectParam, :DorisConnectParam, :KafkaConnectParam
3657
3750
 
3658
- def initialize(resourceid=nil, resourcename=nil, description=nil, type=nil, status=nil, createtime=nil, errormessage=nil, currentstep=nil, steplist=nil, mysqlconnectparam=nil, postgresqlconnectparam=nil, dtsconnectparam=nil, mongodbconnectparam=nil, esconnectparam=nil, clickhouseconnectparam=nil, mariadbconnectparam=nil, sqlserverconnectparam=nil, ctsdbconnectparam=nil, dorisconnectparam=nil)
3751
+ def initialize(resourceid=nil, resourcename=nil, description=nil, type=nil, status=nil, createtime=nil, errormessage=nil, currentstep=nil, steplist=nil, mysqlconnectparam=nil, postgresqlconnectparam=nil, dtsconnectparam=nil, mongodbconnectparam=nil, esconnectparam=nil, clickhouseconnectparam=nil, mariadbconnectparam=nil, sqlserverconnectparam=nil, ctsdbconnectparam=nil, dorisconnectparam=nil, kafkaconnectparam=nil)
3659
3752
  @ResourceId = resourceid
3660
3753
  @ResourceName = resourcename
3661
3754
  @Description = description
@@ -3675,6 +3768,7 @@ module TencentCloud
3675
3768
  @SQLServerConnectParam = sqlserverconnectparam
3676
3769
  @CtsdbConnectParam = ctsdbconnectparam
3677
3770
  @DorisConnectParam = dorisconnectparam
3771
+ @KafkaConnectParam = kafkaconnectparam
3678
3772
  end
3679
3773
 
3680
3774
  def deserialize(params)
@@ -3727,6 +3821,10 @@ module TencentCloud
3727
3821
  @DorisConnectParam = DorisConnectParam.new
3728
3822
  @DorisConnectParam.deserialize(params['DorisConnectParam'])
3729
3823
  end
3824
+ unless params['KafkaConnectParam'].nil?
3825
+ @KafkaConnectParam = KafkaConnectParam.new
3826
+ @KafkaConnectParam.deserialize(params['KafkaConnectParam'])
3827
+ end
3730
3828
  end
3731
3829
  end
3732
3830
 
@@ -5374,25 +5472,18 @@ module TencentCloud
5374
5472
  # Dts修改连接源参数
5375
5473
  class DtsModifyConnectParam < TencentCloud::Common::AbstractModel
5376
5474
  # @param Resource: Dts实例Id【不支持修改】
5377
- # 注意:此字段可能返回 null,表示取不到有效值。
5378
5475
  # @type Resource: String
5379
5476
  # @param Port: Dts的连接port【不支持修改】
5380
- # 注意:此字段可能返回 null,表示取不到有效值。
5381
5477
  # @type Port: Integer
5382
5478
  # @param GroupId: Dts消费分组的Id
5383
- # 注意:此字段可能返回 null,表示取不到有效值。
5384
5479
  # @type GroupId: String
5385
5480
  # @param UserName: Dts消费分组的账号
5386
- # 注意:此字段可能返回 null,表示取不到有效值。
5387
5481
  # @type UserName: String
5388
5482
  # @param Password: Dts消费分组的密码
5389
- # 注意:此字段可能返回 null,表示取不到有效值。
5390
5483
  # @type Password: String
5391
5484
  # @param IsUpdate: 是否更新到关联的Datahub任务,默认为true
5392
- # 注意:此字段可能返回 null,表示取不到有效值。
5393
5485
  # @type IsUpdate: Boolean
5394
5486
  # @param Topic: Dts订阅的topic【不支持修改】
5395
- # 注意:此字段可能返回 null,表示取不到有效值。
5396
5487
  # @type Topic: String
5397
5488
 
5398
5489
  attr_accessor :Resource, :Port, :GroupId, :UserName, :Password, :IsUpdate, :Topic
@@ -7320,6 +7411,43 @@ module TencentCloud
7320
7411
  end
7321
7412
  end
7322
7413
 
7414
+ # Kafka连接源参数
7415
+ class KafkaConnectParam < TencentCloud::Common::AbstractModel
7416
+ # @param Resource: Kafka连接源的实例资源, 非自建时必填
7417
+ # 注意:此字段可能返回 null,表示取不到有效值。
7418
+ # @type Resource: String
7419
+ # @param SelfBuilt: 是否为自建集群
7420
+ # 注意:此字段可能返回 null,表示取不到有效值。
7421
+ # @type SelfBuilt: Boolean
7422
+ # @param IsUpdate: 是否更新到关联的Dip任务
7423
+ # 注意:此字段可能返回 null,表示取不到有效值。
7424
+ # @type IsUpdate: Boolean
7425
+ # @param BrokerAddress: Kafka连接的broker地址, 自建时必填
7426
+ # 注意:此字段可能返回 null,表示取不到有效值。
7427
+ # @type BrokerAddress: String
7428
+ # @param Region: CKafka连接源的实例资源地域, 跨地域时必填
7429
+ # 注意:此字段可能返回 null,表示取不到有效值。
7430
+ # @type Region: String
7431
+
7432
+ attr_accessor :Resource, :SelfBuilt, :IsUpdate, :BrokerAddress, :Region
7433
+
7434
+ def initialize(resource=nil, selfbuilt=nil, isupdate=nil, brokeraddress=nil, region=nil)
7435
+ @Resource = resource
7436
+ @SelfBuilt = selfbuilt
7437
+ @IsUpdate = isupdate
7438
+ @BrokerAddress = brokeraddress
7439
+ @Region = region
7440
+ end
7441
+
7442
+ def deserialize(params)
7443
+ @Resource = params['Resource']
7444
+ @SelfBuilt = params['SelfBuilt']
7445
+ @IsUpdate = params['IsUpdate']
7446
+ @BrokerAddress = params['BrokerAddress']
7447
+ @Region = params['Region']
7448
+ end
7449
+ end
7450
+
7323
7451
  # Ckafka配置
7324
7452
  class KafkaParam < TencentCloud::Common::AbstractModel
7325
7453
  # @param SelfBuilt: 是否为自建集群
@@ -9301,13 +9429,10 @@ module TencentCloud
9301
9429
  # Scf类型入参
9302
9430
  class ScfParam < TencentCloud::Common::AbstractModel
9303
9431
  # @param FunctionName: SCF云函数函数名
9304
- # 注意:此字段可能返回 null,表示取不到有效值。
9305
9432
  # @type FunctionName: String
9306
9433
  # @param Namespace: SCF云函数命名空间, 默认为default
9307
- # 注意:此字段可能返回 null,表示取不到有效值。
9308
9434
  # @type Namespace: String
9309
9435
  # @param Qualifier: SCF云函数版本及别名, 默认为$DEFAULT
9310
- # 注意:此字段可能返回 null,表示取不到有效值。
9311
9436
  # @type Qualifier: String
9312
9437
  # @param BatchSize: 每批最大发送消息数, 默认为1000
9313
9438
  # @type BatchSize: Integer
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ckafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.533
4
+ version: 3.0.534
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-03-20 00:00:00.000000000 Z
11
+ date: 2023-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common