tencentcloud-sdk-dcdb 3.0.581 → 3.0.582
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 +24 -0
- data/lib/v20180411/models.rb +71 -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: 481d59452d9bc6ebdea440cdfb0313cbdd4aeb2f
|
4
|
+
data.tar.gz: 8794a414022da225a104a802006ecef38d25ce76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bcae3f71486c27b52f83ddccc4a542f4a07f2342a361363b057f11e504d13d4892f4c70b27a108f27d0f19f9390ef540168feec7c566aec18ba7e2ce9164e83
|
7
|
+
data.tar.gz: a8ce0e3803c63e223e535a857a5cdb2118f6b15861dc76844e62143fe00abeab5781cc3cbba99e4ecb1c7adfcf339b987774d0d98ec7b687dcbc0ae696fc83a6
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.582
|
data/lib/v20180411/client.rb
CHANGED
@@ -1235,6 +1235,30 @@ module TencentCloud
|
|
1235
1235
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1236
1236
|
end
|
1237
1237
|
|
1238
|
+
# 修改账号的一些配置,比如 max_user_connections
|
1239
|
+
|
1240
|
+
# @param request: Request instance for ModifyAccountConfig.
|
1241
|
+
# @type request: :class:`Tencentcloud::dcdb::V20180411::ModifyAccountConfigRequest`
|
1242
|
+
# @rtype: :class:`Tencentcloud::dcdb::V20180411::ModifyAccountConfigResponse`
|
1243
|
+
def ModifyAccountConfig(request)
|
1244
|
+
body = send_request('ModifyAccountConfig', request.serialize)
|
1245
|
+
response = JSON.parse(body)
|
1246
|
+
if response['Response'].key?('Error') == false
|
1247
|
+
model = ModifyAccountConfigResponse.new
|
1248
|
+
model.deserialize(response['Response'])
|
1249
|
+
model
|
1250
|
+
else
|
1251
|
+
code = response['Response']['Error']['Code']
|
1252
|
+
message = response['Response']['Error']['Message']
|
1253
|
+
reqid = response['Response']['RequestId']
|
1254
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1255
|
+
end
|
1256
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1257
|
+
raise e
|
1258
|
+
rescue StandardError => e
|
1259
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1260
|
+
end
|
1261
|
+
|
1238
1262
|
# 本接口(ModifyAccountDescription)用于修改云数据库账号备注。
|
1239
1263
|
# 注意:相同用户名,不同Host是不同的账号。
|
1240
1264
|
|
data/lib/v20180411/models.rb
CHANGED
@@ -325,6 +325,26 @@ module TencentCloud
|
|
325
325
|
end
|
326
326
|
end
|
327
327
|
|
328
|
+
# 配置信息。包含配置项Config,配置值Value
|
329
|
+
class ConfigValue < TencentCloud::Common::AbstractModel
|
330
|
+
# @param Config: 配置项的名称,支持填写max_user_connections
|
331
|
+
# @type Config: String
|
332
|
+
# @param Value: 配置值
|
333
|
+
# @type Value: String
|
334
|
+
|
335
|
+
attr_accessor :Config, :Value
|
336
|
+
|
337
|
+
def initialize(config=nil, value=nil)
|
338
|
+
@Config = config
|
339
|
+
@Value = value
|
340
|
+
end
|
341
|
+
|
342
|
+
def deserialize(params)
|
343
|
+
@Config = params['Config']
|
344
|
+
@Value = params['Value']
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
328
348
|
# 约束类型值的范围
|
329
349
|
class ConstraintRange < TencentCloud::Common::AbstractModel
|
330
350
|
# @param Min: 约束类型为section时的最小值
|
@@ -4121,6 +4141,57 @@ module TencentCloud
|
|
4121
4141
|
end
|
4122
4142
|
end
|
4123
4143
|
|
4144
|
+
# ModifyAccountConfig请求参数结构体
|
4145
|
+
class ModifyAccountConfigRequest < TencentCloud::Common::AbstractModel
|
4146
|
+
# @param InstanceId: 实例 ID,格式如:tdsqlshard-kpkvq5oj,与云数据库控制台页面中显示的实例 ID 相同。
|
4147
|
+
# @type InstanceId: String
|
4148
|
+
# @param UserName: 账号的名称
|
4149
|
+
# @type UserName: String
|
4150
|
+
# @param Host: 账号的域名
|
4151
|
+
# @type Host: String
|
4152
|
+
# @param Configs: 配置列表,每一个元素是Config和Value的组合
|
4153
|
+
# @type Configs: Array
|
4154
|
+
|
4155
|
+
attr_accessor :InstanceId, :UserName, :Host, :Configs
|
4156
|
+
|
4157
|
+
def initialize(instanceid=nil, username=nil, host=nil, configs=nil)
|
4158
|
+
@InstanceId = instanceid
|
4159
|
+
@UserName = username
|
4160
|
+
@Host = host
|
4161
|
+
@Configs = configs
|
4162
|
+
end
|
4163
|
+
|
4164
|
+
def deserialize(params)
|
4165
|
+
@InstanceId = params['InstanceId']
|
4166
|
+
@UserName = params['UserName']
|
4167
|
+
@Host = params['Host']
|
4168
|
+
unless params['Configs'].nil?
|
4169
|
+
@Configs = []
|
4170
|
+
params['Configs'].each do |i|
|
4171
|
+
configvalue_tmp = ConfigValue.new
|
4172
|
+
configvalue_tmp.deserialize(i)
|
4173
|
+
@Configs << configvalue_tmp
|
4174
|
+
end
|
4175
|
+
end
|
4176
|
+
end
|
4177
|
+
end
|
4178
|
+
|
4179
|
+
# ModifyAccountConfig返回参数结构体
|
4180
|
+
class ModifyAccountConfigResponse < TencentCloud::Common::AbstractModel
|
4181
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4182
|
+
# @type RequestId: String
|
4183
|
+
|
4184
|
+
attr_accessor :RequestId
|
4185
|
+
|
4186
|
+
def initialize(requestid=nil)
|
4187
|
+
@RequestId = requestid
|
4188
|
+
end
|
4189
|
+
|
4190
|
+
def deserialize(params)
|
4191
|
+
@RequestId = params['RequestId']
|
4192
|
+
end
|
4193
|
+
end
|
4194
|
+
|
4124
4195
|
# ModifyAccountDescription请求参数结构体
|
4125
4196
|
class ModifyAccountDescriptionRequest < TencentCloud::Common::AbstractModel
|
4126
4197
|
# @param InstanceId: 实例 ID,形如:dcdbt-ow728lmc。
|
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.582
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|