tencentcloud-sdk-cynosdb 3.0.594 → 3.0.595

Sign up to get free protection for your applications and to get access to all the features.
@@ -850,6 +850,54 @@ module TencentCloud
850
850
  end
851
851
  end
852
852
 
853
+ # CloseProxy请求参数结构体
854
+ class CloseProxyRequest < TencentCloud::Common::AbstractModel
855
+ # @param ClusterId: 集群ID
856
+ # @type ClusterId: String
857
+ # @param ProxyGroupId: 数据库代理组ID
858
+ # @type ProxyGroupId: String
859
+ # @param OnlyCloseRW: 是否只关闭读写分离,取值:是 "true","false"
860
+ # @type OnlyCloseRW: Boolean
861
+
862
+ attr_accessor :ClusterId, :ProxyGroupId, :OnlyCloseRW
863
+
864
+ def initialize(clusterid=nil, proxygroupid=nil, onlycloserw=nil)
865
+ @ClusterId = clusterid
866
+ @ProxyGroupId = proxygroupid
867
+ @OnlyCloseRW = onlycloserw
868
+ end
869
+
870
+ def deserialize(params)
871
+ @ClusterId = params['ClusterId']
872
+ @ProxyGroupId = params['ProxyGroupId']
873
+ @OnlyCloseRW = params['OnlyCloseRW']
874
+ end
875
+ end
876
+
877
+ # CloseProxy返回参数结构体
878
+ class CloseProxyResponse < TencentCloud::Common::AbstractModel
879
+ # @param FlowId: 异步流程ID
880
+ # @type FlowId: Integer
881
+ # @param TaskId: 异步任务ID
882
+ # @type TaskId: Integer
883
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
884
+ # @type RequestId: String
885
+
886
+ attr_accessor :FlowId, :TaskId, :RequestId
887
+
888
+ def initialize(flowid=nil, taskid=nil, requestid=nil)
889
+ @FlowId = flowid
890
+ @TaskId = taskid
891
+ @RequestId = requestid
892
+ end
893
+
894
+ def deserialize(params)
895
+ @FlowId = params['FlowId']
896
+ @TaskId = params['TaskId']
897
+ @RequestId = params['RequestId']
898
+ end
899
+ end
900
+
853
901
  # CloseWan请求参数结构体
854
902
  class CloseWanRequest < TencentCloud::Common::AbstractModel
855
903
  # @param InstanceGrpId: 实例组id
@@ -1615,6 +1663,216 @@ module TencentCloud
1615
1663
  end
1616
1664
  end
1617
1665
 
