DescribeInstanceTypes support TotalEniQueueQuantity.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2020-04-17 Version: 1.36.363
|
||||
- DescribeInstanceTypes support TotalEniQueueQuantity.
|
||||
|
||||
2020-04-16 Version: 1.36.362
|
||||
- Modify `SubmitSmarttagJob`.
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace AlibabaCloud
|
||||
int eniIpv6AddressQuantity;
|
||||
int cpuCoreCount;
|
||||
long localStorageCapacity;
|
||||
int totalEniQueueQuantity;
|
||||
std::string instanceTypeFamily;
|
||||
long instancePpsRx;
|
||||
int initialCredit;
|
||||
|
||||
@@ -40,6 +40,11 @@ namespace AlibabaCloud
|
||||
std::string oSSObject;
|
||||
int diskImageSize;
|
||||
};
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
ImportImageRequest();
|
||||
@@ -53,10 +58,14 @@ namespace AlibabaCloud
|
||||
void setDescription(const std::string& description);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getImageName()const;
|
||||
void setImageName(const std::string& imageName);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
std::string getArchitecture()const;
|
||||
void setArchitecture(const std::string& architecture);
|
||||
std::string getLicenseType()const;
|
||||
@@ -75,8 +84,10 @@ namespace AlibabaCloud
|
||||
long resourceOwnerId_;
|
||||
std::string description_;
|
||||
std::string platform_;
|
||||
std::string resourceGroupId_;
|
||||
std::string regionId_;
|
||||
std::string imageName_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string architecture_;
|
||||
std::string licenseType_;
|
||||
std::string resourceOwnerAccount_;
|
||||
|
||||
@@ -81,6 +81,8 @@ void DescribeInstanceTypesResult::parse(const std::string &payload)
|
||||
instanceTypesObject.instancePpsTx = std::stol(valueInstanceTypesInstanceType["InstancePpsTx"].asString());
|
||||
if(!valueInstanceTypesInstanceType["InstanceFamilyLevel"].isNull())
|
||||
instanceTypesObject.instanceFamilyLevel = valueInstanceTypesInstanceType["InstanceFamilyLevel"].asString();
|
||||
if(!valueInstanceTypesInstanceType["TotalEniQueueQuantity"].isNull())
|
||||
instanceTypesObject.totalEniQueueQuantity = std::stoi(valueInstanceTypesInstanceType["TotalEniQueueQuantity"].asString());
|
||||
instanceTypes_.push_back(instanceTypesObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -80,6 +80,17 @@ void ImportImageRequest::setPlatform(const std::string& platform)
|
||||
setParameter("Platform", platform);
|
||||
}
|
||||
|
||||
std::string ImportImageRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void ImportImageRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string ImportImageRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -102,6 +113,22 @@ void ImportImageRequest::setImageName(const std::string& imageName)
|
||||
setParameter("ImageName", imageName);
|
||||
}
|
||||
|
||||
std::vector<ImportImageRequest::Tag> ImportImageRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ImportImageRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ImportImageRequest::getArchitecture()const
|
||||
{
|
||||
return architecture_;
|
||||
|
||||
Reference in New Issue
Block a user