tencentcloud-sdk-cdb 3.0.895 → 3.0.896
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/v20170320/client.rb +48 -0
- data/lib/v20170320/models.rb +90 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0ad7e4746572fb44c9ac74ed4af506d37db8c35
|
4
|
+
data.tar.gz: 43343e93788889ffdba28787e3b2dbbf1ad5549b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca86a991a0dd1e386565ba90a9a1f8bd26cc6f1785766061e716ec16bc10a7663811853bb75718c6e3ece208597275531aefa2893f733ffade6c9d3415c31632
|
7
|
+
data.tar.gz: a3ec83c8d8bdf5d49096dadcab889b8452e641c1e95f0fdd117829ddc5be373dddc9a7b6d69815b58537304ac3ef22f3ac0b21ede840464c16b95f8eec836374
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.896
|
data/lib/v20170320/client.rb
CHANGED
@@ -2115,6 +2115,30 @@ module TencentCloud
|
|
2115
2115
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2116
2116
|
end
|
2117
2117
|
|
2118
|
+
# 该接口(DescribeInstanceUpgradeCheckJob)查询实例版本升级校验任务。
|
2119
|
+
|
2120
|
+
# @param request: Request instance for DescribeInstanceUpgradeCheckJob.
|
2121
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::DescribeInstanceUpgradeCheckJobRequest`
|
2122
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::DescribeInstanceUpgradeCheckJobResponse`
|
2123
|
+
def DescribeInstanceUpgradeCheckJob(request)
|
2124
|
+
body = send_request('DescribeInstanceUpgradeCheckJob', request.serialize)
|
2125
|
+
response = JSON.parse(body)
|
2126
|
+
if response['Response'].key?('Error') == false
|
2127
|
+
model = DescribeInstanceUpgradeCheckJobResponse.new
|
2128
|
+
model.deserialize(response['Response'])
|
2129
|
+
model
|
2130
|
+
else
|
2131
|
+
code = response['Response']['Error']['Code']
|
2132
|
+
message = response['Response']['Error']['Message']
|
2133
|
+
reqid = response['Response']['RequestId']
|
2134
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2135
|
+
end
|
2136
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2137
|
+
raise e
|
2138
|
+
rescue StandardError => e
|
2139
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2140
|
+
end
|
2141
|
+
|
2118
2142
|
# 本接口(DescribeInstanceUpgradeType)用于查询数据库实例升级类型。
|
2119
2143
|
|
2120
2144
|
# @param request: Request instance for DescribeInstanceUpgradeType.
|
@@ -3917,6 +3941,30 @@ module TencentCloud
|
|
3917
3941
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3918
3942
|
end
|
3919
3943
|
|
3944
|
+
# 该接口(SubmitInstanceUpgradeCheckJob)提交实例版本升级校验任务。
|
3945
|
+
|
3946
|
+
# @param request: Request instance for SubmitInstanceUpgradeCheckJob.
|
3947
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::SubmitInstanceUpgradeCheckJobRequest`
|
3948
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::SubmitInstanceUpgradeCheckJobResponse`
|
3949
|
+
def SubmitInstanceUpgradeCheckJob(request)
|
3950
|
+
body = send_request('SubmitInstanceUpgradeCheckJob', request.serialize)
|
3951
|
+
response = JSON.parse(body)
|
3952
|
+
if response['Response'].key?('Error') == false
|
3953
|
+
model = SubmitInstanceUpgradeCheckJobResponse.new
|
3954
|
+
model.deserialize(response['Response'])
|
3955
|
+
model
|
3956
|
+
else
|
3957
|
+
code = response['Response']['Error']['Code']
|
3958
|
+
message = response['Response']['Error']['Message']
|
3959
|
+
reqid = response['Response']['RequestId']
|
3960
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3961
|
+
end
|
3962
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3963
|
+
raise e
|
3964
|
+
rescue StandardError => e
|
3965
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3966
|
+
end
|
3967
|
+
|
3920
3968
|
# 数据库代理配置变更或则升级版本后手动发起立即切换
|
3921
3969
|
|
3922
3970
|
# @param request: Request instance for SwitchCDBProxy.
|
data/lib/v20170320/models.rb
CHANGED
@@ -7007,6 +7007,50 @@ module TencentCloud
|
|
7007
7007
|
end
|
7008
7008
|
end
|
7009
7009
|
|
7010
|
+
# DescribeInstanceUpgradeCheckJob请求参数结构体
|
7011
|
+
class DescribeInstanceUpgradeCheckJobRequest < TencentCloud::Common::AbstractModel
|
7012
|
+
# @param InstanceId: 实例ID
|
7013
|
+
# @type InstanceId: String
|
7014
|
+
# @param DstMysqlVersion: 目标数据库版本
|
7015
|
+
# @type DstMysqlVersion: String
|
7016
|
+
|
7017
|
+
attr_accessor :InstanceId, :DstMysqlVersion
|
7018
|
+
|
7019
|
+
def initialize(instanceid=nil, dstmysqlversion=nil)
|
7020
|
+
@InstanceId = instanceid
|
7021
|
+
@DstMysqlVersion = dstmysqlversion
|
7022
|
+
end
|
7023
|
+
|
7024
|
+
def deserialize(params)
|
7025
|
+
@InstanceId = params['InstanceId']
|
7026
|
+
@DstMysqlVersion = params['DstMysqlVersion']
|
7027
|
+
end
|
7028
|
+
end
|
7029
|
+
|
7030
|
+
# DescribeInstanceUpgradeCheckJob返回参数结构体
|
7031
|
+
class DescribeInstanceUpgradeCheckJobResponse < TencentCloud::Common::AbstractModel
|
7032
|
+
# @param ExistUpgradeCheckJob: 24小时内是否存在历史升级校验任务
|
7033
|
+
# @type ExistUpgradeCheckJob: Boolean
|
7034
|
+
# @param JobId: 任务id
|
7035
|
+
# @type JobId: Integer
|
7036
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7037
|
+
# @type RequestId: String
|
7038
|
+
|
7039
|
+
attr_accessor :ExistUpgradeCheckJob, :JobId, :RequestId
|
7040
|
+
|
7041
|
+
def initialize(existupgradecheckjob=nil, jobid=nil, requestid=nil)
|
7042
|
+
@ExistUpgradeCheckJob = existupgradecheckjob
|
7043
|
+
@JobId = jobid
|
7044
|
+
@RequestId = requestid
|
7045
|
+
end
|
7046
|
+
|
7047
|
+
def deserialize(params)
|
7048
|
+
@ExistUpgradeCheckJob = params['ExistUpgradeCheckJob']
|
7049
|
+
@JobId = params['JobId']
|
7050
|
+
@RequestId = params['RequestId']
|
7051
|
+
end
|
7052
|
+
end
|
7053
|
+
|
7010
7054
|
# DescribeInstanceUpgradeType请求参数结构体
|
7011
7055
|
class DescribeInstanceUpgradeTypeRequest < TencentCloud::Common::AbstractModel
|
7012
7056
|
# @param InstanceId: 实例id
|
@@ -13341,6 +13385,46 @@ module TencentCloud
|
|
13341
13385
|
end
|
13342
13386
|
end
|
13343
13387
|
|
13388
|
+
# SubmitInstanceUpgradeCheckJob请求参数结构体
|
13389
|
+
class SubmitInstanceUpgradeCheckJobRequest < TencentCloud::Common::AbstractModel
|
13390
|
+
# @param InstanceId: 实例D
|
13391
|
+
# @type InstanceId: String
|
13392
|
+
# @param DstMysqlVersion: 目标数据库版本
|
13393
|
+
# @type DstMysqlVersion: String
|
13394
|
+
|
13395
|
+
attr_accessor :InstanceId, :DstMysqlVersion
|
13396
|
+
|
13397
|
+
def initialize(instanceid=nil, dstmysqlversion=nil)
|
13398
|
+
@InstanceId = instanceid
|
13399
|
+
@DstMysqlVersion = dstmysqlversion
|
13400
|
+
end
|
13401
|
+
|
13402
|
+
def deserialize(params)
|
13403
|
+
@InstanceId = params['InstanceId']
|
13404
|
+
@DstMysqlVersion = params['DstMysqlVersion']
|
13405
|
+
end
|
13406
|
+
end
|
13407
|
+
|
13408
|
+
# SubmitInstanceUpgradeCheckJob返回参数结构体
|
13409
|
+
class SubmitInstanceUpgradeCheckJobResponse < TencentCloud::Common::AbstractModel
|
13410
|
+
# @param JobId: 任务ID
|
13411
|
+
# @type JobId: Integer
|
13412
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
13413
|
+
# @type RequestId: String
|
13414
|
+
|
13415
|
+
attr_accessor :JobId, :RequestId
|
13416
|
+
|
13417
|
+
def initialize(jobid=nil, requestid=nil)
|
13418
|
+
@JobId = jobid
|
13419
|
+
@RequestId = requestid
|
13420
|
+
end
|
13421
|
+
|
13422
|
+
def deserialize(params)
|
13423
|
+
@JobId = params['JobId']
|
13424
|
+
@RequestId = params['RequestId']
|
13425
|
+
end
|
13426
|
+
end
|
13427
|
+
|
13344
13428
|
# SwitchCDBProxy请求参数结构体
|
13345
13429
|
class SwitchCDBProxyRequest < TencentCloud::Common::AbstractModel
|
13346
13430
|
# @param InstanceId: 实例ID
|
@@ -13801,17 +13885,20 @@ module TencentCloud
|
|
13801
13885
|
# @type UpgradeSubversion: Integer
|
13802
13886
|
# @param MaxDelayTime: 延迟阈值。取值范围1~10
|
13803
13887
|
# @type MaxDelayTime: Integer
|
13888
|
+
# @param IgnoreErrKeyword: 5.7升级8.0是否忽略关键字错误,取值范围[0,1],1表示忽略,0表示不忽略
|
13889
|
+
# @type IgnoreErrKeyword: Integer
|
13804
13890
|
# @param ParamList: 版本升级支持指定参数
|
13805
13891
|
# @type ParamList: Array
|
13806
13892
|
|
13807
|
-
attr_accessor :InstanceId, :EngineVersion, :WaitSwitch, :UpgradeSubversion, :MaxDelayTime, :ParamList
|
13893
|
+
attr_accessor :InstanceId, :EngineVersion, :WaitSwitch, :UpgradeSubversion, :MaxDelayTime, :IgnoreErrKeyword, :ParamList
|
13808
13894
|
|
13809
|
-
def initialize(instanceid=nil, engineversion=nil, waitswitch=nil, upgradesubversion=nil, maxdelaytime=nil, paramlist=nil)
|
13895
|
+
def initialize(instanceid=nil, engineversion=nil, waitswitch=nil, upgradesubversion=nil, maxdelaytime=nil, ignoreerrkeyword=nil, paramlist=nil)
|
13810
13896
|
@InstanceId = instanceid
|
13811
13897
|
@EngineVersion = engineversion
|
13812
13898
|
@WaitSwitch = waitswitch
|
13813
13899
|
@UpgradeSubversion = upgradesubversion
|
13814
13900
|
@MaxDelayTime = maxdelaytime
|
13901
|
+
@IgnoreErrKeyword = ignoreerrkeyword
|
13815
13902
|
@ParamList = paramlist
|
13816
13903
|
end
|
13817
13904
|
|
@@ -13821,6 +13908,7 @@ module TencentCloud
|
|
13821
13908
|
@WaitSwitch = params['WaitSwitch']
|
13822
13909
|
@UpgradeSubversion = params['UpgradeSubversion']
|
13823
13910
|
@MaxDelayTime = params['MaxDelayTime']
|
13911
|
+
@IgnoreErrKeyword = params['IgnoreErrKeyword']
|
13824
13912
|
unless params['ParamList'].nil?
|
13825
13913
|
@ParamList = []
|
13826
13914
|
params['ParamList'].each do |i|
|