tencentcloud-sdk-cynosdb 3.0.792 → 3.0.793
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/v20190107/client.rb +24 -0
- data/lib/v20190107/models.rb +163 -0
- 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: c0dc5f2faa4eab31f55f5b5a50bc100b760ea895
|
4
|
+
data.tar.gz: 2b83c986652b9f2ae860f166b48e63c360b1a8a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39238720d3d5c8242360380491f228f845c9b4ab6ebe3513f5aa8f6665cdb3b2c83f6647e66f4edb4a5d5f3380a21e95d48c5fdba3a5eda02ec624f116889102
|
7
|
+
data.tar.gz: 8f21701af39a2a16131a3ee70726af79e768c8eaddc5c3b1356f8a3d15f9f3a6faf7a5b055c6b2d443a279bff701a83b10ce97a419bf925a77a32c7a73798185
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.793
|
data/lib/v20190107/client.rb
CHANGED
@@ -2957,6 +2957,30 @@ module TencentCloud
|
|
2957
2957
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2958
2958
|
end
|
2959
2959
|
|
2960
|
+
# 回档到新集群
|
2961
|
+
|
2962
|
+
# @param request: Request instance for RollbackToNewCluster.
|
2963
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::RollbackToNewClusterRequest`
|
2964
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::RollbackToNewClusterResponse`
|
2965
|
+
def RollbackToNewCluster(request)
|
2966
|
+
body = send_request('RollbackToNewCluster', request.serialize)
|
2967
|
+
response = JSON.parse(body)
|
2968
|
+
if response['Response'].key?('Error') == false
|
2969
|
+
model = RollbackToNewClusterResponse.new
|
2970
|
+
model.deserialize(response['Response'])
|
2971
|
+
model
|
2972
|
+
else
|
2973
|
+
code = response['Response']['Error']['Code']
|
2974
|
+
message = response['Response']['Error']['Message']
|
2975
|
+
reqid = response['Response']['RequestId']
|
2976
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2977
|
+
end
|
2978
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2979
|
+
raise e
|
2980
|
+
rescue StandardError => e
|
2981
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2982
|
+
end
|
2983
|
+
|
2960
2984
|
# 本接口(SearchClusterDatabases)搜索集群数据库列表
|
2961
2985
|
|
2962
2986
|
# @param request: Request instance for SearchClusterDatabases.
|
data/lib/v20190107/models.rb
CHANGED
@@ -11422,6 +11422,169 @@ module TencentCloud
|
|
11422
11422
|
end
|
11423
11423
|
end
|
11424
11424
|
|
11425
|
+
# RollbackToNewCluster请求参数结构体
|
11426
|
+
class RollbackToNewClusterRequest < TencentCloud::Common::AbstractModel
|
11427
|
+
# @param Zone: 可用区
|
11428
|
+
# @type Zone: String
|
11429
|
+
# @param OriginalClusterId: 回档时,传入源集群ID,用于查找源poolId
|
11430
|
+
# @type OriginalClusterId: String
|
11431
|
+
# @param ClusterName: 集群名称,长度小于64个字符,每个字符取值范围:大/小写字母,数字,特殊符号('-','_','.')
|
11432
|
+
# @type ClusterName: String
|
11433
|
+
# @param UniqVpcId: 所属VPC网络ID
|
11434
|
+
# @type UniqVpcId: String
|
11435
|
+
# @param UniqSubnetId: 所属子网ID
|
11436
|
+
# @type UniqSubnetId: String
|
11437
|
+
# @param AutoVoucher: 是否自动选择代金券 1是 0否 默认为0
|
11438
|
+
# @type AutoVoucher: Integer
|
11439
|
+
# @param DbMode: Db类型
|
11440
|
+
# 当DbType为MYSQL时可选(默认NORMAL):
|
11441
|
+
# <li>NORMAL</li>
|
11442
|
+
# <li>SERVERLESS</li>
|
11443
|
+
# @type DbMode: String
|
11444
|
+
# @param MinCpu: 当DbMode为SEVERLESS时必填
|
11445
|
+
# cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回
|
11446
|
+
# @type MinCpu: Float
|
11447
|
+
# @param MaxCpu: 当DbMode为SEVERLESS时必填:
|
11448
|
+
# cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
|
11449
|
+
# @type MaxCpu: Float
|
11450
|
+
# @param AutoPause: 当DbMode为SEVERLESS时,指定集群是否自动暂停,可选范围
|
11451
|
+
# <li>yes</li>
|
11452
|
+
# <li>no</li>
|
11453
|
+
# 默认值:yes
|
11454
|
+
# @type AutoPause: String
|
11455
|
+
# @param AutoPauseDelay: 当DbMode为SEVERLESS时,指定集群自动暂停的延迟,单位秒,可选范围[600,691200]
|
11456
|
+
# 默认值:600
|
11457
|
+
# @type AutoPauseDelay: Integer
|
11458
|
+
# @param SecurityGroupIds: 安全组id数组
|
11459
|
+
# @type SecurityGroupIds: Array
|
11460
|
+
# @param AlarmPolicyIds: 告警策略Id数组
|
11461
|
+
# @type AlarmPolicyIds: Array
|
11462
|
+
# @param ClusterParams: 参数数组,暂时支持character_set_server (utf8|latin1|gbk|utf8mb4) ,lower_case_table_names,1-大小写不敏感,0-大小写敏感
|
11463
|
+
# @type ClusterParams: Array
|
11464
|
+
# @param DealMode: 0-下单并支付 1-下单
|
11465
|
+
# @type DealMode: Integer
|
11466
|
+
# @param ParamTemplateId: 参数模板ID,可以通过查询参数模板信息DescribeParamTemplates获得参数模板ID
|
11467
|
+
# @type ParamTemplateId: Integer
|
11468
|
+
# @param ResourceTags: 集群创建需要绑定的tag数组信息
|
11469
|
+
# @type ResourceTags: Array
|
11470
|
+
# @param InstanceInitInfos: 实例初始化配置信息,主要用于购买集群时选不同规格实例
|
11471
|
+
# @type InstanceInitInfos: Array
|
11472
|
+
# @param RollbackId: 快照回档,表示snapshotId;时间点回档,表示queryId,为0,表示需要判断时间点是否有效
|
11473
|
+
# @type RollbackId: Integer
|
11474
|
+
# @param ExpectTime: 时间点回档,指定时间;快照回档,快照时间
|
11475
|
+
# @type ExpectTime: String
|
11476
|
+
|
11477
|
+
attr_accessor :Zone, :OriginalClusterId, :ClusterName, :UniqVpcId, :UniqSubnetId, :AutoVoucher, :DbMode, :MinCpu, :MaxCpu, :AutoPause, :AutoPauseDelay, :SecurityGroupIds, :AlarmPolicyIds, :ClusterParams, :DealMode, :ParamTemplateId, :ResourceTags, :InstanceInitInfos, :RollbackId, :ExpectTime
|
11478
|
+
|
11479
|
+
def initialize(zone=nil, originalclusterid=nil, clustername=nil, uniqvpcid=nil, uniqsubnetid=nil, autovoucher=nil, dbmode=nil, mincpu=nil, maxcpu=nil, autopause=nil, autopausedelay=nil, securitygroupids=nil, alarmpolicyids=nil, clusterparams=nil, dealmode=nil, paramtemplateid=nil, resourcetags=nil, instanceinitinfos=nil, rollbackid=nil, expecttime=nil)
|
11480
|
+
@Zone = zone
|
11481
|
+
@OriginalClusterId = originalclusterid
|
11482
|
+
@ClusterName = clustername
|
11483
|
+
@UniqVpcId = uniqvpcid
|
11484
|
+
@UniqSubnetId = uniqsubnetid
|
11485
|
+
@AutoVoucher = autovoucher
|
11486
|
+
@DbMode = dbmode
|
11487
|
+
@MinCpu = mincpu
|
11488
|
+
@MaxCpu = maxcpu
|
11489
|
+
@AutoPause = autopause
|
11490
|
+
@AutoPauseDelay = autopausedelay
|
11491
|
+
@SecurityGroupIds = securitygroupids
|
11492
|
+
@AlarmPolicyIds = alarmpolicyids
|
11493
|
+
@ClusterParams = clusterparams
|
11494
|
+
@DealMode = dealmode
|
11495
|
+
@ParamTemplateId = paramtemplateid
|
11496
|
+
@ResourceTags = resourcetags
|
11497
|
+
@InstanceInitInfos = instanceinitinfos
|
11498
|
+
@RollbackId = rollbackid
|
11499
|
+
@ExpectTime = expecttime
|
11500
|
+
end
|
11501
|
+
|
11502
|
+
def deserialize(params)
|
11503
|
+
@Zone = params['Zone']
|
11504
|
+
@OriginalClusterId = params['OriginalClusterId']
|
11505
|
+
@ClusterName = params['ClusterName']
|
11506
|
+
@UniqVpcId = params['UniqVpcId']
|
11507
|
+
@UniqSubnetId = params['UniqSubnetId']
|
11508
|
+
@AutoVoucher = params['AutoVoucher']
|
11509
|
+
@DbMode = params['DbMode']
|
11510
|
+
@MinCpu = params['MinCpu']
|
11511
|
+
@MaxCpu = params['MaxCpu']
|
11512
|
+
@AutoPause = params['AutoPause']
|
11513
|
+
@AutoPauseDelay = params['AutoPauseDelay']
|
11514
|
+
@SecurityGroupIds = params['SecurityGroupIds']
|
11515
|
+
@AlarmPolicyIds = params['AlarmPolicyIds']
|
11516
|
+
unless params['ClusterParams'].nil?
|
11517
|
+
@ClusterParams = []
|
11518
|
+
params['ClusterParams'].each do |i|
|
11519
|
+
paramitem_tmp = ParamItem.new
|
11520
|
+
paramitem_tmp.deserialize(i)
|
11521
|
+
@ClusterParams << paramitem_tmp
|
11522
|
+
end
|
11523
|
+
end
|
11524
|
+
@DealMode = params['DealMode']
|
11525
|
+
@ParamTemplateId = params['ParamTemplateId']
|
11526
|
+
unless params['ResourceTags'].nil?
|
11527
|
+
@ResourceTags = []
|
11528
|
+
params['ResourceTags'].each do |i|
|
11529
|
+
tag_tmp = Tag.new
|
11530
|
+
tag_tmp.deserialize(i)
|
11531
|
+
@ResourceTags << tag_tmp
|
11532
|
+
end
|
11533
|
+
end
|
11534
|
+
unless params['InstanceInitInfos'].nil?
|
11535
|
+
@InstanceInitInfos = []
|
11536
|
+
params['InstanceInitInfos'].each do |i|
|
11537
|
+
instanceinitinfo_tmp = InstanceInitInfo.new
|
11538
|
+
instanceinitinfo_tmp.deserialize(i)
|
11539
|
+
@InstanceInitInfos << instanceinitinfo_tmp
|
11540
|
+
end
|
11541
|
+
end
|
11542
|
+
@RollbackId = params['RollbackId']
|
11543
|
+
@ExpectTime = params['ExpectTime']
|
11544
|
+
end
|
11545
|
+
end
|
11546
|
+
|
11547
|
+
# RollbackToNewCluster返回参数结构体
|
11548
|
+
class RollbackToNewClusterResponse < TencentCloud::Common::AbstractModel
|
11549
|
+
# @param TranId: 冻结流水ID
|
11550
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11551
|
+
# @type TranId: String
|
11552
|
+
# @param DealNames: 订单号
|
11553
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11554
|
+
# @type DealNames: Array
|
11555
|
+
# @param ResourceIds: 资源ID列表(该字段已不再维护,请使用dealNames字段查询接口DescribeResourcesByDealName获取资源ID)
|
11556
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11557
|
+
# @type ResourceIds: Array
|
11558
|
+
# @param ClusterIds: 集群ID列表(该字段已不再维护,请使用dealNames字段查询接口DescribeResourcesByDealName获取集群ID)
|
11559
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11560
|
+
# @type ClusterIds: Array
|
11561
|
+
# @param BigDealIds: 大订单号
|
11562
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11563
|
+
# @type BigDealIds: Array
|
11564
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
11565
|
+
# @type RequestId: String
|
11566
|
+
|
11567
|
+
attr_accessor :TranId, :DealNames, :ResourceIds, :ClusterIds, :BigDealIds, :RequestId
|
11568
|
+
|
11569
|
+
def initialize(tranid=nil, dealnames=nil, resourceids=nil, clusterids=nil, bigdealids=nil, requestid=nil)
|
11570
|
+
@TranId = tranid
|
11571
|
+
@DealNames = dealnames
|
11572
|
+
@ResourceIds = resourceids
|
11573
|
+
@ClusterIds = clusterids
|
11574
|
+
@BigDealIds = bigdealids
|
11575
|
+
@RequestId = requestid
|
11576
|
+
end
|
11577
|
+
|
11578
|
+
def deserialize(params)
|
11579
|
+
@TranId = params['TranId']
|
11580
|
+
@DealNames = params['DealNames']
|
11581
|
+
@ResourceIds = params['ResourceIds']
|
11582
|
+
@ClusterIds = params['ClusterIds']
|
11583
|
+
@BigDealIds = params['BigDealIds']
|
11584
|
+
@RequestId = params['RequestId']
|
11585
|
+
end
|
11586
|
+
end
|
11587
|
+
|
11425
11588
|
# 审计规则的规则过滤条件
|
11426
11589
|
class RuleFilters < TencentCloud::Common::AbstractModel
|
11427
11590
|
# @param Type: 审计规则过滤条件的参数名称。可选值:host – 客户端 IP;user – 数据库账户;dbName – 数据库名称;sqlType-SQL类型;sql-sql语句;affectRows -影响行数;sentRows-返回行数;checkRows-扫描行数;execTime-执行时间。
|