Browse Source

DescribeNetworkInterfaces Supports NextToken.

sdk-team 6 years ago
parent
commit
3550cece5c

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2019-12-19 Version 1.36.216
+- DescribeNetworkInterfaces Supports NextToken.
+
 2019-12-16 Version 1.36.215
 - DescribeTransferDomains add query param, TargetUserId, FromUserId, DomainName.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.215
+1.36.216

+ 9 - 0
ecs/include/alibabacloud/ecs/model/AttachDiskRequest.h

@@ -37,6 +37,12 @@ namespace AlibabaCloud
 
 				long getResourceOwnerId()const;
 				void setResourceOwnerId(long resourceOwnerId);
+				std::string getKeyPairName()const;
+				void setKeyPairName(const std::string& keyPairName);
+				bool getBootable()const;
+				void setBootable(bool bootable);
+				std::string getPassword()const;
+				void setPassword(const std::string& password);
 				std::string getDiskId()const;
 				void setDiskId(const std::string& diskId);
 				bool getDeleteWithInstance()const;
@@ -54,6 +60,9 @@ namespace AlibabaCloud
 
             private:
 				long resourceOwnerId_;
+				std::string keyPairName_;
+				bool bootable_;
+				std::string password_;
 				std::string diskId_;
 				bool deleteWithInstance_;
 				std::string resourceOwnerAccount_;

+ 1 - 0
ecs/include/alibabacloud/ecs/model/DescribeKeyPairsResult.h

@@ -42,6 +42,7 @@ namespace AlibabaCloud
 					std::string keyPairFingerPrint;
 					std::string keyPairName;
 					std::string resourceGroupId;
+					std::string creationTime;
 					std::vector<KeyPair::Tag> tags;
 				};
 

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

@@ -54,6 +54,8 @@ namespace AlibabaCloud
 				void setResourceGroupId(const std::string& resourceGroupId);
 				std::string getRegionId()const;
 				void setRegionId(const std::string& regionId);
+				std::string getNextToken()const;
+				void setNextToken(const std::string& nextToken);
 				int getPageSize()const;
 				void setPageSize(int pageSize);
 				std::vector<Tag> getTag()const;
@@ -76,6 +78,8 @@ namespace AlibabaCloud
 				void setVpcId(const std::string& vpcId);
 				std::string getPrimaryIpAddress()const;
 				void setPrimaryIpAddress(const std::string& primaryIpAddress);
+				int getMaxResults()const;
+				void setMaxResults(int maxResults);
 				std::vector<std::string> getNetworkInterfaceId()const;
 				void setNetworkInterfaceId(const std::vector<std::string>& networkInterfaceId);
 
@@ -87,6 +91,7 @@ namespace AlibabaCloud
 				int pageNumber_;
 				std::string resourceGroupId_;
 				std::string regionId_;
+				std::string nextToken_;
 				int pageSize_;
 				std::vector<Tag> tag_;
 				std::string networkInterfaceName_;
@@ -98,6 +103,7 @@ namespace AlibabaCloud
 				std::string instanceId_;
 				std::string vpcId_;
 				std::string primaryIpAddress_;
+				int maxResults_;
 				std::vector<std::string> networkInterfaceId_;
 
 			};

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

@@ -87,6 +87,7 @@ namespace AlibabaCloud
 				~DescribeNetworkInterfacesResult();
 				int getTotalCount()const;
 				int getPageSize()const;
+				std::string getNextToken()const;
 				int getPageNumber()const;
 				std::vector<NetworkInterfaceSet> getNetworkInterfaceSets()const;
 
@@ -95,6 +96,7 @@ namespace AlibabaCloud
 			private:
 				int totalCount_;
 				int pageSize_;
+				std::string nextToken_;
 				int pageNumber_;
 				std::vector<NetworkInterfaceSet> networkInterfaceSets_;
 

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

@@ -39,6 +39,8 @@ namespace AlibabaCloud
 				void setResourceOwnerId(long resourceOwnerId);
 				std::string getDiskId()const;
 				void setDiskId(const std::string& diskId);
+				bool getDeleteWithInstance()const;
+				void setDeleteWithInstance(bool deleteWithInstance);
 				std::string getResourceOwnerAccount()const;
 				void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
 				std::string getOwnerAccount()const;
@@ -51,6 +53,7 @@ namespace AlibabaCloud
             private:
 				long resourceOwnerId_;
 				std::string diskId_;
+				bool deleteWithInstance_;
 				std::string resourceOwnerAccount_;
 				std::string ownerAccount_;
 				long ownerId_;

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

@@ -39,6 +39,8 @@ namespace AlibabaCloud
 				void setResourceOwnerId(long resourceOwnerId);
 				std::string getRegionId()const;
 				void setRegionId(const std::string& regionId);
+				std::string getInstanceType()const;
+				void setInstanceType(const std::string& instanceType);
 				std::string getDeploymentSetId()const;
 				void setDeploymentSetId(const std::string& deploymentSetId);
 				std::string getResourceOwnerAccount()const;
@@ -63,6 +65,7 @@ namespace AlibabaCloud
             private:
 				long resourceOwnerId_;
 				std::string regionId_;
+				std::string instanceType_;
 				std::string deploymentSetId_;
 				std::string resourceOwnerAccount_;
 				std::string ownerAccount_;

+ 33 - 0
ecs/src/model/AttachDiskRequest.cc

@@ -38,6 +38,39 @@ void AttachDiskRequest::setResourceOwnerId(long resourceOwnerId)
 	setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
 }
 
