tencentcloud-sdk-mariadb 1.0.252 → 1.0.256

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: d9dc3c81edb265fdca626e83756be9066941ed7c
4
- data.tar.gz: 333f0070c603427da8739a41db08e489b2b0c9f1
3
+ metadata.gz: ca82c8db413e93002126682da05cfa59e3e01d30
4
+ data.tar.gz: 70e894313e1de6811b5a198bfcb7bf4166700792
5
5
  SHA512:
6
- metadata.gz: e4cd774ee607c21119e5a7baf11e4157418db798947a1501af7f0520a20b4fff0ef1f0a45d8ab8abb0b36deba90629663a69b69dfb530b79f3d2b5fb66d7873a
7
- data.tar.gz: 8e25718b7cd420c2bcfd14e1b80aa1b52fb7f4cb4aa08d2327e23dae70fd4f4b9ce483e1398235872fd2e0e32e9de0a420b2955d9f6d00e30ff509b29a672bc8
6
+ metadata.gz: 0dfb85ef9bc05aa2bd06250e2a292f23142ca46b9eab5c81c94766ff10994b0f81c103f4d0093a5c9bec911da001abf1f698fee672dc66b704e7cd44c9dcc12d
7
+ data.tar.gz: b73219a9e1bd70be96ae00c77617ee7bf07e78426fc1419c550441058a1330e605f61e7158fe78dea41eab68b7156653d75b0168266aa3732f37c474dbd03f95
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.252
1
+ 1.0.256
@@ -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.252
4
+ version: 1.0.256
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-28 00:00:00.000000000 Z
11
+ date: 2022-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common