Support new feature.

This commit is contained in:
sdk-team
2023-09-07 01:28:52 +00:00
parent 830b92f2f9
commit b43e953ab1
11 changed files with 132 additions and 36 deletions

View File

@@ -80,6 +80,8 @@ public:
void setStoragePayType(const std::string &storagePayType);
std::string getZoneId() const;
void setZoneId(const std::string &zoneId);
std::string getStorageAutoScale() const;
void setStorageAutoScale(const std::string &storageAutoScale);
bool getTDEStatus() const;
void setTDEStatus(bool tDEStatus);
std::string getAllowShutDown() const;
@@ -122,6 +124,8 @@ public:
void setUsedTime(const std::string &usedTime);
int getDBNodeNum() const;
void setDBNodeNum(int dBNodeNum);
long getStorageUpperBound() const;
void setStorageUpperBound(long storageUpperBound);
std::string getVPCId() const;
void setVPCId(const std::string &vPCId);
std::string getScaleRoNumMin() const;
@@ -165,6 +169,7 @@ private:
std::string hotStandbyCluster_;
std::string storagePayType_;
std::string zoneId_;
std::string storageAutoScale_;
bool tDEStatus_;
std::string allowShutDown_;
std::string lowerCaseTableNames_;
@@ -186,6 +191,7 @@ private:
std::string looseXEngineUseMemoryPct_;
std::string usedTime_;
int dBNodeNum_;
long storageUpperBound_;
std::string vPCId_;
std::string scaleRoNumMin_;
std::string dBType_;

View File

@@ -37,6 +37,8 @@ namespace AlibabaCloud
std::string totalAPNodes;
std::string classCode;
std::string ossStorageUsed;
float storageUsedMB;
std::string aPNodeStatus;
std::string name;
};
struct DBNode
@@ -69,6 +71,7 @@ namespace AlibabaCloud
explicit DescribeDBClusterAttributeResult(const std::string &payload);
~DescribeDBClusterAttributeResult();
std::string getResourceGroupId()const;
long getCompressStorageUsed()const;
std::string getStoragePayType()const;
long getDataLevel1BackupChainSize()const;
std::string getProxyStatus()const;
@@ -90,6 +93,7 @@ namespace AlibabaCloud
std::string getLockMode()const;
long getStorageUsed()const;
long getInodeTotal()const;
std::string getCompressStorageMode()const;
std::string getDBVersionStatus()const;
std::string getProxyServerlessType()const;
std::string getCreationTime()const;
@@ -124,6 +128,7 @@ namespace AlibabaCloud
void parse(const std::string &payload);
private:
std::string resourceGroupId_;
long compressStorageUsed_;
std::string storagePayType_;
long dataLevel1BackupChainSize_;
std::string proxyStatus_;
@@ -145,6 +150,7 @@ namespace AlibabaCloud
std::string lockMode_;
long storageUsed_;
long inodeTotal_;
std::string compressStorageMode_;
std::string dBVersionStatus_;
std::string proxyServerlessType_;
std::string creationTime_;

View File

@@ -44,34 +44,36 @@ namespace AlibabaCloud
DescribeDBClusterVersionResult();
explicit DescribeDBClusterVersionResult(const std::string &payload);
~DescribeDBClusterVersionResult();
std::string getDBRevisionVersion()const;
std::string getProxyLatestVersionAfterDBEngineUpgraded()const;
std::string getDBClusterId()const;
std::string getProxyRevisionVersion()const;
std::string getDBLatestVersion()const;
std::string getProxyLatestVersion()const;
std::string getProxyVersionStatus()const;
std::string getIsLatestVersion()const;
std::string getIsProxyLatestVersion()const;
std::string getDBVersion()const;
std::string getDBRevisionVersion()const;
std::string getDBVersionStatus()const;
std::string getDBClusterId()const;
std::string getProxyRevisionVersion()const;
std::string getDBLatestVersion()const;
std::string getDBMinorVersion()const;
std::vector<DBRevisionVersionListItem> getDBRevisionVersionList()const;
std::string getProxyLatestVersion()const;
protected:
void parse(const std::string &payload);
private:
std::string dBRevisionVersion_;
std::string proxyLatestVersionAfterDBEngineUpgraded_;
std::string dBClusterId_;
std::string proxyRevisionVersion_;
std::string dBLatestVersion_;
std::string proxyLatestVersion_;
std::string proxyVersionStatus_;
std::string isLatestVersion_;
std::string isProxyLatestVersion_;
std::string dBVersion_;
std::string dBRevisionVersion_;
std::string dBVersionStatus_;
std::string dBClusterId_;
std::string proxyRevisionVersion_;
std::string dBLatestVersion_;
std::string dBMinorVersion_;
std::vector<DBRevisionVersionListItem> dBRevisionVersionList_;
std::string proxyLatestVersion_;
};
}

