Supported gateway for hdeni api.
This commit is contained in:
@@ -30,18 +30,24 @@ class ALIBABACLOUD_EFLO_EXPORT GetFabricTopologyRequest : public RpcServiceReque
|
||||
public:
|
||||
GetFabricTopologyRequest();
|
||||
~GetFabricTopologyRequest();
|
||||
std::string getClusterId() const;
|
||||
void setClusterId(const std::string &clusterId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getVpdId() const;
|
||||
void setVpdId(const std::string &vpdId);
|
||||
std::string getVpcId() const;
|
||||
void setVpcId(const std::string &vpcId);
|
||||
std::vector<std::string> getLniIds() const;
|
||||
void setLniIds(const std::vector<std::string> &lniIds);
|
||||
std::vector<std::string> getNodeIds() const;
|
||||
void setNodeIds(const std::vector<std::string> &nodeIds);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string regionId_;
|
||||
std::string vpdId_;
|
||||
std::string vpcId_;
|
||||
std::vector<std::string> lniIds_;
|
||||
std::vector<std::string> nodeIds_;
|
||||
};
|
||||
|
||||
@@ -40,7 +40,9 @@ namespace AlibabaCloud
|
||||
std::vector<std::string> nextLayer;
|
||||
std::string layerType;
|
||||
};
|
||||
std::string vpcId;
|
||||
std::string vpdId;
|
||||
std::string clusterId;
|
||||
std::string regionId;
|
||||
std::vector<Layer> topoInfo;
|
||||
};
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Content
|
||||
{
|
||||
int leniSipQuota;
|
||||
std::string zoneId;
|
||||
std::string vpcId;
|
||||
int hdeniQuota;
|
||||
|
||||
@@ -34,8 +34,10 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct ContentItem
|
||||
{
|
||||
int leniSipQuota;
|
||||
std::string zoneId;
|
||||
std::string vpcId;
|
||||
int hdeniQuota;
|
||||
std::string clusterId;
|
||||
int lniSipQuota;
|
||||
std::string nodeId;
|
||||
|
||||
@@ -25,6 +25,15 @@ GetFabricTopologyRequest::GetFabricTopologyRequest()
|
||||
|
||||
GetFabricTopologyRequest::~GetFabricTopologyRequest() {}
|
||||
|
||||
std::string GetFabricTopologyRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetFabricTopologyRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setBodyParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string GetFabricTopologyRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -43,6 +52,15 @@ void GetFabricTopologyRequest::setVpdId(const std::string &vpdId) {
|
||||
setBodyParameter(std::string("VpdId"), vpdId);
|
||||
}
|
||||
|
||||
std::string GetFabricTopologyRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void GetFabricTopologyRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setBodyParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
std::vector<std::string> GetFabricTopologyRequest::getLniIds() const {
|
||||
return lniIds_;
|
||||
}
|
||||
|
||||
@@ -44,6 +44,10 @@ void GetFabricTopologyResult::parse(const std::string &payload)
|
||||
content_.regionId = contentNode["RegionId"].asString();
|
||||
if(!contentNode["VpdId"].isNull())
|
||||
content_.vpdId = contentNode["VpdId"].asString();
|
||||
if(!contentNode["VpcId"].isNull())
|
||||
content_.vpcId = contentNode["VpcId"].asString();
|
||||
if(!contentNode["ClusterId"].isNull())
|
||||
content_.clusterId = contentNode["ClusterId"].asString();
|
||||
auto allTopoInfoNode = contentNode["TopoInfo"]["Layer"];
|
||||
for (auto contentNodeTopoInfoLayer : allTopoInfoNode)
|
||||
{
|
||||
|
||||
@@ -54,6 +54,8 @@ void GetNodeInfoForPodResult::parse(const std::string &payload)
|
||||
content_.leniQuota = std::stoi(contentNode["LeniQuota"].asString());
|
||||
if(!contentNode["LniSipQuota"].isNull())
|
||||
content_.lniSipQuota = std::stoi(contentNode["LniSipQuota"].asString());
|
||||
if(!contentNode["LeniSipQuota"].isNull())
|
||||
content_.leniSipQuota = std::stoi(contentNode["LeniSipQuota"].asString());
|
||||
if(!contentNode["HdeniQuota"].isNull())
|
||||
content_.hdeniQuota = std::stoi(contentNode["HdeniQuota"].asString());
|
||||
auto allVSwitches = contentNode["VSwitches"]["VSwitche"];
|
||||
|
||||
@@ -57,6 +57,10 @@ void ListNodeInfosForPodResult::parse(const std::string &payload)
|
||||
contentObject.leniQuota = std::stoi(valueContentContentItem["LeniQuota"].asString());
|
||||
if(!valueContentContentItem["LniSipQuota"].isNull())
|
||||
contentObject.lniSipQuota = std::stoi(valueContentContentItem["LniSipQuota"].asString());
|
||||
if(!valueContentContentItem["LeniSipQuota"].isNull())
|
||||
contentObject.leniSipQuota = std::stoi(valueContentContentItem["LeniSipQuota"].asString());
|
||||
if(!valueContentContentItem["HdeniQuota"].isNull())
|
||||
contentObject.hdeniQuota = std::stoi(valueContentContentItem["HdeniQuota"].asString());
|
||||
auto allVSwitches = value["VSwitches"]["VSwitche"];
|
||||
for (auto value : allVSwitches)
|
||||
contentObject.vSwitches.push_back(value.asString());
|
||||
|
||||
Reference in New Issue
Block a user