1666
+ # CreateProxyEndPoint请求参数结构体
1667
+ class CreateProxyEndPointRequest < TencentCloud::Common::AbstractModel
1668
+ # @param ClusterId: 集群ID
1669
+ # @type ClusterId: String
1670
+ # @param UniqueVpcId: 私有网络ID,默认与集群私有网络ID保持一致
1671
+ # @type UniqueVpcId: String
1672
+ # @param UniqueSubnetId: 私有网络子网ID,默认与集群子网ID保持一致
1673
+ # @type UniqueSubnetId: String
1674
+ # @param ConnectionPoolType: 连接池类型:SessionConnectionPool(会话级别连接池 )
1675
+ # @type ConnectionPoolType: String
1676
+ # @param OpenConnectionPool: 是否开启连接池,yes-开启,no-不开启
1677
+ # @type OpenConnectionPool: String
1678
+ # @param ConnectionPoolTimeOut: 连接池阀值:单位(秒)
1679
+ # @type ConnectionPoolTimeOut: Integer
1680
+ # @param SecurityGroupIds: 安全组ID数组
1681
+ # @type SecurityGroupIds: Array
1682
+ # @param Description: 描述说明
1683
+ # @type Description: String
1684
+ # @param Vip: vip信息
1685
+ # @type Vip: String
1686
+ # @param WeightMode: 权重模式:
1687
+ # system-系统分配,custom-自定义
1688
+ # @type WeightMode: String
1689
+ # @param AutoAddRo: 是否自动添加只读实例,yes-是,no-不自动添加
1690
+ # @type AutoAddRo: String
1691
+ # @param FailOver: 是否开启故障转移
1692
+ # @type FailOver: String
1693
+ # @param ConsistencyType: 一致性类型:
1694
+ # eventual,global,session
1695
+ # @type ConsistencyType: String
1696
+ # @param RwType: 读写属性:
1697
+ # READWRITE,READONLY
1698
+ # @type RwType: String
1699
+ # @param ConsistencyTimeOut: 一致性超时时间
1700
+ # @type ConsistencyTimeOut: Integer
1701
+ # @param TransSplit: 事务拆分
1702
+ # @type TransSplit: Boolean
1703
+ # @param AccessMode: 连接模式:
1704
+ # nearby,balance
1705
+ # @type AccessMode: String
1706
+ # @param InstanceWeights: 实例权重
1707
+ # @type InstanceWeights: Array
1708
+
1709
+ attr_accessor :ClusterId, :UniqueVpcId, :UniqueSubnetId, :ConnectionPoolType, :OpenConnectionPool, :ConnectionPoolTimeOut, :SecurityGroupIds, :Description, :Vip, :WeightMode, :AutoAddRo, :FailOver, :ConsistencyType, :RwType, :ConsistencyTimeOut, :TransSplit, :AccessMode, :InstanceWeights
1710
+
1711
+ def initialize(clusterid=nil, uniquevpcid=nil, uniquesubnetid=nil, connectionpooltype=nil, openconnectionpool=nil, connectionpooltimeout=nil, securitygroupids=nil, description=nil, vip=nil, weightmode=nil, autoaddro=nil, failover=nil, consistencytype=nil, rwtype=nil, consistencytimeout=nil, transsplit=nil, accessmode=nil, instanceweights=nil)
1712
+ @ClusterId = clusterid
1713
+ @UniqueVpcId = uniquevpcid
1714
+ @UniqueSubnetId = uniquesubnetid
1715
+ @ConnectionPoolType = connectionpooltype
1716
+ @OpenConnectionPool = openconnectionpool
1717
+ @ConnectionPoolTimeOut = connectionpooltimeout
1718
+ @SecurityGroupIds = securitygroupids
1719
+ @Description = description
1720
+ @Vip = vip
1721
+ @WeightMode = weightmode
1722
+ @AutoAddRo = autoaddro
1723
+ @FailOver = failover
1724
+ @ConsistencyType = consistencytype
1725
+ @RwType = rwtype
1726
+ @ConsistencyTimeOut = consistencytimeout
1727
+ @TransSplit = transsplit
1728
+ @AccessMode = accessmode
1729
+ @InstanceWeights = instanceweights
1730
+ end
1731
+
1732
+ def deserialize(params)
1733
+ @ClusterId = params['ClusterId']
1734
+ @UniqueVpcId = params['UniqueVpcId']
1735
+ @UniqueSubnetId = params['UniqueSubnetId']
1736
+ @ConnectionPoolType = params['ConnectionPoolType']
1737
+ @OpenConnectionPool = params['OpenConnectionPool']
1738
+ @ConnectionPoolTimeOut = params['ConnectionPoolTimeOut']
1739
+ @SecurityGroupIds = params['SecurityGroupIds']
1740
+ @Description = params['Description']
1741
+ @Vip = params['Vip']
1742
+ @WeightMode = params['WeightMode']
1743
+ @AutoAddRo = params['AutoAddRo']
1744
+ @FailOver = params['FailOver']
1745
+ @ConsistencyType = params['ConsistencyType']
1746
+ @RwType = params['RwType']
1747
+ @ConsistencyTimeOut = params['ConsistencyTimeOut']
1748
+ @TransSplit = params['TransSplit']
1749
+ @AccessMode = params['AccessMode']
1750
+ unless params['InstanceWeights'].nil?
1751
+ @InstanceWeights = []
1752
+ params['InstanceWeights'].each do |i|
1753
+ proxyinstanceweight_tmp = ProxyInstanceWeight.new
1754
+ proxyinstanceweight_tmp.deserialize(i)
1755
+ @InstanceWeights << proxyinstanceweight_tmp
1756
+ end
1757
+ end
1758
+ end
1759
+ end
1760
+
1761
+ # CreateProxyEndPoint返回参数结构体
1762
+ class CreateProxyEndPointResponse < TencentCloud::Common::AbstractModel
1763
+ # @param FlowId: 异步流程ID
1764
+ # @type FlowId: Integer
1765
+ # @param TaskId: 异步任务ID
1766
+ # @type TaskId: Integer
1767
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1768
+ # @type RequestId: String
1769
+
1770
+ attr_accessor :FlowId, :TaskId, :RequestId
1771
+
1772
+ def initialize(flowid=nil, taskid=nil, requestid=nil)
1773
+ @FlowId = flowid
1774
+ @TaskId = taskid
1775
+ @RequestId = requestid
1776
+ end
1777
+
1778
+ def deserialize(params)
1779
+ @FlowId = params['FlowId']
1780
+ @TaskId = params['TaskId']
1781
+ @RequestId = params['RequestId']
1782
+ end
1783
+ end
1784
+
1785
+ # CreateProxy请求参数结构体
1786
+ class CreateProxyRequest < TencentCloud::Common::AbstractModel
1787
+ # @param ClusterId: 集群ID
1788
+ # @type ClusterId: String
1789
+ # @param Cpu: cpu核数
1790
+ # @type Cpu: Integer
1791
+ # @param Mem: 内存
1792
+ # @type Mem: Integer
1793
+ # @param UniqueVpcId: 私有网络ID,默认与集群私有网络ID保持一致
1794
+ # @type UniqueVpcId: String
1795
+ # @param UniqueSubnetId: 私有网络子网ID,默认与集群子网ID保持一致
1796
+ # @type UniqueSubnetId: String
1797
+ # @param ProxyCount: 数据库代理组节点个数
1798
+ # @type ProxyCount: Integer
1799
+ # @param ConnectionPoolType: 连接池类型:SessionConnectionPool(会话级别连接池 )
1800
+ # @type ConnectionPoolType: String
1801
+ # @param OpenConnectionPool: 是否开启连接池,yes-开启,no-不开启
1802
+ # @type OpenConnectionPool: String
1803
+ # @param ConnectionPoolTimeOut: 连接池阀值:单位(秒)
1804
+ # @type ConnectionPoolTimeOut: Integer
1805
+ # @param SecurityGroupIds: 安全组ID数组
1806
+ # @type SecurityGroupIds: Array
1807
+ # @param Description: 描述说明
1808
+ # @type Description: String
1809
+ # @param ProxyZones: 数据库节点信息
1810
+ # @type ProxyZones: Array
1811
+
1812
+ attr_accessor :ClusterId, :Cpu, :Mem, :UniqueVpcId, :UniqueSubnetId, :ProxyCount, :ConnectionPoolType, :OpenConnectionPool, :ConnectionPoolTimeOut, :SecurityGroupIds, :Description, :ProxyZones
1813
+
1814
+ def initialize(clusterid=nil, cpu=nil, mem=nil, uniquevpcid=nil, uniquesubnetid=nil, proxycount=nil, connectionpooltype=nil, openconnectionpool=nil, connectionpooltimeout=nil, securitygroupids=nil, description=nil, proxyzones=nil)
1815
+ @ClusterId = clusterid
1816
+ @Cpu = cpu
1817
+ @Mem = mem
1818
+ @UniqueVpcId = uniquevpcid
1819
+ @UniqueSubnetId = uniquesubnetid
1820
+ @ProxyCount = proxycount
1821
+ @ConnectionPoolType = connectionpooltype
1822
+ @OpenConnectionPool = openconnectionpool
1823
+ @ConnectionPoolTimeOut = connectionpooltimeout
1824
+ @SecurityGroupIds = securitygroupids
1825
+ @Description = description
1826
+ @ProxyZones = proxyzones
1827
+ end
1828
+
1829
+ def deserialize(params)
1830
+ @ClusterId = params['ClusterId']
1831
+ @Cpu = params['Cpu']
1832
+ @Mem = params['Mem']
1833
+ @UniqueVpcId = params['UniqueVpcId']
1834
+ @UniqueSubnetId = params['UniqueSubnetId']
1835
+ @ProxyCount = params['ProxyCount']
1836
+ @ConnectionPoolType = params['ConnectionPoolType']
1837
+ @OpenConnectionPool = params['OpenConnectionPool']
1838
+ @ConnectionPoolTimeOut = params['ConnectionPoolTimeOut']
1839
+ @SecurityGroupIds = params['SecurityGroupIds']
1840
+ @Description = params['Description']
1841
+ unless params['ProxyZones'].nil?
1842
+ @ProxyZones = []
1843
+ params['ProxyZones'].each do |i|
1844
+ proxyzone_tmp = ProxyZone.new
1845
+ proxyzone_tmp.deserialize(i)
1846
+ @ProxyZones << proxyzone_tmp
1847
+ end
1848
+ end
1849
+ end
1850
+ end
1851
+
1852
+ # CreateProxy返回参数结构体
1853
+ class CreateProxyResponse < TencentCloud::Common::AbstractModel
1854
+ # @param FlowId: 异步流程ID
1855
+ # @type FlowId: Integer
1856
+ # @param TaskId: 异步任务ID
1857
+ # @type TaskId: Integer
1858
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1859
+ # @type RequestId: String
1860
+
1861
+ attr_accessor :FlowId, :TaskId, :RequestId
1862
+
1863
+ def initialize(flowid=nil, taskid=nil, requestid=nil)
1864
+ @FlowId = flowid
1865
+ @TaskId = taskid
1866
+ @RequestId = requestid
1867
+ end
1868
+
1869
+ def deserialize(params)
1870
+ @FlowId = params['FlowId']
1871
+ @TaskId = params['TaskId']
1872
+ @RequestId = params['RequestId']
1873
+ end
1874
+ end
1875
+
1618
1876
  # CreateResourcePackage请求参数结构体
1619
1877
  class CreateResourcePackageRequest < TencentCloud::Common::AbstractModel
1620
1878
  # @param InstanceType: 实例类型
@@ -5059,6 +5317,171 @@ module TencentCloud
5059
5317
  end
5060
5318
  end
5061
5319
 
