由柏霜发起的ECS SDK自动发布, 版本号:1.6.4

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2018-04-23 20:36:09 +08:00
parent 8968d04f56
commit 482abf2f25
31 changed files with 1315 additions and 1 deletions

View File

@@ -1347,6 +1347,42 @@ EcsClient::ModifyInstanceSpecOutcomeCallable EcsClient::modifyInstanceSpecCallab
return task->get_future();
}
EcsClient::AssignPrivateIpAddressesOutcome EcsClient::assignPrivateIpAddresses(const AssignPrivateIpAddressesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AssignPrivateIpAddressesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AssignPrivateIpAddressesOutcome(AssignPrivateIpAddressesResult(outcome.result()));
else
return AssignPrivateIpAddressesOutcome(outcome.error());
}
void EcsClient::assignPrivateIpAddressesAsync(const AssignPrivateIpAddressesRequest& request, const AssignPrivateIpAddressesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, assignPrivateIpAddresses(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::AssignPrivateIpAddressesOutcomeCallable EcsClient::assignPrivateIpAddressesCallable(const AssignPrivateIpAddressesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AssignPrivateIpAddressesOutcome()>>(
[this, request]()
{
return this->assignPrivateIpAddresses(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::DeleteSnapshotOutcome EcsClient::deleteSnapshot(const DeleteSnapshotRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5199,6 +5235,42 @@ EcsClient::DescribeRenewalPriceOutcomeCallable EcsClient::describeRenewalPriceCa
return task->get_future();
}
EcsClient::UnassignPrivateIpAddressesOutcome EcsClient::unassignPrivateIpAddresses(const UnassignPrivateIpAddressesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UnassignPrivateIpAddressesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UnassignPrivateIpAddressesOutcome(UnassignPrivateIpAddressesResult(outcome.result()));
else
return UnassignPrivateIpAddressesOutcome(outcome.error());
}
void EcsClient::unassignPrivateIpAddressesAsync(const UnassignPrivateIpAddressesRequest& request, const UnassignPrivateIpAddressesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, unassignPrivateIpAddresses(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::UnassignPrivateIpAddressesOutcomeCallable EcsClient::unassignPrivateIpAddressesCallable(const UnassignPrivateIpAddressesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UnassignPrivateIpAddressesOutcome()>>(
[this, request]()
{
return this->unassignPrivateIpAddresses(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::DescribeInstanceVncPasswdOutcome EcsClient::describeInstanceVncPasswd(const DescribeInstanceVncPasswdRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,325 @@
/*
* 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/ecs/model/AssignPrivateIpAddressesRequest.h>
using AlibabaCloud::Ecs::Model::AssignPrivateIpAddressesRequest;
AssignPrivateIpAddressesRequest::AssignPrivateIpAddressesRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AssignPrivateIpAddresses")
{}
AssignPrivateIpAddressesRequest::~AssignPrivateIpAddressesRequest()
{}
long AssignPrivateIpAddressesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AssignPrivateIpAddressesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long AssignPrivateIpAddressesRequest::getCallerParentId()const
{
return callerParentId_;
}
void AssignPrivateIpAddressesRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
bool AssignPrivateIpAddressesRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void AssignPrivateIpAddressesRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
int AssignPrivateIpAddressesRequest::getSecondaryPrivateIpAddressCount()const
{
return secondaryPrivateIpAddressCount_;
}
void AssignPrivateIpAddressesRequest::setSecondaryPrivateIpAddressCount(int secondaryPrivateIpAddressCount)
{
secondaryPrivateIpAddressCount_ = secondaryPrivateIpAddressCount;
setParameter("SecondaryPrivateIpAddressCount", std::to_string(secondaryPrivateIpAddressCount));
}
std::string AssignPrivateIpAddressesRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void AssignPrivateIpAddressesRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string AssignPrivateIpAddressesRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void AssignPrivateIpAddressesRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string AssignPrivateIpAddressesRequest::getCallerType()const
{
return callerType_;
}
void AssignPrivateIpAddressesRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
std::string AssignPrivateIpAddressesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AssignPrivateIpAddressesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string AssignPrivateIpAddressesRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void AssignPrivateIpAddressesRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string AssignPrivateIpAddressesRequest::getSecurityToken()const
{
return securityToken_;
}
void AssignPrivateIpAddressesRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string AssignPrivateIpAddressesRequest::getRegionId()const
{
return regionId_;
}
void AssignPrivateIpAddressesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool AssignPrivateIpAddressesRequest::getEnable()const
{
return enable_;
}
void AssignPrivateIpAddressesRequest::setEnable(bool enable)
{
enable_ = enable;
setParameter("Enable", std::to_string(enable));
}
std::string AssignPrivateIpAddressesRequest::getRequestContent()const
{
return requestContent_;
}
void AssignPrivateIpAddressesRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string AssignPrivateIpAddressesRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void AssignPrivateIpAddressesRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string AssignPrivateIpAddressesRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void AssignPrivateIpAddressesRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long AssignPrivateIpAddressesRequest::getCallerUid()const
{
return callerUid_;
}
void AssignPrivateIpAddressesRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string AssignPrivateIpAddressesRequest::getApp_ip()const
{
return app_ip_;
}
void AssignPrivateIpAddressesRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string AssignPrivateIpAddressesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AssignPrivateIpAddressesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AssignPrivateIpAddressesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AssignPrivateIpAddressesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AssignPrivateIpAddressesRequest::getCallerBid()const
{
return callerBid_;
}
void AssignPrivateIpAddressesRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long AssignPrivateIpAddressesRequest::getOwnerId()const
{
return ownerId_;
}
void AssignPrivateIpAddressesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
bool AssignPrivateIpAddressesRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void AssignPrivateIpAddressesRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool AssignPrivateIpAddressesRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void AssignPrivateIpAddressesRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
bool AssignPrivateIpAddressesRequest::getSecurity_transport()const
{
return security_transport_;
}
void AssignPrivateIpAddressesRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::vector<std::string> AssignPrivateIpAddressesRequest::getPrivateIpAddress()const
{
return privateIpAddress_;
}
void AssignPrivateIpAddressesRequest::setPrivateIpAddress(const std::vector<std::string>& privateIpAddress)
{
privateIpAddress_ = privateIpAddress;
for(int i = 0; i!= privateIpAddress.size(); i++)
setParameter("PrivateIpAddress."+ std::to_string(i), privateIpAddress.at(i));
}
std::string AssignPrivateIpAddressesRequest::getRequestId()const
{
return requestId_;
}
void AssignPrivateIpAddressesRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
std::string AssignPrivateIpAddressesRequest::getNetworkInterfaceId()const
{
return networkInterfaceId_;
}
void AssignPrivateIpAddressesRequest::setNetworkInterfaceId(const std::string& networkInterfaceId)
{
networkInterfaceId_ = networkInterfaceId;
setParameter("NetworkInterfaceId", networkInterfaceId);
}

View 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/ecs/model/AssignPrivateIpAddressesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::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());
}

View File

@@ -564,6 +564,17 @@ void CreateInstanceRequest::setRamRoleName(const std::string& ramRoleName)
setParameter("RamRoleName", ramRoleName);
}
std::string CreateInstanceRequest::getDedicatedHostId()const
{
return dedicatedHostId_;
}
void CreateInstanceRequest::setDedicatedHostId(const std::string& dedicatedHostId)
{
dedicatedHostId_ = dedicatedHostId;
setParameter("DedicatedHostId", dedicatedHostId);
}
std::string CreateInstanceRequest::getClusterId()const
{
return clusterId_;

View File

@@ -289,6 +289,17 @@ void DescribeAvailableResourceRequest::setOwnerAccount(const std::string& ownerA
setParameter("OwnerAccount", ownerAccount);
}
std::string DescribeAvailableResourceRequest::getDedicatedHostId()const
{
return dedicatedHostId_;
}
void DescribeAvailableResourceRequest::setDedicatedHostId(const std::string& dedicatedHostId)
{
dedicatedHostId_ = dedicatedHostId;
setParameter("DedicatedHostId", dedicatedHostId);
}
std::string DescribeAvailableResourceRequest::getCallerBid()const
{
return callerBid_;

View File

@@ -67,6 +67,11 @@ void DescribeInstanceAttributeResult::parse(const std::string &payload)
eipAddress_.bandwidth = std::stoi(eipAddressNode["Bandwidth"].asString());
if(!eipAddressNode["InternetChargeType"].isNull())
eipAddress_.internetChargeType = eipAddressNode["InternetChargeType"].asString();
auto dedicatedHostAttributeNode = value["DedicatedHostAttribute"];
if(!dedicatedHostAttributeNode["DedicatedHostId"].isNull())
dedicatedHostAttribute_.dedicatedHostId = dedicatedHostAttributeNode["DedicatedHostId"].asString();
if(!dedicatedHostAttributeNode["DedicatedHostName"].isNull())
dedicatedHostAttribute_.dedicatedHostName = dedicatedHostAttributeNode["DedicatedHostName"].asString();
auto allSecurityGroupIds = value["SecurityGroupIds"]["SecurityGroupId"];
for (const auto &item : allSecurityGroupIds)
securityGroupIds_.push_back(item.asString());
@@ -220,6 +225,11 @@ std::string DescribeInstanceAttributeResult::getStoppedMode()const
return stoppedMode_;
}
DescribeInstanceAttributeResult::DedicatedHostAttribute DescribeInstanceAttributeResult::getDedicatedHostAttribute()const
{
return dedicatedHostAttribute_;
}
DescribeInstanceAttributeResult::VpcAttributes DescribeInstanceAttributeResult::getVpcAttributes()const
{
return vpcAttributes_;

View File

@@ -213,6 +213,18 @@ void DescribeInstanceHistoryEventsRequest::setCallerBidEmail(const std::string&
setParameter("CallerBidEmail", callerBidEmail);
}
std::vector<std::string> DescribeInstanceHistoryEventsRequest::getInstanceEventCycleStatus()const
{
return instanceEventCycleStatus_;
}
void DescribeInstanceHistoryEventsRequest::setInstanceEventCycleStatus(const std::vector<std::string>& instanceEventCycleStatus)
{
instanceEventCycleStatus_ = instanceEventCycleStatus;
for(int i = 0; i!= instanceEventCycleStatus.size(); i++)
setParameter("InstanceEventCycleStatus."+ std::to_string(i), instanceEventCycleStatus.at(i));
}
std::string DescribeInstanceHistoryEventsRequest::getCallerUidEmail()const
{
return callerUidEmail_;
@@ -257,6 +269,18 @@ void DescribeInstanceHistoryEventsRequest::setApp_ip(const std::string& app_ip)
setParameter("App_ip", app_ip);
}
std::vector<std::string> DescribeInstanceHistoryEventsRequest::getInstanceEventType()const
{
return instanceEventType_;
}
void DescribeInstanceHistoryEventsRequest::setInstanceEventType(const std::vector<std::string>& instanceEventType)
{
instanceEventType_ = instanceEventType;
for(int i = 0; i!= instanceEventType.size(); i++)
setParameter("InstanceEventType."+ std::to_string(i), instanceEventType.at(i));
}
std::string DescribeInstanceHistoryEventsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;

View File

@@ -52,11 +52,18 @@ void DescribeInstanceHistoryEventsResult::parse(const std::string &payload)
instanceSystemEventSetObject.eventPublishTime = value["EventPublishTime"].asString();
if(!value["NotBefore"].isNull())
instanceSystemEventSetObject.notBefore = value["NotBefore"].asString();
if(!value["EventFinishTime"].isNull())
instanceSystemEventSetObject.eventFinishTime = value["EventFinishTime"].asString();
auto eventTypeNode = value["EventType"];
if(!eventTypeNode["Code"].isNull())
instanceSystemEventSetObject.eventType.code = std::stoi(eventTypeNode["Code"].asString());
if(!eventTypeNode["Name"].isNull())
instanceSystemEventSetObject.eventType.name = eventTypeNode["Name"].asString();
auto eventCycleStatusNode = value["EventCycleStatus"];
if(!eventCycleStatusNode["Code"].isNull())
instanceSystemEventSetObject.eventCycleStatus.code = std::stoi(eventCycleStatusNode["Code"].asString());
if(!eventCycleStatusNode["Name"].isNull())
instanceSystemEventSetObject.eventCycleStatus.name = eventCycleStatusNode["Name"].asString();
instanceSystemEventSet_.push_back(instanceSystemEventSetObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -246,6 +246,18 @@ void DescribeInstancesFullStatusRequest::setApp_ip(const std::string& app_ip)
setParameter("App_ip", app_ip);
}
std::vector<std::string> DescribeInstancesFullStatusRequest::getInstanceEventType()const
{
return instanceEventType_;
}
void DescribeInstancesFullStatusRequest::setInstanceEventType(const std::vector<std::string>& instanceEventType)
{
instanceEventType_ = instanceEventType;
for(int i = 0; i!= instanceEventType.size(); i++)
setParameter("InstanceEventType."+ std::to_string(i), instanceEventType.at(i));
}
std::string DescribeInstancesFullStatusRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;

View File

@@ -177,6 +177,11 @@ void DescribeInstancesResult::parse(const std::string &payload)
instancesObject.eipAddress.internetChargeType = eipAddressNode["InternetChargeType"].asString();
if(!eipAddressNode["IsSupportUnassociate"].isNull())
instancesObject.eipAddress.isSupportUnassociate = eipAddressNode["IsSupportUnassociate"].asString() == "true";
auto dedicatedHostAttributeNode = value["DedicatedHostAttribute"];
if(!dedicatedHostAttributeNode["DedicatedHostId"].isNull())
instancesObject.dedicatedHostAttribute.dedicatedHostId = dedicatedHostAttributeNode["DedicatedHostId"].asString();
if(!dedicatedHostAttributeNode["DedicatedHostName"].isNull())
instancesObject.dedicatedHostAttribute.dedicatedHostName = dedicatedHostAttributeNode["DedicatedHostName"].asString();
auto allSecurityGroupIds = value["SecurityGroupIds"]["SecurityGroupId"];
for (auto value : allSecurityGroupIds)
instancesObject.securityGroupIds.push_back(value.asString());

View File

@@ -86,6 +86,12 @@ void DescribeZonesResult::parse(const std::string &payload)
auto allAvailableVolumeCategories = value["AvailableVolumeCategories"]["VolumeCategories"];
for (auto value : allAvailableVolumeCategories)
zonesObject.availableVolumeCategories.push_back(value.asString());
auto allAvailableDedicatedHostTypes = value["AvailableDedicatedHostTypes"]["DedicatedHostType"];
for (auto value : allAvailableDedicatedHostTypes)
zonesObject.availableDedicatedHostTypes.push_back(value.asString());
auto allDedicatedHostGenerations = value["DedicatedHostGenerations"]["DedicatedHostGeneration"];
for (auto value : allDedicatedHostGenerations)
zonesObject.dedicatedHostGenerations.push_back(value.asString());
zones_.push_back(zonesObject);
}

View File

@@ -601,6 +601,17 @@ void RunInstancesRequest::setAutoReleaseTime(const std::string& autoReleaseTime)
setParameter("AutoReleaseTime", autoReleaseTime);
}
std::string RunInstancesRequest::getDedicatedHostId()const
{
return dedicatedHostId_;
}
void RunInstancesRequest::setDedicatedHostId(const std::string& dedicatedHostId)
{
dedicatedHostId_ = dedicatedHostId;
setParameter("DedicatedHostId", dedicatedHostId);
}
std::string RunInstancesRequest::getCallerBid()const
{
return callerBid_;

View File

@@ -0,0 +1,314 @@
/*
* 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/ecs/model/UnassignPrivateIpAddressesRequest.h>
using AlibabaCloud::Ecs::Model::UnassignPrivateIpAddressesRequest;
UnassignPrivateIpAddressesRequest::UnassignPrivateIpAddressesRequest() :
RpcServiceRequest("ecs", "2014-05-26", "UnassignPrivateIpAddresses")
{}
UnassignPrivateIpAddressesRequest::~UnassignPrivateIpAddressesRequest()
{}
long UnassignPrivateIpAddressesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void UnassignPrivateIpAddressesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long UnassignPrivateIpAddressesRequest::getCallerParentId()const
{
return callerParentId_;
}
void UnassignPrivateIpAddressesRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setParameter("CallerParentId", std::to_string(callerParentId));
}
bool UnassignPrivateIpAddressesRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void UnassignPrivateIpAddressesRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
}
std::string UnassignPrivateIpAddressesRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void UnassignPrivateIpAddressesRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string UnassignPrivateIpAddressesRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void UnassignPrivateIpAddressesRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string UnassignPrivateIpAddressesRequest::getCallerType()const
{
return callerType_;
}
void UnassignPrivateIpAddressesRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setParameter("CallerType", callerType);
}
std::string UnassignPrivateIpAddressesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void UnassignPrivateIpAddressesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string UnassignPrivateIpAddressesRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void UnassignPrivateIpAddressesRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string UnassignPrivateIpAddressesRequest::getSecurityToken()const
{
return securityToken_;
}
void UnassignPrivateIpAddressesRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string UnassignPrivateIpAddressesRequest::getRegionId()const
{
return regionId_;
}
void UnassignPrivateIpAddressesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool UnassignPrivateIpAddressesRequest::getEnable()const
{
return enable_;
}
void UnassignPrivateIpAddressesRequest::setEnable(bool enable)
{
enable_ = enable;
setParameter("Enable", std::to_string(enable));
}
std::string UnassignPrivateIpAddressesRequest::getRequestContent()const
{
return requestContent_;
}
void UnassignPrivateIpAddressesRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setParameter("RequestContent", requestContent);
}
std::string UnassignPrivateIpAddressesRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void UnassignPrivateIpAddressesRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setParameter("CallerBidEmail", callerBidEmail);
}
std::string UnassignPrivateIpAddressesRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void UnassignPrivateIpAddressesRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setParameter("CallerUidEmail", callerUidEmail);
}
long UnassignPrivateIpAddressesRequest::getCallerUid()const
{
return callerUid_;
}
void UnassignPrivateIpAddressesRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setParameter("CallerUid", std::to_string(callerUid));
}
std::string UnassignPrivateIpAddressesRequest::getApp_ip()const
{
return app_ip_;
}
void UnassignPrivateIpAddressesRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setParameter("App_ip", app_ip);
}
std::string UnassignPrivateIpAddressesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void UnassignPrivateIpAddressesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string UnassignPrivateIpAddressesRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void UnassignPrivateIpAddressesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string UnassignPrivateIpAddressesRequest::getCallerBid()const
{
return callerBid_;
}
void UnassignPrivateIpAddressesRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setParameter("CallerBid", callerBid);
}
long UnassignPrivateIpAddressesRequest::getOwnerId()const
{
return ownerId_;
}
void UnassignPrivateIpAddressesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
bool UnassignPrivateIpAddressesRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void UnassignPrivateIpAddressesRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
}
bool UnassignPrivateIpAddressesRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void UnassignPrivateIpAddressesRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
}
bool UnassignPrivateIpAddressesRequest::getSecurity_transport()const
{
return security_transport_;
}
void UnassignPrivateIpAddressesRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setParameter("Security_transport", std::to_string(security_transport));
}
std::vector<std::string> UnassignPrivateIpAddressesRequest::getPrivateIpAddress()const
{
return privateIpAddress_;
}
void UnassignPrivateIpAddressesRequest::setPrivateIpAddress(const std::vector<std::string>& privateIpAddress)
{
privateIpAddress_ = privateIpAddress;
for(int i = 0; i!= privateIpAddress.size(); i++)
setParameter("PrivateIpAddress."+ std::to_string(i), privateIpAddress.at(i));
}
std::string UnassignPrivateIpAddressesRequest::getRequestId()const
{
return requestId_;
}
void UnassignPrivateIpAddressesRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
}
std::string UnassignPrivateIpAddressesRequest::getNetworkInterfaceId()const
{
return networkInterfaceId_;
}
void UnassignPrivateIpAddressesRequest::setNetworkInterfaceId(const std::string& networkInterfaceId)
{
networkInterfaceId_ = networkInterfaceId;
setParameter("NetworkInterfaceId", networkInterfaceId);
}

View 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/ecs/model/UnassignPrivateIpAddressesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::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());
}