Describe describeAvailableResource.
This commit is contained in:
@@ -1,337 +0,0 @@
|
||||
/*
|
||||
* 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/CreateInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::CreateInstanceRequest;
|
||||
|
||||
CreateInstanceRequest::CreateInstanceRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "CreateInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateInstanceRequest::~CreateInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateInstanceRequest::getClusterName()const
|
||||
{
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setClusterName(const std::string& clusterName)
|
||||
{
|
||||
clusterName_ = clusterName;
|
||||
setParameter("ClusterName", clusterName);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getDbInstanceConnType()const
|
||||
{
|
||||
return dbInstanceConnType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setDbInstanceConnType(const std::string& dbInstanceConnType)
|
||||
{
|
||||
dbInstanceConnType_ = dbInstanceConnType;
|
||||
setParameter("DbInstanceConnType", dbInstanceConnType);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setEngineVersion(const std::string& engineVersion)
|
||||
{
|
||||
engineVersion_ = engineVersion;
|
||||
setParameter("EngineVersion", engineVersion);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getDepMode()const
|
||||
{
|
||||
return depMode_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setDepMode(const std::string& depMode)
|
||||
{
|
||||
depMode_ = depMode;
|
||||
setParameter("DepMode", depMode);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getBackupId()const
|
||||
{
|
||||
return backupId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setBackupId(const std::string& backupId)
|
||||
{
|
||||
backupId_ = backupId;
|
||||
setParameter("BackupId", backupId);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getDbInstanceType()const
|
||||
{
|
||||
return dbInstanceType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setDbInstanceType(const std::string& dbInstanceType)
|
||||
{
|
||||
dbInstanceType_ = dbInstanceType;
|
||||
setParameter("DbInstanceType", dbInstanceType);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getSecurityIPList()const
|
||||
{
|
||||
return securityIPList_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setSecurityIPList(const std::string& securityIPList)
|
||||
{
|
||||
securityIPList_ = securityIPList;
|
||||
setParameter("SecurityIPList", securityIPList);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getAutoRenew()const
|
||||
{
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setAutoRenew(const std::string& autoRenew)
|
||||
{
|
||||
autoRenew_ = autoRenew;
|
||||
setParameter("AutoRenew", autoRenew);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getNetType()const
|
||||
{
|
||||
return netType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setNetType(const std::string& netType)
|
||||
{
|
||||
netType_ = netType;
|
||||
setParameter("NetType", netType);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getCoreDiskType()const
|
||||
{
|
||||
return coreDiskType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setCoreDiskType(const std::string& coreDiskType)
|
||||
{
|
||||
coreDiskType_ = coreDiskType;
|
||||
setParameter("CoreDiskType", coreDiskType);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getPricingCycle()const
|
||||
{
|
||||
return pricingCycle_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setPricingCycle(const std::string& pricingCycle)
|
||||
{
|
||||
pricingCycle_ = pricingCycle;
|
||||
setParameter("PricingCycle", pricingCycle);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getCoreInstanceQuantity()const
|
||||
{
|
||||
return coreInstanceQuantity_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setCoreInstanceQuantity(const std::string& coreInstanceQuantity)
|
||||
{
|
||||
coreInstanceQuantity_ = coreInstanceQuantity;
|
||||
setParameter("CoreInstanceQuantity", coreInstanceQuantity);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setDuration(const std::string& duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setParameter("Duration", duration);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setEngine(const std::string& engine)
|
||||
{
|
||||
engine_ = engine;
|
||||
setParameter("Engine", engine);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getRestoreTime()const
|
||||
{
|
||||
return restoreTime_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setRestoreTime(const std::string& restoreTime)
|
||||
{
|
||||
restoreTime_ = restoreTime;
|
||||
setParameter("RestoreTime", restoreTime);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getSrcDBInstanceId()const
|
||||
{
|
||||
return srcDBInstanceId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setSrcDBInstanceId(const std::string& srcDBInstanceId)
|
||||
{
|
||||
srcDBInstanceId_ = srcDBInstanceId;
|
||||
setParameter("SrcDBInstanceId", srcDBInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getMasterInstanceType()const
|
||||
{
|
||||
return masterInstanceType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setMasterInstanceType(const std::string& masterInstanceType)
|
||||
{
|
||||
masterInstanceType_ = masterInstanceType;
|
||||
setParameter("MasterInstanceType", masterInstanceType);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getColdStorageSize()const
|
||||
{
|
||||
return coldStorageSize_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setColdStorageSize(const std::string& coldStorageSize)
|
||||
{
|
||||
coldStorageSize_ = coldStorageSize;
|
||||
setParameter("ColdStorageSize", coldStorageSize);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getCoreDiskQuantity()const
|
||||
{
|
||||
return coreDiskQuantity_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setCoreDiskQuantity(const std::string& coreDiskQuantity)
|
||||
{
|
||||
coreDiskQuantity_ = coreDiskQuantity;
|
||||
setParameter("CoreDiskQuantity", coreDiskQuantity);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getIsColdStorage()const
|
||||
{
|
||||
return isColdStorage_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setIsColdStorage(const std::string& isColdStorage)
|
||||
{
|
||||
isColdStorage_ = isColdStorage;
|
||||
setParameter("IsColdStorage", isColdStorage);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getCoreInstanceType()const
|
||||
{
|
||||
return coreInstanceType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setCoreInstanceType(const std::string& coreInstanceType)
|
||||
{
|
||||
coreInstanceType_ = coreInstanceType;
|
||||
setParameter("CoreInstanceType", coreInstanceType);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getCoreDiskSize()const
|
||||
{
|
||||
return coreDiskSize_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setCoreDiskSize(const std::string& coreDiskSize)
|
||||
{
|
||||
coreDiskSize_ = coreDiskSize;
|
||||
setParameter("CoreDiskSize", coreDiskSize);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getDbType()const
|
||||
{
|
||||
return dbType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setDbType(const std::string& dbType)
|
||||
{
|
||||
dbType_ = dbType;
|
||||
setParameter("DbType", dbType);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setPayType(const std::string& payType)
|
||||
{
|
||||
payType_ = payType;
|
||||
setParameter("PayType", payType);
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* 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/CreateInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
CreateInstanceResult::CreateInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateInstanceResult::CreateInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateInstanceResult::~CreateInstanceResult()
|
||||
{}
|
||||
|
||||
void CreateInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateInstanceResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
62
hbase/src/model/DescribeAvailableResourceRequest.cc
Normal file
62
hbase/src/model/DescribeAvailableResourceRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/DescribeAvailableResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeAvailableResourceRequest;
|
||||
|
||||
DescribeAvailableResourceRequest::DescribeAvailableResourceRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeAvailableResource")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAvailableResourceRequest::~DescribeAvailableResourceRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAvailableResourceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableResourceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeAvailableResourceRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableResourceRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string DescribeAvailableResourceRequest::getChargeType()const
|
||||
{
|
||||
return chargeType_;
|
||||
}
|
||||
|
||||
void DescribeAvailableResourceRequest::setChargeType(const std::string& chargeType)
|
||||
{
|
||||
chargeType_ = chargeType;
|
||||
setParameter("ChargeType", chargeType);
|
||||
}
|
||||
|
||||
124
hbase/src/model/DescribeAvailableResourceResult.cc
Normal file
124
hbase/src/model/DescribeAvailableResourceResult.cc
Normal file
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
* 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/DescribeAvailableResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeAvailableResourceResult::DescribeAvailableResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAvailableResourceResult::DescribeAvailableResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAvailableResourceResult::~DescribeAvailableResourceResult()
|
||||
{}
|
||||
|
||||
void DescribeAvailableResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAvailableZonesNode = value["AvailableZones"]["AvailableZone"];
|
||||
for (auto valueAvailableZonesAvailableZone : allAvailableZonesNode)
|
||||
{
|
||||
AvailableZone availableZonesObject;
|
||||
if(!valueAvailableZonesAvailableZone["RegionId"].isNull())
|
||||
availableZonesObject.regionId = valueAvailableZonesAvailableZone["RegionId"].asString();
|
||||
if(!valueAvailableZonesAvailableZone["ZoneId"].isNull())
|
||||
availableZonesObject.zoneId = valueAvailableZonesAvailableZone["ZoneId"].asString();
|
||||
auto allSupportedEnginesNode = allAvailableZonesNode["SupportedEngines"]["SupportedEngine"];
|
||||
for (auto allAvailableZonesNodeSupportedEnginesSupportedEngine : allSupportedEnginesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine supportedEnginesObject;
|
||||
if(!allAvailableZonesNodeSupportedEnginesSupportedEngine["Engine"].isNull())
|
||||
supportedEnginesObject.engine = allAvailableZonesNodeSupportedEnginesSupportedEngine["Engine"].asString();
|
||||
auto allSupportedEngineVersionsNode = allSupportedEnginesNode["SupportedEngineVersions"]["SupportedEngineVersion"];
|
||||
for (auto allSupportedEnginesNodeSupportedEngineVersionsSupportedEngineVersion : allSupportedEngineVersionsNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion supportedEngineVersionsObject;
|
||||
if(!allSupportedEnginesNodeSupportedEngineVersionsSupportedEngineVersion["Version"].isNull())
|
||||
supportedEngineVersionsObject.version = allSupportedEnginesNodeSupportedEngineVersionsSupportedEngineVersion["Version"].asString();
|
||||
auto allSupportedCategoriesNode = allSupportedEngineVersionsNode["SupportedCategories"]["SupportedCategoriesItem"];
|
||||
for (auto allSupportedEngineVersionsNodeSupportedCategoriesSupportedCategoriesItem : allSupportedCategoriesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategoriesItem supportedCategoriesObject;
|
||||
if(!allSupportedEngineVersionsNodeSupportedCategoriesSupportedCategoriesItem["Category"].isNull())
|
||||
supportedCategoriesObject.category = allSupportedEngineVersionsNodeSupportedCategoriesSupportedCategoriesItem["Category"].asString();
|
||||
auto allSupportedStorageTypesNode = allSupportedCategoriesNode["SupportedStorageTypes"]["SupportedStorageType"];
|
||||
for (auto allSupportedCategoriesNodeSupportedStorageTypesSupportedStorageType : 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)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategoriesItem::SupportedStorageType::CoreResource coreResourcesObject;
|
||||
if(!allSupportedStorageTypesNodeCoreResourcesCoreResource["InstanceType"].isNull())
|
||||
coreResourcesObject.instanceType = allSupportedStorageTypesNodeCoreResourcesCoreResource["InstanceType"].asString();
|
||||
auto dBInstanceStorageRangeNode = value["DBInstanceStorageRange"];
|
||||
if(!dBInstanceStorageRangeNode["MaxSize"].isNull())
|
||||
coreResourcesObject.dBInstanceStorageRange.maxSize = std::stoi(dBInstanceStorageRangeNode["MaxSize"].asString());
|
||||
if(!dBInstanceStorageRangeNode["MinSize"].isNull())
|
||||
coreResourcesObject.dBInstanceStorageRange.minSize = std::stoi(dBInstanceStorageRangeNode["MinSize"].asString());
|
||||
if(!dBInstanceStorageRangeNode["StepSize"].isNull())
|
||||
coreResourcesObject.dBInstanceStorageRange.stepSize = std::stoi(dBInstanceStorageRangeNode["StepSize"].asString());
|
||||
auto instanceTypeDetailNode = value["InstanceTypeDetail"];
|
||||
if(!instanceTypeDetailNode["Cpu"].isNull())
|
||||
coreResourcesObject.instanceTypeDetail.cpu = std::stoi(instanceTypeDetailNode["Cpu"].asString());
|
||||
if(!instanceTypeDetailNode["Mem"].isNull())
|
||||
coreResourcesObject.instanceTypeDetail.mem = std::stoi(instanceTypeDetailNode["Mem"].asString());
|
||||
supportedStorageTypesObject.coreResources.push_back(coreResourcesObject);
|
||||
}
|
||||
supportedCategoriesObject.supportedStorageTypes.push_back(supportedStorageTypesObject);
|
||||
}
|
||||
supportedEngineVersionsObject.supportedCategories.push_back(supportedCategoriesObject);
|
||||
}
|
||||
supportedEnginesObject.supportedEngineVersions.push_back(supportedEngineVersionsObject);
|
||||
}
|
||||
availableZonesObject.supportedEngines.push_back(supportedEnginesObject);
|
||||
}
|
||||
auto allMasterResourcesNode = allAvailableZonesNode["MasterResources"]["MasterResource"];
|
||||
for (auto allAvailableZonesNodeMasterResourcesMasterResource : allMasterResourcesNode)
|
||||
{
|
||||
AvailableZone::MasterResource masterResourcesObject;
|
||||
if(!allAvailableZonesNodeMasterResourcesMasterResource["InstanceType"].isNull())
|
||||
masterResourcesObject.instanceType = allAvailableZonesNodeMasterResourcesMasterResource["InstanceType"].asString();
|
||||
auto instanceTypeDetail1Node = value["InstanceTypeDetail"];
|
||||
if(!instanceTypeDetail1Node["Cpu"].isNull())
|
||||
masterResourcesObject.instanceTypeDetail1.cpu = std::stoi(instanceTypeDetail1Node["Cpu"].asString());
|
||||
if(!instanceTypeDetail1Node["Mem"].isNull())
|
||||
masterResourcesObject.instanceTypeDetail1.mem = std::stoi(instanceTypeDetail1Node["Mem"].asString());
|
||||
availableZonesObject.masterResources.push_back(masterResourcesObject);
|
||||
}
|
||||
availableZones_.push_back(availableZonesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAvailableResourceResult::AvailableZone> DescribeAvailableResourceResult::getAvailableZones()const
|
||||
{
|
||||
return availableZones_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user