tencentcloud-sdk-dcdb 3.0.580 → 3.0.582

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: 2d524e97438f2b46c63f8eeb881d07155d7ec4bd
4
- data.tar.gz: 05078f5fe1b4857ff05cd4994dec90994cb7ef56
3
+ metadata.gz: 481d59452d9bc6ebdea440cdfb0313cbdd4aeb2f
4
+ data.tar.gz: 8794a414022da225a104a802006ecef38d25ce76
5
5
  SHA512:
6
- metadata.gz: 8357313afb513cabecf27723493892b000c5748c0b9fa4658907692dc61a397d89009e36ebd41105a3a0e031335a805701af94c71944bc85c9d8fd900f434355
7
- data.tar.gz: 8ac82fb800852dd7c40d96b43bda5378df4d0158e5e0dc74ae3a8ab403581f99f5283aad22abd60810b25814ab3252ac8e7aa93643028e6bdab2f17a744d09f8
6
+ metadata.gz: 4bcae3f71486c27b52f83ddccc4a542f4a07f2342a361363b057f11e504d13d4892f4c70b27a108f27d0f19f9390ef540168feec7c566aec18ba7e2ce9164e83
7
+ data.tar.gz: a8ce0e3803c63e223e535a857a5cdb2118f6b15861dc76844e62143fe00abeab5781cc3cbba99e4ecb1c7adfcf339b987774d0d98ec7b687dcbc0ae696fc83a6
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.580
1
+ 3.0.582
@@ -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
 
@@ -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.580
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-05-30 00:00:00.000000000 Z
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