Add Request Param Ipv6AddressCount For API CreateLaunchTemplate AND CreateLaunchTemplateVersion.
This commit is contained in:
@@ -82,6 +82,8 @@ public:
|
||||
void setTag(const std::vector<Tag> &tag);
|
||||
int getPeriod() const;
|
||||
void setPeriod(int period);
|
||||
int getIpv6AddressCount() const;
|
||||
void setIpv6AddressCount(int ipv6AddressCount);
|
||||
std::string getTemplateResourceGroupId() const;
|
||||
void setTemplateResourceGroupId(const std::string &templateResourceGroupId);
|
||||
long getOwnerId() const;
|
||||
@@ -171,6 +173,7 @@ private:
|
||||
std::vector<TemplateTag> templateTag_;
|
||||
std::vector<Tag> tag_;
|
||||
int period_;
|
||||
int ipv6AddressCount_;
|
||||
std::string templateResourceGroupId_;
|
||||
long ownerId_;
|
||||
std::string vSwitchId_;
|
||||
|
||||
@@ -78,6 +78,8 @@ public:
|
||||
void setPeriod(int period);
|
||||
std::string getLaunchTemplateId() const;
|
||||
void setLaunchTemplateId(const std::string &launchTemplateId);
|
||||
int getIpv6AddressCount() const;
|
||||
void setIpv6AddressCount(int ipv6AddressCount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getVSwitchId() const;
|
||||
@@ -165,6 +167,7 @@ private:
|
||||
std::vector<Tag> tag_;
|
||||
int period_;
|
||||
std::string launchTemplateId_;
|
||||
int ipv6AddressCount_;
|
||||
long ownerId_;
|
||||
std::string vSwitchId_;
|
||||
std::string spotStrategy_;
|
||||
|
||||
@@ -75,6 +75,7 @@ namespace AlibabaCloud
|
||||
std::string ramRoleName;
|
||||
std::string systemDiskPerformanceLevel;
|
||||
std::string networkType;
|
||||
int ipv6AddressCount;
|
||||
std::vector<NetworkInterface> networkInterfaces;
|
||||
std::string imageId;
|
||||
std::string systemDiskDiskName;
|
||||
|
||||
@@ -152,6 +152,15 @@ void CreateLaunchTemplateRequest::setPeriod(int period) {
|
||||
setParameter(std::string("Period"), std::to_string(period));
|
||||
}
|
||||
|
||||
int CreateLaunchTemplateRequest::getIpv6AddressCount() const {
|
||||
return ipv6AddressCount_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateRequest::setIpv6AddressCount(int ipv6AddressCount) {
|
||||
ipv6AddressCount_ = ipv6AddressCount;
|
||||
setParameter(std::string("Ipv6AddressCount"), std::to_string(ipv6AddressCount));
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateRequest::getTemplateResourceGroupId() const {
|
||||
return templateResourceGroupId_;
|
||||
}
|
||||
|
||||
@@ -147,6 +147,15 @@ void CreateLaunchTemplateVersionRequest::setLaunchTemplateId(const std::string &
|
||||
setParameter(std::string("LaunchTemplateId"), launchTemplateId);
|
||||
}
|
||||
|
||||
int CreateLaunchTemplateVersionRequest::getIpv6AddressCount() const {
|
||||
return ipv6AddressCount_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateVersionRequest::setIpv6AddressCount(int ipv6AddressCount) {
|
||||
ipv6AddressCount_ = ipv6AddressCount;
|
||||
setParameter(std::string("Ipv6AddressCount"), std::to_string(ipv6AddressCount));
|
||||
}
|
||||
|
||||
long CreateLaunchTemplateVersionRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
@@ -134,6 +134,8 @@ void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload)
|
||||
launchTemplateVersionSetsObject.launchTemplateData.internetChargeType = launchTemplateDataNode["InternetChargeType"].asString();
|
||||
if(!launchTemplateDataNode["ZoneId"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.zoneId = launchTemplateDataNode["ZoneId"].asString();
|
||||
if(!launchTemplateDataNode["Ipv6AddressCount"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.ipv6AddressCount = std::stoi(launchTemplateDataNode["Ipv6AddressCount"].asString());
|
||||
auto allDataDisksNode = launchTemplateDataNode["DataDisks"]["DataDisk"];
|
||||
for (auto launchTemplateDataNodeDataDisksDataDisk : allDataDisksNode)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user