tencentcloud-sdk-cdb 3.0.628 → 3.0.629
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20170320/client.rb +72 -0
- data/lib/v20170320/models.rb +116 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 815ac212c624572d4b188e94726d1ccd02157a2f
|
4
|
+
data.tar.gz: 9daf5c80d27cf7ca96103e0ab8b79556d94b3c28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 388c306a553fafea9bfcd9b004a841b10e0474897a4e94ad6ff976573ca824d6f6ef58f3bd61c927c8a2fb7ade27d59dd4a1971732edfdb6d0b5a9d16917d27c
|
7
|
+
data.tar.gz: d0859e1cb39a2693e91dc8149c3fc1713725b4277fd62a893b47bb15f7a98332f58ab390177e6fd64e92ab64b7b97a7371cd79a6b0d38f17cc872f95302c16c2
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.629
|
data/lib/v20170320/client.rb
CHANGED
@@ -1324,6 +1324,30 @@ module TencentCloud
|
|
1324
1324
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1325
1325
|
end
|
1326
1326
|
|
1327
|
+
# 通过该 API 可以查询实例的 CPU 弹性扩容策略
|
1328
|
+
|
1329
|
+
# @param request: Request instance for DescribeCpuExpandStrategy.
|
1330
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::DescribeCpuExpandStrategyRequest`
|
1331
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::DescribeCpuExpandStrategyResponse`
|
1332
|
+
def DescribeCpuExpandStrategy(request)
|
1333
|
+
body = send_request('DescribeCpuExpandStrategy', request.serialize)
|
1334
|
+
response = JSON.parse(body)
|
1335
|
+
if response['Response'].key?('Error') == false
|
1336
|
+
model = DescribeCpuExpandStrategyResponse.new
|
1337
|
+
model.deserialize(response['Response'])
|
1338
|
+
model
|
1339
|
+
else
|
1340
|
+
code = response['Response']['Error']['Code']
|
1341
|
+
message = response['Response']['Error']['Message']
|
1342
|
+
reqid = response['Response']['RequestId']
|
1343
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1344
|
+
end
|
1345
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1346
|
+
raise e
|
1347
|
+
rescue StandardError => e
|
1348
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1349
|
+
end
|
1350
|
+
|
1327
1351
|
# 本接口(DescribeDBFeatures)用于查询云数据库版本属性,包括是否支持数据库加密、数据库审计等功能。
|
1328
1352
|
|
1329
1353
|
# @param request: Request instance for DescribeDBFeatures.
|
@@ -3273,6 +3297,30 @@ module TencentCloud
|
|
3273
3297
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3274
3298
|
end
|
3275
3299
|
|
3300
|
+
# 通过该API,可以开启CPU弹性扩容,包括一次性的手动扩容以及自动弹性扩容。
|
3301
|
+
|
3302
|
+
# @param request: Request instance for StartCpuExpand.
|
3303
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::StartCpuExpandRequest`
|
3304
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::StartCpuExpandResponse`
|
3305
|
+
def StartCpuExpand(request)
|
3306
|
+
body = send_request('StartCpuExpand', request.serialize)
|
3307
|
+
response = JSON.parse(body)
|
3308
|
+
if response['Response'].key?('Error') == false
|
3309
|
+
model = StartCpuExpandResponse.new
|
3310
|
+
model.deserialize(response['Response'])
|
3311
|
+
model
|
3312
|
+
else
|
3313
|
+
code = response['Response']['Error']['Code']
|
3314
|
+
message = response['Response']['Error']['Message']
|
3315
|
+
reqid = response['Response']['RequestId']
|
3316
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3317
|
+
end
|
3318
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3319
|
+
raise e
|
3320
|
+
rescue StandardError => e
|
3321
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3322
|
+
end
|
3323
|
+
|
3276
3324
|
# 开启 RO 复制,从主实例同步数据。
|
3277
3325
|
|
3278
3326
|
# @param request: Request instance for StartReplication.
|
@@ -3297,6 +3345,30 @@ module TencentCloud
|
|
3297
3345
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3298
3346
|
end
|
3299
3347
|
|
3348
|
+
# 通过该API,可以关闭 CPU 弹性扩容。
|
3349
|
+
|
3350
|
+
# @param request: Request instance for StopCpuExpand.
|
3351
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::StopCpuExpandRequest`
|
3352
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::StopCpuExpandResponse`
|
3353
|
+
def StopCpuExpand(request)
|
3354
|
+
body = send_request('StopCpuExpand', request.serialize)
|
3355
|
+
response = JSON.parse(body)
|
3356
|
+
if response['Response'].key?('Error') == false
|
3357
|
+
model = StopCpuExpandResponse.new
|
3358
|
+
model.deserialize(response['Response'])
|
3359
|
+
model
|
3360
|
+
else
|
3361
|
+
code = response['Response']['Error']['Code']
|
3362
|
+
message = response['Response']['Error']['Message']
|
3363
|
+
reqid = response['Response']['RequestId']
|
3364
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3365
|
+
end
|
3366
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3367
|
+
raise e
|
3368
|
+
rescue StandardError => e
|
3369
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3370
|
+
end
|
3371
|
+
|
3300
3372
|
# 本接口(StopDBImportJob)用于终止数据导入任务。
|
3301
3373
|
|
3302
3374
|
# @param request: Request instance for StopDBImportJob.
|
data/lib/v20170320/models.rb
CHANGED
@@ -2592,7 +2592,7 @@ module TencentCloud
|
|
2592
2592
|
# @type MasterInstanceId: String
|
2593
2593
|
# @param EngineVersion: MySQL 版本,值包括:5.5、5.6 、5.7和8.0,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的实例版本。
|
2594
2594
|
# @type EngineVersion: String
|
2595
|
-
# @param Password: 设置 root
|
2595
|
+
# @param Password: 设置 root 账号密码,密码规则:8 - 64 个字符,至少包含字母、数字、字符(支持的字符:_+-&=!@#$%^*())中的两种,购买主实例时可指定该参数,购买只读实例或者灾备实例时指定该参数无意义。
|
2596
2596
|
# @type Password: String
|
2597
2597
|
# @param ProtectMode: 数据复制方式,默认为 0,支持值包括:0 - 表示异步复制,1 - 表示半同步复制,2 - 表示强同步复制。
|
2598
2598
|
# @type ProtectMode: Integer
|
@@ -2624,7 +2624,7 @@ module TencentCloud
|
|
2624
2624
|
# @type DeviceType: String
|
2625
2625
|
# @param ParamTemplateId: 参数模板id。
|
2626
2626
|
# @type ParamTemplateId: Integer
|
2627
|
-
# @param AlarmPolicyList: 告警策略id
|
2627
|
+
# @param AlarmPolicyList: 告警策略id数组。腾讯云可观测平台DescribeAlarmPolicy接口返回的OriginId。
|
2628
2628
|
# @type AlarmPolicyList: Array
|
2629
2629
|
# @param InstanceNodes: 实例节点数。对于 RO 和 基础版实例, 该值默认为1。 如果需要购买三节点实例, 请将该值设置为3 或指定 BackupZone 参数。当购买主实例,且未指定该参数和 BackupZone 参数时,该值默认是 2, 即购买两节点实例。
|
2630
2630
|
# @type InstanceNodes: Integer
|
@@ -4693,6 +4693,53 @@ module TencentCloud
|
|
4693
4693
|
end
|
4694
4694
|
end
|
4695
4695
|
|
4696
|
+
# DescribeCpuExpandStrategy请求参数结构体
|
4697
|
+
class DescribeCpuExpandStrategyRequest < TencentCloud::Common::AbstractModel
|
4698
|
+
# @param InstanceId: 实例 ID 。
|
4699
|
+
# @type InstanceId: String
|
4700
|
+
|
4701
|
+
attr_accessor :InstanceId
|
4702
|
+
|
4703
|
+
def initialize(instanceid=nil)
|
4704
|
+
@InstanceId = instanceid
|
4705
|
+
end
|
4706
|
+
|
4707
|
+
def deserialize(params)
|
4708
|
+
@InstanceId = params['InstanceId']
|
4709
|
+
end
|
4710
|
+
end
|
4711
|
+
|
4712
|
+
# DescribeCpuExpandStrategy返回参数结构体
|
4713
|
+
class DescribeCpuExpandStrategyResponse < TencentCloud::Common::AbstractModel
|
4714
|
+
# @param Type: 策略类型。可选值 auto、manual。
|
4715
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4716
|
+
# @type Type: String
|
4717
|
+
# @param ExpandCpu: 手动扩容的 CPU 。Type为 manual 时有效。
|
4718
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4719
|
+
# @type ExpandCpu: String
|
4720
|
+
# @param AutoStrategy: 自动扩容策略。Type 为 auto 时有效
|
4721
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4722
|
+
# @type AutoStrategy: String
|
4723
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4724
|
+
# @type RequestId: String
|
4725
|
+
|
4726
|
+
attr_accessor :Type, :ExpandCpu, :AutoStrategy, :RequestId
|
4727
|
+
|
4728
|
+
def initialize(type=nil, expandcpu=nil, autostrategy=nil, requestid=nil)
|
4729
|
+
@Type = type
|
4730
|
+
@ExpandCpu = expandcpu
|
4731
|
+
@AutoStrategy = autostrategy
|
4732
|
+
@RequestId = requestid
|
4733
|
+
end
|
4734
|
+
|
4735
|
+
def deserialize(params)
|
4736
|
+
@Type = params['Type']
|
4737
|
+
@ExpandCpu = params['ExpandCpu']
|
4738
|
+
@AutoStrategy = params['AutoStrategy']
|
4739
|
+
@RequestId = params['RequestId']
|
4740
|
+
end
|
4741
|
+
end
|
4742
|
+
|
4696
4743
|
# DescribeDBFeatures请求参数结构体
|
4697
4744
|
class DescribeDBFeaturesRequest < TencentCloud::Common::AbstractModel
|
4698
4745
|
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
|
@@ -11265,6 +11312,37 @@ module TencentCloud
|
|
11265
11312
|
end
|
11266
11313
|
end
|
11267
11314
|
|
11315
|
+
# StartCpuExpand请求参数结构体
|
11316
|
+
class StartCpuExpandRequest < TencentCloud::Common::AbstractModel
|
11317
|
+
|
11318
|
+
|
11319
|
+
def initialize()
|
11320
|
+
end
|
11321
|
+
|
11322
|
+
def deserialize(params)
|
11323
|
+
end
|
11324
|
+
end
|
11325
|
+
|
11326
|
+
# StartCpuExpand返回参数结构体
|
11327
|
+
class StartCpuExpandResponse < TencentCloud::Common::AbstractModel
|
11328
|
+
# @param AsyncRequestId: 异步任务 ID 。可以调用DescribeAsyncRequest 传入该 ID ,进行任务执行进度的查询
|
11329
|
+
# @type AsyncRequestId: String
|
11330
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
11331
|
+
# @type RequestId: String
|
11332
|
+
|
11333
|
+
attr_accessor :AsyncRequestId, :RequestId
|
11334
|
+
|
11335
|
+
def initialize(asyncrequestid=nil, requestid=nil)
|
11336
|
+
@AsyncRequestId = asyncrequestid
|
11337
|
+
@RequestId = requestid
|
11338
|
+
end
|
11339
|
+
|
11340
|
+
def deserialize(params)
|
11341
|
+
@AsyncRequestId = params['AsyncRequestId']
|
11342
|
+
@RequestId = params['RequestId']
|
11343
|
+
end
|
11344
|
+
end
|
11345
|
+
|
11268
11346
|
# StartReplication请求参数结构体
|
11269
11347
|
class StartReplicationRequest < TencentCloud::Common::AbstractModel
|
11270
11348
|
# @param InstanceId: 实例 ID。仅支持只读实例。
|
@@ -11302,6 +11380,42 @@ module TencentCloud
|
|
11302
11380
|
end
|
11303
11381
|
end
|
11304
11382
|
|
11383
|
+
# StopCpuExpand请求参数结构体
|
11384
|
+
class StopCpuExpandRequest < TencentCloud::Common::AbstractModel
|
11385
|
+
# @param InstanceId: 实例 ID 。
|
11386
|
+
# @type InstanceId: String
|
11387
|
+
|
11388
|
+
attr_accessor :InstanceId
|
11389
|
+
|
11390
|
+
def initialize(instanceid=nil)
|
11391
|
+
@InstanceId = instanceid
|
11392
|
+
end
|
11393
|
+
|
11394
|
+
def deserialize(params)
|
11395
|
+
@InstanceId = params['InstanceId']
|
11396
|
+
end
|
11397
|
+
end
|
11398
|
+
|
11399
|
+
# StopCpuExpand返回参数结构体
|
11400
|
+
class StopCpuExpandResponse < TencentCloud::Common::AbstractModel
|
11401
|
+
# @param AsyncRequestId: 异步任务 ID 。可以调用DescribeAsyncRequest 传入该 ID ,进行任务执行进度的查询
|
11402
|
+
# @type AsyncRequestId: String
|
11403
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
11404
|
+
# @type RequestId: String
|
11405
|
+
|
11406
|
+
attr_accessor :AsyncRequestId, :RequestId
|
11407
|
+
|
11408
|
+
def initialize(asyncrequestid=nil, requestid=nil)
|
11409
|
+
@AsyncRequestId = asyncrequestid
|
11410
|
+
@RequestId = requestid
|
11411
|
+
end
|
11412
|
+
|
11413
|
+
def deserialize(params)
|
11414
|
+
@AsyncRequestId = params['AsyncRequestId']
|
11415
|
+
@RequestId = params['RequestId']
|
11416
|
+
end
|
11417
|
+
end
|
11418
|
+
|
11305
11419
|
# StopDBImportJob请求参数结构体
|
11306
11420
|
class StopDBImportJobRequest < TencentCloud::Common::AbstractModel
|
11307
11421
|
# @param AsyncRequestId: 异步任务的请求 ID。
|
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: 3.0.
|
4
|
+
version: 3.0.629
|
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-
|
11
|
+
date: 2023-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|