5320
+ # DescribeProxies请求参数结构体
5321
+ class DescribeProxiesRequest < TencentCloud::Common::AbstractModel
5322
+ # @param ClusterId: 集群ID
5323
+ # @type ClusterId: String
5324
+ # @param Limit: 返回数量,默认为 20,最大值为 100
5325
+ # @type Limit: Integer
5326
+ # @param Offset: 记录偏移量,默认值为0
5327
+ # @type Offset: Integer
5328
+ # @param OrderBy: 排序字段,取值范围:
5329
+ # <li> CREATETIME:创建时间</li>
5330
+ # <li> PERIODENDTIME:过期时间</li>
5331
+ # @type OrderBy: String
5332
+ # @param OrderByType: 排序类型,取值范围:
5333
+ # <li> ASC:升序排序 </li>
5334
+ # <li> DESC:降序排序 </li>
5335
+ # @type OrderByType: String
5336
+ # @param Filters: 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
5337
+ # @type Filters: Array
5338
+
5339
+ attr_accessor :ClusterId, :Limit, :Offset, :OrderBy, :OrderByType, :Filters
5340
+
5341
+ def initialize(clusterid=nil, limit=nil, offset=nil, orderby=nil, orderbytype=nil, filters=nil)
5342
+ @ClusterId = clusterid
5343
+ @Limit = limit
5344
+ @Offset = offset
5345
+ @OrderBy = orderby
5346
+ @OrderByType = orderbytype
5347
+ @Filters = filters
5348
+ end
5349
+
5350
+ def deserialize(params)
5351
+ @ClusterId = params['ClusterId']
5352
+ @Limit = params['Limit']
5353
+ @Offset = params['Offset']
5354
+ @OrderBy = params['OrderBy']
5355
+ @OrderByType = params['OrderByType']
5356
+ unless params['Filters'].nil?
5357
+ @Filters = []
5358
+ params['Filters'].each do |i|
5359
+ queryparamfilter_tmp = QueryParamFilter.new
5360
+ queryparamfilter_tmp.deserialize(i)
5361
+ @Filters << queryparamfilter_tmp
5362
+ end
5363
+ end
5364
+ end
5365
+ end
5366
+
5367
+ # DescribeProxies返回参数结构体
5368
+ class DescribeProxiesResponse < TencentCloud::Common::AbstractModel
5369
+ # @param TotalCount: 数据库代理组数
5370
+ # @type TotalCount: Integer
5371
+ # @param ProxyGroupInfos: 数据库代理组列表
5372
+ # 注意:此字段可能返回 null,表示取不到有效值。
5373
+ # @type ProxyGroupInfos: Array
5374
+ # @param ProxyNodeInfos: 数据库代理节点
5375
+ # 注意:此字段可能返回 null,表示取不到有效值。
5376
+ # @type ProxyNodeInfos: Array
5377
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5378
+ # @type RequestId: String
5379
+
5380
+ attr_accessor :TotalCount, :ProxyGroupInfos, :ProxyNodeInfos, :RequestId
5381
+
5382
+ def initialize(totalcount=nil, proxygroupinfos=nil, proxynodeinfos=nil, requestid=nil)
5383
+ @TotalCount = totalcount
5384
+ @ProxyGroupInfos = proxygroupinfos
5385
+ @ProxyNodeInfos = proxynodeinfos
5386
+ @RequestId = requestid
5387
+ end
5388
+
5389
+ def deserialize(params)
5390
+ @TotalCount = params['TotalCount']
5391
+ unless params['ProxyGroupInfos'].nil?
5392
+ @ProxyGroupInfos = []
5393
+ params['ProxyGroupInfos'].each do |i|
5394
+ proxygroupinfo_tmp = ProxyGroupInfo.new
5395
+ proxygroupinfo_tmp.deserialize(i)
5396
+ @ProxyGroupInfos << proxygroupinfo_tmp
5397
+ end
5398
+ end
5399
+ unless params['ProxyNodeInfos'].nil?
5400
+ @ProxyNodeInfos = []
5401
+ params['ProxyNodeInfos'].each do |i|
5402
+ proxynodeinfo_tmp = ProxyNodeInfo.new
5403
+ proxynodeinfo_tmp.deserialize(i)
5404
+ @ProxyNodeInfos << proxynodeinfo_tmp
5405
+ end
5406
+ end
5407
+ @RequestId = params['RequestId']
5408
+ end
5409
+ end
5410
+
5411
+ # DescribeProxyNodes请求参数结构体
5412
+ class DescribeProxyNodesRequest < TencentCloud::Common::AbstractModel
5413
+ # @param Limit: 返回数量,默认为 20,最大值为 100
5414
+ # @type Limit: Integer
5415
+ # @param Offset: 记录偏移量,默认值为0
5416
+ # @type Offset: Integer
5417
+ # @param OrderBy: 排序字段,取值范围:
5418
+ # <li> CREATETIME:创建时间</li>
5419
+ # <li> PERIODENDTIME:过期时间</li>
5420
+ # @type OrderBy: String
5421
+ # @param OrderByType: 排序类型,取值范围:
5422
+ # <li> ASC:升序排序 </li>
5423
+ # <li> DESC:降序排序 </li>
5424
+ # @type OrderByType: String
5425
+ # @param Filters: 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
5426
+ # @type Filters: Array
5427
+
5428
+ attr_accessor :Limit, :Offset, :OrderBy, :OrderByType, :Filters
5429
+
5430
+ def initialize(limit=nil, offset=nil, orderby=nil, orderbytype=nil, filters=nil)
5431
+ @Limit = limit
5432
+ @Offset = offset
5433
+ @OrderBy = orderby
5434
+ @OrderByType = orderbytype
5435
+ @Filters = filters
5436
+ end
5437
+
5438
+ def deserialize(params)
5439
+ @Limit = params['Limit']
5440
+ @Offset = params['Offset']
5441
+ @OrderBy = params['OrderBy']
5442
+ @OrderByType = params['OrderByType']
5443
+ unless params['Filters'].nil?
5444
+ @Filters = []
5445
+ params['Filters'].each do |i|
5446
+ queryfilter_tmp = QueryFilter.new
5447
+ queryfilter_tmp.deserialize(i)
5448
+ @Filters << queryfilter_tmp
5449
+ end
5450
+ end
5451
+ end
5452
+ end
5453
+
5454
+ # DescribeProxyNodes返回参数结构体
5455
+ class DescribeProxyNodesResponse < TencentCloud::Common::AbstractModel
5456
+ # @param TotalCount: 数据库代理节点总数
5457
+ # @type TotalCount: Integer
5458
+ # @param ProxyNodeInfos: 数据库代理节点列表
5459
+ # @type ProxyNodeInfos: Array
5460
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5461
+ # @type RequestId: String
5462
+
5463
+ attr_accessor :TotalCount, :ProxyNodeInfos, :RequestId
5464
+
5465
+ def initialize(totalcount=nil, proxynodeinfos=nil, requestid=nil)
5466
+ @TotalCount = totalcount
5467
+ @ProxyNodeInfos = proxynodeinfos
5468
+ @RequestId = requestid
5469
+ end
5470
+
5471
+ def deserialize(params)
5472
+ @TotalCount = params['TotalCount']
5473
+ unless params['ProxyNodeInfos'].nil?
5474
+ @ProxyNodeInfos = []
5475
+ params['ProxyNodeInfos'].each do |i|
5476
+ proxynodeinfo_tmp = ProxyNodeInfo.new
5477
+ proxynodeinfo_tmp.deserialize(i)
5478
+ @ProxyNodeInfos << proxynodeinfo_tmp
5479
+ end
5480
+ end
5481
+ @RequestId = params['RequestId']
5482
+ end
5483
+ end
5484
+
5062
5485
  # DescribeResourcePackageDetail请求参数结构体
