tencentcloud-sdk-dts 3.0.639 → 3.0.640

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bee0b5de1ea367110deca1dc506b8120d2766e54
4
- data.tar.gz: ee925a96acfc8a439da04dc73ad7ff4d43cbfe2c
3
+ metadata.gz: 2a216f1c583cf8726fe6ef8d93597a0ef98b8744
4
+ data.tar.gz: c813e118d4dc4312b9c086829e312ac0cb0b74ed
5
5
  SHA512:
6
- metadata.gz: ec5fb872028a8775070862500f4f21dd9584cab6235e2302e1fe9eb8396f6d2d9beb60f2cc4d5fefe638cdb3f98ee7851d43152f73c2afec524529f2e482b500
7
- data.tar.gz: 8e2b674916ade0bcd067ad6c9f36ad51a743f141e6879a482559dac86a493e0f7b4259f17defc61358537217da54382b91a8167ea02857b884da6fe6cbed2549
6
+ metadata.gz: 8d40191dc9dbc1cd2ab8fd3bece369de661e8467ce89a331d09e4caf6f1c17c907f84721f0da25bc743b46b09cd2c57739e54de12ac55be02747f80d3ebee9da
7
+ data.tar.gz: 74e9d2d17511b7c2b4ca0f4ac4496d0319ad88bc1f1d69f9e19cb1bafa7cbfa7f174338c92ead2596d8239779e2953f9e4fdece1a13357f40b958846fc413cce
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.639
1
+ 3.0.640
@@ -707,6 +707,30 @@ module TencentCloud
707
707
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
708
708
  end
709
709
 
710
+ # 用户在发现迁移任务对用户的数据库的负载影响较大时、可通过该接口限制任务的传输速率
711
+
712
+ # @param request: Request instance for ModifyMigrateRateLimit.
713
+ # @type request: :class:`Tencentcloud::dts::V20211206::ModifyMigrateRateLimitRequest`
714
+ # @rtype: :class:`Tencentcloud::dts::V20211206::ModifyMigrateRateLimitResponse`
715
+ def ModifyMigrateRateLimit(request)
716
+ body = send_request('ModifyMigrateRateLimit', request.serialize)
717
+ response = JSON.parse(body)
718
+ if response['Response'].key?('Error') == false
719
+ model = ModifyMigrateRateLimitResponse.new
720
+ model.deserialize(response['Response'])
721
+ model
722
+ else
723
+ code = response['Response']['Error']['Code']
724
+ message = response['Response']['Error']['Message']
725
+ reqid = response['Response']['RequestId']
726
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
727
+ end
728
+ rescue TencentCloud::Common::TencentCloudSDKException => e
729
+ raise e
730
+ rescue StandardError => e
731
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
732
+ end
733
+
710
734
  # 配置迁移服务,配置成功后可通过`CreateMigrationCheckJob` 创建迁移校验任务接口发起校验任务,只有校验通过才能启动迁移任务。
711
735
 
712
736
  # @param request: Request instance for ModifyMigrationJob.
@@ -756,6 +780,30 @@ module TencentCloud
756
780
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
757
781
  end
758
782
 
783
+ # 用户在发现同步任务对用户的数据库的负载影响较大时、可通过该接口限制任务的传输速率
784
+
785
+ # @param request: Request instance for ModifySyncRateLimit.
786
+ # @type request: :class:`Tencentcloud::dts::V20211206::ModifySyncRateLimitRequest`
787
+ # @rtype: :class:`Tencentcloud::dts::V20211206::ModifySyncRateLimitResponse`
788
+ def ModifySyncRateLimit(request)
789
+ body = send_request('ModifySyncRateLimit', request.serialize)
790
+ response = JSON.parse(body)
791
+ if response['Response'].key?('Error') == false
792
+ model = ModifySyncRateLimitResponse.new
793
+ model.deserialize(response['Response'])
794
+ model
795
+ else
796
+ code = response['Response']['Error']['Code']
797
+ message = response['Response']['Error']['Message']
798
+ reqid = response['Response']['RequestId']
799
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
800
+ end
801
+ rescue TencentCloud::Common::TencentCloudSDKException => e
802
+ raise e
803
+ rescue StandardError => e
804
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
805
+ end
806
+
759
807
  # 暂停一个迁移任务。
760
808
 
761
809
  # @param request: Request instance for PauseMigrateJob.
@@ -3429,6 +3429,58 @@ module TencentCloud
3429
3429
  end
3430
3430
  end
3431
3431
 
