tencentcloud-sdk-dcdb 3.0.460 → 3.0.461
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/v20180411/client.rb +29 -0
- data/lib/v20180411/models.rb +216 -0
- 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: eb0325a29b491ddee3347394d70e75aeedfec8cd
|
4
|
+
data.tar.gz: 4612519cf7b2c007913d7de2ff7f0bbbc00889b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a829ce6133006e09d4123a5ee03b55096465acc6e4b8899ffa6594b5e768b5fa66456c03d6bd7f1e90cc0e84d4963617991164ae60260e9a49e69c6de385c9b
|
7
|
+
data.tar.gz: 70592217408dfc89ac36ec44e9133e14c2644e9ba9055add708a9e7ba9b46cb692fbf9d91161018cd1f4e9aefce2532c05abc09da24e8bc21de8b7d374d519ef
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.461
|
data/lib/v20180411/client.rb
CHANGED
@@ -1138,6 +1138,35 @@ module TencentCloud
|
|
1138
1138
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1139
1139
|
end
|
1140
1140
|
|
1141
|
+
# 本接口(ModifyAccountPrivileges)用于修改云数据库的账户的权限信息。
|
1142
|
+
|
1143
|
+
# **注意**
|
1144
|
+
# - 系统保留库:"mysql",只开放["SELECT"]权限
|
1145
|
+
# - 只读账号授予读写权限会报错
|
1146
|
+
# - 不传该参数表示保留现有权限,如需清除,请在复杂类型Privileges字段传空数组
|
1147
|
+
|
1148
|
+
# @param request: Request instance for ModifyAccountPrivileges.
|
1149
|
+
# @type request: :class:`Tencentcloud::dcdb::V20180411::ModifyAccountPrivilegesRequest`
|
1150
|
+
# @rtype: :class:`Tencentcloud::dcdb::V20180411::ModifyAccountPrivilegesResponse`
|
1151
|
+
def ModifyAccountPrivileges(request)
|
1152
|
+
body = send_request('ModifyAccountPrivileges', request.serialize)
|
1153
|
+
response = JSON.parse(body)
|
1154
|
+
if response['Response'].key?('Error') == false
|
1155
|
+
model = ModifyAccountPrivilegesResponse.new
|
1156
|
+
model.deserialize(response['Response'])
|
1157
|
+
model
|
1158
|
+
else
|
1159
|
+
code = response['Response']['Error']['Code']
|
1160
|
+
message = response['Response']['Error']['Message']
|
1161
|
+
reqid = response['Response']['RequestId']
|
1162
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1163
|
+
end
|
1164
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1165
|
+
raise e
|
1166
|
+
rescue StandardError => e
|
1167
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1168
|
+
end
|
1169
|
+
|
1141
1170
|
# 本接口(ModifyDBInstanceName)用于修改实例名字
|
1142
1171
|
|
1143
1172
|
# @param request: Request instance for ModifyDBInstanceName.
|
data/lib/v20180411/models.rb
CHANGED
@@ -17,6 +17,26 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Dcdb
|
19
19
|
module V20180411
|
20
|
+
# 数据库账号信息
|
21
|
+
class Account < TencentCloud::Common::AbstractModel
|
22
|
+
# @param User: 账户的名称
|
23
|
+
# @type User: String
|
24
|
+
# @param Host: 账户的域名
|
25
|
+
# @type Host: String
|
26
|
+
|
27
|
+
attr_accessor :User, :Host
|
28
|
+
|
29
|
+
def initialize(user=nil, host=nil)
|
30
|
+
@User = user
|
31
|
+
@Host = host
|
32
|
+
end
|
33
|
+
|
34
|
+
def deserialize(params)
|
35
|
+
@User = params['User']
|
36
|
+
@Host = params['Host']
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
20
40
|
# ActiveHourDCDBInstance请求参数结构体
|
21
41
|
class ActiveHourDCDBInstanceRequest < TencentCloud::Common::AbstractModel
|
22
42
|
# @param InstanceIds: 待升级的实例ID列表。形如:["dcdbt-ow728lmc"],可以通过 DescribeDCDBInstances 查询实例详情获得。
|
@@ -277,6 +297,34 @@ module TencentCloud
|
|
277
297
|
end
|
278
298
|
end
|
279
299
|
|
300
|
+
# 列权限信息
|
301
|
+
class ColumnPrivilege < TencentCloud::Common::AbstractModel
|
302
|
+
# @param Database: 数据库名
|
303
|
+
# @type Database: String
|
304
|
+
# @param Table: 数据库表名
|
305
|
+
# @type Table: String
|
306
|
+
# @param Column: 数据库列名
|
307
|
+
# @type Column: String
|
308
|
+
# @param Privileges: 权限信息
|
309
|
+
# @type Privileges: Array
|
310
|
+
|
311
|
+
attr_accessor :Database, :Table, :Column, :Privileges
|
312
|
+
|
313
|
+
def initialize(database=nil, table=nil, column=nil, privileges=nil)
|
314
|
+
@Database = database
|
315
|
+
@Table = table
|
316
|
+
@Column = column
|
317
|
+
@Privileges = privileges
|
318
|
+
end
|
319
|
+
|
320
|
+
def deserialize(params)
|
321
|
+
@Database = params['Database']
|
322
|
+
@Table = params['Table']
|
323
|
+
@Column = params['Column']
|
324
|
+
@Privileges = params['Privileges']
|
325
|
+
end
|
326
|
+
end
|
327
|
+
|
280
328
|
# 约束类型值的范围
|
281
329
|
class ConstraintRange < TencentCloud::Common::AbstractModel
|
282
330
|
# @param Min: 约束类型为section时的最小值
|
@@ -1179,6 +1227,26 @@ module TencentCloud
|
|
1179
1227
|
end
|
1180
1228
|
end
|
1181
1229
|
|
1230
|
+
# 数据库权限
|
1231
|
+
class DatabasePrivilege < TencentCloud::Common::AbstractModel
|
1232
|
+
# @param Privileges: 权限信息
|
1233
|
+
# @type Privileges: Array
|
1234
|
+
# @param Database: 数据库名
|
1235
|
+
# @type Database: String
|
1236
|
+
|
1237
|
+
attr_accessor :Privileges, :Database
|
1238
|
+
|
1239
|
+
def initialize(privileges=nil, database=nil)
|
1240
|
+
@Privileges = privileges
|
1241
|
+
@Database = database
|
1242
|
+
end
|
1243
|
+
|
1244
|
+
def deserialize(params)
|
1245
|
+
@Privileges = params['Privileges']
|
1246
|
+
@Database = params['Database']
|
1247
|
+
end
|
1248
|
+
end
|
1249
|
+
|
1182
1250
|
# 数据库存储过程信息
|
1183
1251
|
class DatabaseProcedure < TencentCloud::Common::AbstractModel
|
1184
1252
|
# @param Proc: 存储过程名称
|
@@ -3454,6 +3522,106 @@ module TencentCloud
|
|
3454
3522
|
end
|
3455
3523
|
end
|
3456
3524
|
|
3525
|
+
# ModifyAccountPrivileges请求参数结构体
|
3526
|
+
class ModifyAccountPrivilegesRequest < TencentCloud::Common::AbstractModel
|
3527
|
+
# @param InstanceId: 实例 ID,格式如:tdsql-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
|
3528
|
+
# @type InstanceId: String
|
3529
|
+
# @param Accounts: 数据库的账号,包括用户名和域名。
|
3530
|
+
# @type Accounts: Array
|
3531
|
+
# @param GlobalPrivileges: 全局权限。其中,GlobalPrivileges 中权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "PROCESS", "DROP","REFERENCES","INDEX","ALTER","SHOW DATABASES","CREATE TEMPORARY TABLES","LOCK TABLES","EXECUTE","CREATE VIEW","SHOW VIEW","CREATE ROUTINE","ALTER ROUTINE","EVENT","TRIGGER"。
|
3532
|
+
# 注意,不传该参数表示保留现有权限,如需清除,该字段传空数组。
|
3533
|
+
# @type GlobalPrivileges: Array
|
3534
|
+
# @param DatabasePrivileges: 数据库的权限。Privileges 权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE TEMPORARY TABLES","LOCK TABLES","EXECUTE","CREATE VIEW","SHOW VIEW","CREATE ROUTINE","ALTER ROUTINE","EVENT","TRIGGER"。
|
3535
|
+
# 注意,不传该参数表示保留现有权限,如需清除,请在复杂类型Privileges字段传空数组。
|
3536
|
+
# @type DatabasePrivileges: Array
|
3537
|
+
# @param TablePrivileges: 数据库中表的权限。Privileges 权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE VIEW","SHOW VIEW", "TRIGGER"。
|
3538
|
+
# 注意,不传该参数表示保留现有权限,如需清除,请在复杂类型Privileges字段传空数组。
|
3539
|
+
# @type TablePrivileges: Array
|
3540
|
+
# @param ColumnPrivileges: 数据库表中列的权限。Privileges 权限的可选值为:"SELECT","INSERT","UPDATE","REFERENCES"。
|
3541
|
+
# 注意,不传该参数表示保留现有权限,如需清除,请在复杂类型Privileges字段传空数组。
|
3542
|
+
# @type ColumnPrivileges: Array
|
3543
|
+
# @param ViewPrivileges: 数据库视图的权限。Privileges 权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE VIEW","SHOW VIEW", "TRIGGER"。
|
3544
|
+
# 注意,不传该参数表示保留现有权限,如需清除,请在复杂类型Privileges字段传空数组。
|
3545
|
+
# @type ViewPrivileges: Array
|
3546
|
+
|
3547
|
+
attr_accessor :InstanceId, :Accounts, :GlobalPrivileges, :DatabasePrivileges, :TablePrivileges, :ColumnPrivileges, :ViewPrivileges
|
3548
|
+
|
3549
|
+
def initialize(instanceid=nil, accounts=nil, globalprivileges=nil, databaseprivileges=nil, tableprivileges=nil, columnprivileges=nil, viewprivileges=nil)
|
3550
|
+
@InstanceId = instanceid
|
3551
|
+
@Accounts = accounts
|
3552
|
+
@GlobalPrivileges = globalprivileges
|
3553
|
+
@DatabasePrivileges = databaseprivileges
|
3554
|
+
@TablePrivileges = tableprivileges
|
3555
|
+
@ColumnPrivileges = columnprivileges
|
3556
|
+
@ViewPrivileges = viewprivileges
|
3557
|
+
end
|
3558
|
+
|
3559
|
+
def deserialize(params)
|
3560
|
+
@InstanceId = params['InstanceId']
|
3561
|
+
unless params['Accounts'].nil?
|
3562
|
+
@Accounts = []
|
3563
|
+
params['Accounts'].each do |i|
|
3564
|
+
account_tmp = Account.new
|
3565
|
+
account_tmp.deserialize(i)
|
3566
|
+
@Accounts << account_tmp
|
3567
|
+
end
|
3568
|
+
end
|
3569
|
+
@GlobalPrivileges = params['GlobalPrivileges']
|
3570
|
+
unless params['DatabasePrivileges'].nil?
|
3571
|
+
@DatabasePrivileges = []
|
3572
|
+
params['DatabasePrivileges'].each do |i|
|
3573
|
+
databaseprivilege_tmp = DatabasePrivilege.new
|
3574
|
+
databaseprivilege_tmp.deserialize(i)
|
3575
|
+
@DatabasePrivileges << databaseprivilege_tmp
|
3576
|
+
end
|
3577
|
+
end
|
3578
|
+
unless params['TablePrivileges'].nil?
|
3579
|
+
@TablePrivileges = []
|
3580
|
+
params['TablePrivileges'].each do |i|
|
3581
|
+
tableprivilege_tmp = TablePrivilege.new
|
3582
|
+
tableprivilege_tmp.deserialize(i)
|
3583
|
+
@TablePrivileges << tableprivilege_tmp
|
3584
|
+
end
|
3585
|
+
end
|
3586
|
+
unless params['ColumnPrivileges'].nil?
|
3587
|
+
@ColumnPrivileges = []
|
3588
|
+
params['ColumnPrivileges'].each do |i|
|
3589
|
+
columnprivilege_tmp = ColumnPrivilege.new
|
3590
|
+
columnprivilege_tmp.deserialize(i)
|
3591
|
+
@ColumnPrivileges << columnprivilege_tmp
|
3592
|
+
end
|
3593
|
+
end
|
3594
|
+
unless params['ViewPrivileges'].nil?
|
3595
|
+
@ViewPrivileges = []
|
3596
|
+
params['ViewPrivileges'].each do |i|
|
3597
|
+
viewprivileges_tmp = ViewPrivileges.new
|
3598
|
+
viewprivileges_tmp.deserialize(i)
|
3599
|
+
@ViewPrivileges << viewprivileges_tmp
|
3600
|
+
end
|
3601
|
+
end
|
3602
|
+
end
|
3603
|
+
end
|
3604
|
+
|
3605
|
+
# ModifyAccountPrivileges返回参数结构体
|
3606
|
+
class ModifyAccountPrivilegesResponse < TencentCloud::Common::AbstractModel
|
3607
|
+
# @param FlowId: 异步任务的请求 ID,可使用此 ID [查询异步任务的执行结果](https://cloud.tencent.com/document/product/237/16177)。
|
3608
|
+
# @type FlowId: Integer
|
3609
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3610
|
+
# @type RequestId: String
|
3611
|
+
|
3612
|
+
attr_accessor :FlowId, :RequestId
|
3613
|
+
|
3614
|
+
def initialize(flowid=nil, requestid=nil)
|
3615
|
+
@FlowId = flowid
|
3616
|
+
@RequestId = requestid
|
3617
|
+
end
|
3618
|
+
|
3619
|
+
def deserialize(params)
|
3620
|
+
@FlowId = params['FlowId']
|
3621
|
+
@RequestId = params['RequestId']
|
3622
|
+
end
|
3623
|
+
end
|
3624
|
+
|
3457
3625
|
# ModifyDBInstanceName请求参数结构体
|
3458
3626
|
class ModifyDBInstanceNameRequest < TencentCloud::Common::AbstractModel
|
3459
3627
|
# @param InstanceId: 实例ID,形如tdsql-hdaprz0v
|
@@ -4661,6 +4829,30 @@ module TencentCloud
|
|
4661
4829
|
end
|
4662
4830
|
end
|
4663
4831
|
|
4832
|
+
# 数据库表权限
|
4833
|
+
class TablePrivilege < TencentCloud::Common::AbstractModel
|
4834
|
+
# @param Database: 数据库名
|
4835
|
+
# @type Database: String
|
4836
|
+
# @param Table: 数据库表名
|
4837
|
+
# @type Table: String
|
4838
|
+
# @param Privileges: 权限信息
|
4839
|
+
# @type Privileges: Array
|
4840
|
+
|
4841
|
+
attr_accessor :Database, :Table, :Privileges
|
4842
|
+
|
4843
|
+
def initialize(database=nil, table=nil, privileges=nil)
|
4844
|
+
@Database = database
|
4845
|
+
@Table = table
|
4846
|
+
@Privileges = privileges
|
4847
|
+
end
|
4848
|
+
|
4849
|
+
def deserialize(params)
|
4850
|
+
@Database = params['Database']
|
4851
|
+
@Table = params['Table']
|
4852
|
+
@Privileges = params['Privileges']
|
4853
|
+
end
|
4854
|
+
end
|
4855
|
+
|
4664
4856
|
# TerminateDedicatedDBInstance请求参数结构体
|
4665
4857
|
class TerminateDedicatedDBInstanceRequest < TencentCloud::Common::AbstractModel
|
4666
4858
|
# @param InstanceId: 实例 Id,形如:dcdbt-ow728lmc。
|
@@ -4830,6 +5022,30 @@ module TencentCloud
|
|
4830
5022
|
end
|
4831
5023
|
end
|
4832
5024
|
|
5025
|
+
# 视图权限信息
|
5026
|
+
class ViewPrivileges < TencentCloud::Common::AbstractModel
|
5027
|
+
# @param Database: 数据库名
|
5028
|
+
# @type Database: String
|
5029
|
+
# @param View: 数据库视图名
|
5030
|
+
# @type View: String
|
5031
|
+
# @param Privileges: 权限信息
|
5032
|
+
# @type Privileges: Array
|
5033
|
+
|
5034
|
+
attr_accessor :Database, :View, :Privileges
|
5035
|
+
|
5036
|
+
def initialize(database=nil, view=nil, privileges=nil)
|
5037
|
+
@Database = database
|
5038
|
+
@View = view
|
5039
|
+
@Privileges = privileges
|
5040
|
+
end
|
5041
|
+
|
5042
|
+
def deserialize(params)
|
5043
|
+
@Database = params['Database']
|
5044
|
+
@View = params['View']
|
5045
|
+
@Privileges = params['Privileges']
|
5046
|
+
end
|
5047
|
+
end
|
5048
|
+
|
4833
5049
|
# 可用区信息
|
4834
5050
|
class ZonesInfo < TencentCloud::Common::AbstractModel
|
4835
5051
|
# @param Zone: 可用区英文ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-dcdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.461
|
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-11-
|
11
|
+
date: 2022-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|