ECS SDK Auto Released By zhiye,Version:1.36.6
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
@@ -207,6 +207,24 @@ void CreateDiskRequest::setTag(const std::vector<Tag>& tag)
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<CreateDiskRequest::Arn> CreateDiskRequest::getArn()const
|
||||
{
|
||||
return arn_;
|
||||
}
|
||||
|
||||
void CreateDiskRequest::setArn(const std::vector<Arn>& arn)
|
||||
{
|
||||
arn_ = arn;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= arn.size(); i++) {
|
||||
auto obj = arn.at(i);
|
||||
std::string str ="Arn."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Rolearn", obj.rolearn);
|
||||
setCoreParameter(str + ".RoleType", obj.roleType);
|
||||
setCoreParameter(str + ".AssumeRoleFor", std::to_string(obj.assumeRoleFor));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateDiskRequest::getKMSKeyId()const
|
||||
{
|
||||
return kMSKeyId_;
|
||||
|
||||
@@ -482,6 +482,24 @@ void CreateInstanceRequest::setInstanceType(const std::string& instanceType)
|
||||
setCoreParameter("InstanceType", instanceType);
|
||||
}
|
||||
|
||||
std::vector<CreateInstanceRequest::Arn> CreateInstanceRequest::getArn()const
|
||||
{
|
||||
return arn_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setArn(const std::vector<Arn>& arn)
|
||||
{
|
||||
arn_ = arn;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= arn.size(); i++) {
|
||||
auto obj = arn.at(i);
|
||||
std::string str ="Arn."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Rolearn", obj.rolearn);
|
||||
setCoreParameter(str + ".RoleType", obj.roleType);
|
||||
setCoreParameter(str + ".AssumeRoleFor", std::to_string(obj.assumeRoleFor));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getInstanceChargeType()const
|
||||
{
|
||||
return instanceChargeType_;
|
||||
|
||||
@@ -25,6 +25,17 @@ DeleteImageRequest::DeleteImageRequest() :
|
||||
DeleteImageRequest::~DeleteImageRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteImageRequest::getSourceRegionId()const
|
||||
{
|
||||
return sourceRegionId_;
|
||||
}
|
||||
|
||||
void DeleteImageRequest::setSourceRegionId(const std::string& sourceRegionId)
|
||||
{
|
||||
sourceRegionId_ = sourceRegionId;
|
||||
setCoreParameter("SourceRegionId", sourceRegionId);
|
||||
}
|
||||
|
||||
long DeleteImageRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
|
||||
@@ -58,6 +58,8 @@ void DescribeCommandsResult::parse(const std::string &payload)
|
||||
commandsObject.workingDir = value["WorkingDir"].asString();
|
||||
if(!value["Timeout"].isNull())
|
||||
commandsObject.timeout = std::stol(value["Timeout"].asString());
|
||||
if(!value["CreationTime"].isNull())
|
||||
commandsObject.creationTime = value["CreationTime"].asString();
|
||||
commands_.push_back(commandsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
@@ -64,6 +64,8 @@ void DescribeImagesResult::parse(const std::string &payload)
|
||||
imagesObject.isSupportCloudinit = value["IsSupportCloudinit"].asString() == "true";
|
||||
if(!value["OSName"].isNull())
|
||||
imagesObject.oSName = value["OSName"].asString();
|
||||
if(!value["OSNameEn"].isNull())
|
||||
imagesObject.oSNameEn = value["OSNameEn"].asString();
|
||||
if(!value["Architecture"].isNull())
|
||||
imagesObject.architecture = value["Architecture"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
|
||||
@@ -54,6 +54,8 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
instancesObject.imageId = value["ImageId"].asString();
|
||||
if(!value["OSName"].isNull())
|
||||
instancesObject.oSName = value["OSName"].asString();
|
||||
if(!value["OSNameEn"].isNull())
|
||||
instancesObject.oSNameEn = value["OSNameEn"].asString();
|
||||
if(!value["OSType"].isNull())
|
||||
instancesObject.oSType = value["OSType"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
|
||||
Reference in New Issue
Block a user