tencentcloud-sdk-cynosdb 3.0.580 → 3.0.581

Sign up to get free protection for your applications and to get access to all the features.
@@ -687,6 +687,69 @@ module TencentCloud
687
687
  end
688
688
  end
689
689
 
690
+ # BindClusterResourcePackages请求参数结构体
691
+ class BindClusterResourcePackagesRequest < TencentCloud::Common::AbstractModel
692
+ # @param PackageIds: 资源包唯一ID
693
+ # @type PackageIds: Array
694
+ # @param ClusterId: 集群ID
695
+ # @type ClusterId: String
696
+
697
+ attr_accessor :PackageIds, :ClusterId
698
+
699
+ def initialize(packageids=nil, clusterid=nil)
700
+ @PackageIds = packageids
701
+ @ClusterId = clusterid
702
+ end
703
+
704
+ def deserialize(params)
705
+ @PackageIds = params['PackageIds']
706
+ @ClusterId = params['ClusterId']
707
+ end
708
+ end
709
+
710
+ # BindClusterResourcePackages返回参数结构体
711
+ class BindClusterResourcePackagesResponse < TencentCloud::Common::AbstractModel
712
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
713
+ # @type RequestId: String
714
+
715
+ attr_accessor :RequestId
716
+
717
+ def initialize(requestid=nil)
718
+ @RequestId = requestid
719
+ end
720
+
721
+ def deserialize(params)
722
+ @RequestId = params['RequestId']
723
+ end
724
+ end
725
+
726
+ # 资源包绑定的实例信息
727
+ class BindInstanceInfo < TencentCloud::Common::AbstractModel
728
+ # @param InstanceId: 绑定的实例ID
729
+ # 注意:此字段可能返回 null,表示取不到有效值。
730
+ # @type InstanceId: String
731
+ # @param InstanceRegion: 绑定的实例所在的地域
732
+ # 注意:此字段可能返回 null,表示取不到有效值。
733
+ # @type InstanceRegion: String
734
+ # @param InstanceType: 绑定的实例类型
735
+ # 注意:此字段可能返回 null,表示取不到有效值。
736
+ # @type InstanceType: String
737
+
738
+ attr_accessor :InstanceId, :InstanceRegion, :InstanceType
739
+
740
+ def initialize(instanceid=nil, instanceregion=nil, instancetype=nil)
741
+ @InstanceId = instanceid
742
+ @InstanceRegion = instanceregion
743
+ @InstanceType = instancetype
744
+ end
745
+
746
+ def deserialize(params)
747
+ @InstanceId = params['InstanceId']
748
+ @InstanceRegion = params['InstanceRegion']
749
+ @InstanceType = params['InstanceType']
750
+ end
751
+ end
752
+
690
753
  # Binlog描述
691
754
  class BinlogItem < TencentCloud::Common::AbstractModel
692
755
  # @param FileName: Binlog文件名称
@@ -1552,6 +1615,78 @@ module TencentCloud
1552
1615
  end
1553
1616
  end
1554
1617
 
1618
+ # CreateResourcePackage请求参数结构体
1619
+ class CreateResourcePackageRequest < TencentCloud::Common::AbstractModel
1620
+ # @param InstanceType: 实例类型
1621
+ # @type InstanceType: String
1622
+ # @param PackageRegion: 资源包使用地域
1623
+ # china-中国内地通用,overseas-港澳台及海外通用
1624
+ # @type PackageRegion: String
1625
+ # @param PackageType: 资源包类型
1626
+
1627
+ # 资源包类型:CCU-计算资源包,DISK-存储资源包
1628
+ # @type PackageType: String
1629
+ # @param PackageVersion: 资源包版本
1630
+ # base-基础版本,common-通用版本,enterprise-企业版本
1631
+ # @type PackageVersion: String
1632
+ # @param PackageSpec: 资源包大小,计算资源单位:万个;存储资源:GB
1633
+ # @type PackageSpec: Float
1634
+ # @param ExpireDay: 资源包有效期,单位:天
1635
+ # @type ExpireDay: Integer
1636
+ # @param PackageCount: 购买资源包个数
1637
+ # @type PackageCount: Integer
1638
+ # @param PackageName: 资源包名称
1639
+ # @type PackageName: String
1640
+
1641
+ attr_accessor :InstanceType, :PackageRegion, :PackageType, :PackageVersion, :PackageSpec, :ExpireDay, :PackageCount, :PackageName
1642
+
1643
+ def initialize(instancetype=nil, packageregion=nil, packagetype=nil, packageversion=nil, packagespec=nil, expireday=nil, packagecount=nil, packagename=nil)
1644
+ @InstanceType = instancetype
1645
+ @PackageRegion = packageregion
1646
+ @PackageType = packagetype
1647
+ @PackageVersion = packageversion
1648
+ @PackageSpec = packagespec
1649
+ @ExpireDay = expireday
1650
+ @PackageCount = packagecount
1651
+ @PackageName = packagename
1652
+ end
1653
+
1654
+ def deserialize(params)
1655
+ @InstanceType = params['InstanceType']
1656
+ @PackageRegion = params['PackageRegion']
1657
+ @PackageType = params['PackageType']
1658
+ @PackageVersion = params['PackageVersion']
1659
+ @PackageSpec = params['PackageSpec']
1660
+ @ExpireDay = params['ExpireDay']
1661
+ @PackageCount = params['PackageCount']
1662
+ @PackageName = params['PackageName']
1663
+ end
1664
+ end
1665
+
1666
+ # CreateResourcePackage返回参数结构体
1667
+ class CreateResourcePackageResponse < TencentCloud::Common::AbstractModel
1668
+ # @param BigDealIds: 付费总订单号
1669
+ # @type BigDealIds: Array
1670
+ # @param DealNames: 每个物品对应一个dealName,业务需要根据dealName保证发货接口幂等
1671
+ # @type DealNames: Array
1672
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1673
+ # @type RequestId: String
1674
+
1675
+ attr_accessor :BigDealIds, :DealNames, :RequestId
1676
+
1677
+ def initialize(bigdealids=nil, dealnames=nil, requestid=nil)
1678
+ @BigDealIds = bigdealids
1679
+ @DealNames = dealnames
1680
+ @RequestId = requestid
1681
+ end
1682
+
1683
+ def deserialize(params)
1684
+ @BigDealIds = params['BigDealIds']
1685
+ @DealNames = params['DealNames']
1686
+ @RequestId = params['RequestId']
1687
+ end
1688
+ end
1689
+
1555
1690
  # 集群信息
1556
1691
  class CynosdbCluster < TencentCloud::Common::AbstractModel
1557
1692
  # @param Status: 集群状态, 可选值如下:
@@ -1683,10 +1818,13 @@ module TencentCloud
1683
1818
  # @param Ability: 能力
1684
1819
  # 注意:此字段可能返回 null,表示取不到有效值。
1685
1820
  # @type Ability: :class:`Tencentcloud::Cynosdb.v20190107.models.Ability`
1821
+ # @param ResourcePackages: 实例绑定资源包信息(此处只返回存储资源包,即packageType=DISK)
1822
+ # 注意:此字段可能返回 null,表示取不到有效值。
1823
+ # @type ResourcePackages: Array
1686
1824
 
1687
- attr_accessor :Status, :UpdateTime, :Zone, :ClusterName, :Region, :DbVersion, :ClusterId, :InstanceNum, :Uin, :DbType, :AppId, :StatusDesc, :CreateTime, :PayMode, :PeriodEndTime, :Vip, :Vport, :ProjectID, :VpcId, :SubnetId, :CynosVersion, :StorageLimit, :RenewFlag, :ProcessingTask, :Tasks, :ResourceTags, :DbMode, :ServerlessStatus, :Storage, :StorageId, :StoragePayMode, :MinStorageSize, :MaxStorageSize, :NetAddrs, :PhysicalZone, :MasterZone, :HasSlaveZone, :SlaveZones, :BusinessType, :IsFreeze, :OrderSource, :Ability
1825
+ attr_accessor :Status, :UpdateTime, :Zone, :ClusterName, :Region, :DbVersion, :ClusterId, :InstanceNum, :Uin, :DbType, :AppId, :StatusDesc, :CreateTime, :PayMode, :PeriodEndTime, :Vip, :Vport, :ProjectID, :VpcId, :SubnetId, :CynosVersion, :StorageLimit, :RenewFlag, :ProcessingTask, :Tasks, :ResourceTags, :DbMode, :ServerlessStatus, :Storage, :StorageId, :StoragePayMode, :MinStorageSize, :MaxStorageSize, :NetAddrs, :PhysicalZone, :MasterZone, :HasSlaveZone, :SlaveZones, :BusinessType, :IsFreeze, :OrderSource, :Ability, :ResourcePackages
1688
1826
 
