Support API ARMInstance.
This commit is contained in:
1116
ens/src/EnsClient.cc
1116
ens/src/EnsClient.cc
File diff suppressed because it is too large
Load Diff
@@ -1,54 +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/ens/model/AllocateEipAddressRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::AllocateEipAddressRequest;
|
||||
|
||||
AllocateEipAddressRequest::AllocateEipAddressRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "AllocateEipAddress") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AllocateEipAddressRequest::~AllocateEipAddressRequest() {}
|
||||
|
||||
int AllocateEipAddressRequest::getMinCount() const {
|
||||
return minCount_;
|
||||
}
|
||||
|
||||
void AllocateEipAddressRequest::setMinCount(int minCount) {
|
||||
minCount_ = minCount;
|
||||
setParameter(std::string("MinCount"), std::to_string(minCount));
|
||||
}
|
||||
|
||||
std::string AllocateEipAddressRequest::getEnsRegionId() const {
|
||||
return ensRegionId_;
|
||||
}
|
||||
|
||||
void AllocateEipAddressRequest::setEnsRegionId(const std::string &ensRegionId) {
|
||||
ensRegionId_ = ensRegionId;
|
||||
setParameter(std::string("EnsRegionId"), ensRegionId);
|
||||
}
|
||||
|
||||
int AllocateEipAddressRequest::getCount() const {
|
||||
return count_;
|
||||
}
|
||||
|
||||
void AllocateEipAddressRequest::setCount(int count) {
|
||||
count_ = count;
|
||||
setParameter(std::string("Count"), std::to_string(count));
|
||||
}
|
||||
|
||||
@@ -1,64 +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/ens/model/AllocateEipAddressResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
AllocateEipAddressResult::AllocateEipAddressResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AllocateEipAddressResult::AllocateEipAddressResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AllocateEipAddressResult::~AllocateEipAddressResult()
|
||||
{}
|
||||
|
||||
void AllocateEipAddressResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEipAddressesNode = value["EipAddresses"]["EipAddress"];
|
||||
for (auto valueEipAddressesEipAddress : allEipAddressesNode)
|
||||
{
|
||||
EipAddress eipAddressesObject;
|
||||
if(!valueEipAddressesEipAddress["Eip"].isNull())
|
||||
eipAddressesObject.eip = valueEipAddressesEipAddress["Eip"].asString();
|
||||
eipAddresses_.push_back(eipAddressesObject);
|
||||
}
|
||||
if(!value["BizStatusCode"].isNull())
|
||||
bizStatusCode_ = value["BizStatusCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<AllocateEipAddressResult::EipAddress> AllocateEipAddressResult::getEipAddresses()const
|
||||
{
|
||||
return eipAddresses_;
|
||||
}
|
||||
|
||||
std::string AllocateEipAddressResult::getBizStatusCode()const
|
||||
{
|
||||
return bizStatusCode_;
|
||||
}
|
||||
|
||||
45
ens/src/model/AssignPrivateIpAddressesRequest.cc
Normal file
45
ens/src/model/AssignPrivateIpAddressesRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/ens/model/AssignPrivateIpAddressesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::AssignPrivateIpAddressesRequest;
|
||||
|
||||
AssignPrivateIpAddressesRequest::AssignPrivateIpAddressesRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "AssignPrivateIpAddresses") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AssignPrivateIpAddressesRequest::~AssignPrivateIpAddressesRequest() {}
|
||||
|
||||
std::string AssignPrivateIpAddressesRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void AssignPrivateIpAddressesRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
std::string AssignPrivateIpAddressesRequest::getNetworkInterfaceId() const {
|
||||
return networkInterfaceId_;
|
||||
}
|
||||
|
||||
void AssignPrivateIpAddressesRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) {
|
||||
networkInterfaceId_ = networkInterfaceId;
|
||||
setParameter(std::string("NetworkInterfaceId"), networkInterfaceId);
|
||||
}
|
||||
|
||||
55
ens/src/model/AssignPrivateIpAddressesResult.cc
Normal file
55
ens/src/model/AssignPrivateIpAddressesResult.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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/ens/model/AssignPrivateIpAddressesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
AssignPrivateIpAddressesResult::AssignPrivateIpAddressesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AssignPrivateIpAddressesResult::AssignPrivateIpAddressesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AssignPrivateIpAddressesResult::~AssignPrivateIpAddressesResult()
|
||||
{}
|
||||
|
||||
void AssignPrivateIpAddressesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto assignedPrivateIpAddressesSetNode = value["AssignedPrivateIpAddressesSet"];
|
||||
if(!assignedPrivateIpAddressesSetNode["NetworkInterfaceId"].isNull())
|
||||
assignedPrivateIpAddressesSet_.networkInterfaceId = assignedPrivateIpAddressesSetNode["NetworkInterfaceId"].asString();
|
||||
auto allPrivateIpSet = assignedPrivateIpAddressesSetNode["PrivateIpSet"]["PrivateIpSet"];
|
||||
for (auto value : allPrivateIpSet)
|
||||
assignedPrivateIpAddressesSet_.privateIpSet.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
AssignPrivateIpAddressesResult::AssignedPrivateIpAddressesSet AssignPrivateIpAddressesResult::getAssignedPrivateIpAddressesSet()const
|
||||
{
|
||||
return assignedPrivateIpAddressesSet_;
|
||||
}
|
||||
|
||||
@@ -1,54 +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/ens/model/AssociateEipAddressRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::AssociateEipAddressRequest;
|
||||
|
||||
AssociateEipAddressRequest::AssociateEipAddressRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "AssociateEipAddress") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AssociateEipAddressRequest::~AssociateEipAddressRequest() {}
|
||||
|
||||
std::string AssociateEipAddressRequest::getEip() const {
|
||||
return eip_;
|
||||
}
|
||||
|
||||
void AssociateEipAddressRequest::setEip(const std::string &eip) {
|
||||
eip_ = eip;
|
||||
setParameter(std::string("Eip"), eip);
|
||||
}
|
||||
|
||||
std::string AssociateEipAddressRequest::getEnsRegionId() const {
|
||||
return ensRegionId_;
|
||||
}
|
||||
|
||||
void AssociateEipAddressRequest::setEnsRegionId(const std::string &ensRegionId) {
|
||||
ensRegionId_ = ensRegionId;
|
||||
setParameter(std::string("EnsRegionId"), ensRegionId);
|
||||
}
|
||||
|
||||
std::string AssociateEipAddressRequest::getInstanceIdInternetIp() const {
|
||||
return instanceIdInternetIp_;
|
||||
}
|
||||
|
||||
void AssociateEipAddressRequest::setInstanceIdInternetIp(const std::string &instanceIdInternetIp) {
|
||||
instanceIdInternetIp_ = instanceIdInternetIp;
|
||||
setParameter(std::string("InstanceIdInternetIp"), instanceIdInternetIp);
|
||||
}
|
||||
|
||||
@@ -1,54 +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/ens/model/CheckQuotaRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::CheckQuotaRequest;
|
||||
|
||||
CheckQuotaRequest::CheckQuotaRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "CheckQuota") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckQuotaRequest::~CheckQuotaRequest() {}
|
||||
|
||||
std::string CheckQuotaRequest::getGroupUuid() const {
|
||||
return groupUuid_;
|
||||
}
|
||||
|
||||
void CheckQuotaRequest::setGroupUuid(const std::string &groupUuid) {
|
||||
groupUuid_ = groupUuid;
|
||||
setParameter(std::string("GroupUuid"), groupUuid);
|
||||
}
|
||||
|
||||
std::string CheckQuotaRequest::getResourceAttribute() const {
|
||||
return resourceAttribute_;
|
||||
}
|
||||
|
||||
void CheckQuotaRequest::setResourceAttribute(const std::string &resourceAttribute) {
|
||||
resourceAttribute_ = resourceAttribute;
|
||||
setBodyParameter(std::string("ResourceAttribute"), resourceAttribute);
|
||||
}
|
||||
|
||||
long CheckQuotaRequest::getAliUid() const {
|
||||
return aliUid_;
|
||||
}
|
||||
|
||||
void CheckQuotaRequest::setAliUid(long aliUid) {
|
||||
aliUid_ = aliUid;
|
||||
setParameter(std::string("AliUid"), std::to_string(aliUid));
|
||||
}
|
||||
|
||||
@@ -1,73 +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/ens/model/ConfigureSecurityGroupPermissionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::ConfigureSecurityGroupPermissionsRequest;
|
||||
|
||||
ConfigureSecurityGroupPermissionsRequest::ConfigureSecurityGroupPermissionsRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "ConfigureSecurityGroupPermissions") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConfigureSecurityGroupPermissionsRequest::~ConfigureSecurityGroupPermissionsRequest() {}
|
||||
|
||||
std::string ConfigureSecurityGroupPermissionsRequest::getSecurityGroupId() const {
|
||||
return securityGroupId_;
|
||||
}
|
||||
|
||||
void ConfigureSecurityGroupPermissionsRequest::setSecurityGroupId(const std::string &securityGroupId) {
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter(std::string("SecurityGroupId"), securityGroupId);
|
||||
}
|
||||
|
||||
std::vector<ConfigureSecurityGroupPermissionsRequest::RevokePermissions> ConfigureSecurityGroupPermissionsRequest::getRevokePermissions() const {
|
||||
return revokePermissions_;
|
||||
}
|
||||
|
||||
void ConfigureSecurityGroupPermissionsRequest::setRevokePermissions(const std::vector<ConfigureSecurityGroupPermissionsRequest::RevokePermissions> &revokePermissions) {
|
||||
revokePermissions_ = revokePermissions;
|
||||
for(int dep1 = 0; dep1 != revokePermissions.size(); dep1++) {
|
||||
setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".SourcePortRange", revokePermissions[dep1].sourcePortRange);
|
||||
setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".PortRange", revokePermissions[dep1].portRange);
|
||||
setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".IpProtocol", revokePermissions[dep1].ipProtocol);
|
||||
setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".SourceCidrIp", revokePermissions[dep1].sourceCidrIp);
|
||||
setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".Priority", std::to_string(revokePermissions[dep1].priority));
|
||||
setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".DestCidrIp", revokePermissions[dep1].destCidrIp);
|
||||
setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".Direction", revokePermissions[dep1].direction);
|
||||
setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".Policy", revokePermissions[dep1].policy);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<ConfigureSecurityGroupPermissionsRequest::AuthorizePermissions> ConfigureSecurityGroupPermissionsRequest::getAuthorizePermissions() const {
|
||||
return authorizePermissions_;
|
||||
}
|
||||
|
||||
void ConfigureSecurityGroupPermissionsRequest::setAuthorizePermissions(const std::vector<ConfigureSecurityGroupPermissionsRequest::AuthorizePermissions> &authorizePermissions) {
|
||||
authorizePermissions_ = authorizePermissions;
|
||||
for(int dep1 = 0; dep1 != authorizePermissions.size(); dep1++) {
|
||||
setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".SourcePortRange", authorizePermissions[dep1].sourcePortRange);
|
||||
setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".PortRange", authorizePermissions[dep1].portRange);
|
||||
setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".IpProtocol", authorizePermissions[dep1].ipProtocol);
|
||||
setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".SourceCidrIp", authorizePermissions[dep1].sourceCidrIp);
|
||||
setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".Description", authorizePermissions[dep1].description);
|
||||
setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".Priority", std::to_string(authorizePermissions[dep1].priority));
|
||||
setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".DestCidrIp", authorizePermissions[dep1].destCidrIp);
|
||||
setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".Direction", authorizePermissions[dep1].direction);
|
||||
setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".Policy", authorizePermissions[dep1].policy);
|
||||
}
|
||||
}
|
||||
|
||||
135
ens/src/model/CreateARMServerInstancesRequest.cc
Normal file
135
ens/src/model/CreateARMServerInstancesRequest.cc
Normal file
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* 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/ens/model/CreateARMServerInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::CreateARMServerInstancesRequest;
|
||||
|
||||
CreateARMServerInstancesRequest::CreateARMServerInstancesRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "CreateARMServerInstances") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateARMServerInstancesRequest::~CreateARMServerInstancesRequest() {}
|
||||
|
||||
std::string CreateARMServerInstancesRequest::getKeyPairName() const {
|
||||
return keyPairName_;
|
||||
}
|
||||
|
||||
void CreateARMServerInstancesRequest::setKeyPairName(const std::string &keyPairName) {
|
||||
keyPairName_ = keyPairName;
|
||||
setParameter(std::string("KeyPairName"), keyPairName);
|
||||
}
|
||||
|
||||
std::string CreateARMServerInstancesRequest::getResolution() const {
|
||||
return resolution_;
|
||||
}
|
||||
|
||||
void CreateARMServerInstancesRequest::setResolution(const std::string &resolution) {
|
||||
resolution_ = resolution;
|
||||
setParameter(std::string("Resolution"), resolution);
|
||||
}
|
||||
|
||||
int CreateARMServerInstancesRequest::getFrequency() const {
|
||||
return frequency_;
|
||||
}
|
||||
|
||||
void CreateARMServerInstancesRequest::setFrequency(int frequency) {
|
||||
frequency_ = frequency;
|
||||
setParameter(std::string("Frequency"), std::to_string(frequency));
|
||||
}
|
||||
|
||||
std::string CreateARMServerInstancesRequest::getEnsRegionId() const {
|
||||
return ensRegionId_;
|
||||
}
|
||||
|
||||
void CreateARMServerInstancesRequest::setEnsRegionId(const std::string &ensRegionId) {
|
||||
ensRegionId_ = ensRegionId;
|
||||
setParameter(std::string("EnsRegionId"), ensRegionId);
|
||||
}
|
||||
|
||||
int CreateARMServerInstancesRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateARMServerInstancesRequest::setPeriod(int period) {
|
||||
period_ = period;
|
||||
setParameter(std::string("Period"), std::to_string(period));
|
||||
}
|
||||
|
||||
std::string CreateARMServerInstancesRequest::getPeriodUnit() const {
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
void CreateARMServerInstancesRequest::setPeriodUnit(const std::string &periodUnit) {
|
||||
periodUnit_ = periodUnit;
|
||||
setParameter(std::string("PeriodUnit"), periodUnit);
|
||||
}
|
||||
|
||||
bool CreateARMServerInstancesRequest::getAutoRenew() const {
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
void CreateARMServerInstancesRequest::setAutoRenew(bool autoRenew) {
|
||||
autoRenew_ = autoRenew;
|
||||
setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateARMServerInstancesRequest::getImageId() const {
|
||||
return imageId_;
|
||||
}
|
||||
|
||||
void CreateARMServerInstancesRequest::setImageId(const std::string &imageId) {
|
||||
imageId_ = imageId;
|
||||
setParameter(std::string("ImageId"), imageId);
|
||||
}
|
||||
|
||||
std::string CreateARMServerInstancesRequest::getServerType() const {
|
||||
return serverType_;
|
||||
}
|
||||
|
||||
void CreateARMServerInstancesRequest::setServerType(const std::string &serverType) {
|
||||
serverType_ = serverType;
|
||||
setParameter(std::string("ServerType"), serverType);
|
||||
}
|
||||
|
||||
std::string CreateARMServerInstancesRequest::getInstanceType() const {
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
void CreateARMServerInstancesRequest::setInstanceType(const std::string &instanceType) {
|
||||
instanceType_ = instanceType;
|
||||
setParameter(std::string("InstanceType"), instanceType);
|
||||
}
|
||||
|
||||
int CreateARMServerInstancesRequest::getAmount() const {
|
||||
return amount_;
|
||||
}
|
||||
|
||||
void CreateARMServerInstancesRequest::setAmount(int amount) {
|
||||
amount_ = amount;
|
||||
setParameter(std::string("Amount"), std::to_string(amount));
|
||||
}
|
||||
|
||||
std::string CreateARMServerInstancesRequest::getPayType() const {
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void CreateARMServerInstancesRequest::setPayType(const std::string &payType) {
|
||||
payType_ = payType;
|
||||
setParameter(std::string("PayType"), payType);
|
||||
}
|
||||
|
||||
@@ -14,59 +14,46 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ens/model/CheckQuotaResult.h>
|
||||
#include <alibabacloud/ens/model/CreateARMServerInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
CheckQuotaResult::CheckQuotaResult() :
|
||||
CreateARMServerInstancesResult::CreateARMServerInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckQuotaResult::CheckQuotaResult(const std::string &payload) :
|
||||
CreateARMServerInstancesResult::CreateARMServerInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckQuotaResult::~CheckQuotaResult()
|
||||
CreateARMServerInstancesResult::~CreateARMServerInstancesResult()
|
||||
{}
|
||||
|
||||
void CheckQuotaResult::parse(const std::string &payload)
|
||||
void CreateARMServerInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Msg"].isNull())
|
||||
msg_ = value["Msg"].asString();
|
||||
if(!value["Desc"].isNull())
|
||||
desc_ = value["Desc"].asString();
|
||||
auto allInstanceIds = value["InstanceIds"]["InstanceIds"];
|
||||
for (const auto &item : allInstanceIds)
|
||||
instanceIds_.push_back(item.asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CheckQuotaResult::getMsg()const
|
||||
std::vector<std::string> CreateARMServerInstancesResult::getInstanceIds()const
|
||||
{
|
||||
return msg_;
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
std::string CheckQuotaResult::getDesc()const
|
||||
std::string CreateARMServerInstancesResult::getOrderId()const
|
||||
{
|
||||
return desc_;
|
||||
}
|
||||
|
||||
std::string CheckQuotaResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CheckQuotaResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
72
ens/src/model/CreateClassicNetworkRequest.cc
Normal file
72
ens/src/model/CreateClassicNetworkRequest.cc
Normal 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/ens/model/CreateClassicNetworkRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::CreateClassicNetworkRequest;
|
||||
|
||||
CreateClassicNetworkRequest::CreateClassicNetworkRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "CreateClassicNetwork") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateClassicNetworkRequest::~CreateClassicNetworkRequest() {}
|
||||
|
||||
std::string CreateClassicNetworkRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateClassicNetworkRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateClassicNetworkRequest::getNetworkType() const {
|
||||
return networkType_;
|
||||
}
|
||||
|
||||
void CreateClassicNetworkRequest::setNetworkType(const std::string &networkType) {
|
||||
networkType_ = networkType;
|
||||
setParameter(std::string("NetworkType"), networkType);
|
||||
}
|
||||
|
||||
std::string CreateClassicNetworkRequest::getEnsRegionId() const {
|
||||
return ensRegionId_;
|
||||
}
|
||||
|
||||
void CreateClassicNetworkRequest::setEnsRegionId(const std::string &ensRegionId) {
|
||||
ensRegionId_ = ensRegionId;
|
||||
setParameter(std::string("EnsRegionId"), ensRegionId);
|
||||
}
|
||||
|
||||
std::string CreateClassicNetworkRequest::getNetworkName() const {
|
||||
return networkName_;
|
||||
}
|
||||
|
||||
void CreateClassicNetworkRequest::setNetworkName(const std::string &networkName) {
|
||||
networkName_ = networkName;
|
||||
setParameter(std::string("NetworkName"), networkName);
|
||||
}
|
||||
|
||||
std::string CreateClassicNetworkRequest::getCidrBlock() const {
|
||||
return cidrBlock_;
|
||||
}
|
||||
|
||||
void CreateClassicNetworkRequest::setCidrBlock(const std::string &cidrBlock) {
|
||||
cidrBlock_ = cidrBlock;
|
||||
setParameter(std::string("CidrBlock"), cidrBlock);
|
||||
}
|
||||
|
||||
51
ens/src/model/CreateClassicNetworkResult.cc
Normal file
51
ens/src/model/CreateClassicNetworkResult.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/ens/model/CreateClassicNetworkResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
CreateClassicNetworkResult::CreateClassicNetworkResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateClassicNetworkResult::CreateClassicNetworkResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateClassicNetworkResult::~CreateClassicNetworkResult()
|
||||
{}
|
||||
|
||||
void CreateClassicNetworkResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["NetworkId"].isNull())
|
||||
networkId_ = value["NetworkId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateClassicNetworkResult::getNetworkId()const
|
||||
{
|
||||
return networkId_;
|
||||
}
|
||||
|
||||
@@ -1,72 +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/ens/model/CreateEPInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::CreateEPInstanceRequest;
|
||||
|
||||
CreateEPInstanceRequest::CreateEPInstanceRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "CreateEPInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEPInstanceRequest::~CreateEPInstanceRequest() {}
|
||||
|
||||
std::string CreateEPInstanceRequest::getNetworkingModel() const {
|
||||
return networkingModel_;
|
||||
}
|
||||
|
||||
void CreateEPInstanceRequest::setNetworkingModel(const std::string &networkingModel) {
|
||||
networkingModel_ = networkingModel;
|
||||
setParameter(std::string("NetworkingModel"), networkingModel);
|
||||
}
|
||||
|
||||
int CreateEPInstanceRequest::getInternetMaxBandwidthOut() const {
|
||||
return internetMaxBandwidthOut_;
|
||||
}
|
||||
|
||||
void CreateEPInstanceRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) {
|
||||
internetMaxBandwidthOut_ = internetMaxBandwidthOut;
|
||||
setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut));
|
||||
}
|
||||
|
||||
std::string CreateEPInstanceRequest::getEPNInstanceType() const {
|
||||
return ePNInstanceType_;
|
||||
}
|
||||
|
||||
void CreateEPInstanceRequest::setEPNInstanceType(const std::string &ePNInstanceType) {
|
||||
ePNInstanceType_ = ePNInstanceType;
|
||||
setParameter(std::string("EPNInstanceType"), ePNInstanceType);
|
||||
}
|
||||
|
||||
std::string CreateEPInstanceRequest::getInternetChargeType() const {
|
||||
return internetChargeType_;
|
||||
}
|
||||
|
||||
void CreateEPInstanceRequest::setInternetChargeType(const std::string &internetChargeType) {
|
||||
internetChargeType_ = internetChargeType;
|
||||
setParameter(std::string("InternetChargeType"), internetChargeType);
|
||||
}
|
||||
|
||||
std::string CreateEPInstanceRequest::getEPNInstanceName() const {
|
||||
return ePNInstanceName_;
|
||||
}
|
||||
|
||||
void CreateEPInstanceRequest::setEPNInstanceName(const std::string &ePNInstanceName) {
|
||||
ePNInstanceName_ = ePNInstanceName;
|
||||
setParameter(std::string("EPNInstanceName"), ePNInstanceName);
|
||||
}
|
||||
|
||||
@@ -1,52 +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/ens/model/CreateElbBuyOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
CreateElbBuyOrderResult::CreateElbBuyOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateElbBuyOrderResult::CreateElbBuyOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateElbBuyOrderResult::~CreateElbBuyOrderResult()
|
||||
{}
|
||||
|
||||
void CreateElbBuyOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLoadBalancerIds = value["LoadBalancerIds"]["LoadBalancerIds"];
|
||||
for (const auto &item : allLoadBalancerIds)
|
||||
loadBalancerIds_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateElbBuyOrderResult::getLoadBalancerIds()const
|
||||
{
|
||||
return loadBalancerIds_;
|
||||
}
|
||||
|
||||
81
ens/src/model/CreateEnsRouteEntryRequest.cc
Normal file
81
ens/src/model/CreateEnsRouteEntryRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/ens/model/CreateEnsRouteEntryRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::CreateEnsRouteEntryRequest;
|
||||
|
||||
CreateEnsRouteEntryRequest::CreateEnsRouteEntryRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "CreateEnsRouteEntry") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEnsRouteEntryRequest::~CreateEnsRouteEntryRequest() {}
|
||||
|
||||
std::string CreateEnsRouteEntryRequest::getRouteEntryName() const {
|
||||
return routeEntryName_;
|
||||
}
|
||||
|
||||
void CreateEnsRouteEntryRequest::setRouteEntryName(const std::string &routeEntryName) {
|
||||
routeEntryName_ = routeEntryName;
|
||||
setParameter(std::string("RouteEntryName"), routeEntryName);
|
||||
}
|
||||
|
||||
std::string CreateEnsRouteEntryRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateEnsRouteEntryRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateEnsRouteEntryRequest::getNextHopId() const {
|
||||
return nextHopId_;
|
||||
}
|
||||
|
||||
void CreateEnsRouteEntryRequest::setNextHopId(const std::string &nextHopId) {
|
||||
nextHopId_ = nextHopId;
|
||||
setParameter(std::string("NextHopId"), nextHopId);
|
||||
}
|
||||
|
||||
std::string CreateEnsRouteEntryRequest::getNextHopType() const {
|
||||
return nextHopType_;
|
||||
}
|
||||
|
||||
void CreateEnsRouteEntryRequest::setNextHopType(const std::string &nextHopType) {
|
||||
nextHopType_ = nextHopType;
|
||||
setParameter(std::string("NextHopType"), nextHopType);
|
||||
}
|
||||
|
||||
std::string CreateEnsRouteEntryRequest::getRouteTableId() const {
|
||||
return routeTableId_;
|
||||
}
|
||||
|
||||
void CreateEnsRouteEntryRequest::setRouteTableId(const std::string &routeTableId) {
|
||||
routeTableId_ = routeTableId;
|
||||
setParameter(std::string("RouteTableId"), routeTableId);
|
||||
}
|
||||
|
||||
std::string CreateEnsRouteEntryRequest::getDestinationCidrBlock() const {
|
||||
return destinationCidrBlock_;
|
||||
}
|
||||
|
||||
void CreateEnsRouteEntryRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) {
|
||||
destinationCidrBlock_ = destinationCidrBlock;
|
||||
setParameter(std::string("DestinationCidrBlock"), destinationCidrBlock);
|
||||
}
|
||||
|
||||
51
ens/src/model/CreateEnsRouteEntryResult.cc
Normal file
51
ens/src/model/CreateEnsRouteEntryResult.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/ens/model/CreateEnsRouteEntryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
CreateEnsRouteEntryResult::CreateEnsRouteEntryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateEnsRouteEntryResult::CreateEnsRouteEntryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateEnsRouteEntryResult::~CreateEnsRouteEntryResult()
|
||||
{}
|
||||
|
||||
void CreateEnsRouteEntryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RouteEntryId"].isNull())
|
||||
routeEntryId_ = value["RouteEntryId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateEnsRouteEntryResult::getRouteEntryId()const
|
||||
{
|
||||
return routeEntryId_;
|
||||
}
|
||||
|
||||
99
ens/src/model/CreateForwardEntryRequest.cc
Normal file
99
ens/src/model/CreateForwardEntryRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* 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/ens/model/CreateForwardEntryRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::CreateForwardEntryRequest;
|
||||
|
||||
CreateForwardEntryRequest::CreateForwardEntryRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "CreateForwardEntry") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateForwardEntryRequest::~CreateForwardEntryRequest() {}
|
||||
|
||||
std::string CreateForwardEntryRequest::getInternalIp() const {
|
||||
return internalIp_;
|
||||
}
|
||||
|
||||
void CreateForwardEntryRequest::setInternalIp(const std::string &internalIp) {
|
||||
internalIp_ = internalIp;
|
||||
setParameter(std::string("InternalIp"), internalIp);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getExternalIp() const {
|
||||
return externalIp_;
|
||||
}
|
||||
|
||||
void CreateForwardEntryRequest::setExternalIp(const std::string &externalIp) {
|
||||
externalIp_ = externalIp;
|
||||
setParameter(std::string("ExternalIp"), externalIp);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getIpProtocol() const {
|
||||
return ipProtocol_;
|
||||
}
|
||||
|
||||
void CreateForwardEntryRequest::setIpProtocol(const std::string &ipProtocol) {
|
||||
ipProtocol_ = ipProtocol;
|
||||
setParameter(std::string("IpProtocol"), ipProtocol);
|
||||
}
|
||||
|
||||
int CreateForwardEntryRequest::getHealthCheckPort() const {
|
||||
return healthCheckPort_;
|
||||
}
|
||||
|
||||
void CreateForwardEntryRequest::setHealthCheckPort(int healthCheckPort) {
|
||||
healthCheckPort_ = healthCheckPort;
|
||||
setParameter(std::string("HealthCheckPort"), std::to_string(healthCheckPort));
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getExternalPort() const {
|
||||
return externalPort_;
|
||||
}
|
||||
|
||||
void CreateForwardEntryRequest::setExternalPort(const std::string &externalPort) {
|
||||
externalPort_ = externalPort;
|
||||
setParameter(std::string("ExternalPort"), externalPort);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getNatGatewayId() const {
|
||||
return natGatewayId_;
|
||||
}
|
||||
|
||||
void CreateForwardEntryRequest::setNatGatewayId(const std::string &natGatewayId) {
|
||||
natGatewayId_ = natGatewayId;
|
||||
setParameter(std::string("NatGatewayId"), natGatewayId);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getForwardEntryName() const {
|
||||
return forwardEntryName_;
|
||||
}
|
||||
|
||||
void CreateForwardEntryRequest::setForwardEntryName(const std::string &forwardEntryName) {
|
||||
forwardEntryName_ = forwardEntryName;
|
||||
setParameter(std::string("ForwardEntryName"), forwardEntryName);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getInternalPort() const {
|
||||
return internalPort_;
|
||||
}
|
||||
|
||||
void CreateForwardEntryRequest::setInternalPort(const std::string &internalPort) {
|
||||
internalPort_ = internalPort;
|
||||
setParameter(std::string("InternalPort"), internalPort);
|
||||
}
|
||||
|
||||
51
ens/src/model/CreateForwardEntryResult.cc
Normal file
51
ens/src/model/CreateForwardEntryResult.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/ens/model/CreateForwardEntryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
CreateForwardEntryResult::CreateForwardEntryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateForwardEntryResult::CreateForwardEntryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateForwardEntryResult::~CreateForwardEntryResult()
|
||||
{}
|
||||
|
||||
void CreateForwardEntryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ForwardEntryId"].isNull())
|
||||
forwardEntryId_ = value["ForwardEntryId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryResult::getForwardEntryId()const
|
||||
{
|
||||
return forwardEntryId_;
|
||||
}
|
||||
|
||||
@@ -169,6 +169,15 @@ void CreateInstanceRequest::setUserData(const std::string &userData) {
|
||||
setParameter(std::string("UserData"), userData);
|
||||
}
|
||||
|
||||
bool CreateInstanceRequest::getPasswordInherit() const {
|
||||
return passwordInherit_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setPasswordInherit(bool passwordInherit) {
|
||||
passwordInherit_ = passwordInherit;
|
||||
setParameter(std::string("PasswordInherit"), passwordInherit ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getInstanceType() const {
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
63
ens/src/model/CreateNatGatewayRequest.cc
Normal file
63
ens/src/model/CreateNatGatewayRequest.cc
Normal 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/ens/model/CreateNatGatewayRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::CreateNatGatewayRequest;
|
||||
|
||||
CreateNatGatewayRequest::CreateNatGatewayRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "CreateNatGateway") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateNatGatewayRequest::~CreateNatGatewayRequest() {}
|
||||
|
||||
std::string CreateNatGatewayRequest::getEnsRegionId() const {
|
||||
return ensRegionId_;
|
||||
}
|
||||
|
||||
void CreateNatGatewayRequest::setEnsRegionId(const std::string &ensRegionId) {
|
||||
ensRegionId_ = ensRegionId;
|
||||
setParameter(std::string("EnsRegionId"), ensRegionId);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateNatGatewayRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateNatGatewayRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string CreateNatGatewayRequest::getNetworkId() const {
|
||||
return networkId_;
|
||||
}
|
||||
|
||||
void CreateNatGatewayRequest::setNetworkId(const std::string &networkId) {
|
||||
networkId_ = networkId;
|
||||
setParameter(std::string("NetworkId"), networkId);
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ens/model/CreateEPInstanceResult.h>
|
||||
#include <alibabacloud/ens/model/CreateNatGatewayResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
CreateEPInstanceResult::CreateEPInstanceResult() :
|
||||
CreateNatGatewayResult::CreateNatGatewayResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateEPInstanceResult::CreateEPInstanceResult(const std::string &payload) :
|
||||
CreateNatGatewayResult::CreateNatGatewayResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateEPInstanceResult::~CreateEPInstanceResult()
|
||||
CreateNatGatewayResult::~CreateNatGatewayResult()
|
||||
{}
|
||||
|
||||
void CreateEPInstanceResult::parse(const std::string &payload)
|
||||
void CreateNatGatewayResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["EPNInstanceId"].isNull())
|
||||
ePNInstanceId_ = value["EPNInstanceId"].asString();
|
||||
if(!value["NatGatewayId"].isNull())
|
||||
natGatewayId_ = value["NatGatewayId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateEPInstanceResult::getEPNInstanceId()const
|
||||
std::string CreateNatGatewayResult::getNatGatewayId()const
|
||||
{
|
||||
return ePNInstanceId_;
|
||||
return natGatewayId_;
|
||||
}
|
||||
|
||||
72
ens/src/model/CreateSnatEntryRequest.cc
Normal file
72
ens/src/model/CreateSnatEntryRequest.cc
Normal 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/ens/model/CreateSnatEntryRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::CreateSnatEntryRequest;
|
||||
|
||||
CreateSnatEntryRequest::CreateSnatEntryRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "CreateSnatEntry") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSnatEntryRequest::~CreateSnatEntryRequest() {}
|
||||
|
||||
std::string CreateSnatEntryRequest::getSourceCIDR() const {
|
||||
return sourceCIDR_;
|
||||
}
|
||||
|
||||
void CreateSnatEntryRequest::setSourceCIDR(const std::string &sourceCIDR) {
|
||||
sourceCIDR_ = sourceCIDR;
|
||||
setParameter(std::string("SourceCIDR"), sourceCIDR);
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryRequest::getSnatIp() const {
|
||||
return snatIp_;
|
||||
}
|
||||
|
||||
void CreateSnatEntryRequest::setSnatIp(const std::string &snatIp) {
|
||||
snatIp_ = snatIp;
|
||||
setParameter(std::string("SnatIp"), snatIp);
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryRequest::getSourceVSwitchId() const {
|
||||
return sourceVSwitchId_;
|
||||
}
|
||||
|
||||
void CreateSnatEntryRequest::setSourceVSwitchId(const std::string &sourceVSwitchId) {
|
||||
sourceVSwitchId_ = sourceVSwitchId;
|
||||
setParameter(std::string("SourceVSwitchId"), sourceVSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryRequest::getNatGatewayId() const {
|
||||
return natGatewayId_;
|
||||
}
|
||||
|
||||
void CreateSnatEntryRequest::setNatGatewayId(const std::string &natGatewayId) {
|
||||
natGatewayId_ = natGatewayId;
|
||||
setParameter(std::string("NatGatewayId"), natGatewayId);
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryRequest::getSnatEntryName() const {
|
||||
return snatEntryName_;
|
||||
}
|
||||
|
||||
void CreateSnatEntryRequest::setSnatEntryName(const std::string &snatEntryName) {
|
||||
snatEntryName_ = snatEntryName;
|
||||
setParameter(std::string("SnatEntryName"), snatEntryName);
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ens/model/CreateDiskBuyOrderResult.h>
|
||||
#include <alibabacloud/ens/model/CreateSnatEntryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
CreateDiskBuyOrderResult::CreateDiskBuyOrderResult() :
|
||||
CreateSnatEntryResult::CreateSnatEntryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDiskBuyOrderResult::CreateDiskBuyOrderResult(const std::string &payload) :
|
||||
CreateSnatEntryResult::CreateSnatEntryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDiskBuyOrderResult::~CreateDiskBuyOrderResult()
|
||||
CreateSnatEntryResult::~CreateSnatEntryResult()
|
||||
{}
|
||||
|
||||
void CreateDiskBuyOrderResult::parse(const std::string &payload)
|
||||
void CreateSnatEntryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
if(!value["SnatEntryId"].isNull())
|
||||
snatEntryId_ = value["SnatEntryId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDiskBuyOrderResult::getOrderId()const
|
||||
std::string CreateSnatEntryResult::getSnatEntryId()const
|
||||
{
|
||||
return orderId_;
|
||||
return snatEntryId_;
|
||||
}
|
||||
|
||||
@@ -1,72 +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/ens/model/CreateVmAndSaveStockRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::CreateVmAndSaveStockRequest;
|
||||
|
||||
CreateVmAndSaveStockRequest::CreateVmAndSaveStockRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "CreateVmAndSaveStock") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateVmAndSaveStockRequest::~CreateVmAndSaveStockRequest() {}
|
||||
|
||||
std::string CreateVmAndSaveStockRequest::getGroupUuid() const {
|
||||
return groupUuid_;
|
||||
}
|
||||
|
||||
void CreateVmAndSaveStockRequest::setGroupUuid(const std::string &groupUuid) {
|
||||
groupUuid_ = groupUuid;
|
||||
setParameter(std::string("GroupUuid"), groupUuid);
|
||||
}
|
||||
|
||||
std::string CreateVmAndSaveStockRequest::getResourceAttribute() const {
|
||||
return resourceAttribute_;
|
||||
}
|
||||
|
||||
void CreateVmAndSaveStockRequest::setResourceAttribute(const std::string &resourceAttribute) {
|
||||
resourceAttribute_ = resourceAttribute;
|
||||
setBodyParameter(std::string("ResourceAttribute"), resourceAttribute);
|
||||
}
|
||||
|
||||
long CreateVmAndSaveStockRequest::getAliUid() const {
|
||||
return aliUid_;
|
||||
}
|
||||
|
||||
void CreateVmAndSaveStockRequest::setAliUid(long aliUid) {
|
||||
aliUid_ = aliUid;
|
||||
setParameter(std::string("AliUid"), std::to_string(aliUid));
|
||||
}
|
||||
|
||||
std::string CreateVmAndSaveStockRequest::getTenant() const {
|
||||
return tenant_;
|
||||
}
|
||||
|
||||
void CreateVmAndSaveStockRequest::setTenant(const std::string &tenant) {
|
||||
tenant_ = tenant;
|
||||
setParameter(std::string("Tenant"), tenant);
|
||||
}
|
||||
|
||||
std::string CreateVmAndSaveStockRequest::getWorkloadUuid() const {
|
||||
return workloadUuid_;
|
||||
}
|
||||
|
||||
void CreateVmAndSaveStockRequest::setWorkloadUuid(const std::string &workloadUuid) {
|
||||
workloadUuid_ = workloadUuid;
|
||||
setParameter(std::string("WorkloadUuid"), workloadUuid);
|
||||
}
|
||||
|
||||
@@ -1,72 +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/ens/model/CreateVmAndSaveStockResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
CreateVmAndSaveStockResult::CreateVmAndSaveStockResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateVmAndSaveStockResult::CreateVmAndSaveStockResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateVmAndSaveStockResult::~CreateVmAndSaveStockResult()
|
||||
{}
|
||||
|
||||
void CreateVmAndSaveStockResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Msg"].isNull())
|
||||
msg_ = value["Msg"].asString();
|
||||
if(!value["Desc"].isNull())
|
||||
desc_ = value["Desc"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateVmAndSaveStockResult::getMsg()const
|
||||
{
|
||||
return msg_;
|
||||
}
|
||||
|
||||
std::string CreateVmAndSaveStockResult::getDesc()const
|
||||
{
|
||||
return desc_;
|
||||
}
|
||||
|
||||
std::string CreateVmAndSaveStockResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateVmAndSaveStockResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
36
ens/src/model/DeleteEnsRouteEntryRequest.cc
Normal file
36
ens/src/model/DeleteEnsRouteEntryRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/ens/model/DeleteEnsRouteEntryRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::DeleteEnsRouteEntryRequest;
|
||||
|
||||
DeleteEnsRouteEntryRequest::DeleteEnsRouteEntryRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DeleteEnsRouteEntry") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteEnsRouteEntryRequest::~DeleteEnsRouteEntryRequest() {}
|
||||
|
||||
std::string DeleteEnsRouteEntryRequest::getRouteEntryId() const {
|
||||
return routeEntryId_;
|
||||
}
|
||||
|
||||
void DeleteEnsRouteEntryRequest::setRouteEntryId(const std::string &routeEntryId) {
|
||||
routeEntryId_ = routeEntryId;
|
||||
setParameter(std::string("RouteEntryId"), routeEntryId);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ens/model/AssociateEipAddressResult.h>
|
||||
#include <alibabacloud/ens/model/DeleteEnsRouteEntryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
AssociateEipAddressResult::AssociateEipAddressResult() :
|
||||
DeleteEnsRouteEntryResult::DeleteEnsRouteEntryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AssociateEipAddressResult::AssociateEipAddressResult(const std::string &payload) :
|
||||
DeleteEnsRouteEntryResult::DeleteEnsRouteEntryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AssociateEipAddressResult::~AssociateEipAddressResult()
|
||||
DeleteEnsRouteEntryResult::~DeleteEnsRouteEntryResult()
|
||||
{}
|
||||
|
||||
void AssociateEipAddressResult::parse(const std::string &payload)
|
||||
void DeleteEnsRouteEntryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
36
ens/src/model/DeleteForwardEntryRequest.cc
Normal file
36
ens/src/model/DeleteForwardEntryRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/ens/model/DeleteForwardEntryRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::DeleteForwardEntryRequest;
|
||||
|
||||
DeleteForwardEntryRequest::DeleteForwardEntryRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DeleteForwardEntry") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteForwardEntryRequest::~DeleteForwardEntryRequest() {}
|
||||
|
||||
std::string DeleteForwardEntryRequest::getForwardEntryId() const {
|
||||
return forwardEntryId_;
|
||||
}
|
||||
|
||||
void DeleteForwardEntryRequest::setForwardEntryId(const std::string &forwardEntryId) {
|
||||
forwardEntryId_ = forwardEntryId;
|
||||
setParameter(std::string("ForwardEntryId"), forwardEntryId);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ens/model/UnassociateEipAddressResult.h>
|
||||
#include <alibabacloud/ens/model/DeleteForwardEntryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
UnassociateEipAddressResult::UnassociateEipAddressResult() :
|
||||
DeleteForwardEntryResult::DeleteForwardEntryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnassociateEipAddressResult::UnassociateEipAddressResult(const std::string &payload) :
|
||||
DeleteForwardEntryResult::DeleteForwardEntryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnassociateEipAddressResult::~UnassociateEipAddressResult()
|
||||
DeleteForwardEntryResult::~DeleteForwardEntryResult()
|
||||
{}
|
||||
|
||||
void UnassociateEipAddressResult::parse(const std::string &payload)
|
||||
void DeleteForwardEntryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -14,23 +14,23 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ens/model/CreateElbBuyOrderRequest.h>
|
||||
#include <alibabacloud/ens/model/DeleteImageRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::CreateElbBuyOrderRequest;
|
||||
using AlibabaCloud::Ens::Model::DeleteImageRequest;
|
||||
|
||||
CreateElbBuyOrderRequest::CreateElbBuyOrderRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "CreateElbBuyOrder") {
|
||||
DeleteImageRequest::DeleteImageRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DeleteImage") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateElbBuyOrderRequest::~CreateElbBuyOrderRequest() {}
|
||||
DeleteImageRequest::~DeleteImageRequest() {}
|
||||
|
||||
std::string CreateElbBuyOrderRequest::getOrderDetails() const {
|
||||
return orderDetails_;
|
||||
std::string DeleteImageRequest::getImageId() const {
|
||||
return imageId_;
|
||||
}
|
||||
|
||||
void CreateElbBuyOrderRequest::setOrderDetails(const std::string &orderDetails) {
|
||||
orderDetails_ = orderDetails;
|
||||
setParameter(std::string("OrderDetails"), orderDetails);
|
||||
void DeleteImageRequest::setImageId(const std::string &imageId) {
|
||||
imageId_ = imageId;
|
||||
setParameter(std::string("ImageId"), imageId);
|
||||
}
|
||||
|
||||
@@ -14,31 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ens/model/ConfigureSecurityGroupPermissionsResult.h>
|
||||
#include <alibabacloud/ens/model/DeleteImageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
ConfigureSecurityGroupPermissionsResult::ConfigureSecurityGroupPermissionsResult() :
|
||||
DeleteImageResult::DeleteImageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ConfigureSecurityGroupPermissionsResult::ConfigureSecurityGroupPermissionsResult(const std::string &payload) :
|
||||
DeleteImageResult::DeleteImageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ConfigureSecurityGroupPermissionsResult::~ConfigureSecurityGroupPermissionsResult()
|
||||
DeleteImageResult::~DeleteImageResult()
|
||||
{}
|
||||
|
||||
void ConfigureSecurityGroupPermissionsResult::parse(const std::string &payload)
|
||||
void DeleteImageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DeleteImageResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void DeleteLoadBalancerListenerRequest::setListenerPort(int listenerPort) {
|
||||
setParameter(std::string("ListenerPort"), std::to_string(listenerPort));
|
||||
}
|
||||
|
||||
std::string DeleteLoadBalancerListenerRequest::getListenerProtocol() const {
|
||||
return listenerProtocol_;
|
||||
}
|
||||
|
||||
void DeleteLoadBalancerListenerRequest::setListenerProtocol(const std::string &listenerProtocol) {
|
||||
listenerProtocol_ = listenerProtocol;
|
||||
setParameter(std::string("ListenerProtocol"), listenerProtocol);
|
||||
}
|
||||
|
||||
std::string DeleteLoadBalancerListenerRequest::getLoadBalancerId() const {
|
||||
return loadBalancerId_;
|
||||
}
|
||||
|
||||
@@ -14,23 +14,23 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ens/model/CreateDiskBuyOrderRequest.h>
|
||||
#include <alibabacloud/ens/model/DeleteNatGatewayRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::CreateDiskBuyOrderRequest;
|
||||
using AlibabaCloud::Ens::Model::DeleteNatGatewayRequest;
|
||||
|
||||
CreateDiskBuyOrderRequest::CreateDiskBuyOrderRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "CreateDiskBuyOrder") {
|
||||
DeleteNatGatewayRequest::DeleteNatGatewayRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DeleteNatGateway") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDiskBuyOrderRequest::~CreateDiskBuyOrderRequest() {}
|
||||
DeleteNatGatewayRequest::~DeleteNatGatewayRequest() {}
|
||||
|
||||
std::string CreateDiskBuyOrderRequest::getOrderDetails() const {
|
||||
return orderDetails_;
|
||||
std::string DeleteNatGatewayRequest::getNatGatewayId() const {
|
||||
return natGatewayId_;
|
||||
}
|
||||
|
||||
void CreateDiskBuyOrderRequest::setOrderDetails(const std::string &orderDetails) {
|
||||
orderDetails_ = orderDetails;
|
||||
setParameter(std::string("OrderDetails"), orderDetails);
|
||||
void DeleteNatGatewayRequest::setNatGatewayId(const std::string &natGatewayId) {
|
||||
natGatewayId_ = natGatewayId;
|
||||
setParameter(std::string("NatGatewayId"), natGatewayId);
|
||||
}
|
||||
|
||||
44
ens/src/model/DeleteNatGatewayResult.cc
Normal file
44
ens/src/model/DeleteNatGatewayResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/ens/model/DeleteNatGatewayResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
DeleteNatGatewayResult::DeleteNatGatewayResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteNatGatewayResult::DeleteNatGatewayResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteNatGatewayResult::~DeleteNatGatewayResult()
|
||||
{}
|
||||
|
||||
void DeleteNatGatewayResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
36
ens/src/model/DeleteSnatEntryRequest.cc
Normal file
36
ens/src/model/DeleteSnatEntryRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/ens/model/DeleteSnatEntryRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::DeleteSnatEntryRequest;
|
||||
|
||||
DeleteSnatEntryRequest::DeleteSnatEntryRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DeleteSnatEntry") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSnatEntryRequest::~DeleteSnatEntryRequest() {}
|
||||
|
||||
std::string DeleteSnatEntryRequest::getSnatEntryId() const {
|
||||
return snatEntryId_;
|
||||
}
|
||||
|
||||
void DeleteSnatEntryRequest::setSnatEntryId(const std::string &snatEntryId) {
|
||||
snatEntryId_ = snatEntryId;
|
||||
setParameter(std::string("SnatEntryId"), snatEntryId);
|
||||
}
|
||||
|
||||
44
ens/src/model/DeleteSnatEntryResult.cc
Normal file
44
ens/src/model/DeleteSnatEntryResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/ens/model/DeleteSnatEntryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
DeleteSnatEntryResult::DeleteSnatEntryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSnatEntryResult::DeleteSnatEntryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSnatEntryResult::~DeleteSnatEntryResult()
|
||||
{}
|
||||
|
||||
void DeleteSnatEntryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,45 +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/ens/model/DeleteVmRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::DeleteVmRequest;
|
||||
|
||||
DeleteVmRequest::DeleteVmRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DeleteVm") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteVmRequest::~DeleteVmRequest() {}
|
||||
|
||||
long DeleteVmRequest::getAliUid() const {
|
||||
return aliUid_;
|
||||
}
|
||||
|
||||
void DeleteVmRequest::setAliUid(long aliUid) {
|
||||
aliUid_ = aliUid;
|
||||
setParameter(std::string("AliUid"), std::to_string(aliUid));
|
||||
}
|
||||
|
||||
std::string DeleteVmRequest::getWorkloadUuid() const {
|
||||
return workloadUuid_;
|
||||
}
|
||||
|
||||
void DeleteVmRequest::setWorkloadUuid(const std::string &workloadUuid) {
|
||||
workloadUuid_ = workloadUuid;
|
||||
setParameter(std::string("WorkloadUuid"), workloadUuid);
|
||||
}
|
||||
|
||||
@@ -1,72 +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/ens/model/DeleteVmResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
DeleteVmResult::DeleteVmResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteVmResult::DeleteVmResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteVmResult::~DeleteVmResult()
|
||||
{}
|
||||
|
||||
void DeleteVmResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Msg"].isNull())
|
||||
msg_ = value["Msg"].asString();
|
||||
if(!value["Desc"].isNull())
|
||||
desc_ = value["Desc"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteVmResult::getMsg()const
|
||||
{
|
||||
return msg_;
|
||||
}
|
||||
|
||||
std::string DeleteVmResult::getDesc()const
|
||||
{
|
||||
return desc_;
|
||||
}
|
||||
|
||||
std::string DeleteVmResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteVmResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
67
ens/src/model/DescribeARMServerInstancesRequest.cc
Normal file
67
ens/src/model/DescribeARMServerInstancesRequest.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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/ens/model/DescribeARMServerInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::DescribeARMServerInstancesRequest;
|
||||
|
||||
DescribeARMServerInstancesRequest::DescribeARMServerInstancesRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DescribeARMServerInstances") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeARMServerInstancesRequest::~DescribeARMServerInstancesRequest() {}
|
||||
|
||||
int DescribeARMServerInstancesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeARMServerInstancesRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeARMServerInstancesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeARMServerInstancesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::vector<DescribeARMServerInstancesRequest::std::string> DescribeARMServerInstancesRequest::getEnsRegionIds() const {
|
||||
return ensRegionIds_;
|
||||
}
|
||||
|
||||
void DescribeARMServerInstancesRequest::setEnsRegionIds(const std::vector<DescribeARMServerInstancesRequest::std::string> &ensRegionIds) {
|
||||
ensRegionIds_ = ensRegionIds;
|
||||
for(int dep1 = 0; dep1 != ensRegionIds.size(); dep1++) {
|
||||
setParameter(std::string("EnsRegionIds") + "." + std::to_string(dep1 + 1), ensRegionIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<DescribeARMServerInstancesRequest::std::string> DescribeARMServerInstancesRequest::getServerIds() const {
|
||||
return serverIds_;
|
||||
}
|
||||
|
||||
void DescribeARMServerInstancesRequest::setServerIds(const std::vector<DescribeARMServerInstancesRequest::std::string> &serverIds) {
|
||||
serverIds_ = serverIds;
|
||||
for(int dep1 = 0; dep1 != serverIds.size(); dep1++) {
|
||||
setParameter(std::string("ServerIds") + "." + std::to_string(dep1 + 1), serverIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
96
ens/src/model/DescribeARMServerInstancesResult.cc
Normal file
96
ens/src/model/DescribeARMServerInstancesResult.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* 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/ens/model/DescribeARMServerInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
DescribeARMServerInstancesResult::DescribeARMServerInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeARMServerInstancesResult::DescribeARMServerInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeARMServerInstancesResult::~DescribeARMServerInstancesResult()
|
||||
{}
|
||||
|
||||
void DescribeARMServerInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allServersNode = value["Servers"]["ServersItem"];
|
||||
for (auto valueServersServersItem : allServersNode)
|
||||
{
|
||||
ServersItem serversObject;
|
||||
if(!valueServersServersItem["CreationTime"].isNull())
|
||||
serversObject.creationTime = valueServersServersItem["CreationTime"].asString();
|
||||
if(!valueServersServersItem["ExpiredTime"].isNull())
|
||||
serversObject.expiredTime = valueServersServersItem["ExpiredTime"].asString();
|
||||
if(!valueServersServersItem["EnsRegionId"].isNull())
|
||||
serversObject.ensRegionId = valueServersServersItem["EnsRegionId"].asString();
|
||||
if(!valueServersServersItem["ServerId"].isNull())
|
||||
serversObject.serverId = valueServersServersItem["ServerId"].asString();
|
||||
if(!valueServersServersItem["SpecName"].isNull())
|
||||
serversObject.specName = valueServersServersItem["SpecName"].asString();
|
||||
if(!valueServersServersItem["State"].isNull())
|
||||
serversObject.state = valueServersServersItem["State"].asString();
|
||||
if(!valueServersServersItem["Status"].isNull())
|
||||
serversObject.status = valueServersServersItem["Status"].asString();
|
||||
auto allAICInstancesNode = valueServersServersItem["AICInstances"]["AICInstancesItem"];
|
||||
for (auto valueServersServersItemAICInstancesAICInstancesItem : allAICInstancesNode)
|
||||
{
|
||||
ServersItem::AICInstancesItem aICInstancesObject;
|
||||
if(!valueServersServersItemAICInstancesAICInstancesItem["Frequency"].isNull())
|
||||
aICInstancesObject.frequency = std::stol(valueServersServersItemAICInstancesAICInstancesItem["Frequency"].asString());
|
||||
if(!valueServersServersItemAICInstancesAICInstancesItem["ImageId"].isNull())
|
||||
aICInstancesObject.imageId = valueServersServersItemAICInstancesAICInstancesItem["ImageId"].asString();
|
||||
if(!valueServersServersItemAICInstancesAICInstancesItem["InstanceId"].isNull())
|
||||
aICInstancesObject.instanceId = valueServersServersItemAICInstancesAICInstancesItem["InstanceId"].asString();
|
||||
if(!valueServersServersItemAICInstancesAICInstancesItem["Resolution"].isNull())
|
||||
aICInstancesObject.resolution = valueServersServersItemAICInstancesAICInstancesItem["Resolution"].asString();
|
||||
if(!valueServersServersItemAICInstancesAICInstancesItem["Spec"].isNull())
|
||||
aICInstancesObject.spec = valueServersServersItemAICInstancesAICInstancesItem["Spec"].asString();
|
||||
if(!valueServersServersItemAICInstancesAICInstancesItem["State"].isNull())
|
||||
aICInstancesObject.state = valueServersServersItemAICInstancesAICInstancesItem["State"].asString();
|
||||
if(!valueServersServersItemAICInstancesAICInstancesItem["Status"].isNull())
|
||||
aICInstancesObject.status = valueServersServersItemAICInstancesAICInstancesItem["Status"].asString();
|
||||
auto networkAttributesNode = value["NetworkAttributes"];
|
||||
if(!networkAttributesNode["IpAddress"].isNull())
|
||||
aICInstancesObject.networkAttributes.ipAddress = networkAttributesNode["IpAddress"].asString();
|
||||
if(!networkAttributesNode["NetworkId"].isNull())
|
||||
aICInstancesObject.networkAttributes.networkId = networkAttributesNode["NetworkId"].asString();
|
||||
if(!networkAttributesNode["VSwitchId"].isNull())
|
||||
aICInstancesObject.networkAttributes.vSwitchId = networkAttributesNode["VSwitchId"].asString();
|
||||
serversObject.aICInstances.push_back(aICInstancesObject);
|
||||
}
|
||||
servers_.push_back(serversObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeARMServerInstancesResult::ServersItem> DescribeARMServerInstancesResult::getServers()const
|
||||
{
|
||||
return servers_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void DescribeEnsEipAddressesRequest::setEipAddress(const std::string &eipAddress
|
||||
setParameter(std::string("EipAddress"), eipAddress);
|
||||
}
|
||||
|
||||
std::string DescribeEnsEipAddressesRequest::getEnsRegionId() const {
|
||||
return ensRegionId_;
|
||||
}
|
||||
|
||||
void DescribeEnsEipAddressesRequest::setEnsRegionId(const std::string &ensRegionId) {
|
||||
ensRegionId_ = ensRegionId;
|
||||
setParameter(std::string("EnsRegionId"), ensRegionId);
|
||||
}
|
||||
|
||||
std::string DescribeEnsEipAddressesRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
108
ens/src/model/DescribeEnsRouteEntryListRequest.cc
Normal file
108
ens/src/model/DescribeEnsRouteEntryListRequest.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* 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/ens/model/DescribeEnsRouteEntryListRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::DescribeEnsRouteEntryListRequest;
|
||||
|
||||
DescribeEnsRouteEntryListRequest::DescribeEnsRouteEntryListRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DescribeEnsRouteEntryList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeEnsRouteEntryListRequest::~DescribeEnsRouteEntryListRequest() {}
|
||||
|
||||
std::string DescribeEnsRouteEntryListRequest::getRouteEntryName() const {
|
||||
return routeEntryName_;
|
||||
}
|
||||
|
||||
void DescribeEnsRouteEntryListRequest::setRouteEntryName(const std::string &routeEntryName) {
|
||||
routeEntryName_ = routeEntryName;
|
||||
setParameter(std::string("RouteEntryName"), routeEntryName);
|
||||
}
|
||||
|
||||
std::string DescribeEnsRouteEntryListRequest::getNextHopId() const {
|
||||
return nextHopId_;
|
||||
}
|
||||
|
||||
void DescribeEnsRouteEntryListRequest::setNextHopId(const std::string &nextHopId) {
|
||||
nextHopId_ = nextHopId;
|
||||
setParameter(std::string("NextHopId"), nextHopId);
|
||||
}
|
||||
|
||||
std::string DescribeEnsRouteEntryListRequest::getNextHopType() const {
|
||||
return nextHopType_;
|
||||
}
|
||||
|
||||
void DescribeEnsRouteEntryListRequest::setNextHopType(const std::string &nextHopType) {
|
||||
nextHopType_ = nextHopType;
|
||||
setParameter(std::string("NextHopType"), nextHopType);
|
||||
}
|
||||
|
||||
std::string DescribeEnsRouteEntryListRequest::getRouteTableId() const {
|
||||
return routeTableId_;
|
||||
}
|
||||
|
||||
void DescribeEnsRouteEntryListRequest::setRouteTableId(const std::string &routeTableId) {
|
||||
routeTableId_ = routeTableId;
|
||||
setParameter(std::string("RouteTableId"), routeTableId);
|
||||
}
|
||||
|
||||
std::string DescribeEnsRouteEntryListRequest::getDestinationCidrBlock() const {
|
||||
return destinationCidrBlock_;
|
||||
}
|
||||
|
||||
void DescribeEnsRouteEntryListRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) {
|
||||
destinationCidrBlock_ = destinationCidrBlock;
|
||||
setParameter(std::string("DestinationCidrBlock"), destinationCidrBlock);
|
||||
}
|
||||
|
||||
int DescribeEnsRouteEntryListRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeEnsRouteEntryListRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeEnsRouteEntryListRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeEnsRouteEntryListRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeEnsRouteEntryListRequest::getRouteEntryType() const {
|
||||
return routeEntryType_;
|
||||
}
|
||||
|
||||
void DescribeEnsRouteEntryListRequest::setRouteEntryType(const std::string &routeEntryType) {
|
||||
routeEntryType_ = routeEntryType;
|
||||
setParameter(std::string("RouteEntryType"), routeEntryType);
|
||||
}
|
||||
|
||||
std::string DescribeEnsRouteEntryListRequest::getRouteEntryId() const {
|
||||
return routeEntryId_;
|
||||
}
|
||||
|
||||
void DescribeEnsRouteEntryListRequest::setRouteEntryId(const std::string &routeEntryId) {
|
||||
routeEntryId_ = routeEntryId;
|
||||
setParameter(std::string("RouteEntryId"), routeEntryId);
|
||||
}
|
||||
|
||||
100
ens/src/model/DescribeEnsRouteEntryListResult.cc
Normal file
100
ens/src/model/DescribeEnsRouteEntryListResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* 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/ens/model/DescribeEnsRouteEntryListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
DescribeEnsRouteEntryListResult::DescribeEnsRouteEntryListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeEnsRouteEntryListResult::DescribeEnsRouteEntryListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeEnsRouteEntryListResult::~DescribeEnsRouteEntryListResult()
|
||||
{}
|
||||
|
||||
void DescribeEnsRouteEntryListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRouteEntrysNode = value["RouteEntrys"]["RouteEntry"];
|
||||
for (auto valueRouteEntrysRouteEntry : allRouteEntrysNode)
|
||||
{
|
||||
RouteEntry routeEntrysObject;
|
||||
if(!valueRouteEntrysRouteEntry["Status"].isNull())
|
||||
routeEntrysObject.status = valueRouteEntrysRouteEntry["Status"].asString();
|
||||
if(!valueRouteEntrysRouteEntry["Type"].isNull())
|
||||
routeEntrysObject.type = valueRouteEntrysRouteEntry["Type"].asString();
|
||||
if(!valueRouteEntrysRouteEntry["Description"].isNull())
|
||||
routeEntrysObject.description = valueRouteEntrysRouteEntry["Description"].asString();
|
||||
if(!valueRouteEntrysRouteEntry["RouteEntryName"].isNull())
|
||||
routeEntrysObject.routeEntryName = valueRouteEntrysRouteEntry["RouteEntryName"].asString();
|
||||
if(!valueRouteEntrysRouteEntry["DestinationCidrBlock"].isNull())
|
||||
routeEntrysObject.destinationCidrBlock = valueRouteEntrysRouteEntry["DestinationCidrBlock"].asString();
|
||||
if(!valueRouteEntrysRouteEntry["RouteEntryId"].isNull())
|
||||
routeEntrysObject.routeEntryId = valueRouteEntrysRouteEntry["RouteEntryId"].asString();
|
||||
if(!valueRouteEntrysRouteEntry["RouteTableId"].isNull())
|
||||
routeEntrysObject.routeTableId = valueRouteEntrysRouteEntry["RouteTableId"].asString();
|
||||
auto allNextHopsNode = valueRouteEntrysRouteEntry["NextHops"]["NextHop"];
|
||||
for (auto valueRouteEntrysRouteEntryNextHopsNextHop : allNextHopsNode)
|
||||
{
|
||||
RouteEntry::NextHop nextHopsObject;
|
||||
if(!valueRouteEntrysRouteEntryNextHopsNextHop["NextHopId"].isNull())
|
||||
nextHopsObject.nextHopId = valueRouteEntrysRouteEntryNextHopsNextHop["NextHopId"].asString();
|
||||
if(!valueRouteEntrysRouteEntryNextHopsNextHop["NextHopType"].isNull())
|
||||
nextHopsObject.nextHopType = valueRouteEntrysRouteEntryNextHopsNextHop["NextHopType"].asString();
|
||||
routeEntrysObject.nextHops.push_back(nextHopsObject);
|
||||
}
|
||||
routeEntrys_.push_back(routeEntrysObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeEnsRouteEntryListResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeEnsRouteEntryListResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeEnsRouteEntryListResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeEnsRouteEntryListResult::RouteEntry> DescribeEnsRouteEntryListResult::getRouteEntrys()const
|
||||
{
|
||||
return routeEntrys_;
|
||||
}
|
||||
|
||||
99
ens/src/model/DescribeForwardTableEntriesRequest.cc
Normal file
99
ens/src/model/DescribeForwardTableEntriesRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* 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/ens/model/DescribeForwardTableEntriesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::DescribeForwardTableEntriesRequest;
|
||||
|
||||
DescribeForwardTableEntriesRequest::DescribeForwardTableEntriesRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DescribeForwardTableEntries") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeForwardTableEntriesRequest::~DescribeForwardTableEntriesRequest() {}
|
||||
|
||||
std::string DescribeForwardTableEntriesRequest::getInternalIp() const {
|
||||
return internalIp_;
|
||||
}
|
||||
|
||||
void DescribeForwardTableEntriesRequest::setInternalIp(const std::string &internalIp) {
|
||||
internalIp_ = internalIp;
|
||||
setParameter(std::string("InternalIp"), internalIp);
|
||||
}
|
||||
|
||||
std::string DescribeForwardTableEntriesRequest::getExternalIp() const {
|
||||
return externalIp_;
|
||||
}
|
||||
|
||||
void DescribeForwardTableEntriesRequest::setExternalIp(const std::string &externalIp) {
|
||||
externalIp_ = externalIp;
|
||||
setParameter(std::string("ExternalIp"), externalIp);
|
||||
}
|
||||
|
||||
std::string DescribeForwardTableEntriesRequest::getIpProtocol() const {
|
||||
return ipProtocol_;
|
||||
}
|
||||
|
||||
void DescribeForwardTableEntriesRequest::setIpProtocol(const std::string &ipProtocol) {
|
||||
ipProtocol_ = ipProtocol;
|
||||
setParameter(std::string("IpProtocol"), ipProtocol);
|
||||
}
|
||||
|
||||
int DescribeForwardTableEntriesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeForwardTableEntriesRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeForwardTableEntriesRequest::getForwardEntryId() const {
|
||||
return forwardEntryId_;
|
||||
}
|
||||
|
||||
void DescribeForwardTableEntriesRequest::setForwardEntryId(const std::string &forwardEntryId) {
|
||||
forwardEntryId_ = forwardEntryId;
|
||||
setParameter(std::string("ForwardEntryId"), forwardEntryId);
|
||||
}
|
||||
|
||||
int DescribeForwardTableEntriesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeForwardTableEntriesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeForwardTableEntriesRequest::getNatGatewayId() const {
|
||||
return natGatewayId_;
|
||||
}
|
||||
|
||||
void DescribeForwardTableEntriesRequest::setNatGatewayId(const std::string &natGatewayId) {
|
||||
natGatewayId_ = natGatewayId;
|
||||
setParameter(std::string("NatGatewayId"), natGatewayId);
|
||||
}
|
||||
|
||||
std::string DescribeForwardTableEntriesRequest::getForwardEntryName() const {
|
||||
return forwardEntryName_;
|
||||
}
|
||||
|
||||
void DescribeForwardTableEntriesRequest::setForwardEntryName(const std::string &forwardEntryName) {
|
||||
forwardEntryName_ = forwardEntryName;
|
||||
setParameter(std::string("ForwardEntryName"), forwardEntryName);
|
||||
}
|
||||
|
||||
96
ens/src/model/DescribeForwardTableEntriesResult.cc
Normal file
96
ens/src/model/DescribeForwardTableEntriesResult.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* 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/ens/model/DescribeForwardTableEntriesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
DescribeForwardTableEntriesResult::DescribeForwardTableEntriesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeForwardTableEntriesResult::DescribeForwardTableEntriesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeForwardTableEntriesResult::~DescribeForwardTableEntriesResult()
|
||||
{}
|
||||
|
||||
void DescribeForwardTableEntriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allForwardTableEntriesNode = value["ForwardTableEntries"]["ForwardTableEntry"];
|
||||
for (auto valueForwardTableEntriesForwardTableEntry : allForwardTableEntriesNode)
|
||||
{
|
||||
ForwardTableEntry forwardTableEntriesObject;
|
||||
if(!valueForwardTableEntriesForwardTableEntry["NatGatewayId"].isNull())
|
||||
forwardTableEntriesObject.natGatewayId = valueForwardTableEntriesForwardTableEntry["NatGatewayId"].asString();
|
||||
if(!valueForwardTableEntriesForwardTableEntry["ForwardEntryId"].isNull())
|
||||
forwardTableEntriesObject.forwardEntryId = valueForwardTableEntriesForwardTableEntry["ForwardEntryId"].asString();
|
||||
if(!valueForwardTableEntriesForwardTableEntry["ExternalIp"].isNull())
|
||||
forwardTableEntriesObject.externalIp = valueForwardTableEntriesForwardTableEntry["ExternalIp"].asString();
|
||||
if(!valueForwardTableEntriesForwardTableEntry["ExternalPort"].isNull())
|
||||
forwardTableEntriesObject.externalPort = valueForwardTableEntriesForwardTableEntry["ExternalPort"].asString();
|
||||
if(!valueForwardTableEntriesForwardTableEntry["InternalIp"].isNull())
|
||||
forwardTableEntriesObject.internalIp = valueForwardTableEntriesForwardTableEntry["InternalIp"].asString();
|
||||
if(!valueForwardTableEntriesForwardTableEntry["InternalPort"].isNull())
|
||||
forwardTableEntriesObject.internalPort = valueForwardTableEntriesForwardTableEntry["InternalPort"].asString();
|
||||
if(!valueForwardTableEntriesForwardTableEntry["ForwardEntryName"].isNull())
|
||||
forwardTableEntriesObject.forwardEntryName = valueForwardTableEntriesForwardTableEntry["ForwardEntryName"].asString();
|
||||
if(!valueForwardTableEntriesForwardTableEntry["Status"].isNull())
|
||||
forwardTableEntriesObject.status = valueForwardTableEntriesForwardTableEntry["Status"].asString();
|
||||
if(!valueForwardTableEntriesForwardTableEntry["IpProtocol"].isNull())
|
||||
forwardTableEntriesObject.ipProtocol = valueForwardTableEntriesForwardTableEntry["IpProtocol"].asString();
|
||||
if(!valueForwardTableEntriesForwardTableEntry["HealthCheckPort"].isNull())
|
||||
forwardTableEntriesObject.healthCheckPort = valueForwardTableEntriesForwardTableEntry["HealthCheckPort"].asString();
|
||||
forwardTableEntries_.push_back(forwardTableEntriesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = value["PageNumber"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = value["TotalCount"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = value["PageSize"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeForwardTableEntriesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeForwardTableEntriesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeForwardTableEntriesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeForwardTableEntriesResult::ForwardTableEntry> DescribeForwardTableEntriesResult::getForwardTableEntries()const
|
||||
{
|
||||
return forwardTableEntries_;
|
||||
}
|
||||
|
||||
90
ens/src/model/DescribeNatGatewaysRequest.cc
Normal file
90
ens/src/model/DescribeNatGatewaysRequest.cc
Normal 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/ens/model/DescribeNatGatewaysRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::DescribeNatGatewaysRequest;
|
||||
|
||||
DescribeNatGatewaysRequest::DescribeNatGatewaysRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DescribeNatGateways") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeNatGatewaysRequest::~DescribeNatGatewaysRequest() {}
|
||||
|
||||
std::string DescribeNatGatewaysRequest::getEnsRegionId() const {
|
||||
return ensRegionId_;
|
||||
}
|
||||
|
||||
void DescribeNatGatewaysRequest::setEnsRegionId(const std::string &ensRegionId) {
|
||||
ensRegionId_ = ensRegionId;
|
||||
setParameter(std::string("EnsRegionId"), ensRegionId);
|
||||
}
|
||||
|
||||
std::string DescribeNatGatewaysRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void DescribeNatGatewaysRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
std::string DescribeNatGatewaysRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribeNatGatewaysRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string DescribeNatGatewaysRequest::getNetworkId() const {
|
||||
return networkId_;
|
||||
}
|
||||
|
||||
void DescribeNatGatewaysRequest::setNetworkId(const std::string &networkId) {
|
||||
networkId_ = networkId;
|
||||
setParameter(std::string("NetworkId"), networkId);
|
||||
}
|
||||
|
||||
int DescribeNatGatewaysRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeNatGatewaysRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeNatGatewaysRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeNatGatewaysRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeNatGatewaysRequest::getNatGatewayId() const {
|
||||
return natGatewayId_;
|
||||
}
|
||||
|
||||
void DescribeNatGatewaysRequest::setNatGatewayId(const std::string &natGatewayId) {
|
||||
natGatewayId_ = natGatewayId;
|
||||
setParameter(std::string("NatGatewayId"), natGatewayId);
|
||||
}
|
||||
|
||||
88
ens/src/model/DescribeNatGatewaysResult.cc
Normal file
88
ens/src/model/DescribeNatGatewaysResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* 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/ens/model/DescribeNatGatewaysResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
DescribeNatGatewaysResult::DescribeNatGatewaysResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNatGatewaysResult::DescribeNatGatewaysResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNatGatewaysResult::~DescribeNatGatewaysResult()
|
||||
{}
|
||||
|
||||
void DescribeNatGatewaysResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNatGatewaysNode = value["NatGateways"]["NatGateway"];
|
||||
for (auto valueNatGatewaysNatGateway : allNatGatewaysNode)
|
||||
{
|
||||
NatGateway natGatewaysObject;
|
||||
if(!valueNatGatewaysNatGateway["EnsRegionId"].isNull())
|
||||
natGatewaysObject.ensRegionId = valueNatGatewaysNatGateway["EnsRegionId"].asString();
|
||||
if(!valueNatGatewaysNatGateway["NatGatewayId"].isNull())
|
||||
natGatewaysObject.natGatewayId = valueNatGatewaysNatGateway["NatGatewayId"].asString();
|
||||
if(!valueNatGatewaysNatGateway["NetworkId"].isNull())
|
||||
natGatewaysObject.networkId = valueNatGatewaysNatGateway["NetworkId"].asString();
|
||||
if(!valueNatGatewaysNatGateway["VSwitchId"].isNull())
|
||||
natGatewaysObject.vSwitchId = valueNatGatewaysNatGateway["VSwitchId"].asString();
|
||||
if(!valueNatGatewaysNatGateway["Name"].isNull())
|
||||
natGatewaysObject.name = valueNatGatewaysNatGateway["Name"].asString();
|
||||
if(!valueNatGatewaysNatGateway["CreationTime"].isNull())
|
||||
natGatewaysObject.creationTime = valueNatGatewaysNatGateway["CreationTime"].asString();
|
||||
natGateways_.push_back(natGatewaysObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeNatGatewaysResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeNatGatewaysResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeNatGatewaysResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeNatGatewaysResult::NatGateway> DescribeNatGatewaysResult::getNatGateways()const
|
||||
{
|
||||
return natGateways_;
|
||||
}
|
||||
|
||||
@@ -66,6 +66,8 @@ void DescribeNetworkAttributeResult::parse(const std::string &payload)
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["CreatedTime"].isNull())
|
||||
createdTime_ = value["CreatedTime"].asString();
|
||||
if(!value["RouterTableId"].isNull())
|
||||
routerTableId_ = value["RouterTableId"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -99,6 +101,11 @@ std::string DescribeNetworkAttributeResult::getCidrBlock()const
|
||||
return cidrBlock_;
|
||||
}
|
||||
|
||||
std::string DescribeNetworkAttributeResult::getRouterTableId()const
|
||||
{
|
||||
return routerTableId_;
|
||||
}
|
||||
|
||||
std::string DescribeNetworkAttributeResult::getEnsRegionId()const
|
||||
{
|
||||
return ensRegionId_;
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeNetworkInterfacesRequest::DescribeNetworkInterfacesRequest()
|
||||
|
||||
DescribeNetworkInterfacesRequest::~DescribeNetworkInterfacesRequest() {}
|
||||
|
||||
std::string DescribeNetworkInterfacesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeNetworkInterfacesRequest::setPageNumber(const std::string &pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), pageNumber);
|
||||
}
|
||||
|
||||
std::string DescribeNetworkInterfacesRequest::getEnsRegionId() const {
|
||||
return ensRegionId_;
|
||||
}
|
||||
@@ -34,6 +43,15 @@ void DescribeNetworkInterfacesRequest::setEnsRegionId(const std::string &ensRegi
|
||||
setParameter(std::string("EnsRegionId"), ensRegionId);
|
||||
}
|
||||
|
||||
std::string DescribeNetworkInterfacesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeNetworkInterfacesRequest::setPageSize(const std::string &pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeNetworkInterfacesRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
@@ -52,24 +70,6 @@ void DescribeNetworkInterfacesRequest::setInstanceId(const std::string &instance
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeNetworkInterfacesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeNetworkInterfacesRequest::setPageNumber(const std::string &pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), pageNumber);
|
||||
}
|
||||
|
||||
std::string DescribeNetworkInterfacesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeNetworkInterfacesRequest::setPageSize(const std::string &pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeNetworkInterfacesRequest::getPrimaryIpAddress() const {
|
||||
return primaryIpAddress_;
|
||||
}
|
||||
|
||||
@@ -61,6 +61,16 @@ void DescribeNetworkInterfacesResult::parse(const std::string &payload)
|
||||
networkInterfaceSetsObject.status = valueNetworkInterfaceSetsNetworkInterfaceSet["Status"].asString();
|
||||
if(!valueNetworkInterfaceSetsNetworkInterfaceSet["VSwitchId"].isNull())
|
||||
networkInterfaceSetsObject.vSwitchId = valueNetworkInterfaceSetsNetworkInterfaceSet["VSwitchId"].asString();
|
||||
auto allPrivateIpSetsNode = valueNetworkInterfaceSetsNetworkInterfaceSet["PrivateIpSets"]["PrivateIpSet"];
|
||||
for (auto valueNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet : allPrivateIpSetsNode)
|
||||
{
|
||||
NetworkInterfaceSet::PrivateIpSet privateIpSetsObject;
|
||||
if(!valueNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet["PrivateIpAddress"].isNull())
|
||||
privateIpSetsObject.privateIpAddress = valueNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet["PrivateIpAddress"].asString();
|
||||
if(!valueNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet["Primary"].isNull())
|
||||
privateIpSetsObject.primary = valueNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet["Primary"].asString() == "true";
|
||||
networkInterfaceSetsObject.privateIpSets.push_back(privateIpSetsObject);
|
||||
}
|
||||
networkInterfaceSets_.push_back(networkInterfaceSetsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
|
||||
@@ -57,6 +57,8 @@ void DescribeNetworksResult::parse(const std::string &payload)
|
||||
networksObject.description = valueNetworksNetwork["Description"].asString();
|
||||
if(!valueNetworksNetwork["CreatedTime"].isNull())
|
||||
networksObject.createdTime = valueNetworksNetwork["CreatedTime"].asString();
|
||||
if(!valueNetworksNetwork["RouterTableId"].isNull())
|
||||
networksObject.routerTableId = valueNetworksNetwork["RouterTableId"].asString();
|
||||
auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"];
|
||||
for (auto value : allVSwitchIds)
|
||||
networksObject.vSwitchIds.push_back(value.asString());
|
||||
|
||||
@@ -25,6 +25,18 @@ DescribePriceRequest::DescribePriceRequest()
|
||||
|
||||
DescribePriceRequest::~DescribePriceRequest() {}
|
||||
|
||||
std::vector<DescribePriceRequest::DataDisks> DescribePriceRequest::getDataDisks() const {
|
||||
return dataDisks_;
|
||||
}
|
||||
|
||||
void DescribePriceRequest::setDataDisks(const std::vector<DescribePriceRequest::DataDisks> &dataDisks) {
|
||||
dataDisks_ = dataDisks;
|
||||
for(int dep1 = 0; dep1 != dataDisks.size(); dep1++) {
|
||||
setParameter(std::string("DataDisks") + "." + std::to_string(dep1 + 1) + ".Size", std::to_string(dataDisks[dep1].size));
|
||||
setParameter(std::string("DataDisks") + "." + std::to_string(dep1 + 1) + ".Category", dataDisks[dep1].category);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DescribePriceRequest::getEnsRegionId() const {
|
||||
return ensRegionId_;
|
||||
}
|
||||
@@ -43,6 +55,15 @@ void DescribePriceRequest::setPeriod(int period) {
|
||||
setParameter(std::string("Period"), std::to_string(period));
|
||||
}
|
||||
|
||||
std::string DescribePriceRequest::getPeriodUnit() const {
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
void DescribePriceRequest::setPeriodUnit(const std::string &periodUnit) {
|
||||
periodUnit_ = periodUnit;
|
||||
setParameter(std::string("PeriodUnit"), periodUnit);
|
||||
}
|
||||
|
||||
std::string DescribePriceRequest::getInternetChargeType() const {
|
||||
return internetChargeType_;
|
||||
}
|
||||
|
||||
90
ens/src/model/DescribeSnatTableEntriesRequest.cc
Normal file
90
ens/src/model/DescribeSnatTableEntriesRequest.cc
Normal 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/ens/model/DescribeSnatTableEntriesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::DescribeSnatTableEntriesRequest;
|
||||
|
||||
DescribeSnatTableEntriesRequest::DescribeSnatTableEntriesRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DescribeSnatTableEntries") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeSnatTableEntriesRequest::~DescribeSnatTableEntriesRequest() {}
|
||||
|
||||
std::string DescribeSnatTableEntriesRequest::getSnatIp() const {
|
||||
return snatIp_;
|
||||
}
|
||||
|
||||
void DescribeSnatTableEntriesRequest::setSnatIp(const std::string &snatIp) {
|
||||
snatIp_ = snatIp;
|
||||
setParameter(std::string("SnatIp"), snatIp);
|
||||
}
|
||||
|
||||
std::string DescribeSnatTableEntriesRequest::getSnatEntryId() const {
|
||||
return snatEntryId_;
|
||||
}
|
||||
|
||||
void DescribeSnatTableEntriesRequest::setSnatEntryId(const std::string &snatEntryId) {
|
||||
snatEntryId_ = snatEntryId;
|
||||
setParameter(std::string("SnatEntryId"), snatEntryId);
|
||||
}
|
||||
|
||||
std::string DescribeSnatTableEntriesRequest::getSourceCIDR() const {
|
||||
return sourceCIDR_;
|
||||
}
|
||||
|
||||
void DescribeSnatTableEntriesRequest::setSourceCIDR(const std::string &sourceCIDR) {
|
||||
sourceCIDR_ = sourceCIDR;
|
||||
setParameter(std::string("SourceCIDR"), sourceCIDR);
|
||||
}
|
||||
|
||||
int DescribeSnatTableEntriesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeSnatTableEntriesRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeSnatTableEntriesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeSnatTableEntriesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeSnatTableEntriesRequest::getNatGatewayId() const {
|
||||
return natGatewayId_;
|
||||
}
|
||||
|
||||
void DescribeSnatTableEntriesRequest::setNatGatewayId(const std::string &natGatewayId) {
|
||||
natGatewayId_ = natGatewayId;
|
||||
setParameter(std::string("NatGatewayId"), natGatewayId);
|
||||
}
|
||||
|
||||
std::string DescribeSnatTableEntriesRequest::getSnatEntryName() const {
|
||||
return snatEntryName_;
|
||||
}
|
||||
|
||||
void DescribeSnatTableEntriesRequest::setSnatEntryName(const std::string &snatEntryName) {
|
||||
snatEntryName_ = snatEntryName;
|
||||
setParameter(std::string("SnatEntryName"), snatEntryName);
|
||||
}
|
||||
|
||||
88
ens/src/model/DescribeSnatTableEntriesResult.cc
Normal file
88
ens/src/model/DescribeSnatTableEntriesResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* 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/ens/model/DescribeSnatTableEntriesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
DescribeSnatTableEntriesResult::DescribeSnatTableEntriesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSnatTableEntriesResult::DescribeSnatTableEntriesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSnatTableEntriesResult::~DescribeSnatTableEntriesResult()
|
||||
{}
|
||||
|
||||
void DescribeSnatTableEntriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSnatTableEntriesNode = value["SnatTableEntries"]["SnatTableEntry"];
|
||||
for (auto valueSnatTableEntriesSnatTableEntry : allSnatTableEntriesNode)
|
||||
{
|
||||
SnatTableEntry snatTableEntriesObject;
|
||||
if(!valueSnatTableEntriesSnatTableEntry["NatGatewayId"].isNull())
|
||||
snatTableEntriesObject.natGatewayId = valueSnatTableEntriesSnatTableEntry["NatGatewayId"].asString();
|
||||
if(!valueSnatTableEntriesSnatTableEntry["SnatEntryId"].isNull())
|
||||
snatTableEntriesObject.snatEntryId = valueSnatTableEntriesSnatTableEntry["SnatEntryId"].asString();
|
||||
if(!valueSnatTableEntriesSnatTableEntry["SnatIp"].isNull())
|
||||
snatTableEntriesObject.snatIp = valueSnatTableEntriesSnatTableEntry["SnatIp"].asString();
|
||||
if(!valueSnatTableEntriesSnatTableEntry["SourceCIDR"].isNull())
|
||||
snatTableEntriesObject.sourceCIDR = valueSnatTableEntriesSnatTableEntry["SourceCIDR"].asString();
|
||||
if(!valueSnatTableEntriesSnatTableEntry["SnatEntryName"].isNull())
|
||||
snatTableEntriesObject.snatEntryName = valueSnatTableEntriesSnatTableEntry["SnatEntryName"].asString();
|
||||
if(!valueSnatTableEntriesSnatTableEntry["Status"].isNull())
|
||||
snatTableEntriesObject.status = valueSnatTableEntriesSnatTableEntry["Status"].asString();
|
||||
snatTableEntries_.push_back(snatTableEntriesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeSnatTableEntriesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeSnatTableEntriesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeSnatTableEntriesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeSnatTableEntriesResult::SnatTableEntry> DescribeSnatTableEntriesResult::getSnatTableEntries()const
|
||||
{
|
||||
return snatTableEntries_;
|
||||
}
|
||||
|
||||
@@ -1,81 +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/ens/model/GetVmListRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::GetVmListRequest;
|
||||
|
||||
GetVmListRequest::GetVmListRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "GetVmList") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetVmListRequest::~GetVmListRequest() {}
|
||||
|
||||
std::string GetVmListRequest::getInstanceUuid() const {
|
||||
return instanceUuid_;
|
||||
}
|
||||
|
||||
void GetVmListRequest::setInstanceUuid(const std::string &instanceUuid) {
|
||||
instanceUuid_ = instanceUuid;
|
||||
setParameter(std::string("InstanceUuid"), instanceUuid);
|
||||
}
|
||||
|
||||
int GetVmListRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void GetVmListRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string GetVmListRequest::getGroupUuid() const {
|
||||
return groupUuid_;
|
||||
}
|
||||
|
||||
void GetVmListRequest::setGroupUuid(const std::string &groupUuid) {
|
||||
groupUuid_ = groupUuid;
|
||||
setParameter(std::string("GroupUuid"), groupUuid);
|
||||
}
|
||||
|
||||
int GetVmListRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetVmListRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long GetVmListRequest::getAliUid() const {
|
||||
return aliUid_;
|
||||
}
|
||||
|
||||
void GetVmListRequest::setAliUid(long aliUid) {
|
||||
aliUid_ = aliUid;
|
||||
setParameter(std::string("AliUid"), std::to_string(aliUid));
|
||||
}
|
||||
|
||||
std::string GetVmListRequest::getWorkloadUuid() const {
|
||||
return workloadUuid_;
|
||||
}
|
||||
|
||||
void GetVmListRequest::setWorkloadUuid(const std::string &workloadUuid) {
|
||||
workloadUuid_ = workloadUuid;
|
||||
setParameter(std::string("WorkloadUuid"), workloadUuid);
|
||||
}
|
||||
|
||||
@@ -1,72 +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/ens/model/GetVmListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
GetVmListResult::GetVmListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetVmListResult::GetVmListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetVmListResult::~GetVmListResult()
|
||||
{}
|
||||
|
||||
void GetVmListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Msg"].isNull())
|
||||
msg_ = value["Msg"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Desc"].isNull())
|
||||
desc_ = value["Desc"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetVmListResult::getMsg()const
|
||||
{
|
||||
return msg_;
|
||||
}
|
||||
|
||||
std::string GetVmListResult::getDesc()const
|
||||
{
|
||||
return desc_;
|
||||
}
|
||||
|
||||
std::string GetVmListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetVmListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -1,63 +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/ens/model/MigrateVmRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::MigrateVmRequest;
|
||||
|
||||
MigrateVmRequest::MigrateVmRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "MigrateVm") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
MigrateVmRequest::~MigrateVmRequest() {}
|
||||
|
||||
std::string MigrateVmRequest::getInstances() const {
|
||||
return instances_;
|
||||
}
|
||||
|
||||
void MigrateVmRequest::setInstances(const std::string &instances) {
|
||||
instances_ = instances;
|
||||
setBodyParameter(std::string("Instances"), instances);
|
||||
}
|
||||
|
||||
std::string MigrateVmRequest::getGroupUuid() const {
|
||||
return groupUuid_;
|
||||
}
|
||||
|
||||
void MigrateVmRequest::setGroupUuid(const std::string &groupUuid) {
|
||||
groupUuid_ = groupUuid;
|
||||
setParameter(std::string("GroupUuid"), groupUuid);
|
||||
}
|
||||
|
||||
std::string MigrateVmRequest::getTenant() const {
|
||||
return tenant_;
|
||||
}
|
||||
|
||||
void MigrateVmRequest::setTenant(const std::string &tenant) {
|
||||
tenant_ = tenant;
|
||||
setParameter(std::string("Tenant"), tenant);
|
||||
}
|
||||
|
||||
std::string MigrateVmRequest::getInstanceIds() const {
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void MigrateVmRequest::setInstanceIds(const std::string &instanceIds) {
|
||||
instanceIds_ = instanceIds;
|
||||
setParameter(std::string("InstanceIds"), instanceIds);
|
||||
}
|
||||
|
||||
@@ -1,72 +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/ens/model/MigrateVmResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
MigrateVmResult::MigrateVmResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
MigrateVmResult::MigrateVmResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
MigrateVmResult::~MigrateVmResult()
|
||||
{}
|
||||
|
||||
void MigrateVmResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Msg"].isNull())
|
||||
msg_ = value["Msg"].asString();
|
||||
if(!value["Desc"].isNull())
|
||||
desc_ = value["Desc"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string MigrateVmResult::getMsg()const
|
||||
{
|
||||
return msg_;
|
||||
}
|
||||
|
||||
std::string MigrateVmResult::getDesc()const
|
||||
{
|
||||
return desc_;
|
||||
}
|
||||
|
||||
std::string MigrateVmResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int MigrateVmResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
54
ens/src/model/ModifyForwardEntryRequest.cc
Normal file
54
ens/src/model/ModifyForwardEntryRequest.cc
Normal 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/ens/model/ModifyForwardEntryRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::ModifyForwardEntryRequest;
|
||||
|
||||
ModifyForwardEntryRequest::ModifyForwardEntryRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "ModifyForwardEntry") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyForwardEntryRequest::~ModifyForwardEntryRequest() {}
|
||||
|
||||
std::string ModifyForwardEntryRequest::getForwardEntryId() const {
|
||||
return forwardEntryId_;
|
||||
}
|
||||
|
||||
void ModifyForwardEntryRequest::setForwardEntryId(const std::string &forwardEntryId) {
|
||||
forwardEntryId_ = forwardEntryId;
|
||||
setParameter(std::string("ForwardEntryId"), forwardEntryId);
|
||||
}
|
||||
|
||||
std::string ModifyForwardEntryRequest::getForwardEntryName() const {
|
||||
return forwardEntryName_;
|
||||
}
|
||||
|
||||
void ModifyForwardEntryRequest::setForwardEntryName(const std::string &forwardEntryName) {
|
||||
forwardEntryName_ = forwardEntryName;
|
||||
setParameter(std::string("ForwardEntryName"), forwardEntryName);
|
||||
}
|
||||
|
||||
int ModifyForwardEntryRequest::getHealthCheckPort() const {
|
||||
return healthCheckPort_;
|
||||
}
|
||||
|
||||
void ModifyForwardEntryRequest::setHealthCheckPort(int healthCheckPort) {
|
||||
healthCheckPort_ = healthCheckPort;
|
||||
setParameter(std::string("HealthCheckPort"), std::to_string(healthCheckPort));
|
||||
}
|
||||
|
||||
44
ens/src/model/ModifyForwardEntryResult.cc
Normal file
44
ens/src/model/ModifyForwardEntryResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/ens/model/ModifyForwardEntryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
ModifyForwardEntryResult::ModifyForwardEntryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyForwardEntryResult::ModifyForwardEntryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyForwardEntryResult::~ModifyForwardEntryResult()
|
||||
{}
|
||||
|
||||
void ModifyForwardEntryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
ens/src/model/ModifyPrepayInstanceSpecRequest.cc
Normal file
45
ens/src/model/ModifyPrepayInstanceSpecRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/ens/model/ModifyPrepayInstanceSpecRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::ModifyPrepayInstanceSpecRequest;
|
||||
|
||||
ModifyPrepayInstanceSpecRequest::ModifyPrepayInstanceSpecRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "ModifyPrepayInstanceSpec") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyPrepayInstanceSpecRequest::~ModifyPrepayInstanceSpecRequest() {}
|
||||
|
||||
std::string ModifyPrepayInstanceSpecRequest::getInstanceType() const {
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
void ModifyPrepayInstanceSpecRequest::setInstanceType(const std::string &instanceType) {
|
||||
instanceType_ = instanceType;
|
||||
setParameter(std::string("InstanceType"), instanceType);
|
||||
}
|
||||
|
||||
std::string ModifyPrepayInstanceSpecRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyPrepayInstanceSpecRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
44
ens/src/model/ModifyPrepayInstanceSpecResult.cc
Normal file
44
ens/src/model/ModifyPrepayInstanceSpecResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/ens/model/ModifyPrepayInstanceSpecResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
ModifyPrepayInstanceSpecResult::ModifyPrepayInstanceSpecResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyPrepayInstanceSpecResult::ModifyPrepayInstanceSpecResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyPrepayInstanceSpecResult::~ModifyPrepayInstanceSpecResult()
|
||||
{}
|
||||
|
||||
void ModifyPrepayInstanceSpecResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
ens/src/model/RebootAICInstanceRequest.cc
Normal file
45
ens/src/model/RebootAICInstanceRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/ens/model/RebootAICInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::RebootAICInstanceRequest;
|
||||
|
||||
RebootAICInstanceRequest::RebootAICInstanceRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "RebootAICInstance") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
RebootAICInstanceRequest::~RebootAICInstanceRequest() {}
|
||||
|
||||
std::string RebootAICInstanceRequest::getServerId() const {
|
||||
return serverId_;
|
||||
}
|
||||
|
||||
void RebootAICInstanceRequest::setServerId(const std::string &serverId) {
|
||||
serverId_ = serverId;
|
||||
setParameter(std::string("ServerId"), serverId);
|
||||
}
|
||||
|
||||
std::string RebootAICInstanceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void RebootAICInstanceRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ens/model/ReleaseEipAddressResult.h>
|
||||
#include <alibabacloud/ens/model/RebootAICInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
ReleaseEipAddressResult::ReleaseEipAddressResult() :
|
||||
RebootAICInstanceResult::RebootAICInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ReleaseEipAddressResult::ReleaseEipAddressResult(const std::string &payload) :
|
||||
RebootAICInstanceResult::RebootAICInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ReleaseEipAddressResult::~ReleaseEipAddressResult()
|
||||
RebootAICInstanceResult::~RebootAICInstanceResult()
|
||||
{}
|
||||
|
||||
void ReleaseEipAddressResult::parse(const std::string &payload)
|
||||
void RebootAICInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
36
ens/src/model/RebootARMServerInstanceRequest.cc
Normal file
36
ens/src/model/RebootARMServerInstanceRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/ens/model/RebootARMServerInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::RebootARMServerInstanceRequest;
|
||||
|
||||
RebootARMServerInstanceRequest::RebootARMServerInstanceRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "RebootARMServerInstance") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
RebootARMServerInstanceRequest::~RebootARMServerInstanceRequest() {}
|
||||
|
||||
std::string RebootARMServerInstanceRequest::getServerId() const {
|
||||
return serverId_;
|
||||
}
|
||||
|
||||
void RebootARMServerInstanceRequest::setServerId(const std::string &serverId) {
|
||||
serverId_ = serverId;
|
||||
setParameter(std::string("ServerId"), serverId);
|
||||
}
|
||||
|
||||
44
ens/src/model/RebootARMServerInstanceResult.cc
Normal file
44
ens/src/model/RebootARMServerInstanceResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/ens/model/RebootARMServerInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
RebootARMServerInstanceResult::RebootARMServerInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RebootARMServerInstanceResult::RebootARMServerInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RebootARMServerInstanceResult::~RebootARMServerInstanceResult()
|
||||
{}
|
||||
|
||||
void RebootARMServerInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
36
ens/src/model/ReleaseARMServerInstanceRequest.cc
Normal file
36
ens/src/model/ReleaseARMServerInstanceRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/ens/model/ReleaseARMServerInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::ReleaseARMServerInstanceRequest;
|
||||
|
||||
ReleaseARMServerInstanceRequest::ReleaseARMServerInstanceRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "ReleaseARMServerInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ReleaseARMServerInstanceRequest::~ReleaseARMServerInstanceRequest() {}
|
||||
|
||||
std::string ReleaseARMServerInstanceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ReleaseARMServerInstanceRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
44
ens/src/model/ReleaseARMServerInstanceResult.cc
Normal file
44
ens/src/model/ReleaseARMServerInstanceResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/ens/model/ReleaseARMServerInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
ReleaseARMServerInstanceResult::ReleaseARMServerInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ReleaseARMServerInstanceResult::ReleaseARMServerInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ReleaseARMServerInstanceResult::~ReleaseARMServerInstanceResult()
|
||||
{}
|
||||
|
||||
void ReleaseARMServerInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,45 +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/ens/model/ReleaseEipAddressRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::ReleaseEipAddressRequest;
|
||||
|
||||
ReleaseEipAddressRequest::ReleaseEipAddressRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "ReleaseEipAddress") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ReleaseEipAddressRequest::~ReleaseEipAddressRequest() {}
|
||||
|
||||
std::string ReleaseEipAddressRequest::getEips() const {
|
||||
return eips_;
|
||||
}
|
||||
|
||||
void ReleaseEipAddressRequest::setEips(const std::string &eips) {
|
||||
eips_ = eips;
|
||||
setParameter(std::string("Eips"), eips);
|
||||
}
|
||||
|
||||
std::string ReleaseEipAddressRequest::getEnsRegionId() const {
|
||||
return ensRegionId_;
|
||||
}
|
||||
|
||||
void ReleaseEipAddressRequest::setEnsRegionId(const std::string &ensRegionId) {
|
||||
ensRegionId_ = ensRegionId;
|
||||
setParameter(std::string("EnsRegionId"), ensRegionId);
|
||||
}
|
||||
|
||||
54
ens/src/model/RenewARMServerInstanceRequest.cc
Normal file
54
ens/src/model/RenewARMServerInstanceRequest.cc
Normal 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/ens/model/RenewARMServerInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::RenewARMServerInstanceRequest;
|
||||
|
||||
RenewARMServerInstanceRequest::RenewARMServerInstanceRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "RenewARMServerInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RenewARMServerInstanceRequest::~RenewARMServerInstanceRequest() {}
|
||||
|
||||
int RenewARMServerInstanceRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
|
||||
void RenewARMServerInstanceRequest::setPeriod(int period) {
|
||||
period_ = period;
|
||||
setParameter(std::string("Period"), std::to_string(period));
|
||||
}
|
||||
|
||||
std::string RenewARMServerInstanceRequest::getPeriodUnit() const {
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
void RenewARMServerInstanceRequest::setPeriodUnit(const std::string &periodUnit) {
|
||||
periodUnit_ = periodUnit;
|
||||
setParameter(std::string("PeriodUnit"), periodUnit);
|
||||
}
|
||||
|
||||
std::string RenewARMServerInstanceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void RenewARMServerInstanceRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
44
ens/src/model/RenewARMServerInstanceResult.cc
Normal file
44
ens/src/model/RenewARMServerInstanceResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/ens/model/RenewARMServerInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
RenewARMServerInstanceResult::RenewARMServerInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RenewARMServerInstanceResult::RenewARMServerInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RenewARMServerInstanceResult::~RenewARMServerInstanceResult()
|
||||
{}
|
||||
|
||||
void RenewARMServerInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
ens/src/model/ResetAICInstanceRequest.cc
Normal file
45
ens/src/model/ResetAICInstanceRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/ens/model/ResetAICInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::ResetAICInstanceRequest;
|
||||
|
||||
ResetAICInstanceRequest::ResetAICInstanceRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "ResetAICInstance") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ResetAICInstanceRequest::~ResetAICInstanceRequest() {}
|
||||
|
||||
std::string ResetAICInstanceRequest::getServerId() const {
|
||||
return serverId_;
|
||||
}
|
||||
|
||||
void ResetAICInstanceRequest::setServerId(const std::string &serverId) {
|
||||
serverId_ = serverId;
|
||||
setParameter(std::string("ServerId"), serverId);
|
||||
}
|
||||
|
||||
std::string ResetAICInstanceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ResetAICInstanceRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
44
ens/src/model/ResetAICInstanceResult.cc
Normal file
44
ens/src/model/ResetAICInstanceResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/ens/model/ResetAICInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
ResetAICInstanceResult::ResetAICInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ResetAICInstanceResult::ResetAICInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ResetAICInstanceResult::~ResetAICInstanceResult()
|
||||
{}
|
||||
|
||||
void ResetAICInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -115,6 +115,15 @@ void RunInstancesRequest::setPeriod(long period) {
|
||||
setParameter(std::string("Period"), std::to_string(period));
|
||||
}
|
||||
|
||||
bool RunInstancesRequest::getPublicIpIdentification() const {
|
||||
return publicIpIdentification_;
|
||||
}
|
||||
|
||||
void RunInstancesRequest::setPublicIpIdentification(bool publicIpIdentification) {
|
||||
publicIpIdentification_ = publicIpIdentification;
|
||||
setParameter(std::string("PublicIpIdentification"), publicIpIdentification ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RunInstancesRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
@@ -133,6 +142,15 @@ void RunInstancesRequest::setPrivateIpAddress(const std::string &privateIpAddres
|
||||
setParameter(std::string("PrivateIpAddress"), privateIpAddress);
|
||||
}
|
||||
|
||||
std::string RunInstancesRequest::getPeriodUnit() const {
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
void RunInstancesRequest::setPeriodUnit(const std::string &periodUnit) {
|
||||
periodUnit_ = periodUnit;
|
||||
setParameter(std::string("PeriodUnit"), periodUnit);
|
||||
}
|
||||
|
||||
std::string RunInstancesRequest::getInstanceName() const {
|
||||
return instanceName_;
|
||||
}
|
||||
|
||||
@@ -1,117 +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/ens/model/SchedulePodRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::SchedulePodRequest;
|
||||
|
||||
SchedulePodRequest::SchedulePodRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "SchedulePod") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SchedulePodRequest::~SchedulePodRequest() {}
|
||||
|
||||
std::string SchedulePodRequest::getAreaCodes() const {
|
||||
return areaCodes_;
|
||||
}
|
||||
|
||||
void SchedulePodRequest::setAreaCodes(const std::string &areaCodes) {
|
||||
areaCodes_ = areaCodes;
|
||||
setParameter(std::string("AreaCodes"), areaCodes);
|
||||
}
|
||||
|
||||
std::string SchedulePodRequest::getGroupUuid() const {
|
||||
return groupUuid_;
|
||||
}
|
||||
|
||||
void SchedulePodRequest::setGroupUuid(const std::string &groupUuid) {
|
||||
groupUuid_ = groupUuid;
|
||||
setParameter(std::string("GroupUuid"), groupUuid);
|
||||
}
|
||||
|
||||
std::string SchedulePodRequest::getIsps() const {
|
||||
return isps_;
|
||||
}
|
||||
|
||||
void SchedulePodRequest::setIsps(const std::string &isps) {
|
||||
isps_ = isps;
|
||||
setParameter(std::string("Isps"), isps);
|
||||
}
|
||||
|
||||
std::string SchedulePodRequest::getTenant() const {
|
||||
return tenant_;
|
||||
}
|
||||
|
||||
void SchedulePodRequest::setTenant(const std::string &tenant) {
|
||||
tenant_ = tenant;
|
||||
setParameter(std::string("Tenant"), tenant);
|
||||
}
|
||||
|
||||
std::string SchedulePodRequest::getWorkloadUuid() const {
|
||||
return workloadUuid_;
|
||||
}
|
||||
|
||||
void SchedulePodRequest::setWorkloadUuid(const std::string &workloadUuid) {
|
||||
workloadUuid_ = workloadUuid;
|
||||
setParameter(std::string("WorkloadUuid"), workloadUuid);
|
||||
}
|
||||
|
||||
std::string SchedulePodRequest::getLabels() const {
|
||||
return labels_;
|
||||
}
|
||||
|
||||
void SchedulePodRequest::setLabels(const std::string &labels) {
|
||||
labels_ = labels;
|
||||
setParameter(std::string("Labels"), labels);
|
||||
}
|
||||
|
||||
std::string SchedulePodRequest::getRegions() const {
|
||||
return regions_;
|
||||
}
|
||||
|
||||
void SchedulePodRequest::setRegions(const std::string ®ions) {
|
||||
regions_ = regions;
|
||||
setParameter(std::string("Regions"), regions);
|
||||
}
|
||||
|
||||
std::string SchedulePodRequest::getResourceAttribute() const {
|
||||
return resourceAttribute_;
|
||||
}
|
||||
|
||||
void SchedulePodRequest::setResourceAttribute(const std::string &resourceAttribute) {
|
||||
resourceAttribute_ = resourceAttribute;
|
||||
setBodyParameter(std::string("ResourceAttribute"), resourceAttribute);
|
||||
}
|
||||
|
||||
long SchedulePodRequest::getAliUid() const {
|
||||
return aliUid_;
|
||||
}
|
||||
|
||||
void SchedulePodRequest::setAliUid(long aliUid) {
|
||||
aliUid_ = aliUid;
|
||||
setParameter(std::string("AliUid"), std::to_string(aliUid));
|
||||
}
|
||||
|
||||
std::string SchedulePodRequest::getRequirements() const {
|
||||
return requirements_;
|
||||
}
|
||||
|
||||
void SchedulePodRequest::setRequirements(const std::string &requirements) {
|
||||
requirements_ = requirements;
|
||||
setBodyParameter(std::string("Requirements"), requirements);
|
||||
}
|
||||
|
||||
@@ -1,72 +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/ens/model/SchedulePodResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
SchedulePodResult::SchedulePodResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SchedulePodResult::SchedulePodResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SchedulePodResult::~SchedulePodResult()
|
||||
{}
|
||||
|
||||
void SchedulePodResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stol(value["Code"].asString());
|
||||
if(!value["Msg"].isNull())
|
||||
msg_ = value["Msg"].asString();
|
||||
if(!value["Desc"].isNull())
|
||||
desc_ = value["Desc"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SchedulePodResult::getMsg()const
|
||||
{
|
||||
return msg_;
|
||||
}
|
||||
|
||||
std::string SchedulePodResult::getDesc()const
|
||||
{
|
||||
return desc_;
|
||||
}
|
||||
|
||||
std::string SchedulePodResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
long SchedulePodResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void StartLoadBalancerListenerRequest::setListenerPort(int listenerPort) {
|
||||
setParameter(std::string("ListenerPort"), std::to_string(listenerPort));
|
||||
}
|
||||
|
||||
std::string StartLoadBalancerListenerRequest::getListenerProtocol() const {
|
||||
return listenerProtocol_;
|
||||
}
|
||||
|
||||
void StartLoadBalancerListenerRequest::setListenerProtocol(const std::string &listenerProtocol) {
|
||||
listenerProtocol_ = listenerProtocol;
|
||||
setParameter(std::string("ListenerProtocol"), listenerProtocol);
|
||||
}
|
||||
|
||||
std::string StartLoadBalancerListenerRequest::getLoadBalancerId() const {
|
||||
return loadBalancerId_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void StopLoadBalancerListenerRequest::setListenerPort(int listenerPort) {
|
||||
setParameter(std::string("ListenerPort"), std::to_string(listenerPort));
|
||||
}
|
||||
|
||||
std::string StopLoadBalancerListenerRequest::getListenerProtocol() const {
|
||||
return listenerProtocol_;
|
||||
}
|
||||
|
||||
void StopLoadBalancerListenerRequest::setListenerProtocol(const std::string &listenerProtocol) {
|
||||
listenerProtocol_ = listenerProtocol;
|
||||
setParameter(std::string("ListenerProtocol"), listenerProtocol);
|
||||
}
|
||||
|
||||
std::string StopLoadBalancerListenerRequest::getLoadBalancerId() const {
|
||||
return loadBalancerId_;
|
||||
}
|
||||
|
||||
47
ens/src/model/UnassignPrivateIpAddressesRequest.cc
Normal file
47
ens/src/model/UnassignPrivateIpAddressesRequest.cc
Normal file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* 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/ens/model/UnassignPrivateIpAddressesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::UnassignPrivateIpAddressesRequest;
|
||||
|
||||
UnassignPrivateIpAddressesRequest::UnassignPrivateIpAddressesRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "UnassignPrivateIpAddresses") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UnassignPrivateIpAddressesRequest::~UnassignPrivateIpAddressesRequest() {}
|
||||
|
||||
std::vector<UnassignPrivateIpAddressesRequest::std::string> UnassignPrivateIpAddressesRequest::getPrivateIpAddress() const {
|
||||
return privateIpAddress_;
|
||||
}
|
||||
|
||||
void UnassignPrivateIpAddressesRequest::setPrivateIpAddress(const std::vector<UnassignPrivateIpAddressesRequest::std::string> &privateIpAddress) {
|
||||
privateIpAddress_ = privateIpAddress;
|
||||
for(int dep1 = 0; dep1 != privateIpAddress.size(); dep1++) {
|
||||
setParameter(std::string("PrivateIpAddress") + "." + std::to_string(dep1 + 1), privateIpAddress[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string UnassignPrivateIpAddressesRequest::getNetworkInterfaceId() const {
|
||||
return networkInterfaceId_;
|
||||
}
|
||||
|
||||
void UnassignPrivateIpAddressesRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) {
|
||||
networkInterfaceId_ = networkInterfaceId;
|
||||
setParameter(std::string("NetworkInterfaceId"), networkInterfaceId);
|
||||
}
|
||||
|
||||
44
ens/src/model/UnassignPrivateIpAddressesResult.cc
Normal file
44
ens/src/model/UnassignPrivateIpAddressesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/ens/model/UnassignPrivateIpAddressesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
UnassignPrivateIpAddressesResult::UnassignPrivateIpAddressesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnassignPrivateIpAddressesResult::UnassignPrivateIpAddressesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnassignPrivateIpAddressesResult::~UnassignPrivateIpAddressesResult()
|
||||
{}
|
||||
|
||||
void UnassignPrivateIpAddressesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,54 +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/ens/model/UnassociateEipAddressRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::UnassociateEipAddressRequest;
|
||||
|
||||
UnassociateEipAddressRequest::UnassociateEipAddressRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "UnassociateEipAddress") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UnassociateEipAddressRequest::~UnassociateEipAddressRequest() {}
|
||||
|
||||
std::string UnassociateEipAddressRequest::getEip() const {
|
||||
return eip_;
|
||||
}
|
||||
|
||||
void UnassociateEipAddressRequest::setEip(const std::string &eip) {
|
||||
eip_ = eip;
|
||||
setParameter(std::string("Eip"), eip);
|
||||
}
|
||||
|
||||
std::string UnassociateEipAddressRequest::getEnsRegionId() const {
|
||||
return ensRegionId_;
|
||||
}
|
||||
|
||||
void UnassociateEipAddressRequest::setEnsRegionId(const std::string &ensRegionId) {
|
||||
ensRegionId_ = ensRegionId;
|
||||
setParameter(std::string("EnsRegionId"), ensRegionId);
|
||||
}
|
||||
|
||||
std::string UnassociateEipAddressRequest::getInstanceIdInternetIp() const {
|
||||
return instanceIdInternetIp_;
|
||||
}
|
||||
|
||||
void UnassociateEipAddressRequest::setInstanceIdInternetIp(const std::string &instanceIdInternetIp) {
|
||||
instanceIdInternetIp_ = instanceIdInternetIp;
|
||||
setParameter(std::string("InstanceIdInternetIp"), instanceIdInternetIp);
|
||||
}
|
||||
|
||||
56
ens/src/model/UpgradeAICInstanceImageRequest.cc
Normal file
56
ens/src/model/UpgradeAICInstanceImageRequest.cc
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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/ens/model/UpgradeAICInstanceImageRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::UpgradeAICInstanceImageRequest;
|
||||
|
||||
UpgradeAICInstanceImageRequest::UpgradeAICInstanceImageRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "UpgradeAICInstanceImage") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
UpgradeAICInstanceImageRequest::~UpgradeAICInstanceImageRequest() {}
|
||||
|
||||
std::string UpgradeAICInstanceImageRequest::getImageId() const {
|
||||
return imageId_;
|
||||
}
|
||||
|
||||
void UpgradeAICInstanceImageRequest::setImageId(const std::string &imageId) {
|
||||
imageId_ = imageId;
|
||||
setParameter(std::string("ImageId"), imageId);
|
||||
}
|
||||
|
||||
int UpgradeAICInstanceImageRequest::getTimeout() const {
|
||||
return timeout_;
|
||||
}
|
||||
|
||||
void UpgradeAICInstanceImageRequest::setTimeout(int timeout) {
|
||||
timeout_ = timeout;
|
||||
setParameter(std::string("Timeout"), std::to_string(timeout));
|
||||
}
|
||||
|
||||
std::vector<UpgradeAICInstanceImageRequest::std::string> UpgradeAICInstanceImageRequest::getServerIds() const {
|
||||
return serverIds_;
|
||||
}
|
||||
|
||||
void UpgradeAICInstanceImageRequest::setServerIds(const std::vector<UpgradeAICInstanceImageRequest::std::string> &serverIds) {
|
||||
serverIds_ = serverIds;
|
||||
for(int dep1 = 0; dep1 != serverIds.size(); dep1++) {
|
||||
setParameter(std::string("ServerIds") + "." + std::to_string(dep1 + 1), serverIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
44
ens/src/model/UpgradeAICInstanceImageResult.cc
Normal file
44
ens/src/model/UpgradeAICInstanceImageResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/ens/model/UpgradeAICInstanceImageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
UpgradeAICInstanceImageResult::UpgradeAICInstanceImageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpgradeAICInstanceImageResult::UpgradeAICInstanceImageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpgradeAICInstanceImageResult::~UpgradeAICInstanceImageResult()
|
||||
{}
|
||||
|
||||
void UpgradeAICInstanceImageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user