Supported EncryptNewTables for ModifyDBClusterTDE.
This commit is contained in:
@@ -44,11 +44,13 @@ namespace AlibabaCloud
|
||||
DescribeDBClusterSSLResult();
|
||||
explicit DescribeDBClusterSSLResult(const std::string &payload);
|
||||
~DescribeDBClusterSSLResult();
|
||||
std::string getSSLAutoRotate()const;
|
||||
std::vector<Item> getItems()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string sSLAutoRotate_;
|
||||
std::vector<Item> items_;
|
||||
|
||||
};
|
||||
|
||||
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
||||
explicit DescribeDBClusterTDEResult(const std::string &payload);
|
||||
~DescribeDBClusterTDEResult();
|
||||
std::string getTDEStatus()const;
|
||||
std::string getEncryptNewTables()const;
|
||||
std::string getDBClusterId()const;
|
||||
std::string getEncryptionKey()const;
|
||||
|
||||
@@ -45,6 +46,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string tDEStatus_;
|
||||
std::string encryptNewTables_;
|
||||
std::string dBClusterId_;
|
||||
std::string encryptionKey_;
|
||||
|
||||
|
||||
@@ -34,6 +34,11 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct DBCluster
|
||||
{
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct DBNode
|
||||
{
|
||||
std::string zoneId;
|
||||
@@ -42,27 +47,22 @@ namespace AlibabaCloud
|
||||
std::string regionId;
|
||||
std::string dBNodeClass;
|
||||
};
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
int deletionLock;
|
||||
std::string zoneId;
|
||||
std::string resourceGroupId;
|
||||
std::string zoneId;
|
||||
std::string dBClusterStatus;
|
||||
std::string createTime;
|
||||
std::string dBClusterId;
|
||||
std::string dBClusterDescription;
|
||||
std::string expired;
|
||||
std::string payType;
|
||||
std::string dBClusterNetworkType;
|
||||
std::string dBType;
|
||||
std::string lockMode;
|
||||
std::string dBClusterNetworkType;
|
||||
std::string dBNodeClass;
|
||||
long storageUsed;
|
||||
std::string dBVersion;
|
||||
int dBNodeNumber;
|
||||
std::string dBVersion;
|
||||
std::string vpcId;
|
||||
std::vector<DBCluster::DBNode> dBNodes;
|
||||
std::string regionId;
|
||||
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
void setDBEndpointId(const std::string& dBEndpointId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSSLAutoRotate()const;
|
||||
void setSSLAutoRotate(const std::string& sSLAutoRotate);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDBClusterId()const;
|
||||
@@ -58,6 +60,7 @@ namespace AlibabaCloud
|
||||
long resourceOwnerId_;
|
||||
std::string dBEndpointId_;
|
||||
std::string accessKeyId_;
|
||||
std::string sSLAutoRotate_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
|
||||
@@ -51,6 +51,8 @@ namespace AlibabaCloud
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getRoleArn()const;
|
||||
void setRoleArn(const std::string& roleArn);
|
||||
std::string getEncryptNewTables()const;
|
||||
void setEncryptNewTables(const std::string& encryptNewTables);
|
||||
std::string getTDEStatus()const;
|
||||
void setTDEStatus(const std::string& tDEStatus);
|
||||
|
||||
@@ -63,6 +65,7 @@ namespace AlibabaCloud
|
||||
std::string encryptionKey_;
|
||||
long ownerId_;
|
||||
std::string roleArn_;
|
||||
std::string encryptNewTables_;
|
||||
std::string tDEStatus_;
|
||||
|
||||
};
|
||||
|
||||
@@ -43,19 +43,26 @@ void DescribeDBClusterSSLResult::parse(const std::string &payload)
|
||||
for (auto valueItemsItem : allItemsNode)
|
||||
{
|
||||
Item itemsObject;
|
||||
if(!valueItemsItem["DBEndpointId"].isNull())
|
||||
itemsObject.dBEndpointId = valueItemsItem["DBEndpointId"].asString();
|
||||
if(!valueItemsItem["SSLExpireTime"].isNull())
|
||||
itemsObject.sSLExpireTime = valueItemsItem["SSLExpireTime"].asString();
|
||||
if(!valueItemsItem["SSLEnabled"].isNull())
|
||||
itemsObject.sSLEnabled = valueItemsItem["SSLEnabled"].asString();
|
||||
if(!valueItemsItem["SSLConnectionString"].isNull())
|
||||
itemsObject.sSLConnectionString = valueItemsItem["SSLConnectionString"].asString();
|
||||
if(!valueItemsItem["SSLExpireTime"].isNull())
|
||||
itemsObject.sSLExpireTime = valueItemsItem["SSLExpireTime"].asString();
|
||||
if(!valueItemsItem["DBEndpointId"].isNull())
|
||||
itemsObject.dBEndpointId = valueItemsItem["DBEndpointId"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["SSLAutoRotate"].isNull())
|
||||
sSLAutoRotate_ = value["SSLAutoRotate"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterSSLResult::getSSLAutoRotate()const
|
||||
{
|
||||
return sSLAutoRotate_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDBClusterSSLResult::Item> DescribeDBClusterSSLResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
|
||||
@@ -39,12 +39,14 @@ void DescribeDBClusterTDEResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
if(!value["TDEStatus"].isNull())
|
||||
tDEStatus_ = value["TDEStatus"].asString();
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
if(!value["EncryptionKey"].isNull())
|
||||
encryptionKey_ = value["EncryptionKey"].asString();
|
||||
if(!value["EncryptNewTables"].isNull())
|
||||
encryptNewTables_ = value["EncryptNewTables"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -53,6 +55,11 @@ std::string DescribeDBClusterTDEResult::getTDEStatus()const
|
||||
return tDEStatus_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterTDEResult::getEncryptNewTables()const
|
||||
{
|
||||
return encryptNewTables_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterTDEResult::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
|
||||
@@ -43,62 +43,46 @@ void DescribeDBClustersResult::parse(const std::string &payload)
|
||||
for (auto valueItemsDBCluster : allItemsNode)
|
||||
{
|
||||
DBCluster itemsObject;
|
||||
if(!valueItemsDBCluster["DBClusterId"].isNull())
|
||||
itemsObject.dBClusterId = valueItemsDBCluster["DBClusterId"].asString();
|
||||
if(!valueItemsDBCluster["DBClusterDescription"].isNull())
|
||||
itemsObject.dBClusterDescription = valueItemsDBCluster["DBClusterDescription"].asString();
|
||||
if(!valueItemsDBCluster["PayType"].isNull())
|
||||
itemsObject.payType = valueItemsDBCluster["PayType"].asString();
|
||||
if(!valueItemsDBCluster["DBClusterNetworkType"].isNull())
|
||||
itemsObject.dBClusterNetworkType = valueItemsDBCluster["DBClusterNetworkType"].asString();
|
||||
if(!valueItemsDBCluster["RegionId"].isNull())
|
||||
itemsObject.regionId = valueItemsDBCluster["RegionId"].asString();
|
||||
if(!valueItemsDBCluster["ZoneId"].isNull())
|
||||
itemsObject.zoneId = valueItemsDBCluster["ZoneId"].asString();
|
||||
if(!valueItemsDBCluster["VpcId"].isNull())
|
||||
itemsObject.vpcId = valueItemsDBCluster["VpcId"].asString();
|
||||
if(!valueItemsDBCluster["ExpireTime"].isNull())
|
||||
itemsObject.expireTime = valueItemsDBCluster["ExpireTime"].asString();
|
||||
if(!valueItemsDBCluster["Expired"].isNull())
|
||||
itemsObject.expired = valueItemsDBCluster["Expired"].asString();
|
||||
if(!valueItemsDBCluster["DBClusterStatus"].isNull())
|
||||
itemsObject.dBClusterStatus = valueItemsDBCluster["DBClusterStatus"].asString();
|
||||
if(!valueItemsDBCluster["Engine"].isNull())
|
||||
itemsObject.engine = valueItemsDBCluster["Engine"].asString();
|
||||
if(!valueItemsDBCluster["DBType"].isNull())
|
||||
itemsObject.dBType = valueItemsDBCluster["DBType"].asString();
|
||||
if(!valueItemsDBCluster["DBVersion"].isNull())
|
||||
itemsObject.dBVersion = valueItemsDBCluster["DBVersion"].asString();
|
||||
if(!valueItemsDBCluster["LockMode"].isNull())
|
||||
itemsObject.lockMode = valueItemsDBCluster["LockMode"].asString();
|
||||
if(!valueItemsDBCluster["DeletionLock"].isNull())
|
||||
itemsObject.deletionLock = std::stoi(valueItemsDBCluster["DeletionLock"].asString());
|
||||
if(!valueItemsDBCluster["CreateTime"].isNull())
|
||||
itemsObject.createTime = valueItemsDBCluster["CreateTime"].asString();
|
||||
if(!valueItemsDBCluster["VpcId"].isNull())
|
||||
itemsObject.vpcId = valueItemsDBCluster["VpcId"].asString();
|
||||
if(!valueItemsDBCluster["DBNodeNumber"].isNull())
|
||||
itemsObject.dBNodeNumber = std::stoi(valueItemsDBCluster["DBNodeNumber"].asString());
|
||||
if(!valueItemsDBCluster["CreateTime"].isNull())
|
||||
itemsObject.createTime = valueItemsDBCluster["CreateTime"].asString();
|
||||
if(!valueItemsDBCluster["PayType"].isNull())
|
||||
itemsObject.payType = valueItemsDBCluster["PayType"].asString();
|
||||
if(!valueItemsDBCluster["DBNodeClass"].isNull())
|
||||
itemsObject.dBNodeClass = valueItemsDBCluster["DBNodeClass"].asString();
|
||||
if(!valueItemsDBCluster["StorageUsed"].isNull())
|
||||
itemsObject.storageUsed = std::stol(valueItemsDBCluster["StorageUsed"].asString());
|
||||
if(!valueItemsDBCluster["DBType"].isNull())
|
||||
itemsObject.dBType = valueItemsDBCluster["DBType"].asString();
|
||||
if(!valueItemsDBCluster["LockMode"].isNull())
|
||||
itemsObject.lockMode = valueItemsDBCluster["LockMode"].asString();
|
||||
if(!valueItemsDBCluster["RegionId"].isNull())
|
||||
itemsObject.regionId = valueItemsDBCluster["RegionId"].asString();
|
||||
if(!valueItemsDBCluster["DeletionLock"].isNull())
|
||||
itemsObject.deletionLock = std::stoi(valueItemsDBCluster["DeletionLock"].asString());
|
||||
if(!valueItemsDBCluster["DBVersion"].isNull())
|
||||
itemsObject.dBVersion = valueItemsDBCluster["DBVersion"].asString();
|
||||
if(!valueItemsDBCluster["DBClusterId"].isNull())
|
||||
itemsObject.dBClusterId = valueItemsDBCluster["DBClusterId"].asString();
|
||||
if(!valueItemsDBCluster["DBClusterStatus"].isNull())
|
||||
itemsObject.dBClusterStatus = valueItemsDBCluster["DBClusterStatus"].asString();
|
||||
if(!valueItemsDBCluster["ResourceGroupId"].isNull())
|
||||
itemsObject.resourceGroupId = valueItemsDBCluster["ResourceGroupId"].asString();
|
||||
auto allDBNodesNode = valueItemsDBCluster["DBNodes"]["DBNode"];
|
||||
for (auto valueItemsDBClusterDBNodesDBNode : allDBNodesNode)
|
||||
{
|
||||
DBCluster::DBNode dBNodesObject;
|
||||
if(!valueItemsDBClusterDBNodesDBNode["DBNodeId"].isNull())
|
||||
dBNodesObject.dBNodeId = valueItemsDBClusterDBNodesDBNode["DBNodeId"].asString();
|
||||
if(!valueItemsDBClusterDBNodesDBNode["DBNodeClass"].isNull())
|
||||
dBNodesObject.dBNodeClass = valueItemsDBClusterDBNodesDBNode["DBNodeClass"].asString();
|
||||
if(!valueItemsDBClusterDBNodesDBNode["DBNodeRole"].isNull())
|
||||
dBNodesObject.dBNodeRole = valueItemsDBClusterDBNodesDBNode["DBNodeRole"].asString();
|
||||
if(!valueItemsDBClusterDBNodesDBNode["RegionId"].isNull())
|
||||
dBNodesObject.regionId = valueItemsDBClusterDBNodesDBNode["RegionId"].asString();
|
||||
if(!valueItemsDBClusterDBNodesDBNode["ZoneId"].isNull())
|
||||
dBNodesObject.zoneId = valueItemsDBClusterDBNodesDBNode["ZoneId"].asString();
|
||||
itemsObject.dBNodes.push_back(dBNodesObject);
|
||||
}
|
||||
if(!valueItemsDBCluster["StorageUsed"].isNull())
|
||||
itemsObject.storageUsed = std::stol(valueItemsDBCluster["StorageUsed"].asString());
|
||||
if(!valueItemsDBCluster["DBClusterNetworkType"].isNull())
|
||||
itemsObject.dBClusterNetworkType = valueItemsDBCluster["DBClusterNetworkType"].asString();
|
||||
if(!valueItemsDBCluster["DBClusterDescription"].isNull())
|
||||
itemsObject.dBClusterDescription = valueItemsDBCluster["DBClusterDescription"].asString();
|
||||
if(!valueItemsDBCluster["ZoneId"].isNull())
|
||||
itemsObject.zoneId = valueItemsDBCluster["ZoneId"].asString();
|
||||
if(!valueItemsDBCluster["Engine"].isNull())
|
||||
itemsObject.engine = valueItemsDBCluster["Engine"].asString();
|
||||
auto allTagsNode = valueItemsDBCluster["Tags"]["Tag"];
|
||||
for (auto valueItemsDBClusterTagsTag : allTagsNode)
|
||||
{
|
||||
@@ -109,14 +93,30 @@ void DescribeDBClustersResult::parse(const std::string &payload)
|
||||
tagsObject.value = valueItemsDBClusterTagsTag["Value"].asString();
|
||||
itemsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
auto allDBNodesNode = valueItemsDBCluster["DBNodes"]["DBNode"];
|
||||
for (auto valueItemsDBClusterDBNodesDBNode : allDBNodesNode)
|
||||
{
|
||||
DBCluster::DBNode dBNodesObject;
|
||||
if(!valueItemsDBClusterDBNodesDBNode["DBNodeClass"].isNull())
|
||||
dBNodesObject.dBNodeClass = valueItemsDBClusterDBNodesDBNode["DBNodeClass"].asString();
|
||||
if(!valueItemsDBClusterDBNodesDBNode["ZoneId"].isNull())
|
||||
dBNodesObject.zoneId = valueItemsDBClusterDBNodesDBNode["ZoneId"].asString();
|
||||
if(!valueItemsDBClusterDBNodesDBNode["DBNodeRole"].isNull())
|
||||
dBNodesObject.dBNodeRole = valueItemsDBClusterDBNodesDBNode["DBNodeRole"].asString();
|
||||
if(!valueItemsDBClusterDBNodesDBNode["DBNodeId"].isNull())
|
||||
dBNodesObject.dBNodeId = valueItemsDBClusterDBNodesDBNode["DBNodeId"].asString();
|
||||
if(!valueItemsDBClusterDBNodesDBNode["RegionId"].isNull())
|
||||
dBNodesObject.regionId = valueItemsDBClusterDBNodesDBNode["RegionId"].asString();
|
||||
itemsObject.dBNodes.push_back(dBNodesObject);
|
||||
}
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -60,6 +60,17 @@ void ModifyDBClusterSSLRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterSSLRequest::getSSLAutoRotate()const
|
||||
{
|
||||
return sSLAutoRotate_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterSSLRequest::setSSLAutoRotate(const std::string& sSLAutoRotate)
|
||||
{
|
||||
sSLAutoRotate_ = sSLAutoRotate;
|
||||
setParameter("SSLAutoRotate", sSLAutoRotate);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterSSLRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
|
||||
@@ -115,6 +115,17 @@ void ModifyDBClusterTDERequest::setRoleArn(const std::string& roleArn)
|
||||
setParameter("RoleArn", roleArn);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterTDERequest::getEncryptNewTables()const
|
||||
{
|
||||
return encryptNewTables_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterTDERequest::setEncryptNewTables(const std::string& encryptNewTables)
|
||||
{
|
||||
encryptNewTables_ = encryptNewTables;
|
||||
setParameter("EncryptNewTables", encryptNewTables);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterTDERequest::getTDEStatus()const
|
||||
{
|
||||
return tDEStatus_;
|
||||
|
||||
Reference in New Issue
Block a user