tencentcloud-sdk-mariadb 1.0.258 → 1.0.262
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/v20170312/client.rb +24 -0
- data/lib/v20170312/models.rb +152 -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: ec7002702612e61cade2fb15002b47cbe8284d61
|
4
|
+
data.tar.gz: a95fcbc47956c1f2d68864a194605eee12a94300
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e336427506b14187b2bb5f410c584690462fb8775751ded5da831db7b551cfcae6811b3356eef229e14da5dbad13e3fc058fadf1366f716d9626020a6d122e1
|
7
|
+
data.tar.gz: 0dc80aca6b6b79f2592f1b793a9c14d52c4cdbe945884687a2ca12147c8bdf0a81ffb4d9e5d22773faf08648e4b895588be67bc39d46c04ec42f8966f3baa4a6
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.262
|
data/lib/v20170312/client.rb
CHANGED
@@ -608,6 +608,30 @@ module TencentCloud
|
|
608
608
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
609
609
|
end
|
610
610
|
|
611
|
+
# 本接口(DescribeDatabaseObjects)用于查询云数据库实例的数据库中的对象列表,包含表、存储过程、视图和函数。
|
612
|
+
|
613
|
+
# @param request: Request instance for DescribeDatabaseObjects.
|
614
|
+
# @type request: :class:`Tencentcloud::mariadb::V20170312::DescribeDatabaseObjectsRequest`
|
615
|
+
# @rtype: :class:`Tencentcloud::mariadb::V20170312::DescribeDatabaseObjectsResponse`
|
616
|
+
def DescribeDatabaseObjects(request)
|
617
|
+
body = send_request('DescribeDatabaseObjects', request.serialize)
|
618
|
+
response = JSON.parse(body)
|
619
|
+
if response['Response'].key?('Error') == false
|
620
|
+
model = DescribeDatabaseObjectsResponse.new
|
621
|
+
model.deserialize(response['Response'])
|
622
|
+
model
|
623
|
+
else
|
624
|
+
code = response['Response']['Error']['Code']
|
625
|
+
message = response['Response']['Error']['Message']
|
626
|
+
reqid = response['Response']['RequestId']
|
627
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
628
|
+
end
|
629
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
630
|
+
raise e
|
631
|
+
rescue StandardError => e
|
632
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
633
|
+
end
|
634
|
+
|
611
635
|
# 本接口(DescribeDatabaseTable)用于查询云数据库实例的表信息。
|
612
636
|
|
613
637
|
# @param request: Request instance for DescribeDatabaseTable.
|
data/lib/v20170312/models.rb
CHANGED
@@ -1169,6 +1169,22 @@ module TencentCloud
|
|
1169
1169
|
end
|
1170
1170
|
end
|
1171
1171
|
|
1172
|
+
# 数据库函数信息
|
1173
|
+
class DatabaseFunction < TencentCloud::Common::AbstractModel
|
1174
|
+
# @param Func: 函数名称
|
1175
|
+
# @type Func: String
|
1176
|
+
|
1177
|
+
attr_accessor :Func
|
1178
|
+
|
1179
|
+
def initialize(func=nil)
|
1180
|
+
@Func = func
|
1181
|
+
end
|
1182
|
+
|
1183
|
+
def deserialize(params)
|
1184
|
+
@Func = params['Func']
|
1185
|
+
end
|
1186
|
+
end
|
1187
|
+
|
1172
1188
|
# 数据库权限
|
1173
1189
|
class DatabasePrivilege < TencentCloud::Common::AbstractModel
|
1174
1190
|
# @param Privileges: 权限信息
|
@@ -1189,6 +1205,54 @@ module TencentCloud
|
|
1189
1205
|
end
|
1190
1206
|
end
|
1191
1207
|
|
1208
|
+
# 数据库存储过程信息
|
1209
|
+
class DatabaseProcedure < TencentCloud::Common::AbstractModel
|
1210
|
+
# @param Proc: 存储过程名称
|
1211
|
+
# @type Proc: String
|
1212
|
+
|
1213
|
+
attr_accessor :Proc
|
1214
|
+
|
1215
|
+
def initialize(proc=nil)
|
1216
|
+
@Proc = proc
|
1217
|
+
end
|
1218
|
+
|
1219
|
+
def deserialize(params)
|
1220
|
+
@Proc = params['Proc']
|
1221
|
+
end
|
1222
|
+
end
|
1223
|
+
|
1224
|
+
# 数据库表信息
|
1225
|
+
class DatabaseTable < TencentCloud::Common::AbstractModel
|
1226
|
+
# @param Table: 表名
|
1227
|
+
# @type Table: String
|
1228
|
+
|
1229
|
+
attr_accessor :Table
|
1230
|
+
|
1231
|
+
def initialize(table=nil)
|
1232
|
+
@Table = table
|
1233
|
+
end
|
1234
|
+
|
1235
|
+
def deserialize(params)
|
1236
|
+
@Table = params['Table']
|
1237
|
+
end
|
1238
|
+
end
|
1239
|
+
|
1240
|
+
# 数据库视图信息
|
1241
|
+
class DatabaseView < TencentCloud::Common::AbstractModel
|
1242
|
+
# @param View: 视图名称
|
1243
|
+
# @type View: String
|
1244
|
+
|
1245
|
+
attr_accessor :View
|
1246
|
+
|
1247
|
+
def initialize(view=nil)
|
1248
|
+
@View = view
|
1249
|
+
end
|
1250
|
+
|
1251
|
+
def deserialize(params)
|
1252
|
+
@View = params['View']
|
1253
|
+
end
|
1254
|
+
end
|
1255
|
+
|
1192
1256
|
# DCN详情条目
|
1193
1257
|
class DcnDetailItem < TencentCloud::Common::AbstractModel
|
1194
1258
|
# @param InstanceId: 实例ID
|
@@ -2256,6 +2320,94 @@ module TencentCloud
|
|
2256
2320
|
end
|
2257
2321
|
end
|
2258
2322
|
|
2323
|
+
# DescribeDatabaseObjects请求参数结构体
|
2324
|
+
class DescribeDatabaseObjectsRequest < TencentCloud::Common::AbstractModel
|
2325
|
+
# @param InstanceId: 实例 ID,形如:dcdbt-ow7t8lmc。
|
2326
|
+
# @type InstanceId: String
|
2327
|
+
# @param DbName: 数据库名称,通过 DescribeDatabases 接口获取。
|
2328
|
+
# @type DbName: String
|
2329
|
+
|
2330
|
+
attr_accessor :InstanceId, :DbName
|
2331
|
+
|
2332
|
+
def initialize(instanceid=nil, dbname=nil)
|
2333
|
+
@InstanceId = instanceid
|
2334
|
+
@DbName = dbname
|
2335
|
+
end
|
2336
|
+
|
2337
|
+
def deserialize(params)
|
2338
|
+
@InstanceId = params['InstanceId']
|
2339
|
+
@DbName = params['DbName']
|
2340
|
+
end
|
2341
|
+
end
|
2342
|
+
|
2343
|
+
# DescribeDatabaseObjects返回参数结构体
|
2344
|
+
class DescribeDatabaseObjectsResponse < TencentCloud::Common::AbstractModel
|
2345
|
+
# @param InstanceId: 透传入参。
|
2346
|
+
# @type InstanceId: String
|
2347
|
+
# @param DbName: 数据库名称。
|
2348
|
+
# @type DbName: String
|
2349
|
+
# @param Tables: 表列表。
|
2350
|
+
# @type Tables: Array
|
2351
|
+
# @param Views: 视图列表。
|
2352
|
+
# @type Views: Array
|
2353
|
+
# @param Procs: 存储过程列表。
|
2354
|
+
# @type Procs: Array
|
2355
|
+
# @param Funcs: 函数列表。
|
2356
|
+
# @type Funcs: Array
|
2357
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2358
|
+
# @type RequestId: String
|
2359
|
+
|
2360
|
+
attr_accessor :InstanceId, :DbName, :Tables, :Views, :Procs, :Funcs, :RequestId
|
2361
|
+
|
2362
|
+
def initialize(instanceid=nil, dbname=nil, tables=nil, views=nil, procs=nil, funcs=nil, requestid=nil)
|
2363
|
+
@InstanceId = instanceid
|
2364
|
+
@DbName = dbname
|
2365
|
+
@Tables = tables
|
2366
|
+
@Views = views
|
2367
|
+
@Procs = procs
|
2368
|
+
@Funcs = funcs
|
2369
|
+
@RequestId = requestid
|
2370
|
+
end
|
2371
|
+
|
2372
|
+
def deserialize(params)
|
2373
|
+
@InstanceId = params['InstanceId']
|
2374
|
+
@DbName = params['DbName']
|
2375
|
+
unless params['Tables'].nil?
|
2376
|
+
@Tables = []
|
2377
|
+
params['Tables'].each do |i|
|
2378
|
+
databasetable_tmp = DatabaseTable.new
|
2379
|
+
databasetable_tmp.deserialize(i)
|
2380
|
+
@Tables << databasetable_tmp
|
2381
|
+
end
|
2382
|
+
end
|
2383
|
+
unless params['Views'].nil?
|
2384
|
+
@Views = []
|
2385
|
+
params['Views'].each do |i|
|
2386
|
+
databaseview_tmp = DatabaseView.new
|
2387
|
+
databaseview_tmp.deserialize(i)
|
2388
|
+
@Views << databaseview_tmp
|
2389
|
+
end
|
2390
|
+
end
|
2391
|
+
unless params['Procs'].nil?
|
2392
|
+
@Procs = []
|
2393
|
+
params['Procs'].each do |i|
|
2394
|
+
databaseprocedure_tmp = DatabaseProcedure.new
|
2395
|
+
databaseprocedure_tmp.deserialize(i)
|
2396
|
+
@Procs << databaseprocedure_tmp
|
2397
|
+
end
|
2398
|
+
end
|
2399
|
+
unless params['Funcs'].nil?
|
2400
|
+
@Funcs = []
|
2401
|
+
params['Funcs'].each do |i|
|
2402
|
+
databasefunction_tmp = DatabaseFunction.new
|
2403
|
+
databasefunction_tmp.deserialize(i)
|
2404
|
+
@Funcs << databasefunction_tmp
|
2405
|
+
end
|
2406
|
+
end
|
2407
|
+
@RequestId = params['RequestId']
|
2408
|
+
end
|
2409
|
+
end
|
2410
|
+
|
2259
2411
|
# DescribeDatabaseTable请求参数结构体
|
2260
2412
|
class DescribeDatabaseTableRequest < TencentCloud::Common::AbstractModel
|
2261
2413
|
# @param InstanceId: 实例 ID,形如:dcdbt-ow7t8lmc。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-mariadb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.262
|
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-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|