Add dedicated block stroage cluster ModifyDiskSpec.
This commit is contained in:
@@ -34,6 +34,15 @@ void AssignIpv6AddressesRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AssignIpv6AddressesRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AssignIpv6AddressesRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::vector<std::string> AssignIpv6AddressesRequest::getIpv6Prefix() const {
|
||||
return ipv6Prefix_;
|
||||
}
|
||||
|
||||
@@ -135,6 +135,15 @@ void CreateAutoProvisioningGroupRequest::setLaunchConfigurationPassword(const st
|
||||
setParameter(std::string("LaunchConfiguration.Password"), launchConfigurationPassword);
|
||||
}
|
||||
|
||||
std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationAutoReleaseTime() const {
|
||||
return launchConfigurationAutoReleaseTime_;
|
||||
}
|
||||
|
||||
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationAutoReleaseTime(const std::string &launchConfigurationAutoReleaseTime) {
|
||||
launchConfigurationAutoReleaseTime_ = launchConfigurationAutoReleaseTime;
|
||||
setParameter(std::string("LaunchConfiguration.AutoReleaseTime"), launchConfigurationAutoReleaseTime);
|
||||
}
|
||||
|
||||
std::string CreateAutoProvisioningGroupRequest::getPayAsYouGoAllocationStrategy() const {
|
||||
return payAsYouGoAllocationStrategy_;
|
||||
}
|
||||
|
||||
@@ -41,6 +41,8 @@ void CreateLaunchTemplateVersionResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["LaunchTemplateVersionNumber"].isNull())
|
||||
launchTemplateVersionNumber_ = std::stol(value["LaunchTemplateVersionNumber"].asString());
|
||||
if(!value["LaunchTemplateId"].isNull())
|
||||
launchTemplateId_ = value["LaunchTemplateId"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -49,3 +51,8 @@ long CreateLaunchTemplateVersionResult::getLaunchTemplateVersionNumber()const
|
||||
return launchTemplateVersionNumber_;
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateVersionResult::getLaunchTemplateId()const
|
||||
{
|
||||
return launchTemplateId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,13 @@ void DeleteLaunchTemplateResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["LaunchTemplateId"].isNull())
|
||||
launchTemplateId_ = value["LaunchTemplateId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteLaunchTemplateResult::getLaunchTemplateId()const
|
||||
{
|
||||
return launchTemplateId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,21 @@ void DeleteLaunchTemplateVersionResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLaunchTemplateVersionsNode = value["LaunchTemplateVersions"]["LaunchTemplateVersion"];
|
||||
for (auto valueLaunchTemplateVersionsLaunchTemplateVersion : allLaunchTemplateVersionsNode)
|
||||
{
|
||||
LaunchTemplateVersion launchTemplateVersionsObject;
|
||||
if(!valueLaunchTemplateVersionsLaunchTemplateVersion["LaunchTemplateId"].isNull())
|
||||
launchTemplateVersionsObject.launchTemplateId = valueLaunchTemplateVersionsLaunchTemplateVersion["LaunchTemplateId"].asString();
|
||||
if(!valueLaunchTemplateVersionsLaunchTemplateVersion["LaunchTemplateVersionNumber"].isNull())
|
||||
launchTemplateVersionsObject.launchTemplateVersionNumber = std::stol(valueLaunchTemplateVersionsLaunchTemplateVersion["LaunchTemplateVersionNumber"].asString());
|
||||
launchTemplateVersions_.push_back(launchTemplateVersionsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DeleteLaunchTemplateVersionResult::LaunchTemplateVersion> DeleteLaunchTemplateVersionResult::getLaunchTemplateVersions()const
|
||||
{
|
||||
return launchTemplateVersions_;
|
||||
}
|
||||
|
||||
|
||||
@@ -89,6 +89,8 @@ void DescribeDedicatedHostsResult::parse(const std::string &payload)
|
||||
dedicatedHostsObject.sockets = std::stoi(valueDedicatedHostsDedicatedHost["Sockets"].asString());
|
||||
if(!valueDedicatedHostsDedicatedHost["MachineId"].isNull())
|
||||
dedicatedHostsObject.machineId = valueDedicatedHostsDedicatedHost["MachineId"].asString();
|
||||
if(!valueDedicatedHostsDedicatedHost["DedicatedHostOwnerId"].isNull())
|
||||
dedicatedHostsObject.dedicatedHostOwnerId = std::stol(valueDedicatedHostsDedicatedHost["DedicatedHostOwnerId"].asString());
|
||||
auto allInstancesNode = valueDedicatedHostsDedicatedHost["Instances"]["Instance"];
|
||||
for (auto valueDedicatedHostsDedicatedHostInstancesInstance : allInstancesNode)
|
||||
{
|
||||
@@ -99,6 +101,8 @@ void DescribeDedicatedHostsResult::parse(const std::string &payload)
|
||||
instancesObject.instanceId = valueDedicatedHostsDedicatedHostInstancesInstance["InstanceId"].asString();
|
||||
if(!valueDedicatedHostsDedicatedHostInstancesInstance["SocketId"].isNull())
|
||||
instancesObject.socketId = valueDedicatedHostsDedicatedHostInstancesInstance["SocketId"].asString();
|
||||
if(!valueDedicatedHostsDedicatedHostInstancesInstance["InstanceOwnerId"].isNull())
|
||||
instancesObject.instanceOwnerId = std::stol(valueDedicatedHostsDedicatedHostInstancesInstance["InstanceOwnerId"].asString());
|
||||
dedicatedHostsObject.instances.push_back(instancesObject);
|
||||
}
|
||||
auto allOperationLocksNode = valueDedicatedHostsDedicatedHost["OperationLocks"]["OperationLock"];
|
||||
|
||||
@@ -128,6 +128,8 @@ void DescribeInstanceAttributeResult::parse(const std::string &payload)
|
||||
internetChargeType_ = value["InternetChargeType"].asString();
|
||||
if(!value["CreditSpecification"].isNull())
|
||||
creditSpecification_ = value["CreditSpecification"].asString();
|
||||
if(!value["EnableJumboFrame"].isNull())
|
||||
enableJumboFrame_ = value["EnableJumboFrame"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
@@ -166,6 +168,11 @@ std::vector<std::string> DescribeInstanceAttributeResult::getInnerIpAddress()con
|
||||
return innerIpAddress_;
|
||||
}
|
||||
|
||||
bool DescribeInstanceAttributeResult::getEnableJumboFrame()const
|
||||
{
|
||||
return enableJumboFrame_;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceAttributeResult::getExpiredTime()const
|
||||
{
|
||||
return expiredTime_;
|
||||
|
||||
@@ -82,6 +82,16 @@ void DescribeInstanceHistoryEventsResult::parse(const std::string &payload)
|
||||
instanceSystemEventSetObject.extendedAttribute.onlineRepairPolicy = extendedAttributeNode["OnlineRepairPolicy"].asString();
|
||||
if(!extendedAttributeNode["Rack"].isNull())
|
||||
instanceSystemEventSetObject.extendedAttribute.rack = extendedAttributeNode["Rack"].asString();
|
||||
if(!extendedAttributeNode["PunishType"].isNull())
|
||||
instanceSystemEventSetObject.extendedAttribute.punishType = extendedAttributeNode["PunishType"].asString();
|
||||
if(!extendedAttributeNode["PunishDomain"].isNull())
|
||||
instanceSystemEventSetObject.extendedAttribute.punishDomain = extendedAttributeNode["PunishDomain"].asString();
|
||||
if(!extendedAttributeNode["PunishUrl"].isNull())
|
||||
instanceSystemEventSetObject.extendedAttribute.punishUrl = extendedAttributeNode["PunishUrl"].asString();
|
||||
if(!extendedAttributeNode["Code"].isNull())
|
||||
instanceSystemEventSetObject.extendedAttribute.code = extendedAttributeNode["Code"].asString();
|
||||
if(!extendedAttributeNode["CanAccept"].isNull())
|
||||
instanceSystemEventSetObject.extendedAttribute.canAccept = extendedAttributeNode["CanAccept"].asString();
|
||||
auto allInactiveDisksNode = extendedAttributeNode["InactiveDisks"]["InactiveDisk"];
|
||||
for (auto extendedAttributeNodeInactiveDisksInactiveDisk : allInactiveDisksNode)
|
||||
{
|
||||
|
||||
@@ -97,6 +97,15 @@ void ModifyInstanceAttributeRequest::setHostName(const std::string &hostName) {
|
||||
setParameter(std::string("HostName"), hostName);
|
||||
}
|
||||
|
||||
bool ModifyInstanceAttributeRequest::getEnableJumboFrame() const {
|
||||
return enableJumboFrame_;
|
||||
}
|
||||
|
||||
void ModifyInstanceAttributeRequest::setEnableJumboFrame(bool enableJumboFrame) {
|
||||
enableJumboFrame_ = enableJumboFrame;
|
||||
setParameter(std::string("EnableJumboFrame"), enableJumboFrame ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyInstanceAttributeRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
@@ -39,6 +39,13 @@ void ModifyLaunchTemplateDefaultVersionResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["LaunchTemplateId"].isNull())
|
||||
launchTemplateId_ = value["LaunchTemplateId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyLaunchTemplateDefaultVersionResult::getLaunchTemplateId()const
|
||||
{
|
||||
return launchTemplateId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -410,6 +410,15 @@ void RunInstancesRequest::setSecurityGroupIds(const std::vector<std::string> &se
|
||||
securityGroupIds_ = securityGroupIds;
|
||||
}
|
||||
|
||||
RunInstancesRequest::NetworkOptions RunInstancesRequest::getNetworkOptions() const {
|
||||
return networkOptions_;
|
||||
}
|
||||
|
||||
void RunInstancesRequest::setNetworkOptions(const RunInstancesRequest::NetworkOptions &networkOptions) {
|
||||
networkOptions_ = networkOptions;
|
||||
setParameter(std::string("NetworkOptions") + ".EnableJumboFrame", networkOptions.enableJumboFrame ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RunInstancesRequest::getSystemDiskSize() const {
|
||||
return systemDiskSize_;
|
||||
}
|
||||
|
||||
@@ -34,15 +34,6 @@ void StartInstanceRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string StartInstanceRequest::getSourceRegionId() const {
|
||||
return sourceRegionId_;
|
||||
}
|
||||
|
||||
void StartInstanceRequest::setSourceRegionId(const std::string &sourceRegionId) {
|
||||
sourceRegionId_ = sourceRegionId;
|
||||
setParameter(std::string("SourceRegionId"), sourceRegionId);
|
||||
}
|
||||
|
||||
bool StartInstanceRequest::getInitLocalDisk() const {
|
||||
return initLocalDisk_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user