5063
5486
  class DescribeResourcePackageDetailRequest < TencentCloud::Common::AbstractModel
5064
5487
  # @param PackageId: 资源包唯一ID
@@ -7260,27 +7683,174 @@ module TencentCloud
7260
7683
  end
7261
7684
  end
7262
7685
 
7263
- # ModifyResourcePackageClusters请求参数结构体
7264
- class ModifyResourcePackageClustersRequest < TencentCloud::Common::AbstractModel
7265
- # @param PackageId: 资源包唯一ID
7266
- # @type PackageId: String
7267
- # @param BindClusterIds: 需要建立绑定关系的集群ID
7268
- # @type BindClusterIds: Array
7269
- # @param UnbindClusterIds: 需要解除绑定关系的集群ID
7270
- # @type UnbindClusterIds: Array
7686
+ # ModifyProxyDesc请求参数结构体
7687
+ class ModifyProxyDescRequest < TencentCloud::Common::AbstractModel
7688
+ # @param ClusterId: 集群ID
7689
+ # @type ClusterId: String
7690
+ # @param ProxyGroupId: 数据库代理组ID
7691
+ # @type ProxyGroupId: String
7692
+ # @param Description: 数据库代理描述
7693
+ # @type Description: String
7271
7694
 
7272
- attr_accessor :PackageId, :BindClusterIds, :UnbindClusterIds
7695
+ attr_accessor :ClusterId, :ProxyGroupId, :Description
7273
7696
 
7274
- def initialize(packageid=nil, bindclusterids=nil, unbindclusterids=nil)
7275
- @PackageId = packageid
7276
- @BindClusterIds = bindclusterids
7277
- @UnbindClusterIds = unbindclusterids
7697
+ def initialize(clusterid=nil, proxygroupid=nil, description=nil)
7698
+ @ClusterId = clusterid
7699
+ @ProxyGroupId = proxygroupid
7700
+ @Description = description
7278
7701
  end
7279
7702
 
7280
7703
  def deserialize(params)
7281
- @PackageId = params['PackageId']
7282
- @BindClusterIds = params['BindClusterIds']
7283
- @UnbindClusterIds = params['UnbindClusterIds']
7704
+ @ClusterId = params['ClusterId']
7705
+ @ProxyGroupId = params['ProxyGroupId']
7706
+ @Description = params['Description']
7707
+ end
7708
+ end
7709
+
7710
+ # ModifyProxyDesc返回参数结构体
7711
+ class ModifyProxyDescResponse < TencentCloud::Common::AbstractModel
7712
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7713
+ # @type RequestId: String
7714
+
7715
+ attr_accessor :RequestId
7716
+
7717
+ def initialize(requestid=nil)
7718
+ @RequestId = requestid
7719
+ end
7720
+
7721
+ def deserialize(params)
7722
+ @RequestId = params['RequestId']
7723
+ end
7724
+ end
7725
+
7726
+ # ModifyProxyRwSplit请求参数结构体
7727
+ class ModifyProxyRwSplitRequest < TencentCloud::Common::AbstractModel
7728
+ # @param ClusterId: 集群ID
7729
+ # @type ClusterId: String
7730
+ # @param ProxyGroupId: 数据库代理组ID
7731
+ # @type ProxyGroupId: String
7732
+ # @param ConsistencyType: 一致性类型;“eventual"-最终一致性, "session"-会话一致性, "global"-全局一致性
7733
+ # @type ConsistencyType: String
7734
+ # @param ConsistencyTimeOut: 一致性超时时间
7735
+ # @type ConsistencyTimeOut: String
7736
+ # @param WeightMode: 读写权重分配模式;系统自动分配:"system", 自定义:"custom"
7737
+ # @type WeightMode: String
7738
+ # @param InstanceWeights: 实例只读权重
7739
+ # @type InstanceWeights: Array
7740
+ # @param FailOver: 是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:"yes" , "no"
7741
+ # @type FailOver: String
7742
+ # @param AutoAddRo: 是否自动添加只读实例,取值:"yes" , "no"
7743
+ # @type AutoAddRo: String
7744
+ # @param OpenRw: 是否打开读写分离
7745
+ # @type OpenRw: String
7746
+ # @param RwType: 读写类型:
7747
+ # READWRITE,READONLY
7748
+ # @type RwType: String
7749
+ # @param TransSplit: 事务拆分
7750
+ # @type TransSplit: Boolean
7751
+ # @param AccessMode: 连接模式:
7752
+ # nearby,balance
7753
+ # @type AccessMode: String
7754
+ # @param OpenConnectionPool: 是否打开连接池:
7755
+ # yes,no
7756
+ # @type OpenConnectionPool: String
7757
+ # @param ConnectionPoolType: 连接池类型:
7758
+ # SessionConnectionPool
7759
+ # @type ConnectionPoolType: String
7760
+ # @param ConnectionPoolTimeOut: 连接池时间
7761
+ # @type ConnectionPoolTimeOut: Integer
7762
+
7763
+ attr_accessor :ClusterId, :ProxyGroupId, :ConsistencyType, :ConsistencyTimeOut, :WeightMode, :InstanceWeights, :FailOver, :AutoAddRo, :OpenRw, :RwType, :TransSplit, :AccessMode, :OpenConnectionPool, :ConnectionPoolType, :ConnectionPoolTimeOut
7764
+
7765
+ def initialize(clusterid=nil, proxygroupid=nil, consistencytype=nil, consistencytimeout=nil, weightmode=nil, instanceweights=nil, failover=nil, autoaddro=nil, openrw=nil, rwtype=nil, transsplit=nil, accessmode=nil, openconnectionpool=nil, connectionpooltype=nil, connectionpooltimeout=nil)
7766
+ @ClusterId = clusterid
7767
+ @ProxyGroupId = proxygroupid
7768
+ @ConsistencyType = consistencytype
7769
+ @ConsistencyTimeOut = consistencytimeout
7770
+ @WeightMode = weightmode
7771
+ @InstanceWeights = instanceweights
7772
+ @FailOver = failover
7773
+ @AutoAddRo = autoaddro
7774
+ @OpenRw = openrw
7775
+ @RwType = rwtype
7776
+ @TransSplit = transsplit
7777
+ @AccessMode = accessmode
7778
+ @OpenConnectionPool = openconnectionpool
7779
+ @ConnectionPoolType = connectionpooltype
7780
+ @ConnectionPoolTimeOut = connectionpooltimeout
7781
+ end
7782
+
7783
+ def deserialize(params)
7784
+ @ClusterId = params['ClusterId']
7785
+ @ProxyGroupId = params['ProxyGroupId']
7786
+ @ConsistencyType = params['ConsistencyType']
7787
+ @ConsistencyTimeOut = params['ConsistencyTimeOut']
7788
+ @WeightMode = params['WeightMode']
7789
+ unless params['InstanceWeights'].nil?
7790
+ @InstanceWeights = []
7791
+ params['InstanceWeights'].each do |i|
7792
+ proxyinstanceweight_tmp = ProxyInstanceWeight.new
7793
+ proxyinstanceweight_tmp.deserialize(i)
7794
+ @InstanceWeights << proxyinstanceweight_tmp
7795
+ end
7796
+ end
7797
+ @FailOver = params['FailOver']
7798
+ @AutoAddRo = params['AutoAddRo']
7799
+ @OpenRw = params['OpenRw']
7800
+ @RwType = params['RwType']
7801
+ @TransSplit = params['TransSplit']
7802
+ @AccessMode = params['AccessMode']
7803
+ @OpenConnectionPool = params['OpenConnectionPool']
7804
+ @ConnectionPoolType = params['ConnectionPoolType']
7805
+ @ConnectionPoolTimeOut = params['ConnectionPoolTimeOut']
7806
+ end
7807
+ end
7808
+
7809
+ # ModifyProxyRwSplit返回参数结构体
7810
+ class ModifyProxyRwSplitResponse < TencentCloud::Common::AbstractModel
7811
+ # @param FlowId: 异步FlowId
7812
+ # @type FlowId: Integer
7813
+ # @param TaskId: 异步任务ID
7814
+ # @type TaskId: Integer
7815
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7816
+ # @type RequestId: String
7817
+
7818
+ attr_accessor :FlowId, :TaskId, :RequestId
7819
+
7820
+ def initialize(flowid=nil, taskid=nil, requestid=nil)
7821
+ @FlowId = flowid
7822
+ @TaskId = taskid
7823
+ @RequestId = requestid
7824
+ end
7825
+
7826
+ def deserialize(params)
7827
+ @FlowId = params['FlowId']
7828
+ @TaskId = params['TaskId']
7829
+ @RequestId = params['RequestId']
7830
+ end
7831
+ end
7832
+
7833
+ # ModifyResourcePackageClusters请求参数结构体
7834
+ class ModifyResourcePackageClustersRequest < TencentCloud::Common::AbstractModel
7835
+ # @param PackageId: 资源包唯一ID
7836
+ # @type PackageId: String
7837
+ # @param BindClusterIds: 需要建立绑定关系的集群ID
7838
+ # @type BindClusterIds: Array
7839
+ # @param UnbindClusterIds: 需要解除绑定关系的集群ID
7840
+ # @type UnbindClusterIds: Array
7841
+
7842
+ attr_accessor :PackageId, :BindClusterIds, :UnbindClusterIds
7843
+
7844
+ def initialize(packageid=nil, bindclusterids=nil, unbindclusterids=nil)
7845
+ @PackageId = packageid
7846
+ @BindClusterIds = bindclusterids
7847
+ @UnbindClusterIds = unbindclusterids
7848
+ end
7849
+
7850
+ def deserialize(params)
7851
+ @PackageId = params['PackageId']
7852
+ @BindClusterIds = params['BindClusterIds']
7853
+ @UnbindClusterIds = params['UnbindClusterIds']
7284
7854
  end
