tencentcloud-sdk-cdb 1.0.228 → 1.0.229

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: 2e7c12dba95e4602d7ba21775ede000268ed3fe8
4
- data.tar.gz: 23c0fab9b003e7cb3836b32b6d8ac3913efaede5
3
+ metadata.gz: 5a4beece6097a6865c780c07af0b2f0080b9b2fc
4
+ data.tar.gz: 8794c85df1b7200a1d70d934964f7eb62f45bdd8
5
5
  SHA512:
6
- metadata.gz: 2e659a54ad59921c4e0fd8af1152a46ed3276e3191cb49be7a64795c122ed237e0ff27a3d75975bb6f4b1ec1227af18315ba1b9b4f385d48fc921739d11aff73
7
- data.tar.gz: d4bbd9bac90f8ed40abfdfd639aca4b20362ca2da1dd01f820819072e9483a572d3267b7178f6acad9be9a14f0310125f770c60cea881c28da9f6e547f2b1b13
6
+ metadata.gz: 5d0be10b5b2e6c10d003253daa8961925a433fd7ed7481d10d8af891d6e2070b82de668f8eb44b717fd45e0524932faa00270875c2e33215b280b37751525600
7
+ data.tar.gz: feb8d00c95bb3ac5490cab34cfb7707b043fb925a05f7b8667c7e83719865ec7b3fff36c52c7b181697e1efe36ca34a79045cc496c5fb6f49c58ca863f352ecd
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.228
1
+ 1.0.229
@@ -2387,7 +2387,7 @@ module TencentCloud
2387
2387
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2388
2388
  end
2389
2389
 
2390
- # 本接口(ModifyRoGroupInfo)用于更新云数据库只读组的信息。包括设置实例延迟超限剔除策略,设置只读实例读权重等。
2390
+ # 本接口(ModifyRoGroupInfo)用于更新云数据库只读组的信息。包括设置实例延迟超限剔除策略,设置只读实例读权重,设置复制延迟时间等。
2391
2391
 
2392
2392
  # @param request: Request instance for ModifyRoGroupInfo.
2393
2393
  # @type request: :class:`Tencentcloud::cdb::V20170320::ModifyRoGroupInfoRequest`
@@ -2411,30 +2411,6 @@ module TencentCloud
2411
2411
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2412
2412
  end
2413
2413
 
2414
- # 修改延迟只读实例的延迟复制时间。
2415
-
2416
- # @param request: Request instance for ModifyRoReplicationDelay.
2417
- # @type request: :class:`Tencentcloud::cdb::V20170320::ModifyRoReplicationDelayRequest`
2418
- # @rtype: :class:`Tencentcloud::cdb::V20170320::ModifyRoReplicationDelayResponse`
2419
- def ModifyRoReplicationDelay(request)
2420
- body = send_request('ModifyRoReplicationDelay', request.serialize)
2421
- response = JSON.parse(body)
2422
- if response['Response'].key?('Error') == false
2423
- model = ModifyRoReplicationDelayResponse.new
2424
- model.deserialize(response['Response'])
2425
- model
2426
- else
2427
- code = response['Response']['Error']['Code']
2428
- message = response['Response']['Error']['Message']
2429
- reqid = response['Response']['RequestId']
2430
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2431
- end
2432
- rescue TencentCloud::Common::TencentCloudSDKException => e
2433
- raise e
2434
- rescue StandardError => e
2435
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2436
- end
2437
-
2438
2414
  # 本接口(ModifyTimeWindow)用于更新云数据库实例的维护时间窗口。
2439
2415
 
2440
2416
  # @param request: Request instance for ModifyTimeWindow.
@@ -2637,30 +2613,6 @@ module TencentCloud
2637
2613
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2638
2614
  end
2639
2615
 
2640
- # 启动延迟只读实例的延迟复制。
2641
-
2642
- # @param request: Request instance for StartDelayReplication.
2643
- # @type request: :class:`Tencentcloud::cdb::V20170320::StartDelayReplicationRequest`
2644
- # @rtype: :class:`Tencentcloud::cdb::V20170320::StartDelayReplicationResponse`
2645
- def StartDelayReplication(request)
2646
- body = send_request('StartDelayReplication', request.serialize)
2647
- response = JSON.parse(body)
2648
- if response['Response'].key?('Error') == false
2649
- model = StartDelayReplicationResponse.new
2650
- model.deserialize(response['Response'])
2651
- model
2652
- else
2653
- code = response['Response']['Error']['Code']
2654
- message = response['Response']['Error']['Message']
2655
- reqid = response['Response']['RequestId']
2656
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2657
- end
2658
- rescue TencentCloud::Common::TencentCloudSDKException => e
2659
- raise e
2660
- rescue StandardError => e
2661
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2662
- end
2663
-
2664
2616
  # 本接口(StopDBImportJob)用于终止数据导入任务。