1689
- def initialize(status=nil, updatetime=nil, zone=nil, clustername=nil, region=nil, dbversion=nil, clusterid=nil, instancenum=nil, uin=nil, dbtype=nil, appid=nil, statusdesc=nil, createtime=nil, paymode=nil, periodendtime=nil, vip=nil, vport=nil, projectid=nil, vpcid=nil, subnetid=nil, cynosversion=nil, storagelimit=nil, renewflag=nil, processingtask=nil, tasks=nil, resourcetags=nil, dbmode=nil, serverlessstatus=nil, storage=nil, storageid=nil, storagepaymode=nil, minstoragesize=nil, maxstoragesize=nil, netaddrs=nil, physicalzone=nil, masterzone=nil, hasslavezone=nil, slavezones=nil, businesstype=nil, isfreeze=nil, ordersource=nil, ability=nil)
1827
+ def initialize(status=nil, updatetime=nil, zone=nil, clustername=nil, region=nil, dbversion=nil, clusterid=nil, instancenum=nil, uin=nil, dbtype=nil, appid=nil, statusdesc=nil, createtime=nil, paymode=nil, periodendtime=nil, vip=nil, vport=nil, projectid=nil, vpcid=nil, subnetid=nil, cynosversion=nil, storagelimit=nil, renewflag=nil, processingtask=nil, tasks=nil, resourcetags=nil, dbmode=nil, serverlessstatus=nil, storage=nil, storageid=nil, storagepaymode=nil, minstoragesize=nil, maxstoragesize=nil, netaddrs=nil, physicalzone=nil, masterzone=nil, hasslavezone=nil, slavezones=nil, businesstype=nil, isfreeze=nil, ordersource=nil, ability=nil, resourcepackages=nil)
1690
1828
  @Status = status
1691
1829
  @UpdateTime = updatetime
1692
1830
  @Zone = zone
@@ -1729,6 +1867,7 @@ module TencentCloud
1729
1867
  @IsFreeze = isfreeze
1730
1868
  @OrderSource = ordersource
1731
1869
  @Ability = ability
1870
+ @ResourcePackages = resourcepackages
1732
1871
  end
1733
1872
 
1734
1873
  def deserialize(params)
@@ -1798,6 +1937,14 @@ module TencentCloud
1798
1937
  @Ability = Ability.new
1799
1938
  @Ability.deserialize(params['Ability'])
1800
1939
  end
1940
+ unless params['ResourcePackages'].nil?
1941
+ @ResourcePackages = []
1942
+ params['ResourcePackages'].each do |i|
1943
+ resourcepackage_tmp = ResourcePackage.new
1944
+ resourcepackage_tmp.deserialize(i)
1945
+ @ResourcePackages << resourcepackage_tmp
1946
+ end
1947
+ end
1801
1948
  end
1802
1949
  end
1803
1950
 
@@ -1809,61 +1956,21 @@ module TencentCloud
1809
1956
  # @type ClusterName: String
1810
1957
  # @param Region: 地域
1811
1958
  # @type Region: String
1959
+ # @param Zone: 可用区
1960
+ # @type Zone: String
1961
+ # @param PhysicalZone: 物理可用区
1962
+ # 注意:此字段可能返回 null,表示取不到有效值。
1963
+ # @type PhysicalZone: String
1812
1964
  # @param Status: 状态
1813
1965
  # @type Status: String
1814
1966
  # @param StatusDesc: 状态描述
1815
1967
  # @type StatusDesc: String
1816
- # @param VpcName: VPC名称
1817
- # @type VpcName: String
1818
- # @param VpcId: vpc唯一id
1819
- # @type VpcId: String
1820
- # @param SubnetName: 子网名称
1821
- # @type SubnetName: String
1822
- # @param SubnetId: 子网ID
1823
- # @type SubnetId: String
1824
- # @param Charset: 字符集
1825
- # @type Charset: String
1826
- # @param CreateTime: 创建时间
1827
- # @type CreateTime: String
1828
- # @param DbType: 数据库类型
1829
- # @type DbType: String
1830
- # @param DbVersion: 数据库版本
1831
- # @type DbVersion: String
1832
- # @param UsedStorage: 使用容量
1833
- # @type UsedStorage: Integer
1834
- # @param RoAddr: 读写分离Vport
1835
- # @type RoAddr: Array
1836
- # @param InstanceSet: 实例信息
1837
- # @type InstanceSet: Array
1838
- # @param PayMode: 付费模式
1839
- # @type PayMode: Integer
1840
- # @param PeriodEndTime: 到期时间
1841
- # @type PeriodEndTime: String
1842
- # @param Vip: vip地址
1843
- # @type Vip: String
1844
- # @param Vport: vport端口
1845
- # @type Vport: Integer
1846
- # @param ProjectID: 项目id
1847
- # @type ProjectID: Integer
1848
- # @param Zone: 可用区
1849
- # @type Zone: String
1850
- # @param ResourceTags: 实例绑定的tag数组信息
1851
- # @type ResourceTags: Array
1852
1968
  # @param ServerlessStatus: 当Db类型为SERVERLESS时,serverless集群状态,可选值:
1853
1969
  # resume
1854
1970
  # resuming
1855
1971
  # pause
1856
1972
  # pausing
1857
1973
  # @type ServerlessStatus: String
1858
- # @param LogBin: binlog开关,可选值:ON, OFF
1859
- # 注意:此字段可能返回 null,表示取不到有效值。
1860
- # @type LogBin: String
1861
- # @param PitrType: pitr类型,可选值:normal, redo_pitr
1862
- # 注意:此字段可能返回 null,表示取不到有效值。
1863
- # @type PitrType: String
1864
- # @param PhysicalZone: 物理可用区
1865
- # 注意:此字段可能返回 null,表示取不到有效值。
1866
- # @type PhysicalZone: String
1867
1974
  # @param StorageId: 存储Id
1868
1975
  # 注意:此字段可能返回 null,表示取不到有效值。
1869
1976
  # @type StorageId: String
@@ -1879,12 +1986,36 @@ module TencentCloud
1879
1986
  # @param StoragePayMode: 存储付费类型,1为包年包月,0为按量计费
1880
1987
  # 注意:此字段可能返回 null,表示取不到有效值。
1881
1988
  # @type StoragePayMode: Integer
1989
+ # @param VpcName: VPC名称
1990
+ # @type VpcName: String
1991
+ # @param VpcId: vpc唯一id
1992
+ # @type VpcId: String
1993
+ # @param SubnetName: 子网名称
1994
+ # @type SubnetName: String
1995
+ # @param SubnetId: 子网ID
1996
+ # @type SubnetId: String
1997
+ # @param Charset: 字符集
1998
+ # @type Charset: String
1999
+ # @param CreateTime: 创建时间
2000
+ # @type CreateTime: String
2001
+ # @param DbType: 数据库类型
2002
+ # @type DbType: String
1882
2003
  # @param DbMode: 数据库类型,normal,serverless
1883
2004
  # 注意:此字段可能返回 null,表示取不到有效值。
1884
2005
  # @type DbMode: String
2006
+ # @param DbVersion: 数据库版本
2007
+ # @type DbVersion: String
1885
2008
  # @param StorageLimit: 存储空间上限
1886
2009
  # 注意:此字段可能返回 null,表示取不到有效值。
1887
2010
  # @type StorageLimit: Integer
2011
+ # @param UsedStorage: 使用容量
2012
+ # @type UsedStorage: Integer
2013
+ # @param Vip: vip地址
2014
+ # @type Vip: String
2015
+ # @param Vport: vport端口
2016
+ # @type Vport: Integer
2017
+ # @param RoAddr: 读写分离Vport
2018
+ # @type RoAddr: Array
1888
2019
  # @param Ability: 集群支持的功能
1889
2020
  # 注意:此字段可能返回 null,表示取不到有效值。
1890
2021
  # @type Ability: :class:`Tencentcloud::Cynosdb.v20190107.models.Ability`
@@ -1909,27 +2040,54 @@ module TencentCloud
1909
2040
  # @param SlaveZones: 从可用区列表
1910
2041
  # 注意:此字段可能返回 null,表示取不到有效值。
1911
2042
  # @type SlaveZones: Array
2043
+ # @param InstanceSet: 实例信息
2044
+ # @type InstanceSet: Array
2045
+ # @param PayMode: 付费模式
2046
+ # @type PayMode: Integer
2047
+ # @param PeriodEndTime: 到期时间
2048
+ # @type PeriodEndTime: String
2049
+ # @param ProjectID: 项目id
2050
+ # @type ProjectID: Integer
2051
+ # @param ResourceTags: 实例绑定的tag数组信息
2052
+ # @type ResourceTags: Array
1912
2053
  # @param ProxyStatus: Proxy状态
1913
2054
  # 注意:此字段可能返回 null,表示取不到有效值。
1914
2055
  # @type ProxyStatus: String
2056
+ # @param LogBin: binlog开关,可选值:ON, OFF
2057
+ # 注意:此字段可能返回 null,表示取不到有效值。
2058
+ # @type LogBin: String
1915
2059
  # @param IsSkipTrade: 是否跳过交易
1916
2060
  # 注意:此字段可能返回 null,表示取不到有效值。
1917
2061
  # @type IsSkipTrade: String
2062
+ # @param PitrType: pitr类型,可选值:normal, redo_pitr
2063
+ # 注意:此字段可能返回 null,表示取不到有效值。
2064
+ # @type PitrType: String
1918
2065
  # @param IsOpenPasswordComplexity: 是否打开密码复杂度
1919
2066
  # 注意:此字段可能返回 null,表示取不到有效值。
1920
2067
  # @type IsOpenPasswordComplexity: String