7285
7855
  end
7286
7856
 
@@ -8375,6 +8945,308 @@ module TencentCloud
8375
8945
  end
8376
8946
  end
8377
8947
 
8948
+ # 数据库代理连接池信息
8949
+ class ProxyConnectionPoolInfo < TencentCloud::Common::AbstractModel
8950
+ # @param ConnectionPoolTimeOut: 连接池保持阈值:单位(秒)
8951
+ # 注意:此字段可能返回 null,表示取不到有效值。
8952
+ # @type ConnectionPoolTimeOut: Integer
8953
+ # @param OpenConnectionPool: 是否开启了连接池
8954
+ # 注意:此字段可能返回 null,表示取不到有效值。
8955
+ # @type OpenConnectionPool: String
8956
+ # @param ConnectionPoolType: 连接池类型:SessionConnectionPool(会话级别连接池
8957
+ # 注意:此字段可能返回 null,表示取不到有效值。
8958
+ # @type ConnectionPoolType: String
8959
+
8960
+ attr_accessor :ConnectionPoolTimeOut, :OpenConnectionPool, :ConnectionPoolType
8961
+
8962
+ def initialize(connectionpooltimeout=nil, openconnectionpool=nil, connectionpooltype=nil)
8963
+ @ConnectionPoolTimeOut = connectionpooltimeout
8964
+ @OpenConnectionPool = openconnectionpool
8965
+ @ConnectionPoolType = connectionpooltype
8966
+ end
8967
+
8968
+ def deserialize(params)
8969
+ @ConnectionPoolTimeOut = params['ConnectionPoolTimeOut']
8970
+ @OpenConnectionPool = params['OpenConnectionPool']
8971
+ @ConnectionPoolType = params['ConnectionPoolType']
8972
+ end
8973
+ end
8974
+
8975
+ # proxy组
8976
+ class ProxyGroup < TencentCloud::Common::AbstractModel
8977
+ # @param ProxyGroupId: 数据库代理组ID
8978
+ # @type ProxyGroupId: String
8979
+ # @param ProxyNodeCount: 数据库代理组节点个数
8980
+ # @type ProxyNodeCount: Integer
8981
+ # @param Status: 数据库代理组状态
8982
+ # @type Status: String
8983
+ # @param Region: 地域
8984
+ # @type Region: String
8985
+ # @param Zone: 可用区
8986
+ # @type Zone: String
8987
+ # @param CurrentProxyVersion: 当前代理版本
8988
+ # @type CurrentProxyVersion: String
8989
+ # @param ClusterId: 集群ID
8990
+ # 注意:此字段可能返回 null,表示取不到有效值。
8991
+ # @type ClusterId: String
8992
+ # @param AppId: 用户AppId
8993
+ # 注意:此字段可能返回 null,表示取不到有效值。
8994
+ # @type AppId: Integer
8995
+ # @param OpenRw: 读写节点开通数据库代理
8996
+ # 注意:此字段可能返回 null,表示取不到有效值。
8997
+ # @type OpenRw: String
8998
+
8999
+ attr_accessor :ProxyGroupId, :ProxyNodeCount, :Status, :Region, :Zone, :CurrentProxyVersion, :ClusterId, :AppId, :OpenRw
9000
+
9001
+ def initialize(proxygroupid=nil, proxynodecount=nil, status=nil, region=nil, zone=nil, currentproxyversion=nil, clusterid=nil, appid=nil, openrw=nil)
9002
+ @ProxyGroupId = proxygroupid
9003
+ @ProxyNodeCount = proxynodecount
9004
+ @Status = status
9005
+ @Region = region
9006
+ @Zone = zone
9007
+ @CurrentProxyVersion = currentproxyversion
9008
+ @ClusterId = clusterid
9009
+ @AppId = appid
9010
+ @OpenRw = openrw
9011
+ end
9012
+
9013
+ def deserialize(params)
9014
+ @ProxyGroupId = params['ProxyGroupId']
9015
+ @ProxyNodeCount = params['ProxyNodeCount']
9016
+ @Status = params['Status']
9017
+ @Region = params['Region']
9018
+ @Zone = params['Zone']
9019
+ @CurrentProxyVersion = params['CurrentProxyVersion']
9020
+ @ClusterId = params['ClusterId']
9021
+ @AppId = params['AppId']
9022
+ @OpenRw = params['OpenRw']
9023
+ end
9024
+ end
9025
+
9026
+ # 数据库代理组详细信息
9027
+ class ProxyGroupInfo < TencentCloud::Common::AbstractModel
9028
+ # @param ProxyGroup: 数据库代理组
9029
+ # 注意:此字段可能返回 null,表示取不到有效值。
9030
+ # @type ProxyGroup: :class:`Tencentcloud::Cynosdb.v20190107.models.ProxyGroup`
9031
+ # @param ProxyGroupRwInfo: 数据库代理组读写分离信息
9032
+ # 注意:此字段可能返回 null,表示取不到有效值。
9033
+ # @type ProxyGroupRwInfo: :class:`Tencentcloud::Cynosdb.v20190107.models.ProxyGroupRwInfo`
9034
+ # @param ProxyNodes: 数据库代理节点信息
9035
+ # 注意:此字段可能返回 null,表示取不到有效值。
9036
+ # @type ProxyNodes: Array
9037
+ # @param ConnectionPool: 数据库代理连接池信息
9038
+ # 注意:此字段可能返回 null,表示取不到有效值。
9039
+ # @type ConnectionPool: :class:`Tencentcloud::Cynosdb.v20190107.models.ProxyConnectionPoolInfo`
9040
+ # @param NetAddrInfos: 数据库代理网络信息
9041
+ # 注意:此字段可能返回 null,表示取不到有效值。
9042
+ # @type NetAddrInfos: Array
9043
+ # @param Tasks: 数据库代理任务集
9044
+ # 注意:此字段可能返回 null,表示取不到有效值。
9045
+ # @type Tasks: Array
9046
+
9047
+ attr_accessor :ProxyGroup, :ProxyGroupRwInfo, :ProxyNodes, :ConnectionPool, :NetAddrInfos, :Tasks
9048
+
9049
+ def initialize(proxygroup=nil, proxygrouprwinfo=nil, proxynodes=nil, connectionpool=nil, netaddrinfos=nil, tasks=nil)
9050
+ @ProxyGroup = proxygroup
9051
+ @ProxyGroupRwInfo = proxygrouprwinfo
9052
+ @ProxyNodes = proxynodes
9053
+ @ConnectionPool = connectionpool
9054
+ @NetAddrInfos = netaddrinfos
9055
+ @Tasks = tasks
9056
+ end
9057
+
9058
+ def deserialize(params)
9059
+ unless params['ProxyGroup'].nil?
9060
+ @ProxyGroup = ProxyGroup.new
9061
+ @ProxyGroup.deserialize(params['ProxyGroup'])
9062
+ end
9063
+ unless params['ProxyGroupRwInfo'].nil?
9064
+ @ProxyGroupRwInfo = ProxyGroupRwInfo.new
9065
+ @ProxyGroupRwInfo.deserialize(params['ProxyGroupRwInfo'])
9066
+ end
9067
+ unless params['ProxyNodes'].nil?
9068
+ @ProxyNodes = []
9069
+ params['ProxyNodes'].each do |i|
9070
+ proxynodeinfo_tmp = ProxyNodeInfo.new
9071
+ proxynodeinfo_tmp.deserialize(i)
9072
+ @ProxyNodes << proxynodeinfo_tmp
9073
+ end
9074
+ end
9075
+ unless params['ConnectionPool'].nil?
9076
+ @ConnectionPool = ProxyConnectionPoolInfo.new
9077
+ @ConnectionPool.deserialize(params['ConnectionPool'])
9078
+ end
9079
+ unless params['NetAddrInfos'].nil?
9080
+ @NetAddrInfos = []
9081
+ params['NetAddrInfos'].each do |i|
9082
+ netaddr_tmp = NetAddr.new
9083
+ netaddr_tmp.deserialize(i)
9084
+ @NetAddrInfos << netaddr_tmp
9085
+ end
9086
+ end
9087
+ unless params['Tasks'].nil?
9088
+ @Tasks = []
9089
+ params['Tasks'].each do |i|
9090
+ objecttask_tmp = ObjectTask.new
9091
+ objecttask_tmp.deserialize(i)
9092
+ @Tasks << objecttask_tmp
9093
+ end
9094
+ end
9095
+ end
9096
+ end
9097
+
9098
+ # 数据库代理组读写分离信息
9099
+ class ProxyGroupRwInfo < TencentCloud::Common::AbstractModel
9100
+ # @param ConsistencyType: 一致性类型 eventual-最终一致性,global-全局一致性,session-会话一致性
9101
+ # @type ConsistencyType: String
9102
+ # @param ConsistencyTimeOut: 一致性超时时间
9103
+ # @type ConsistencyTimeOut: Integer
9104
+ # @param WeightMode: 权重模式 system-系统分配,custom-自定义
9105
+ # @type WeightMode: String
9106
+ # @param FailOver: 是否开启故障转移
9107
+ # @type FailOver: String
9108
+ # @param AutoAddRo: 是否自动添加只读实例,yes-是,no-不自动添加
9109
+ # @type AutoAddRo: String
9110
+ # @param InstanceWeights: 实例权重数组
9111
+ # @type InstanceWeights: Array
9112
+ # @param OpenRw: 是否开通读写节点,yse-是,no-否
9113
+ # 注意:此字段可能返回 null,表示取不到有效值。
9114
+ # @type OpenRw: String
9115
+ # @param RwType: 读写属性,可选值:READWRITE,READONLY
9116
+ # @type RwType: String
9117
+ # @param TransSplit: 事务拆分
9118
+ # @type TransSplit: Boolean
9119
+ # @param AccessMode: 连接模式,可选值:balance,nearby
9120
+ # @type AccessMode: String
9121
+
9122
+ attr_accessor :ConsistencyType, :ConsistencyTimeOut, :WeightMode, :FailOver, :AutoAddRo, :InstanceWeights, :OpenRw, :RwType, :TransSplit, :AccessMode
9123
+
9124
+ def initialize(consistencytype=nil, consistencytimeout=nil, weightmode=nil, failover=nil, autoaddro=nil, instanceweights=nil, openrw=nil, rwtype=nil, transsplit=nil, accessmode=nil)
9125
+ @ConsistencyType = consistencytype
9126
+ @ConsistencyTimeOut = consistencytimeout
9127
+ @WeightMode = weightmode
9128
+ @FailOver = failover
9129
+ @AutoAddRo = autoaddro
9130
+ @InstanceWeights = instanceweights
9131
+ @OpenRw = openrw
9132
+ @RwType = rwtype
9133
+ @TransSplit = transsplit
9134
+ @AccessMode = accessmode
9135
+ end
9136
+
9137
+ def deserialize(params)
9138
+ @ConsistencyType = params['ConsistencyType']
9139
+ @ConsistencyTimeOut = params['ConsistencyTimeOut']
9140
+ @WeightMode = params['WeightMode']
9141
+ @FailOver = params['FailOver']
9142
+ @AutoAddRo = params['AutoAddRo']
9143
+ unless params['InstanceWeights'].nil?
9144
+ @InstanceWeights = []
9145
+ params['InstanceWeights'].each do |i|
9146
+ proxyinstanceweight_tmp = ProxyInstanceWeight.new
9147
+ proxyinstanceweight_tmp.deserialize(i)
9148
+ @InstanceWeights << proxyinstanceweight_tmp
9149
+ end
9150
+ end
9151
+ @OpenRw = params['OpenRw']
9152
+ @RwType = params['RwType']
9153
+ @TransSplit = params['TransSplit']
9154
+ @AccessMode = params['AccessMode']
9155
+ end
9156
+ end
9157
+
9158
+ # 数据库代理,读写分离实例权重
9159
+ class ProxyInstanceWeight < TencentCloud::Common::AbstractModel
9160
+ # @param InstanceId: 实例Id
9161
+ # @type InstanceId: String
9162
+ # @param Weight: 实例权重
9163
+ # @type Weight: Integer
9164
+
9165
+ attr_accessor :InstanceId, :Weight
9166
+
9167
+ def initialize(instanceid=nil, weight=nil)
9168
+ @InstanceId = instanceid
9169
+ @Weight = weight
9170
+ end
9171
+
9172
+ def deserialize(params)
9173
+ @InstanceId = params['InstanceId']
9174
+ @Weight = params['Weight']
9175
+ end
9176
+ end
9177
+
9178
+ # 数据库代理组节点
9179
+ class ProxyNodeInfo < TencentCloud::Common::AbstractModel
9180
+ # @param ProxyNodeId: 数据库代理节点ID
9181
+ # @type ProxyNodeId: String
9182
+ # @param ProxyNodeConnections: 节点当前连接数, DescribeProxyNodes接口此字段值不返回
9183
+ # @type ProxyNodeConnections: Integer
9184
+ # @param Cpu: 数据库代理节点cpu
9185
+ # @type Cpu: Integer
9186
+ # @param Mem: 数据库代理节点内存
9187
+ # @type Mem: Integer
9188
+ # @param Status: 数据库代理节点状态
9189
+ # @type Status: String
9190
+ # @param ProxyGroupId: 数据库代理组ID
9191
+ # @type ProxyGroupId: String
9192
+ # @param ClusterId: 集群ID
9193
+ # @type ClusterId: String
9194
+ # @param AppId: 用户AppID
9195
+ # @type AppId: Integer
9196
+ # @param Region: 地域
9197
+ # @type Region: String
9198
+ # @param Zone: 可用区
9199
+ # @type Zone: String
9200
+
9201
+ attr_accessor :ProxyNodeId, :ProxyNodeConnections, :Cpu, :Mem, :Status, :ProxyGroupId, :ClusterId, :AppId, :Region, :Zone
9202
+
9203
+ def initialize(proxynodeid=nil, proxynodeconnections=nil, cpu=nil, mem=nil, status=nil, proxygroupid=nil, clusterid=nil, appid=nil, region=nil, zone=nil)
9204
+ @ProxyNodeId = proxynodeid
9205
+ @ProxyNodeConnections = proxynodeconnections
9206
+ @Cpu = cpu
9207
+ @Mem = mem
9208
+ @Status = status
9209
+ @ProxyGroupId = proxygroupid
9210
+ @ClusterId = clusterid
9211
+ @AppId = appid
9212
+ @Region = region
9213
+ @Zone = zone
9214
+ end
9215
+
9216
+ def deserialize(params)
9217
+ @ProxyNodeId = params['ProxyNodeId']
9218
+ @ProxyNodeConnections = params['ProxyNodeConnections']
9219
+ @Cpu = params['Cpu']
9220
+ @Mem = params['Mem']
9221
+ @Status = params['Status']
9222
+ @ProxyGroupId = params['ProxyGroupId']
9223
+ @ClusterId = params['ClusterId']
9224
+ @AppId = params['AppId']
9225
+ @Region = params['Region']
9226
+ @Zone = params['Zone']
9227
+ end
9228
+ end
9229
+
9230
+ # proxy节点可用区内个数
9231
+ class ProxyZone < TencentCloud::Common::AbstractModel
9232
+ # @param ProxyNodeZone: proxy节点可用区
9233
+ # @type ProxyNodeZone: String
9234
+ # @param ProxyNodeCount: proxy节点数量
9235
+ # @type ProxyNodeCount: Integer
9236
+
9237
+ attr_accessor :ProxyNodeZone, :ProxyNodeCount
9238
+
9239
+ def initialize(proxynodezone=nil, proxynodecount=nil)
9240
+ @ProxyNodeZone = proxynodezone
9241
+ @ProxyNodeCount = proxynodecount
9242
+ end
9243
+
9244
+ def deserialize(params)
9245
+ @ProxyNodeZone = params['ProxyNodeZone']
9246
+ @ProxyNodeCount = params['ProxyNodeCount']
9247
+ end
9248
+ end
9249
+
8378
9250
  # 查询过滤器
