tencentcloud-sdk-dcdb 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: bc40da967f973dc1689ff70b48e849f3a0be13a6
4
- data.tar.gz: bd7fa19660788e7364132cc28ef30de25ea94335
3
+ metadata.gz: 554776a692d48dc4107707c2c2025a110fb46246
4
+ data.tar.gz: c3126f1844b4feafcb44668457020dd17bb9c5f2
5
5
  SHA512:
6
- metadata.gz: c9407b940bac9932b76f2e651db861969bedf0bb6e5e191f54656a4c3fde18198b1714ff8dd59a65d1b791eb16441231c874ad121b86c5b4fd1c7aa3b59ad940
7
- data.tar.gz: 2581c37f93b4a02a185702a2cac28501300e16f8354375e8804c3954b30b33f6ff9befc4743d3d56c0e09e1f0ab3b26d2c8abb99e52a9495c9560cc30a113fa1
6
+ metadata.gz: 82e52fd5f38b8ea5a901bdd972a6ea9b62f2f4bf254e8e06203a1eec4c2c908c9978ce08d20aa9eca4acba7b78c78db575cdbd5f82da37de6b1665a0b92079a1
7
+ data.tar.gz: a3432b0c6ea2599942060c6287514e9545e6445f34bc6edbe59e316670fa00b10bd26ee560917995085a294f22eb6ae46a432cb433b03d5868b0da9780398910
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.238
1
+ 1.0.242
@@ -1240,6 +1240,30 @@ module TencentCloud
1240
1240
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1241
1241
  end
1242
1242
 
1243
+ # 本接口(SwitchDBInstanceHA)用于实例主备切换。
1244
+
1245
+ # @param request: Request instance for SwitchDBInstanceHA.
1246
+ # @type request: :class:`Tencentcloud::dcdb::V20180411::SwitchDBInstanceHARequest`
1247
+ # @rtype: :class:`Tencentcloud::dcdb::V20180411::SwitchDBInstanceHAResponse`
1248
+ def SwitchDBInstanceHA(request)
1249
+ body = send_request('SwitchDBInstanceHA', request.serialize)
1250
+ response = JSON.parse(body)
1251
+ if response['Response'].key?('Error') == false
1252
+ model = SwitchDBInstanceHAResponse.new
1253
+ model.deserialize(response['Response'])
1254
+ model
1255
+ else
1256
+ code = response['Response']['Error']['Code']
1257
+ message = response['Response']['Error']['Message']
1258
+ reqid = response['Response']['RequestId']
1259
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1260
+ end
1261
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1262
+ raise e
1263
+ rescue StandardError => e
1264
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1265
+ end
1266
+
1243
1267
  # 本接口(UpgradeDCDBInstance)用于升级分布式数据库实例。本接口完成下单和支付两个动作,如果发生支付失败的错误,调用用户账户相关接口中的支付订单接口(PayDeals)重新支付即可。
1244
1268
 
1245
1269
  # @param request: Request instance for UpgradeDCDBInstance.
@@ -438,10 +438,12 @@ module TencentCloud
438
438
  # @type DcnInstanceId: String
439
439
  # @param AutoRenewFlag: 自动续费标记,0表示默认状态(用户未设置,即初始状态即手动续费,用户开通了预付费不停服特权也会进行自动续费), 1表示自动续费,2表示明确不自动续费(用户设置),若业务无续费概念或无需自动续费,需要设置为0
440
440
  # @type AutoRenewFlag: Integer
441
+ # @param SecurityGroupIds: 安全组ids,安全组可以传数组形式,兼容之前SecurityGroupId参数
442
+ # @type SecurityGroupIds: Array
441
443
 
442
- attr_accessor :Zones, :Period, :ShardMemory, :ShardStorage, :ShardNodeCount, :ShardCount, :Count, :ProjectId, :VpcId, :SubnetId, :DbVersionId, :AutoVoucher, :VoucherIds, :SecurityGroupId, :InstanceName, :Ipv6Flag, :ResourceTags, :InitParams, :DcnRegion, :DcnInstanceId, :AutoRenewFlag
444
+ attr_accessor :Zones, :Period, :ShardMemory, :ShardStorage, :ShardNodeCount, :ShardCount, :Count, :ProjectId, :VpcId, :SubnetId, :DbVersionId, :AutoVoucher, :VoucherIds, :SecurityGroupId, :InstanceName, :Ipv6Flag, :ResourceTags, :InitParams, :DcnRegion, :DcnInstanceId, :AutoRenewFlag, :SecurityGroupIds
443
445
 
