Browse Source

Update ListTransitRouterPrefixListAssociation support NextHop and NextHopType filter.

sdk-team 3 years ago
parent
commit
d0b808cbaa

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1320
+1.36.1321

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

@@ -42,6 +42,8 @@ public:
 	void setPageSize(int pageSize);
 	long getOwnerUid() const;
 	void setOwnerUid(long ownerUid);
+	std::string getNextHopType() const;
+	void setNextHopType(const std::string &nextHopType);
 	std::string getResourceOwnerAccount() const;
 	void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
 	std::string getOwnerAccount() const;
@@ -52,6 +54,8 @@ public:
 	void setTransitRouterId(const std::string &transitRouterId);
 	std::string getTransitRouterTableId() const;
 	void setTransitRouterTableId(const std::string &transitRouterTableId);
+	std::string getNextHop() const;
+	void setNextHop(const std::string &nextHop);
 
 private:
 	long resourceOwnerId_;
@@ -60,11 +64,13 @@ private:
 	std::string prefixListId_;
 	int pageSize_;
 	long ownerUid_;
+	std::string nextHopType_;
 	std::string resourceOwnerAccount_;
 	std::string ownerAccount_;
 	long ownerId_;
 	std::string transitRouterId_;
 	std::string transitRouterTableId_;
+	std::string nextHop_;
 };
 } // namespace Model
 } // namespace Cbn

+ 3 - 3
cbn/src/CbnClient.cc

@@ -31,21 +31,21 @@ CbnClient::CbnClient(const Credentials &credentials, const ClientConfiguration &
 	RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
 {
 	auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
-	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cbn");
 }
 
 CbnClient::CbnClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
 	RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
 {
 	auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
-	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cbn");
 }
 
 CbnClient::CbnClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
 	RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
 {
 	auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
-	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
+	endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cbn");
 }
 
 CbnClient::~CbnClient()

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

@@ -79,6 +79,15 @@ void ListTransitRouterPrefixListAssociationRequest::setOwnerUid(long ownerUid) {
   setParameter(std::string("OwnerUid"), std::to_string(ownerUid));
 }
 
+std::string ListTransitRouterPrefixListAssociationRequest::getNextHopType() const {
+  return nextHopType_;
+}
+
+void ListTransitRouterPrefixListAssociationRequest::setNextHopType(const std::string &nextHopType) {
+  nextHopType_ = nextHopType;
+  setParameter(std::string("NextHopType"), nextHopType);
+}
+
 std::string ListTransitRouterPrefixListAssociationRequest::getResourceOwnerAccount() const {
   return resourceOwnerAccount_;
 }
@@ -124,3 +133,12 @@ void ListTransitRouterPrefixListAssociationRequest::setTransitRouterTableId(cons
   setParameter(std::string("TransitRouterTableId"), transitRouterTableId);
 }
 
+std::string ListTransitRouterPrefixListAssociationRequest::getNextHop() const {
+  return nextHop_;
+}
+
+void ListTransitRouterPrefixListAssociationRequest::setNextHop(const std::string &nextHop) {
+  nextHop_ = nextHop;
+  setParameter(std::string("NextHop"), nextHop);
+}
+