8379
9251
  class QueryFilter < TencentCloud::Common::AbstractModel
8380
9252
  # @param Names: 搜索字段,目前支持:"InstanceId", "ProjectId", "InstanceName", "Vip"
@@ -8407,6 +9279,30 @@ module TencentCloud
8407
9279
  end
8408
9280
  end
8409
9281
 
9282
+ # 查询参数过滤器
9283
+ class QueryParamFilter < TencentCloud::Common::AbstractModel
9284
+ # @param Names: 搜索字段,目前支持:"InstanceId", "ProjectId", "InstanceName", "Vip"
9285
+ # @type Names: Array
9286
+ # @param Values: 搜索字符串
9287
+ # @type Values: Array
9288
+ # @param ExactMatch: 是否精确匹配
9289
+ # @type ExactMatch: Boolean
9290
+
9291
+ attr_accessor :Names, :Values, :ExactMatch
9292
+
9293
+ def initialize(names=nil, values=nil, exactmatch=nil)
9294
+ @Names = names
9295
+ @Values = values
9296
+ @ExactMatch = exactmatch
9297
+ end
9298
+
9299
+ def deserialize(params)
9300
+ @Names = params['Names']
9301
+ @Values = params['Values']
9302
+ @ExactMatch = params['ExactMatch']
9303
+ end
9304
+ end
9305
+
8410
9306
  # RefundResourcePackage请求参数结构体