444
- def initialize(zones=nil, period=nil, shardmemory=nil, shardstorage=nil, shardnodecount=nil, shardcount=nil, count=nil, projectid=nil, vpcid=nil, subnetid=nil, dbversionid=nil, autovoucher=nil, voucherids=nil, securitygroupid=nil, instancename=nil, ipv6flag=nil, resourcetags=nil, initparams=nil, dcnregion=nil, dcninstanceid=nil, autorenewflag=nil)
446
+ def initialize(zones=nil, period=nil, shardmemory=nil, shardstorage=nil, shardnodecount=nil, shardcount=nil, count=nil, projectid=nil, vpcid=nil, subnetid=nil, dbversionid=nil, autovoucher=nil, voucherids=nil, securitygroupid=nil, instancename=nil, ipv6flag=nil, resourcetags=nil, initparams=nil, dcnregion=nil, dcninstanceid=nil, autorenewflag=nil, securitygroupids=nil)
445
447
  @Zones = zones
446
448
  @Period = period
447
449
  @ShardMemory = shardmemory
@@ -463,6 +465,7 @@ module TencentCloud
463
465
  @DcnRegion = dcnregion
464
466
  @DcnInstanceId = dcninstanceid
465
467
  @AutoRenewFlag = autorenewflag
468
+ @SecurityGroupIds = securitygroupids
466
469
  end
467
470
 
468
471
  def deserialize(params)
@@ -501,6 +504,7 @@ module TencentCloud
501
504
  @DcnRegion = params['DcnRegion']
502
505
  @DcnInstanceId = params['DcnInstanceId']
503
506
  @AutoRenewFlag = params['AutoRenewFlag']
507
+ @SecurityGroupIds = params['SecurityGroupIds']
504
508
  end
505
509
  end
506
510
 
@@ -841,10 +845,13 @@ module TencentCloud
841
845
  # @param InstanceType: 1: 主实例(独享型), 2: 主实例, 3: 灾备实例, 4: 灾备实例(独享型)
842
846
  # 注意:此字段可能返回 null,表示取不到有效值。
843
847
  # @type InstanceType: Integer
848
+ # @param ResourceTags: 实例标签信息
849
+ # 注意:此字段可能返回 null,表示取不到有效值。
850
+ # @type ResourceTags: Array
844
851
 
845
- attr_accessor :InstanceId, :InstanceName, :AppId, :ProjectId, :Region, :Zone, :VpcId, :SubnetId, :StatusDesc, :Status, :Vip, :Vport, :CreateTime, :AutoRenewFlag, :Memory, :Storage, :ShardCount, :PeriodEndTime, :IsolatedTimestamp, :Uin, :ShardDetail, :NodeCount, :IsTmp, :ExclusterId, :UniqueVpcId, :UniqueSubnetId, :Id, :WanDomain, :WanVip, :WanPort, :Pid, :UpdateTime, :DbEngine, :DbVersion, :Paymode, :Locker, :WanStatus, :IsAuditSupported, :Cpu, :Ipv6Flag, :Vipv6, :WanVipv6, :WanPortIpv6, :WanStatusIpv6, :DcnFlag, :DcnStatus, :DcnDstNum, :InstanceType
852
+ attr_accessor :InstanceId, :InstanceName, :AppId, :ProjectId, :Region, :Zone, :VpcId, :SubnetId, :StatusDesc, :Status, :Vip, :Vport, :CreateTime, :AutoRenewFlag, :Memory, :Storage, :ShardCount, :PeriodEndTime, :IsolatedTimestamp, :Uin, :ShardDetail, :NodeCount, :IsTmp, :ExclusterId, :UniqueVpcId, :UniqueSubnetId, :Id, :WanDomain, :WanVip, :WanPort, :Pid, :UpdateTime, :DbEngine, :DbVersion, :Paymode, :Locker, :WanStatus, :IsAuditSupported, :Cpu, :Ipv6Flag, :Vipv6, :WanVipv6, :WanPortIpv6, :WanStatusIpv6, :DcnFlag, :DcnStatus, :DcnDstNum, :InstanceType, :ResourceTags
846
853
 