1921
2068
  # @param NetworkStatus: 网络类型
1922
2069
  # 注意:此字段可能返回 null,表示取不到有效值。
1923
2070
  # @type NetworkStatus: String
2071
+ # @param ResourcePackages: 集群绑定的资源包信息
2072
+ # 注意:此字段可能返回 null,表示取不到有效值。
2073
+ # @type ResourcePackages: Array
1924
2074
 
1925
- attr_accessor :ClusterId, :ClusterName, :Region, :Status, :StatusDesc, :VpcName, :VpcId, :SubnetName, :SubnetId, :Charset, :CreateTime, :DbType, :DbVersion, :UsedStorage, :RoAddr, :InstanceSet, :PayMode, :PeriodEndTime, :Vip, :Vport, :ProjectID, :Zone, :ResourceTags, :ServerlessStatus, :LogBin, :PitrType, :PhysicalZone, :StorageId, :Storage, :MaxStorageSize, :MinStorageSize, :StoragePayMode, :DbMode, :StorageLimit, :Ability, :CynosVersion, :BusinessType, :HasSlaveZone, :IsFreeze, :Tasks, :MasterZone, :SlaveZones, :ProxyStatus, :IsSkipTrade, :IsOpenPasswordComplexity, :NetworkStatus
2075
+ attr_accessor :ClusterId, :ClusterName, :Region, :Zone, :PhysicalZone, :Status, :StatusDesc, :ServerlessStatus, :StorageId, :Storage, :MaxStorageSize, :MinStorageSize, :StoragePayMode, :VpcName, :VpcId, :SubnetName, :SubnetId, :Charset, :CreateTime, :DbType, :DbMode, :DbVersion, :StorageLimit, :UsedStorage, :Vip, :Vport, :RoAddr, :Ability, :CynosVersion, :BusinessType, :HasSlaveZone, :IsFreeze, :Tasks, :MasterZone, :SlaveZones, :InstanceSet, :PayMode, :PeriodEndTime, :ProjectID, :ResourceTags, :ProxyStatus, :LogBin, :IsSkipTrade, :PitrType, :IsOpenPasswordComplexity, :NetworkStatus, :ResourcePackages
1926
2076
 
1927
- def initialize(clusterid=nil, clustername=nil, region=nil, status=nil, statusdesc=nil, vpcname=nil, vpcid=nil, subnetname=nil, subnetid=nil, charset=nil, createtime=nil, dbtype=nil, dbversion=nil, usedstorage=nil, roaddr=nil, instanceset=nil, paymode=nil, periodendtime=nil, vip=nil, vport=nil, projectid=nil, zone=nil, resourcetags=nil, serverlessstatus=nil, logbin=nil, pitrtype=nil, physicalzone=nil, storageid=nil, storage=nil, maxstoragesize=nil, minstoragesize=nil, storagepaymode=nil, dbmode=nil, storagelimit=nil, ability=nil, cynosversion=nil, businesstype=nil, hasslavezone=nil, isfreeze=nil, tasks=nil, masterzone=nil, slavezones=nil, proxystatus=nil, isskiptrade=nil, isopenpasswordcomplexity=nil, networkstatus=nil)
2077
+ def initialize(clusterid=nil, clustername=nil, region=nil, zone=nil, physicalzone=nil, status=nil, statusdesc=nil, serverlessstatus=nil, storageid=nil, storage=nil, maxstoragesize=nil, minstoragesize=nil, storagepaymode=nil, vpcname=nil, vpcid=nil, subnetname=nil, subnetid=nil, charset=nil, createtime=nil, dbtype=nil, dbmode=nil, dbversion=nil, storagelimit=nil, usedstorage=nil, vip=nil, vport=nil, roaddr=nil, ability=nil, cynosversion=nil, businesstype=nil, hasslavezone=nil, isfreeze=nil, tasks=nil, masterzone=nil, slavezones=nil, instanceset=nil, paymode=nil, periodendtime=nil, projectid=nil, resourcetags=nil, proxystatus=nil, logbin=nil, isskiptrade=nil, pitrtype=nil, isopenpasswordcomplexity=nil, networkstatus=nil, resourcepackages=nil)
1928
2078
  @ClusterId = clusterid
1929
2079
  @ClusterName = clustername
1930
2080
  @Region = region
2081
+ @Zone = zone
2082
+ @PhysicalZone = physicalzone
1931
2083
  @Status = status
1932
2084
  @StatusDesc = statusdesc
2085
+ @ServerlessStatus = serverlessstatus
2086
+ @StorageId = storageid
2087
+ @Storage = storage
2088
+ @MaxStorageSize = maxstoragesize
2089
+ @MinStorageSize = minstoragesize
2090
+ @StoragePayMode = storagepaymode
1933
2091
  @VpcName = vpcname
1934
2092
  @VpcId = vpcid
1935
2093
  @SubnetName = subnetname
@@ -1937,28 +2095,13 @@ module TencentCloud
1937
2095
  @Charset = charset
1938
2096
  @CreateTime = createtime
1939
2097
  @DbType = dbtype
2098
+ @DbMode = dbmode
1940
2099
  @DbVersion = dbversion
2100
+ @StorageLimit = storagelimit
1941
2101
  @UsedStorage = usedstorage
1942
- @RoAddr = roaddr
1943
- @InstanceSet = instanceset
1944
- @PayMode = paymode
1945
- @PeriodEndTime = periodendtime
1946
2102
  @Vip = vip
1947
2103
  @Vport = vport
1948
- @ProjectID = projectid
1949
- @Zone = zone
1950
- @ResourceTags = resourcetags
1951
- @ServerlessStatus = serverlessstatus
1952
- @LogBin = logbin
1953
- @PitrType = pitrtype
1954
- @PhysicalZone = physicalzone
1955
- @StorageId = storageid
1956
- @Storage = storage
1957
- @MaxStorageSize = maxstoragesize
1958
- @MinStorageSize = minstoragesize
1959
- @StoragePayMode = storagepaymode
1960
- @DbMode = dbmode
1961
- @StorageLimit = storagelimit
2104
+ @RoAddr = roaddr
1962
2105
  @Ability = ability
1963
2106
  @CynosVersion = cynosversion
1964
2107
  @BusinessType = businesstype
@@ -1967,18 +2110,34 @@ module TencentCloud
1967
2110
  @Tasks = tasks
1968
2111
  @MasterZone = masterzone
1969
2112
  @SlaveZones = slavezones
2113
+ @InstanceSet = instanceset
2114
+ @PayMode = paymode
2115
+ @PeriodEndTime = periodendtime
2116
+ @ProjectID = projectid
2117
+ @ResourceTags = resourcetags
1970
2118
  @ProxyStatus = proxystatus
2119
+ @LogBin = logbin
1971
2120
  @IsSkipTrade = isskiptrade
2121
+ @PitrType = pitrtype
1972
2122
  @IsOpenPasswordComplexity = isopenpasswordcomplexity
1973
2123
  @NetworkStatus = networkstatus
2124
+ @ResourcePackages = resourcepackages
1974
2125
  end
1975
2126
 
1976
2127
  def deserialize(params)
1977
2128
  @ClusterId = params['ClusterId']
1978
2129
  @ClusterName = params['ClusterName']
1979
2130
  @Region = params['Region']
2131
+ @Zone = params['Zone']
2132
+ @PhysicalZone = params['PhysicalZone']
1980
2133
  @Status = params['Status']
1981
2134
  @StatusDesc = params['StatusDesc']
2135
+ @ServerlessStatus = params['ServerlessStatus']
2136
+ @StorageId = params['StorageId']
2137
+ @Storage = params['Storage']
2138
+ @MaxStorageSize = params['MaxStorageSize']
2139
+ @MinStorageSize = params['MinStorageSize']
2140
+ @StoragePayMode = params['StoragePayMode']
1982
2141
  @VpcName = params['VpcName']
1983
2142
  @VpcId = params['VpcId']
1984
2143
  @SubnetName = params['SubnetName']
@@ -1986,8 +2145,12 @@ module TencentCloud
1986
2145
  @Charset = params['Charset']
1987
2146
  @CreateTime = params['CreateTime']
1988
2147
  @DbType = params['DbType']
2148
+ @DbMode = params['DbMode']
1989
2149
  @DbVersion = params['DbVersion']
2150
+ @StorageLimit = params['StorageLimit']
1990
2151
  @UsedStorage = params['UsedStorage']
2152
+ @Vip = params['Vip']
2153
+ @Vport = params['Vport']
1991
2154
  unless params['RoAddr'].nil?
1992
2155
  @RoAddr = []
1993
2156
  params['RoAddr'].each do |i|
@@ -1996,6 +2159,24 @@ module TencentCloud
1996
2159
  @RoAddr << addr_tmp
1997
2160
  end
1998
2161
  end
