DescribeDBClusterAttribute support new feature.

This commit is contained in:
sdk-team
2023-07-06 12:44:34 +00:00
parent 52bbf53aed
commit 67493d8653
7 changed files with 187 additions and 127 deletions

View File

@@ -32,6 +32,8 @@ public:
~DescribeDBClusterAttributeRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getDescribeType() const;
void setDescribeType(const std::string &describeType);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getResourceOwnerAccount() const;
@@ -45,6 +47,7 @@ public:
private:
long resourceOwnerId_;
std::string describeType_;
std::string accessKeyId_;
std::string resourceOwnerAccount_;
std::string dBClusterId_;

View File

@@ -68,102 +68,112 @@ namespace AlibabaCloud
DescribeDBClusterAttributeResult();
explicit DescribeDBClusterAttributeResult(const std::string &payload);
~DescribeDBClusterAttributeResult();
int getDeletionLock()const;
std::string getCategory()const;
std::string getResourceGroupId()const;
std::string getStoragePayType()const;
long getDataLevel1BackupChainSize()const;
std::string getDBClusterId()const;
std::string getProxyStatus()const;
std::string getDBType()const;
std::string getDBClusterNetworkType()const;
long getBlktagUsed()const;
std::string getStandbyHAMode()const;
std::string getProxyStandardCpuCores()const;
bool getIsLatestVersion()const;
long getStorageMax()const;
std::string getDBVersion()const;
std::vector<DBNode> getDBNodes()const;
std::string getFeatureHTAPSupported()const;
std::string getZoneIds()const;
long getInodeUsed()const;
std::string getMaintainTime()const;
std::vector<Tag> getTags()const;
std::string getEngine()const;
long getBlktagTotal()const;
std::string getStorageType()const;
std::string getVPCId()const;
std::string getDBClusterStatus()const;
std::string getVSwitchId()const;
std::string getDBClusterDescription()const;
std::string getExpired()const;
std::string getProxyCpuCores()const;
std::string getPayType()const;
std::string getLockMode()const;
std::string getStrictConsistency()const;
long getStorageUsed()const;
long getInodeTotal()const;
bool getIsProxyLatestVersion()const;
long getStorageSpace()const;
std::string getDBVersionStatus()const;
std::string getProxyServerlessType()const;
std::string getServerlessType()const;
std::string getCreationTime()const;
std::string getProxyType()const;
std::string getExpireTime()const;
int getDeletionLock()const;
std::string getCategory()const;
std::string getDBClusterId()const;
std::string getDeployUnit()const;
std::string getDBClusterNetworkType()const;
bool getIsLatestVersion()const;
long getStorageMax()const;
std::string getZoneIds()const;
long getInodeUsed()const;
std::string getMaintainTime()const;
long getBlktagTotal()const;
std::string getDataSyncMode()const;
std::string getDBClusterStatus()const;
std::string getProxyCpuCores()const;
std::string getStrictConsistency()const;
bool getIsProxyLatestVersion()const;
long getStorageSpace()const;
std::string getServerlessType()const;
std::string getSubCategory()const;
std::string getAiType()const;
bool getHasCompleteStandbyRes()const;
RelatedAPInstance getRelatedAPInstance()const;
long getSQLSize()const;
std::string getRegionId()const;
std::string getProxyType()const;
std::string getExpireTime()const;
protected:
void parse(const std::string &payload);
private:
int deletionLock_;
std::string category_;
std::string resourceGroupId_;
std::string storagePayType_;
long dataLevel1BackupChainSize_;
std::string dBClusterId_;
std::string proxyStatus_;
std::string dBType_;
std::string dBClusterNetworkType_;
long blktagUsed_;
std::string standbyHAMode_;
std::string proxyStandardCpuCores_;
bool isLatestVersion_;
long storageMax_;
std::string dBVersion_;
std::vector<DBNode> dBNodes_;
std::string featureHTAPSupported_;
std::string zoneIds_;
long inodeUsed_;
std::string maintainTime_;
std::vector<Tag> tags_;
std::string engine_;
long blktagTotal_;
std::string storageType_;
std::string vPCId_;
std::string dBClusterStatus_;
std::string vSwitchId_;
std::string dBClusterDescription_;
std::string expired_;
std::string proxyCpuCores_;
std::string payType_;
std::string lockMode_;
std::string strictConsistency_;
long storageUsed_;
long inodeTotal_;
bool isProxyLatestVersion_;
long storageSpace_;
std::string dBVersionStatus_;
std::string proxyServerlessType_;
std::string serverlessType_;
std::string creationTime_;
std::string proxyType_;
std::string expireTime_;
int deletionLock_;
std::string category_;
std::string dBClusterId_;
std::string deployUnit_;
std::string dBClusterNetworkType_;
bool isLatestVersion_;
long storageMax_;
std::string zoneIds_;
long inodeUsed_;
std::string maintainTime_;
long blktagTotal_;
std::string dataSyncMode_;
std::string dBClusterStatus_;
std::string proxyCpuCores_;
std::string strictConsistency_;
bool isProxyLatestVersion_;
long storageSpace_;
std::string serverlessType_;
std::string subCategory_;
std::string aiType_;
bool hasCompleteStandbyRes_;
RelatedAPInstance relatedAPInstance_;
long sQLSize_;
std::string regionId_;
std::string proxyType_;
std::string expireTime_;
};
}

