Kaynağa Gözat

Add dedicated block stroage cluster ModifyDiskSpec.

sdk-team 3 yıl önce
ebeveyn
işleme
bfe14f3d0f
25 değiştirilmiş dosya ile 133 ekleme ve 15 silme
  1. 1 1
      VERSION
  2. 3 0
      ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h
  3. 3 0
      ecs/include/alibabacloud/ecs/model/CreateAutoProvisioningGroupRequest.h
  4. 2 0
      ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionResult.h
  5. 2 0
      ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateResult.h
  6. 7 0
      ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateVersionResult.h
  7. 2 0
      ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostsResult.h
  8. 2 0
      ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeResult.h
  9. 7 2
      ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsResult.h
  10. 3 0
      ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeRequest.h
  11. 2 0
      ecs/include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionResult.h
  12. 6 0
      ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h
  13. 0 3
      ecs/include/alibabacloud/ecs/model/StartInstanceRequest.h
  14. 9 0
      ecs/src/model/AssignIpv6AddressesRequest.cc
  15. 9 0
      ecs/src/model/CreateAutoProvisioningGroupRequest.cc
  16. 7 0
      ecs/src/model/CreateLaunchTemplateVersionResult.cc
  17. 7 0
      ecs/src/model/DeleteLaunchTemplateResult.cc
  18. 15 0
      ecs/src/model/DeleteLaunchTemplateVersionResult.cc
  19. 4 0
      ecs/src/model/DescribeDedicatedHostsResult.cc
  20. 7 0
      ecs/src/model/DescribeInstanceAttributeResult.cc
  21. 10 0
      ecs/src/model/DescribeInstanceHistoryEventsResult.cc
  22. 9 0
      ecs/src/model/ModifyInstanceAttributeRequest.cc
  23. 7 0
      ecs/src/model/ModifyLaunchTemplateDefaultVersionResult.cc
  24. 9 0
      ecs/src/model/RunInstancesRequest.cc
  25. 0 9
      ecs/src/model/StartInstanceRequest.cc

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1513
+1.36.1514

+ 3 - 0
ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h

@@ -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_;

+ 3 - 0
ecs/include/alibabacloud/ecs/model/CreateAutoProvisioningGroupRequest.h

@@ -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_;

+ 2 - 0
ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionResult.h

@@ -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_;
 
 			};
 		}

+ 2 - 0
ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateResult.h

@@ -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_;
 
 			};
 		}

+ 7 - 0
ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateVersionResult.h

@@ -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_;
 
 			};
 		}

+ 2 - 0
ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostsResult.h

@@ -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;

+ 2 - 0
ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeResult.h

@@ -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_;

+ 7 - 2
ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsResult.h

@@ -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;

+ 3 - 0
ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeRequest.h

@@ -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_;

+ 2 - 0
ecs/include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionResult.h

@@ -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_;
 
 			};
 		}

+ 6 - 0
ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h

@@ -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_;

+ 0 - 3
ecs/include/alibabacloud/ecs/model/StartInstanceRequest.h

@@ -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_;

+ 9 - 0
ecs/src/model/AssignIpv6AddressesRequest.cc

@@ -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_;
 }

+ 9 - 0
ecs/src/model/CreateAutoProvisioningGroupRequest.cc

@@ -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_;
 }

+ 7 - 0
ecs/src/model/CreateLaunchTemplateVersionResult.cc

@@ -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_;
+}
+

+ 7 - 0
ecs/src/model/DeleteLaunchTemplateResult.cc

@@ -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_;
+}
+

+ 15 - 0
ecs/src/model/DeleteLaunchTemplateVersionResult.cc

@@ -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_;
+}
+

+ 4 - 0
ecs/src/model/DescribeDedicatedHostsResult.cc

@@ -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"];

+ 7 - 0
ecs/src/model/DescribeInstanceAttributeResult.cc

@@ -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_;

+ 10 - 0
ecs/src/model/DescribeInstanceHistoryEventsResult.cc

@@ -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)
 		{

+ 9 - 0
ecs/src/model/ModifyInstanceAttributeRequest.cc

@@ -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_;
 }

+ 7 - 0
ecs/src/model/ModifyLaunchTemplateDefaultVersionResult.cc

@@ -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_;
+}
+

+ 9 - 0
ecs/src/model/RunInstancesRequest.cc

@@ -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_;
 }

+ 0 - 9
ecs/src/model/StartInstanceRequest.cc

@@ -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_;
 }