DescribeDemands add PrivatePoolId.
This commit is contained in:
@@ -40,6 +40,7 @@ namespace AlibabaCloud
|
||||
std::string supplyStartTime;
|
||||
int amount;
|
||||
std::string supplyEndTime;
|
||||
std::string privatePoolId;
|
||||
};
|
||||
std::string demandDescription;
|
||||
std::string comment;
|
||||
|
||||
@@ -40,6 +40,8 @@ public:
|
||||
void setOwnerAccount(const std::string &ownerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getStrategy() const;
|
||||
void setStrategy(const std::string &strategy);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
@@ -47,6 +49,7 @@ private:
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string strategy_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Ecs
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace AlibabaCloud
|
||||
struct Account
|
||||
{
|
||||
std::string aliyunId;
|
||||
std::string sharedTime;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -43,6 +43,8 @@ public:
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getContainerName() const;
|
||||
void setContainerName(const std::string &containerName);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::vector<SystemTag> getSystemTag() const;
|
||||
void setSystemTag(const std::vector<SystemTag> &systemTag);
|
||||
std::string getCommandId() const;
|
||||
@@ -81,6 +83,7 @@ public:
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string containerName_;
|
||||
std::string clientToken_;
|
||||
std::vector<SystemTag> systemTag_;
|
||||
std::string commandId_;
|
||||
long timeout_;
|
||||
|
||||
@@ -36,40 +36,22 @@ public:
|
||||
~RunCommandRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getContainerName() const;
|
||||
void setContainerName(const std::string &containerName);
|
||||
std::string getWorkingDir() const;
|
||||
void setWorkingDir(const std::string &workingDir);
|
||||
std::string getDescription() const;
|
||||
void setDescription(const std::string &description);
|
||||
std::string getType() const;
|
||||
void setType(const std::string &type);
|
||||
std::string getCommandContent() const;
|
||||
void setCommandContent(const std::string &commandContent);
|
||||
long getTimeout() const;
|
||||
void setTimeout(long timeout);
|
||||
std::string getFrequency() const;
|
||||
void setFrequency(const std::string &frequency);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getContentEncoding() const;
|
||||
void setContentEncoding(const std::string &contentEncoding);
|
||||
std::string getRepeatMode() const;
|
||||
void setRepeatMode(const std::string &repeatMode);
|
||||
std::string getWindowsPasswordName() const;
|
||||
void setWindowsPasswordName(const std::string &windowsPasswordName);
|
||||
std::vector<Tag> getTag() const;
|
||||
void setTag(const std::vector<Tag> &tag);
|
||||
bool getKeepCommand() const;
|
||||
void setKeepCommand(bool keepCommand);
|
||||
bool getTimed() const;
|
||||
void setTimed(bool timed);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getOwnerAccount() const;
|
||||
void setOwnerAccount(const std::string &ownerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::vector<std::string> getInstanceId() const;
|
||||
@@ -80,6 +62,26 @@ public:
|
||||
void setContainerId(const std::string &containerId);
|
||||
std::map<std::string, std::string> getParameters() const;
|
||||
void setParameters(std::map<std::string, std::string> parameters);
|
||||
std::string getContainerName() const;
|
||||
void setContainerName(const std::string &containerName);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getDescription() const;
|
||||
void setDescription(const std::string &description);
|
||||
std::string getCommandContent() const;
|
||||
void setCommandContent(const std::string &commandContent);
|
||||
long getTimeout() const;
|
||||
void setTimeout(long timeout);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getContentEncoding() const;
|
||||
void setContentEncoding(const std::string &contentEncoding);
|
||||
std::string getWindowsPasswordName() const;
|
||||
void setWindowsPasswordName(const std::string &windowsPasswordName);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getOwnerAccount() const;
|
||||
void setOwnerAccount(const std::string &ownerAccount);
|
||||
bool getEnableParameter() const;
|
||||
void setEnableParameter(bool enableParameter);
|
||||
std::string getUsername() const;
|
||||
@@ -87,28 +89,29 @@ public:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string containerName_;
|
||||
std::string workingDir_;
|
||||
std::string description_;
|
||||
std::string type_;
|
||||
std::string commandContent_;
|
||||
long timeout_;
|
||||
std::string frequency_;
|
||||
std::string resourceGroupId_;
|
||||
std::string regionId_;
|
||||
std::string contentEncoding_;
|
||||
std::string repeatMode_;
|
||||
std::string windowsPasswordName_;
|
||||
std::vector<Tag> tag_;
|
||||
bool keepCommand_;
|
||||
bool timed_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::vector<std::string> instanceId_;
|
||||
std::string name_;
|
||||
std::string containerId_;
|
||||
std::map<std::string, std::string> parameters_;
|
||||
std::string containerName_;
|
||||
std::string clientToken_;
|
||||
std::string description_;
|
||||
std::string commandContent_;
|
||||
long timeout_;
|
||||
std::string regionId_;
|
||||
std::string contentEncoding_;
|
||||
std::string windowsPasswordName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
bool enableParameter_;
|
||||
std::string username_;
|
||||
};
|
||||
|
||||
@@ -91,6 +91,8 @@ void DescribeDemandsResult::parse(const std::string &payload)
|
||||
supplyInfosObject.supplyStartTime = valueDemandsDemandSupplyInfosSupplyInfo["SupplyStartTime"].asString();
|
||||
if(!valueDemandsDemandSupplyInfosSupplyInfo["SupplyEndTime"].isNull())
|
||||
supplyInfosObject.supplyEndTime = valueDemandsDemandSupplyInfosSupplyInfo["SupplyEndTime"].asString();
|
||||
if(!valueDemandsDemandSupplyInfosSupplyInfo["PrivatePoolId"].isNull())
|
||||
supplyInfosObject.privatePoolId = valueDemandsDemandSupplyInfosSupplyInfo["PrivatePoolId"].asString();
|
||||
demandsObject.supplyInfos.push_back(supplyInfosObject);
|
||||
}
|
||||
demands_.push_back(demandsObject);
|
||||
|
||||
@@ -70,3 +70,12 @@ void DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::setOwnerId(long ow
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::getStrategy() const {
|
||||
return strategy_;
|
||||
}
|
||||
|
||||
void DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::setStrategy(const std::string &strategy) {
|
||||
strategy_ = strategy;
|
||||
setParameter(std::string("Strategy"), strategy);
|
||||
}
|
||||
|
||||
|
||||
@@ -53,6 +53,8 @@ void DescribeImageSharePermissionResult::parse(const std::string &payload)
|
||||
Account accountsObject;
|
||||
if(!valueAccountsAccount["AliyunId"].isNull())
|
||||
accountsObject.aliyunId = valueAccountsAccount["AliyunId"].asString();
|
||||
if(!valueAccountsAccount["SharedTime"].isNull())
|
||||
accountsObject.sharedTime = valueAccountsAccount["SharedTime"].asString();
|
||||
accounts_.push_back(accountsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
|
||||
@@ -43,6 +43,15 @@ void InvokeCommandRequest::setContainerName(const std::string &containerName) {
|
||||
setParameter(std::string("ContainerName"), containerName);
|
||||
}
|
||||
|
||||
std::string InvokeCommandRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void InvokeCommandRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::vector<InvokeCommandRequest::SystemTag> InvokeCommandRequest::getSystemTag() const {
|
||||
return systemTag_;
|
||||
}
|
||||
|
||||
@@ -34,15 +34,6 @@ void RunCommandRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getContainerName() const {
|
||||
return containerName_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setContainerName(const std::string &containerName) {
|
||||
containerName_ = containerName;
|
||||
setParameter(std::string("ContainerName"), containerName);
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getWorkingDir() const {
|
||||
return workingDir_;
|
||||
}
|
||||
@@ -52,15 +43,6 @@ void RunCommandRequest::setWorkingDir(const std::string &workingDir) {
|
||||
setParameter(std::string("WorkingDir"), workingDir);
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
@@ -70,24 +52,6 @@ void RunCommandRequest::setType(const std::string &type) {
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getCommandContent() const {
|
||||
return commandContent_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setCommandContent(const std::string &commandContent) {
|
||||
commandContent_ = commandContent;
|
||||
setParameter(std::string("CommandContent"), commandContent);
|
||||
}
|
||||
|
||||
long RunCommandRequest::getTimeout() const {
|
||||
return timeout_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setTimeout(long timeout) {
|
||||
timeout_ = timeout;
|
||||
setParameter(std::string("Timeout"), std::to_string(timeout));
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getFrequency() const {
|
||||
return frequency_;
|
||||
}
|
||||
@@ -106,24 +70,6 @@ void RunCommandRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getContentEncoding() const {
|
||||
return contentEncoding_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setContentEncoding(const std::string &contentEncoding) {
|
||||
contentEncoding_ = contentEncoding;
|
||||
setParameter(std::string("ContentEncoding"), contentEncoding);
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getRepeatMode() const {
|
||||
return repeatMode_;
|
||||
}
|
||||
@@ -133,15 +79,6 @@ void RunCommandRequest::setRepeatMode(const std::string &repeatMode) {
|
||||
setParameter(std::string("RepeatMode"), repeatMode);
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getWindowsPasswordName() const {
|
||||
return windowsPasswordName_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setWindowsPasswordName(const std::string &windowsPasswordName) {
|
||||
windowsPasswordName_ = windowsPasswordName;
|
||||
setParameter(std::string("WindowsPasswordName"), windowsPasswordName);
|
||||
}
|
||||
|
||||
std::vector<RunCommandRequest::Tag> RunCommandRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
@@ -174,24 +111,6 @@ void RunCommandRequest::setTimed(bool timed) {
|
||||
setParameter(std::string("Timed"), timed ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long RunCommandRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
@@ -236,6 +155,96 @@ void RunCommandRequest::setParameters(std::map<std::string, std::string> paramet
|
||||
setParameter(std::string("Parameters"), parameters);
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getContainerName() const {
|
||||
return containerName_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setContainerName(const std::string &containerName) {
|
||||
containerName_ = containerName;
|
||||
setParameter(std::string("ContainerName"), containerName);
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getCommandContent() const {
|
||||
return commandContent_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setCommandContent(const std::string &commandContent) {
|
||||
commandContent_ = commandContent;
|
||||
setParameter(std::string("CommandContent"), commandContent);
|
||||
}
|
||||
|
||||
long RunCommandRequest::getTimeout() const {
|
||||
return timeout_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setTimeout(long timeout) {
|
||||
timeout_ = timeout;
|
||||
setParameter(std::string("Timeout"), std::to_string(timeout));
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getContentEncoding() const {
|
||||
return contentEncoding_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setContentEncoding(const std::string &contentEncoding) {
|
||||
contentEncoding_ = contentEncoding;
|
||||
setParameter(std::string("ContentEncoding"), contentEncoding);
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getWindowsPasswordName() const {
|
||||
return windowsPasswordName_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setWindowsPasswordName(const std::string &windowsPasswordName) {
|
||||
windowsPasswordName_ = windowsPasswordName;
|
||||
setParameter(std::string("WindowsPasswordName"), windowsPasswordName);
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
bool RunCommandRequest::getEnableParameter() const {
|
||||
return enableParameter_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user