tencentcloud-sdk-mariadb 1.0.253 → 1.0.257

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: 052231a8b8498384146776332a78e23d1c80f36d
4
- data.tar.gz: cb39bd91cab315314bba3c38c931f5cedea20ab4
3
+ metadata.gz: e5eaa1b4f41de5c13758be6697a9e76c11cbe54d
4
+ data.tar.gz: 59ad10f0ecd9abeed0eec32cce1dfacbaa6f0ea3
5
5
  SHA512:
6
- metadata.gz: c2988efffa6a7265302b3ff749080ed102a6f577fa9b15757538511a77177eedf9ef1edd62fa07caac6212f531222615b58b73beb57b4ab2b95fbca2938f2b99
7
- data.tar.gz: 7c7d04588357a80e0cf1becd4f605fe21272d55a2ad2e9be64acf0ed9d587d4f15ed4176e07a9e87ede36a8f2b0da92c2a472e2d6ef01aba829b16c2afa129cf
6
+ metadata.gz: acc7737c0202b5764d4ba9cec21ada196bf29390dbf3b9690c4f56d6a276a6d4f43bf2de1e800ba4dd5b630a19937142aaa4ce0caca0f67882fecb41f738ec2d
7
+ data.tar.gz: f7b3d7d7467d178b915bff3d3ca72de6a3cbccc6139b8547c3758dc82862db2bbf7c4cba412b4a3b526d75b935229cdcf2a1c5840ad1017d41865607bd16afde
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.253
1
+ 1.0.257
@@ -608,6 +608,30 @@ module TencentCloud
608
608
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
609
609
  end
610
610
 
611
+ # 本接口(DescribeDatabaseTable)用于查询云数据库实例的表信息。
612
+
613
+ # @param request: Request instance for DescribeDatabaseTable.
614
+ # @type request: :class:`Tencentcloud::mariadb::V20170312::DescribeDatabaseTableRequest`
615
+ # @rtype: :class:`Tencentcloud::mariadb::V20170312::DescribeDatabaseTableResponse`
616
+ def DescribeDatabaseTable(request)
617
+ body = send_request('DescribeDatabaseTable', request.serialize)
618
+ response = JSON.parse(body)
619
+ if response['Response'].key?('Error') == false
620
+ model = DescribeDatabaseTableResponse.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
  # 本接口(DescribeDatabases)用于查询云数据库实例的数据库列表。
612
636
 
613
637
  # @param request: Request instance for DescribeDatabases.
@@ -2256,6 +2256,69 @@ module TencentCloud
2256
2256
  end
2257
2257
  end
2258
2258
 
2259
+ # DescribeDatabaseTable请求参数结构体
2260
+ class DescribeDatabaseTableRequest < TencentCloud::Common::AbstractModel
2261
+ # @param InstanceId: 实例 ID,形如:dcdbt-ow7t8lmc。
2262
+ # @type InstanceId: String
2263
+ # @param DbName: 数据库名称,通过 DescribeDatabases 接口获取。
2264
+ # @type DbName: String
2265
+ # @param Table: 表名称,通过 DescribeDatabaseObjects 接口获取。
2266
+ # @type Table: String
2267
+
2268
+ attr_accessor :InstanceId, :DbName, :Table
2269
+
2270
+ def initialize(instanceid=nil, dbname=nil, table=nil)
2271
+ @InstanceId = instanceid
2272
+ @DbName = dbname
2273
+ @Table = table
2274
+ end
2275
+
2276
+ def deserialize(params)
2277
+ @InstanceId = params['InstanceId']
2278
+ @DbName = params['DbName']
2279
+ @Table = params['Table']
2280
+ end
2281
+ end
2282
+
2283
+ # DescribeDatabaseTable返回参数结构体
2284
+ class DescribeDatabaseTableResponse < TencentCloud::Common::AbstractModel
2285
+ # @param InstanceId: 实例名称。
2286
+ # @type InstanceId: String
2287
+ # @param DbName: 数据库名称。
2288
+ # @type DbName: String
2289
+ # @param Table: 表名称。
2290
+ # @type Table: String
2291
+ # @param Cols: 列信息。
2292
+ # @type Cols: Array
2293
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2294
+ # @type RequestId: String
2295
+
2296
+ attr_accessor :InstanceId, :DbName, :Table, :Cols, :RequestId
2297
+
2298
+ def initialize(instanceid=nil, dbname=nil, table=nil, cols=nil, requestid=nil)
2299
+ @InstanceId = instanceid
2300
+ @DbName = dbname
2301
+ @Table = table
2302
+ @Cols = cols
2303
+ @RequestId = requestid
2304
+ end
2305
+
2306
+ def deserialize(params)
2307
+ @InstanceId = params['InstanceId']
2308
+ @DbName = params['DbName']
2309
+ @Table = params['Table']
2310
+ unless params['Cols'].nil?
2311
+ @Cols = []
2312
+ params['Cols'].each do |i|
2313
+ tablecolumn_tmp = TableColumn.new
2314
+ tablecolumn_tmp.deserialize(i)
2315
+ @Cols << tablecolumn_tmp
2316
+ end
2317
+ end
2318
+ @RequestId = params['RequestId']
2319
+ end
2320
+ end
2321
+
2259
2322
  # DescribeDatabases请求参数结构体
2260
2323
  class DescribeDatabasesRequest < TencentCloud::Common::AbstractModel
2261
2324
  # @param InstanceId: 实例 ID,形如:dcdbt-ow7t8lmc。
@@ -4609,6 +4672,26 @@ module TencentCloud
4609
4672
  end
4610
4673
  end
4611
4674
 
4675
+ # 数据库列信息
4676
+ class TableColumn < TencentCloud::Common::AbstractModel
4677
+ # @param Col: 列名称
4678
+ # @type Col: String
4679
+ # @param Type: 列类型
4680
+ # @type Type: String
4681
+
4682
+ attr_accessor :Col, :Type
4683
+
4684
+ def initialize(col=nil, type=nil)
4685
+ @Col = col
4686
+ @Type = type
4687
+ end
4688
+
4689
+ def deserialize(params)
4690
+ @Col = params['Col']
4691
+ @Type = params['Type']
4692
+ end
4693
+ end
4694
+
4612
4695
  # 数据库表权限
4613
4696
  class TablePrivilege < TencentCloud::Common::AbstractModel
4614
4697
  # @param Database: 数据库名
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.253
4
+ version: 1.0.257
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-10 00:00:00.000000000 Z
11
+ date: 2022-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common