+std::string AttachDiskRequest::getKeyPairName()const
+{
+	return keyPairName_;
+}
+
+void AttachDiskRequest::setKeyPairName(const std::string& keyPairName)
+{
+	keyPairName_ = keyPairName;
+	setCoreParameter("KeyPairName", keyPairName);
+}
+
+bool AttachDiskRequest::getBootable()const
+{
+	return bootable_;
+}
+
+void AttachDiskRequest::setBootable(bool bootable)
+{
+	bootable_ = bootable;
+	setCoreParameter("Bootable", bootable ? "true" : "false");
+}
+
+std::string AttachDiskRequest::getPassword()const
+{
+	return password_;
+}
+
+void AttachDiskRequest::setPassword(const std::string& password)
+{
+	password_ = password;
+	setCoreParameter("Password", password);
+}
+
 std::string AttachDiskRequest::getDiskId()const
 {
 	return diskId_;

+ 2 - 0
ecs/src/model/DescribeKeyPairsResult.cc

@@ -47,6 +47,8 @@ void DescribeKeyPairsResult::parse(const std::string &payload)
 			keyPairsObject.keyPairName = valueKeyPairsKeyPair["KeyPairName"].asString();
 		if(!valueKeyPairsKeyPair["KeyPairFingerPrint"].isNull())
 			keyPairsObject.keyPairFingerPrint = valueKeyPairsKeyPair["KeyPairFingerPrint"].asString();
+		if(!valueKeyPairsKeyPair["CreationTime"].isNull())
+			keyPairsObject.creationTime = valueKeyPairsKeyPair["CreationTime"].asString();
 		if(!valueKeyPairsKeyPair["ResourceGroupId"].isNull())
 			keyPairsObject.resourceGroupId = valueKeyPairsKeyPair["ResourceGroupId"].asString();
 		auto allTagsNode = allKeyPairsNode["Tags"]["Tag"];

+ 22 - 0
ecs/src/model/DescribeNetworkInterfacesRequest.cc

@@ -104,6 +104,17 @@ void DescribeNetworkInterfacesRequest::setRegionId(const std::string& regionId)
 	setCoreParameter("RegionId", regionId);
 }
 
+std::string DescribeNetworkInterfacesRequest::getNextToken()const
+{
+	return nextToken_;
+}
+
+void DescribeNetworkInterfacesRequest::setNextToken(const std::string& nextToken)
+{
+	nextToken_ = nextToken;
+	setCoreParameter("NextToken", nextToken);
+}
+
 int DescribeNetworkInterfacesRequest::getPageSize()const
 {
 	return pageSize_;
@@ -232,6 +243,17 @@ void DescribeNetworkInterfacesRequest::setPrimaryIpAddress(const std::string& pr
 	setCoreParameter("PrimaryIpAddress", primaryIpAddress);
 }
 
+int DescribeNetworkInterfacesRequest::getMaxResults()const
+{
+	return maxResults_;
+}
+
+void DescribeNetworkInterfacesRequest::setMaxResults(int maxResults)
+{
+	maxResults_ = maxResults;
+	setCoreParameter("MaxResults", std::to_string(maxResults));
+}
+
 std::vector<std::string> DescribeNetworkInterfacesRequest::getNetworkInterfaceId()const
 {
 	return networkInterfaceId_;

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

@@ -122,6 +122,8 @@ void DescribeNetworkInterfacesResult::parse(const std::string &payload)
 		pageNumber_ = std::stoi(value["PageNumber"].asString());
 	if(!value["PageSize"].isNull())
 		pageSize_ = std::stoi(value["PageSize"].asString());
+	if(!value["NextToken"].isNull())
+		nextToken_ = value["NextToken"].asString();
 
 }
 
@@ -135,6 +137,11 @@ int DescribeNetworkInterfacesResult::getPageSize()const
 	return pageSize_;
 }
 
+std::string DescribeNetworkInterfacesResult::getNextToken()const
+{
+	return nextToken_;
+}
+
 int DescribeNetworkInterfacesResult::getPageNumber()const
 {
 	return pageNumber_;

+ 11 - 0
ecs/src/model/DetachDiskRequest.cc

@@ -49,6 +49,17 @@ void DetachDiskRequest::setDiskId(const std::string& diskId)
 	setCoreParameter("DiskId", diskId);
 }
 
+bool DetachDiskRequest::getDeleteWithInstance()const
+{
+	return deleteWithInstance_;
+}
+
+void DetachDiskRequest::setDeleteWithInstance(bool deleteWithInstance)
+{
+	deleteWithInstance_ = deleteWithInstance;
+	setCoreParameter("DeleteWithInstance", deleteWithInstance ? "true" : "false");
+}
+
 std::string DetachDiskRequest::getResourceOwnerAccount()const
 {
 	return resourceOwnerAccount_;

+ 11 - 0
ecs/src/model/ModifyInstanceDeploymentRequest.cc

@@ -49,6 +49,17 @@ void ModifyInstanceDeploymentRequest::setRegionId(const std::string& regionId)
 	setCoreParameter("RegionId", regionId);
 }
 
+std::string ModifyInstanceDeploymentRequest::getInstanceType()const
+{
+	return instanceType_;
+}
+
+void ModifyInstanceDeploymentRequest::setInstanceType(const std::string& instanceType)
+{
+	instanceType_ = instanceType;
+	setCoreParameter("InstanceType", instanceType);
+}
+
 std::string ModifyInstanceDeploymentRequest::getDeploymentSetId()const
 {
 	return deploymentSetId_;