tencentcloud-sdk-mariadb 1.0.238 → 1.0.242

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: 72500ca12d49a3978a1a3d4954dd9326a491a66e
4
- data.tar.gz: 8042e91ed52bbd040a51cbee34dc57f7fece9ecd
3
+ metadata.gz: 6879371a75d8c60e157561222bb293a54f30818f
4
+ data.tar.gz: 876c577525693c3a746dac93f319cca07fb1e790
5
5
  SHA512:
6
- metadata.gz: 1351e492946e12ab51fb1a6068bf736b7f564abf61724f78f1eb49943efe4bc5aa793e6df6222725ffd292ad79c034a4bbaa1fa463aa86a05d59433f34e94c6d
7
- data.tar.gz: bfc4118b24d617d8d66247f22d12ef11bdb1003c64fa00b828b8cc0812c8c5eaf5005e58a3eb9520f0aad1c08a9d37264e4896193d3103de0941abd896258646
6
+ metadata.gz: 28a493fcd1602cacf42a3ad644bb332d336b9811356778078516e04496bde57be68dcb8f4540f0ca1548181118c3f22b600db72f0a57cbcad200ad55932a5ad3
7
+ data.tar.gz: 2e500e1ff93fb5246d516ed4147b6f25b5f6a4e2910793d0f0901ff460aa42b6b0e9fe83b86f53febe910c4e06146ca1b53187747cc7d1811a34d78a16818dc7
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.238
1
+ 1.0.242
@@ -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.
@@ -1413,6 +1437,30 @@ module TencentCloud
1413
1437
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1414
1438
  end
1415
1439
 
1440
+ # 本接口(SwitchDBInstanceHA)用于发起实例主备切换。
1441
+
1442
+ # @param request: Request instance for SwitchDBInstanceHA.
1443
+ # @type request: :class:`Tencentcloud::mariadb::V20170312::SwitchDBInstanceHARequest`
1444
+ # @rtype: :class:`Tencentcloud::mariadb::V20170312::SwitchDBInstanceHAResponse`
1445
+ def SwitchDBInstanceHA(request)
1446
+ body = send_request('SwitchDBInstanceHA', request.serialize)
1447
+ response = JSON.parse(body)
1448
+ if response['Response'].key?('Error') == false
1449
+ model = SwitchDBInstanceHAResponse.new
1450
+ model.deserialize(response['Response'])
1451
+ model
1452
+ else
1453
+ code = response['Response']['Error']['Code']
1454
+ message = response['Response']['Error']['Message']
1455
+ reqid = response['Response']['RequestId']
1456
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1457
+ end
1458
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1459
+ raise e
1460
+ rescue StandardError => e
1461
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1462
+ end
1463
+
1416
1464
  # 本接口(UpgradeDBInstance)用于扩容云数据库实例。本接口完成下单和支付两个动作,如果发生支付失败的错误,调用用户账户相关接口中的支付订单接口(PayDeals)重新支付即可。
1417
1465
 
1418
1466
  # @param request: Request instance for UpgradeDBInstance.
@@ -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获取。每次请求允许操作的实例数量上限是100。
3746
+ # @param TaskIds: 一个或多个待操作的任务ID。可通过DescribeSyncTasks API返回值中的TaskId获取。每次请求允许操作的任务数量上限是100。
3603
3747
  # @type TaskIds: Array
3604
3748
  # @param TaskName: 任务名称。可任意命名,但不得超过100个字符。
3605
3749
  # @type TaskName: String
@@ -4425,6 +4569,46 @@ module TencentCloud
4425
4569
  end
4426
4570
  end
4427
4571
 
4572
+ # SwitchDBInstanceHA请求参数结构体
4573
+ class SwitchDBInstanceHARequest < TencentCloud::Common::AbstractModel
4574
+ # @param InstanceId: 实例Id,形如 tdsql-ow728lmc
4575
+ # @type InstanceId: String
4576
+ # @param Zone: 切换的目标区域,会自动选择该可用区中延迟最低的节点
4577
+ # @type Zone: String
4578
+
4579
+ attr_accessor :InstanceId, :Zone
4580
+
4581
+ def initialize(instanceid=nil, zone=nil)
4582
+ @InstanceId = instanceid
4583
+ @Zone = zone
4584
+ end
4585
+
4586
+ def deserialize(params)
4587
+ @InstanceId = params['InstanceId']
4588
+ @Zone = params['Zone']
4589
+ end
4590
+ end
4591
+
4592
+ # SwitchDBInstanceHA返回参数结构体
4593
+ class SwitchDBInstanceHAResponse < TencentCloud::Common::AbstractModel
4594
+ # @param FlowId: 异步流程Id
4595
+ # @type FlowId: Integer
4596
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4597
+ # @type RequestId: String
4598
+
4599
+ attr_accessor :FlowId, :RequestId
4600
+
4601
+ def initialize(flowid=nil, requestid=nil)
4602
+ @FlowId = flowid
4603
+ @RequestId = requestid
4604
+ end
4605
+
4606
+ def deserialize(params)
4607
+ @FlowId = params['FlowId']
4608
+ @RequestId = params['RequestId']
4609
+ end
4610
+ end
4611
+
4428
4612
  # 数据库表权限
4429
4613
  class TablePrivilege < TencentCloud::Common::AbstractModel
4430
4614
  # @param Database: 数据库名
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.238
4
+ version: 1.0.242
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-10 00:00:00.000000000 Z
11
+ date: 2022-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common