2665
2617
 
2666
2618
  # @param request: Request instance for StopDBImportJob.
@@ -2685,30 +2637,6 @@ module TencentCloud
2685
2637
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2686
2638
  end
2687
2639
 
2688
- # 停止延迟只读实例的延迟复制。
2689
-
2690
- # @param request: Request instance for StopDelayReplication.
2691
- # @type request: :class:`Tencentcloud::cdb::V20170320::StopDelayReplicationRequest`
2692
- # @rtype: :class:`Tencentcloud::cdb::V20170320::StopDelayReplicationResponse`
2693
- def StopDelayReplication(request)
2694
- body = send_request('StopDelayReplication', request.serialize)
2695
- response = JSON.parse(body)
2696
- if response['Response'].key?('Error') == false
2697
- model = StopDelayReplicationResponse.new
2698
- model.deserialize(response['Response'])
2699
- model
2700
- else
2701
- code = response['Response']['Error']['Code']
2702
- message = response['Response']['Error']['Message']
2703
- reqid = response['Response']['RequestId']
2704
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2705
- end
2706
- rescue TencentCloud::Common::TencentCloudSDKException => e
2707
- raise e
2708
- rescue StandardError => e
2709
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2710
- end
2711
-
2712
2640
  # 本接口(StopRollback) 用于撤销实例正在进行的回档任务,该接口返回一个异步任务id。 撤销结果可以通过 DescribeAsyncRequestInfo 查询任务的执行情况。
2713
2641
 
2714
2642
  # @param request: Request instance for StopRollback.
@@ -6996,14 +6996,17 @@ module TencentCloud
6996
6996
  # @type RoWeightValues: Array
6997
6997
  # @param IsBalanceRoLoad: 是否重新均衡 RO 组内的 RO 实例的负载。支持值包括:1 - 重新均衡负载;0 - 不重新均衡负载。默认值为 0。注意,设置为重新均衡负载时,RO 组内 RO 实例会有一次数据库连接瞬断,请确保应用程序能重连数据库。
6998
6998
  # @type IsBalanceRoLoad: Integer
6999
+ # @param ReplicationDelayTime: 废弃参数,无意义。
7000
+ # @type ReplicationDelayTime: Integer
6999
7001
 
7000
- attr_accessor :RoGroupId, :RoGroupInfo, :RoWeightValues, :IsBalanceRoLoad
7002
+ attr_accessor :RoGroupId, :RoGroupInfo, :RoWeightValues, :IsBalanceRoLoad, :ReplicationDelayTime
7001
7003
 
7002
- def initialize(rogroupid=nil, rogroupinfo=nil, roweightvalues=nil, isbalanceroload=nil)
7004
+ def initialize(rogroupid=nil, rogroupinfo=nil, roweightvalues=nil, isbalanceroload=nil, replicationdelaytime=nil)
7003
7005
  @RoGroupId = rogroupid
7004
7006
  @RoGroupInfo = rogroupinfo
7005
7007
  @RoWeightValues = roweightvalues
7006
7008
  @IsBalanceRoLoad = isbalanceroload
7009
+ @ReplicationDelayTime = replicationdelaytime
7007
7010
  end
7008
7011
 
7009
7012
  def deserialize(params)
@@ -7021,57 +7024,27 @@ module TencentCloud
7021
7024
  end
7022
7025
  end
7023
7026
  @IsBalanceRoLoad = params['IsBalanceRoLoad']
7027
+ @ReplicationDelayTime = params['ReplicationDelayTime']
7024
7028
  end
7025
7029
  end
7026
7030
 
7027
7031
  # ModifyRoGroupInfo返回参数结构体
7028
7032
  class ModifyRoGroupInfoResponse < TencentCloud::Common::AbstractModel
7033
+ # @param AsyncRequestId: 异步任务 ID。
7034
+ # 注意:此字段可能返回 null,表示取不到有效值。
7035
+ # @type AsyncRequestId: String
7029
7036
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7030
7037
  # @type RequestId: String
7031
7038
 
