Support ClientToken for Idemoptent.
This commit is contained in:
@@ -25,6 +25,15 @@ AssignPrivateIpAddressRequest::AssignPrivateIpAddressRequest()
|
||||
|
||||
AssignPrivateIpAddressRequest::~AssignPrivateIpAddressRequest() {}
|
||||
|
||||
std::string AssignPrivateIpAddressRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AssignPrivateIpAddressRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string AssignPrivateIpAddressRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,24 @@ CreateElasticNetworkInterfaceRequest::CreateElasticNetworkInterfaceRequest()
|
||||
|
||||
CreateElasticNetworkInterfaceRequest::~CreateElasticNetworkInterfaceRequest() {}
|
||||
|
||||
std::string CreateElasticNetworkInterfaceRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateElasticNetworkInterfaceRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateElasticNetworkInterfaceRequest::getSecurityGroupId() const {
|
||||
return securityGroupId_;
|
||||
}
|
||||
|
||||
void CreateElasticNetworkInterfaceRequest::setSecurityGroupId(const std::string &securityGroupId) {
|
||||
securityGroupId_ = securityGroupId;
|
||||
setBodyParameter(std::string("SecurityGroupId"), securityGroupId);
|
||||
}
|
||||
|
||||
std::string CreateElasticNetworkInterfaceRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
@@ -34,15 +52,6 @@ void CreateElasticNetworkInterfaceRequest::setDescription(const std::string &des
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateElasticNetworkInterfaceRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateElasticNetworkInterfaceRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setBodyParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateElasticNetworkInterfaceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -52,6 +61,24 @@ void CreateElasticNetworkInterfaceRequest::setRegionId(const std::string ®ion
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateElasticNetworkInterfaceRequest::getNodeId() const {
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void CreateElasticNetworkInterfaceRequest::setNodeId(const std::string &nodeId) {
|
||||
nodeId_ = nodeId;
|
||||
setBodyParameter(std::string("NodeId"), nodeId);
|
||||
}
|
||||
|
||||
std::string CreateElasticNetworkInterfaceRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateElasticNetworkInterfaceRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setBodyParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateElasticNetworkInterfaceRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
@@ -70,12 +97,3 @@ void CreateElasticNetworkInterfaceRequest::setZoneId(const std::string &zoneId)
|
||||
setBodyParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
std::string CreateElasticNetworkInterfaceRequest::getNodeId() const {
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void CreateElasticNetworkInterfaceRequest::setNodeId(const std::string &nodeId) {
|
||||
nodeId_ = nodeId;
|
||||
setBodyParameter(std::string("NodeId"), nodeId);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ DeleteElasticNetworkInterfaceRequest::DeleteElasticNetworkInterfaceRequest()
|
||||
|
||||
DeleteElasticNetworkInterfaceRequest::~DeleteElasticNetworkInterfaceRequest() {}
|
||||
|
||||
std::string DeleteElasticNetworkInterfaceRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteElasticNetworkInterfaceRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteElasticNetworkInterfaceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -42,6 +42,8 @@ void GetNodeInfoForPodResult::parse(const std::string &payload)
|
||||
auto contentNode = value["Content"];
|
||||
if(!contentNode["RegionId"].isNull())
|
||||
content_.regionId = contentNode["RegionId"].asString();
|
||||
if(!contentNode["ZoneId"].isNull())
|
||||
content_.zoneId = contentNode["ZoneId"].asString();
|
||||
if(!contentNode["ClusterId"].isNull())
|
||||
content_.clusterId = contentNode["ClusterId"].asString();
|
||||
if(!contentNode["VpcId"].isNull())
|
||||
|
||||
@@ -43,6 +43,15 @@ void ListNodeInfosForPodRequest::setRegionId(const std::string ®ionId) {
|
||||
setBodyParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ListNodeInfosForPodRequest::getZoneId() const {
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void ListNodeInfosForPodRequest::setZoneId(const std::string &zoneId) {
|
||||
zoneId_ = zoneId;
|
||||
setBodyParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
std::string ListNodeInfosForPodRequest::getNodeId() const {
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
@@ -45,6 +45,8 @@ void ListNodeInfosForPodResult::parse(const std::string &payload)
|
||||
ContentItem contentObject;
|
||||
if(!valueContentContentItem["RegionId"].isNull())
|
||||
contentObject.regionId = valueContentContentItem["RegionId"].asString();
|
||||
if(!valueContentContentItem["ZoneId"].isNull())
|
||||
contentObject.zoneId = valueContentContentItem["ZoneId"].asString();
|
||||
if(!valueContentContentItem["ClusterId"].isNull())
|
||||
contentObject.clusterId = valueContentContentItem["ClusterId"].asString();
|
||||
if(!valueContentContentItem["VpcId"].isNull())
|
||||
|
||||
@@ -34,6 +34,15 @@ void UnAssignPrivateIpAddressRequest::setSubnetId(const std::string &subnetId) {
|
||||
setBodyParameter(std::string("SubnetId"), subnetId);
|
||||
}
|
||||
|
||||
std::string UnAssignPrivateIpAddressRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UnAssignPrivateIpAddressRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string UnAssignPrivateIpAddressRequest::getPrivateIpAddress() const {
|
||||
return privateIpAddress_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ UpdateElasticNetworkInterfaceRequest::UpdateElasticNetworkInterfaceRequest()
|
||||
|
||||
UpdateElasticNetworkInterfaceRequest::~UpdateElasticNetworkInterfaceRequest() {}
|
||||
|
||||
std::string UpdateElasticNetworkInterfaceRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UpdateElasticNetworkInterfaceRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string UpdateElasticNetworkInterfaceRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user