tencentcloud-sdk-cdb 3.0.975 → 3.0.976
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/v20170320/client.rb +24 -0
- data/lib/v20170320/models.rb +52 -4
- 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: 647a7f2f19664dc9f2d5b5b57b6d15c3833e9147
|
4
|
+
data.tar.gz: 09373e9af0fefb936e340232c7cf3b22ab98159f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36d932e5e996d3d6ff1494cb41b229d545f5d5ea3e088e7d5a8e24498dae89fae5df9014b0fcd50ad8f9e8f3b8f4a288a034eaa55d582a99f373e4cc1cab6afd
|
7
|
+
data.tar.gz: 287630be477ad5897af33a99f5059ad24fe10e033b4f985bd8e4da334cc11d82edd4a63ffbe299cc213e7f0d0624e94a1adcdacf891f4020c565f4d5f8e7739b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.976
|
data/lib/v20170320/client.rb
CHANGED
@@ -2527,6 +2527,30 @@ module TencentCloud
|
|
2527
2527
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2528
2528
|
end
|
2529
2529
|
|
2530
|
+
# 本接口(DescribeTableColumns)用于查询云数据库实例的指定数据库表的列信息,仅支持主实例和灾备实例。
|
2531
|
+
|
2532
|
+
# @param request: Request instance for DescribeTableColumns.
|
2533
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::DescribeTableColumnsRequest`
|
2534
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::DescribeTableColumnsResponse`
|
2535
|
+
def DescribeTableColumns(request)
|
2536
|
+
body = send_request('DescribeTableColumns', request.serialize)
|
2537
|
+
response = JSON.parse(body)
|
2538
|
+
if response['Response'].key?('Error') == false
|
2539
|
+
model = DescribeTableColumnsResponse.new
|
2540
|
+
model.deserialize(response['Response'])
|
2541
|
+
model
|
2542
|
+
else
|
2543
|
+
code = response['Response']['Error']['Code']
|
2544
|
+
message = response['Response']['Error']['Message']
|
2545
|
+
reqid = response['Response']['RequestId']
|
2546
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2547
|
+
end
|
2548
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2549
|
+
raise e
|
2550
|
+
rescue StandardError => e
|
2551
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2552
|
+
end
|
2553
|
+
|
2530
2554
|
# 本接口(DescribeTables)用于查询云数据库实例的数据库表信息,仅支持主实例和灾备实例,不支持只读实例。
|
2531
2555
|
|
2532
2556
|
# @param request: Request instance for DescribeTables.
|
data/lib/v20170320/models.rb
CHANGED
@@ -5701,8 +5701,8 @@ module TencentCloud
|
|
5701
5701
|
|
5702
5702
|
attr_accessor :Type, :ExpandCpu, :AutoStrategy, :RequestId
|
5703
5703
|
extend Gem::Deprecate
|
5704
|
-
deprecate :AutoStrategy, :none,
|
5705
|
-
deprecate :AutoStrategy=, :none,
|
5704
|
+
deprecate :AutoStrategy, :none, 2025, 1
|
5705
|
+
deprecate :AutoStrategy=, :none, 2025, 1
|
5706
5706
|
|
5707
5707
|
def initialize(type=nil, expandcpu=nil, autostrategy=nil, requestid=nil)
|
5708
5708
|
@Type = type
|
@@ -8101,6 +8101,54 @@ module TencentCloud
|
|
8101
8101
|
end
|
8102
8102
|
end
|
8103
8103
|
|
8104
|
+
# DescribeTableColumns请求参数结构体
|
8105
|
+
class DescribeTableColumnsRequest < TencentCloud::Common::AbstractModel
|
8106
|
+
# @param InstanceId: 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同,可使用[查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
|
8107
|
+
# @type InstanceId: String
|
8108
|
+
# @param Database: 数据库名称,可使用[查询数据库](https://cloud.tencent.com/document/api/253/7167)接口获得。
|
8109
|
+
# @type Database: String
|
8110
|
+
# @param Table: 数据库中的表的名称。
|
8111
|
+
# @type Table: String
|
8112
|
+
|
8113
|
+
attr_accessor :InstanceId, :Database, :Table
|
8114
|
+
|
8115
|
+
def initialize(instanceid=nil, database=nil, table=nil)
|
8116
|
+
@InstanceId = instanceid
|
8117
|
+
@Database = database
|
8118
|
+
@Table = table
|
8119
|
+
end
|
8120
|
+
|
8121
|
+
def deserialize(params)
|
8122
|
+
@InstanceId = params['InstanceId']
|
8123
|
+
@Database = params['Database']
|
8124
|
+
@Table = params['Table']
|
8125
|
+
end
|
8126
|
+
end
|
8127
|
+
|
8128
|
+
# DescribeTableColumns返回参数结构体
|
8129
|
+
class DescribeTableColumnsResponse < TencentCloud::Common::AbstractModel
|
8130
|
+
# @param TotalCount: 符合查询条件的实例总数。
|
8131
|
+
# @type TotalCount: Integer
|
8132
|
+
# @param Items: 返回的数据库列信息。
|
8133
|
+
# @type Items: Array
|
8134
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8135
|
+
# @type RequestId: String
|
8136
|
+
|
8137
|
+
attr_accessor :TotalCount, :Items, :RequestId
|
8138
|
+
|
8139
|
+
def initialize(totalcount=nil, items=nil, requestid=nil)
|
8140
|
+
@TotalCount = totalcount
|
8141
|
+
@Items = items
|
8142
|
+
@RequestId = requestid
|
8143
|
+
end
|
8144
|
+
|
8145
|
+
def deserialize(params)
|
8146
|
+
@TotalCount = params['TotalCount']
|
8147
|
+
@Items = params['Items']
|
8148
|
+
@RequestId = params['RequestId']
|
8149
|
+
end
|
8150
|
+
end
|
8151
|
+
|
8104
8152
|
# DescribeTables请求参数结构体
|
8105
8153
|
class DescribeTablesRequest < TencentCloud::Common::AbstractModel
|
8106
8154
|
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
|
@@ -11598,8 +11646,8 @@ module TencentCloud
|
|
11598
11646
|
|
11599
11647
|
attr_accessor :InstanceId, :ParamName, :OldValue, :NewValue, :IsSucess, :ModifyTime, :IsSuccess
|
11600
11648
|
extend Gem::Deprecate
|
11601
|
-
deprecate :IsSucess, :none,
|
11602
|
-
deprecate :IsSucess=, :none,
|
11649
|
+
deprecate :IsSucess, :none, 2025, 1
|
11650
|
+
deprecate :IsSucess=, :none, 2025, 1
|
11603
11651
|
|
11604
11652
|
def initialize(instanceid=nil, paramname=nil, oldvalue=nil, newvalue=nil, issucess=nil, modifytime=nil, issuccess=nil)
|
11605
11653
|
@InstanceId = instanceid
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.976
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|