Browse Source

Update API ListGrantVSwitchEnis.

sdk-team 3 years ago
parent
commit
dc51303f2d

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1714
+1.36.1715

+ 15 - 0
cbn/include/alibabacloud/cbn/model/ListGrantVSwitchEnisRequest.h

@@ -36,8 +36,12 @@ public:
 	void setCenId(const std::string &cenId);
 	int getPageNumber() const;
 	void setPageNumber(int pageNumber);
+	std::string getNextToken() const;
+	void setNextToken(const std::string &nextToken);
 	int getPageSize() const;
 	void setPageSize(int pageSize);
+	std::string getNetworkInterfaceName() const;
+	void setNetworkInterfaceName(const std::string &networkInterfaceName);
 	std::string getResourceOwnerAccount() const;
 	void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
 	std::string getOwnerAccount() const;
@@ -50,18 +54,29 @@ public:
 	void setVSwitchId(const std::string &vSwitchId);
 	std::string getVpcId() const;
 	void setVpcId(const std::string &vpcId);
+	long getMaxResults() const;
+	void setMaxResults(long maxResults);
+	std::string getPrimaryIpAddress() const;
+	void setPrimaryIpAddress(const std::string &primaryIpAddress);
+	std::vector<std::string> getNetworkInterfaceId() const;
+	void setNetworkInterfaceId(const std::vector<std::string> &networkInterfaceId);
 
 private:
 	long resourceOwnerId_;
 	std::string cenId_;
 	int pageNumber_;
+	std::string nextToken_;
 	int pageSize_;
+	std::string networkInterfaceName_;
 	std::string resourceOwnerAccount_;
 	std::string ownerAccount_;
 	long ownerId_;
 	std::string version_;
 	std::string vSwitchId_;
 	std::string vpcId_;
+	long maxResults_;
+	std::string primaryIpAddress_;
+	std::vector<std::string> networkInterfaceId_;
 };
 } // namespace Model
 } // namespace Cbn

+ 6 - 0
cbn/include/alibabacloud/cbn/model/ListGrantVSwitchEnisResult.h

@@ -38,6 +38,8 @@ namespace AlibabaCloud
 					bool transitRouterFlag;
 					std::string vpcId;
 					std::string vSwitchId;
+					std::string networkInterfaceName;
+					std::string primaryIpAddress;
 					std::string networkInterfaceId;
 				};
 
@@ -46,12 +48,16 @@ namespace AlibabaCloud
 				explicit ListGrantVSwitchEnisResult(const std::string &payload);
 				~ListGrantVSwitchEnisResult();
 				std::string getTotalCount()const;
+				std::string getNextToken()const;
+				long getMaxResults()const;
 				std::vector<GrantVSwitchEni> getGrantVSwitchEnis()const;
 
 			protected:
 				void parse(const std::string &payload);
 			private:
 				std::string totalCount_;
+				std::string nextToken_;
+				long maxResults_;
 				std::vector<GrantVSwitchEni> grantVSwitchEnis_;
 
 			};

+ 47 - 0
cbn/src/model/ListGrantVSwitchEnisRequest.cc

@@ -52,6 +52,15 @@ void ListGrantVSwitchEnisRequest::setPageNumber(int pageNumber) {
   setParameter(std::string("PageNumber"), std::to_string(pageNumber));
 }
 
+std::string ListGrantVSwitchEnisRequest::getNextToken() const {
+  return nextToken_;
+}
+
+void ListGrantVSwitchEnisRequest::setNextToken(const std::string &nextToken) {
+  nextToken_ = nextToken;
+  setParameter(std::string("NextToken"), nextToken);
+}
+
 int ListGrantVSwitchEnisRequest::getPageSize() const {
   return pageSize_;
 }
@@ -61,6 +70,15 @@ void ListGrantVSwitchEnisRequest::setPageSize(int pageSize) {
   setParameter(std::string("PageSize"), std::to_string(pageSize));
 }
 
