tencentcloud-sdk-mariadb 1.0.347 → 1.0.350

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: 5e1d62d0d4cfe7beb10510fe142459e30161f39d
4
- data.tar.gz: 5f7ea2d67385a73ee1d5c2a3b1cfccadbbebc2f6
3
+ metadata.gz: 9be7dabfacf3f638275fb94b0b7f35873896f587
4
+ data.tar.gz: cf0298138e81a96ffbe6c567389376060946115f
5
5
  SHA512:
6
- metadata.gz: 78db168427ab75d163273f50e413a2da75f3de637a103a8be7bce6b5486217a1ab45f62d78fbf550e90dd7d24cd9eeb4963c839dc770f2f534a41e04559dd5fe
7
- data.tar.gz: 610a43bdd6fb286901b12edf82019d1b37a571e2ed55dadbb2cceededa7343c3217470f32829e95e082ebe79539cfe2f84d2a40bd67002e9f493c3bf2dadc980
6
+ metadata.gz: c2605349ba5067d6e253162520ef91e10fba740069cc355b5f71ee77bb12466ec8b47ee3a2ada54d86246cc161681511b6beee438a2a0b83121041a4d33f3346
7
+ data.tar.gz: d23f816a07954e23dff732e56aa005a95738d5ea4f86fde8adbda2268e74cf778375131a3de41e5778badcf7a550e49a60326251b864f70696e39ca76368e3b0
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.347
1
+ 1.0.350
@@ -992,6 +992,30 @@ module TencentCloud
992
992
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
993
993
  end
994
994
 
995
+ # 本接口(DestroyDBInstance)用于销毁已隔离的包年包月实例。
996
+
997
+ # @param request: Request instance for DestroyDBInstance.
998
+ # @type request: :class:`Tencentcloud::mariadb::V20170312::DestroyDBInstanceRequest`
999
+ # @rtype: :class:`Tencentcloud::mariadb::V20170312::DestroyDBInstanceResponse`
1000
+ def DestroyDBInstance(request)
1001
+ body = send_request('DestroyDBInstance', request.serialize)
1002
+ response = JSON.parse(body)
1003
+ if response['Response'].key?('Error') == false
1004
+ model = DestroyDBInstanceResponse.new
1005
+ model.deserialize(response['Response'])
1006
+ model
1007
+ else
1008
+ code = response['Response']['Error']['Code']
1009
+ message = response['Response']['Error']['Message']
1010
+ reqid = response['Response']['RequestId']
1011
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1012
+ end
1013
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1014
+ raise e
1015
+ rescue StandardError => e
1016
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1017
+ end
1018
+
995
1019
  # 本接口(DestroyHourDBInstance)用于销毁按量计费实例。
996
1020
 
997
1021
  # @param request: Request instance for DestroyHourDBInstance.
@@ -369,10 +369,14 @@ module TencentCloud
369
369
  # @type Description: String
370
370
  # @param DelayThresh: 根据传入时间判断备机不可用
371
371
  # @type DelayThresh: Integer
372
+ # @param SlaveConst: 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。
373
+ # @type SlaveConst: Integer
374
+ # @param MaxUserConnections: 用户最大连接数限制参数。不传或者传0表示为不限制,对应max_user_connections参数,目前10.1内核版本不支持设置。
375
+ # @type MaxUserConnections: Integer
372
376
 
373
- attr_accessor :InstanceId, :UserName, :Host, :Password, :ReadOnly, :Description, :DelayThresh
377
+ attr_accessor :InstanceId, :UserName, :Host, :Password, :ReadOnly, :Description, :DelayThresh, :SlaveConst, :MaxUserConnections
374
378
 
375
- def initialize(instanceid=nil, username=nil, host=nil, password=nil, readonly=nil, description=nil, delaythresh=nil)
379
+ def initialize(instanceid=nil, username=nil, host=nil, password=nil, readonly=nil, description=nil, delaythresh=nil, slaveconst=nil, maxuserconnections=nil)
376
380
  @InstanceId = instanceid
377
381
  @UserName = username
378
382
  @Host = host
@@ -380,6 +384,8 @@ module TencentCloud
380
384
  @ReadOnly = readonly
381
385
  @Description = description
382
386
  @DelayThresh = delaythresh
387
+ @SlaveConst = slaveconst
388
+ @MaxUserConnections = maxuserconnections
383
389
  end
384
390
 
385
391
  def deserialize(params)