2162
+ unless params['Ability'].nil?
2163
+ @Ability = Ability.new
2164
+ @Ability.deserialize(params['Ability'])
2165
+ end
2166
+ @CynosVersion = params['CynosVersion']
2167
+ @BusinessType = params['BusinessType']
2168
+ @HasSlaveZone = params['HasSlaveZone']
2169
+ @IsFreeze = params['IsFreeze']
2170
+ unless params['Tasks'].nil?
2171
+ @Tasks = []
2172
+ params['Tasks'].each do |i|
2173
+ objecttask_tmp = ObjectTask.new
2174
+ objecttask_tmp.deserialize(i)
2175
+ @Tasks << objecttask_tmp
2176
+ end
2177
+ end
2178
+ @MasterZone = params['MasterZone']
2179
+ @SlaveZones = params['SlaveZones']
1999
2180
  unless params['InstanceSet'].nil?
2000
2181
  @InstanceSet = []
2001
2182
  params['InstanceSet'].each do |i|
@@ -2006,10 +2187,7 @@ module TencentCloud
2006
2187
  end
2007
2188
  @PayMode = params['PayMode']
2008
2189
  @PeriodEndTime = params['PeriodEndTime']
2009
- @Vip = params['Vip']
2010
- @Vport = params['Vport']
2011
2190
  @ProjectID = params['ProjectID']
2012
- @Zone = params['Zone']
2013
2191
  unless params['ResourceTags'].nil?
2014
2192
  @ResourceTags = []
2015
2193
  params['ResourceTags'].each do |i|
@@ -2018,39 +2196,20 @@ module TencentCloud
2018
2196
  @ResourceTags << tag_tmp
2019
2197
  end
2020
2198
  end
2021
- @ServerlessStatus = params['ServerlessStatus']
2022
- @LogBin = params['LogBin']
2023
- @PitrType = params['PitrType']
2024
- @PhysicalZone = params['PhysicalZone']
2025
- @StorageId = params['StorageId']
2026
- @Storage = params['Storage']
2027
- @MaxStorageSize = params['MaxStorageSize']
2028
- @MinStorageSize = params['MinStorageSize']
2029
- @StoragePayMode = params['StoragePayMode']
2030
- @DbMode = params['DbMode']
2031
- @StorageLimit = params['StorageLimit']
2032
- unless params['Ability'].nil?
2033
- @Ability = Ability.new
2034
- @Ability.deserialize(params['Ability'])
2035
- end
2036
- @CynosVersion = params['CynosVersion']
2037
- @BusinessType = params['BusinessType']
2038
- @HasSlaveZone = params['HasSlaveZone']
2039
- @IsFreeze = params['IsFreeze']
2040
- unless params['Tasks'].nil?
2041
- @Tasks = []
2042
- params['Tasks'].each do |i|
2043
- objecttask_tmp = ObjectTask.new
2044
- objecttask_tmp.deserialize(i)
2045
- @Tasks << objecttask_tmp
2046
- end
2047
- end
2048
- @MasterZone = params['MasterZone']
2049
- @SlaveZones = params['SlaveZones']
2050
2199
  @ProxyStatus = params['ProxyStatus']
2200
+ @LogBin = params['LogBin']
2051
2201
  @IsSkipTrade = params['IsSkipTrade']
2202
+ @PitrType = params['PitrType']
2052
2203
  @IsOpenPasswordComplexity = params['IsOpenPasswordComplexity']
2053
2204
  @NetworkStatus = params['NetworkStatus']
2205
+ unless params['ResourcePackages'].nil?
2206
+ @ResourcePackages = []
2207
+ params['ResourcePackages'].each do |i|
2208
+ resourcepackage_tmp = ResourcePackage.new
2209
+ resourcepackage_tmp.deserialize(i)
2210
+ @ResourcePackages << resourcepackage_tmp
2211
+ end
2212
+ end
2054
2213
  end
2055
2214
  end
2056
2215
 
@@ -2105,6 +2264,8 @@ module TencentCloud
2105
2264
  # @type Status: String
2106
2265
  # @param StatusDesc: 实例状态中文描述
2107
2266
  # @type StatusDesc: String
2267
+ # @param DbMode: 实例形态,是否为serverless实例
2268
+ # @type DbMode: String
2108
2269
  # @param DbType: 数据库类型
2109
2270
  # @type DbType: String
2110
2271
  # @param DbVersion: 数据库版本
@@ -2193,10 +2354,13 @@ module TencentCloud
2193
2354
  # @param InstanceNetInfo: 实例网络信息
2194
2355
  # 注意:此字段可能返回 null,表示取不到有效值。
2195
2356
  # @type InstanceNetInfo: Array
2357
+ # @param ResourcePackages: 实例绑定资源包信息(此处只返回计算资源包,即packageType=CCU)
2358
+ # 注意:此字段可能返回 null,表示取不到有效值。
2359
+ # @type ResourcePackages: Array
2196
2360
 
2197
- attr_accessor :Uin, :AppId, :ClusterId, :ClusterName, :InstanceId, :InstanceName, :ProjectId, :Region, :Zone, :Status, :StatusDesc, :DbType, :DbVersion, :Cpu, :Memory, :Storage, :InstanceType, :InstanceRole, :UpdateTime, :CreateTime, :VpcId, :SubnetId, :Vip, :Vport, :PayMode, :PeriodEndTime, :DestroyDeadlineText, :IsolateTime, :NetType, :WanDomain, :WanIP, :WanPort, :WanStatus, :DestroyTime, :CynosVersion, :ProcessingTask, :RenewFlag, :MinCpu, :MaxCpu, :ServerlessStatus, :StorageId, :StoragePayMode, :PhysicalZone, :BusinessType, :Tasks, :IsFreeze, :ResourceTags, :MasterZone, :SlaveZones, :InstanceNetInfo
2361
+ attr_accessor :Uin, :AppId, :ClusterId, :ClusterName, :InstanceId, :InstanceName, :ProjectId, :Region, :Zone, :Status, :StatusDesc, :DbMode, :DbType, :DbVersion, :Cpu, :Memory, :Storage, :InstanceType, :InstanceRole, :UpdateTime, :CreateTime, :VpcId, :SubnetId, :Vip, :Vport, :PayMode, :PeriodEndTime, :DestroyDeadlineText, :IsolateTime, :NetType, :WanDomain, :WanIP, :WanPort, :WanStatus, :DestroyTime, :CynosVersion, :ProcessingTask, :RenewFlag, :MinCpu, :MaxCpu, :ServerlessStatus, :StorageId, :StoragePayMode, :PhysicalZone, :BusinessType, :Tasks, :IsFreeze, :ResourceTags, :MasterZone, :SlaveZones, :InstanceNetInfo, :ResourcePackages
2198
2362
 
2199
- def initialize(uin=nil, appid=nil, clusterid=nil, clustername=nil, instanceid=nil, instancename=nil, projectid=nil, region=nil, zone=nil, status=nil, statusdesc=nil, dbtype=nil, dbversion=nil, cpu=nil, memory=nil, storage=nil, instancetype=nil, instancerole=nil, updatetime=nil, createtime=nil, vpcid=nil, subnetid=nil, vip=nil, vport=nil, paymode=nil, periodendtime=nil, destroydeadlinetext=nil, isolatetime=nil, nettype=nil, wandomain=nil, wanip=nil, wanport=nil, wanstatus=nil, destroytime=nil, cynosversion=nil, processingtask=nil, renewflag=nil, mincpu=nil, maxcpu=nil, serverlessstatus=nil, storageid=nil, storagepaymode=nil, physicalzone=nil, businesstype=nil, tasks=nil, isfreeze=nil, resourcetags=nil, masterzone=nil, slavezones=nil, instancenetinfo=nil)
2363
+ def initialize(uin=nil, appid=nil, clusterid=nil, clustername=nil, instanceid=nil, instancename=nil, projectid=nil, region=nil, zone=nil, status=nil, statusdesc=nil, dbmode=nil, dbtype=nil, dbversion=nil, cpu=nil, memory=nil, storage=nil, instancetype=nil, instancerole=nil, updatetime=nil, createtime=nil, vpcid=nil, subnetid=nil, vip=nil, vport=nil, paymode=nil, periodendtime=nil, destroydeadlinetext=nil, isolatetime=nil, nettype=nil, wandomain=nil, wanip=nil, wanport=nil, wanstatus=nil, destroytime=nil, cynosversion=nil, processingtask=nil, renewflag=nil, mincpu=nil, maxcpu=nil, serverlessstatus=nil, storageid=nil, storagepaymode=nil, physicalzone=nil, businesstype=nil, tasks=nil, isfreeze=nil, resourcetags=nil, masterzone=nil, slavezones=nil, instancenetinfo=nil, resourcepackages=nil)
2200
2364
  @Uin = uin
2201
2365
  @AppId = appid
2202
2366
  @ClusterId = clusterid
@@ -2208,6 +2372,7 @@ module TencentCloud
2208
2372
  @Zone = zone
2209
2373
  @Status = status
2210
2374
  @StatusDesc = statusdesc
2375
+ @DbMode = dbmode
2211
2376
  @DbType = dbtype
2212
2377
  @DbVersion = dbversion
2213
2378
  @Cpu = cpu
@@ -2247,6 +2412,7 @@ module TencentCloud
2247
2412
  @MasterZone = masterzone
2248
2413
  @SlaveZones = slavezones
2249
2414
  @InstanceNetInfo = instancenetinfo
2415
+ @ResourcePackages = resourcepackages
2250
2416
  end
2251
2417
 
2252
2418
  def deserialize(params)
