tencentcloud-sdk-mariadb 1.0.238 → 1.0.239
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/v20170312/client.rb +24 -0
- data/lib/v20170312/models.rb +149 -5
- 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: f5d8dbdae324b5f3e68b2d64310d1c59dd7d42d0
|
4
|
+
data.tar.gz: 2e4ef8e92b65ed84aa4eb69fc8d009438bbabd9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81c30bba52b50d8249a7417aad185f4c861c59b2bdb70de1dbe89be48935b1cc4acbacd5737390cd0bee3d2a26720ccfdefebebe7fc4a180475529c1c6f46161
|
7
|
+
data.tar.gz: 3dd4c00c507319ac3a9188966c9d283f12e93b66df6254ac21a2dd54a9c3918983e848036d5059befc5d428ee89f69a835a5f01f6ed6c810cbf65a63fd5c7847
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.239
|
data/lib/v20170312/client.rb
CHANGED
@@ -222,6 +222,30 @@ module TencentCloud
|
|
222
222
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
223
223
|
end
|
224
224
|
|
225
|
+
# 创建后付费实例
|
226
|
+
|
227
|
+
# @param request: Request instance for CreateHourDBInstance.
|
228
|
+
# @type request: :class:`Tencentcloud::mariadb::V20170312::CreateHourDBInstanceRequest`
|
229
|
+
# @rtype: :class:`Tencentcloud::mariadb::V20170312::CreateHourDBInstanceResponse`
|
230
|
+
def CreateHourDBInstance(request)
|
231
|
+
body = send_request('CreateHourDBInstance', request.serialize)
|
232
|
+
response = JSON.parse(body)
|
233
|
+
if response['Response'].key?('Error') == false
|
234
|
+
model = CreateHourDBInstanceResponse.new
|
235
|
+
model.deserialize(response['Response'])
|
236
|
+
model
|
237
|
+
else
|
238
|
+
code = response['Response']['Error']['Code']
|
239
|
+
message = response['Response']['Error']['Message']
|
240
|
+
reqid = response['Response']['RequestId']
|
241
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
242
|
+
end
|
243
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
244
|
+
raise e
|
245
|
+
rescue StandardError => e
|
246
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
247
|
+
end
|
248
|
+
|
225
249
|
# 本接口(CreateTmpInstances)用于创建临时实例。
|
226
250
|
|
227
251
|
# @param request: Request instance for CreateTmpInstances.
|
data/lib/v20170312/models.rb
CHANGED
@@ -662,6 +662,134 @@ module TencentCloud
|
|
662
662
|
end
|
663
663
|
end
|
664
664
|
|
665
|
+
# CreateHourDBInstance请求参数结构体
|
666
|
+
class CreateHourDBInstanceRequest < TencentCloud::Common::AbstractModel
|
667
|
+
# @param Zones: 节点可用区分布,最多可填两个可用区。当分片规格为一主两从时,其中两个节点在第一个可用区。
|
668
|
+
# @type Zones: Array
|
669
|
+
# @param NodeCount: 节点个数
|
670
|
+
# @type NodeCount: Integer
|
671
|
+
# @param Memory: 内存大小,单位:GB
|
672
|
+
# @type Memory: Integer
|
673
|
+
# @param Storage: 储存大小,单位:GB
|
674
|
+
# @type Storage: Integer
|
675
|
+
# @param Count: 购买实例数量
|
676
|
+
# @type Count: Integer
|
677
|
+
# @param ProjectId: 项目ID,不传表示默认项目
|
678
|
+
# @type ProjectId: Integer
|
679
|
+
# @param VpcId: 统一网络ID,不传表示基础网络
|
680
|
+
# @type VpcId: String
|
681
|
+
# @param SubnetId: 统一子网ID,VpcId有值时需填写
|
682
|
+
# @type SubnetId: String
|
683
|
+
# @param DbVersionId: 数据库引擎版本,当前可选:10.0.10,10.1.9,5.7.17。
|
684
|
+
# 10.0.10 - Mariadb 10.0.10;
|
685
|
+
# 10.1.9 - Mariadb 10.1.9;
|
686
|
+
# 5.7.17 - Percona 5.7.17。
|
687
|
+
# 如果不填的话,默认为10.1.9,表示Mariadb 10.1.9。
|
688
|
+
# @type DbVersionId: String
|
689
|
+
# @param InstanceName: 自定义实例名称
|
690
|
+
# @type InstanceName: String
|
691
|
+
# @param SecurityGroupIds: 安全组ID,不传表示不绑定安全组
|
692
|
+
# @type SecurityGroupIds: Array
|
693
|
+
# @param Ipv6Flag: 是否支持IPv6
|
694
|
+
# @type Ipv6Flag: Integer
|
695
|
+
# @param ResourceTags: 标签键值对数组
|
696
|
+
# @type ResourceTags: Array
|
697
|
+
# @param DcnRegion: DCN源地域
|
698
|
+
# @type DcnRegion: String
|
699
|
+
# @param DcnInstanceId: DCN源实例ID
|
700
|
+
# @type DcnInstanceId: String
|
701
|
+
# @param InitParams: 参数列表。本接口的可选值为:character_set_server(字符集,必传),lower_case_table_names(表名大小写敏感,必传,0 - 敏感;1-不敏感),innodb_page_size(innodb数据页,默认16K),sync_mode(同步模式:0 - 异步; 1 - 强同步;2 - 强同步可退化。默认为强同步可退化)。
|
702
|
+
# @type InitParams: Array
|
703
|
+
# @param RollbackInstanceId: 回档源实例ID
|
704
|
+
# @type RollbackInstanceId: String
|
705
|
+
# @param RollbackTime: 回档时间
|
706
|
+
# @type RollbackTime: String
|
707
|
+
|
708
|
+
attr_accessor :Zones, :NodeCount, :Memory, :Storage, :Count, :ProjectId, :VpcId, :SubnetId, :DbVersionId, :InstanceName, :SecurityGroupIds, :Ipv6Flag, :ResourceTags, :DcnRegion, :DcnInstanceId, :InitParams, :RollbackInstanceId, :RollbackTime
|
709
|
+
|
710
|
+
def initialize(zones=nil, nodecount=nil, memory=nil, storage=nil, count=nil, projectid=nil, vpcid=nil, subnetid=nil, dbversionid=nil, instancename=nil, securitygroupids=nil, ipv6flag=nil, resourcetags=nil, dcnregion=nil, dcninstanceid=nil, initparams=nil, rollbackinstanceid=nil, rollbacktime=nil)
|
711
|
+
@Zones = zones
|
712
|
+
@NodeCount = nodecount
|
713
|
+
@Memory = memory
|
714
|
+
@Storage = storage
|
715
|
+
@Count = count
|
716
|
+
@ProjectId = projectid
|
717
|
+
@VpcId = vpcid
|
718
|
+
@SubnetId = subnetid
|
719
|
+
@DbVersionId = dbversionid
|
720
|
+
@InstanceName = instancename
|
721
|
+
@SecurityGroupIds = securitygroupids
|
722
|
+
@Ipv6Flag = ipv6flag
|
723
|
+
@ResourceTags = resourcetags
|
724
|
+
@DcnRegion = dcnregion
|
725
|
+
@DcnInstanceId = dcninstanceid
|
726
|
+
@InitParams = initparams
|
727
|
+
@RollbackInstanceId = rollbackinstanceid
|
728
|
+
@RollbackTime = rollbacktime
|
729
|
+
end
|
730
|
+
|
731
|
+
def deserialize(params)
|
732
|
+
@Zones = params['Zones']
|
733
|
+
@NodeCount = params['NodeCount']
|
734
|
+
@Memory = params['Memory']
|
735
|
+
@Storage = params['Storage']
|
736
|
+
@Count = params['Count']
|
737
|
+
@ProjectId = params['ProjectId']
|
738
|
+
@VpcId = params['VpcId']
|
739
|
+
@SubnetId = params['SubnetId']
|
740
|
+
@DbVersionId = params['DbVersionId']
|
741
|
+
@InstanceName = params['InstanceName']
|
742
|
+
@SecurityGroupIds = params['SecurityGroupIds']
|
743
|
+
@Ipv6Flag = params['Ipv6Flag']
|
744
|
+
unless params['ResourceTags'].nil?
|
745
|
+
@ResourceTags = []
|
746
|
+
params['ResourceTags'].each do |i|
|
747
|
+
resourcetag_tmp = ResourceTag.new
|
748
|
+
resourcetag_tmp.deserialize(i)
|
749
|
+
@ResourceTags << resourcetag_tmp
|
750
|
+
end
|
751
|
+
end
|
752
|
+
@DcnRegion = params['DcnRegion']
|
753
|
+
@DcnInstanceId = params['DcnInstanceId']
|
754
|
+
unless params['InitParams'].nil?
|
755
|
+
@InitParams = []
|
756
|
+
params['InitParams'].each do |i|
|
757
|
+
dbparamvalue_tmp = DBParamValue.new
|
758
|
+
dbparamvalue_tmp.deserialize(i)
|
759
|
+
@InitParams << dbparamvalue_tmp
|
760
|
+
end
|
761
|
+
end
|
762
|
+
@RollbackInstanceId = params['RollbackInstanceId']
|
763
|
+
@RollbackTime = params['RollbackTime']
|
764
|
+
end
|
765
|
+
end
|
766
|
+
|
767
|
+
# CreateHourDBInstance返回参数结构体
|
768
|
+
class CreateHourDBInstanceResponse < TencentCloud::Common::AbstractModel
|
769
|
+
# @param DealName: 长订单号。可以据此调用 DescribeOrders
|
770
|
+
# 查询订单详细信息,或在支付失败时调用用户账号相关接口进行支付。
|
771
|
+
# @type DealName: String
|
772
|
+
# @param InstanceIds: 订单对应的实例 ID 列表,如果此处没有返回实例 ID,可以通过订单查询接口获取。还可通过实例查询接口查询实例是否创建完成。
|
773
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
774
|
+
# @type InstanceIds: Array
|
775
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
776
|
+
# @type RequestId: String
|
777
|
+
|
778
|
+
attr_accessor :DealName, :InstanceIds, :RequestId
|
779
|
+
|
780
|
+
def initialize(dealname=nil, instanceids=nil, requestid=nil)
|
781
|
+
@DealName = dealname
|
782
|
+
@InstanceIds = instanceids
|
783
|
+
@RequestId = requestid
|
784
|
+
end
|
785
|
+
|
786
|
+
def deserialize(params)
|
787
|
+
@DealName = params['DealName']
|
788
|
+
@InstanceIds = params['InstanceIds']
|
789
|
+
@RequestId = params['RequestId']
|
790
|
+
end
|
791
|
+
end
|
792
|
+
|
665
793
|
# CreateTmpInstances请求参数结构体
|
666
794
|
class CreateTmpInstancesRequest < TencentCloud::Common::AbstractModel
|
667
795
|
# @param InstanceIds: 回档实例的ID列表,形如:tdsql-ow728lmc。
|
@@ -883,10 +1011,13 @@ module TencentCloud
|
|
883
1011
|
# @param InstanceType: 1: 主实例(独享型), 2: 主实例, 3: 灾备实例, 4: 灾备实例(独享型)
|
884
1012
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
885
1013
|
# @type InstanceType: Integer
|
1014
|
+
# @param ResourceTags: 实例标签信息
|
1015
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1016
|
+
# @type ResourceTags: Array
|
886
1017
|
|
887
|
-
attr_accessor :InstanceId, :InstanceName, :AppId, :ProjectId, :Region, :Zone, :VpcId, :SubnetId, :Status, :Vip, :Vport, :WanDomain, :WanVip, :WanPort, :CreateTime, :UpdateTime, :AutoRenewFlag, :PeriodEndTime, :Uin, :TdsqlVersion, :Memory, :Storage, :UniqueVpcId, :UniqueSubnetId, :OriginSerialId, :NodeCount, :IsTmp, :ExclusterId, :Id, :Pid, :Qps, :Paymode, :Locker, :StatusDesc, :WanStatus, :IsAuditSupported, :Machine, :IsEncryptSupported, :Cpu, :Ipv6Flag, :Vipv6, :WanVipv6, :WanPortIpv6, :WanStatusIpv6, :DbEngine, :DbVersion, :DcnFlag, :DcnStatus, :DcnDstNum, :InstanceType
|
1018
|
+
attr_accessor :InstanceId, :InstanceName, :AppId, :ProjectId, :Region, :Zone, :VpcId, :SubnetId, :Status, :Vip, :Vport, :WanDomain, :WanVip, :WanPort, :CreateTime, :UpdateTime, :AutoRenewFlag, :PeriodEndTime, :Uin, :TdsqlVersion, :Memory, :Storage, :UniqueVpcId, :UniqueSubnetId, :OriginSerialId, :NodeCount, :IsTmp, :ExclusterId, :Id, :Pid, :Qps, :Paymode, :Locker, :StatusDesc, :WanStatus, :IsAuditSupported, :Machine, :IsEncryptSupported, :Cpu, :Ipv6Flag, :Vipv6, :WanVipv6, :WanPortIpv6, :WanStatusIpv6, :DbEngine, :DbVersion, :DcnFlag, :DcnStatus, :DcnDstNum, :InstanceType, :ResourceTags
|
888
1019
|
|
889
|
-
def initialize(instanceid=nil, instancename=nil, appid=nil, projectid=nil, region=nil, zone=nil, vpcid=nil, subnetid=nil, status=nil, vip=nil, vport=nil, wandomain=nil, wanvip=nil, wanport=nil, createtime=nil, updatetime=nil, autorenewflag=nil, periodendtime=nil, uin=nil, tdsqlversion=nil, memory=nil, storage=nil, uniquevpcid=nil, uniquesubnetid=nil, originserialid=nil, nodecount=nil, istmp=nil, exclusterid=nil, id=nil, pid=nil, qps=nil, paymode=nil, locker=nil, statusdesc=nil, wanstatus=nil, isauditsupported=nil, machine=nil, isencryptsupported=nil, cpu=nil, ipv6flag=nil, vipv6=nil, wanvipv6=nil, wanportipv6=nil, wanstatusipv6=nil, dbengine=nil, dbversion=nil, dcnflag=nil, dcnstatus=nil, dcndstnum=nil, instancetype=nil)
|
1020
|
+
def initialize(instanceid=nil, instancename=nil, appid=nil, projectid=nil, region=nil, zone=nil, vpcid=nil, subnetid=nil, status=nil, vip=nil, vport=nil, wandomain=nil, wanvip=nil, wanport=nil, createtime=nil, updatetime=nil, autorenewflag=nil, periodendtime=nil, uin=nil, tdsqlversion=nil, memory=nil, storage=nil, uniquevpcid=nil, uniquesubnetid=nil, originserialid=nil, nodecount=nil, istmp=nil, exclusterid=nil, id=nil, pid=nil, qps=nil, paymode=nil, locker=nil, statusdesc=nil, wanstatus=nil, isauditsupported=nil, machine=nil, isencryptsupported=nil, cpu=nil, ipv6flag=nil, vipv6=nil, wanvipv6=nil, wanportipv6=nil, wanstatusipv6=nil, dbengine=nil, dbversion=nil, dcnflag=nil, dcnstatus=nil, dcndstnum=nil, instancetype=nil, resourcetags=nil)
|
890
1021
|
@InstanceId = instanceid
|
891
1022
|
@InstanceName = instancename
|
892
1023
|
@AppId = appid
|
@@ -937,6 +1068,7 @@ module TencentCloud
|
|
937
1068
|
@DcnStatus = dcnstatus
|
938
1069
|
@DcnDstNum = dcndstnum
|
939
1070
|
@InstanceType = instancetype
|
1071
|
+
@ResourceTags = resourcetags
|
940
1072
|
end
|
941
1073
|
|
942
1074
|
def deserialize(params)
|
@@ -990,6 +1122,14 @@ module TencentCloud
|
|
990
1122
|
@DcnStatus = params['DcnStatus']
|
991
1123
|
@DcnDstNum = params['DcnDstNum']
|
992
1124
|
@InstanceType = params['InstanceType']
|
1125
|
+
unless params['ResourceTags'].nil?
|
1126
|
+
@ResourceTags = []
|
1127
|
+
params['ResourceTags'].each do |i|
|
1128
|
+
resourcetag_tmp = ResourceTag.new
|
1129
|
+
resourcetag_tmp.deserialize(i)
|
1130
|
+
@ResourceTags << resourcetag_tmp
|
1131
|
+
end
|
1132
|
+
end
|
993
1133
|
end
|
994
1134
|
end
|
995
1135
|
|
@@ -2515,13 +2655,16 @@ module TencentCloud
|
|
2515
2655
|
class DescribeProjectSecurityGroupsResponse < TencentCloud::Common::AbstractModel
|
2516
2656
|
# @param Groups: 安全组详情。
|
2517
2657
|
# @type Groups: Array
|
2658
|
+
# @param Total: 安全组总数。
|
2659
|
+
# @type Total: Integer
|
2518
2660
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2519
2661
|
# @type RequestId: String
|
2520
2662
|
|
2521
|
-
attr_accessor :Groups, :RequestId
|
2663
|
+
attr_accessor :Groups, :Total, :RequestId
|
2522
2664
|
|
2523
|
-
def initialize(groups=nil, requestid=nil)
|
2665
|
+
def initialize(groups=nil, total=nil, requestid=nil)
|
2524
2666
|
@Groups = groups
|
2667
|
+
@Total = total
|
2525
2668
|
@RequestId = requestid
|
2526
2669
|
end
|
2527
2670
|
|
@@ -2534,6 +2677,7 @@ module TencentCloud
|
|
2534
2677
|
@Groups << securitygroup_tmp
|
2535
2678
|
end
|
2536
2679
|
end
|
2680
|
+
@Total = params['Total']
|
2537
2681
|
@RequestId = params['RequestId']
|
2538
2682
|
end
|
2539
2683
|
end
|
@@ -3599,7 +3743,7 @@ module TencentCloud
|
|
3599
3743
|
|
3600
3744
|
# ModifySyncTaskAttribute请求参数结构体
|
3601
3745
|
class ModifySyncTaskAttributeRequest < TencentCloud::Common::AbstractModel
|
3602
|
-
# @param TaskIds: 一个或多个待操作的任务ID。可通过DescribeSyncTasks API返回值中的TaskId
|
3746
|
+
# @param TaskIds: 一个或多个待操作的任务ID。可通过DescribeSyncTasks API返回值中的TaskId获取。每次请求允许操作的任务数量上限是100。
|
3603
3747
|
# @type TaskIds: Array
|
3604
3748
|
# @param TaskName: 任务名称。可任意命名,但不得超过100个字符。
|
3605
3749
|
# @type TaskName: String
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-mariadb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.239
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|