Add dedicated block stroage cluster ModifyDiskSpec.
This commit is contained in:
@@ -32,6 +32,8 @@ public:
|
||||
~AssignIpv6AddressesRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::vector<std::string> getIpv6Prefix() const;
|
||||
void setIpv6Prefix(const std::vector<std::string> &ipv6Prefix);
|
||||
int getIpv6PrefixCount() const;
|
||||
@@ -53,6 +55,7 @@ public:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::vector<std::string> ipv6Prefix_;
|
||||
int ipv6PrefixCount_;
|
||||
std::string regionId_;
|
||||
|
||||
@@ -94,6 +94,8 @@ public:
|
||||
void setLaunchConfigurationResourceGroupId(const std::string &launchConfigurationResourceGroupId);
|
||||
std::string getLaunchConfigurationPassword() const;
|
||||
void setLaunchConfigurationPassword(const std::string &launchConfigurationPassword);
|
||||
std::string getLaunchConfigurationAutoReleaseTime() const;
|
||||
void setLaunchConfigurationAutoReleaseTime(const std::string &launchConfigurationAutoReleaseTime);
|
||||
std::string getPayAsYouGoAllocationStrategy() const;
|
||||
void setPayAsYouGoAllocationStrategy(const std::string &payAsYouGoAllocationStrategy);
|
||||
std::string getDefaultTargetCapacityType() const;
|
||||
@@ -205,6 +207,7 @@ private:
|
||||
std::string launchConfigurationImageId_;
|
||||
std::string launchConfigurationResourceGroupId_;
|
||||
std::string launchConfigurationPassword_;
|
||||
std::string launchConfigurationAutoReleaseTime_;
|
||||
std::string payAsYouGoAllocationStrategy_;
|
||||
std::string defaultTargetCapacityType_;
|
||||
std::string launchConfigurationKeyPairName_;
|
||||
|
||||
@@ -38,11 +38,13 @@ namespace AlibabaCloud
|
||||
explicit CreateLaunchTemplateVersionResult(const std::string &payload);
|
||||
~CreateLaunchTemplateVersionResult();
|
||||
long getLaunchTemplateVersionNumber()const;
|
||||
std::string getLaunchTemplateId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long launchTemplateVersionNumber_;
|
||||
std::string launchTemplateId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,10 +37,12 @@ namespace AlibabaCloud
|
||||
DeleteLaunchTemplateResult();
|
||||
explicit DeleteLaunchTemplateResult(const std::string &payload);
|
||||
~DeleteLaunchTemplateResult();
|
||||
std::string getLaunchTemplateId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string launchTemplateId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,15 +32,22 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_ECS_EXPORT DeleteLaunchTemplateVersionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct LaunchTemplateVersion
|
||||
{
|
||||
long launchTemplateVersionNumber;
|
||||
std::string launchTemplateId;
|
||||
};
|
||||
|
||||
|
||||
DeleteLaunchTemplateVersionResult();
|
||||
explicit DeleteLaunchTemplateVersionResult(const std::string &payload);
|
||||
~DeleteLaunchTemplateVersionResult();
|
||||
std::vector<LaunchTemplateVersion> getLaunchTemplateVersions()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<LaunchTemplateVersion> launchTemplateVersions_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -69,6 +69,7 @@ namespace AlibabaCloud
|
||||
std::string instanceId;
|
||||
std::string socketId;
|
||||
std::string instanceType;
|
||||
long instanceOwnerId;
|
||||
};
|
||||
struct OperationLock
|
||||
{
|
||||
@@ -92,6 +93,7 @@ namespace AlibabaCloud
|
||||
float cpuOverCommitRatio;
|
||||
std::string expiredTime;
|
||||
std::string saleCycle;
|
||||
long dedicatedHostOwnerId;
|
||||
std::vector<DedicatedHost::Tag> tags;
|
||||
HostDetailInfo hostDetailInfo;
|
||||
std::string status;
|
||||
|
||||
@@ -67,6 +67,7 @@ namespace AlibabaCloud
|
||||
std::string getInstanceNetworkType()const;
|
||||
std::vector<std::string> getPublicIpAddress()const;
|
||||
std::vector<std::string> getInnerIpAddress()const;
|
||||
bool getEnableJumboFrame()const;
|
||||
std::string getExpiredTime()const;
|
||||
EipAddress getEipAddress()const;
|
||||
std::string getImageId()const;
|
||||
@@ -102,6 +103,7 @@ namespace AlibabaCloud
|
||||
std::string instanceNetworkType_;
|
||||
std::vector<std::string> publicIpAddress_;
|
||||
std::vector<std::string> innerIpAddress_;
|
||||
bool enableJumboFrame_;
|
||||
std::string expiredTime_;
|
||||
EipAddress eipAddress_;
|
||||
std::string imageId_;
|
||||
|
||||
@@ -54,11 +54,16 @@ namespace AlibabaCloud
|
||||
std::string creationTime;
|
||||
std::string deviceCategory;
|
||||
};
|
||||
std::string rack;
|
||||
std::string hostType;
|
||||
std::string device;
|
||||
std::string punishType;
|
||||
std::string punishDomain;
|
||||
std::string hostId;
|
||||
std::vector<InactiveDisk> inactiveDisks;
|
||||
std::string code;
|
||||
std::string canAccept;
|
||||
std::string rack;
|
||||
std::string punishUrl;
|
||||
std::string hostType;
|
||||
std::string diskId;
|
||||
std::string onlineRepairPolicy;
|
||||
std::vector<std::string> migrationOptions;
|
||||
|
||||
@@ -50,6 +50,8 @@ public:
|
||||
void setPassword(const std::string &password);
|
||||
std::string getHostName() const;
|
||||
void setHostName(const std::string &hostName);
|
||||
bool getEnableJumboFrame() const;
|
||||
void setEnableJumboFrame(bool enableJumboFrame);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getOwnerAccount() const;
|
||||
@@ -76,6 +78,7 @@ private:
|
||||
std::string userData_;
|
||||
std::string password_;
|
||||
std::string hostName_;
|
||||
bool enableJumboFrame_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
std::string creditSpecification_;
|
||||
|
||||
@@ -37,10 +37,12 @@ namespace AlibabaCloud
|
||||
ModifyLaunchTemplateDefaultVersionResult();
|
||||
explicit ModifyLaunchTemplateDefaultVersionResult(const std::string &payload);
|
||||
~ModifyLaunchTemplateDefaultVersionResult();
|
||||
std::string getLaunchTemplateId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string launchTemplateId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -49,6 +49,9 @@ public:
|
||||
std::string rolearn;
|
||||
long assumeRoleFor;
|
||||
};
|
||||
struct NetworkOptions {
|
||||
bool enableJumboFrame;
|
||||
};
|
||||
struct Tag {
|
||||
std::string key;
|
||||
std::string value;
|
||||
@@ -167,6 +170,8 @@ public:
|
||||
void setSpotDuration(int spotDuration);
|
||||
std::vector<std::string> getSecurityGroupIds() const;
|
||||
void setSecurityGroupIds(const std::vector<std::string> &securityGroupIds);
|
||||
NetworkOptions getNetworkOptions() const;
|
||||
void setNetworkOptions(const NetworkOptions &networkOptions);
|
||||
std::string getSystemDiskSize() const;
|
||||
void setSystemDiskSize(const std::string &systemDiskSize);
|
||||
std::string getImageFamily() const;
|
||||
@@ -304,6 +309,7 @@ private:
|
||||
std::string dedicatedHostId_;
|
||||
int spotDuration_;
|
||||
std::vector<std::string> securityGroupIds_;
|
||||
NetworkOptions networkOptions_;
|
||||
std::string systemDiskSize_;
|
||||
std::string imageFamily_;
|
||||
std::string launchTemplateName_;
|
||||
|
||||
@@ -32,8 +32,6 @@ public:
|
||||
~StartInstanceRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getSourceRegionId() const;
|
||||
void setSourceRegionId(const std::string &sourceRegionId);
|
||||
bool getInitLocalDisk() const;
|
||||
void setInitLocalDisk(bool initLocalDisk);
|
||||
bool getDryRun() const;
|
||||
@@ -49,7 +47,6 @@ public:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string sourceRegionId_;
|
||||
bool initLocalDisk_;
|
||||
bool dryRun_;
|
||||
std::string resourceOwnerAccount_;
|
||||
|
||||
@@ -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