@@ -2261,6 +2427,7 @@ module TencentCloud
2261
2427
  @Zone = params['Zone']
2262
2428
  @Status = params['Status']
2263
2429
  @StatusDesc = params['StatusDesc']
2430
+ @DbMode = params['DbMode']
2264
2431
  @DbType = params['DbType']
2265
2432
  @DbVersion = params['DbVersion']
2266
2433
  @Cpu = params['Cpu']
@@ -2321,6 +2488,14 @@ module TencentCloud
2321
2488
  @InstanceNetInfo << instancenetinfo_tmp
2322
2489
  end
2323
2490
  end
2491
+ unless params['ResourcePackages'].nil?
2492
+ @ResourcePackages = []
2493
+ params['ResourcePackages'].each do |i|
2494
+ resourcepackage_tmp = ResourcePackage.new
2495
+ resourcepackage_tmp.deserialize(i)
2496
+ @ResourcePackages << resourcepackage_tmp
2497
+ end
2498
+ end
2324
2499
  end
2325
2500
  end
2326
2501
 
@@ -4775,106 +4950,330 @@ module TencentCloud
4775
4950
  end
4776
4951
 
4777
4952
  def deserialize(params)
4778
- @EngineVersions = params['EngineVersions']
4779
- @TemplateNames = params['TemplateNames']
4780
- @TemplateIds = params['TemplateIds']
4781
- @DbModes = params['DbModes']
4782
- @Offset = params['Offset']
4783
- @Limit = params['Limit']
4784
- @Products = params['Products']
4785
- @TemplateTypes = params['TemplateTypes']
4786
- @EngineTypes = params['EngineTypes']
4953
+ @EngineVersions = params['EngineVersions']
4954
+ @TemplateNames = params['TemplateNames']
4955
+ @TemplateIds = params['TemplateIds']
4956
+ @DbModes = params['DbModes']
4957
+ @Offset = params['Offset']
4958
+ @Limit = params['Limit']
4959
+ @Products = params['Products']
4960
+ @TemplateTypes = params['TemplateTypes']
4961
+ @EngineTypes = params['EngineTypes']
4962
+ @OrderBy = params['OrderBy']
4963
+ @OrderDirection = params['OrderDirection']
4964
+ end
4965
+ end
4966
+
4967
+ # DescribeParamTemplates返回参数结构体
4968
+ class DescribeParamTemplatesResponse < TencentCloud::Common::AbstractModel
4969
+ # @param TotalCount: 参数模板数量
4970
+ # @type TotalCount: Integer
4971
+ # @param Items: 参数模板信息
4972
+ # @type Items: Array
4973
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4974
+ # @type RequestId: String
4975
+
4976
+ attr_accessor :TotalCount, :Items, :RequestId
4977
+
4978
+ def initialize(totalcount=nil, items=nil, requestid=nil)
4979
+ @TotalCount = totalcount
4980
+ @Items = items
4981
+ @RequestId = requestid
4982
+ end
4983
+
4984
+ def deserialize(params)
4985
+ @TotalCount = params['TotalCount']
4986
+ unless params['Items'].nil?
4987
+ @Items = []
4988
+ params['Items'].each do |i|
4989
+ paramtemplatelistinfo_tmp = ParamTemplateListInfo.new
4990
+ paramtemplatelistinfo_tmp.deserialize(i)
4991
+ @Items << paramtemplatelistinfo_tmp
4992
+ end
4993
+ end
4994
+ @RequestId = params['RequestId']
4995
+ end
4996
+ end
4997
+
4998
+ # DescribeProjectSecurityGroups请求参数结构体
4999
+ class DescribeProjectSecurityGroupsRequest < TencentCloud::Common::AbstractModel
5000
+ # @param ProjectId: 项目ID
5001
+ # @type ProjectId: Integer
5002
+ # @param Limit: 限制量
5003
+ # @type Limit: Integer
5004
+ # @param Offset: 偏移量
5005
+ # @type Offset: Integer
5006
+ # @param SearchKey: 搜索关键字
5007
+ # @type SearchKey: String
5008
+
5009
+ attr_accessor :ProjectId, :Limit, :Offset, :SearchKey
5010
+
5011
+ def initialize(projectid=nil, limit=nil, offset=nil, searchkey=nil)
5012
+ @ProjectId = projectid
5013
+ @Limit = limit
5014
+ @Offset = offset
5015
+ @SearchKey = searchkey
5016
+ end
5017
+
5018
+ def deserialize(params)
5019
+ @ProjectId = params['ProjectId']
5020
+ @Limit = params['Limit']
5021
+ @Offset = params['Offset']
5022
+ @SearchKey = params['SearchKey']
5023
+ end
5024
+ end
5025
+
5026
+ # DescribeProjectSecurityGroups返回参数结构体
5027
+ class DescribeProjectSecurityGroupsResponse < TencentCloud::Common::AbstractModel
5028
+ # @param Groups: 安全组详情
5029
+ # @type Groups: Array
5030
+ # @param Total: 总数量
5031
+ # @type Total: Integer
5032
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5033
+ # @type RequestId: String
5034
+
5035
+ attr_accessor :Groups, :Total, :RequestId
5036
+
5037
+ def initialize(groups=nil, total=nil, requestid=nil)
5038
+ @Groups = groups
5039
+ @Total = total
5040
+ @RequestId = requestid
5041
+ end
5042
+
5043
+ def deserialize(params)
5044
+ unless params['Groups'].nil?
5045
+ @Groups = []
5046
+ params['Groups'].each do |i|
5047
+ securitygroup_tmp = SecurityGroup.new
5048
+ securitygroup_tmp.deserialize(i)
5049
+ @Groups << securitygroup_tmp
5050
+ end
5051
+ end
5052
+ @Total = params['Total']
5053
+ @RequestId = params['RequestId']
5054
+ end
5055
+ end
5056
+
5057
+ # DescribeResourcePackageDetail请求参数结构体
5058
+ class DescribeResourcePackageDetailRequest < TencentCloud::Common::AbstractModel
5059
+ # @param PackageId: 资源包唯一ID
5060
+ # @type PackageId: String
5061
+ # @param ClusterIds: 实例ID
5062
+ # @type ClusterIds: Array
5063
+ # @param StartTime: 开始时间
5064
+ # @type StartTime: String
5065
+ # @param EndTime: 结束时间
5066
+ # @type EndTime: String
5067
+ # @param Offset: 偏移量
5068
+ # @type Offset: String
5069
+ # @param Limit: 限制
5070
+ # @type Limit: String
5071
+
5072
+ attr_accessor :PackageId, :ClusterIds, :StartTime, :EndTime, :Offset, :Limit
5073
+
5074
+ def initialize(packageid=nil, clusterids=nil, starttime=nil, endtime=nil, offset=nil, limit=nil)
5075
+ @PackageId = packageid
5076
+ @ClusterIds = clusterids
5077
+ @StartTime = starttime
5078
+ @EndTime = endtime
5079
+ @Offset = offset
5080
+ @Limit = limit
5081
+ end
5082
+
5083
+ def deserialize(params)
5084
+ @PackageId = params['PackageId']
5085
+ @ClusterIds = params['ClusterIds']
5086
+ @StartTime = params['StartTime']
5087
+ @EndTime = params['EndTime']
5088
+ @Offset = params['Offset']
5089
+ @Limit = params['Limit']
5090
+ end
5091
+ end
5092
+
5093
+ # DescribeResourcePackageDetail返回参数结构体
5094
+ class DescribeResourcePackageDetailResponse < TencentCloud::Common::AbstractModel
5095
+ # @param Total: 总使用明细数
5096
+ # @type Total: Integer
5097
+ # @param Detail: 资源包明细说明
5098
+ # @type Detail: Array
5099
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5100
+ # @type RequestId: String
5101
+
5102
+ attr_accessor :Total, :Detail, :RequestId
5103
+
5104
+ def initialize(total=nil, detail=nil, requestid=nil)
5105
+ @Total = total
5106
+ @Detail = detail
5107
+ @RequestId = requestid
5108
+ end
5109
+
5110
+ def deserialize(params)
5111
+ @Total = params['Total']
5112
+ unless params['Detail'].nil?
5113
+ @Detail = []
5114
+ params['Detail'].each do |i|
5115
+ packagedetail_tmp = PackageDetail.new
5116
+ packagedetail_tmp.deserialize(i)
5117
+ @Detail << packagedetail_tmp
5118
+ end
5119
+ end
5120
+ @RequestId = params['RequestId']
5121
+ end
5122
+ end
5123
+
5124
+ # DescribeResourcePackageList请求参数结构体
5125
+ class DescribeResourcePackageListRequest < TencentCloud::Common::AbstractModel
5126
+ # @param PackageId: 资源包唯一ID
5127
+ # @type PackageId: Array
5128
+ # @param PackageName: 资源包名称
5129
+ # @type PackageName: Array
5130
+ # @param PackageType: 资源包类型
5131
+ # CCU-计算资源包,DISK-存储资源包
5132
+ # @type PackageType: Array
5133
+ # @param PackageRegion: 资源包使用地域
5134
+ # china-中国内地通用,overseas-港澳台及海外通用
5135
+ # @type PackageRegion: Array
5136
+ # @param Status: 资源包状态
5137
+ # creating-创建中;
5138
+ # using-使用中;
5139
+ # expired-已过期;
5140
+ # normal_finish-使用完;
5141
+ # apply_refund-申请退费中;
5142
+ # refund-已退费。
5143
+ # @type Status: Array
5144
+ # @param OrderBy: 排序条件,支持排序条件:startTime-生效时间,
5145
+ # expireTime-过期时间,packageUsedSpec-使用容量,packageTotalSpec-总存储量。
5146
+ # 按照数组顺序排列;
5147
+ # @type OrderBy: Array
5148
+ # @param OrderDirection: 排序方式,DESC-降序,ASC-升序
5149
+ # @type OrderDirection: String
5150
+ # @param Offset: 偏移量
5151
+ # @type Offset: Integer
5152
+ # @param Limit: 限制
5153
+ # @type Limit: Integer
5154
+
5155
+ attr_accessor :PackageId, :PackageName, :PackageType, :PackageRegion, :Status, :OrderBy, :OrderDirection, :Offset, :Limit
5156
+
5157
+ def initialize(packageid=nil, packagename=nil, packagetype=nil, packageregion=nil, status=nil, orderby=nil, orderdirection=nil, offset=nil, limit=nil)
5158
+ @PackageId = packageid
5159
+ @PackageName = packagename
5160
+ @PackageType = packagetype
5161
+ @PackageRegion = packageregion
5162
+ @Status = status
5163
+ @OrderBy = orderby
5164
+ @OrderDirection = orderdirection
5165
+ @Offset = offset
5166
+ @Limit = limit
5167
+ end
5168
+
5169
+ def deserialize(params)
5170
+ @PackageId = params['PackageId']
5171
+ @PackageName = params['PackageName']
5172
+ @PackageType = params['PackageType']
5173
+ @PackageRegion = params['PackageRegion']
5174
+ @Status = params['Status']
4787
5175
  @OrderBy = params['OrderBy']