View File

@@ -36,6 +36,7 @@ namespace AlibabaCloud
{
int deletionLock;
int isDeleted;
std::string category;
std::string zoneId;
std::string deletedTime;
std::string dBClusterStatus;

View File

@@ -34,6 +34,15 @@ void DescribeDBClusterAttributeRequest::setResourceOwnerId(long resourceOwnerId)
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string DescribeDBClusterAttributeRequest::getDescribeType() const {
return describeType_;
}
void DescribeDBClusterAttributeRequest::setDescribeType(const std::string &describeType) {
describeType_ = describeType;
setParameter(std::string("DescribeType"), describeType);
}
std::string DescribeDBClusterAttributeRequest::getAccessKeyId() const {
return accessKeyId_;
}

View File

@@ -112,6 +112,12 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload)
dBClusterNetworkType_ = value["DBClusterNetworkType"].asString();
if(!value["IsLatestVersion"].isNull())
isLatestVersion_ = value["IsLatestVersion"].asString() == "true";
if(!value["HasCompleteStandbyRes"].isNull())
hasCompleteStandbyRes_ = value["HasCompleteStandbyRes"].asString() == "true";
if(!value["DataSyncMode"].isNull())
dataSyncMode_ = value["DataSyncMode"].asString();
if(!value["StandbyHAMode"].isNull())
standbyHAMode_ = value["StandbyHAMode"].asString();
if(!value["StorageMax"].isNull())
storageMax_ = std::stol(value["StorageMax"].asString());
if(!value["DBVersion"].isNull())
@@ -162,6 +168,8 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload)
expireTime_ = value["ExpireTime"].asString();
if(!value["SubCategory"].isNull())
subCategory_ = value["SubCategory"].asString();
if(!value["DeployUnit"].isNull())
deployUnit_ = value["DeployUnit"].asString();
if(!value["IsProxyLatestVersion"].isNull())
isProxyLatestVersion_ = value["IsProxyLatestVersion"].asString() == "true";
if(!value["StorageType"].isNull())
@@ -182,19 +190,11 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload)
featureHTAPSupported_ = value["FeatureHTAPSupported"].asString();
if(!value["ProxyServerlessType"].isNull())
proxyServerlessType_ = value["ProxyServerlessType"].asString();
if(!value["AiType"].isNull())
aiType_ = value["AiType"].asString();
}
int DescribeDBClusterAttributeResult::getDeletionLock()const
{
return deletionLock_;
}
std::string DescribeDBClusterAttributeResult::getCategory()const
{
return category_;
}
std::string DescribeDBClusterAttributeResult::getResourceGroupId()const
{
return resourceGroupId_;
@@ -210,11 +210,6 @@ long DescribeDBClusterAttributeResult::getDataLevel1BackupChainSize()const
return dataLevel1BackupChainSize_;
}
std::string DescribeDBClusterAttributeResult::getDBClusterId()const
{
return dBClusterId_;
}
std::string DescribeDBClusterAttributeResult::getProxyStatus()const
{
return proxyStatus_;
@@ -225,31 +220,21 @@ std::string DescribeDBClusterAttributeResult::getDBType()const
return dBType_;
}
std::string DescribeDBClusterAttributeResult::getDBClusterNetworkType()const
{
return dBClusterNetworkType_;
}
long DescribeDBClusterAttributeResult::getBlktagUsed()const
{
return blktagUsed_;
}
std::string DescribeDBClusterAttributeResult::getStandbyHAMode()const
{
return standbyHAMode_;
}
std::string DescribeDBClusterAttributeResult::getProxyStandardCpuCores()const
{
return proxyStandardCpuCores_;
}
bool DescribeDBClusterAttributeResult::getIsLatestVersion()const
{
return isLatestVersion_;
}
long DescribeDBClusterAttributeResult::getStorageMax()const
{
return storageMax_;
}
std::string DescribeDBClusterAttributeResult::getDBVersion()const
{
return dBVersion_;
@@ -265,21 +250,6 @@ std::string DescribeDBClusterAttributeResult::getFeatureHTAPSupported()const
return featureHTAPSupported_;
}
std::string DescribeDBClusterAttributeResult::getZoneIds()const
{
return zoneIds_;
}
long DescribeDBClusterAttributeResult::getInodeUsed()const
{
return inodeUsed_;
}
std::string DescribeDBClusterAttributeResult::getMaintainTime()const
{
return maintainTime_;
}
std::vector<DescribeDBClusterAttributeResult::Tag> DescribeDBClusterAttributeResult::getTags()const
{
return tags_;
@@ -290,11 +260,6 @@ std::string DescribeDBClusterAttributeResult::getEngine()const
return engine_;
}
long DescribeDBClusterAttributeResult::getBlktagTotal()const
{
return blktagTotal_;
}
std::string DescribeDBClusterAttributeResult::getStorageType()const
{
return storageType_;
@@ -305,11 +270,6 @@ std::string DescribeDBClusterAttributeResult::getVPCId()const
return vPCId_;
}
std::string DescribeDBClusterAttributeResult::getDBClusterStatus()const
{
return dBClusterStatus_;
}
std::string DescribeDBClusterAttributeResult::getVSwitchId()const
{
return vSwitchId_;
@@ -325,11 +285,6 @@ std::string DescribeDBClusterAttributeResult::getExpired()const
return expired_;
}
std::string DescribeDBClusterAttributeResult::getProxyCpuCores()const
{
return proxyCpuCores_;
}
std::string DescribeDBClusterAttributeResult::getPayType()const
{
return payType_;
@@ -340,11 +295,6 @@ std::string DescribeDBClusterAttributeResult::getLockMode()const
return lockMode_;
}
std::string DescribeDBClusterAttributeResult::getStrictConsistency()const
{
return strictConsistency_;
}
long DescribeDBClusterAttributeResult::getStorageUsed()const
{
return storageUsed_;
@@ -355,16 +305,6 @@ long DescribeDBClusterAttributeResult::getInodeTotal()const
return inodeTotal_;
}
bool DescribeDBClusterAttributeResult::getIsProxyLatestVersion()const
{
return isProxyLatestVersion_;
}
long DescribeDBClusterAttributeResult::getStorageSpace()const
{
return storageSpace_;
}
std::string DescribeDBClusterAttributeResult::getDBVersionStatus()const
{
return dBVersionStatus_;
@@ -375,21 +315,126 @@ std::string DescribeDBClusterAttributeResult::getProxyServerlessType()const
return proxyServerlessType_;
}
std::string DescribeDBClusterAttributeResult::getServerlessType()const
{
return serverlessType_;
}
std::string DescribeDBClusterAttributeResult::getCreationTime()const
{
return creationTime_;
}
std::string DescribeDBClusterAttributeResult::getProxyType()const
{
return proxyType_;
}
std::string DescribeDBClusterAttributeResult::getExpireTime()const
{
return expireTime_;
}
int DescribeDBClusterAttributeResult::getDeletionLock()const
{
return deletionLock_;
}
std::string DescribeDBClusterAttributeResult::getCategory()const
{
return category_;
}
std::string DescribeDBClusterAttributeResult::getDBClusterId()const
{
return dBClusterId_;
}
std::string DescribeDBClusterAttributeResult::getDeployUnit()const
{
return deployUnit_;
}
std::string DescribeDBClusterAttributeResult::getDBClusterNetworkType()const
{
return dBClusterNetworkType_;
}
bool DescribeDBClusterAttributeResult::getIsLatestVersion()const
{
return isLatestVersion_;
}
long DescribeDBClusterAttributeResult::getStorageMax()const
{
return storageMax_;
}
std::string DescribeDBClusterAttributeResult::getZoneIds()const
{
return zoneIds_;
}
long DescribeDBClusterAttributeResult::getInodeUsed()const
{
return inodeUsed_;
}
std::string DescribeDBClusterAttributeResult::getMaintainTime()const
{
return maintainTime_;
}
long DescribeDBClusterAttributeResult::getBlktagTotal()const
{
return blktagTotal_;
}
std::string DescribeDBClusterAttributeResult::getDataSyncMode()const
{
return dataSyncMode_;
}
std::string DescribeDBClusterAttributeResult::getDBClusterStatus()const
{
return dBClusterStatus_;
}
std::string DescribeDBClusterAttributeResult::getProxyCpuCores()const
{
return proxyCpuCores_;
}
std::string DescribeDBClusterAttributeResult::getStrictConsistency()const
{
return strictConsistency_;
}
bool DescribeDBClusterAttributeResult::getIsProxyLatestVersion()const
{
return isProxyLatestVersion_;
}
long DescribeDBClusterAttributeResult::getStorageSpace()const
{
return storageSpace_;
}
std::string DescribeDBClusterAttributeResult::getServerlessType()const
{
return serverlessType_;
}
std::string DescribeDBClusterAttributeResult::getSubCategory()const
{
return subCategory_;
}
std::string DescribeDBClusterAttributeResult::getAiType()const
{
return aiType_;
}
bool DescribeDBClusterAttributeResult::getHasCompleteStandbyRes()const
{
return hasCompleteStandbyRes_;
}
DescribeDBClusterAttributeResult::RelatedAPInstance DescribeDBClusterAttributeResult::getRelatedAPInstance()const
{
return relatedAPInstance_;
@@ -405,13 +450,3 @@ std::string DescribeDBClusterAttributeResult::getRegionId()const
return regionId_;
}
std::string DescribeDBClusterAttributeResult::getProxyType()const
{
return proxyType_;
}
std::string DescribeDBClusterAttributeResult::getExpireTime()const
{
return expireTime_;
}

View File

@@ -81,6 +81,8 @@ void DescribeDBClustersWithBackupsResult::parse(const std::string &payload)
itemsObject.zoneId = valueItemsDBCluster["ZoneId"].asString();
if(!valueItemsDBCluster["Engine"].isNull())
itemsObject.engine = valueItemsDBCluster["Engine"].asString();
if(!valueItemsDBCluster["Category"].isNull())
itemsObject.category = valueItemsDBCluster["Category"].asString();
items_.push_back(itemsObject);
}
if(!value["PageNumber"].isNull())