8411
9307
  class RefundResourcePackageRequest < TencentCloud::Common::AbstractModel
8412
9308
  # @param PackageId: 资源包唯一ID
@@ -8443,6 +9339,50 @@ module TencentCloud
8443
9339
  end
8444
9340
  end
8445
9341
 
9342
+ # ReloadBalanceProxyNode请求参数结构体
9343
+ class ReloadBalanceProxyNodeRequest < TencentCloud::Common::AbstractModel
9344
+ # @param ClusterId: 集群ID
9345
+ # @type ClusterId: String
9346
+ # @param ProxyGroupId: 数据库代理组ID
9347
+ # @type ProxyGroupId: String
9348
+
9349
+ attr_accessor :ClusterId, :ProxyGroupId
9350
+
9351
+ def initialize(clusterid=nil, proxygroupid=nil)
9352
+ @ClusterId = clusterid
9353
+ @ProxyGroupId = proxygroupid
9354
+ end
9355
+
9356
+ def deserialize(params)
9357
+ @ClusterId = params['ClusterId']
9358
+ @ProxyGroupId = params['ProxyGroupId']
9359
+ end
9360
+ end
9361
+
9362
+ # ReloadBalanceProxyNode返回参数结构体
9363
+ class ReloadBalanceProxyNodeResponse < TencentCloud::Common::AbstractModel
9364
+ # @param FlowId: 异步流程ID
9365
+ # @type FlowId: Integer
9366
+ # @param TaskId: 异步任务ID
9367
+ # @type TaskId: Integer
9368
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
9369
+ # @type RequestId: String
9370
+
9371
+ attr_accessor :FlowId, :TaskId, :RequestId
9372
+
9373
+ def initialize(flowid=nil, taskid=nil, requestid=nil)
9374
+ @FlowId = flowid
9375
+ @TaskId = taskid
9376
+ @RequestId = requestid
9377
+ end
9378
+
9379
+ def deserialize(params)
9380
+ @FlowId = params['FlowId']
9381
+ @TaskId = params['TaskId']
9382
+ @RequestId = params['RequestId']
9383
+ end
9384
+ end
9385
+
8446
9386
  # RemoveClusterSlaveZone请求参数结构体
