DescribeInstance support coldStorageSize.
This commit is contained in:
@@ -2463,6 +2463,42 @@ HBaseClient::UnTagResourcesOutcomeCallable HBaseClient::unTagResourcesCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::UpgradeMinorVersionOutcome HBaseClient::upgradeMinorVersion(const UpgradeMinorVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpgradeMinorVersionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpgradeMinorVersionOutcome(UpgradeMinorVersionResult(outcome.result()));
|
||||
else
|
||||
return UpgradeMinorVersionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::upgradeMinorVersionAsync(const UpgradeMinorVersionRequest& request, const UpgradeMinorVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, upgradeMinorVersion(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::UpgradeMinorVersionOutcomeCallable HBaseClient::upgradeMinorVersionCallable(const UpgradeMinorVersionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpgradeMinorVersionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->upgradeMinorVersion(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::UpgradeMultiZoneClusterOutcome HBaseClient::upgradeMultiZoneCluster(const UpgradeMultiZoneClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -38,6 +38,17 @@ void AddUserHdfsInfoRequest::setExtInfo(const std::string& extInfo)
|
||||
setParameter("ExtInfo", extInfo);
|
||||
}
|
||||
|
||||
std::string AddUserHdfsInfoRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AddUserHdfsInfoRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string AddUserHdfsInfoRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
|
||||
@@ -27,6 +27,17 @@ CreateHbaseHaSlbRequest::CreateHbaseHaSlbRequest() :
|
||||
CreateHbaseHaSlbRequest::~CreateHbaseHaSlbRequest()
|
||||
{}
|
||||
|
||||
std::string CreateHbaseHaSlbRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateHbaseHaSlbRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateHbaseHaSlbRequest::getHaTypes()const
|
||||
{
|
||||
return haTypes_;
|
||||
|
||||
@@ -47,38 +47,38 @@ void DescribeAvailableResourceResult::parse(const std::string &payload)
|
||||
availableZonesObject.regionId = valueAvailableZonesAvailableZone["RegionId"].asString();
|
||||
if(!valueAvailableZonesAvailableZone["ZoneId"].isNull())
|
||||
availableZonesObject.zoneId = valueAvailableZonesAvailableZone["ZoneId"].asString();
|
||||
auto allSupportedEnginesNode = allAvailableZonesNode["SupportedEngines"]["SupportedEngine"];
|
||||
for (auto allAvailableZonesNodeSupportedEnginesSupportedEngine : allSupportedEnginesNode)
|
||||
auto allSupportedEnginesNode = valueAvailableZonesAvailableZone["SupportedEngines"]["SupportedEngine"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngine : allSupportedEnginesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine supportedEnginesObject;
|
||||
if(!allAvailableZonesNodeSupportedEnginesSupportedEngine["Engine"].isNull())
|
||||
supportedEnginesObject.engine = allAvailableZonesNodeSupportedEnginesSupportedEngine["Engine"].asString();
|
||||
auto allSupportedEngineVersionsNode = allSupportedEnginesNode["SupportedEngineVersions"]["SupportedEngineVersion"];
|
||||
for (auto allSupportedEnginesNodeSupportedEngineVersionsSupportedEngineVersion : allSupportedEngineVersionsNode)
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngine["Engine"].isNull())
|
||||
supportedEnginesObject.engine = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngine["Engine"].asString();
|
||||
auto allSupportedEngineVersionsNode = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngine["SupportedEngineVersions"]["SupportedEngineVersion"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersion : allSupportedEngineVersionsNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion supportedEngineVersionsObject;
|
||||
if(!allSupportedEnginesNodeSupportedEngineVersionsSupportedEngineVersion["Version"].isNull())
|
||||
supportedEngineVersionsObject.version = allSupportedEnginesNodeSupportedEngineVersionsSupportedEngineVersion["Version"].asString();
|
||||
auto allSupportedCategoriesNode = allSupportedEngineVersionsNode["SupportedCategories"]["SupportedCategoriesItem"];
|
||||
for (auto allSupportedEngineVersionsNodeSupportedCategoriesSupportedCategoriesItem : allSupportedCategoriesNode)
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersion["Version"].isNull())
|
||||
supportedEngineVersionsObject.version = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersion["Version"].asString();
|
||||
auto allSupportedCategoriesNode = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersion["SupportedCategories"]["SupportedCategoriesItem"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItem : allSupportedCategoriesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategoriesItem supportedCategoriesObject;
|
||||
if(!allSupportedEngineVersionsNodeSupportedCategoriesSupportedCategoriesItem["Category"].isNull())
|
||||
supportedCategoriesObject.category = allSupportedEngineVersionsNodeSupportedCategoriesSupportedCategoriesItem["Category"].asString();
|
||||
auto allSupportedStorageTypesNode = allSupportedCategoriesNode["SupportedStorageTypes"]["SupportedStorageType"];
|
||||
for (auto allSupportedCategoriesNodeSupportedStorageTypesSupportedStorageType : allSupportedStorageTypesNode)
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItem["Category"].isNull())
|
||||
supportedCategoriesObject.category = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItem["Category"].asString();
|
||||
auto allSupportedStorageTypesNode = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItem["SupportedStorageTypes"]["SupportedStorageType"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageType : allSupportedStorageTypesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategoriesItem::SupportedStorageType supportedStorageTypesObject;
|
||||
if(!allSupportedCategoriesNodeSupportedStorageTypesSupportedStorageType["StorageType"].isNull())
|
||||
supportedStorageTypesObject.storageType = allSupportedCategoriesNodeSupportedStorageTypesSupportedStorageType["StorageType"].asString();
|
||||
auto allCoreResourcesNode = allSupportedStorageTypesNode["CoreResources"]["CoreResource"];
|
||||
for (auto allSupportedStorageTypesNodeCoreResourcesCoreResource : allCoreResourcesNode)
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageType["StorageType"].isNull())
|
||||
supportedStorageTypesObject.storageType = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageType["StorageType"].asString();
|
||||
auto allCoreResourcesNode = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageType["CoreResources"]["CoreResource"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource : allCoreResourcesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategoriesItem::SupportedStorageType::CoreResource coreResourcesObject;
|
||||
if(!allSupportedStorageTypesNodeCoreResourcesCoreResource["InstanceType"].isNull())
|
||||
coreResourcesObject.instanceType = allSupportedStorageTypesNodeCoreResourcesCoreResource["InstanceType"].asString();
|
||||
if(!allSupportedStorageTypesNodeCoreResourcesCoreResource["MaxCoreCount"].isNull())
|
||||
coreResourcesObject.maxCoreCount = std::stoi(allSupportedStorageTypesNodeCoreResourcesCoreResource["MaxCoreCount"].asString());
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource["InstanceType"].isNull())
|
||||
coreResourcesObject.instanceType = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource["InstanceType"].asString();
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource["MaxCoreCount"].isNull())
|
||||
coreResourcesObject.maxCoreCount = std::stoi(valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource["MaxCoreCount"].asString());
|
||||
auto dBInstanceStorageRangeNode = value["DBInstanceStorageRange"];
|
||||
if(!dBInstanceStorageRangeNode["MaxSize"].isNull())
|
||||
coreResourcesObject.dBInstanceStorageRange.maxSize = std::stoi(dBInstanceStorageRangeNode["MaxSize"].asString());
|
||||
@@ -101,12 +101,12 @@ void DescribeAvailableResourceResult::parse(const std::string &payload)
|
||||
}
|
||||
availableZonesObject.supportedEngines.push_back(supportedEnginesObject);
|
||||
}
|
||||
auto allMasterResourcesNode = allAvailableZonesNode["MasterResources"]["MasterResource"];
|
||||
for (auto allAvailableZonesNodeMasterResourcesMasterResource : allMasterResourcesNode)
|
||||
auto allMasterResourcesNode = valueAvailableZonesAvailableZone["MasterResources"]["MasterResource"];
|
||||
for (auto valueAvailableZonesAvailableZoneMasterResourcesMasterResource : allMasterResourcesNode)
|
||||
{
|
||||
AvailableZone::MasterResource masterResourcesObject;
|
||||
if(!allAvailableZonesNodeMasterResourcesMasterResource["InstanceType"].isNull())
|
||||
masterResourcesObject.instanceType = allAvailableZonesNodeMasterResourcesMasterResource["InstanceType"].asString();
|
||||
if(!valueAvailableZonesAvailableZoneMasterResourcesMasterResource["InstanceType"].isNull())
|
||||
masterResourcesObject.instanceType = valueAvailableZonesAvailableZoneMasterResourcesMasterResource["InstanceType"].asString();
|
||||
auto instanceTypeDetail1Node = value["InstanceTypeDetail"];
|
||||
if(!instanceTypeDetail1Node["Cpu"].isNull())
|
||||
masterResourcesObject.instanceTypeDetail1.cpu = std::stoi(instanceTypeDetail1Node["Cpu"].asString());
|
||||
|
||||
@@ -131,6 +131,8 @@ void DescribeInstanceResult::parse(const std::string &payload)
|
||||
autoRenewal_ = value["AutoRenewal"].asString() == "true";
|
||||
if(!value["Duration"].isNull())
|
||||
duration_ = std::stoi(value["Duration"].asString());
|
||||
if(!value["ColdStorageSize"].isNull())
|
||||
coldStorageSize_ = std::stoi(value["ColdStorageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -229,6 +231,11 @@ std::string DescribeInstanceResult::getParentId()const
|
||||
return parentId_;
|
||||
}
|
||||
|
||||
int DescribeInstanceResult::getColdStorageSize()const
|
||||
{
|
||||
return coldStorageSize_;
|
||||
}
|
||||
|
||||
int DescribeInstanceResult::getMasterDiskSize()const
|
||||
{
|
||||
return masterDiskSize_;
|
||||
|
||||
@@ -115,14 +115,14 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
instancesObject.autoRenewal = valueInstancesInstance["AutoRenewal"].asString() == "true";
|
||||
if(!valueInstancesInstance["Duration"].isNull())
|
||||
instancesObject.duration = std::stoi(valueInstancesInstance["Duration"].asString());
|
||||
auto allTagsNode = allInstancesNode["Tags"]["Tag"];
|
||||
for (auto allInstancesNodeTagsTag : allTagsNode)
|
||||
auto allTagsNode = valueInstancesInstance["Tags"]["Tag"];
|
||||
for (auto valueInstancesInstanceTagsTag : allTagsNode)
|
||||
{
|
||||
Instance::Tag tagsObject;
|
||||
if(!allInstancesNodeTagsTag["Key"].isNull())
|
||||
tagsObject.key = allInstancesNodeTagsTag["Key"].asString();
|
||||
if(!allInstancesNodeTagsTag["Value"].isNull())
|
||||
tagsObject.value = allInstancesNodeTagsTag["Value"].asString();
|
||||
if(!valueInstancesInstanceTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueInstancesInstanceTagsTag["Key"].asString();
|
||||
if(!valueInstancesInstanceTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueInstancesInstanceTagsTag["Value"].asString();
|
||||
instancesObject.tags.push_back(tagsObject);
|
||||
}
|
||||
instances_.push_back(instancesObject);
|
||||
|
||||
@@ -49,12 +49,12 @@ void DescribeMultiZoneAvailableRegionsResult::parse(const std::string &payload)
|
||||
regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
|
||||
if(!valueRegionsRegion["RegionId"].isNull())
|
||||
regionsObject.regionId = valueRegionsRegion["RegionId"].asString();
|
||||
auto allAvailableCombinesNode = allRegionsNode["AvailableCombines"]["AvailableCombine"];
|
||||
for (auto allRegionsNodeAvailableCombinesAvailableCombine : allAvailableCombinesNode)
|
||||
auto allAvailableCombinesNode = valueRegionsRegion["AvailableCombines"]["AvailableCombine"];
|
||||
for (auto valueRegionsRegionAvailableCombinesAvailableCombine : allAvailableCombinesNode)
|
||||
{
|
||||
Region::AvailableCombine availableCombinesObject;
|
||||
if(!allRegionsNodeAvailableCombinesAvailableCombine["Id"].isNull())
|
||||
availableCombinesObject.id = allRegionsNodeAvailableCombinesAvailableCombine["Id"].asString();
|
||||
if(!valueRegionsRegionAvailableCombinesAvailableCombine["Id"].isNull())
|
||||
availableCombinesObject.id = valueRegionsRegionAvailableCombinesAvailableCombine["Id"].asString();
|
||||
auto allZones = value["Zones"]["Zone"];
|
||||
for (auto value : allZones)
|
||||
availableCombinesObject.zones.push_back(value.asString());
|
||||
|
||||
@@ -47,12 +47,12 @@ void DescribeMultiZoneAvailableResourceResult::parse(const std::string &payload)
|
||||
availableZonesObject.regionId = valueAvailableZonesAvailableZone["RegionId"].asString();
|
||||
if(!valueAvailableZonesAvailableZone["ZoneCombination"].isNull())
|
||||
availableZonesObject.zoneCombination = valueAvailableZonesAvailableZone["ZoneCombination"].asString();
|
||||
auto allMasterResourcesNode = allAvailableZonesNode["MasterResources"]["MasterResource"];
|
||||
for (auto allAvailableZonesNodeMasterResourcesMasterResource : allMasterResourcesNode)
|
||||
auto allMasterResourcesNode = valueAvailableZonesAvailableZone["MasterResources"]["MasterResource"];
|
||||
for (auto valueAvailableZonesAvailableZoneMasterResourcesMasterResource : allMasterResourcesNode)
|
||||
{
|
||||
AvailableZone::MasterResource masterResourcesObject;
|
||||
if(!allAvailableZonesNodeMasterResourcesMasterResource["InstanceType"].isNull())
|
||||
masterResourcesObject.instanceType = allAvailableZonesNodeMasterResourcesMasterResource["InstanceType"].asString();
|
||||
if(!valueAvailableZonesAvailableZoneMasterResourcesMasterResource["InstanceType"].isNull())
|
||||
masterResourcesObject.instanceType = valueAvailableZonesAvailableZoneMasterResourcesMasterResource["InstanceType"].asString();
|
||||
auto instanceTypeDetailNode = value["InstanceTypeDetail"];
|
||||
if(!instanceTypeDetailNode["Cpu"].isNull())
|
||||
masterResourcesObject.instanceTypeDetail.cpu = std::stoi(instanceTypeDetailNode["Cpu"].asString());
|
||||
@@ -60,38 +60,38 @@ void DescribeMultiZoneAvailableResourceResult::parse(const std::string &payload)
|
||||
masterResourcesObject.instanceTypeDetail.mem = std::stoi(instanceTypeDetailNode["Mem"].asString());
|
||||
availableZonesObject.masterResources.push_back(masterResourcesObject);
|
||||
}
|
||||
auto allSupportedEnginesNode = allAvailableZonesNode["SupportedEngines"]["SupportedEngine"];
|
||||
for (auto allAvailableZonesNodeSupportedEnginesSupportedEngine : allSupportedEnginesNode)
|
||||
auto allSupportedEnginesNode = valueAvailableZonesAvailableZone["SupportedEngines"]["SupportedEngine"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngine : allSupportedEnginesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine supportedEnginesObject;
|
||||
if(!allAvailableZonesNodeSupportedEnginesSupportedEngine["Engine"].isNull())
|
||||
supportedEnginesObject.engine = allAvailableZonesNodeSupportedEnginesSupportedEngine["Engine"].asString();
|
||||
auto allSupportedEngineVersionsNode = allSupportedEnginesNode["SupportedEngineVersions"]["SupportedEngineVersion"];
|
||||
for (auto allSupportedEnginesNodeSupportedEngineVersionsSupportedEngineVersion : allSupportedEngineVersionsNode)
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngine["Engine"].isNull())
|
||||
supportedEnginesObject.engine = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngine["Engine"].asString();
|
||||
auto allSupportedEngineVersionsNode = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngine["SupportedEngineVersions"]["SupportedEngineVersion"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersion : allSupportedEngineVersionsNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion supportedEngineVersionsObject;
|
||||
if(!allSupportedEnginesNodeSupportedEngineVersionsSupportedEngineVersion["Version"].isNull())
|
||||
supportedEngineVersionsObject.version = allSupportedEnginesNodeSupportedEngineVersionsSupportedEngineVersion["Version"].asString();
|
||||
auto allSupportedCategoriesNode = allSupportedEngineVersionsNode["SupportedCategories"]["SupportedCategoriesItem"];
|
||||
for (auto allSupportedEngineVersionsNodeSupportedCategoriesSupportedCategoriesItem : allSupportedCategoriesNode)
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersion["Version"].isNull())
|
||||
supportedEngineVersionsObject.version = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersion["Version"].asString();
|
||||
auto allSupportedCategoriesNode = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersion["SupportedCategories"]["SupportedCategoriesItem"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItem : allSupportedCategoriesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategoriesItem supportedCategoriesObject;
|
||||
if(!allSupportedEngineVersionsNodeSupportedCategoriesSupportedCategoriesItem["Category"].isNull())
|
||||
supportedCategoriesObject.category = allSupportedEngineVersionsNodeSupportedCategoriesSupportedCategoriesItem["Category"].asString();
|
||||
auto allSupportedStorageTypesNode = allSupportedCategoriesNode["SupportedStorageTypes"]["SupportedStorageType"];
|
||||
for (auto allSupportedCategoriesNodeSupportedStorageTypesSupportedStorageType : allSupportedStorageTypesNode)
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItem["Category"].isNull())
|
||||
supportedCategoriesObject.category = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItem["Category"].asString();
|
||||
auto allSupportedStorageTypesNode = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItem["SupportedStorageTypes"]["SupportedStorageType"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageType : allSupportedStorageTypesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategoriesItem::SupportedStorageType supportedStorageTypesObject;
|
||||
if(!allSupportedCategoriesNodeSupportedStorageTypesSupportedStorageType["StorageType"].isNull())
|
||||
supportedStorageTypesObject.storageType = allSupportedCategoriesNodeSupportedStorageTypesSupportedStorageType["StorageType"].asString();
|
||||
auto allCoreResourcesNode = allSupportedStorageTypesNode["CoreResources"]["CoreResource"];
|
||||
for (auto allSupportedStorageTypesNodeCoreResourcesCoreResource : allCoreResourcesNode)
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageType["StorageType"].isNull())
|
||||
supportedStorageTypesObject.storageType = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageType["StorageType"].asString();
|
||||
auto allCoreResourcesNode = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageType["CoreResources"]["CoreResource"];
|
||||
for (auto valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource : allCoreResourcesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategoriesItem::SupportedStorageType::CoreResource coreResourcesObject;
|
||||
if(!allSupportedStorageTypesNodeCoreResourcesCoreResource["InstanceType"].isNull())
|
||||
coreResourcesObject.instanceType = allSupportedStorageTypesNodeCoreResourcesCoreResource["InstanceType"].asString();
|
||||
if(!allSupportedStorageTypesNodeCoreResourcesCoreResource["MaxCoreCount"].isNull())
|
||||
coreResourcesObject.maxCoreCount = std::stoi(allSupportedStorageTypesNodeCoreResourcesCoreResource["MaxCoreCount"].asString());
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource["InstanceType"].isNull())
|
||||
coreResourcesObject.instanceType = valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource["InstanceType"].asString();
|
||||
if(!valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource["MaxCoreCount"].isNull())
|
||||
coreResourcesObject.maxCoreCount = std::stoi(valueAvailableZonesAvailableZoneSupportedEnginesSupportedEngineSupportedEngineVersionsSupportedEngineVersionSupportedCategoriesSupportedCategoriesItemSupportedStorageTypesSupportedStorageTypeCoreResourcesCoreResource["MaxCoreCount"].asString());
|
||||
auto dBInstanceStorageRangeNode = value["DBInstanceStorageRange"];
|
||||
if(!dBInstanceStorageRangeNode["MaxSize"].isNull())
|
||||
coreResourcesObject.dBInstanceStorageRange.maxSize = std::stoi(dBInstanceStorageRangeNode["MaxSize"].asString());
|
||||
|
||||
@@ -49,12 +49,12 @@ void DescribeRegionsResult::parse(const std::string &payload)
|
||||
regionsObject.localName = valueRegionsRegion["LocalName"].asString();
|
||||
if(!valueRegionsRegion["RegionEndpoint"].isNull())
|
||||
regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
|
||||
auto allZonesNode = allRegionsNode["Zones"]["Zone"];
|
||||
for (auto allRegionsNodeZonesZone : allZonesNode)
|
||||
auto allZonesNode = valueRegionsRegion["Zones"]["Zone"];
|
||||
for (auto valueRegionsRegionZonesZone : allZonesNode)
|
||||
{
|
||||
Region::Zone zonesObject;
|
||||
if(!allRegionsNodeZonesZone["Id"].isNull())
|
||||
zonesObject.id = allRegionsNodeZonesZone["Id"].asString();
|
||||
if(!valueRegionsRegionZonesZone["Id"].isNull())
|
||||
zonesObject.id = valueRegionsRegionZonesZone["Id"].asString();
|
||||
regionsObject.zones.push_back(zonesObject);
|
||||
}
|
||||
regions_.push_back(regionsObject);
|
||||
|
||||
@@ -51,16 +51,16 @@ void QueryHBaseHaDBResult::parse(const std::string &payload)
|
||||
clusterListObject.activeName = valueClusterListCluster["ActiveName"].asString();
|
||||
if(!valueClusterListCluster["StandbyName"].isNull())
|
||||
clusterListObject.standbyName = valueClusterListCluster["StandbyName"].asString();
|
||||
auto allHaSlbConnListNode = allClusterListNode["HaSlbConnList"]["HaSlbConn"];
|
||||
for (auto allClusterListNodeHaSlbConnListHaSlbConn : allHaSlbConnListNode)
|
||||
auto allHaSlbConnListNode = valueClusterListCluster["HaSlbConnList"]["HaSlbConn"];
|
||||
for (auto valueClusterListClusterHaSlbConnListHaSlbConn : allHaSlbConnListNode)
|
||||
{
|
||||
Cluster::HaSlbConn haSlbConnListObject;
|
||||
if(!allClusterListNodeHaSlbConnListHaSlbConn["SlbType"].isNull())
|
||||
haSlbConnListObject.slbType = allClusterListNodeHaSlbConnListHaSlbConn["SlbType"].asString();
|
||||
if(!allClusterListNodeHaSlbConnListHaSlbConn["SlbConnAddr"].isNull())
|
||||
haSlbConnListObject.slbConnAddr = allClusterListNodeHaSlbConnListHaSlbConn["SlbConnAddr"].asString();
|
||||
if(!allClusterListNodeHaSlbConnListHaSlbConn["HbaseType"].isNull())
|
||||
haSlbConnListObject.hbaseType = allClusterListNodeHaSlbConnListHaSlbConn["HbaseType"].asString();
|
||||
if(!valueClusterListClusterHaSlbConnListHaSlbConn["SlbType"].isNull())
|
||||
haSlbConnListObject.slbType = valueClusterListClusterHaSlbConnListHaSlbConn["SlbType"].asString();
|
||||
if(!valueClusterListClusterHaSlbConnListHaSlbConn["SlbConnAddr"].isNull())
|
||||
haSlbConnListObject.slbConnAddr = valueClusterListClusterHaSlbConnListHaSlbConn["SlbConnAddr"].asString();
|
||||
if(!valueClusterListClusterHaSlbConnListHaSlbConn["HbaseType"].isNull())
|
||||
haSlbConnListObject.hbaseType = valueClusterListClusterHaSlbConnListHaSlbConn["HbaseType"].asString();
|
||||
clusterListObject.haSlbConnList.push_back(haSlbConnListObject);
|
||||
}
|
||||
clusterList_.push_back(clusterListObject);
|
||||
|
||||
51
hbase/src/model/UpgradeMinorVersionRequest.cc
Normal file
51
hbase/src/model/UpgradeMinorVersionRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/UpgradeMinorVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::UpgradeMinorVersionRequest;
|
||||
|
||||
UpgradeMinorVersionRequest::UpgradeMinorVersionRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "UpgradeMinorVersion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpgradeMinorVersionRequest::~UpgradeMinorVersionRequest()
|
||||
{}
|
||||
|
||||
std::string UpgradeMinorVersionRequest::getComponents()const
|
||||
{
|
||||
return components_;
|
||||
}
|
||||
|
||||
void UpgradeMinorVersionRequest::setComponents(const std::string& components)
|
||||
{
|
||||
components_ = components;
|
||||
setParameter("Components", components);
|
||||
}
|
||||
|
||||
std::string UpgradeMinorVersionRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void UpgradeMinorVersionRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
51
hbase/src/model/UpgradeMinorVersionResult.cc
Normal file
51
hbase/src/model/UpgradeMinorVersionResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/UpgradeMinorVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
UpgradeMinorVersionResult::UpgradeMinorVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpgradeMinorVersionResult::UpgradeMinorVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpgradeMinorVersionResult::~UpgradeMinorVersionResult()
|
||||
{}
|
||||
|
||||
void UpgradeMinorVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["UpgradingComponents"].isNull())
|
||||
upgradingComponents_ = value["UpgradingComponents"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpgradeMinorVersionResult::getUpgradingComponents()const
|
||||
{
|
||||
return upgradingComponents_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user