847
- def initialize(instanceid=nil, instancename=nil, appid=nil, projectid=nil, region=nil, zone=nil, vpcid=nil, subnetid=nil, statusdesc=nil, status=nil, vip=nil, vport=nil, createtime=nil, autorenewflag=nil, memory=nil, storage=nil, shardcount=nil, periodendtime=nil, isolatedtimestamp=nil, uin=nil, sharddetail=nil, nodecount=nil, istmp=nil, exclusterid=nil, uniquevpcid=nil, uniquesubnetid=nil, id=nil, wandomain=nil, wanvip=nil, wanport=nil, pid=nil, updatetime=nil, dbengine=nil, dbversion=nil, paymode=nil, locker=nil, wanstatus=nil, isauditsupported=nil, cpu=nil, ipv6flag=nil, vipv6=nil, wanvipv6=nil, wanportipv6=nil, wanstatusipv6=nil, dcnflag=nil, dcnstatus=nil, dcndstnum=nil, instancetype=nil)
854
+ def initialize(instanceid=nil, instancename=nil, appid=nil, projectid=nil, region=nil, zone=nil, vpcid=nil, subnetid=nil, statusdesc=nil, status=nil, vip=nil, vport=nil, createtime=nil, autorenewflag=nil, memory=nil, storage=nil, shardcount=nil, periodendtime=nil, isolatedtimestamp=nil, uin=nil, sharddetail=nil, nodecount=nil, istmp=nil, exclusterid=nil, uniquevpcid=nil, uniquesubnetid=nil, id=nil, wandomain=nil, wanvip=nil, wanport=nil, pid=nil, updatetime=nil, dbengine=nil, dbversion=nil, paymode=nil, locker=nil, wanstatus=nil, isauditsupported=nil, cpu=nil, ipv6flag=nil, vipv6=nil, wanvipv6=nil, wanportipv6=nil, wanstatusipv6=nil, dcnflag=nil, dcnstatus=nil, dcndstnum=nil, instancetype=nil, resourcetags=nil)
848
855
  @InstanceId = instanceid
849
856
  @InstanceName = instancename
850
857
  @AppId = appid
@@ -893,6 +900,7 @@ module TencentCloud
893
900
  @DcnStatus = dcnstatus
894
901
  @DcnDstNum = dcndstnum
895
902
  @InstanceType = instancetype
903
+ @ResourceTags = resourcetags
896
904
  end
897
905
 
898
906
  def deserialize(params)
@@ -951,6 +959,14 @@ module TencentCloud
951
959
  @DcnStatus = params['DcnStatus']
952
960
  @DcnDstNum = params['DcnDstNum']
953
961
  @InstanceType = params['InstanceType']
962
+ unless params['ResourceTags'].nil?
963
+ @ResourceTags = []
964
+ params['ResourceTags'].each do |i|
965
+ resourcetag_tmp = ResourceTag.new
966
+ resourcetag_tmp.deserialize(i)
967
+ @ResourceTags << resourcetag_tmp
968
+ end
969
+ end
954
970
  end
955
971
  end
956
972
 
@@ -2512,13 +2528,16 @@ module TencentCloud
2512
2528
  class DescribeProjectSecurityGroupsResponse < TencentCloud::Common::AbstractModel
2513
2529
  # @param Groups: 安全组详情。
2514
2530
  # @type Groups: Array
2531
+ # @param Total: 安全组个数。
2532
+ # @type Total: Integer
2515
2533
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2516
2534
  # @type RequestId: String
2517
2535
 
2518
- attr_accessor :Groups, :RequestId
2536
+ attr_accessor :Groups, :Total, :RequestId
2519
2537
 
2520
- def initialize(groups=nil, requestid=nil)
2538
+ def initialize(groups=nil, total=nil, requestid=nil)
2521
2539
  @Groups = groups