8447
9387
  class RemoveClusterSlaveZoneRequest < TencentCloud::Common::AbstractModel
8448
9388
  # @param ClusterId: 集群ID
@@ -9706,6 +10646,137 @@ module TencentCloud
9706
10646
  end
9707
10647
  end
9708
10648
 
10649
+ # UpgradeProxy请求参数结构体
10650
+ class UpgradeProxyRequest < TencentCloud::Common::AbstractModel
10651
+ # @param ClusterId: 集群ID
10652
+ # @type ClusterId: String
10653
+ # @param Cpu: cpu核数
10654
+ # @type Cpu: Integer
10655
+ # @param Mem: 内存
10656
+ # @type Mem: Integer
10657
+ # @param ProxyCount: 数据库代理组节点个数
10658
+ # @type ProxyCount: Integer
10659
+ # @param ProxyGroupId: 数据库代理组ID(已废弃)
10660
+ # @type ProxyGroupId: String
10661
+ # @param ReloadBalance: 重新负载均衡:auto(自动),manual(手动)
10662
+ # @type ReloadBalance: String
10663
+ # @param IsInMaintainPeriod: 升级时间 :no(升级完成时)yes(实例维护时间)
10664
+ # @type IsInMaintainPeriod: String
10665
+ # @param ProxyZones: 数据库代理节点信息
10666
+ # @type ProxyZones: Array
10667
+
10668
+ attr_accessor :ClusterId, :Cpu, :Mem, :ProxyCount, :ProxyGroupId, :ReloadBalance, :IsInMaintainPeriod, :ProxyZones
10669
+
10670
+ def initialize(clusterid=nil, cpu=nil, mem=nil, proxycount=nil, proxygroupid=nil, reloadbalance=nil, isinmaintainperiod=nil, proxyzones=nil)
10671
+ @ClusterId = clusterid
10672
+ @Cpu = cpu
10673
+ @Mem = mem
10674
+ @ProxyCount = proxycount
10675
+ @ProxyGroupId = proxygroupid
10676
+ @ReloadBalance = reloadbalance
10677
+ @IsInMaintainPeriod = isinmaintainperiod
10678
+ @ProxyZones = proxyzones
10679
+ end
10680
+
10681
+ def deserialize(params)
10682
+ @ClusterId = params['ClusterId']
10683
+ @Cpu = params['Cpu']
10684
+ @Mem = params['Mem']
10685
+ @ProxyCount = params['ProxyCount']
10686
+ @ProxyGroupId = params['ProxyGroupId']
10687
+ @ReloadBalance = params['ReloadBalance']
10688
+ @IsInMaintainPeriod = params['IsInMaintainPeriod']
10689
+ unless params['ProxyZones'].nil?
10690
+ @ProxyZones = []
10691
+ params['ProxyZones'].each do |i|
10692
+ proxyzone_tmp = ProxyZone.new
10693
+ proxyzone_tmp.deserialize(i)
10694
+ @ProxyZones << proxyzone_tmp
10695
+ end
10696
+ end
10697
+ end
10698
+ end
10699
+
10700
+ # UpgradeProxy返回参数结构体
10701
+ class UpgradeProxyResponse < TencentCloud::Common::AbstractModel
10702
+ # @param FlowId: 异步流程ID
10703
+ # @type FlowId: Integer
10704
+ # @param TaskId: 异步任务ID
10705
+ # @type TaskId: Integer
10706
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
10707
+ # @type RequestId: String
10708
+
10709
+ attr_accessor :FlowId, :TaskId, :RequestId
10710
+
10711
+ def initialize(flowid=nil, taskid=nil, requestid=nil)
10712
+ @FlowId = flowid
10713
+ @TaskId = taskid
10714
+ @RequestId = requestid
10715
+ end
10716
+
10717
+ def deserialize(params)
10718
+ @FlowId = params['FlowId']
10719
+ @TaskId = params['TaskId']
10720
+ @RequestId = params['RequestId']
10721
+ end
10722
+ end
10723
+
10724
+ # UpgradeProxyVersion请求参数结构体
10725
+ class UpgradeProxyVersionRequest < TencentCloud::Common::AbstractModel
10726
+ # @param ClusterId: 集群ID
10727
+ # @type ClusterId: String
10728
+ # @param SrcProxyVersion: 数据库代理当前版本
10729
+ # @type SrcProxyVersion: String
10730
+ # @param DstProxyVersion: 数据库代理升级版本
10731
+ # @type DstProxyVersion: String
10732
+ # @param ProxyGroupId: 数据库代理组ID
10733
+ # @type ProxyGroupId: String
10734
+ # @param IsInMaintainPeriod: 升级时间 :no(升级完成时)yes(实例维护时间)
10735
+ # @type IsInMaintainPeriod: String
10736
+
10737
+ attr_accessor :ClusterId, :SrcProxyVersion, :DstProxyVersion, :ProxyGroupId, :IsInMaintainPeriod
10738
+
10739
+ def initialize(clusterid=nil, srcproxyversion=nil, dstproxyversion=nil, proxygroupid=nil, isinmaintainperiod=nil)
10740
+ @ClusterId = clusterid
10741
+ @SrcProxyVersion = srcproxyversion
10742
+ @DstProxyVersion = dstproxyversion
10743
+ @ProxyGroupId = proxygroupid
10744
+ @IsInMaintainPeriod = isinmaintainperiod
10745
+ end
10746
+
10747
+ def deserialize(params)
10748
+ @ClusterId = params['ClusterId']
10749
+ @SrcProxyVersion = params['SrcProxyVersion']
10750
+ @DstProxyVersion = params['DstProxyVersion']
10751
+ @ProxyGroupId = params['ProxyGroupId']
10752
+ @IsInMaintainPeriod = params['IsInMaintainPeriod']
10753
+ end
10754
+ end
10755
+
10756
+ # UpgradeProxyVersion返回参数结构体
10757
+ class UpgradeProxyVersionResponse < TencentCloud::Common::AbstractModel
10758
+ # @param FlowId: 异步流程ID
10759
+ # @type FlowId: Integer
10760
+ # @param TaskId: 异步任务id
10761
+ # @type TaskId: Integer
10762
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
10763
+ # @type RequestId: String
10764
+
10765
+ attr_accessor :FlowId, :TaskId, :RequestId
10766
+
10767
+ def initialize(flowid=nil, taskid=nil, requestid=nil)
10768
+ @FlowId = flowid
10769
+ @TaskId = taskid
10770
+ @RequestId = requestid
10771
+ end
10772
+
10773
+ def deserialize(params)
10774
+ @FlowId = params['FlowId']
10775
+ @TaskId = params['TaskId']
10776
+ @RequestId = params['RequestId']
10777
+ end
10778
+ end
10779
+
9709
10780
  # 用户主机权限
9710
10781
  class UserHostPrivilege < TencentCloud::Common::AbstractModel
9711
10782
  # @param DbUserName: 授权用户