View File

@@ -53,6 +53,7 @@ namespace AlibabaCloud
int deletionLock;
std::string category;
std::string resourceGroupId;
long compressStorageUsed;
std::string storagePayType;
std::string dBClusterId;
std::string dBType;

View File

@@ -46,6 +46,12 @@ public:
void setFaultSimulateMode(const std::string &faultSimulateMode);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getCompressStorage() const;
void setCompressStorage(const std::string &compressStorage);
long getStorageUpperBound() const;
void setStorageUpperBound(long storageUpperBound);
std::string getStorageAutoScale() const;
void setStorageAutoScale(const std::string &storageAutoScale);
std::string getDataSyncMode() const;
void setDataSyncMode(const std::string &dataSyncMode);
@@ -58,6 +64,9 @@ private:
std::string ownerAccount_;
std::string faultSimulateMode_;
long ownerId_;
std::string compressStorage_;
long storageUpperBound_;
std::string storageAutoScale_;
std::string dataSyncMode_;
};
} // namespace Model

View File

@@ -237,6 +237,15 @@ void CreateDBClusterRequest::setZoneId(const std::string &zoneId) {
setParameter(std::string("ZoneId"), zoneId);
}
std::string CreateDBClusterRequest::getStorageAutoScale() const {
return storageAutoScale_;
}
void CreateDBClusterRequest::setStorageAutoScale(const std::string &storageAutoScale) {
storageAutoScale_ = storageAutoScale;
setParameter(std::string("StorageAutoScale"), storageAutoScale);
}
bool CreateDBClusterRequest::getTDEStatus() const {
return tDEStatus_;
}
@@ -426,6 +435,15 @@ void CreateDBClusterRequest::setDBNodeNum(int dBNodeNum) {
setParameter(std::string("DBNodeNum"), std::to_string(dBNodeNum));
}
long CreateDBClusterRequest::getStorageUpperBound() const {
return storageUpperBound_;
}
void CreateDBClusterRequest::setStorageUpperBound(long storageUpperBound) {
storageUpperBound_ = storageUpperBound;
setParameter(std::string("StorageUpperBound"), std::to_string(storageUpperBound));
}
std::string CreateDBClusterRequest::getVPCId() const {
return vPCId_;
}

View File