7032
- attr_accessor :RequestId
7033
-
7034
- def initialize(requestid=nil)
7035
- @RequestId = requestid
7036
- end
7037
-
7038
- def deserialize(params)
7039
- @RequestId = params['RequestId']
7040
- end
7041
- end
7042
-
7043
- # ModifyRoReplicationDelay请求参数结构体
7044
- class ModifyRoReplicationDelayRequest < TencentCloud::Common::AbstractModel
7045
- # @param InstanceId: 实例 ID。
7046
- # @type InstanceId: String
7047
- # @param ReplicationDelay: 延迟时间(s)。最小值1,最大值259200。
7048
- # @type ReplicationDelay: Integer
7049
-
7050
- attr_accessor :InstanceId, :ReplicationDelay
7051
-
7052
- def initialize(instanceid=nil, replicationdelay=nil)
7053
- @InstanceId = instanceid
7054
- @ReplicationDelay = replicationdelay
7055
- end
7056
-
7057
- def deserialize(params)
7058
- @InstanceId = params['InstanceId']
7059
- @ReplicationDelay = params['ReplicationDelay']
7060
- end
7061
- end
7062
-
7063
- # ModifyRoReplicationDelay返回参数结构体
7064
- class ModifyRoReplicationDelayResponse < TencentCloud::Common::AbstractModel
7065
- # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7066
- # @type RequestId: String
7067
-
7068
- attr_accessor :RequestId
7039
+ attr_accessor :AsyncRequestId, :RequestId
7069
7040
 
7070
- def initialize(requestid=nil)
7041
+ def initialize(asyncrequestid=nil, requestid=nil)
7042
+ @AsyncRequestId = asyncrequestid
7071
7043
  @RequestId = requestid
7072
7044
  end
7073
7045
 
7074
7046
  def deserialize(params)
7047
+ @AsyncRequestId = params['AsyncRequestId']
7075
7048
  @RequestId = params['RequestId']
7076
7049
  end
7077
7050
  end
@@ -7630,10 +7603,13 @@ module TencentCloud
7630
7603
  # @param RoGroupZone: 只读组所在的可用区。
7631
7604
  # 注意:此字段可能返回 null,表示取不到有效值。
7632
7605
  # @type RoGroupZone: String
7606
+ # @param DelayReplicationTime: 延迟复制时间。
7607
+ # 注意:此字段可能返回 null,表示取不到有效值。
7608
+ # @type DelayReplicationTime: Integer
7633
7609
 
7634
- attr_accessor :RoGroupMode, :RoGroupId, :RoGroupName, :RoOfflineDelay, :RoMaxDelayTime, :MinRoInGroup, :WeightMode, :Weight, :RoInstances, :Vip, :Vport, :UniqVpcId, :UniqSubnetId, :RoGroupRegion, :RoGroupZone
7610
+ attr_accessor :RoGroupMode, :RoGroupId, :RoGroupName, :RoOfflineDelay, :RoMaxDelayTime, :MinRoInGroup, :WeightMode, :Weight, :RoInstances, :Vip, :Vport, :UniqVpcId, :UniqSubnetId, :RoGroupRegion, :RoGroupZone, :DelayReplicationTime
7635
7611
 
7636
- def initialize(rogroupmode=nil, rogroupid=nil, rogroupname=nil, roofflinedelay=nil, romaxdelaytime=nil, minroingroup=nil, weightmode=nil, weight=nil, roinstances=nil, vip=nil, vport=nil, uniqvpcid=nil, uniqsubnetid=nil, rogroupregion=nil, rogroupzone=nil)
7612
+ def initialize(rogroupmode=nil, rogroupid=nil, rogroupname=nil, roofflinedelay=nil, romaxdelaytime=nil, minroingroup=nil, weightmode=nil, weight=nil, roinstances=nil, vip=nil, vport=nil, uniqvpcid=nil, uniqsubnetid=nil, rogroupregion=nil, rogroupzone=nil, delayreplicationtime=nil)
7637
7613
  @RoGroupMode = rogroupmode
7638
7614
  @RoGroupId = rogroupid
7639
7615
  @RoGroupName = rogroupname
@@ -7649,6 +7625,7 @@ module TencentCloud
7649
7625
  @UniqSubnetId = uniqsubnetid
7650
7626
  @RoGroupRegion = rogroupregion
7651
7627
  @RoGroupZone = rogroupzone
7628
+ @DelayReplicationTime = delayreplicationtime
7652
7629
  end
7653
7630
 
7654
7631
  def deserialize(params)
@@ -7674,6 +7651,7 @@ module TencentCloud
7674
7651
  @UniqSubnetId = params['UniqSubnetId']
7675
7652
  @RoGroupRegion = params['RoGroupRegion']
7676
7653
  @RoGroupZone = params['RoGroupZone']
7654
+ @DelayReplicationTime = params['DelayReplicationTime']
7677
7655
  end
7678
7656
  end
7679
7657
 
