tencentcloud-sdk-mariadb 1.0.346 → 1.0.349

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: fd7ff71576d0f0fddf2f91cf886ec513c3b866e3
4
- data.tar.gz: 4d5ac82157974debf5b0a466ab7c70136bcf445c
3
+ metadata.gz: 11d264809906dda3a16123c58293c1f9466865c8
4
+ data.tar.gz: 863b8e8c893585f9dc7fb41e23bf8f75d405a639
5
5
  SHA512:
6
- metadata.gz: 92723108b481539344de98bf9cfe9b4b1313c30b859821e3a33f20a2d82abda2872036518f8771e08d4a8a9dd4a9ef91ca01b13003ca5fd43c9823847128c25e
7
- data.tar.gz: 6b829214f64105795b72297af1ba9da0bfbf58e084200ff950453c240b2b8104feaf1bbbf172d15c664d654d2c8fb0338eaae628d208b90bb961cba2d90b3e02
6
+ metadata.gz: 4ad9fe4c2d3bc903d159f9aade0803a767b9fef5e7115b7085441e8ecc858b9ff35debea2f77b3fc3d47d4c79b5a05ae03f3b9862ac4d7a8f0cc75ae711b57fd
7
+ data.tar.gz: 13249b90b6b808c3e24ea7ab4c7656f09c562cf4ae3d0bd3bc5fc6d02aa6632902559532272e75dfc7ab35595fb56ecd4dda31d88f4f7ec6024dca89142f8e78
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.346
1
+ 1.0.349
@@ -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.346
4
+ version: 1.0.349
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-01 00:00:00.000000000 Z
11
+ date: 2022-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common