@@ -96,6 +96,10 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload)
relatedAPInstance_.ossStorageUsed = relatedAPInstanceNode["OssStorageUsed"].asString();
if(!relatedAPInstanceNode["TotalAPNodes"].isNull())
relatedAPInstance_.totalAPNodes = relatedAPInstanceNode["TotalAPNodes"].asString();
if(!relatedAPInstanceNode["StorageUsedMB"].isNull())
relatedAPInstance_.storageUsedMB = std::stof(relatedAPInstanceNode["StorageUsedMB"].asString());
if(!relatedAPInstanceNode["APNodeStatus"].isNull())
relatedAPInstance_.aPNodeStatus = relatedAPInstanceNode["APNodeStatus"].asString();
if(!value["DeletionLock"].isNull())
deletionLock_ = std::stoi(value["DeletionLock"].asString());
if(!value["Category"].isNull())
@@ -118,6 +122,8 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload)
dataSyncMode_ = value["DataSyncMode"].asString();
if(!value["StandbyHAMode"].isNull())
standbyHAMode_ = value["StandbyHAMode"].asString();
if(!value["CompressStorageMode"].isNull())
compressStorageMode_ = value["CompressStorageMode"].asString();
if(!value["StorageMax"].isNull())
storageMax_ = std::stol(value["StorageMax"].asString());
if(!value["DBVersion"].isNull())
@@ -146,6 +152,8 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload)
lockMode_ = value["LockMode"].asString();
if(!value["StorageUsed"].isNull())
storageUsed_ = std::stol(value["StorageUsed"].asString());
if(!value["CompressStorageUsed"].isNull())
compressStorageUsed_ = std::stol(value["CompressStorageUsed"].asString());
if(!value["StorageSpace"].isNull())
storageSpace_ = std::stol(value["StorageSpace"].asString());
if(!value["DBVersionStatus"].isNull())
@@ -200,6 +208,11 @@ std::string DescribeDBClusterAttributeResult::getResourceGroupId()const
return resourceGroupId_;
}
long DescribeDBClusterAttributeResult::getCompressStorageUsed()const
{
return compressStorageUsed_;
}
std::string DescribeDBClusterAttributeResult::getStoragePayType()const
{
return storagePayType_;
@@ -305,6 +318,11 @@ long DescribeDBClusterAttributeResult::getInodeTotal()const
return inodeTotal_;
}
std::string DescribeDBClusterAttributeResult::getCompressStorageMode()const
{
return compressStorageMode_;
}
std::string DescribeDBClusterAttributeResult::getDBVersionStatus()const
{
return dBVersionStatus_;

View File

@@ -75,9 +75,41 @@ void DescribeDBClusterVersionResult::parse(const std::string &payload)
proxyLatestVersion_ = value["ProxyLatestVersion"].asString();
if(!value["DBLatestVersion"].isNull())
dBLatestVersion_ = value["DBLatestVersion"].asString();
if(!value["ProxyLatestVersionAfterDBEngineUpgraded"].isNull())
proxyLatestVersionAfterDBEngineUpgraded_ = value["ProxyLatestVersionAfterDBEngineUpgraded"].asString();
}
std::string DescribeDBClusterVersionResult::getDBRevisionVersion()const
{
return dBRevisionVersion_;
}
std::string DescribeDBClusterVersionResult::getProxyLatestVersionAfterDBEngineUpgraded()const
{
return proxyLatestVersionAfterDBEngineUpgraded_;
}
std::string DescribeDBClusterVersionResult::getDBClusterId()const
{
return dBClusterId_;
}
std::string DescribeDBClusterVersionResult::getProxyRevisionVersion()const
{
return proxyRevisionVersion_;
}
std::string DescribeDBClusterVersionResult::getDBLatestVersion()const
{
return dBLatestVersion_;
}
std::string DescribeDBClusterVersionResult::getProxyLatestVersion()const
{
return proxyLatestVersion_;
}
std::string DescribeDBClusterVersionResult::getProxyVersionStatus()const
{
return proxyVersionStatus_;
@@ -98,31 +130,11 @@ std::string DescribeDBClusterVersionResult::getDBVersion()const
return dBVersion_;
}
std::string DescribeDBClusterVersionResult::getDBRevisionVersion()const
{
return dBRevisionVersion_;
}
std::string DescribeDBClusterVersionResult::getDBVersionStatus()const
{
return dBVersionStatus_;
}
std::string DescribeDBClusterVersionResult::getDBClusterId()const
{
return dBClusterId_;
}
std::string DescribeDBClusterVersionResult::getProxyRevisionVersion()const
{
return proxyRevisionVersion_;
}
std::string DescribeDBClusterVersionResult::getDBLatestVersion()const
{
return dBLatestVersion_;
}
std::string DescribeDBClusterVersionResult::getDBMinorVersion()const
{
return dBMinorVersion_;
@@ -133,8 +145,3 @@ std::vector<DescribeDBClusterVersionResult::DBRevisionVersionListItem> DescribeD
return dBRevisionVersionList_;
}
std::string DescribeDBClusterVersionResult::getProxyLatestVersion()const
{
return proxyLatestVersion_;
}

View File

@@ -83,6 +83,8 @@ void DescribeDBClustersResult::parse(const std::string &payload)
itemsObject.resourceGroupId = valueItemsDBCluster["ResourceGroupId"].asString();
if(!valueItemsDBCluster["StorageUsed"].isNull())
itemsObject.storageUsed = std::stol(valueItemsDBCluster["StorageUsed"].asString());
if(!valueItemsDBCluster["CompressStorageUsed"].isNull())
itemsObject.compressStorageUsed = std::stol(valueItemsDBCluster["CompressStorageUsed"].asString());
if(!valueItemsDBCluster["StorageSpace"].isNull())
itemsObject.storageSpace = std::stol(valueItemsDBCluster["StorageSpace"].asString());
if(!valueItemsDBCluster["DBClusterNetworkType"].isNull())

View File

@@ -97,6 +97,33 @@ void ModifyDBClusterRequest::setOwnerId(long ownerId) {
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string ModifyDBClusterRequest::getCompressStorage() const {
return compressStorage_;
}
void ModifyDBClusterRequest::setCompressStorage(const std::string &compressStorage) {
compressStorage_ = compressStorage;
setParameter(std::string("CompressStorage"), compressStorage);
}
long ModifyDBClusterRequest::getStorageUpperBound() const {
return storageUpperBound_;
}
void ModifyDBClusterRequest::setStorageUpperBound(long storageUpperBound) {
storageUpperBound_ = storageUpperBound;
setParameter(std::string("StorageUpperBound"), std::to_string(storageUpperBound));
}
std::string ModifyDBClusterRequest::getStorageAutoScale() const {
return storageAutoScale_;
}
void ModifyDBClusterRequest::setStorageAutoScale(const std::string &storageAutoScale) {
storageAutoScale_ = storageAutoScale;
setParameter(std::string("StorageAutoScale"), storageAutoScale);
}
std::string ModifyDBClusterRequest::getDataSyncMode() const {
return dataSyncMode_;
}