4788
5176
  @OrderDirection = params['OrderDirection']
5177
+ @Offset = params['Offset']
5178
+ @Limit = params['Limit']
4789
5179
  end
4790
5180
  end
4791
5181
 
4792
- # DescribeParamTemplates返回参数结构体
4793
- class DescribeParamTemplatesResponse < TencentCloud::Common::AbstractModel
4794
- # @param TotalCount: 参数模板数量
4795
- # @type TotalCount: Integer
4796
- # @param Items: 参数模板信息
4797
- # @type Items: Array
5182
+ # DescribeResourcePackageList返回参数结构体
5183
+ class DescribeResourcePackageListResponse < TencentCloud::Common::AbstractModel
5184
+ # @param Total: 总配置数
5185
+ # @type Total: Integer
5186
+ # @param Detail: 资源包明细
5187
+ # 注意:此字段可能返回 null,表示取不到有效值。
5188
+ # @type Detail: Array
4798
5189
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4799
5190
  # @type RequestId: String
4800
5191
 
4801
- attr_accessor :TotalCount, :Items, :RequestId
5192
+ attr_accessor :Total, :Detail, :RequestId
4802
5193
 
4803
- def initialize(totalcount=nil, items=nil, requestid=nil)
4804
- @TotalCount = totalcount
4805
- @Items = items
5194
+ def initialize(total=nil, detail=nil, requestid=nil)
5195
+ @Total = total
5196
+ @Detail = detail
4806
5197
  @RequestId = requestid
4807
5198
  end
4808
5199
 
4809
5200
  def deserialize(params)
4810
- @TotalCount = params['TotalCount']
4811
- unless params['Items'].nil?
4812
- @Items = []
4813
- params['Items'].each do |i|
4814
- paramtemplatelistinfo_tmp = ParamTemplateListInfo.new
4815
- paramtemplatelistinfo_tmp.deserialize(i)
4816
- @Items << paramtemplatelistinfo_tmp
5201
+ @Total = params['Total']
5202
+ unless params['Detail'].nil?
5203
+ @Detail = []
5204
+ params['Detail'].each do |i|
5205
+ package_tmp = Package.new
5206
+ package_tmp.deserialize(i)
5207
+ @Detail << package_tmp
4817
5208
  end
4818
5209
  end
4819
5210
  @RequestId = params['RequestId']
4820
5211
  end
4821
5212
  end
4822
5213
 
4823
- # DescribeProjectSecurityGroups请求参数结构体
4824
- class DescribeProjectSecurityGroupsRequest < TencentCloud::Common::AbstractModel
4825
- # @param ProjectId: 项目ID
4826
- # @type ProjectId: Integer
4827
- # @param Limit: 限制量
4828
- # @type Limit: Integer
5214
+ # DescribeResourcePackageSaleSpec请求参数结构体
5215
+ class DescribeResourcePackageSaleSpecRequest < TencentCloud::Common::AbstractModel
5216
+ # @param InstanceType: 实例类型
5217
+ # @type InstanceType: String
5218
+ # @param PackageRegion: 资源包使用地域
5219
+ # china-中国内地通用,overseas-港澳台及海外通用
5220
+ # @type PackageRegion: String
5221
+ # @param PackageType: 资源包类型
5222
+ # CCU-计算资源包
5223
+ # DISK-存储资源包
5224
+ # @type PackageType: String
4829
5225
  # @param Offset: 偏移量
4830
5226
  # @type Offset: Integer
4831
- # @param SearchKey: 搜索关键字
4832
- # @type SearchKey: String
5227
+ # @param Limit: 限制
5228
+ # @type Limit: Integer
4833
5229
 
4834
- attr_accessor :ProjectId, :Limit, :Offset, :SearchKey
5230
+ attr_accessor :InstanceType, :PackageRegion, :PackageType, :Offset, :Limit
4835
5231
 
4836
- def initialize(projectid=nil, limit=nil, offset=nil, searchkey=nil)
4837
- @ProjectId = projectid
4838
- @Limit = limit
5232
+ def initialize(instancetype=nil, packageregion=nil, packagetype=nil, offset=nil, limit=nil)
5233
+ @InstanceType = instancetype
5234
+ @PackageRegion = packageregion
5235
+ @PackageType = packagetype
4839
5236
  @Offset = offset
4840
- @SearchKey = searchkey
5237
+ @Limit = limit
4841
5238
  end
4842
5239
 
4843
5240
  def deserialize(params)
4844
- @ProjectId = params['ProjectId']
4845
- @Limit = params['Limit']
5241
+ @InstanceType = params['InstanceType']
5242
+ @PackageRegion = params['PackageRegion']
5243
+ @PackageType = params['PackageType']
4846
5244
  @Offset = params['Offset']
4847
- @SearchKey = params['SearchKey']
5245
+ @Limit = params['Limit']
4848
5246
  end
4849
5247
  end
4850
5248
 
4851
- # DescribeProjectSecurityGroups返回参数结构体
4852
- class DescribeProjectSecurityGroupsResponse < TencentCloud::Common::AbstractModel
4853
- # @param Groups: 安全组详情
4854
- # @type Groups: Array
4855
- # @param Total: 总数量
5249
+ # DescribeResourcePackageSaleSpec返回参数结构体
5250
+ class DescribeResourcePackageSaleSpecResponse < TencentCloud::Common::AbstractModel
5251
+ # @param Total: 可售卖资源包规格总数
4856
5252
  # @type Total: Integer
5253
+ # @param Detail: 资源包明细说明
5254
+ # 注意:此字段可能返回 null,表示取不到有效值。
5255
+ # @type Detail: Array
4857
5256
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4858
5257
  # @type RequestId: String
4859
5258
 
4860
- attr_accessor :Groups, :Total, :RequestId
5259
+ attr_accessor :Total, :Detail, :RequestId
4861
5260
 
4862
- def initialize(groups=nil, total=nil, requestid=nil)
4863
- @Groups = groups
5261
+ def initialize(total=nil, detail=nil, requestid=nil)
4864
5262
  @Total = total
5263
+ @Detail = detail
4865
5264
  @RequestId = requestid
4866
5265
  end
4867
5266
 
4868
5267
  def deserialize(params)
4869
- unless params['Groups'].nil?
4870
- @Groups = []
4871
- params['Groups'].each do |i|
4872
- securitygroup_tmp = SecurityGroup.new
4873
- securitygroup_tmp.deserialize(i)
4874
- @Groups << securitygroup_tmp
5268
+ @Total = params['Total']
5269
+ unless params['Detail'].nil?
5270
+ @Detail = []
5271
+ params['Detail'].each do |i|
5272
+ salepackagespec_tmp = SalePackageSpec.new
5273
+ salepackagespec_tmp.deserialize(i)
5274
+ @Detail << salepackagespec_tmp
4875
5275
  end
4876
5276
  end
4877
- @Total = params['Total']
4878
5277
  @RequestId = params['RequestId']
4879
5278
  end
4880
5279
  end
@@ -6856,6 +7255,82 @@ module TencentCloud
6856
7255
  end
6857
7256
  end
6858
7257
 