3432
+ # ModifyMigrateRateLimit请求参数结构体
3433
+ class ModifyMigrateRateLimitRequest < TencentCloud::Common::AbstractModel
3434
+ # @param JobId: 迁移任务ID
3435
+ # @type JobId: String
3436
+ # @param DumpThread: 迁移任务全量导出线程数、有效值为 1-16
3437
+ # @type DumpThread: Integer
3438
+ # @param DumpRps: 迁移全量导出的 Rps 限制、需要大于 0
3439
+ # @type DumpRps: Integer
3440
+ # @param LoadThread: 迁移任务全量导入线程数、有效值为 1-16
3441
+ # @type LoadThread: Integer
3442
+ # @param SinkerThread: 迁移任务增量导入线程数、有效值为 1-128
3443
+ # @type SinkerThread: Integer
3444
+ # @param LoadRps: 全量导入Rps限制
3445
+ # @type LoadRps: Integer
3446
+
3447
+ attr_accessor :JobId, :DumpThread, :DumpRps, :LoadThread, :SinkerThread, :LoadRps
3448
+
3449
+ def initialize(jobid=nil, dumpthread=nil, dumprps=nil, loadthread=nil, sinkerthread=nil, loadrps=nil)
3450
+ @JobId = jobid
3451
+ @DumpThread = dumpthread
3452
+ @DumpRps = dumprps
3453
+ @LoadThread = loadthread
3454
+ @SinkerThread = sinkerthread
3455
+ @LoadRps = loadrps
3456
+ end
3457
+
3458
+ def deserialize(params)
3459
+ @JobId = params['JobId']
3460
+ @DumpThread = params['DumpThread']
3461
+ @DumpRps = params['DumpRps']
3462
+ @LoadThread = params['LoadThread']
3463
+ @SinkerThread = params['SinkerThread']
3464
+ @LoadRps = params['LoadRps']
3465
+ end
3466
+ end
3467
+
3468
+ # ModifyMigrateRateLimit返回参数结构体
3469
+ class ModifyMigrateRateLimitResponse < TencentCloud::Common::AbstractModel
3470
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3471
+ # @type RequestId: String
3472
+
3473
+ attr_accessor :RequestId
3474
+
3475
+ def initialize(requestid=nil)
3476
+ @RequestId = requestid
3477
+ end
3478
+
3479
+ def deserialize(params)
3480
+ @RequestId = params['RequestId']
3481
+ end
3482
+ end
3483
+
3432
3484
  # ModifyMigrationJob请求参数结构体
3433
3485
  class ModifyMigrationJobRequest < TencentCloud::Common::AbstractModel
3434
3486
  # @param JobId: 任务id
@@ -3555,6 +3607,58 @@ module TencentCloud
3555
3607
  end
3556
3608
  end
3557
3609
 
3610
+ # ModifySyncRateLimit请求参数结构体
3611
+ class ModifySyncRateLimitRequest < TencentCloud::Common::AbstractModel
3612
+ # @param JobId: 迁移任务ID
3613
+ # @type JobId: String
3614
+ # @param DumpThread: 同步任务全量导出线程数、有效值为 1-16
3615
+ # @type DumpThread: Integer
3616
+ # @param DumpRps: 同步任务全量导出的 Rps 限制、需要大于 0
3617
+ # @type DumpRps: Integer
3618
+ # @param LoadThread: 同步任务全量导入线程数、有效值为 1-16
3619
+ # @type LoadThread: Integer
3620
+ # @param SinkerThread: 同步任务增量导入线程数、有效值为 1-128
3621
+ # @type SinkerThread: Integer
3622
+ # @param LoadRps: 同步任务全量导入的Rps
3623
+ # @type LoadRps: Integer
3624
+
3625
+ attr_accessor :JobId, :DumpThread, :DumpRps, :LoadThread, :SinkerThread, :LoadRps
3626
+
3627
+ def initialize(jobid=nil, dumpthread=nil, dumprps=nil, loadthread=nil, sinkerthread=nil, loadrps=nil)
3628
+ @JobId = jobid
3629
+ @DumpThread = dumpthread
3630
+ @DumpRps = dumprps
3631
+ @LoadThread = loadthread
3632
+ @SinkerThread = sinkerthread
3633
+ @LoadRps = loadrps
3634
+ end
3635
+
3636
+ def deserialize(params)
3637
+ @JobId = params['JobId']
3638
+ @DumpThread = params['DumpThread']
3639
+ @DumpRps = params['DumpRps']
3640
+ @LoadThread = params['LoadThread']
3641
+ @SinkerThread = params['SinkerThread']
3642
+ @LoadRps = params['LoadRps']
3643
+ end
3644
+ end
3645
+
3646
+ # ModifySyncRateLimit返回参数结构体
3647
+ class ModifySyncRateLimitResponse < TencentCloud::Common::AbstractModel
3648
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3649
+ # @type RequestId: String
3650
+
3651
+ attr_accessor :RequestId
3652
+
3653
+ def initialize(requestid=nil)
3654
+ @RequestId = requestid
3655
+ end
3656
+
3657
+ def deserialize(params)
3658
+ @RequestId = params['RequestId']
3659
+ end
3660
+ end
3661
+
3558
3662
  # 同步的数据库对对象描述
3559
3663
  class Objects < TencentCloud::Common::AbstractModel
3560
3664
  # @param Mode: 同步对象类型 Partial(部分对象)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-dts
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.639
4
+ version: 3.0.640
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-08-18 00:00:00.000000000 Z
11
+ date: 2023-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common