+std::string ListGrantVSwitchEnisRequest::getNetworkInterfaceName() const {
+  return networkInterfaceName_;
+}
+
+void ListGrantVSwitchEnisRequest::setNetworkInterfaceName(const std::string &networkInterfaceName) {
+  networkInterfaceName_ = networkInterfaceName;
+  setParameter(std::string("NetworkInterfaceName"), networkInterfaceName);
+}
+
 std::string ListGrantVSwitchEnisRequest::getResourceOwnerAccount() const {
   return resourceOwnerAccount_;
 }
@@ -115,3 +133,32 @@ void ListGrantVSwitchEnisRequest::setVpcId(const std::string &vpcId) {
   setParameter(std::string("VpcId"), vpcId);
 }
 
+long ListGrantVSwitchEnisRequest::getMaxResults() const {
+  return maxResults_;
+}
+
+void ListGrantVSwitchEnisRequest::setMaxResults(long maxResults) {
+  maxResults_ = maxResults;
+  setParameter(std::string("MaxResults"), std::to_string(maxResults));
+}
+
+std::string ListGrantVSwitchEnisRequest::getPrimaryIpAddress() const {
+  return primaryIpAddress_;
+}
+
+void ListGrantVSwitchEnisRequest::setPrimaryIpAddress(const std::string &primaryIpAddress) {
+  primaryIpAddress_ = primaryIpAddress;
+  setParameter(std::string("PrimaryIpAddress"), primaryIpAddress);
+}
+
+std::vector<ListGrantVSwitchEnisRequest::std::string> ListGrantVSwitchEnisRequest::getNetworkInterfaceId() const {
+  return networkInterfaceId_;
+}
+
+void ListGrantVSwitchEnisRequest::setNetworkInterfaceId(const std::vector<ListGrantVSwitchEnisRequest::std::string> &networkInterfaceId) {
+  networkInterfaceId_ = networkInterfaceId;
+  for(int dep1 = 0; dep1 != networkInterfaceId.size(); dep1++) {
+    setParameter(std::string("NetworkInterfaceId") + "." + std::to_string(dep1 + 1), networkInterfaceId[dep1]);
+  }
+}
+

+ 18 - 0
cbn/src/model/ListGrantVSwitchEnisResult.cc

@@ -53,10 +53,18 @@ void ListGrantVSwitchEnisResult::parse(const std::string &payload)
 			grantVSwitchEnisObject.description = valueGrantVSwitchEnisGrantVSwitchEni["Description"].asString();
 		if(!valueGrantVSwitchEnisGrantVSwitchEni["TransitRouterFlag"].isNull())
 			grantVSwitchEnisObject.transitRouterFlag = valueGrantVSwitchEnisGrantVSwitchEni["TransitRouterFlag"].asString() == "true";
+		if(!valueGrantVSwitchEnisGrantVSwitchEni["NetworkInterfaceName"].isNull())
+			grantVSwitchEnisObject.networkInterfaceName = valueGrantVSwitchEnisGrantVSwitchEni["NetworkInterfaceName"].asString();
+		if(!valueGrantVSwitchEnisGrantVSwitchEni["PrimaryIpAddress"].isNull())
+			grantVSwitchEnisObject.primaryIpAddress = valueGrantVSwitchEnisGrantVSwitchEni["PrimaryIpAddress"].asString();
 		grantVSwitchEnis_.push_back(grantVSwitchEnisObject);
 	}
 	if(!value["TotalCount"].isNull())
 		totalCount_ = value["TotalCount"].asString();
+	if(!value["NextToken"].isNull())
+		nextToken_ = value["NextToken"].asString();
+	if(!value["MaxResults"].isNull())
+		maxResults_ = std::stol(value["MaxResults"].asString());
 
 }
 
@@ -65,6 +73,16 @@ std::string ListGrantVSwitchEnisResult::getTotalCount()const
 	return totalCount_;
 }
 
+std::string ListGrantVSwitchEnisResult::getNextToken()const
+{
+	return nextToken_;
+}
+
+long ListGrantVSwitchEnisResult::getMaxResults()const
+{
+	return maxResults_;
+}
+
 std::vector<ListGrantVSwitchEnisResult::GrantVSwitchEni> ListGrantVSwitchEnisResult::getGrantVSwitchEnis()const
 {
 	return grantVSwitchEnis_;