7258
+ # ModifyResourcePackageClusters请求参数结构体
7259
+ class ModifyResourcePackageClustersRequest < TencentCloud::Common::AbstractModel
7260
+ # @param PackageId: 资源包唯一ID
7261
+ # @type PackageId: String
7262
+ # @param BindClusterIds: 需要建立绑定关系的集群ID
7263
+ # @type BindClusterIds: Array
7264
+ # @param UnbindClusterIds: 需要解除绑定关系的集群ID
7265
+ # @type UnbindClusterIds: Array
7266
+
7267
+ attr_accessor :PackageId, :BindClusterIds, :UnbindClusterIds
7268
+
7269
+ def initialize(packageid=nil, bindclusterids=nil, unbindclusterids=nil)
7270
+ @PackageId = packageid
7271
+ @BindClusterIds = bindclusterids
7272
+ @UnbindClusterIds = unbindclusterids
7273
+ end
7274
+
7275
+ def deserialize(params)
7276
+ @PackageId = params['PackageId']
7277
+ @BindClusterIds = params['BindClusterIds']
7278
+ @UnbindClusterIds = params['UnbindClusterIds']
7279
+ end
7280
+ end
7281
+
7282
+ # ModifyResourcePackageClusters返回参数结构体
7283
+ class ModifyResourcePackageClustersResponse < TencentCloud::Common::AbstractModel
7284
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7285
+ # @type RequestId: String
7286
+
7287
+ attr_accessor :RequestId
7288
+
7289
+ def initialize(requestid=nil)
7290
+ @RequestId = requestid
7291
+ end
7292
+
7293
+ def deserialize(params)
7294
+ @RequestId = params['RequestId']
7295
+ end
7296
+ end
7297
+
7298
+ # ModifyResourcePackageName请求参数结构体
7299
+ class ModifyResourcePackageNameRequest < TencentCloud::Common::AbstractModel
7300
+ # @param PackageId: 资源包唯一ID
7301
+ # @type PackageId: String
7302
+ # @param PackageName: 自定义的资源包名称,最长支持120个字符
7303
+ # @type PackageName: String
7304
+
7305
+ attr_accessor :PackageId, :PackageName
7306
+
7307
+ def initialize(packageid=nil, packagename=nil)
7308
+ @PackageId = packageid
7309
+ @PackageName = packagename
7310
+ end
7311
+
7312
+ def deserialize(params)
7313
+ @PackageId = params['PackageId']
7314
+ @PackageName = params['PackageName']
7315
+ end
7316
+ end
7317
+
7318
+ # ModifyResourcePackageName返回参数结构体
7319
+ class ModifyResourcePackageNameResponse < TencentCloud::Common::AbstractModel
7320
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7321
+ # @type RequestId: String
7322
+
7323
+ attr_accessor :RequestId
7324
+
7325
+ def initialize(requestid=nil)
7326
+ @RequestId = requestid
7327
+ end
7328
+
7329
+ def deserialize(params)
7330
+ @RequestId = params['RequestId']
7331
+ end
7332
+ end
7333
+
6859
7334
  # ModifyVipVport请求参数结构体
6860
7335
  class ModifyVipVportRequest < TencentCloud::Common::AbstractModel
6861
7336
  # @param ClusterId: 集群id
@@ -7379,6 +7854,145 @@ module TencentCloud
7379
7854
  end
7380
7855
  end
7381
7856
 
7857
+ # 资源包
7858
+ class Package < TencentCloud::Common::AbstractModel
7859
+ # @param AppId: AppID
7860
+ # 注意:此字段可能返回 null,表示取不到有效值。
7861
+ # @type AppId: Integer
7862
+ # @param PackageId: 资源包唯一ID
7863
+ # 注意:此字段可能返回 null,表示取不到有效值。
7864
+ # @type PackageId: String
7865
+ # @param PackageName: 资源包名称
7866
+ # 注意:此字段可能返回 null,表示取不到有效值。
7867
+ # @type PackageName: String
7868
+ # @param PackageType: 资源包类型
7869
+ # CCU-计算资源包,DISK-存储资源包
7870
+ # 注意:此字段可能返回 null,表示取不到有效值。
7871
+ # @type PackageType: String
7872
+ # @param PackageRegion: 资源包使用地域
7873
+ # china-中国内地通用,overseas-港澳台及海外通用
7874
+ # 注意:此字段可能返回 null,表示取不到有效值。
7875
+ # @type PackageRegion: String
7876
+ # @param Status: 资源包状态
7877
+ # creating-创建中;
7878
+ # using-使用中;
7879
+ # expired-已过期;
7880
+ # normal_finish-使用完;
7881
+ # apply_refund-申请退费中;
7882
+ # refund-已退费。
7883
+ # 注意:此字段可能返回 null,表示取不到有效值。
7884
+ # @type Status: String
7885
+ # @param PackageTotalSpec: 资源包总量
7886
+ # 注意:此字段可能返回 null,表示取不到有效值。
7887
+ # @type PackageTotalSpec: Float
7888
+ # @param PackageUsedSpec: 资源包已使用量
7889
+ # 注意:此字段可能返回 null,表示取不到有效值。
7890
+ # @type PackageUsedSpec: Float
7891
+ # @param HasQuota: 资源包已使用量
7892
+ # 注意:此字段可能返回 null,表示取不到有效值。
7893
+ # @type HasQuota: Boolean
7894
+ # @param BindInstanceInfos: 绑定实例信息
7895
+ # 注意:此字段可能返回 null,表示取不到有效值。
7896
+ # @type BindInstanceInfos: Array
7897
+ # @param StartTime: 生效时间:2022-07-01 00:00:00
7898
+ # 注意:此字段可能返回 null,表示取不到有效值。
7899
+ # @type StartTime: String
7900
+ # @param ExpireTime: 失效时间:2022-08-01 00:00:00
7901
+ # 注意:此字段可能返回 null,表示取不到有效值。
7902
+ # @type ExpireTime: String
7903
+
7904
+ attr_accessor :AppId, :PackageId, :PackageName, :PackageType, :PackageRegion, :Status, :PackageTotalSpec, :PackageUsedSpec, :HasQuota, :BindInstanceInfos, :StartTime, :ExpireTime
7905
+
7906
+ def initialize(appid=nil, packageid=nil, packagename=nil, packagetype=nil, packageregion=nil, status=nil, packagetotalspec=nil, packageusedspec=nil, hasquota=nil, bindinstanceinfos=nil, starttime=nil, expiretime=nil)
7907
+ @AppId = appid
7908
+ @PackageId = packageid
7909
+ @PackageName = packagename
7910
+ @PackageType = packagetype
7911
+ @PackageRegion = packageregion
7912
+ @Status = status
7913
+ @PackageTotalSpec = packagetotalspec
7914
+ @PackageUsedSpec = packageusedspec
7915
+ @HasQuota = hasquota
7916
+ @BindInstanceInfos = bindinstanceinfos
7917
+ @StartTime = starttime
7918
+ @ExpireTime = expiretime
7919
+ end
7920
+
7921
+ def deserialize(params)
7922
+ @AppId = params['AppId']
7923
+ @PackageId = params['PackageId']
7924
+ @PackageName = params['PackageName']
7925
+ @PackageType = params['PackageType']
7926
+ @PackageRegion = params['PackageRegion']
7927
+ @Status = params['Status']
7928
+ @PackageTotalSpec = params['PackageTotalSpec']
7929
+ @PackageUsedSpec = params['PackageUsedSpec']
7930
+ @HasQuota = params['HasQuota']
7931
+ unless params['BindInstanceInfos'].nil?
7932
+ @BindInstanceInfos = []
7933
+ params['BindInstanceInfos'].each do |i|
7934
+ bindinstanceinfo_tmp = BindInstanceInfo.new
7935
+ bindinstanceinfo_tmp.deserialize(i)
7936
+ @BindInstanceInfos << bindinstanceinfo_tmp
7937
+ end
7938
+ end
7939
+ @StartTime = params['StartTime']
7940
+ @ExpireTime = params['ExpireTime']
7941
+ end
7942
+ end
7943
+
7944
+ # 资源包明细说明
7945
+ class PackageDetail < TencentCloud::Common::AbstractModel
7946
+ # @param AppId: AppId账户ID
7947
+ # 注意:此字段可能返回 null,表示取不到有效值。
7948
+ # @type AppId: Integer
7949
+ # @param PackageId: 资源包唯一ID
7950
+ # 注意:此字段可能返回 null,表示取不到有效值。
7951
+ # @type PackageId: String
7952
+ # @param InstanceId: 实例ID
7953
+ # 注意:此字段可能返回 null,表示取不到有效值。
7954
+ # @type InstanceId: String
7955
+ # @param SuccessDeductSpec: 成功抵扣容量
7956
+ # 注意:此字段可能返回 null,表示取不到有效值。
7957
+ # @type SuccessDeductSpec: Float
7958
+ # @param PackageTotalUsedSpec: 截止当前,资源包已使用的容量
7959
+ # 注意:此字段可能返回 null,表示取不到有效值。
7960
+ # @type PackageTotalUsedSpec: Float
7961
+ # @param StartTime: 抵扣开始时间
7962
+ # 注意:此字段可能返回 null,表示取不到有效值。
7963
+ # @type StartTime: String
7964
+ # @param EndTime: 抵扣结束时间
7965
+ # 注意:此字段可能返回 null,表示取不到有效值。
7966
+ # @type EndTime: String
7967
+ # @param ExtendInfo: 扩展信息
7968
+ # 注意:此字段可能返回 null,表示取不到有效值。
7969
+ # @type ExtendInfo: String
7970
+
7971
+ attr_accessor :AppId, :PackageId, :InstanceId, :SuccessDeductSpec, :PackageTotalUsedSpec, :StartTime, :EndTime, :ExtendInfo
7972
+
7973
+ def initialize(appid=nil, packageid=nil, instanceid=nil, successdeductspec=nil, packagetotalusedspec=nil, starttime=nil, endtime=nil, extendinfo=nil)
7974
+ @AppId = appid
7975
+ @PackageId = packageid
7976
+ @InstanceId = instanceid
7977
+ @SuccessDeductSpec = successdeductspec
7978
+ @PackageTotalUsedSpec = packagetotalusedspec
7979
+ @StartTime = starttime
7980
+ @EndTime = endtime
7981
+ @ExtendInfo = extendinfo
7982
+ end
7983
+
7984
+ def deserialize(params)
7985
+ @AppId = params['AppId']
7986
+ @PackageId = params['PackageId']
7987
+ @InstanceId = params['InstanceId']
7988
+ @SuccessDeductSpec = params['SuccessDeductSpec']
7989
+ @PackageTotalUsedSpec = params['PackageTotalUsedSpec']
7990
+ @StartTime = params['StartTime']
7991
+ @EndTime = params['EndTime']
7992
+ @ExtendInfo = params['ExtendInfo']
7993
+ end
7994
+ end
7995
+
7382
7996
  # 实例参数详细描述
