tencentcloud-sdk-dcdb 1.0.237 → 1.0.241

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3316665c2c7a0529c07855fdf8d96cd5515e605
4
- data.tar.gz: 55dda2194e50d55430876b74cc4b14284a01dba3
3
+ metadata.gz: a1f9b6194fb090ef76c4ad65e29b1977f7a3e2ff
4
+ data.tar.gz: cd97e7a5e0873e93fa4c2a7e4ab9fa0fbdf11d04
5
5
  SHA512:
6
- metadata.gz: 1b1fd7b4a95b112b7dfe28c4700aa3ba21d9fc3b4e8fb67f0ebf94699037fc38b08c5f94d80da6b20c12d820d9026910eb0327b3aad49efab7e5d0a58dcfe96f
7
- data.tar.gz: 269331f4b929c37f9e6c4a598f6394b8411e4270311f763e1fbab7616c255d78bc7a41674ab8937a5102a83d9009890ada251ea311d46c7204d01101eda0a14b
6
+ metadata.gz: a1f2c28cde3a518c2bb5d18b078a7caea581274a145958b06fc1e8b742991fa40eb095787a4161ffb09bef6e123d80567da5f2999a65156b3d584fe0f35e0991
7
+ data.tar.gz: e540a9612edc6d79b1083aa63084ae6d0ffbc6ae9831d20b04e6837048d86956335f22ad956984f5739ce92c10e656fd929a824018cfb7ed313a2519f910e07f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.237
1
+ 1.0.241
@@ -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.237
4
+ version: 1.0.241
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-07 00:00:00.000000000 Z
11
+ date: 2022-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common