@@ -7689,15 +7667,18 @@ module TencentCloud
7689
7667
  # @type MinRoInGroup: Integer
7690
7668
  # @param WeightMode: 权重模式。支持值包括:"system" - 系统自动分配; "custom" - 用户自定义设置。注意,若设置 "custom" 模式,则必须设置 RO 实例权重配置(RoWeightValues)参数。
7691
7669
  # @type WeightMode: String
7670
+ # @param ReplicationDelayTime: 延迟复制时间。
7671
+ # @type ReplicationDelayTime: Integer
7692
7672
 
7693
- attr_accessor :RoGroupName, :RoMaxDelayTime, :RoOfflineDelay, :MinRoInGroup, :WeightMode
7673
+ attr_accessor :RoGroupName, :RoMaxDelayTime, :RoOfflineDelay, :MinRoInGroup, :WeightMode, :ReplicationDelayTime
7694
7674
 
7695
- def initialize(rogroupname=nil, romaxdelaytime=nil, roofflinedelay=nil, minroingroup=nil, weightmode=nil)
7675
+ def initialize(rogroupname=nil, romaxdelaytime=nil, roofflinedelay=nil, minroingroup=nil, weightmode=nil, replicationdelaytime=nil)
7696
7676
  @RoGroupName = rogroupname
7697
7677
  @RoMaxDelayTime = romaxdelaytime
7698
7678
  @RoOfflineDelay = roofflinedelay
7699
7679
  @MinRoInGroup = minroingroup
7700
7680
  @WeightMode = weightmode
7681
+ @ReplicationDelayTime = replicationdelaytime
7701
7682
  end
7702
7683
 
7703
7684
  def deserialize(params)
@@ -7706,6 +7687,7 @@ module TencentCloud
7706
7687
  @RoOfflineDelay = params['RoOfflineDelay']
7707
7688
  @MinRoInGroup = params['MinRoInGroup']
7708
7689
  @WeightMode = params['WeightMode']
7690
+ @ReplicationDelayTime = params['ReplicationDelayTime']
7709
7691
  end
7710
7692
  end
7711
7693
 
@@ -8474,55 +8456,6 @@ module TencentCloud
8474
8456
  end
8475
8457
  end
8476
8458
 
8477
- # StartDelayReplication请求参数结构体
8478
- class StartDelayReplicationRequest < TencentCloud::Common::AbstractModel
8479
- # @param InstanceId: 实例 ID。
8480
- # @type InstanceId: String
8481
- # @param DelayReplicationType: 延迟复制类型。可选值 DEFAULT(按照延迟复制时间进行复制)、GTID(回放到指定GTID)、DUE_TIME(回放到指定时间点)。
8482
- # @type DelayReplicationType: String
8483
- # @param DueTime: 指定时间点,默认为0,最大值不能超过当前时间。
8484
- # @type DueTime: Integer
8485
- # @param Gtid: 指定GITD。回放到指定GTID时必传。
8486
- # @type Gtid: String
8487
-
8488
- attr_accessor :InstanceId, :DelayReplicationType, :DueTime, :Gtid
8489
-
8490
- def initialize(instanceid=nil, delayreplicationtype=nil, duetime=nil, gtid=nil)
8491
- @InstanceId = instanceid
8492
- @DelayReplicationType = delayreplicationtype
8493
- @DueTime = duetime
8494
- @Gtid = gtid
8495
- end
8496
-
8497
- def deserialize(params)
8498
- @InstanceId = params['InstanceId']
8499
- @DelayReplicationType = params['DelayReplicationType']
8500
- @DueTime = params['DueTime']
8501
- @Gtid = params['Gtid']
8502
- end
8503
- end
8504
-
8505
- # StartDelayReplication返回参数结构体
8506
- class StartDelayReplicationResponse < TencentCloud::Common::AbstractModel
8507
- # @param AsyncRequestId: 延迟复制任务 ID。DelayReplicationType不为DEFAULT时返回,可用来查询回放任务状态。
8508
- # 注意:此字段可能返回 null,表示取不到有效值。
8509
- # @type AsyncRequestId: String
8510
- # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8511
- # @type RequestId: String
8512
-
8513
- attr_accessor :AsyncRequestId, :RequestId
8514
-
8515
- def initialize(asyncrequestid=nil, requestid=nil)
8516
- @AsyncRequestId = asyncrequestid
8517
- @RequestId = requestid
8518
- end
8519
-
8520
- def deserialize(params)
8521
- @AsyncRequestId = params['AsyncRequestId']
8522
- @RequestId = params['RequestId']
8523
- end
8524
- end
8525
-
8526
8459
  # StopDBImportJob请求参数结构体