@@ -390,6 +396,8 @@ module TencentCloud
390
396
  @ReadOnly = params['ReadOnly']
391
397
  @Description = params['Description']
392
398
  @DelayThresh = params['DelayThresh']
399
+ @SlaveConst = params['SlaveConst']
400
+ @MaxUserConnections = params['MaxUserConnections']
393
401
  end
394
402
  end
395
403
 
@@ -886,10 +894,12 @@ module TencentCloud
886
894
  # @param DelayThresh: 该字段对只读帐号有意义,表示选择主备延迟小于该值的备机
887
895
  # 注意:此字段可能返回 null,表示取不到有效值。
888
896
  # @type DelayThresh: Integer
897
+ # @param SlaveConst: 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。
898
+ # @type SlaveConst: Integer
889
899
 
890
- attr_accessor :UserName, :Host, :Description, :CreateTime, :UpdateTime, :ReadOnly, :DelayThresh
900
+ attr_accessor :UserName, :Host, :Description, :CreateTime, :UpdateTime, :ReadOnly, :DelayThresh, :SlaveConst
891
901
 
892
- def initialize(username=nil, host=nil, description=nil, createtime=nil, updatetime=nil, readonly=nil, delaythresh=nil)
902
+ def initialize(username=nil, host=nil, description=nil, createtime=nil, updatetime=nil, readonly=nil, delaythresh=nil, slaveconst=nil)
893
903
  @UserName = username
894
904
  @Host = host
895
905
  @Description = description
@@ -897,6 +907,7 @@ module TencentCloud
897
907
  @UpdateTime = updatetime
898
908
  @ReadOnly = readonly
899
909
  @DelayThresh = delaythresh
910
+ @SlaveConst = slaveconst
900
911
  end
901
912
 
902
913
  def deserialize(params)
@@ -907,6 +918,7 @@ module TencentCloud
907
918
  @UpdateTime = params['UpdateTime']
908
919
  @ReadOnly = params['ReadOnly']
909
920
  @DelayThresh = params['DelayThresh']
921
+ @SlaveConst = params['SlaveConst']
910
922
  end
911
923
  end
912
924
 
@@ -3147,6 +3159,46 @@ module TencentCloud
3147
3159
  end
3148
3160
  end
3149
3161
 
3162
+ # DestroyDBInstance请求参数结构体
3163
+ class DestroyDBInstanceRequest < TencentCloud::Common::AbstractModel
3164
+ # @param InstanceId: 实例 ID,格式如:tdsqlshard-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
3165
+ # @type InstanceId: String
3166
+
3167
+ attr_accessor :InstanceId
3168
+
3169
+ def initialize(instanceid=nil)
3170
+ @InstanceId = instanceid
3171
+ end
3172
+
3173
+ def deserialize(params)
3174
+ @InstanceId = params['InstanceId']
3175
+ end
3176
+ end
3177
+
3178
+ # DestroyDBInstance返回参数结构体
3179
+ class DestroyDBInstanceResponse < TencentCloud::Common::AbstractModel
3180
+ # @param InstanceId: 实例 ID,与入参InstanceId一致。
3181
+ # @type InstanceId: String
3182
+ # @param FlowId: 异步任务的请求 ID,可使用此 ID [查询异步任务的执行结果](https://cloud.tencent.com/document/product/237/16177)。
3183
+ # @type FlowId: Integer
3184
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3185
+ # @type RequestId: String
3186
+
3187
+ attr_accessor :InstanceId, :FlowId, :RequestId
3188
+
3189
+ def initialize(instanceid=nil, flowid=nil, requestid=nil)
3190
+ @InstanceId = instanceid
3191
+ @FlowId = flowid
3192
+ @RequestId = requestid
3193
+ end
3194
+
3195
+ def deserialize(params)
3196
+ @InstanceId = params['InstanceId']
3197
+ @FlowId = params['FlowId']
3198
+ @RequestId = params['RequestId']
3199
+ end
3200
+ end
3201
+
3150
3202
  # DestroyHourDBInstance请求参数结构体
3151
3203
  class DestroyHourDBInstanceRequest < TencentCloud::Common::AbstractModel
3152
3204
  # @param InstanceId: 实例 ID,格式如:tdsql-avw0207d,与云数据库控制台页面中显示的实例 ID 相同。
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.347
4
+ version: 1.0.350
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-07-03 00:00:00.000000000 Z
11
+ date: 2022-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common