Generated 2015-01-01 for R-kvstore.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2020-05-14 Version: 1.36.413
|
||||
- Generated 2015-01-01 for `R-kvstore`.
|
||||
- Fix DescribeCacheAnalysisReport return empty BigKeys because of wrong type defination.
|
||||
|
||||
2020-05-14 Version: 1.36.412
|
||||
- Supported Grant Permission.
|
||||
- Supported Revoke Permission.
|
||||
|
||||
@@ -38,9 +38,9 @@ namespace AlibabaCloud
|
||||
explicit DescribeCacheAnalysisReportResult(const std::string &payload);
|
||||
~DescribeCacheAnalysisReportResult();
|
||||
int getTotalRecordCount()const;
|
||||
std::string getHotKeys()const;
|
||||
std::vector<std::string> getHotKeys()const;
|
||||
std::vector<std::string> getBigKeys()const;
|
||||
int getPageRecordCount()const;
|
||||
std::string getBigKeys()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
|
||||
@@ -48,9 +48,9 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalRecordCount_;
|
||||
std::string hotKeys_;
|
||||
std::vector<std::string> hotKeys_;
|
||||
std::vector<std::string> bigKeys_;
|
||||
int pageRecordCount_;
|
||||
std::string bigKeys_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
|
||||
|
||||
@@ -54,6 +54,7 @@ namespace AlibabaCloud
|
||||
std::string networkType;
|
||||
long bandwidth;
|
||||
std::string packageType;
|
||||
bool instanceReleaseProtection;
|
||||
std::string instanceType;
|
||||
std::string availabilityValue;
|
||||
std::vector<DBInstanceAttribute::Tag> tags;
|
||||
|
||||
@@ -43,6 +43,8 @@ namespace AlibabaCloud
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
int getPageSize()const;
|
||||
@@ -71,6 +73,7 @@ namespace AlibabaCloud
|
||||
std::string startTime_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string securityToken_;
|
||||
int pageSize_;
|
||||
std::string roleType_;
|
||||
|
||||
@@ -37,8 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getPageNumber()const;
|
||||
void setPageNumber(const std::string& pageNumber);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSecurityToken()const;
|
||||
@@ -53,8 +53,8 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
std::string getMaxRecordsPerPage()const;
|
||||
void setMaxRecordsPerPage(const std::string& maxRecordsPerPage);
|
||||
int getMaxRecordsPerPage()const;
|
||||
void setMaxRecordsPerPage(int maxRecordsPerPage);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
long getOwnerId()const;
|
||||
@@ -66,7 +66,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string pageNumber_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
@@ -74,7 +74,7 @@ namespace AlibabaCloud
|
||||
std::string instanceStatus_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
std::string maxRecordsPerPage_;
|
||||
int maxRecordsPerPage_;
|
||||
std::string clusterId_;
|
||||
long ownerId_;
|
||||
std::string instanceIds_;
|
||||
|
||||
@@ -37,8 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getPageNumber()const;
|
||||
void setPageNumber(const std::string& pageNumber);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSecurityToken()const;
|
||||
@@ -51,8 +51,8 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
std::string getMaxRecordsPerPage()const;
|
||||
void setMaxRecordsPerPage(const std::string& maxRecordsPerPage);
|
||||
int getMaxRecordsPerPage()const;
|
||||
void setMaxRecordsPerPage(int maxRecordsPerPage);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
long getOwnerId()const;
|
||||
@@ -62,14 +62,14 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string pageNumber_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
std::string engine_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
std::string maxRecordsPerPage_;
|
||||
int maxRecordsPerPage_;
|
||||
std::string clusterId_;
|
||||
long ownerId_;
|
||||
std::string zoneId_;
|
||||
|
||||
@@ -41,6 +41,10 @@ namespace AlibabaCloud
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
bool getInstanceReleaseProtection()const;
|
||||
void setInstanceReleaseProtection(bool instanceReleaseProtection);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
@@ -53,17 +57,22 @@ namespace AlibabaCloud
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getInstanceName()const;
|
||||
void setInstanceName(const std::string& instanceName);
|
||||
std::string getCategory()const;
|
||||
void setCategory(const std::string& category);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
std::string product_;
|
||||
bool instanceReleaseProtection_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string newPassword_;
|
||||
std::string instanceId_;
|
||||
std::string instanceName_;
|
||||
std::string category_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -39,6 +39,12 @@ void DescribeCacheAnalysisReportResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allHotKeys = value["HotKeys"]["HotKeys"];
|
||||
for (const auto &item : allHotKeys)
|
||||
hotKeys_.push_back(item.asString());
|
||||
auto allBigKeys = value["BigKeys"]["BigKeys"];
|
||||
for (const auto &item : allBigKeys)
|
||||
bigKeys_.push_back(item.asString());
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
@@ -47,10 +53,6 @@ void DescribeCacheAnalysisReportResult::parse(const std::string &payload)
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
if(!value["HotKeys"].isNull())
|
||||
hotKeys_ = value["HotKeys"].asString();
|
||||
if(!value["BigKeys"].isNull())
|
||||
bigKeys_ = value["BigKeys"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -59,21 +61,21 @@ int DescribeCacheAnalysisReportResult::getTotalRecordCount()const
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
std::string DescribeCacheAnalysisReportResult::getHotKeys()const
|
||||
std::vector<std::string> DescribeCacheAnalysisReportResult::getHotKeys()const
|
||||
{
|
||||
return hotKeys_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeCacheAnalysisReportResult::getBigKeys()const
|
||||
{
|
||||
return bigKeys_;
|
||||
}
|
||||
|
||||
int DescribeCacheAnalysisReportResult::getPageRecordCount()const
|
||||
{
|
||||
return pageRecordCount_;
|
||||
}
|
||||
|
||||
std::string DescribeCacheAnalysisReportResult::getBigKeys()const
|
||||
{
|
||||
return bigKeys_;
|
||||
}
|
||||
|
||||
int DescribeCacheAnalysisReportResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
|
||||
@@ -119,6 +119,8 @@ void DescribeInstanceAttributeResult::parse(const std::string &payload)
|
||||
instancesObject.replicationMode = valueInstancesDBInstanceAttribute["ReplicationMode"].asString();
|
||||
if(!valueInstancesDBInstanceAttribute["VpcCloudInstanceId"].isNull())
|
||||
instancesObject.vpcCloudInstanceId = valueInstancesDBInstanceAttribute["VpcCloudInstanceId"].asString();
|
||||
if(!valueInstancesDBInstanceAttribute["InstanceReleaseProtection"].isNull())
|
||||
instancesObject.instanceReleaseProtection = valueInstancesDBInstanceAttribute["InstanceReleaseProtection"].asString() == "true";
|
||||
auto allTagsNode = allInstancesNode["Tags"]["Tag"];
|
||||
for (auto allInstancesNodeTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
@@ -71,6 +71,17 @@ void DescribeRunningLogRecordsRequest::setAccessKeyId(const std::string& accessK
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeRunningLogRecordsRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeRunningLogRecordsRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeRunningLogRecordsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
|
||||
@@ -38,15 +38,15 @@ void DescribeUserClusterHostInstanceRequest::setResourceOwnerId(long resourceOwn
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeUserClusterHostInstanceRequest::getPageNumber()const
|
||||
int DescribeUserClusterHostInstanceRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeUserClusterHostInstanceRequest::setPageNumber(const std::string& pageNumber)
|
||||
void DescribeUserClusterHostInstanceRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", pageNumber);
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeUserClusterHostInstanceRequest::getAccessKeyId()const
|
||||
@@ -126,15 +126,15 @@ void DescribeUserClusterHostInstanceRequest::setOwnerAccount(const std::string&
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeUserClusterHostInstanceRequest::getMaxRecordsPerPage()const
|
||||
int DescribeUserClusterHostInstanceRequest::getMaxRecordsPerPage()const
|
||||
{
|
||||
return maxRecordsPerPage_;
|
||||
}
|
||||
|
||||
void DescribeUserClusterHostInstanceRequest::setMaxRecordsPerPage(const std::string& maxRecordsPerPage)
|
||||
void DescribeUserClusterHostInstanceRequest::setMaxRecordsPerPage(int maxRecordsPerPage)
|
||||
{
|
||||
maxRecordsPerPage_ = maxRecordsPerPage;
|
||||
setParameter("MaxRecordsPerPage", maxRecordsPerPage);
|
||||
setParameter("MaxRecordsPerPage", std::to_string(maxRecordsPerPage));
|
||||
}
|
||||
|
||||
std::string DescribeUserClusterHostInstanceRequest::getClusterId()const
|
||||
|
||||
@@ -38,15 +38,15 @@ void DescribeUserClusterHostRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeUserClusterHostRequest::getPageNumber()const
|
||||
int DescribeUserClusterHostRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeUserClusterHostRequest::setPageNumber(const std::string& pageNumber)
|
||||
void DescribeUserClusterHostRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", pageNumber);
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeUserClusterHostRequest::getAccessKeyId()const
|
||||
@@ -115,15 +115,15 @@ void DescribeUserClusterHostRequest::setOwnerAccount(const std::string& ownerAcc
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeUserClusterHostRequest::getMaxRecordsPerPage()const
|
||||
int DescribeUserClusterHostRequest::getMaxRecordsPerPage()const
|
||||
{
|
||||
return maxRecordsPerPage_;
|
||||
}
|
||||
|
||||
void DescribeUserClusterHostRequest::setMaxRecordsPerPage(const std::string& maxRecordsPerPage)
|
||||
void DescribeUserClusterHostRequest::setMaxRecordsPerPage(int maxRecordsPerPage)
|
||||
{
|
||||
maxRecordsPerPage_ = maxRecordsPerPage;
|
||||
setParameter("MaxRecordsPerPage", maxRecordsPerPage);
|
||||
setParameter("MaxRecordsPerPage", std::to_string(maxRecordsPerPage));
|
||||
}
|
||||
|
||||
std::string DescribeUserClusterHostRequest::getClusterId()const
|
||||
|
||||
@@ -60,6 +60,28 @@ void ModifyInstanceAttributeRequest::setSecurityToken(const std::string& securit
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceAttributeRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void ModifyInstanceAttributeRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
}
|
||||
|
||||
bool ModifyInstanceAttributeRequest::getInstanceReleaseProtection()const
|
||||
{
|
||||
return instanceReleaseProtection_;
|
||||
}
|
||||
|
||||
void ModifyInstanceAttributeRequest::setInstanceReleaseProtection(bool instanceReleaseProtection)
|
||||
{
|
||||
instanceReleaseProtection_ = instanceReleaseProtection;
|
||||
setParameter("InstanceReleaseProtection", instanceReleaseProtection ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyInstanceAttributeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
@@ -126,3 +148,14 @@ void ModifyInstanceAttributeRequest::setInstanceName(const std::string& instance
|
||||
setParameter("InstanceName", instanceName);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceAttributeRequest::getCategory()const
|
||||
{
|
||||
return category_;
|
||||
}
|
||||
|
||||
void ModifyInstanceAttributeRequest::setCategory(const std::string& category)
|
||||
{
|
||||
category_ = category;
|
||||
setParameter("Category", category);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user