Update HDENI and LENI API.

This commit is contained in:
sdk-team
2024-05-06 08:43:09 +00:00
parent ac7c0da065
commit cbe97f842a
52 changed files with 1667 additions and 13 deletions

View File

@@ -51,6 +51,42 @@ EfloClient::EfloClient(const std::string & accessKeyId, const std::string & acce
EfloClient::~EfloClient()
{}
EfloClient::AssignLeniPrivateIpAddressOutcome EfloClient::assignLeniPrivateIpAddress(const AssignLeniPrivateIpAddressRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AssignLeniPrivateIpAddressOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AssignLeniPrivateIpAddressOutcome(AssignLeniPrivateIpAddressResult(outcome.result()));
else
return AssignLeniPrivateIpAddressOutcome(outcome.error());
}
void EfloClient::assignLeniPrivateIpAddressAsync(const AssignLeniPrivateIpAddressRequest& request, const AssignLeniPrivateIpAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, assignLeniPrivateIpAddress(request), context);
};
asyncExecute(new Runnable(fn));
}
EfloClient::AssignLeniPrivateIpAddressOutcomeCallable EfloClient::assignLeniPrivateIpAddressCallable(const AssignLeniPrivateIpAddressRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AssignLeniPrivateIpAddressOutcome()>>(
[this, request]()
{
return this->assignLeniPrivateIpAddress(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EfloClient::AssignPrivateIpAddressOutcome EfloClient::assignPrivateIpAddress(const AssignPrivateIpAddressRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1059,6 +1095,42 @@ EfloClient::GetFabricTopologyOutcomeCallable EfloClient::getFabricTopologyCallab
return task->get_future();
}
EfloClient::GetLeniPrivateIpAddressOutcome EfloClient::getLeniPrivateIpAddress(const GetLeniPrivateIpAddressRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetLeniPrivateIpAddressOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetLeniPrivateIpAddressOutcome(GetLeniPrivateIpAddressResult(outcome.result()));
else
return GetLeniPrivateIpAddressOutcome(outcome.error());
}
void EfloClient::getLeniPrivateIpAddressAsync(const GetLeniPrivateIpAddressRequest& request, const GetLeniPrivateIpAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getLeniPrivateIpAddress(request), context);
};
asyncExecute(new Runnable(fn));
}
EfloClient::GetLeniPrivateIpAddressOutcomeCallable EfloClient::getLeniPrivateIpAddressCallable(const GetLeniPrivateIpAddressRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetLeniPrivateIpAddressOutcome()>>(
[this, request]()
{
return this->getLeniPrivateIpAddress(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EfloClient::GetLniPrivateIpAddressOutcome EfloClient::getLniPrivateIpAddress(const GetLniPrivateIpAddressRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1671,6 +1743,42 @@ EfloClient::ListInstancesByNcdOutcomeCallable EfloClient::listInstancesByNcdCall
return task->get_future();
}
EfloClient::ListLeniPrivateIpAddressesOutcome EfloClient::listLeniPrivateIpAddresses(const ListLeniPrivateIpAddressesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListLeniPrivateIpAddressesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListLeniPrivateIpAddressesOutcome(ListLeniPrivateIpAddressesResult(outcome.result()));
else
return ListLeniPrivateIpAddressesOutcome(outcome.error());
}
void EfloClient::listLeniPrivateIpAddressesAsync(const ListLeniPrivateIpAddressesRequest& request, const ListLeniPrivateIpAddressesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listLeniPrivateIpAddresses(request), context);
};
asyncExecute(new Runnable(fn));
}
EfloClient::ListLeniPrivateIpAddressesOutcomeCallable EfloClient::listLeniPrivateIpAddressesCallable(const ListLeniPrivateIpAddressesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListLeniPrivateIpAddressesOutcome()>>(
[this, request]()
{
return this->listLeniPrivateIpAddresses(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EfloClient::ListLniPrivateIpAddressOutcome EfloClient::listLniPrivateIpAddress(const ListLniPrivateIpAddressRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2139,6 +2247,42 @@ EfloClient::UnAssociateVpdCidrBlockOutcomeCallable EfloClient::unAssociateVpdCid
return task->get_future();
}
EfloClient::UnassignLeniPrivateIpAddressOutcome EfloClient::unassignLeniPrivateIpAddress(const UnassignLeniPrivateIpAddressRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UnassignLeniPrivateIpAddressOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UnassignLeniPrivateIpAddressOutcome(UnassignLeniPrivateIpAddressResult(outcome.result()));
else
return UnassignLeniPrivateIpAddressOutcome(outcome.error());
}
void EfloClient::unassignLeniPrivateIpAddressAsync(const UnassignLeniPrivateIpAddressRequest& request, const UnassignLeniPrivateIpAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, unassignLeniPrivateIpAddress(request), context);
};
asyncExecute(new Runnable(fn));
}
EfloClient::UnassignLeniPrivateIpAddressOutcomeCallable EfloClient::unassignLeniPrivateIpAddressCallable(const UnassignLeniPrivateIpAddressRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UnassignLeniPrivateIpAddressOutcome()>>(
[this, request]()
{
return this->unassignLeniPrivateIpAddress(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EfloClient::UpdateElasticNetworkInterfaceOutcome EfloClient::updateElasticNetworkInterface(const UpdateElasticNetworkInterfaceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2283,6 +2427,42 @@ EfloClient::UpdateErRouteMapOutcomeCallable EfloClient::updateErRouteMapCallable
return task->get_future();
}
EfloClient::UpdateLeniPrivateIpAddressOutcome EfloClient::updateLeniPrivateIpAddress(const UpdateLeniPrivateIpAddressRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateLeniPrivateIpAddressOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateLeniPrivateIpAddressOutcome(UpdateLeniPrivateIpAddressResult(outcome.result()));
else
return UpdateLeniPrivateIpAddressOutcome(outcome.error());
}
void EfloClient::updateLeniPrivateIpAddressAsync(const UpdateLeniPrivateIpAddressRequest& request, const UpdateLeniPrivateIpAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateLeniPrivateIpAddress(request), context);
};
asyncExecute(new Runnable(fn));
}
EfloClient::UpdateLeniPrivateIpAddressOutcomeCallable EfloClient::updateLeniPrivateIpAddressCallable(const UpdateLeniPrivateIpAddressRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateLeniPrivateIpAddressOutcome()>>(
[this, request]()
{
return this->updateLeniPrivateIpAddress(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EfloClient::UpdateSubnetOutcome EfloClient::updateSubnet(const UpdateSubnetRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,72 @@
/*
* 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/eflo/model/AssignLeniPrivateIpAddressRequest.h>
using AlibabaCloud::Eflo::Model::AssignLeniPrivateIpAddressRequest;
AssignLeniPrivateIpAddressRequest::AssignLeniPrivateIpAddressRequest()
: RpcServiceRequest("eflo", "2022-05-30", "AssignLeniPrivateIpAddress") {
setMethod(HttpRequest::Method::Post);
}
AssignLeniPrivateIpAddressRequest::~AssignLeniPrivateIpAddressRequest() {}
std::string AssignLeniPrivateIpAddressRequest::getClientToken() const {
return clientToken_;
}
void AssignLeniPrivateIpAddressRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setBodyParameter(std::string("ClientToken"), clientToken);
}
std::string AssignLeniPrivateIpAddressRequest::getDescription() const {
return description_;
}
void AssignLeniPrivateIpAddressRequest::setDescription(const std::string &description) {
description_ = description;
setBodyParameter(std::string("Description"), description);
}
std::string AssignLeniPrivateIpAddressRequest::getPrivateIpAddress() const {
return privateIpAddress_;
}
void AssignLeniPrivateIpAddressRequest::setPrivateIpAddress(const std::string &privateIpAddress) {
privateIpAddress_ = privateIpAddress;
setBodyParameter(std::string("PrivateIpAddress"), privateIpAddress);
}
std::string AssignLeniPrivateIpAddressRequest::getRegionId() const {
return regionId_;
}
void AssignLeniPrivateIpAddressRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string AssignLeniPrivateIpAddressRequest::getElasticNetworkInterfaceId() const {
return elasticNetworkInterfaceId_;
}
void AssignLeniPrivateIpAddressRequest::setElasticNetworkInterfaceId(const std::string &elasticNetworkInterfaceId) {
elasticNetworkInterfaceId_ = elasticNetworkInterfaceId;
setBodyParameter(std::string("ElasticNetworkInterfaceId"), elasticNetworkInterfaceId);
}

View File

@@ -0,0 +1,68 @@
/*
* 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/eflo/model/AssignLeniPrivateIpAddressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
AssignLeniPrivateIpAddressResult::AssignLeniPrivateIpAddressResult() :
ServiceResult()
{}
AssignLeniPrivateIpAddressResult::AssignLeniPrivateIpAddressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AssignLeniPrivateIpAddressResult::~AssignLeniPrivateIpAddressResult()
{}
void AssignLeniPrivateIpAddressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["IpName"].isNull())
content_.ipName = contentNode["IpName"].asString();
if(!contentNode["ElasticNetworkInterfaceId"].isNull())
content_.elasticNetworkInterfaceId = contentNode["ElasticNetworkInterfaceId"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string AssignLeniPrivateIpAddressResult::getMessage()const
{
return message_;
}
AssignLeniPrivateIpAddressResult::Content AssignLeniPrivateIpAddressResult::getContent()const
{
return content_;
}
int AssignLeniPrivateIpAddressResult::getCode()const
{
return code_;
}

View File

@@ -52,15 +52,6 @@ void DeleteVpdGrantRuleRequest::setInstanceId(const std::string &instanceId) {
setBodyParameter(std::string("InstanceId"), instanceId);
}
std::string DeleteVpdGrantRuleRequest::getGrantRuleId() const {
return grantRuleId_;
}
void DeleteVpdGrantRuleRequest::setGrantRuleId(const std::string &grantRuleId) {
grantRuleId_ = grantRuleId;
setBodyParameter(std::string("GrantRuleId"), grantRuleId);
}
std::string DeleteVpdGrantRuleRequest::getRegionId() const {
return regionId_;
}
@@ -70,3 +61,12 @@ void DeleteVpdGrantRuleRequest::setRegionId(const std::string &regionId) {
setBodyParameter(std::string("RegionId"), regionId);
}
std::string DeleteVpdGrantRuleRequest::getGrantRuleId() const {
return grantRuleId_;
}
void DeleteVpdGrantRuleRequest::setGrantRuleId(const std::string &grantRuleId) {
grantRuleId_ = grantRuleId;
setBodyParameter(std::string("GrantRuleId"), grantRuleId);
}

View File

@@ -72,6 +72,8 @@ void GetElasticNetworkInterfaceResult::parse(const std::string &payload)
content_.gmtModified = contentNode["GmtModified"].asString();
if(!contentNode["Description"].isNull())
content_.description = contentNode["Description"].asString();
if(!contentNode["SecurityGroupId"].isNull())
content_.securityGroupId = contentNode["SecurityGroupId"].asString();
auto allPrivateIpAddressesNode = contentNode["PrivateIpAddresses"]["PrivateIpAddress"];
for (auto contentNodePrivateIpAddressesPrivateIpAddress : allPrivateIpAddressesNode)
{

View File

@@ -0,0 +1,54 @@
/*
* 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/eflo/model/GetLeniPrivateIpAddressRequest.h>
using AlibabaCloud::Eflo::Model::GetLeniPrivateIpAddressRequest;
GetLeniPrivateIpAddressRequest::GetLeniPrivateIpAddressRequest()
: RpcServiceRequest("eflo", "2022-05-30", "GetLeniPrivateIpAddress") {
setMethod(HttpRequest::Method::Post);
}
GetLeniPrivateIpAddressRequest::~GetLeniPrivateIpAddressRequest() {}
std::string GetLeniPrivateIpAddressRequest::getRegionId() const {
return regionId_;
}
void GetLeniPrivateIpAddressRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string GetLeniPrivateIpAddressRequest::getIpName() const {
return ipName_;
}
void GetLeniPrivateIpAddressRequest::setIpName(const std::string &ipName) {
ipName_ = ipName;
setBodyParameter(std::string("IpName"), ipName);
}
std::string GetLeniPrivateIpAddressRequest::getElasticNetworkInterfaceId() const {
return elasticNetworkInterfaceId_;
}
void GetLeniPrivateIpAddressRequest::setElasticNetworkInterfaceId(const std::string &elasticNetworkInterfaceId) {
elasticNetworkInterfaceId_ = elasticNetworkInterfaceId;
setBodyParameter(std::string("ElasticNetworkInterfaceId"), elasticNetworkInterfaceId);
}

View File

@@ -0,0 +1,82 @@
/*
* 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/eflo/model/GetLeniPrivateIpAddressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
GetLeniPrivateIpAddressResult::GetLeniPrivateIpAddressResult() :
ServiceResult()
{}
GetLeniPrivateIpAddressResult::GetLeniPrivateIpAddressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetLeniPrivateIpAddressResult::~GetLeniPrivateIpAddressResult()
{}
void GetLeniPrivateIpAddressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["ElasticNetworkInterfaceId"].isNull())
content_.elasticNetworkInterfaceId = contentNode["ElasticNetworkInterfaceId"].asString();
if(!contentNode["RegionId"].isNull())
content_.regionId = contentNode["RegionId"].asString();
if(!contentNode["GmtCreate"].isNull())
content_.gmtCreate = contentNode["GmtCreate"].asString();
if(!contentNode["GmtModified"].isNull())
content_.gmtModified = contentNode["GmtModified"].asString();
if(!contentNode["IpName"].isNull())
content_.ipName = contentNode["IpName"].asString();
if(!contentNode["PrivateIpAddress"].isNull())
content_.privateIpAddress = contentNode["PrivateIpAddress"].asString();
if(!contentNode["Status"].isNull())
content_.status = contentNode["Status"].asString();
if(!contentNode["Description"].isNull())
content_.description = contentNode["Description"].asString();
if(!contentNode["Message"].isNull())
content_.message = contentNode["Message"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetLeniPrivateIpAddressResult::getMessage()const
{
return message_;
}
GetLeniPrivateIpAddressResult::Content GetLeniPrivateIpAddressResult::getContent()const
{
return content_;
}
int GetLeniPrivateIpAddressResult::getCode()const
{
return code_;
}

View File

@@ -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["HdeniQuota"].isNull())
content_.hdeniQuota = std::stoi(contentNode["HdeniQuota"].asString());
auto allVSwitches = contentNode["VSwitches"]["VSwitche"];
for (auto value : allVSwitches)
content_.vSwitches.push_back(value.asString());

View File

@@ -60,6 +60,8 @@ void GetVccGrantRuleResult::parse(const std::string &payload)
content_.createTime = contentNode["CreateTime"].asString();
if(!contentNode["GrantRuleId"].isNull())
content_.grantRuleId = contentNode["GrantRuleId"].asString();
if(!contentNode["ResourceGroupId"].isNull())
content_.resourceGroupId = contentNode["ResourceGroupId"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())

View File

@@ -25,6 +25,15 @@ GetVccRequest::GetVccRequest()
GetVccRequest::~GetVccRequest() {}
std::string GetVccRequest::getClientToken() const {
return clientToken_;
}
void GetVccRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setBodyParameter(std::string("ClientToken"), clientToken);
}
int GetVccRequest::getPageNumber() const {
return pageNumber_;
}

View File

@@ -184,6 +184,38 @@ void GetVccResult::parse(const std::string &payload)
tagObject.tagValue = contentNodeTagsTag["TagValue"].asString();
content_.tags.push_back(tagObject);
}
auto allVbrInfosNode = contentNode["VbrInfos"]["VbrInfo"];
for (auto contentNodeVbrInfosVbrInfo : allVbrInfosNode)
{
Content::VbrInfo vbrInfoObject;
if(!contentNodeVbrInfosVbrInfo["VbrId"].isNull())
vbrInfoObject.vbrId = contentNodeVbrInfosVbrInfo["VbrId"].asString();
if(!contentNodeVbrInfosVbrInfo["CenId"].isNull())
vbrInfoObject.cenId = contentNodeVbrInfosVbrInfo["CenId"].asString();
if(!contentNodeVbrInfosVbrInfo["Status"].isNull())
vbrInfoObject.status = contentNodeVbrInfosVbrInfo["Status"].asString();
if(!contentNodeVbrInfosVbrInfo["GmtCreate"].isNull())
vbrInfoObject.gmtCreate = contentNodeVbrInfosVbrInfo["GmtCreate"].asString();
if(!contentNodeVbrInfosVbrInfo["GmtModified"].isNull())
vbrInfoObject.gmtModified = contentNodeVbrInfosVbrInfo["GmtModified"].asString();
auto allVbrBgpPeersNode = contentNodeVbrInfosVbrInfo["VbrBgpPeers"]["VbrBgpPeer"];
for (auto contentNodeVbrInfosVbrInfoVbrBgpPeersVbrBgpPeer : allVbrBgpPeersNode)
{
Content::VbrInfo::VbrBgpPeer vbrBgpPeersObject;
if(!contentNodeVbrInfosVbrInfoVbrBgpPeersVbrBgpPeer["BgpGroupId"].isNull())
vbrBgpPeersObject.bgpGroupId = contentNodeVbrInfosVbrInfoVbrBgpPeersVbrBgpPeer["BgpGroupId"].asString();
if(!contentNodeVbrInfosVbrInfoVbrBgpPeersVbrBgpPeer["BgpPeerId"].isNull())
vbrBgpPeersObject.bgpPeerId = contentNodeVbrInfosVbrInfoVbrBgpPeersVbrBgpPeer["BgpPeerId"].asString();
if(!contentNodeVbrInfosVbrInfoVbrBgpPeersVbrBgpPeer["PeerIpAddress"].isNull())
vbrBgpPeersObject.peerIpAddress = contentNodeVbrInfosVbrInfoVbrBgpPeersVbrBgpPeer["PeerIpAddress"].asString();
if(!contentNodeVbrInfosVbrInfoVbrBgpPeersVbrBgpPeer["PeerAsn"].isNull())
vbrBgpPeersObject.peerAsn = contentNodeVbrInfosVbrInfoVbrBgpPeersVbrBgpPeer["PeerAsn"].asString();
if(!contentNodeVbrInfosVbrInfoVbrBgpPeersVbrBgpPeer["Status"].isNull())
vbrBgpPeersObject.status = contentNodeVbrInfosVbrInfoVbrBgpPeersVbrBgpPeer["Status"].asString();
vbrInfoObject.vbrBgpPeers.push_back(vbrBgpPeersObject);
}
content_.vbrInfos.push_back(vbrInfoObject);
}
auto vpdBaseInfoNode = contentNode["VpdBaseInfo"];
if(!vpdBaseInfoNode["VpdId"].isNull())
content_.vpdBaseInfo.vpdId = vpdBaseInfoNode["VpdId"].asString();

View File

@@ -60,6 +60,8 @@ void GetVccRouteEntryResult::parse(const std::string &payload)
content_.status = contentNode["Status"].asString();
if(!contentNode["GmtModified"].isNull())
content_.gmtModified = contentNode["GmtModified"].asString();
if(!contentNode["Message"].isNull())
content_.message = contentNode["Message"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())

View File

@@ -60,6 +60,8 @@ void GetVpdGrantRuleResult::parse(const std::string &payload)
content_.createTime = contentNode["CreateTime"].asString();
if(!contentNode["GrantRuleId"].isNull())
content_.grantRuleId = contentNode["GrantRuleId"].asString();
if(!contentNode["ResourceGroupId"].isNull())
content_.resourceGroupId = contentNode["ResourceGroupId"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())

View File

@@ -78,6 +78,8 @@ void ListElasticNetworkInterfacesResult::parse(const std::string &payload)
dataItemObject.gmtModified = contentNodeDataDataItem["GmtModified"].asString();
if(!contentNodeDataDataItem["Description"].isNull())
dataItemObject.description = contentNodeDataDataItem["Description"].asString();
if(!contentNodeDataDataItem["SecurityGroupId"].isNull())
dataItemObject.securityGroupId = contentNodeDataDataItem["SecurityGroupId"].asString();
content_.data.push_back(dataItemObject);
}
if(!value["Code"].isNull())

View File

@@ -0,0 +1,90 @@
/*
* 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/eflo/model/ListLeniPrivateIpAddressesRequest.h>
using AlibabaCloud::Eflo::Model::ListLeniPrivateIpAddressesRequest;
ListLeniPrivateIpAddressesRequest::ListLeniPrivateIpAddressesRequest()
: RpcServiceRequest("eflo", "2022-05-30", "ListLeniPrivateIpAddresses") {
setMethod(HttpRequest::Method::Post);
}
ListLeniPrivateIpAddressesRequest::~ListLeniPrivateIpAddressesRequest() {}
int ListLeniPrivateIpAddressesRequest::getPageNumber() const {
return pageNumber_;
}
void ListLeniPrivateIpAddressesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListLeniPrivateIpAddressesRequest::getRegionId() const {
return regionId_;
}
void ListLeniPrivateIpAddressesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
int ListLeniPrivateIpAddressesRequest::getPageSize() const {
return pageSize_;
}
void ListLeniPrivateIpAddressesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListLeniPrivateIpAddressesRequest::getPrivateIpAddress() const {
return privateIpAddress_;
}
void ListLeniPrivateIpAddressesRequest::setPrivateIpAddress(const std::string &privateIpAddress) {
privateIpAddress_ = privateIpAddress;
setBodyParameter(std::string("PrivateIpAddress"), privateIpAddress);
}
std::string ListLeniPrivateIpAddressesRequest::getIpName() const {
return ipName_;
}
void ListLeniPrivateIpAddressesRequest::setIpName(const std::string &ipName) {
ipName_ = ipName;
setBodyParameter(std::string("IpName"), ipName);
}
std::string ListLeniPrivateIpAddressesRequest::getElasticNetworkInterfaceId() const {
return elasticNetworkInterfaceId_;
}
void ListLeniPrivateIpAddressesRequest::setElasticNetworkInterfaceId(const std::string &elasticNetworkInterfaceId) {
elasticNetworkInterfaceId_ = elasticNetworkInterfaceId;
setBodyParameter(std::string("ElasticNetworkInterfaceId"), elasticNetworkInterfaceId);
}
std::string ListLeniPrivateIpAddressesRequest::getStatus() const {
return status_;
}
void ListLeniPrivateIpAddressesRequest::setStatus(const std::string &status) {
status_ = status;
setBodyParameter(std::string("Status"), status);
}

View File

@@ -0,0 +1,90 @@
/*
* 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/eflo/model/ListLeniPrivateIpAddressesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
ListLeniPrivateIpAddressesResult::ListLeniPrivateIpAddressesResult() :
ServiceResult()
{}
ListLeniPrivateIpAddressesResult::ListLeniPrivateIpAddressesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListLeniPrivateIpAddressesResult::~ListLeniPrivateIpAddressesResult()
{}
void ListLeniPrivateIpAddressesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["Total"].isNull())
content_.total = std::stol(contentNode["Total"].asString());
auto allDataNode = contentNode["Data"]["DataItem"];
for (auto contentNodeDataDataItem : allDataNode)
{
Content::DataItem dataItemObject;
if(!contentNodeDataDataItem["ElasticNetworkInterfaceId"].isNull())
dataItemObject.elasticNetworkInterfaceId = contentNodeDataDataItem["ElasticNetworkInterfaceId"].asString();
if(!contentNodeDataDataItem["RegionId"].isNull())
dataItemObject.regionId = contentNodeDataDataItem["RegionId"].asString();
if(!contentNodeDataDataItem["GmtCreate"].isNull())
dataItemObject.gmtCreate = contentNodeDataDataItem["GmtCreate"].asString();
if(!contentNodeDataDataItem["GmtModified"].isNull())
dataItemObject.gmtModified = contentNodeDataDataItem["GmtModified"].asString();
if(!contentNodeDataDataItem["IpName"].isNull())
dataItemObject.ipName = contentNodeDataDataItem["IpName"].asString();
if(!contentNodeDataDataItem["PrivateIpAddress"].isNull())
dataItemObject.privateIpAddress = contentNodeDataDataItem["PrivateIpAddress"].asString();
if(!contentNodeDataDataItem["Status"].isNull())
dataItemObject.status = contentNodeDataDataItem["Status"].asString();
if(!contentNodeDataDataItem["Description"].isNull())
dataItemObject.description = contentNodeDataDataItem["Description"].asString();
if(!contentNodeDataDataItem["Message"].isNull())
dataItemObject.message = contentNodeDataDataItem["Message"].asString();
content_.data.push_back(dataItemObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListLeniPrivateIpAddressesResult::getMessage()const
{
return message_;
}
ListLeniPrivateIpAddressesResult::Content ListLeniPrivateIpAddressesResult::getContent()const
{
return content_;
}
int ListLeniPrivateIpAddressesResult::getCode()const
{
return code_;
}

View File

@@ -43,6 +43,15 @@ void ListVccGrantRulesRequest::setPageNumber(int pageNumber) {
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListVccGrantRulesRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void ListVccGrantRulesRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setBodyParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string ListVccGrantRulesRequest::getRegionId() const {
return regionId_;
}

View File

@@ -66,6 +66,8 @@ void ListVccGrantRulesResult::parse(const std::string &payload)
dataItemObject.createTime = contentNodeDataDataItem["CreateTime"].asString();
if(!contentNodeDataDataItem["GrantRuleId"].isNull())
dataItemObject.grantRuleId = contentNodeDataDataItem["GrantRuleId"].asString();
if(!contentNodeDataDataItem["ResourceGroupId"].isNull())
dataItemObject.resourceGroupId = contentNodeDataDataItem["ResourceGroupId"].asString();
content_.data.push_back(dataItemObject);
}
if(!value["Code"].isNull())

View File

@@ -68,6 +68,8 @@ void ListVccRouteEntriesResult::parse(const std::string &payload)
dataItemObject.status = contentNodeDataDataItem["Status"].asString();
if(!contentNodeDataDataItem["GmtModified"].isNull())
dataItemObject.gmtModified = contentNodeDataDataItem["GmtModified"].asString();
if(!contentNodeDataDataItem["Message"].isNull())
dataItemObject.message = contentNodeDataDataItem["Message"].asString();
content_.data.push_back(dataItemObject);
}
if(!value["Code"].isNull())

View File

@@ -43,6 +43,15 @@ void ListVpdGrantRulesRequest::setPageNumber(int pageNumber) {
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListVpdGrantRulesRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void ListVpdGrantRulesRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setBodyParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string ListVpdGrantRulesRequest::getRegionId() const {
return regionId_;
}

View File

@@ -66,6 +66,8 @@ void ListVpdGrantRulesResult::parse(const std::string &payload)
dataItemObject.createTime = contentNodeDataDataItem["CreateTime"].asString();
if(!contentNodeDataDataItem["GrantRuleId"].isNull())
dataItemObject.grantRuleId = contentNodeDataDataItem["GrantRuleId"].asString();
if(!contentNodeDataDataItem["ResourceGroupId"].isNull())
dataItemObject.resourceGroupId = contentNodeDataDataItem["ResourceGroupId"].asString();
content_.data.push_back(dataItemObject);
}
if(!value["Code"].isNull())

View File

@@ -0,0 +1,63 @@
/*
* 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/eflo/model/UnassignLeniPrivateIpAddressRequest.h>
using AlibabaCloud::Eflo::Model::UnassignLeniPrivateIpAddressRequest;
UnassignLeniPrivateIpAddressRequest::UnassignLeniPrivateIpAddressRequest()
: RpcServiceRequest("eflo", "2022-05-30", "UnassignLeniPrivateIpAddress") {
setMethod(HttpRequest::Method::Post);
}
UnassignLeniPrivateIpAddressRequest::~UnassignLeniPrivateIpAddressRequest() {}
std::string UnassignLeniPrivateIpAddressRequest::getClientToken() const {
return clientToken_;
}
void UnassignLeniPrivateIpAddressRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setBodyParameter(std::string("ClientToken"), clientToken);
}
std::string UnassignLeniPrivateIpAddressRequest::getRegionId() const {
return regionId_;
}
void UnassignLeniPrivateIpAddressRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string UnassignLeniPrivateIpAddressRequest::getIpName() const {
return ipName_;
}
void UnassignLeniPrivateIpAddressRequest::setIpName(const std::string &ipName) {
ipName_ = ipName;
setBodyParameter(std::string("IpName"), ipName);
}
std::string UnassignLeniPrivateIpAddressRequest::getElasticNetworkInterfaceId() const {
return elasticNetworkInterfaceId_;
}
void UnassignLeniPrivateIpAddressRequest::setElasticNetworkInterfaceId(const std::string &elasticNetworkInterfaceId) {
elasticNetworkInterfaceId_ = elasticNetworkInterfaceId;
setBodyParameter(std::string("ElasticNetworkInterfaceId"), elasticNetworkInterfaceId);
}

View File

@@ -0,0 +1,68 @@
/*
* 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/eflo/model/UnassignLeniPrivateIpAddressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
UnassignLeniPrivateIpAddressResult::UnassignLeniPrivateIpAddressResult() :
ServiceResult()
{}
UnassignLeniPrivateIpAddressResult::UnassignLeniPrivateIpAddressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UnassignLeniPrivateIpAddressResult::~UnassignLeniPrivateIpAddressResult()
{}
void UnassignLeniPrivateIpAddressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["IpName"].isNull())
content_.ipName = contentNode["IpName"].asString();
if(!contentNode["ElasticNetworkInterfaceId"].isNull())
content_.elasticNetworkInterfaceId = contentNode["ElasticNetworkInterfaceId"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string UnassignLeniPrivateIpAddressResult::getMessage()const
{
return message_;
}
UnassignLeniPrivateIpAddressResult::Content UnassignLeniPrivateIpAddressResult::getContent()const
{
return content_;
}
int UnassignLeniPrivateIpAddressResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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/eflo/model/UpdateLeniPrivateIpAddressRequest.h>
using AlibabaCloud::Eflo::Model::UpdateLeniPrivateIpAddressRequest;
UpdateLeniPrivateIpAddressRequest::UpdateLeniPrivateIpAddressRequest()
: RpcServiceRequest("eflo", "2022-05-30", "UpdateLeniPrivateIpAddress") {
setMethod(HttpRequest::Method::Post);
}
UpdateLeniPrivateIpAddressRequest::~UpdateLeniPrivateIpAddressRequest() {}
std::string UpdateLeniPrivateIpAddressRequest::getDescription() const {
return description_;
}
void UpdateLeniPrivateIpAddressRequest::setDescription(const std::string &description) {
description_ = description;
setBodyParameter(std::string("Description"), description);
}
std::string UpdateLeniPrivateIpAddressRequest::getRegionId() const {
return regionId_;
}
void UpdateLeniPrivateIpAddressRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setBodyParameter(std::string("RegionId"), regionId);
}
std::string UpdateLeniPrivateIpAddressRequest::getIpName() const {
return ipName_;
}
void UpdateLeniPrivateIpAddressRequest::setIpName(const std::string &ipName) {
ipName_ = ipName;
setBodyParameter(std::string("IpName"), ipName);
}
std::string UpdateLeniPrivateIpAddressRequest::getElasticNetworkInterfaceId() const {
return elasticNetworkInterfaceId_;
}
void UpdateLeniPrivateIpAddressRequest::setElasticNetworkInterfaceId(const std::string &elasticNetworkInterfaceId) {
elasticNetworkInterfaceId_ = elasticNetworkInterfaceId;
setBodyParameter(std::string("ElasticNetworkInterfaceId"), elasticNetworkInterfaceId);
}

View File

@@ -0,0 +1,68 @@
/*
* 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/eflo/model/UpdateLeniPrivateIpAddressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eflo;
using namespace AlibabaCloud::Eflo::Model;
UpdateLeniPrivateIpAddressResult::UpdateLeniPrivateIpAddressResult() :
ServiceResult()
{}
UpdateLeniPrivateIpAddressResult::UpdateLeniPrivateIpAddressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateLeniPrivateIpAddressResult::~UpdateLeniPrivateIpAddressResult()
{}
void UpdateLeniPrivateIpAddressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contentNode = value["Content"];
if(!contentNode["ElasticNetworkInterfaceId"].isNull())
content_.elasticNetworkInterfaceId = contentNode["ElasticNetworkInterfaceId"].asString();
if(!contentNode["IpName"].isNull())
content_.ipName = contentNode["IpName"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string UpdateLeniPrivateIpAddressResult::getMessage()const
{
return message_;
}
UpdateLeniPrivateIpAddressResult::Content UpdateLeniPrivateIpAddressResult::getContent()const
{
return content_;
}
int UpdateLeniPrivateIpAddressResult::getCode()const
{
return code_;
}