Regenerate SDK to override list implement.

This commit is contained in:
sdk-team
2021-01-25 12:50:16 +00:00
parent eaa6b3cb18
commit 198969d4d9
15 changed files with 103 additions and 0 deletions

View File

@@ -466,6 +466,17 @@ void CreateLaunchTemplateRequest::setNetworkInterface(const std::vector<NetworkI
}
}
std::string CreateLaunchTemplateRequest::getDeploymentSetId()const
{
return deploymentSetId_;
}
void CreateLaunchTemplateRequest::setDeploymentSetId(const std::string& deploymentSetId)
{
deploymentSetId_ = deploymentSetId;
setParameter("DeploymentSetId", deploymentSetId);
}
std::string CreateLaunchTemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;

View File

@@ -450,6 +450,17 @@ void CreateLaunchTemplateVersionRequest::setNetworkInterface(const std::vector<N
}
}
std::string CreateLaunchTemplateVersionRequest::getDeploymentSetId()const
{
return deploymentSetId_;
}
void CreateLaunchTemplateVersionRequest::setDeploymentSetId(const std::string& deploymentSetId)
{
deploymentSetId_ = deploymentSetId;
setParameter("DeploymentSetId", deploymentSetId);
}
std::string CreateLaunchTemplateVersionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;

View File

@@ -86,6 +86,16 @@ void DescribeDedicatedHostClustersResult::parse(const std::string &payload)
localStorageCapacityObject.dataDiskCategory = dedicatedHostClusterCapacityNodeLocalStorageCapacitiesLocalStorageCapacity["DataDiskCategory"].asString();
dedicatedHostClustersObject.dedicatedHostClusterCapacity.localStorageCapacities.push_back(localStorageCapacityObject);
}
auto allAvailableInstanceTypesNode = dedicatedHostClusterCapacityNode["AvailableInstanceTypes"]["AvailableInstanceType"];
for (auto dedicatedHostClusterCapacityNodeAvailableInstanceTypesAvailableInstanceType : allAvailableInstanceTypesNode)
{
DedicatedHostCluster::DedicatedHostClusterCapacity::AvailableInstanceType availableInstanceTypeObject;
if(!dedicatedHostClusterCapacityNodeAvailableInstanceTypesAvailableInstanceType["InstanceType"].isNull())
availableInstanceTypeObject.instanceType = dedicatedHostClusterCapacityNodeAvailableInstanceTypesAvailableInstanceType["InstanceType"].asString();
if(!dedicatedHostClusterCapacityNodeAvailableInstanceTypesAvailableInstanceType["AvailableInstanceCapacity"].isNull())
availableInstanceTypeObject.availableInstanceCapacity = std::stoi(dedicatedHostClusterCapacityNodeAvailableInstanceTypesAvailableInstanceType["AvailableInstanceCapacity"].asString());
dedicatedHostClustersObject.dedicatedHostClusterCapacity.availableInstanceTypes.push_back(availableInstanceTypeObject);
}
auto allDedicatedHostIds = value["DedicatedHostIds"]["DedicatedHostId"];
for (auto value : allDedicatedHostIds)
dedicatedHostClustersObject.dedicatedHostIds.push_back(value.asString());

View File

@@ -131,6 +131,17 @@ void DescribeDedicatedHostsRequest::setTag(const std::vector<Tag>& tag)
}
}
std::string DescribeDedicatedHostsRequest::getNeedHostDetail()const
{
return needHostDetail_;
}
void DescribeDedicatedHostsRequest::setNeedHostDetail(const std::string& needHostDetail)
{
needHostDetail_ = needHostDetail;
setParameter("NeedHostDetail", needHostDetail);
}
std::string DescribeDedicatedHostsRequest::getDedicatedHostName()const
{
return dedicatedHostName_;

View File

@@ -139,6 +139,9 @@ void DescribeDedicatedHostsResult::parse(const std::string &payload)
dedicatedHostsObject.networkAttributes.slbUdpTimeout = std::stoi(networkAttributesNode["SlbUdpTimeout"].asString());
if(!networkAttributesNode["UdpTimeout"].isNull())
dedicatedHostsObject.networkAttributes.udpTimeout = std::stoi(networkAttributesNode["UdpTimeout"].asString());
auto hostDetailInfoNode = value["HostDetailInfo"];
if(!hostDetailInfoNode["SerialNumber"].isNull())
dedicatedHostsObject.hostDetailInfo.serialNumber = hostDetailInfoNode["SerialNumber"].asString();
auto allSupportedInstanceTypeFamilies = value["SupportedInstanceTypeFamilies"]["SupportedInstanceTypeFamily"];
for (auto value : allSupportedInstanceTypeFamilies)
dedicatedHostsObject.supportedInstanceTypeFamilies.push_back(value.asString());

View File

@@ -132,6 +132,8 @@ void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload)
launchTemplateVersionSetsObject.launchTemplateData.securityEnhancementStrategy = launchTemplateDataNode["SecurityEnhancementStrategy"].asString();
if(!launchTemplateDataNode["PrivateIpAddress"].isNull())
launchTemplateVersionSetsObject.launchTemplateData.privateIpAddress = launchTemplateDataNode["PrivateIpAddress"].asString();
if(!launchTemplateDataNode["DeploymentSetId"].isNull())
launchTemplateVersionSetsObject.launchTemplateData.deploymentSetId = launchTemplateDataNode["DeploymentSetId"].asString();
auto allDataDisksNode = launchTemplateDataNode["DataDisks"]["DataDisk"];
for (auto launchTemplateDataNodeDataDisksDataDisk : allDataDisksNode)
{

View File

@@ -82,6 +82,25 @@ void ModifyAutoProvisioningGroupRequest::setExcessCapacityTerminationPolicy(cons
setParameter("ExcessCapacityTerminationPolicy", excessCapacityTerminationPolicy);
}
std::vector<ModifyAutoProvisioningGroupRequest::LaunchTemplateConfig> ModifyAutoProvisioningGroupRequest::getLaunchTemplateConfig()const
{
return launchTemplateConfig_;
}
void ModifyAutoProvisioningGroupRequest::setLaunchTemplateConfig(const std::vector<LaunchTemplateConfig>& launchTemplateConfig)
{
launchTemplateConfig_ = launchTemplateConfig;
for(int dep1 = 0; dep1!= launchTemplateConfig.size(); dep1++) {
auto launchTemplateConfigObj = launchTemplateConfig.at(dep1);
std::string launchTemplateConfigObjStr = "LaunchTemplateConfig." + std::to_string(dep1 + 1);
setParameter(launchTemplateConfigObjStr + ".InstanceType", launchTemplateConfigObj.instanceType);
setParameter(launchTemplateConfigObjStr + ".MaxPrice", std::to_string(launchTemplateConfigObj.maxPrice));
setParameter(launchTemplateConfigObjStr + ".VSwitchId", launchTemplateConfigObj.vSwitchId);
setParameter(launchTemplateConfigObjStr + ".WeightedCapacity", std::to_string(launchTemplateConfigObj.weightedCapacity));
setParameter(launchTemplateConfigObjStr + ".Priority", std::to_string(launchTemplateConfigObj.priority));
}
}
std::string ModifyAutoProvisioningGroupRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;