tencentcloud-sdk-dcdb 3.0.496 → 3.0.497

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: 60183c1f5cbf705cb1310581e90c35ef6789e919
4
- data.tar.gz: d2e913d261cbea4a934a0edfea37e53fbe15cc17
3
+ metadata.gz: c48d25a8122b771071b7377bf6dc6565a683ad9e
4
+ data.tar.gz: b9255e6136dee78e9341639412cca060986b3fe4
5
5
  SHA512:
6
- metadata.gz: a27e99cbf781dbe96bd1ad42d8304844309108d47c781baf10834647124bb9a246f2067eec29b49dc2f16cc8035a4354d796110e7236b78164667fbf499310a9
7
- data.tar.gz: d74741d316be6aeddade9b9cd9c1c3d9a30a806340708fcd3ed24d77ca3e35f703a62a00dd09ad6aee0e0ffe25eb46892f79a6e5bf566af8c10a4441e389c662
6
+ metadata.gz: 37e11e4be84b2c3bb4e89d75e5239f4c896bee18810a941e9c252a6a394126acccf7ced030daaff8b7c59089b2bd99d0a7415604e9e49708bc3502c8be860fed
7
+ data.tar.gz: 8c63a0d2d2e8c0528f293e9a8ee9ea0430f4104c9ac40e0d790ec0777fc4d157bba1c0c9f2e575727cea1f0f8b6c5b473e9a7b396ad656d75e25246cfe0bad9f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.496
1
+ 3.0.497
@@ -1533,6 +1533,30 @@ module TencentCloud
1533
1533
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1534
1534
  end
1535
1535
 
1536
+ # 本接口(UpgradeHourDCDBInstance)用于升级后付费分布式数据库实例。
1537
+
1538
+ # @param request: Request instance for UpgradeHourDCDBInstance.
1539
+ # @type request: :class:`Tencentcloud::dcdb::V20180411::UpgradeHourDCDBInstanceRequest`
1540
+ # @rtype: :class:`Tencentcloud::dcdb::V20180411::UpgradeHourDCDBInstanceResponse`
1541
+ def UpgradeHourDCDBInstance(request)
1542
+ body = send_request('UpgradeHourDCDBInstance', request.serialize)
1543
+ response = JSON.parse(body)
1544
+ if response['Response'].key?('Error') == false
1545
+ model = UpgradeHourDCDBInstanceResponse.new
1546
+ model.deserialize(response['Response'])
1547
+ model
1548
+ else
1549
+ code = response['Response']['Error']['Code']
1550
+ message = response['Response']['Error']['Message']
1551
+ reqid = response['Response']['RequestId']
1552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1553
+ end
1554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1555
+ raise e
1556
+ rescue StandardError => e
1557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1558
+ end
1559
+
1536
1560
 
1537
1561
  end
1538
1562
  end
@@ -4966,6 +4966,82 @@ module TencentCloud
4966
4966
  end
4967
4967
  end
4968
4968
 
