tencentcloud-sdk-ckafka 1.0.357 → 1.0.358
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/v20190819/client.rb +48 -0
- data/lib/v20190819/models.rb +121 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b294554e19a157344d72bbae952e481ad93cbcb
|
4
|
+
data.tar.gz: 99b64860abf1ab4ceb23df14842252724e7c0c27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f378ae364e9adb1fa456607631779607e74a27faba1695fee455ae7f6db77601291f7edccafd1d10b17309f7c3905e9cb22f347268a70eade281e1fab01d4c6b
|
7
|
+
data.tar.gz: 0051df971770ccacfdbf383fc861e5de28c172b4cf497dbb8057774be1f92e1ab8d0e203507649182abc5c69b2f7582fc2e6e7243ac616ebefccb242013acbe0
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.358
|
data/lib/v20190819/client.rb
CHANGED
@@ -149,6 +149,30 @@ module TencentCloud
|
|
149
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
150
|
end
|
151
151
|
|
152
|
+
# 用于查询cdc-ckafka任务状态
|
153
|
+
|
154
|
+
# @param request: Request instance for CheckCdcCluster.
|
155
|
+
# @type request: :class:`Tencentcloud::ckafka::V20190819::CheckCdcClusterRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::ckafka::V20190819::CheckCdcClusterResponse`
|
157
|
+
def CheckCdcCluster(request)
|
158
|
+
body = send_request('CheckCdcCluster', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = CheckCdcClusterResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
152
176
|
# 添加 ACL 策略
|
153
177
|
|
154
178
|
# @param request: Request instance for CreateAcl.
|
@@ -173,6 +197,30 @@ module TencentCloud
|
|
173
197
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
198
|
end
|
175
199
|
|
200
|
+
# 用于cdc的专用ckafka集群
|
201
|
+
|
202
|
+
# @param request: Request instance for CreateCdcCluster.
|
203
|
+
# @type request: :class:`Tencentcloud::ckafka::V20190819::CreateCdcClusterRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::ckafka::V20190819::CreateCdcClusterResponse`
|
205
|
+
def CreateCdcCluster(request)
|
206
|
+
body = send_request('CreateCdcCluster', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = CreateCdcClusterResponse.new
|
210
|
+
model.deserialize(response['Response'])
|
211
|
+
model
|
212
|
+
else
|
213
|
+
code = response['Response']['Error']['Code']
|
214
|
+
message = response['Response']['Error']['Message']
|
215
|
+
reqid = response['Response']['RequestId']
|
216
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
217
|
+
end
|
218
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
219
|
+
raise e
|
220
|
+
rescue StandardError => e
|
221
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
|
+
end
|
223
|
+
|
176
224
|
# 创建消费者组
|
177
225
|
|
178
226
|
# @param request: Request instance for CreateConsumer.
|
data/lib/v20190819/models.rb
CHANGED
@@ -601,6 +601,60 @@ module TencentCloud
|
|
601
601
|
end
|
602
602
|
end
|
603
603
|
|
604
|
+
# 创建CDC 标准版共享集群出参
|
605
|
+
class CdcClusterResponse < TencentCloud::Common::AbstractModel
|
606
|
+
# @param TaskId: 任务ID
|
607
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
608
|
+
# @type TaskId: Integer
|
609
|
+
|
610
|
+
attr_accessor :TaskId
|
611
|
+
|
612
|
+
def initialize(taskid=nil)
|
613
|
+
@TaskId = taskid
|
614
|
+
end
|
615
|
+
|
616
|
+
def deserialize(params)
|
617
|
+
@TaskId = params['TaskId']
|
618
|
+
end
|
619
|
+
end
|
620
|
+
|
621
|
+
# CheckCdcCluster请求参数结构体
|
622
|
+
class CheckCdcClusterRequest < TencentCloud::Common::AbstractModel
|
623
|
+
# @param TaskId: 任务ID
|
624
|
+
# @type TaskId: Integer
|
625
|
+
|
626
|
+
attr_accessor :TaskId
|
627
|
+
|
628
|
+
def initialize(taskid=nil)
|
629
|
+
@TaskId = taskid
|
630
|
+
end
|
631
|
+
|
632
|
+
def deserialize(params)
|
633
|
+
@TaskId = params['TaskId']
|
634
|
+
end
|
635
|
+
end
|
636
|
+
|
637
|
+
# CheckCdcCluster返回参数结构体
|
638
|
+
class CheckCdcClusterResponse < TencentCloud::Common::AbstractModel
|
639
|
+
# @param Result: 返回结果状态Success
|
640
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
641
|
+
# @type Result: String
|
642
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
643
|
+
# @type RequestId: String
|
644
|
+
|
645
|
+
attr_accessor :Result, :RequestId
|
646
|
+
|
647
|
+
def initialize(result=nil, requestid=nil)
|
648
|
+
@Result = result
|
649
|
+
@RequestId = requestid
|
650
|
+
end
|
651
|
+
|
652
|
+
def deserialize(params)
|
653
|
+
@Result = params['Result']
|
654
|
+
@RequestId = params['RequestId']
|
655
|
+
end
|
656
|
+
end
|
657
|
+
|
604
658
|
# 集群信息实体
|
605
659
|
class ClusterInfo < TencentCloud::Common::AbstractModel
|
606
660
|
# @param ClusterId: 集群Id
|
@@ -943,6 +997,73 @@ module TencentCloud
|
|
943
997
|
end
|
944
998
|
end
|
945
999
|
|
1000
|
+
# CreateCdcCluster请求参数结构体
|
1001
|
+
class CreateCdcClusterRequest < TencentCloud::Common::AbstractModel
|
1002
|
+
# @param CdcId: cdc的id
|
1003
|
+
# @type CdcId: String
|
1004
|
+
# @param CdcVpcId: vpcId,一个地域只有唯一一个vpcid用于CDC
|
1005
|
+
# @type CdcVpcId: String
|
1006
|
+
# @param CdcSubnetId: 每个CDC集群有唯一一个子网ID
|
1007
|
+
# @type CdcSubnetId: String
|
1008
|
+
# @param ZoneId: 所在可用区ID
|
1009
|
+
# @type ZoneId: Integer
|
1010
|
+
# @param Bandwidth: cdc集群的总带宽
|
1011
|
+
# @type Bandwidth: Integer
|
1012
|
+
# @param DiskSize: cdc集群的总磁盘
|
1013
|
+
# @type DiskSize: Integer
|
1014
|
+
# @param DiskType: 数据盘类型
|
1015
|
+
# @type DiskType: String
|
1016
|
+
# @param SystemDiskType: 系统盘类型
|
1017
|
+
# @type SystemDiskType: String
|
1018
|
+
|
1019
|
+
attr_accessor :CdcId, :CdcVpcId, :CdcSubnetId, :ZoneId, :Bandwidth, :DiskSize, :DiskType, :SystemDiskType
|
1020
|
+
|
1021
|
+
def initialize(cdcid=nil, cdcvpcid=nil, cdcsubnetid=nil, zoneid=nil, bandwidth=nil, disksize=nil, disktype=nil, systemdisktype=nil)
|
1022
|
+
@CdcId = cdcid
|
1023
|
+
@CdcVpcId = cdcvpcid
|
1024
|
+
@CdcSubnetId = cdcsubnetid
|
1025
|
+
@ZoneId = zoneid
|
1026
|
+
@Bandwidth = bandwidth
|
1027
|
+
@DiskSize = disksize
|
1028
|
+
@DiskType = disktype
|
1029
|
+
@SystemDiskType = systemdisktype
|
1030
|
+
end
|
1031
|
+
|
1032
|
+
def deserialize(params)
|
1033
|
+
@CdcId = params['CdcId']
|
1034
|
+
@CdcVpcId = params['CdcVpcId']
|
1035
|
+
@CdcSubnetId = params['CdcSubnetId']
|
1036
|
+
@ZoneId = params['ZoneId']
|
1037
|
+
@Bandwidth = params['Bandwidth']
|
1038
|
+
@DiskSize = params['DiskSize']
|
1039
|
+
@DiskType = params['DiskType']
|
1040
|
+
@SystemDiskType = params['SystemDiskType']
|
1041
|
+
end
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
# CreateCdcCluster返回参数结构体
|
1045
|
+
class CreateCdcClusterResponse < TencentCloud::Common::AbstractModel
|
1046
|
+
# @param Result: 无
|
1047
|
+
# @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.CdcClusterResponse`
|
1048
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1049
|
+
# @type RequestId: String
|
1050
|
+
|
1051
|
+
attr_accessor :Result, :RequestId
|
1052
|
+
|
1053
|
+
def initialize(result=nil, requestid=nil)
|
1054
|
+
@Result = result
|
1055
|
+
@RequestId = requestid
|
1056
|
+
end
|
1057
|
+
|
1058
|
+
def deserialize(params)
|
1059
|
+
unless params['Result'].nil?
|
1060
|
+
@Result = CdcClusterResponse.new
|
1061
|
+
@Result.deserialize(params['Result'])
|
1062
|
+
end
|
1063
|
+
@RequestId = params['RequestId']
|
1064
|
+
end
|
1065
|
+
end
|
1066
|
+
|
946
1067
|
# CreateConsumer请求参数结构体
|
947
1068
|
class CreateConsumerRequest < TencentCloud::Common::AbstractModel
|
948
1069
|
# @param InstanceId: 实例id
|
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: 1.0.
|
4
|
+
version: 1.0.358
|
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-07-
|
11
|
+
date: 2022-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|