8527
8460
  class StopDBImportJobRequest < TencentCloud::Common::AbstractModel
8528
8461
  # @param AsyncRequestId: 异步任务的请求 ID。
@@ -8555,38 +8488,6 @@ module TencentCloud
8555
8488
  end
8556
8489
  end
8557
8490
 
8558
- # StopDelayReplication请求参数结构体
8559
- class StopDelayReplicationRequest < TencentCloud::Common::AbstractModel
8560
- # @param InstanceId: 实例 ID。
8561
- # @type InstanceId: String
8562
-
8563
- attr_accessor :InstanceId
8564
-
8565
- def initialize(instanceid=nil)
8566
- @InstanceId = instanceid
8567
- end
8568
-
8569
- def deserialize(params)
8570
- @InstanceId = params['InstanceId']
8571
- end
8572
- end
8573
-
8574
- # StopDelayReplication返回参数结构体
8575
- class StopDelayReplicationResponse < TencentCloud::Common::AbstractModel
8576
- # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8577
- # @type RequestId: String
8578
-
8579
- attr_accessor :RequestId
8580
-
8581
- def initialize(requestid=nil)
8582
- @RequestId = requestid
8583
- end
8584
-
8585
- def deserialize(params)
8586
- @RequestId = params['RequestId']
8587
- end
8588
- end
8589
-
8590
8491
  # StopRollback请求参数结构体
8591
8492
  class StopRollbackRequest < TencentCloud::Common::AbstractModel
8592
8493
  # @param InstanceId: 撤销回档任务对应的实例Id。
@@ -9024,10 +8925,14 @@ module TencentCloud
9024
8925
  # @type FastUpgrade: Integer
9025
8926
  # @param MaxDelayTime: 延迟阈值。取值范围1~10,默认值为10。
9026
8927
  # @type MaxDelayTime: Integer
8928
+ # @param CrossCluster: 是否跨区迁移。0-普通迁移,1-跨区迁移,默认值为0。该值为1时支持变更实例主节点可用区。
8929
+ # @type CrossCluster: Integer
8930
+ # @param ZoneId: 主节点可用区,该值仅在跨区迁移时生效。仅支持同地域下的可用区进行迁移。
8931
+ # @type ZoneId: String
9027
8932
 
9028
- attr_accessor :InstanceId, :Memory, :Volume, :ProtectMode, :DeployMode, :SlaveZone, :EngineVersion, :WaitSwitch, :BackupZone, :InstanceRole, :DeviceType, :Cpu, :FastUpgrade, :MaxDelayTime
8933
+ attr_accessor :InstanceId, :Memory, :Volume, :ProtectMode, :DeployMode, :SlaveZone, :EngineVersion, :WaitSwitch, :BackupZone, :InstanceRole, :DeviceType, :Cpu, :FastUpgrade, :MaxDelayTime, :CrossCluster, :ZoneId
9029
8934
 
9030
- def initialize(instanceid=nil, memory=nil, volume=nil, protectmode=nil, deploymode=nil, slavezone=nil, engineversion=nil, waitswitch=nil, backupzone=nil, instancerole=nil, devicetype=nil, cpu=nil, fastupgrade=nil, maxdelaytime=nil)
8935
+ def initialize(instanceid=nil, memory=nil, volume=nil, protectmode=nil, deploymode=nil, slavezone=nil, engineversion=nil, waitswitch=nil, backupzone=nil, instancerole=nil, devicetype=nil, cpu=nil, fastupgrade=nil, maxdelaytime=nil, crosscluster=nil, zoneid=nil)
9031
8936
  @InstanceId = instanceid
9032
8937
  @Memory = memory
9033
8938
  @Volume = volume
@@ -9042,6 +8947,8 @@ module TencentCloud
9042
8947
  @Cpu = cpu
9043
8948
  @FastUpgrade = fastupgrade
9044
8949
  @MaxDelayTime = maxdelaytime
8950
+ @CrossCluster = crosscluster
8951
+ @ZoneId = zoneid
9045
8952
  end
9046
8953
 
9047
8954
  def deserialize(params)
@@ -9059,6 +8966,8 @@ module TencentCloud
9059
8966
  @Cpu = params['Cpu']
9060
8967
  @FastUpgrade = params['FastUpgrade']
9061
8968
  @MaxDelayTime = params['MaxDelayTime']
8969
+ @CrossCluster = params['CrossCluster']
8970
+ @ZoneId = params['ZoneId']
9062
8971
  end
9063
8972
  end
9064
8973
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.228
4
+ version: 1.0.229
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-21 00:00:00.000000000 Z
11
+ date: 2021-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common