tencentcloud-sdk-mariadb 1.0.253 → 1.0.254

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: 9c019d7972d8c09d145590223b0c1d41bb39881e
4
+ data.tar.gz: b6c3061f1bffeaf19bbe9a832b08772eb6592573
5
5
  SHA512:
6
- metadata.gz: c2988efffa6a7265302b3ff749080ed102a6f577fa9b15757538511a77177eedf9ef1edd62fa07caac6212f531222615b58b73beb57b4ab2b95fbca2938f2b99
7
- data.tar.gz: 7c7d04588357a80e0cf1becd4f605fe21272d55a2ad2e9be64acf0ed9d587d4f15ed4176e07a9e87ede36a8f2b0da92c2a472e2d6ef01aba829b16c2afa129cf
6
+ metadata.gz: 3b5de16ad3964f012a3e38283535fa98fae02f532f5a1321bb53b734ca655f768ae2205bfa81214e311ef1c931da11d49d40c30d884193fb899dcebbebc81290
7
+ data.tar.gz: 9f9c9cd550cf1796d7ef25684cfdc3962b19116f6ab5c56a700d43159b4bb27606cf13637ad4042c1b21cd0d79ebf00aece15d2543a0635cfba9296adbd1a6a6
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.253
1
+ 1.0.254
@@ -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.254
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-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common