tencentcloud-sdk-tcb 3.0.1210 → 3.0.1211
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180608/client.rb +240 -0
- data/lib/v20180608/models.rb +1102 -33
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b005699b642e93de8bab56e0ffa6337106f5e04
|
|
4
|
+
data.tar.gz: 448b9c9e9b0d386a1892a25b49641331726e6611
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a597f7c899d9b03ede586cc6f6e0bd365ab39ecb11621b3599c9dae2d0afac58f14b4bea486ae81b2b0854dc7561ca5ba2c9070fae17839df1d6f02915ddda26
|
|
7
|
+
data.tar.gz: 91e96124682d9a481b6d41654853d4f7069bf25e9d4d5519b5801266314e83eb90da1b28bcdc4ce1a2e288179de3eaecdf1e8ca5c1d85782e824240ca15d3aef
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1211
|
data/lib/v20180608/client.rb
CHANGED
|
@@ -269,6 +269,54 @@ module TencentCloud
|
|
|
269
269
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
270
270
|
end
|
|
271
271
|
|
|
272
|
+
# 本接口(CreateTable)用于创建表,支持创建capped类型集合,暂时不支持分片表
|
|
273
|
+
|
|
274
|
+
# @param request: Request instance for CreateTable.
|
|
275
|
+
# @type request: :class:`Tencentcloud::tcb::V20180608::CreateTableRequest`
|
|
276
|
+
# @rtype: :class:`Tencentcloud::tcb::V20180608::CreateTableResponse`
|
|
277
|
+
def CreateTable(request)
|
|
278
|
+
body = send_request('CreateTable', request.serialize)
|
|
279
|
+
response = JSON.parse(body)
|
|
280
|
+
if response['Response'].key?('Error') == false
|
|
281
|
+
model = CreateTableResponse.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
|
+
|
|
296
|
+
# 创建tcb用户
|
|
297
|
+
|
|
298
|
+
# @param request: Request instance for CreateUser.
|
|
299
|
+
# @type request: :class:`Tencentcloud::tcb::V20180608::CreateUserRequest`
|
|
300
|
+
# @rtype: :class:`Tencentcloud::tcb::V20180608::CreateUserResponse`
|
|
301
|
+
def CreateUser(request)
|
|
302
|
+
body = send_request('CreateUser', request.serialize)
|
|
303
|
+
response = JSON.parse(body)
|
|
304
|
+
if response['Response'].key?('Error') == false
|
|
305
|
+
model = CreateUserResponse.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
|
+
|
|
272
320
|
# 删除云项目
|
|
273
321
|
|
|
274
322
|
# @param request: Request instance for DeleteCloudBaseProjectLatestVersion.
|
|
@@ -341,6 +389,54 @@ module TencentCloud
|
|
|
341
389
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
342
390
|
end
|
|
343
391
|
|
|
392
|
+
# 本接口(DeleteTable)用于删除表,删除表后表中数据将会被删除且无法恢复,请谨慎操作
|
|
393
|
+
|
|
394
|
+
# @param request: Request instance for DeleteTable.
|
|
395
|
+
# @type request: :class:`Tencentcloud::tcb::V20180608::DeleteTableRequest`
|
|
396
|
+
# @rtype: :class:`Tencentcloud::tcb::V20180608::DeleteTableResponse`
|
|
397
|
+
def DeleteTable(request)
|
|
398
|
+
body = send_request('DeleteTable', request.serialize)
|
|
399
|
+
response = JSON.parse(body)
|
|
400
|
+
if response['Response'].key?('Error') == false
|
|
401
|
+
model = DeleteTableResponse.new
|
|
402
|
+
model.deserialize(response['Response'])
|
|
403
|
+
model
|
|
404
|
+
else
|
|
405
|
+
code = response['Response']['Error']['Code']
|
|
406
|
+
message = response['Response']['Error']['Message']
|
|
407
|
+
reqid = response['Response']['RequestId']
|
|
408
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
409
|
+
end
|
|
410
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
411
|
+
raise e
|
|
412
|
+
rescue StandardError => e
|
|
413
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
# 删除tcb用户
|
|
417
|
+
|
|
418
|
+
# @param request: Request instance for DeleteUsers.
|
|
419
|
+
# @type request: :class:`Tencentcloud::tcb::V20180608::DeleteUsersRequest`
|
|
420
|
+
# @rtype: :class:`Tencentcloud::tcb::V20180608::DeleteUsersResponse`
|
|
421
|
+
def DeleteUsers(request)
|
|
422
|
+
body = send_request('DeleteUsers', request.serialize)
|
|
423
|
+
response = JSON.parse(body)
|
|
424
|
+
if response['Response'].key?('Error') == false
|
|
425
|
+
model = DeleteUsersResponse.new
|
|
426
|
+
model.deserialize(response['Response'])
|
|
427
|
+
model
|
|
428
|
+
else
|
|
429
|
+
code = response['Response']['Error']['Code']
|
|
430
|
+
message = response['Response']['Error']['Message']
|
|
431
|
+
reqid = response['Response']['RequestId']
|
|
432
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
433
|
+
end
|
|
434
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
435
|
+
raise e
|
|
436
|
+
rescue StandardError => e
|
|
437
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
438
|
+
end
|
|
439
|
+
|
|
344
440
|
# 删除安全网关路由
|
|
345
441
|
|
|
346
442
|
# @param request: Request instance for DeleteWxGatewayRoute.
|
|
@@ -1161,6 +1257,54 @@ module TencentCloud
|
|
|
1161
1257
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1162
1258
|
end
|
|
1163
1259
|
|
|
1260
|
+
# 查询表的相关信息,包括索引等信息
|
|
1261
|
+
|
|
1262
|
+
# @param request: Request instance for DescribeTable.
|
|
1263
|
+
# @type request: :class:`Tencentcloud::tcb::V20180608::DescribeTableRequest`
|
|
1264
|
+
# @rtype: :class:`Tencentcloud::tcb::V20180608::DescribeTableResponse`
|
|
1265
|
+
def DescribeTable(request)
|
|
1266
|
+
body = send_request('DescribeTable', request.serialize)
|
|
1267
|
+
response = JSON.parse(body)
|
|
1268
|
+
if response['Response'].key?('Error') == false
|
|
1269
|
+
model = DescribeTableResponse.new
|
|
1270
|
+
model.deserialize(response['Response'])
|
|
1271
|
+
model
|
|
1272
|
+
else
|
|
1273
|
+
code = response['Response']['Error']['Code']
|
|
1274
|
+
message = response['Response']['Error']['Message']
|
|
1275
|
+
reqid = response['Response']['RequestId']
|
|
1276
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1277
|
+
end
|
|
1278
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1279
|
+
raise e
|
|
1280
|
+
rescue StandardError => e
|
|
1281
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1282
|
+
end
|
|
1283
|
+
|
|
1284
|
+
# 本接口(ListTables)用于查询所有表信息,包括表名、表中数据条数、表中数据量、索引个数及索引的大小等
|
|
1285
|
+
|
|
1286
|
+
# @param request: Request instance for DescribeTables.
|
|
1287
|
+
# @type request: :class:`Tencentcloud::tcb::V20180608::DescribeTablesRequest`
|
|
1288
|
+
# @rtype: :class:`Tencentcloud::tcb::V20180608::DescribeTablesResponse`
|
|
1289
|
+
def DescribeTables(request)
|
|
1290
|
+
body = send_request('DescribeTables', request.serialize)
|
|
1291
|
+
response = JSON.parse(body)
|
|
1292
|
+
if response['Response'].key?('Error') == false
|
|
1293
|
+
model = DescribeTablesResponse.new
|
|
1294
|
+
model.deserialize(response['Response'])
|
|
1295
|
+
model
|
|
1296
|
+
else
|
|
1297
|
+
code = response['Response']['Error']['Code']
|
|
1298
|
+
message = response['Response']['Error']['Message']
|
|
1299
|
+
reqid = response['Response']['RequestId']
|
|
1300
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1301
|
+
end
|
|
1302
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1303
|
+
raise e
|
|
1304
|
+
rescue StandardError => e
|
|
1305
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1306
|
+
end
|
|
1307
|
+
|
|
1164
1308
|
# 查询用户活动信息
|
|
1165
1309
|
|
|
1166
1310
|
# @param request: Request instance for DescribeUserActivityInfo.
|
|
@@ -1185,6 +1329,30 @@ module TencentCloud
|
|
|
1185
1329
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1186
1330
|
end
|
|
1187
1331
|
|
|
1332
|
+
# 查询tcb用户列表
|
|
1333
|
+
|
|
1334
|
+
# @param request: Request instance for DescribeUserList.
|
|
1335
|
+
# @type request: :class:`Tencentcloud::tcb::V20180608::DescribeUserListRequest`
|
|
1336
|
+
# @rtype: :class:`Tencentcloud::tcb::V20180608::DescribeUserListResponse`
|
|
1337
|
+
def DescribeUserList(request)
|
|
1338
|
+
body = send_request('DescribeUserList', request.serialize)
|
|
1339
|
+
response = JSON.parse(body)
|
|
1340
|
+
if response['Response'].key?('Error') == false
|
|
1341
|
+
model = DescribeUserListResponse.new
|
|
1342
|
+
model.deserialize(response['Response'])
|
|
1343
|
+
model
|
|
1344
|
+
else
|
|
1345
|
+
code = response['Response']['Error']['Code']
|
|
1346
|
+
message = response['Response']['Error']['Message']
|
|
1347
|
+
reqid = response['Response']['RequestId']
|
|
1348
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1349
|
+
end
|
|
1350
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1351
|
+
raise e
|
|
1352
|
+
rescue StandardError => e
|
|
1353
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1354
|
+
end
|
|
1355
|
+
|
|
1188
1356
|
# 查看安全网关路由
|
|
1189
1357
|
|
|
1190
1358
|
# @param request: Request instance for DescribeWxGatewayRoutes.
|
|
@@ -1377,6 +1545,30 @@ module TencentCloud
|
|
|
1377
1545
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1378
1546
|
end
|
|
1379
1547
|
|
|
1548
|
+
# 本接口(ListTables)用于查询所有表信息,包括表名、表中数据条数、表中数据量、索引个数及索引的大小等
|
|
1549
|
+
|
|
1550
|
+
# @param request: Request instance for ListTables.
|
|
1551
|
+
# @type request: :class:`Tencentcloud::tcb::V20180608::ListTablesRequest`
|
|
1552
|
+
# @rtype: :class:`Tencentcloud::tcb::V20180608::ListTablesResponse`
|
|
1553
|
+
def ListTables(request)
|
|
1554
|
+
body = send_request('ListTables', request.serialize)
|
|
1555
|
+
response = JSON.parse(body)
|
|
1556
|
+
if response['Response'].key?('Error') == false
|
|
1557
|
+
model = ListTablesResponse.new
|
|
1558
|
+
model.deserialize(response['Response'])
|
|
1559
|
+
model
|
|
1560
|
+
else
|
|
1561
|
+
code = response['Response']['Error']['Code']
|
|
1562
|
+
message = response['Response']['Error']['Message']
|
|
1563
|
+
reqid = response['Response']['RequestId']
|
|
1564
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1565
|
+
end
|
|
1566
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1567
|
+
raise e
|
|
1568
|
+
rescue StandardError => e
|
|
1569
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1570
|
+
end
|
|
1571
|
+
|
|
1380
1572
|
# 修改容器内的版本流量配置
|
|
1381
1573
|
|
|
1382
1574
|
# @param request: Request instance for ModifyCloudBaseRunServerFlowConf.
|
|
@@ -1521,6 +1713,30 @@ module TencentCloud
|
|
|
1521
1713
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1522
1714
|
end
|
|
1523
1715
|
|
|
1716
|
+
# 修改tcb用户
|
|
1717
|
+
|
|
1718
|
+
# @param request: Request instance for ModifyUser.
|
|
1719
|
+
# @type request: :class:`Tencentcloud::tcb::V20180608::ModifyUserRequest`
|
|
1720
|
+
# @rtype: :class:`Tencentcloud::tcb::V20180608::ModifyUserResponse`
|
|
1721
|
+
def ModifyUser(request)
|
|
1722
|
+
body = send_request('ModifyUser', request.serialize)
|
|
1723
|
+
response = JSON.parse(body)
|
|
1724
|
+
if response['Response'].key?('Error') == false
|
|
1725
|
+
model = ModifyUserResponse.new
|
|
1726
|
+
model.deserialize(response['Response'])
|
|
1727
|
+
model
|
|
1728
|
+
else
|
|
1729
|
+
code = response['Response']['Error']['Code']
|
|
1730
|
+
message = response['Response']['Error']['Message']
|
|
1731
|
+
reqid = response['Response']['RequestId']
|
|
1732
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1733
|
+
end
|
|
1734
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1735
|
+
raise e
|
|
1736
|
+
rescue StandardError => e
|
|
1737
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1738
|
+
end
|
|
1739
|
+
|
|
1524
1740
|
# 针对已隔离的免费环境,可以通过本接口将其恢复访问。
|
|
1525
1741
|
|
|
1526
1742
|
# @param request: Request instance for ReinstateEnv.
|
|
@@ -1617,6 +1833,30 @@ module TencentCloud
|
|
|
1617
1833
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1618
1834
|
end
|
|
1619
1835
|
|
|
1836
|
+
# 本接口(UpdateTable)用于修改表信息,当前可以支持创建和删除索引
|
|
1837
|
+
|
|
1838
|
+
# @param request: Request instance for UpdateTable.
|
|
1839
|
+
# @type request: :class:`Tencentcloud::tcb::V20180608::UpdateTableRequest`
|
|
1840
|
+
# @rtype: :class:`Tencentcloud::tcb::V20180608::UpdateTableResponse`
|
|
1841
|
+
def UpdateTable(request)
|
|
1842
|
+
body = send_request('UpdateTable', request.serialize)
|
|
1843
|
+
response = JSON.parse(body)
|
|
1844
|
+
if response['Response'].key?('Error') == false
|
|
1845
|
+
model = UpdateTableResponse.new
|
|
1846
|
+
model.deserialize(response['Response'])
|
|
1847
|
+
model
|
|
1848
|
+
else
|
|
1849
|
+
code = response['Response']['Error']['Code']
|
|
1850
|
+
message = response['Response']['Error']['Message']
|
|
1851
|
+
reqid = response['Response']['RequestId']
|
|
1852
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1853
|
+
end
|
|
1854
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1855
|
+
raise e
|
|
1856
|
+
rescue StandardError => e
|
|
1857
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1858
|
+
end
|
|
1859
|
+
|
|
1620
1860
|
|
|
1621
1861
|
end
|
|
1622
1862
|
end
|