4969
+ # UpgradeHourDCDBInstance请求参数结构体
4970
+ class UpgradeHourDCDBInstanceRequest < TencentCloud::Common::AbstractModel
4971
+ # @param InstanceId: 待升级的实例ID。形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
4972
+ # @type InstanceId: String
4973
+ # @param UpgradeType: 升级类型,取值范围:
4974
+ # <li> ADD: 新增分片 </li>
4975
+ # <li> EXPAND: 升级实例中的已有分片 </li>
4976
+ # <li> SPLIT: 将已有分片中的数据切分到新增分片上</li>
4977
+ # @type UpgradeType: String
4978
+ # @param AddShardConfig: 新增分片配置,当UpgradeType为ADD时生效。
4979
+ # @type AddShardConfig: :class:`Tencentcloud::Dcdb.v20180411.models.AddShardConfig`
4980
+ # @param ExpandShardConfig: 扩容分片配置,当UpgradeType为EXPAND时生效。
4981
+ # @type ExpandShardConfig: :class:`Tencentcloud::Dcdb.v20180411.models.ExpandShardConfig`
4982
+ # @param SplitShardConfig: 切分分片配置,当UpgradeType为SPLIT时生效。
4983
+ # @type SplitShardConfig: :class:`Tencentcloud::Dcdb.v20180411.models.SplitShardConfig`
4984
+ # @param SwitchStartTime: 切换开始时间,格式如: "2019-12-12 07:00:00"。开始时间必须在当前时间一个小时以后,3天以内。
4985
+ # @type SwitchStartTime: String
4986
+ # @param SwitchEndTime: 切换结束时间, 格式如: "2019-12-12 07:15:00",结束时间必须大于开始时间。
4987
+ # @type SwitchEndTime: String
4988
+ # @param SwitchAutoRetry: 是否自动重试。 0:不自动重试 1:自动重试
4989
+ # @type SwitchAutoRetry: Integer
4990
+ # @param Zones: 变更部署时指定的新可用区列表,第1个为主可用区,其余为从可用区
4991
+ # @type Zones: Array
4992
+
4993
+ attr_accessor :InstanceId, :UpgradeType, :AddShardConfig, :ExpandShardConfig, :SplitShardConfig, :SwitchStartTime, :SwitchEndTime, :SwitchAutoRetry, :Zones
4994
+
4995
+ def initialize(instanceid=nil, upgradetype=nil, addshardconfig=nil, expandshardconfig=nil, splitshardconfig=nil, switchstarttime=nil, switchendtime=nil, switchautoretry=nil, zones=nil)
4996
+ @InstanceId = instanceid
4997
+ @UpgradeType = upgradetype
4998
+ @AddShardConfig = addshardconfig
4999
+ @ExpandShardConfig = expandshardconfig
5000
+ @SplitShardConfig = splitshardconfig
5001
+ @SwitchStartTime = switchstarttime
5002
+ @SwitchEndTime = switchendtime
5003
+ @SwitchAutoRetry = switchautoretry
5004
+ @Zones = zones
5005
+ end
5006
+
5007
+ def deserialize(params)
5008
+ @InstanceId = params['InstanceId']
5009
+ @UpgradeType = params['UpgradeType']
5010
+ unless params['AddShardConfig'].nil?
5011
+ @AddShardConfig = AddShardConfig.new
5012
+ @AddShardConfig.deserialize(params['AddShardConfig'])
5013
+ end
5014
+ unless params['ExpandShardConfig'].nil?
5015
+ @ExpandShardConfig = ExpandShardConfig.new
5016
+ @ExpandShardConfig.deserialize(params['ExpandShardConfig'])
5017
+ end
5018
+ unless params['SplitShardConfig'].nil?
5019
+ @SplitShardConfig = SplitShardConfig.new
5020
+ @SplitShardConfig.deserialize(params['SplitShardConfig'])
5021
+ end
5022
+ @SwitchStartTime = params['SwitchStartTime']
5023
+ @SwitchEndTime = params['SwitchEndTime']
5024
+ @SwitchAutoRetry = params['SwitchAutoRetry']
5025
+ @Zones = params['Zones']
5026
+ end
5027
+ end
5028
+
5029
+ # UpgradeHourDCDBInstance返回参数结构体
5030
+ class UpgradeHourDCDBInstanceResponse < TencentCloud::Common::AbstractModel
5031
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5032
+ # @type RequestId: String
5033
+
5034
+ attr_accessor :RequestId
5035
+
5036
+ def initialize(requestid=nil)
5037
+ @RequestId = requestid
5038
+ end
5039
+
5040
+ def deserialize(params)
5041
+ @RequestId = params['RequestId']
5042
+ end
5043
+ end
5044
+
4969
5045
  # 用户任务信息
4970
5046
  class UserTaskInfo < TencentCloud::Common::AbstractModel
4971
5047
  # @param Id: 任务ID
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.496
4
+ version: 3.0.497
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-01-19 00:00:00.000000000 Z
11
+ date: 2023-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common