|
|
|
|
@@ -31,6 +31,12 @@ namespace AlibabaCloud
|
|
|
|
|
class ALIBABACLOUD_ECS_EXPORT RunInstancesRequest : public RpcServiceRequest
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
struct Arn
|
|
|
|
|
{
|
|
|
|
|
long assumeRoleFor;
|
|
|
|
|
std::string rolearn;
|
|
|
|
|
std::string roleType;
|
|
|
|
|
};
|
|
|
|
|
struct Tag
|
|
|
|
|
{
|
|
|
|
|
std::string key;
|
|
|
|
|
@@ -65,24 +71,12 @@ namespace AlibabaCloud
|
|
|
|
|
RunInstancesRequest();
|
|
|
|
|
~RunInstancesRequest();
|
|
|
|
|
|
|
|
|
|
std::string getLaunchTemplateName()const;
|
|
|
|
|
void setLaunchTemplateName(const std::string& launchTemplateName);
|
|
|
|
|
long getResourceOwnerId()const;
|
|
|
|
|
void setResourceOwnerId(long resourceOwnerId);
|
|
|
|
|
bool getUniqueSuffix()const;
|
|
|
|
|
void setUniqueSuffix(bool uniqueSuffix);
|
|
|
|
|
std::string getHpcClusterId()const;
|
|
|
|
|
void setHpcClusterId(const std::string& hpcClusterId);
|
|
|
|
|
int getHttpPutResponseHopLimit()const;
|
|
|
|
|
void setHttpPutResponseHopLimit(int httpPutResponseHopLimit);
|
|
|
|
|
std::string getSecurityEnhancementStrategy()const;
|
|
|
|
|
void setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy);
|
|
|
|
|
std::string getKeyPairName()const;
|
|
|
|
|
void setKeyPairName(const std::string& keyPairName);
|
|
|
|
|
int getMinAmount()const;
|
|
|
|
|
void setMinAmount(int minAmount);
|
|
|
|
|
float getSpotPriceLimit()const;
|
|
|
|
|
void setSpotPriceLimit(float spotPriceLimit);
|
|
|
|
|
bool getDeletionProtection()const;
|
|
|
|
|
void setDeletionProtection(bool deletionProtection);
|
|
|
|
|
std::string getResourceGroupId()const;
|
|
|
|
|
@@ -93,48 +87,28 @@ namespace AlibabaCloud
|
|
|
|
|
void setPassword(const std::string& password);
|
|
|
|
|
int getDeploymentSetGroupNo()const;
|
|
|
|
|
void setDeploymentSetGroupNo(int deploymentSetGroupNo);
|
|
|
|
|
int getStorageSetPartitionNumber()const;
|
|
|
|
|
void setStorageSetPartitionNumber(int storageSetPartitionNumber);
|
|
|
|
|
std::vector<Tag> getTag()const;
|
|
|
|
|
void setTag(const std::vector<Tag>& tag);
|
|
|
|
|
std::string getSystemDiskAutoSnapshotPolicyId()const;
|
|
|
|
|
void setSystemDiskAutoSnapshotPolicyId(const std::string& systemDiskAutoSnapshotPolicyId);
|
|
|
|
|
int getAutoRenewPeriod()const;
|
|
|
|
|
void setAutoRenewPeriod(int autoRenewPeriod);
|
|
|
|
|
int getCpuOptionsCore()const;
|
|
|
|
|
void setCpuOptionsCore(int cpuOptionsCore);
|
|
|
|
|
int getPeriod()const;
|
|
|
|
|
void setPeriod(int period);
|
|
|
|
|
bool getDryRun()const;
|
|
|
|
|
void setDryRun(bool dryRun);
|
|
|
|
|
std::string getLaunchTemplateId()const;
|
|
|
|
|
void setLaunchTemplateId(const std::string& launchTemplateId);
|
|
|
|
|
int getIpv6AddressCount()const;
|
|
|
|
|
void setIpv6AddressCount(int ipv6AddressCount);
|
|
|
|
|
std::string getCpuOptionsNuma()const;
|
|
|
|
|
void setCpuOptionsNuma(const std::string& cpuOptionsNuma);
|
|
|
|
|
long getOwnerId()const;
|
|
|
|
|
void setOwnerId(long ownerId);
|
|
|
|
|
std::string getCapacityReservationPreference()const;
|
|
|
|
|
void setCapacityReservationPreference(const std::string& capacityReservationPreference);
|
|
|
|
|
std::string getVSwitchId()const;
|
|
|
|
|
void setVSwitchId(const std::string& vSwitchId);
|
|
|
|
|
std::string getSpotStrategy()const;
|
|
|
|
|
void setSpotStrategy(const std::string& spotStrategy);
|
|
|
|
|
std::string getPrivateIpAddress()const;
|
|
|
|
|
void setPrivateIpAddress(const std::string& privateIpAddress);
|
|
|
|
|
std::string getPeriodUnit()const;
|
|
|
|
|
void setPeriodUnit(const std::string& periodUnit);
|
|
|
|
|
std::string getInstanceName()const;
|
|
|
|
|
void setInstanceName(const std::string& instanceName);
|
|
|
|
|
bool getAutoRenew()const;
|
|
|
|
|
void setAutoRenew(bool autoRenew);
|
|
|
|
|
std::string getInternetChargeType()const;
|
|
|
|
|
void setInternetChargeType(const std::string& internetChargeType);
|
|
|
|
|
std::string getZoneId()const;
|
|
|
|
|
void setZoneId(const std::string& zoneId);
|
|
|
|
|
std::vector<std::string> getIpv6Address()const;
|
|
|
|
|
void setIpv6Address(const std::vector<std::string>& ipv6Address);
|
|
|
|
|
int getInternetMaxBandwidthIn()const;
|
|
|
|
|
void setInternetMaxBandwidthIn(int internetMaxBandwidthIn);
|
|
|
|
|
std::string getAffinity()const;
|
|
|
|
|
@@ -143,12 +117,68 @@ namespace AlibabaCloud
|
|
|
|
|
void setImageId(const std::string& imageId);
|
|
|
|
|
std::string getSpotInterruptionBehavior()const;
|
|
|
|
|
void setSpotInterruptionBehavior(const std::string& spotInterruptionBehavior);
|
|
|
|
|
std::string getClientToken()const;
|
|
|
|
|
void setClientToken(const std::string& clientToken);
|
|
|
|
|
std::string getIoOptimized()const;
|
|
|
|
|
void setIoOptimized(const std::string& ioOptimized);
|
|
|
|
|
std::string getSecurityGroupId()const;
|
|
|
|
|
void setSecurityGroupId(const std::string& securityGroupId);
|
|
|
|
|
std::string getSystemDiskPerformanceLevel()const;
|
|
|
|
|
void setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel);
|
|
|
|
|
bool getPasswordInherit()const;
|
|
|
|
|
void setPasswordInherit(bool passwordInherit);
|
|
|
|
|
std::string getInstanceType()const;
|
|
|
|
|
void setInstanceType(const std::string& instanceType);
|
|
|
|
|
bool getHibernationConfigured()const;
|
|
|
|
|
void setHibernationConfigured(bool hibernationConfigured);
|
|
|
|
|
std::vector<Arn> getArn()const;
|
|
|
|
|
void setArn(const std::vector<Arn>& arn);
|
|
|
|
|
std::string getResourceOwnerAccount()const;
|
|
|
|
|
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
|
|
|
std::string getSystemDiskDiskName()const;
|
|
|
|
|
void setSystemDiskDiskName(const std::string& systemDiskDiskName);
|
|
|
|
|
std::string getDedicatedHostId()const;
|
|
|
|
|
void setDedicatedHostId(const std::string& dedicatedHostId);
|
|
|
|
|
std::vector<std::string> getSecurityGroupIds()const;
|
|
|
|
|
void setSecurityGroupIds(const std::vector<std::string>& securityGroupIds);
|
|
|
|
|
int getSpotDuration()const;
|
|
|
|
|
void setSpotDuration(int spotDuration);
|
|
|
|
|
std::string getSystemDiskSize()const;
|
|
|
|
|
void setSystemDiskSize(const std::string& systemDiskSize);
|
|
|
|
|
std::string getImageFamily()const;
|
|
|
|
|
void setImageFamily(const std::string& imageFamily);
|
|
|
|
|
std::string getLaunchTemplateName()const;
|
|
|
|
|
void setLaunchTemplateName(const std::string& launchTemplateName);
|
|
|
|
|
long getResourceOwnerId()const;
|
|
|
|
|
void setResourceOwnerId(long resourceOwnerId);
|
|
|
|
|
std::string getHpcClusterId()const;
|
|
|
|
|
void setHpcClusterId(const std::string& hpcClusterId);
|
|
|
|
|
int getHttpPutResponseHopLimit()const;
|
|
|
|
|
void setHttpPutResponseHopLimit(int httpPutResponseHopLimit);
|
|
|
|
|
std::string getKeyPairName()const;
|
|
|
|
|
void setKeyPairName(const std::string& keyPairName);
|
|
|
|
|
float getSpotPriceLimit()const;
|
|
|
|
|
void setSpotPriceLimit(float spotPriceLimit);
|
|
|
|
|
int getStorageSetPartitionNumber()const;
|
|
|
|
|
void setStorageSetPartitionNumber(int storageSetPartitionNumber);
|
|
|
|
|
std::vector<Tag> getTag()const;
|
|
|
|
|
void setTag(const std::vector<Tag>& tag);
|
|
|
|
|
int getAutoRenewPeriod()const;
|
|
|
|
|
void setAutoRenewPeriod(int autoRenewPeriod);
|
|
|
|
|
std::string getLaunchTemplateId()const;
|
|
|
|
|
void setLaunchTemplateId(const std::string& launchTemplateId);
|
|
|
|
|
int getIpv6AddressCount()const;
|
|
|
|
|
void setIpv6AddressCount(int ipv6AddressCount);
|
|
|
|
|
std::string getCapacityReservationPreference()const;
|
|
|
|
|
void setCapacityReservationPreference(const std::string& capacityReservationPreference);
|
|
|
|
|
std::string getVSwitchId()const;
|
|
|
|
|
void setVSwitchId(const std::string& vSwitchId);
|
|
|
|
|
std::string getInstanceName()const;
|
|
|
|
|
void setInstanceName(const std::string& instanceName);
|
|
|
|
|
std::string getZoneId()const;
|
|
|
|
|
void setZoneId(const std::string& zoneId);
|
|
|
|
|
std::vector<std::string> getIpv6Address()const;
|
|
|
|
|
void setIpv6Address(const std::vector<std::string>& ipv6Address);
|
|
|
|
|
std::string getClientToken()const;
|
|
|
|
|
void setClientToken(const std::string& clientToken);
|
|
|
|
|
int getInternetMaxBandwidthOut()const;
|
|
|
|
|
void setInternetMaxBandwidthOut(int internetMaxBandwidthOut);
|
|
|
|
|
std::string getDescription()const;
|
|
|
|
|
@@ -159,20 +189,12 @@ namespace AlibabaCloud
|
|
|
|
|
void setSystemDiskCategory(const std::string& systemDiskCategory);
|
|
|
|
|
std::string getCapacityReservationId()const;
|
|
|
|
|
void setCapacityReservationId(const std::string& capacityReservationId);
|
|
|
|
|
std::string getSystemDiskPerformanceLevel()const;
|
|
|
|
|
void setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel);
|
|
|
|
|
std::string getUserData()const;
|
|
|
|
|
void setUserData(const std::string& userData);
|
|
|
|
|
bool getPasswordInherit()const;
|
|
|
|
|
void setPasswordInherit(bool passwordInherit);
|
|
|
|
|
std::string getRegionId()const;
|
|
|
|
|
void setRegionId(const std::string& regionId);
|
|
|
|
|
std::string getHttpEndpoint()const;
|
|
|
|
|
void setHttpEndpoint(const std::string& httpEndpoint);
|
|
|
|
|
std::string getInstanceType()const;
|
|
|
|
|
void setInstanceType(const std::string& instanceType);
|
|
|
|
|
bool getHibernationConfigured()const;
|
|
|
|
|
void setHibernationConfigured(bool hibernationConfigured);
|
|
|
|
|
std::string getInstanceChargeType()const;
|
|
|
|
|
void setInstanceChargeType(const std::string& instanceChargeType);
|
|
|
|
|
std::vector<NetworkInterface> getNetworkInterface()const;
|
|
|
|
|
@@ -181,115 +203,102 @@ namespace AlibabaCloud
|
|
|
|
|
void setDeploymentSetId(const std::string& deploymentSetId);
|
|
|
|
|
int getAmount()const;
|
|
|
|
|
void setAmount(int amount);
|
|
|
|
|
std::string getResourceOwnerAccount()const;
|
|
|
|
|
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
|
|
|
|
std::string getOwnerAccount()const;
|
|
|
|
|
void setOwnerAccount(const std::string& ownerAccount);
|
|
|
|
|
std::string getTenancy()const;
|
|
|
|
|
void setTenancy(const std::string& tenancy);
|
|
|
|
|
std::string getSystemDiskDiskName()const;
|
|
|
|
|
void setSystemDiskDiskName(const std::string& systemDiskDiskName);
|
|
|
|
|
std::string getRamRoleName()const;
|
|
|
|
|
void setRamRoleName(const std::string& ramRoleName);
|
|
|
|
|
std::string getAutoReleaseTime()const;
|
|
|
|
|
void setAutoReleaseTime(const std::string& autoReleaseTime);
|
|
|
|
|
std::string getDedicatedHostId()const;
|
|
|
|
|
void setDedicatedHostId(const std::string& dedicatedHostId);
|
|
|
|
|
std::string getCreditSpecification()const;
|
|
|
|
|
void setCreditSpecification(const std::string& creditSpecification);
|
|
|
|
|
std::vector<std::string> getSecurityGroupIds()const;
|
|
|
|
|
void setSecurityGroupIds(const std::vector<std::string>& securityGroupIds);
|
|
|
|
|
int getSpotDuration()const;
|
|
|
|
|
void setSpotDuration(int spotDuration);
|
|
|
|
|
std::vector<DataDisk> getDataDisk()const;
|
|
|
|
|
void setDataDisk(const std::vector<DataDisk>& dataDisk);
|
|
|
|
|
long getLaunchTemplateVersion()const;
|
|
|
|
|
void setLaunchTemplateVersion(long launchTemplateVersion);
|
|
|
|
|
std::string getStorageSetId()const;
|
|
|
|
|
void setStorageSetId(const std::string& storageSetId);
|
|
|
|
|
std::string getSystemDiskSize()const;
|
|
|
|
|
void setSystemDiskSize(const std::string& systemDiskSize);
|
|
|
|
|
std::string getImageFamily()const;
|
|
|
|
|
void setImageFamily(const std::string& imageFamily);
|
|
|
|
|
std::string getHttpTokens()const;
|
|
|
|
|
void setHttpTokens(const std::string& httpTokens);
|
|
|
|
|
std::string getSystemDiskDescription()const;
|
|
|
|
|
void setSystemDiskDescription(const std::string& systemDiskDescription);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
std::string launchTemplateName_;
|
|
|
|
|
long resourceOwnerId_;
|
|
|
|
|
bool uniqueSuffix_;
|
|
|
|
|
std::string hpcClusterId_;
|
|
|
|
|
int httpPutResponseHopLimit_;
|
|
|
|
|
std::string securityEnhancementStrategy_;
|
|
|
|
|
std::string keyPairName_;
|
|
|
|
|
int minAmount_;
|
|
|
|
|
float spotPriceLimit_;
|
|
|
|
|
bool deletionProtection_;
|
|
|
|
|
std::string resourceGroupId_;
|
|
|
|
|
std::string hostName_;
|
|
|
|
|
std::string password_;
|
|
|
|
|
int deploymentSetGroupNo_;
|
|
|
|
|
int storageSetPartitionNumber_;
|
|
|
|
|
std::vector<Tag> tag_;
|
|
|
|
|
std::string systemDiskAutoSnapshotPolicyId_;
|
|
|
|
|
int autoRenewPeriod_;
|
|
|
|
|
int cpuOptionsCore_;
|
|
|
|
|
int period_;
|
|
|
|
|
bool dryRun_;
|
|
|
|
|
std::string launchTemplateId_;
|
|
|
|
|
int ipv6AddressCount_;
|
|
|
|
|
std::string cpuOptionsNuma_;
|
|
|
|
|
long ownerId_;
|
|
|
|
|
std::string capacityReservationPreference_;
|
|
|
|
|
std::string vSwitchId_;
|
|
|
|
|
std::string spotStrategy_;
|
|
|
|
|
std::string privateIpAddress_;
|
|
|
|
|
std::string periodUnit_;
|
|
|
|
|
std::string instanceName_;
|
|
|
|
|
bool autoRenew_;
|
|
|
|
|
std::string internetChargeType_;
|
|
|
|
|
std::string zoneId_;
|
|
|
|
|
std::vector<std::string> ipv6Address_;
|
|
|
|
|
int internetMaxBandwidthIn_;
|
|
|
|
|
std::string affinity_;
|
|
|
|
|
std::string imageId_;
|
|
|
|
|
std::string spotInterruptionBehavior_;
|
|
|
|
|
std::string clientToken_;
|
|
|
|
|
std::string ioOptimized_;
|
|
|
|
|
std::string securityGroupId_;
|
|
|
|
|
std::string systemDiskPerformanceLevel_;
|
|
|
|
|
bool passwordInherit_;
|
|
|
|
|
std::string instanceType_;
|
|
|
|
|
bool hibernationConfigured_;
|
|
|
|
|
std::vector<Arn> arn_;
|
|
|
|
|
std::string resourceOwnerAccount_;
|
|
|
|
|
std::string systemDiskDiskName_;
|
|
|
|
|
std::string dedicatedHostId_;
|
|
|
|
|
std::vector<std::string> securityGroupIds_;
|
|
|
|
|
int spotDuration_;
|
|
|
|
|
std::string systemDiskSize_;
|
|
|
|
|
std::string imageFamily_;
|
|
|
|
|
std::string launchTemplateName_;
|
|
|
|
|
long resourceOwnerId_;
|
|
|
|
|
std::string hpcClusterId_;
|
|
|
|
|
int httpPutResponseHopLimit_;
|
|
|
|
|
std::string keyPairName_;
|
|
|
|
|
float spotPriceLimit_;
|
|
|
|
|
int storageSetPartitionNumber_;
|
|
|
|
|
std::vector<Tag> tag_;
|
|
|
|
|
int autoRenewPeriod_;
|
|
|
|
|
std::string launchTemplateId_;
|
|
|
|
|
int ipv6AddressCount_;
|
|
|
|
|
std::string capacityReservationPreference_;
|
|
|
|
|
std::string vSwitchId_;
|
|
|
|
|
std::string instanceName_;
|
|
|
|
|
std::string zoneId_;
|
|
|
|
|
std::vector<std::string> ipv6Address_;
|
|
|
|
|
std::string clientToken_;
|
|
|
|
|
int internetMaxBandwidthOut_;
|
|
|
|
|
std::string description_;
|
|
|
|
|
int cpuOptionsThreadsPerCore_;
|
|
|
|
|
std::string systemDiskCategory_;
|
|
|
|
|
std::string capacityReservationId_;
|
|
|
|
|
std::string systemDiskPerformanceLevel_;
|
|
|
|
|
std::string userData_;
|
|
|
|
|
bool passwordInherit_;
|
|
|
|
|
std::string regionId_;
|
|
|
|
|
std::string httpEndpoint_;
|
|
|
|
|
std::string instanceType_;
|
|
|
|
|
bool hibernationConfigured_;
|
|
|
|
|
std::string instanceChargeType_;
|
|
|
|
|
std::vector<NetworkInterface> networkInterface_;
|
|
|
|
|
std::string deploymentSetId_;
|
|
|
|
|
int amount_;
|
|
|
|
|
std::string resourceOwnerAccount_;
|
|
|
|
|
std::string ownerAccount_;
|
|
|
|
|
std::string tenancy_;
|
|
|
|
|
std::string systemDiskDiskName_;
|
|
|
|
|
std::string ramRoleName_;
|
|
|
|
|
std::string autoReleaseTime_;
|
|
|
|
|
std::string dedicatedHostId_;
|
|
|
|
|
std::string creditSpecification_;
|
|
|
|
|
std::vector<std::string> securityGroupIds_;
|
|
|
|
|
int spotDuration_;
|
|
|
|
|
std::vector<DataDisk> dataDisk_;
|
|
|
|
|
long launchTemplateVersion_;
|
|
|
|
|
std::string storageSetId_;
|
|
|
|
|
std::string systemDiskSize_;
|
|
|
|
|
std::string imageFamily_;
|
|
|
|
|
std::string httpTokens_;
|
|
|
|
|
std::string systemDiskDescription_;
|
|
|
|
|
|
|
|
|
|
|