From d0b808cbaa4d5871c5926bec700fd186ea664a12 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 2 Nov 2022 09:47:19 +0000 Subject: [PATCH] Update ListTransitRouterPrefixListAssociation support NextHop and NextHopType filter. --- VERSION | 2 +- ...TransitRouterPrefixListAssociationRequest.h | 6 ++++++ cbn/src/CbnClient.cc | 6 +++--- ...ransitRouterPrefixListAssociationRequest.cc | 18 ++++++++++++++++++ 4 files changed, 28 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index f0b8ae88d..b4d3f5ea0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1320 \ No newline at end of file +1.36.1321 \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/ListTransitRouterPrefixListAssociationRequest.h b/cbn/include/alibabacloud/cbn/model/ListTransitRouterPrefixListAssociationRequest.h index 800101bc0..6977294c9 100644 --- a/cbn/include/alibabacloud/cbn/model/ListTransitRouterPrefixListAssociationRequest.h +++ b/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 diff --git a/cbn/src/CbnClient.cc b/cbn/src/CbnClient.cc index b992d0c73..b2aff922a 100644 --- a/cbn/src/CbnClient.cc +++ b/cbn/src/CbnClient.cc @@ -31,21 +31,21 @@ CbnClient::CbnClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cbn"); } CbnClient::CbnClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(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(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cbn"); } CbnClient::~CbnClient() diff --git a/cbn/src/model/ListTransitRouterPrefixListAssociationRequest.cc b/cbn/src/model/ListTransitRouterPrefixListAssociationRequest.cc index 8a51a17cc..3a2c38f1a 100644 --- a/cbn/src/model/ListTransitRouterPrefixListAssociationRequest.cc +++ b/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); +} +