7383
7997
  class ParamDetail < TencentCloud::Common::AbstractModel
7384
7998
  # @param ParamName: 参数名称
@@ -7788,6 +8402,42 @@ module TencentCloud
7788
8402
  end
7789
8403
  end
7790
8404
 
8405
+ # RefundResourcePackage请求参数结构体
8406
+ class RefundResourcePackageRequest < TencentCloud::Common::AbstractModel
8407
+ # @param PackageId: 资源包唯一ID
8408
+ # @type PackageId: String
8409
+
8410
+ attr_accessor :PackageId
8411
+
8412
+ def initialize(packageid=nil)
8413
+ @PackageId = packageid
8414
+ end
8415
+
8416
+ def deserialize(params)
8417
+ @PackageId = params['PackageId']
8418
+ end
8419
+ end
8420
+
8421
+ # RefundResourcePackage返回参数结构体
8422
+ class RefundResourcePackageResponse < TencentCloud::Common::AbstractModel
8423
+ # @param DealNames: 每个物品对应一个dealName,业务需要根据dealName保证发货接口幂等
8424
+ # @type DealNames: Array
8425
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8426
+ # @type RequestId: String
8427
+
8428
+ attr_accessor :DealNames, :RequestId
8429
+
8430
+ def initialize(dealnames=nil, requestid=nil)
8431
+ @DealNames = dealnames
8432
+ @RequestId = requestid
8433
+ end
8434
+
8435
+ def deserialize(params)
8436
+ @DealNames = params['DealNames']
8437
+ @RequestId = params['RequestId']
8438
+ end
8439
+ end
8440
+
7791
8441
  # RemoveClusterSlaveZone请求参数结构体
7792
8442
  class RemoveClusterSlaveZoneRequest < TencentCloud::Common::AbstractModel
7793
8443
  # @param ClusterId: 集群ID
@@ -7872,6 +8522,29 @@ module TencentCloud
7872
8522
  end
7873
8523
  end
7874
8524
 
8525
+ # 资源包信息
8526
+ class ResourcePackage < TencentCloud::Common::AbstractModel
8527
+ # @param PackageId: 资源包的唯一ID
8528
+ # 注意:此字段可能返回 null,表示取不到有效值。
8529
+ # @type PackageId: String
8530
+ # @param PackageType: 资源包类型:CCU:计算资源包
8531
+ # DISK:存储资源包
8532
+ # 注意:此字段可能返回 null,表示取不到有效值。
8533
+ # @type PackageType: String
8534
+
8535
+ attr_accessor :PackageId, :PackageType
8536
+
8537
+ def initialize(packageid=nil, packagetype=nil)
8538
+ @PackageId = packageid
8539
+ @PackageType = packagetype
8540
+ end
8541
+
8542
+ def deserialize(params)
8543
+ @PackageId = params['PackageId']
8544
+ @PackageType = params['PackageType']
8545
+ end
8546
+ end
8547
+
7875
8548
  # RestartInstance请求参数结构体
7876
8549
  class RestartInstanceRequest < TencentCloud::Common::AbstractModel
7877
8550
  # @param InstanceId: 实例id
@@ -8187,6 +8860,51 @@ module TencentCloud
8187
8860
  end
8188
8861
  end
8189
8862
 
8863
+ # 资源包明细说明
8864
+ class SalePackageSpec < TencentCloud::Common::AbstractModel
8865
+ # @param PackageRegion: 资源包使用地域
8866
+ # 注意:此字段可能返回 null,表示取不到有效值。
8867
+ # @type PackageRegion: String
8868
+ # @param PackageType: 资源包类型
8869
+ # CCU-计算资源包
8870
+ # DISK-存储资源包
8871
+ # 注意:此字段可能返回 null,表示取不到有效值。
8872
+ # @type PackageType: String
8873
+ # @param PackageVersion: 资源包版本
8874
+ # base-基础版本,common-通用版本,enterprise-企业版本
8875
+ # 注意:此字段可能返回 null,表示取不到有效值。
8876
+ # @type PackageVersion: String
8877
+ # @param MinPackageSpec: 当前版本资源包最小资源数,计算资源单位:个;存储资源:GB
8878
+ # 注意:此字段可能返回 null,表示取不到有效值。
8879
+ # @type MinPackageSpec: Float
8880
+ # @param MaxPackageSpec: 当前版本资源包最大资源数,计算资源单位:个;存储资源:GB
8881
+ # 注意:此字段可能返回 null,表示取不到有效值。
8882
+ # @type MaxPackageSpec: Float
8883
+ # @param ExpireDay: 资源包有效期,单位:天
8884
+ # 注意:此字段可能返回 null,表示取不到有效值。
8885
+ # @type ExpireDay: Integer
8886
+
8887
+ attr_accessor :PackageRegion, :PackageType, :PackageVersion, :MinPackageSpec, :MaxPackageSpec, :ExpireDay
8888
+
8889
+ def initialize(packageregion=nil, packagetype=nil, packageversion=nil, minpackagespec=nil, maxpackagespec=nil, expireday=nil)
8890
+ @PackageRegion = packageregion
8891
+ @PackageType = packagetype
8892
+ @PackageVersion = packageversion
8893
+ @MinPackageSpec = minpackagespec
8894
+ @MaxPackageSpec = maxpackagespec
8895
+ @ExpireDay = expireday
8896
+ end
8897
+
8898
+ def deserialize(params)
8899
+ @PackageRegion = params['PackageRegion']
8900
+ @PackageType = params['PackageType']
8901
+ @PackageVersion = params['PackageVersion']
8902
+ @MinPackageSpec = params['MinPackageSpec']
8903
+ @MaxPackageSpec = params['MaxPackageSpec']
8904
+ @ExpireDay = params['ExpireDay']
8905
+ end
8906
+ end
8907
+
8190
8908
  # 售卖地域信息
8191
8909
  class SaleRegion < TencentCloud::Common::AbstractModel
8192
8910
  # @param Region: 地域英文名
@@ -8825,6 +9543,42 @@ module TencentCloud
8825
9543
  end
8826
9544
  end
8827
9545
 
9546
+ # UnbindClusterResourcePackages请求参数结构体
9547
+ class UnbindClusterResourcePackagesRequest < TencentCloud::Common::AbstractModel
9548
+ # @param ClusterId: 集群ID
9549
+ # @type ClusterId: String
9550
+ # @param PackageIds: 资源包唯一ID,如果不传,解绑该实例绑定的所有资源包
9551
+ # @type PackageIds: Array
9552
+
9553
+ attr_accessor :ClusterId, :PackageIds
9554
+
9555
+ def initialize(clusterid=nil, packageids=nil)
9556
+ @ClusterId = clusterid
9557
+ @PackageIds = packageids
9558
+ end
9559
+
9560
+ def deserialize(params)
9561
+ @ClusterId = params['ClusterId']
9562
+ @PackageIds = params['PackageIds']
9563
+ end
9564
+ end
9565
+
9566
+ # UnbindClusterResourcePackages返回参数结构体
9567
+ class UnbindClusterResourcePackagesResponse < TencentCloud::Common::AbstractModel
9568
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
9569
+ # @type RequestId: String
9570
+
9571
+ attr_accessor :RequestId
9572
+
9573
+ def initialize(requestid=nil)
9574
+ @RequestId = requestid
9575
+ end
9576
+
9577
+ def deserialize(params)
9578
+ @RequestId = params['RequestId']
9579
+ end
9580
+ end
9581
+
8828
9582
  # UpgradeClusterVersion请求参数结构体
8829
9583
  class UpgradeClusterVersionRequest < TencentCloud::Common::AbstractModel
8830
9584
  # @param ClusterId: 集群id