2540
+ @Total = total
2522
2541
  @RequestId = requestid
2523
2542
  end
2524
2543
 
@@ -2531,6 +2550,7 @@ module TencentCloud
2531
2550
  @Groups << securitygroup_tmp
2532
2551
  end
2533
2552
  end
2553
+ @Total = params['Total']
2534
2554
  @RequestId = params['RequestId']
2535
2555
  end
2536
2556
  end
@@ -3780,27 +3800,27 @@ module TencentCloud
3780
3800
 
3781
3801
  # 安全出入口规则
3782
3802
  class SecurityGroupBound < TencentCloud::Common::AbstractModel
3783
- # @param Action: 策略,ACCEPT 或者 DROP
3784
- # @type Action: String
3785
3803
  # @param CidrIp: 来源 IP 或 IP 段,例如192.168.0.0/16
3786
3804
  # @type CidrIp: String
3805
+ # @param Action: 策略,ACCEPT 或者 DROP
3806
+ # @type Action: String
3787
3807
  # @param PortRange: 端口
3788
3808
  # @type PortRange: String
3789
3809
  # @param IpProtocol: 网络协议,支持 UDP、TCP 等
3790
3810
  # @type IpProtocol: String
3791
3811
 
3792
- attr_accessor :Action, :CidrIp, :PortRange, :IpProtocol
3812
+ attr_accessor :CidrIp, :Action, :PortRange, :IpProtocol
3793
3813
 
3794
- def initialize(action=nil, cidrip=nil, portrange=nil, ipprotocol=nil)
3795
- @Action = action
3814
+ def initialize(cidrip=nil, action=nil, portrange=nil, ipprotocol=nil)
3796
3815
  @CidrIp = cidrip
3816
+ @Action = action
3797
3817
  @PortRange = portrange
3798
3818
  @IpProtocol = ipprotocol
3799
3819
  end
3800
3820
 
3801
3821
  def deserialize(params)
3802
- @Action = params['Action']
3803
3822
  @CidrIp = params['CidrIp']
3823
+ @Action = params['Action']
3804
3824
  @PortRange = params['PortRange']
3805
3825
  @IpProtocol = params['IpProtocol']
3806
3826
  end
@@ -4039,6 +4059,46 @@ module TencentCloud
4039
4059
  end
4040
4060
  end
4041
4061
 
4062
+ # SwitchDBInstanceHA请求参数结构体
4063
+ class SwitchDBInstanceHARequest < TencentCloud::Common::AbstractModel
4064
+ # @param InstanceId: 实例Id,形如 tdsql-ow728lmc。
4065
+ # @type InstanceId: String
4066
+ # @param Zone: 切换的目标区域,会自动选择该可用区中延迟最低的节点。
4067
+ # @type Zone: String
4068
+
4069
+ attr_accessor :InstanceId, :Zone
4070
+
4071
+ def initialize(instanceid=nil, zone=nil)
4072
+ @InstanceId = instanceid
4073
+ @Zone = zone
4074
+ end
4075
+
4076
+ def deserialize(params)
4077
+ @InstanceId = params['InstanceId']
4078
+ @Zone = params['Zone']
4079
+ end
4080
+ end
4081
+
4082
+ # SwitchDBInstanceHA返回参数结构体
4083
+ class SwitchDBInstanceHAResponse < TencentCloud::Common::AbstractModel
4084
+ # @param FlowId: 异步流程Id
4085
+ # @type FlowId: Integer
4086
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4087
+ # @type RequestId: String
4088
+
4089
+ attr_accessor :FlowId, :RequestId
4090
+
4091
+ def initialize(flowid=nil, requestid=nil)
4092
+ @FlowId = flowid
4093
+ @RequestId = requestid
4094
+ end
4095
+
4096
+ def deserialize(params)
4097
+ @FlowId = params['FlowId']
4098
+ @RequestId = params['RequestId']
4099
+ end
4100
+ end
4101
+
4042
4102
  # 数据库列信息
4043
4103
  class TableColumn < TencentCloud::Common::AbstractModel
4044
4104
  # @param Col: 列名称
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-dcdb
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