tencentcloud-sdk-mariadb 1.0.251 → 1.0.255

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: 7a4bd15681dc88d5772ef1b32960e1759dd24788
4
- data.tar.gz: 4a69615e55b1946d448a2dc511afd6784f5c6870
3
+ metadata.gz: 80db3292fcd2c2d94cae5a73baa11b3f29a968b8
4
+ data.tar.gz: 828522c128c82558c5c9a26e8466314743b00102
5
5
  SHA512:
6
- metadata.gz: 1bc163289811ba9c84d430701ac26486d22cd9ffd83738be0ac162e4b22b81ddfa750504c7849bdc129848d555dd369d1eb25c00f6c3a280f5e3ddcc80e3ce9a
7
- data.tar.gz: 88837cff15e3f618c7bbd9bd68c9edd7e04018b631fb475b350b30fcb4442b357b4b0b8620fde763759da5fcf9ca86af6ac10f2f62e17659a1896a34231d3522
6
+ metadata.gz: e3d1ad3b7fd684fdffcf699240d057ab081167777d7e94979f517168bee31a39ebe440a9c877b66dd770cd337f7cb178b31a4769cb716ca30fdd5e4348ea396d
7
+ data.tar.gz: b3f307ffc28b2426bdfd48241dba824f10d44e2dad76c25b3aa3f0233db41f4c69b91888f54b3da69b481b1f653bcafb0a09d6330052901892e23012b712f984
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.251
1
+ 1.0.255
@@ -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.251
4
+ version: 1.0.255
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-01-27 00:00:00.000000000 Z
11
+ date: 2022-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common