tencentcloud-sdk-ckafka 1.0.260 → 1.0.261
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 +122 -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: de1eeb83b15c3ab1420a54ed6d7c08961ec159cb
|
4
|
+
data.tar.gz: 56ead5289b7e117002b9c1eed2f7a572d38f56b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55a405d98aeb7e338b2e0c4bd6625fd16d737f7450eec00495baaf3fc2ffc5eb0f02366e6513fb0a0632a43c2adfcc148ce3bc45e4cf3dbceac5ffd6732a68fa
|
7
|
+
data.tar.gz: 163bc8a3bd91a604aaf063e98a34326e67fd5c0c6eaf5f3d8214529b479798ce97761228fbbe37523eacf5a0a308c61139ac878f5257b4cbc6c78846fa0ccee4
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.261
|
data/lib/v20190819/client.rb
CHANGED
@@ -125,6 +125,30 @@ module TencentCloud
|
|
125
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
126
|
end
|
127
127
|
|
128
|
+
# 创建消费者
|
129
|
+
|
130
|
+
# @param request: Request instance for CreateConsumer.
|
131
|
+
# @type request: :class:`Tencentcloud::ckafka::V20190819::CreateConsumerRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::ckafka::V20190819::CreateConsumerResponse`
|
133
|
+
def CreateConsumer(request)
|
134
|
+
body = send_request('CreateConsumer', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = CreateConsumerResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
128
152
|
# 创建实例(预付费包年包月)
|
129
153
|
|
130
154
|
# @param request: Request instance for CreateInstancePre.
|
@@ -173,6 +197,30 @@ module TencentCloud
|
|
173
197
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
198
|
end
|
175
199
|
|
200
|
+
# 添加实例路由
|
201
|
+
|
202
|
+
# @param request: Request instance for CreateRoute.
|
203
|
+
# @type request: :class:`Tencentcloud::ckafka::V20190819::CreateRouteRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::ckafka::V20190819::CreateRouteResponse`
|
205
|
+
def CreateRoute(request)
|
206
|
+
body = send_request('CreateRoute', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = CreateRouteResponse.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
|
# 创建ckafka主题
|
177
225
|
|
178
226
|
# @param request: Request instance for CreateTopic.
|
data/lib/v20190819/models.rb
CHANGED
@@ -853,6 +853,57 @@ module TencentCloud
|
|
853
853
|
end
|
854
854
|
end
|
855
855
|
|
856
|
+
# CreateConsumer请求参数结构体
|
857
|
+
class CreateConsumerRequest < TencentCloud::Common::AbstractModel
|
858
|
+
# @param InstanceId: 实例id
|
859
|
+
# @type InstanceId: String
|
860
|
+
# @param GroupName: group名称
|
861
|
+
# @type GroupName: String
|
862
|
+
# @param TopicName: topic名称
|
863
|
+
# @type TopicName: String
|
864
|
+
# @param TopicNameList: topic名称数组
|
865
|
+
# @type TopicNameList: Array
|
866
|
+
|
867
|
+
attr_accessor :InstanceId, :GroupName, :TopicName, :TopicNameList
|
868
|
+
|
869
|
+
def initialize(instanceid=nil, groupname=nil, topicname=nil, topicnamelist=nil)
|
870
|
+
@InstanceId = instanceid
|
871
|
+
@GroupName = groupname
|
872
|
+
@TopicName = topicname
|
873
|
+
@TopicNameList = topicnamelist
|
874
|
+
end
|
875
|
+
|
876
|
+
def deserialize(params)
|
877
|
+
@InstanceId = params['InstanceId']
|
878
|
+
@GroupName = params['GroupName']
|
879
|
+
@TopicName = params['TopicName']
|
880
|
+
@TopicNameList = params['TopicNameList']
|
881
|
+
end
|
882
|
+
end
|
883
|
+
|
884
|
+
# CreateConsumer返回参数结构体
|
885
|
+
class CreateConsumerResponse < TencentCloud::Common::AbstractModel
|
886
|
+
# @param Result: 创建group描述
|
887
|
+
# @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.JgwOperateResponse`
|
888
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
889
|
+
# @type RequestId: String
|
890
|
+
|
891
|
+
attr_accessor :Result, :RequestId
|
892
|
+
|
893
|
+
def initialize(result=nil, requestid=nil)
|
894
|
+
@Result = result
|
895
|
+
@RequestId = requestid
|
896
|
+
end
|
897
|
+
|
898
|
+
def deserialize(params)
|
899
|
+
unless params['Result'].nil?
|
900
|
+
@Result = JgwOperateResponse.new
|
901
|
+
@Result.deserialize(params['Result'])
|
902
|
+
end
|
903
|
+
@RequestId = params['RequestId']
|
904
|
+
end
|
905
|
+
end
|
906
|
+
|
856
907
|
# 创建预付费接口返回的Data
|
857
908
|
class CreateInstancePreData < TencentCloud::Common::AbstractModel
|
858
909
|
# @param FlowId: CreateInstancePre返回固定为0,不能作为CheckTaskStatus的查询条件。只是为了保证和后台数据结构对齐。
|
@@ -1066,6 +1117,77 @@ module TencentCloud
|
|
1066
1117
|
end
|
1067
1118
|
end
|
1068
1119
|
|
1120
|
+
# CreateRoute请求参数结构体
|
1121
|
+
class CreateRouteRequest < TencentCloud::Common::AbstractModel
|
1122
|
+
# @param InstanceId: 实例唯一id
|
1123
|
+
# @type InstanceId: String
|
1124
|
+
# @param VipType: 路由网络类型(3:vpc路由;4:标准版支撑路由;7:专业版支撑路由)
|
1125
|
+
# @type VipType: Integer
|
1126
|
+
# @param VpcId: vpc网络Id
|
1127
|
+
# @type VpcId: String
|
1128
|
+
# @param SubnetId: vpc子网id
|
1129
|
+
# @type SubnetId: String
|
1130
|
+
# @param AccessType: 访问类型
|
1131
|
+
# @type AccessType: Integer
|
1132
|
+
# @param AuthFlag: 是否需要权限管理
|
1133
|
+
# @type AuthFlag: Integer
|
1134
|
+
# @param CallerAppid: 调用方appId
|
1135
|
+
# @type CallerAppid: Integer
|
1136
|
+
# @param PublicNetwork: 公网带宽
|
1137
|
+
# @type PublicNetwork: Integer
|
1138
|
+
# @param Ip: vip地址
|
1139
|
+
# @type Ip: String
|
1140
|
+
|
1141
|
+
attr_accessor :InstanceId, :VipType, :VpcId, :SubnetId, :AccessType, :AuthFlag, :CallerAppid, :PublicNetwork, :Ip
|
1142
|
+
|
1143
|
+
def initialize(instanceid=nil, viptype=nil, vpcid=nil, subnetid=nil, accesstype=nil, authflag=nil, callerappid=nil, publicnetwork=nil, ip=nil)
|
1144
|
+
@InstanceId = instanceid
|
1145
|
+
@VipType = viptype
|
1146
|
+
@VpcId = vpcid
|
1147
|
+
@SubnetId = subnetid
|
1148
|
+
@AccessType = accesstype
|
1149
|
+
@AuthFlag = authflag
|
1150
|
+
@CallerAppid = callerappid
|
1151
|
+
@PublicNetwork = publicnetwork
|
1152
|
+
@Ip = ip
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
def deserialize(params)
|
1156
|
+
@InstanceId = params['InstanceId']
|
1157
|
+
@VipType = params['VipType']
|
1158
|
+
@VpcId = params['VpcId']
|
1159
|
+
@SubnetId = params['SubnetId']
|
1160
|
+
@AccessType = params['AccessType']
|
1161
|
+
@AuthFlag = params['AuthFlag']
|
1162
|
+
@CallerAppid = params['CallerAppid']
|
1163
|
+
@PublicNetwork = params['PublicNetwork']
|
1164
|
+
@Ip = params['Ip']
|
1165
|
+
end
|
1166
|
+
end
|
1167
|
+
|
1168
|
+
# CreateRoute返回参数结构体
|
1169
|
+
class CreateRouteResponse < TencentCloud::Common::AbstractModel
|
1170
|
+
# @param Result: 返回结果
|
1171
|
+
# @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.JgwOperateResponse`
|
1172
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1173
|
+
# @type RequestId: String
|
1174
|
+
|
1175
|
+
attr_accessor :Result, :RequestId
|
1176
|
+
|
1177
|
+
def initialize(result=nil, requestid=nil)
|
1178
|
+
@Result = result
|
1179
|
+
@RequestId = requestid
|
1180
|
+
end
|
1181
|
+
|
1182
|
+
def deserialize(params)
|
1183
|
+
unless params['Result'].nil?
|
1184
|
+
@Result = JgwOperateResponse.new
|
1185
|
+
@Result.deserialize(params['Result'])
|
1186
|
+
end
|
1187
|
+
@RequestId = params['RequestId']
|
1188
|
+
end
|
1189
|
+
end
|
1190
|
+
|
1069
1191
|
# CreateTopicIpWhiteList请求参数结构体
|
1070
1192
|
class CreateTopicIpWhiteListRequest < TencentCloud::Common::AbstractModel
|
1071
1193
|
# @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.261
|
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-02-
|
11
|
+
date: 2022-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|