From bfee7629d7c0a1801764fe6f707c1661b3a57373 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 22 Apr 2021 05:36:14 +0000 Subject: [PATCH] Support CEN latest Apis. --- CHANGELOG | 3 + VERSION | 2 +- cbn/CMakeLists.txt | 12 ++ cbn/include/alibabacloud/cbn/CbnClient.h | 24 +++ .../model/CreateCenBandwidthPackageRequest.h | 6 + ...teCenChildInstanceRouteEntryToCenRequest.h | 84 +++++++++ ...ateCenChildInstanceRouteEntryToCenResult.h | 49 +++++ .../alibabacloud/cbn/model/CreateCenRequest.h | 3 + .../cbn/model/CreateCenRouteMapRequest.h | 18 ++ ...teCenChildInstanceRouteEntryToCenRequest.h | 78 ++++++++ ...eteCenChildInstanceRouteEntryToCenResult.h | 49 +++++ ...CenAttachedChildInstanceAttributeRequest.h | 3 + ...eCenAttachedChildInstanceAttributeResult.h | 9 + .../DescribeCenBandwidthPackagesRequest.h | 8 + .../DescribeCenBandwidthPackagesResult.h | 6 + ...cribeCenChildInstanceRouteEntriesRequest.h | 6 + ...cribeCenInterRegionBandwidthLimitsResult.h | 1 + ...scribeCenRegionDomainRouteEntriesRequest.h | 3 + .../cbn/model/DescribeCenRouteMapsRequest.h | 9 + .../cbn/model/DescribeCenRouteMapsResult.h | 5 + .../model/DescribeCenVbrHealthCheckResult.h | 1 + .../cbn/model/DescribeCensResult.h | 1 + .../DescribeChildInstanceRegionsRequest.h | 9 +- .../cbn/model/ModifyCenAttributeRequest.h | 3 + .../cbn/model/ModifyCenRouteMapRequest.h | 15 ++ ...empUpgradeCenBandwidthPackageSpecRequest.h | 66 +++++++ ...TempUpgradeCenBandwidthPackageSpecResult.h | 49 +++++ .../cbn/model/UntagResourcesRequest.h | 3 + cbn/src/CbnClient.cc | 108 +++++++++++ .../model/CreateCenBandwidthPackageRequest.cc | 22 +++ ...eCenChildInstanceRouteEntryToCenRequest.cc | 172 ++++++++++++++++++ ...teCenChildInstanceRouteEntryToCenResult.cc | 44 +++++ cbn/src/model/CreateCenRequest.cc | 11 ++ cbn/src/model/CreateCenRouteMapRequest.cc | 72 ++++++++ ...eCenChildInstanceRouteEntryToCenRequest.cc | 150 +++++++++++++++ ...teCenChildInstanceRouteEntryToCenResult.cc | 44 +++++ ...enAttachedChildInstanceAttributeRequest.cc | 11 ++ ...CenAttachedChildInstanceAttributeResult.cc | 22 +++ .../DescribeCenBandwidthPackagesRequest.cc | 16 ++ .../DescribeCenBandwidthPackagesResult.cc | 30 ++- ...ribeCenChildInstanceRouteEntriesRequest.cc | 22 +++ ...cribeCenChildInstanceRouteEntriesResult.cc | 36 ++-- ...ribeCenInterRegionBandwidthLimitsResult.cc | 2 + ...cribeCenRegionDomainRouteEntriesRequest.cc | 11 ++ ...scribeCenRegionDomainRouteEntriesResult.cc | 24 +-- cbn/src/model/DescribeCenRouteMapsRequest.cc | 18 ++ cbn/src/model/DescribeCenRouteMapsResult.cc | 13 ++ .../model/DescribeCenVbrHealthCheckResult.cc | 2 + cbn/src/model/DescribeCensResult.cc | 14 +- .../DescribeChildInstanceRegionsRequest.cc | 21 ++- .../DescribePublishedRouteEntriesResult.cc | 24 +-- cbn/src/model/ModifyCenAttributeRequest.cc | 11 ++ cbn/src/model/ModifyCenRouteMapRequest.cc | 61 +++++++ ...mpUpgradeCenBandwidthPackageSpecRequest.cc | 106 +++++++++++ ...empUpgradeCenBandwidthPackageSpecResult.cc | 44 +++++ cbn/src/model/UntagResourcesRequest.cc | 11 ++ 56 files changed, 1580 insertions(+), 67 deletions(-) create mode 100644 cbn/include/alibabacloud/cbn/model/CreateCenChildInstanceRouteEntryToCenRequest.h create mode 100644 cbn/include/alibabacloud/cbn/model/CreateCenChildInstanceRouteEntryToCenResult.h create mode 100644 cbn/include/alibabacloud/cbn/model/DeleteCenChildInstanceRouteEntryToCenRequest.h create mode 100644 cbn/include/alibabacloud/cbn/model/DeleteCenChildInstanceRouteEntryToCenResult.h create mode 100644 cbn/include/alibabacloud/cbn/model/TempUpgradeCenBandwidthPackageSpecRequest.h create mode 100644 cbn/include/alibabacloud/cbn/model/TempUpgradeCenBandwidthPackageSpecResult.h create mode 100644 cbn/src/model/CreateCenChildInstanceRouteEntryToCenRequest.cc create mode 100644 cbn/src/model/CreateCenChildInstanceRouteEntryToCenResult.cc create mode 100644 cbn/src/model/DeleteCenChildInstanceRouteEntryToCenRequest.cc create mode 100644 cbn/src/model/DeleteCenChildInstanceRouteEntryToCenResult.cc create mode 100644 cbn/src/model/TempUpgradeCenBandwidthPackageSpecRequest.cc create mode 100644 cbn/src/model/TempUpgradeCenBandwidthPackageSpecResult.cc diff --git a/CHANGELOG b/CHANGELOG index 1bc938d4c..7f30b48eb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-04-22 Version: 1.36.695 +- Support CEN latest Apis. + 2021-04-22 Version: 1.36.694 - Support GetPhysicalDatabase API. diff --git a/VERSION b/VERSION index 6b98cbb71..30669e178 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.694 \ No newline at end of file +1.36.695 \ No newline at end of file diff --git a/cbn/CMakeLists.txt b/cbn/CMakeLists.txt index fb0268d11..a1f912002 100644 --- a/cbn/CMakeLists.txt +++ b/cbn/CMakeLists.txt @@ -31,6 +31,8 @@ set(cbn_public_header_model include/alibabacloud/cbn/model/CreateCenResult.h include/alibabacloud/cbn/model/CreateCenBandwidthPackageRequest.h include/alibabacloud/cbn/model/CreateCenBandwidthPackageResult.h + include/alibabacloud/cbn/model/CreateCenChildInstanceRouteEntryToCenRequest.h + include/alibabacloud/cbn/model/CreateCenChildInstanceRouteEntryToCenResult.h include/alibabacloud/cbn/model/CreateCenRouteMapRequest.h include/alibabacloud/cbn/model/CreateCenRouteMapResult.h include/alibabacloud/cbn/model/CreateFlowlogRequest.h @@ -41,6 +43,8 @@ set(cbn_public_header_model include/alibabacloud/cbn/model/DeleteCenResult.h include/alibabacloud/cbn/model/DeleteCenBandwidthPackageRequest.h include/alibabacloud/cbn/model/DeleteCenBandwidthPackageResult.h + include/alibabacloud/cbn/model/DeleteCenChildInstanceRouteEntryToCenRequest.h + include/alibabacloud/cbn/model/DeleteCenChildInstanceRouteEntryToCenResult.h include/alibabacloud/cbn/model/DeleteCenRouteMapRequest.h include/alibabacloud/cbn/model/DeleteCenRouteMapResult.h include/alibabacloud/cbn/model/DeleteFlowlogRequest.h @@ -113,6 +117,8 @@ set(cbn_public_header_model include/alibabacloud/cbn/model/SetCenInterRegionBandwidthLimitResult.h include/alibabacloud/cbn/model/TagResourcesRequest.h include/alibabacloud/cbn/model/TagResourcesResult.h + include/alibabacloud/cbn/model/TempUpgradeCenBandwidthPackageSpecRequest.h + include/alibabacloud/cbn/model/TempUpgradeCenBandwidthPackageSpecResult.h include/alibabacloud/cbn/model/UnassociateCenBandwidthPackageRequest.h include/alibabacloud/cbn/model/UnassociateCenBandwidthPackageResult.h include/alibabacloud/cbn/model/UnroutePrivateZoneInCenToVpcRequest.h @@ -134,6 +140,8 @@ set(cbn_src src/model/CreateCenResult.cc src/model/CreateCenBandwidthPackageRequest.cc src/model/CreateCenBandwidthPackageResult.cc + src/model/CreateCenChildInstanceRouteEntryToCenRequest.cc + src/model/CreateCenChildInstanceRouteEntryToCenResult.cc src/model/CreateCenRouteMapRequest.cc src/model/CreateCenRouteMapResult.cc src/model/CreateFlowlogRequest.cc @@ -144,6 +152,8 @@ set(cbn_src src/model/DeleteCenResult.cc src/model/DeleteCenBandwidthPackageRequest.cc src/model/DeleteCenBandwidthPackageResult.cc + src/model/DeleteCenChildInstanceRouteEntryToCenRequest.cc + src/model/DeleteCenChildInstanceRouteEntryToCenResult.cc src/model/DeleteCenRouteMapRequest.cc src/model/DeleteCenRouteMapResult.cc src/model/DeleteFlowlogRequest.cc @@ -216,6 +226,8 @@ set(cbn_src src/model/SetCenInterRegionBandwidthLimitResult.cc src/model/TagResourcesRequest.cc src/model/TagResourcesResult.cc + src/model/TempUpgradeCenBandwidthPackageSpecRequest.cc + src/model/TempUpgradeCenBandwidthPackageSpecResult.cc src/model/UnassociateCenBandwidthPackageRequest.cc src/model/UnassociateCenBandwidthPackageResult.cc src/model/UnroutePrivateZoneInCenToVpcRequest.cc diff --git a/cbn/include/alibabacloud/cbn/CbnClient.h b/cbn/include/alibabacloud/cbn/CbnClient.h index 69b02f824..4b409662f 100644 --- a/cbn/include/alibabacloud/cbn/CbnClient.h +++ b/cbn/include/alibabacloud/cbn/CbnClient.h @@ -32,6 +32,8 @@ #include "model/CreateCenResult.h" #include "model/CreateCenBandwidthPackageRequest.h" #include "model/CreateCenBandwidthPackageResult.h" +#include "model/CreateCenChildInstanceRouteEntryToCenRequest.h" +#include "model/CreateCenChildInstanceRouteEntryToCenResult.h" #include "model/CreateCenRouteMapRequest.h" #include "model/CreateCenRouteMapResult.h" #include "model/CreateFlowlogRequest.h" @@ -42,6 +44,8 @@ #include "model/DeleteCenResult.h" #include "model/DeleteCenBandwidthPackageRequest.h" #include "model/DeleteCenBandwidthPackageResult.h" +#include "model/DeleteCenChildInstanceRouteEntryToCenRequest.h" +#include "model/DeleteCenChildInstanceRouteEntryToCenResult.h" #include "model/DeleteCenRouteMapRequest.h" #include "model/DeleteCenRouteMapResult.h" #include "model/DeleteFlowlogRequest.h" @@ -114,6 +118,8 @@ #include "model/SetCenInterRegionBandwidthLimitResult.h" #include "model/TagResourcesRequest.h" #include "model/TagResourcesResult.h" +#include "model/TempUpgradeCenBandwidthPackageSpecRequest.h" +#include "model/TempUpgradeCenBandwidthPackageSpecResult.h" #include "model/UnassociateCenBandwidthPackageRequest.h" #include "model/UnassociateCenBandwidthPackageResult.h" #include "model/UnroutePrivateZoneInCenToVpcRequest.h" @@ -146,6 +152,9 @@ namespace AlibabaCloud typedef Outcome CreateCenBandwidthPackageOutcome; typedef std::future CreateCenBandwidthPackageOutcomeCallable; typedef std::function&)> CreateCenBandwidthPackageAsyncHandler; + typedef Outcome CreateCenChildInstanceRouteEntryToCenOutcome; + typedef std::future CreateCenChildInstanceRouteEntryToCenOutcomeCallable; + typedef std::function&)> CreateCenChildInstanceRouteEntryToCenAsyncHandler; typedef Outcome CreateCenRouteMapOutcome; typedef std::future CreateCenRouteMapOutcomeCallable; typedef std::function&)> CreateCenRouteMapAsyncHandler; @@ -161,6 +170,9 @@ namespace AlibabaCloud typedef Outcome DeleteCenBandwidthPackageOutcome; typedef std::future DeleteCenBandwidthPackageOutcomeCallable; typedef std::function&)> DeleteCenBandwidthPackageAsyncHandler; + typedef Outcome DeleteCenChildInstanceRouteEntryToCenOutcome; + typedef std::future DeleteCenChildInstanceRouteEntryToCenOutcomeCallable; + typedef std::function&)> DeleteCenChildInstanceRouteEntryToCenAsyncHandler; typedef Outcome DeleteCenRouteMapOutcome; typedef std::future DeleteCenRouteMapOutcomeCallable; typedef std::function&)> DeleteCenRouteMapAsyncHandler; @@ -269,6 +281,9 @@ namespace AlibabaCloud typedef Outcome TagResourcesOutcome; typedef std::future TagResourcesOutcomeCallable; typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome TempUpgradeCenBandwidthPackageSpecOutcome; + typedef std::future TempUpgradeCenBandwidthPackageSpecOutcomeCallable; + typedef std::function&)> TempUpgradeCenBandwidthPackageSpecAsyncHandler; typedef Outcome UnassociateCenBandwidthPackageOutcome; typedef std::future UnassociateCenBandwidthPackageOutcomeCallable; typedef std::function&)> UnassociateCenBandwidthPackageAsyncHandler; @@ -301,6 +316,9 @@ namespace AlibabaCloud CreateCenBandwidthPackageOutcome createCenBandwidthPackage(const Model::CreateCenBandwidthPackageRequest &request)const; void createCenBandwidthPackageAsync(const Model::CreateCenBandwidthPackageRequest& request, const CreateCenBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCenBandwidthPackageOutcomeCallable createCenBandwidthPackageCallable(const Model::CreateCenBandwidthPackageRequest& request) const; + CreateCenChildInstanceRouteEntryToCenOutcome createCenChildInstanceRouteEntryToCen(const Model::CreateCenChildInstanceRouteEntryToCenRequest &request)const; + void createCenChildInstanceRouteEntryToCenAsync(const Model::CreateCenChildInstanceRouteEntryToCenRequest& request, const CreateCenChildInstanceRouteEntryToCenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCenChildInstanceRouteEntryToCenOutcomeCallable createCenChildInstanceRouteEntryToCenCallable(const Model::CreateCenChildInstanceRouteEntryToCenRequest& request) const; CreateCenRouteMapOutcome createCenRouteMap(const Model::CreateCenRouteMapRequest &request)const; void createCenRouteMapAsync(const Model::CreateCenRouteMapRequest& request, const CreateCenRouteMapAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCenRouteMapOutcomeCallable createCenRouteMapCallable(const Model::CreateCenRouteMapRequest& request) const; @@ -316,6 +334,9 @@ namespace AlibabaCloud DeleteCenBandwidthPackageOutcome deleteCenBandwidthPackage(const Model::DeleteCenBandwidthPackageRequest &request)const; void deleteCenBandwidthPackageAsync(const Model::DeleteCenBandwidthPackageRequest& request, const DeleteCenBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCenBandwidthPackageOutcomeCallable deleteCenBandwidthPackageCallable(const Model::DeleteCenBandwidthPackageRequest& request) const; + DeleteCenChildInstanceRouteEntryToCenOutcome deleteCenChildInstanceRouteEntryToCen(const Model::DeleteCenChildInstanceRouteEntryToCenRequest &request)const; + void deleteCenChildInstanceRouteEntryToCenAsync(const Model::DeleteCenChildInstanceRouteEntryToCenRequest& request, const DeleteCenChildInstanceRouteEntryToCenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCenChildInstanceRouteEntryToCenOutcomeCallable deleteCenChildInstanceRouteEntryToCenCallable(const Model::DeleteCenChildInstanceRouteEntryToCenRequest& request) const; DeleteCenRouteMapOutcome deleteCenRouteMap(const Model::DeleteCenRouteMapRequest &request)const; void deleteCenRouteMapAsync(const Model::DeleteCenRouteMapRequest& request, const DeleteCenRouteMapAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCenRouteMapOutcomeCallable deleteCenRouteMapCallable(const Model::DeleteCenRouteMapRequest& request) const; @@ -424,6 +445,9 @@ namespace AlibabaCloud TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; + TempUpgradeCenBandwidthPackageSpecOutcome tempUpgradeCenBandwidthPackageSpec(const Model::TempUpgradeCenBandwidthPackageSpecRequest &request)const; + void tempUpgradeCenBandwidthPackageSpecAsync(const Model::TempUpgradeCenBandwidthPackageSpecRequest& request, const TempUpgradeCenBandwidthPackageSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TempUpgradeCenBandwidthPackageSpecOutcomeCallable tempUpgradeCenBandwidthPackageSpecCallable(const Model::TempUpgradeCenBandwidthPackageSpecRequest& request) const; UnassociateCenBandwidthPackageOutcome unassociateCenBandwidthPackage(const Model::UnassociateCenBandwidthPackageRequest &request)const; void unassociateCenBandwidthPackageAsync(const Model::UnassociateCenBandwidthPackageRequest& request, const UnassociateCenBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnassociateCenBandwidthPackageOutcomeCallable unassociateCenBandwidthPackageCallable(const Model::UnassociateCenBandwidthPackageRequest& request) const; diff --git a/cbn/include/alibabacloud/cbn/model/CreateCenBandwidthPackageRequest.h b/cbn/include/alibabacloud/cbn/model/CreateCenBandwidthPackageRequest.h index aa312b086..5fa97b97a 100644 --- a/cbn/include/alibabacloud/cbn/model/CreateCenBandwidthPackageRequest.h +++ b/cbn/include/alibabacloud/cbn/model/CreateCenBandwidthPackageRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud void setClientToken(const std::string& clientToken); std::string getDescription()const; void setDescription(const std::string& description); + int getAutoRenewDuration()const; + void setAutoRenewDuration(int autoRenewDuration); std::string getBandwidthPackageChargeType()const; void setBandwidthPackageChargeType(const std::string& bandwidthPackageChargeType); std::string getGeographicRegionBId()const; @@ -59,6 +61,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); + bool getAutoRenew()const; + void setAutoRenew(bool autoRenew); std::string getName()const; void setName(const std::string& name); std::string getPricingCycle()const; @@ -68,6 +72,7 @@ namespace AlibabaCloud long resourceOwnerId_; std::string clientToken_; std::string description_; + int autoRenewDuration_; std::string bandwidthPackageChargeType_; std::string geographicRegionBId_; int period_; @@ -77,6 +82,7 @@ namespace AlibabaCloud int bandwidth_; std::string ownerAccount_; long ownerId_; + bool autoRenew_; std::string name_; std::string pricingCycle_; diff --git a/cbn/include/alibabacloud/cbn/model/CreateCenChildInstanceRouteEntryToCenRequest.h b/cbn/include/alibabacloud/cbn/model/CreateCenChildInstanceRouteEntryToCenRequest.h new file mode 100644 index 000000000..0223cf41e --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/CreateCenChildInstanceRouteEntryToCenRequest.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_CREATECENCHILDINSTANCEROUTEENTRYTOCENREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_CREATECENCHILDINSTANCEROUTEENTRYTOCENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT CreateCenChildInstanceRouteEntryToCenRequest : public RpcServiceRequest + { + + public: + CreateCenChildInstanceRouteEntryToCenRequest(); + ~CreateCenChildInstanceRouteEntryToCenRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getNextHopGatewayZoneId()const; + void setNextHopGatewayZoneId(const std::string& nextHopGatewayZoneId); + std::string getChildInstanceRegionId()const; + void setChildInstanceRegionId(const std::string& childInstanceRegionId); + std::string getRouteTableId()const; + void setRouteTableId(const std::string& routeTableId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDestinationCidrBlock()const; + void setDestinationCidrBlock(const std::string& destinationCidrBlock); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getChildInstanceType()const; + void setChildInstanceType(const std::string& childInstanceType); + std::string getChildInstanceId()const; + void setChildInstanceId(const std::string& childInstanceId); + long getChildInstanceAliUid()const; + void setChildInstanceAliUid(long childInstanceAliUid); + + private: + long resourceOwnerId_; + std::string cenId_; + std::string clientToken_; + std::string nextHopGatewayZoneId_; + std::string childInstanceRegionId_; + std::string routeTableId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string destinationCidrBlock_; + long ownerId_; + std::string childInstanceType_; + std::string childInstanceId_; + long childInstanceAliUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_CREATECENCHILDINSTANCEROUTEENTRYTOCENREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/CreateCenChildInstanceRouteEntryToCenResult.h b/cbn/include/alibabacloud/cbn/model/CreateCenChildInstanceRouteEntryToCenResult.h new file mode 100644 index 000000000..a1961f115 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/CreateCenChildInstanceRouteEntryToCenResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_CREATECENCHILDINSTANCEROUTEENTRYTOCENRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_CREATECENCHILDINSTANCEROUTEENTRYTOCENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT CreateCenChildInstanceRouteEntryToCenResult : public ServiceResult + { + public: + + + CreateCenChildInstanceRouteEntryToCenResult(); + explicit CreateCenChildInstanceRouteEntryToCenResult(const std::string &payload); + ~CreateCenChildInstanceRouteEntryToCenResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_CREATECENCHILDINSTANCEROUTEENTRYTOCENRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/CreateCenRequest.h b/cbn/include/alibabacloud/cbn/model/CreateCenRequest.h index 25c66dc94..1c5e03449 100644 --- a/cbn/include/alibabacloud/cbn/model/CreateCenRequest.h +++ b/cbn/include/alibabacloud/cbn/model/CreateCenRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setResourceOwnerId(long resourceOwnerId); std::string getClientToken()const; void setClientToken(const std::string& clientToken); + std::string getIpv6Level()const; + void setIpv6Level(const std::string& ipv6Level); std::string getDescription()const; void setDescription(const std::string& description); std::string getResourceOwnerAccount()const; @@ -55,6 +57,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; std::string clientToken_; + std::string ipv6Level_; std::string description_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/cbn/include/alibabacloud/cbn/model/CreateCenRouteMapRequest.h b/cbn/include/alibabacloud/cbn/model/CreateCenRouteMapRequest.h index d63da1360..5036aed2e 100644 --- a/cbn/include/alibabacloud/cbn/model/CreateCenRouteMapRequest.h +++ b/cbn/include/alibabacloud/cbn/model/CreateCenRouteMapRequest.h @@ -41,14 +41,22 @@ namespace AlibabaCloud void setCommunityMatchMode(const std::string& communityMatchMode); std::string getMapResult()const; void setMapResult(const std::string& mapResult); + std::vector getDestinationRegionIds()const; + void setDestinationRegionIds(const std::vector& destinationRegionIds); int getNextPriority()const; void setNextPriority(int nextPriority); std::vector getDestinationCidrBlocks()const; void setDestinationCidrBlocks(const std::vector& destinationCidrBlocks); + bool getSystemPolicy()const; + void setSystemPolicy(bool systemPolicy); + std::vector getOriginalRouteTableIds()const; + void setOriginalRouteTableIds(const std::vector& originalRouteTableIds); std::vector getSourceInstanceIds()const; void setSourceInstanceIds(const std::vector& sourceInstanceIds); std::vector getSourceRegionIds()const; void setSourceRegionIds(const std::vector& sourceRegionIds); + std::string getGatewayZoneId()const; + void setGatewayZoneId(const std::string& gatewayZoneId); std::vector getMatchAsns()const; void setMatchAsns(const std::vector& matchAsns); int getPreference()const; @@ -69,6 +77,8 @@ namespace AlibabaCloud void setOperateCommunitySet(const std::vector& operateCommunitySet); std::vector getRouteTypes()const; void setRouteTypes(const std::vector& routeTypes); + std::string getMatchAddressType()const; + void setMatchAddressType(const std::string& matchAddressType); std::string getCidrMatchMode()const; void setCidrMatchMode(const std::string& cidrMatchMode); std::string getCenId()const; @@ -79,6 +89,8 @@ namespace AlibabaCloud void setSourceInstanceIdsReverseMatch(bool sourceInstanceIdsReverseMatch); std::vector getDestinationRouteTableIds()const; void setDestinationRouteTableIds(const std::vector& destinationRouteTableIds); + std::vector getSourceZoneIds()const; + void setSourceZoneIds(const std::vector& sourceZoneIds); std::string getTransmitDirection()const; void setTransmitDirection(const std::string& transmitDirection); std::vector getDestinationInstanceIds()const; @@ -102,10 +114,14 @@ namespace AlibabaCloud long resourceOwnerId_; std::string communityMatchMode_; std::string mapResult_; + std::vector destinationRegionIds_; int nextPriority_; std::vector destinationCidrBlocks_; + bool systemPolicy_; + std::vector originalRouteTableIds_; std::vector sourceInstanceIds_; std::vector sourceRegionIds_; + std::string gatewayZoneId_; std::vector matchAsns_; int preference_; long ownerId_; @@ -116,11 +132,13 @@ namespace AlibabaCloud std::string communityOperateMode_; std::vector operateCommunitySet_; std::vector routeTypes_; + std::string matchAddressType_; std::string cidrMatchMode_; std::string cenId_; std::string description_; bool sourceInstanceIdsReverseMatch_; std::vector destinationRouteTableIds_; + std::vector sourceZoneIds_; std::string transmitDirection_; std::vector destinationInstanceIds_; std::string resourceOwnerAccount_; diff --git a/cbn/include/alibabacloud/cbn/model/DeleteCenChildInstanceRouteEntryToCenRequest.h b/cbn/include/alibabacloud/cbn/model/DeleteCenChildInstanceRouteEntryToCenRequest.h new file mode 100644 index 000000000..d386cb790 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DeleteCenChildInstanceRouteEntryToCenRequest.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DELETECENCHILDINSTANCEROUTEENTRYTOCENREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DELETECENCHILDINSTANCEROUTEENTRYTOCENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DeleteCenChildInstanceRouteEntryToCenRequest : public RpcServiceRequest + { + + public: + DeleteCenChildInstanceRouteEntryToCenRequest(); + ~DeleteCenChildInstanceRouteEntryToCenRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getChildInstanceRegionId()const; + void setChildInstanceRegionId(const std::string& childInstanceRegionId); + std::string getRouteTableId()const; + void setRouteTableId(const std::string& routeTableId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDestinationCidrBlock()const; + void setDestinationCidrBlock(const std::string& destinationCidrBlock); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getChildInstanceType()const; + void setChildInstanceType(const std::string& childInstanceType); + std::string getChildInstanceId()const; + void setChildInstanceId(const std::string& childInstanceId); + long getChildInstanceAliUid()const; + void setChildInstanceAliUid(long childInstanceAliUid); + + private: + long resourceOwnerId_; + std::string cenId_; + std::string childInstanceRegionId_; + std::string routeTableId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string destinationCidrBlock_; + long ownerId_; + std::string childInstanceType_; + std::string childInstanceId_; + long childInstanceAliUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DELETECENCHILDINSTANCEROUTEENTRYTOCENREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DeleteCenChildInstanceRouteEntryToCenResult.h b/cbn/include/alibabacloud/cbn/model/DeleteCenChildInstanceRouteEntryToCenResult.h new file mode 100644 index 000000000..f709dac75 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DeleteCenChildInstanceRouteEntryToCenResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DELETECENCHILDINSTANCEROUTEENTRYTOCENRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DELETECENCHILDINSTANCEROUTEENTRYTOCENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DeleteCenChildInstanceRouteEntryToCenResult : public ServiceResult + { + public: + + + DeleteCenChildInstanceRouteEntryToCenResult(); + explicit DeleteCenChildInstanceRouteEntryToCenResult(const std::string &payload); + ~DeleteCenChildInstanceRouteEntryToCenResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DELETECENCHILDINSTANCEROUTEENTRYTOCENRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeRequest.h index f77ada70d..6e5918eca 100644 --- a/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeRequest.h +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeRequest.h @@ -35,6 +35,8 @@ namespace AlibabaCloud DescribeCenAttachedChildInstanceAttributeRequest(); ~DescribeCenAttachedChildInstanceAttributeRequest(); + bool getIncludeRouteTable()const; + void setIncludeRouteTable(bool includeRouteTable); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getCenId()const; @@ -53,6 +55,7 @@ namespace AlibabaCloud void setChildInstanceId(const std::string& childInstanceId); private: + bool includeRouteTable_; long resourceOwnerId_; std::string cenId_; std::string childInstanceRegionId_; diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeResult.h index 75bde2906..663b70cbe 100644 --- a/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeResult.h +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeResult.h @@ -32,13 +32,20 @@ namespace AlibabaCloud class ALIBABACLOUD_CBN_EXPORT DescribeCenAttachedChildInstanceAttributeResult : public ServiceResult { public: + struct ChildInstanceRouteTable + { + std::string routeTableId; + std::string routeTableType; + }; DescribeCenAttachedChildInstanceAttributeResult(); explicit DescribeCenAttachedChildInstanceAttributeResult(const std::string &payload); ~DescribeCenAttachedChildInstanceAttributeResult(); std::string getStatus()const; + std::vector getChildInstanceRouteTables()const; std::string getChildInstanceType()const; + std::string getIpv6StatusInCen()const; std::string getCenId()const; std::string getChildInstanceAttachTime()const; long getChildInstanceOwnerId()const; @@ -50,7 +57,9 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string status_; + std::vector childInstanceRouteTables_; std::string childInstanceType_; + std::string ipv6StatusInCen_; std::string cenId_; std::string childInstanceAttachTime_; long childInstanceOwnerId_; diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesRequest.h index 2e9ba9713..5bc183a70 100644 --- a/cbn/include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesRequest.h +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesRequest.h @@ -31,6 +31,11 @@ namespace AlibabaCloud class ALIBABACLOUD_CBN_EXPORT DescribeCenBandwidthPackagesRequest : public RpcServiceRequest { public: + struct Tag + { + std::string value; + std::string key; + }; struct Filter { std::vector value; @@ -51,6 +56,8 @@ namespace AlibabaCloud void setIsOrKey(bool isOrKey); int getPageSize()const; void setPageSize(int pageSize); + std::vector getTag()const; + void setTag(const std::vector& tag); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; @@ -66,6 +73,7 @@ namespace AlibabaCloud int pageNumber_; bool isOrKey_; int pageSize_; + std::vector tag_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesResult.h index 110109ede..f46da3f1b 100644 --- a/cbn/include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesResult.h +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesResult.h @@ -41,6 +41,11 @@ namespace AlibabaCloud std::string bandwidthLimit; std::string localRegionId; }; + struct Tag + { + std::string value; + std::string key; + }; std::string status; std::string description; std::string geographicSpanId; @@ -63,6 +68,7 @@ namespace AlibabaCloud std::string reservationActiveTime; std::string cenBandwidthPackageId; std::string reservationBandwidth; + std::vector tags; }; diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenChildInstanceRouteEntriesRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeCenChildInstanceRouteEntriesRequest.h index dd828f9e0..69391a98d 100644 --- a/cbn/include/alibabacloud/cbn/model/DescribeCenChildInstanceRouteEntriesRequest.h +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenChildInstanceRouteEntriesRequest.h @@ -49,12 +49,16 @@ namespace AlibabaCloud void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); + std::string getDestinationCidrBlock()const; + void setDestinationCidrBlock(const std::string& destinationCidrBlock); long getOwnerId()const; void setOwnerId(long ownerId); std::string getChildInstanceType()const; void setChildInstanceType(const std::string& childInstanceType); std::string getChildInstanceId()const; void setChildInstanceId(const std::string& childInstanceId); + std::string getChildInstanceRouteTableId()const; + void setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId); std::string getStatus()const; void setStatus(const std::string& status); @@ -66,9 +70,11 @@ namespace AlibabaCloud std::string childInstanceRegionId_; std::string resourceOwnerAccount_; std::string ownerAccount_; + std::string destinationCidrBlock_; long ownerId_; std::string childInstanceType_; std::string childInstanceId_; + std::string childInstanceRouteTableId_; std::string status_; }; diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenInterRegionBandwidthLimitsResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCenInterRegionBandwidthLimitsResult.h index 5dd8052c4..848de81b9 100644 --- a/cbn/include/alibabacloud/cbn/model/DescribeCenInterRegionBandwidthLimitsResult.h +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenInterRegionBandwidthLimitsResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct CenInterRegionBandwidthLimit { std::string status; + std::string transitRouterAttachmentId; std::string geographicSpanId; std::string oppositeRegionId; std::string cenId; diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesRequest.h index 9137cdef0..0f61121bb 100644 --- a/cbn/include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesRequest.h +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesRequest.h @@ -47,6 +47,8 @@ namespace AlibabaCloud void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); + std::string getDestinationCidrBlock()const; + void setDestinationCidrBlock(const std::string& destinationCidrBlock); long getOwnerId()const; void setOwnerId(long ownerId); std::string getCenRegionId()const; @@ -61,6 +63,7 @@ namespace AlibabaCloud int pageSize_; std::string resourceOwnerAccount_; std::string ownerAccount_; + std::string destinationCidrBlock_; long ownerId_; std::string cenRegionId_; std::string status_; diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenRouteMapsRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeCenRouteMapsRequest.h index 4e673bfee..48c726f80 100644 --- a/cbn/include/alibabacloud/cbn/model/DescribeCenRouteMapsRequest.h +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenRouteMapsRequest.h @@ -30,6 +30,12 @@ namespace AlibabaCloud { class ALIBABACLOUD_CBN_EXPORT DescribeCenRouteMapsRequest : public RpcServiceRequest { + public: + struct Filter + { + std::vector value; + std::string key; + }; public: DescribeCenRouteMapsRequest(); @@ -53,6 +59,8 @@ namespace AlibabaCloud void setRouteMapId(const std::string& routeMapId); long getOwnerId()const; void setOwnerId(long ownerId); + std::vector getFilter()const; + void setFilter(const std::vector& filter); std::string getCenRegionId()const; void setCenRegionId(const std::string& cenRegionId); @@ -66,6 +74,7 @@ namespace AlibabaCloud std::string ownerAccount_; std::string routeMapId_; long ownerId_; + std::vector filter_; std::string cenRegionId_; }; diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenRouteMapsResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCenRouteMapsResult.h index 3fff2a2ad..f30e81f42 100644 --- a/cbn/include/alibabacloud/cbn/model/DescribeCenRouteMapsResult.h +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenRouteMapsResult.h @@ -34,6 +34,7 @@ namespace AlibabaCloud public: struct RouteMap { + std::string matchAddressType; std::string description; bool sourceInstanceIdsReverseMatch; std::string transmitDirection; @@ -54,13 +55,17 @@ namespace AlibabaCloud std::string asPathMatchMode; std::string mapResult; std::string cidrMatchMode; + std::vector originalRouteTableIds; std::vector routeTypes; + std::string gatewayZoneId; int preference; std::string communityOperateMode; std::string cenId; + std::vector destinationRegionIds; int nextPriority; std::vector prependAsPath; std::string communityMatchMode; + std::vector srcZoneIds; std::vector matchAsns; std::vector sourceRegionIds; }; diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenVbrHealthCheckResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCenVbrHealthCheckResult.h index 6969f2da8..ae0a087ca 100644 --- a/cbn/include/alibabacloud/cbn/model/DescribeCenVbrHealthCheckResult.h +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenVbrHealthCheckResult.h @@ -34,6 +34,7 @@ namespace AlibabaCloud public: struct VbrHealthCheck { + std::string vbrInstanceRegionId; std::string linkStatus; int healthCheckInterval; std::string vbrInstanceId; diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCensResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCensResult.h index b84bed9f4..9f0943f02 100644 --- a/cbn/include/alibabacloud/cbn/model/DescribeCensResult.h +++ b/cbn/include/alibabacloud/cbn/model/DescribeCensResult.h @@ -42,6 +42,7 @@ namespace AlibabaCloud std::string status; std::string protectionLevel; std::string description; + std::string ipv6Level; std::string cenId; std::string creationTime; std::vector cenBandwidthPackageIds; diff --git a/cbn/include/alibabacloud/cbn/model/DescribeChildInstanceRegionsRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeChildInstanceRegionsRequest.h index b2b66b7a7..62251bae0 100644 --- a/cbn/include/alibabacloud/cbn/model/DescribeChildInstanceRegionsRequest.h +++ b/cbn/include/alibabacloud/cbn/model/DescribeChildInstanceRegionsRequest.h @@ -37,21 +37,24 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + std::string getProductType()const; + void setProductType(const std::string& productType); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getProductType()const; - void setProductType(const std::string& productType); + long getChildInstanceOwnerId()const; + void setChildInstanceOwnerId(long childInstanceOwnerId); private: long resourceOwnerId_; + std::string productType_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - std::string productType_; + long childInstanceOwnerId_; }; } diff --git a/cbn/include/alibabacloud/cbn/model/ModifyCenAttributeRequest.h b/cbn/include/alibabacloud/cbn/model/ModifyCenAttributeRequest.h index 03368d1ef..296d4cdbe 100644 --- a/cbn/include/alibabacloud/cbn/model/ModifyCenAttributeRequest.h +++ b/cbn/include/alibabacloud/cbn/model/ModifyCenAttributeRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setResourceOwnerId(long resourceOwnerId); std::string getCenId()const; void setCenId(const std::string& cenId); + std::string getIpv6Level()const; + void setIpv6Level(const std::string& ipv6Level); std::string getDescription()const; void setDescription(const std::string& description); std::string getResourceOwnerAccount()const; @@ -55,6 +57,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; std::string cenId_; + std::string ipv6Level_; std::string description_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/cbn/include/alibabacloud/cbn/model/ModifyCenRouteMapRequest.h b/cbn/include/alibabacloud/cbn/model/ModifyCenRouteMapRequest.h index e337173ad..1610130a5 100644 --- a/cbn/include/alibabacloud/cbn/model/ModifyCenRouteMapRequest.h +++ b/cbn/include/alibabacloud/cbn/model/ModifyCenRouteMapRequest.h @@ -41,14 +41,20 @@ namespace AlibabaCloud void setCommunityMatchMode(const std::string& communityMatchMode); std::string getMapResult()const; void setMapResult(const std::string& mapResult); + std::vector getDestinationRegionIds()const; + void setDestinationRegionIds(const std::vector& destinationRegionIds); int getNextPriority()const; void setNextPriority(int nextPriority); std::vector getDestinationCidrBlocks()const; void setDestinationCidrBlocks(const std::vector& destinationCidrBlocks); + std::vector getOriginalRouteTableIds()const; + void setOriginalRouteTableIds(const std::vector& originalRouteTableIds); std::vector getSourceInstanceIds()const; void setSourceInstanceIds(const std::vector& sourceInstanceIds); std::vector getSourceRegionIds()const; void setSourceRegionIds(const std::vector& sourceRegionIds); + std::string getGatewayZoneId()const; + void setGatewayZoneId(const std::string& gatewayZoneId); std::vector getMatchAsns()const; void setMatchAsns(const std::vector& matchAsns); int getPreference()const; @@ -69,6 +75,8 @@ namespace AlibabaCloud void setOperateCommunitySet(const std::vector& operateCommunitySet); std::vector getRouteTypes()const; void setRouteTypes(const std::vector& routeTypes); + std::string getMatchAddressType()const; + void setMatchAddressType(const std::string& matchAddressType); std::string getCidrMatchMode()const; void setCidrMatchMode(const std::string& cidrMatchMode); std::string getCenId()const; @@ -79,6 +87,8 @@ namespace AlibabaCloud void setSourceInstanceIdsReverseMatch(bool sourceInstanceIdsReverseMatch); std::vector getDestinationRouteTableIds()const; void setDestinationRouteTableIds(const std::vector& destinationRouteTableIds); + std::vector getSourceZoneIds()const; + void setSourceZoneIds(const std::vector& sourceZoneIds); std::vector getDestinationInstanceIds()const; void setDestinationInstanceIds(const std::vector& destinationInstanceIds); std::string getResourceOwnerAccount()const; @@ -102,10 +112,13 @@ namespace AlibabaCloud long resourceOwnerId_; std::string communityMatchMode_; std::string mapResult_; + std::vector destinationRegionIds_; int nextPriority_; std::vector destinationCidrBlocks_; + std::vector originalRouteTableIds_; std::vector sourceInstanceIds_; std::vector sourceRegionIds_; + std::string gatewayZoneId_; std::vector matchAsns_; int preference_; long ownerId_; @@ -116,11 +129,13 @@ namespace AlibabaCloud std::string communityOperateMode_; std::vector operateCommunitySet_; std::vector routeTypes_; + std::string matchAddressType_; std::string cidrMatchMode_; std::string cenId_; std::string description_; bool sourceInstanceIdsReverseMatch_; std::vector destinationRouteTableIds_; + std::vector sourceZoneIds_; std::vector destinationInstanceIds_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/cbn/include/alibabacloud/cbn/model/TempUpgradeCenBandwidthPackageSpecRequest.h b/cbn/include/alibabacloud/cbn/model/TempUpgradeCenBandwidthPackageSpecRequest.h new file mode 100644 index 000000000..39d2b2598 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/TempUpgradeCenBandwidthPackageSpecRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_TEMPUPGRADECENBANDWIDTHPACKAGESPECREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_TEMPUPGRADECENBANDWIDTHPACKAGESPECREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT TempUpgradeCenBandwidthPackageSpecRequest : public RpcServiceRequest + { + + public: + TempUpgradeCenBandwidthPackageSpecRequest(); + ~TempUpgradeCenBandwidthPackageSpecRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + int getBandwidth()const; + void setBandwidth(int bandwidth); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getCenBandwidthPackageId()const; + void setCenBandwidthPackageId(const std::string& cenBandwidthPackageId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + std::string cenBandwidthPackageId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_TEMPUPGRADECENBANDWIDTHPACKAGESPECREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/TempUpgradeCenBandwidthPackageSpecResult.h b/cbn/include/alibabacloud/cbn/model/TempUpgradeCenBandwidthPackageSpecResult.h new file mode 100644 index 000000000..faf963d9b --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/TempUpgradeCenBandwidthPackageSpecResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_TEMPUPGRADECENBANDWIDTHPACKAGESPECRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_TEMPUPGRADECENBANDWIDTHPACKAGESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT TempUpgradeCenBandwidthPackageSpecResult : public ServiceResult + { + public: + + + TempUpgradeCenBandwidthPackageSpecResult(); + explicit TempUpgradeCenBandwidthPackageSpecResult(const std::string &payload); + ~TempUpgradeCenBandwidthPackageSpecResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_TEMPUPGRADECENBANDWIDTHPACKAGESPECRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/UntagResourcesRequest.h b/cbn/include/alibabacloud/cbn/model/UntagResourcesRequest.h index fe30c2bce..516dd0b55 100644 --- a/cbn/include/alibabacloud/cbn/model/UntagResourcesRequest.h +++ b/cbn/include/alibabacloud/cbn/model/UntagResourcesRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + bool getAll()const; + void setAll(bool all); std::vector getResourceId()const; void setResourceId(const std::vector& resourceId); std::string getResourceOwnerAccount()const; @@ -52,6 +54,7 @@ namespace AlibabaCloud private: long resourceOwnerId_; + bool all_; std::vector resourceId_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/cbn/src/CbnClient.cc b/cbn/src/CbnClient.cc index 99496c581..161970cbc 100644 --- a/cbn/src/CbnClient.cc +++ b/cbn/src/CbnClient.cc @@ -231,6 +231,42 @@ CbnClient::CreateCenBandwidthPackageOutcomeCallable CbnClient::createCenBandwidt return task->get_future(); } +CbnClient::CreateCenChildInstanceRouteEntryToCenOutcome CbnClient::createCenChildInstanceRouteEntryToCen(const CreateCenChildInstanceRouteEntryToCenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCenChildInstanceRouteEntryToCenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCenChildInstanceRouteEntryToCenOutcome(CreateCenChildInstanceRouteEntryToCenResult(outcome.result())); + else + return CreateCenChildInstanceRouteEntryToCenOutcome(outcome.error()); +} + +void CbnClient::createCenChildInstanceRouteEntryToCenAsync(const CreateCenChildInstanceRouteEntryToCenRequest& request, const CreateCenChildInstanceRouteEntryToCenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCenChildInstanceRouteEntryToCen(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::CreateCenChildInstanceRouteEntryToCenOutcomeCallable CbnClient::createCenChildInstanceRouteEntryToCenCallable(const CreateCenChildInstanceRouteEntryToCenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCenChildInstanceRouteEntryToCen(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CbnClient::CreateCenRouteMapOutcome CbnClient::createCenRouteMap(const CreateCenRouteMapRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +447,42 @@ CbnClient::DeleteCenBandwidthPackageOutcomeCallable CbnClient::deleteCenBandwidt return task->get_future(); } +CbnClient::DeleteCenChildInstanceRouteEntryToCenOutcome CbnClient::deleteCenChildInstanceRouteEntryToCen(const DeleteCenChildInstanceRouteEntryToCenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCenChildInstanceRouteEntryToCenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCenChildInstanceRouteEntryToCenOutcome(DeleteCenChildInstanceRouteEntryToCenResult(outcome.result())); + else + return DeleteCenChildInstanceRouteEntryToCenOutcome(outcome.error()); +} + +void CbnClient::deleteCenChildInstanceRouteEntryToCenAsync(const DeleteCenChildInstanceRouteEntryToCenRequest& request, const DeleteCenChildInstanceRouteEntryToCenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCenChildInstanceRouteEntryToCen(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DeleteCenChildInstanceRouteEntryToCenOutcomeCallable CbnClient::deleteCenChildInstanceRouteEntryToCenCallable(const DeleteCenChildInstanceRouteEntryToCenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCenChildInstanceRouteEntryToCen(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CbnClient::DeleteCenRouteMapOutcome CbnClient::deleteCenRouteMap(const DeleteCenRouteMapRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1707,6 +1779,42 @@ CbnClient::TagResourcesOutcomeCallable CbnClient::tagResourcesCallable(const Tag return task->get_future(); } +CbnClient::TempUpgradeCenBandwidthPackageSpecOutcome CbnClient::tempUpgradeCenBandwidthPackageSpec(const TempUpgradeCenBandwidthPackageSpecRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TempUpgradeCenBandwidthPackageSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TempUpgradeCenBandwidthPackageSpecOutcome(TempUpgradeCenBandwidthPackageSpecResult(outcome.result())); + else + return TempUpgradeCenBandwidthPackageSpecOutcome(outcome.error()); +} + +void CbnClient::tempUpgradeCenBandwidthPackageSpecAsync(const TempUpgradeCenBandwidthPackageSpecRequest& request, const TempUpgradeCenBandwidthPackageSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tempUpgradeCenBandwidthPackageSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::TempUpgradeCenBandwidthPackageSpecOutcomeCallable CbnClient::tempUpgradeCenBandwidthPackageSpecCallable(const TempUpgradeCenBandwidthPackageSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tempUpgradeCenBandwidthPackageSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CbnClient::UnassociateCenBandwidthPackageOutcome CbnClient::unassociateCenBandwidthPackage(const UnassociateCenBandwidthPackageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/cbn/src/model/CreateCenBandwidthPackageRequest.cc b/cbn/src/model/CreateCenBandwidthPackageRequest.cc index a80b9e45c..992f6fb8b 100644 --- a/cbn/src/model/CreateCenBandwidthPackageRequest.cc +++ b/cbn/src/model/CreateCenBandwidthPackageRequest.cc @@ -60,6 +60,17 @@ void CreateCenBandwidthPackageRequest::setDescription(const std::string& descrip setParameter("Description", description); } +int CreateCenBandwidthPackageRequest::getAutoRenewDuration()const +{ + return autoRenewDuration_; +} + +void CreateCenBandwidthPackageRequest::setAutoRenewDuration(int autoRenewDuration) +{ + autoRenewDuration_ = autoRenewDuration; + setParameter("AutoRenewDuration", std::to_string(autoRenewDuration)); +} + std::string CreateCenBandwidthPackageRequest::getBandwidthPackageChargeType()const { return bandwidthPackageChargeType_; @@ -159,6 +170,17 @@ void CreateCenBandwidthPackageRequest::setOwnerId(long ownerId) setParameter("OwnerId", std::to_string(ownerId)); } +bool CreateCenBandwidthPackageRequest::getAutoRenew()const +{ + return autoRenew_; +} + +void CreateCenBandwidthPackageRequest::setAutoRenew(bool autoRenew) +{ + autoRenew_ = autoRenew; + setParameter("AutoRenew", autoRenew ? "true" : "false"); +} + std::string CreateCenBandwidthPackageRequest::getName()const { return name_; diff --git a/cbn/src/model/CreateCenChildInstanceRouteEntryToCenRequest.cc b/cbn/src/model/CreateCenChildInstanceRouteEntryToCenRequest.cc new file mode 100644 index 000000000..dcb277384 --- /dev/null +++ b/cbn/src/model/CreateCenChildInstanceRouteEntryToCenRequest.cc @@ -0,0 +1,172 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::CreateCenChildInstanceRouteEntryToCenRequest; + +CreateCenChildInstanceRouteEntryToCenRequest::CreateCenChildInstanceRouteEntryToCenRequest() : + RpcServiceRequest("cbn", "2017-09-12", "CreateCenChildInstanceRouteEntryToCen") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateCenChildInstanceRouteEntryToCenRequest::~CreateCenChildInstanceRouteEntryToCenRequest() +{} + +long CreateCenChildInstanceRouteEntryToCenRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateCenChildInstanceRouteEntryToCenRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateCenChildInstanceRouteEntryToCenRequest::getCenId()const +{ + return cenId_; +} + +void CreateCenChildInstanceRouteEntryToCenRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string CreateCenChildInstanceRouteEntryToCenRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateCenChildInstanceRouteEntryToCenRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateCenChildInstanceRouteEntryToCenRequest::getNextHopGatewayZoneId()const +{ + return nextHopGatewayZoneId_; +} + +void CreateCenChildInstanceRouteEntryToCenRequest::setNextHopGatewayZoneId(const std::string& nextHopGatewayZoneId) +{ + nextHopGatewayZoneId_ = nextHopGatewayZoneId; + setParameter("NextHopGatewayZoneId", nextHopGatewayZoneId); +} + +std::string CreateCenChildInstanceRouteEntryToCenRequest::getChildInstanceRegionId()const +{ + return childInstanceRegionId_; +} + +void CreateCenChildInstanceRouteEntryToCenRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId) +{ + childInstanceRegionId_ = childInstanceRegionId; + setParameter("ChildInstanceRegionId", childInstanceRegionId); +} + +std::string CreateCenChildInstanceRouteEntryToCenRequest::getRouteTableId()const +{ + return routeTableId_; +} + +void CreateCenChildInstanceRouteEntryToCenRequest::setRouteTableId(const std::string& routeTableId) +{ + routeTableId_ = routeTableId; + setParameter("RouteTableId", routeTableId); +} + +std::string CreateCenChildInstanceRouteEntryToCenRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateCenChildInstanceRouteEntryToCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateCenChildInstanceRouteEntryToCenRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateCenChildInstanceRouteEntryToCenRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateCenChildInstanceRouteEntryToCenRequest::getDestinationCidrBlock()const +{ + return destinationCidrBlock_; +} + +void CreateCenChildInstanceRouteEntryToCenRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) +{ + destinationCidrBlock_ = destinationCidrBlock; + setParameter("DestinationCidrBlock", destinationCidrBlock); +} + +long CreateCenChildInstanceRouteEntryToCenRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateCenChildInstanceRouteEntryToCenRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateCenChildInstanceRouteEntryToCenRequest::getChildInstanceType()const +{ + return childInstanceType_; +} + +void CreateCenChildInstanceRouteEntryToCenRequest::setChildInstanceType(const std::string& childInstanceType) +{ + childInstanceType_ = childInstanceType; + setParameter("ChildInstanceType", childInstanceType); +} + +std::string CreateCenChildInstanceRouteEntryToCenRequest::getChildInstanceId()const +{ + return childInstanceId_; +} + +void CreateCenChildInstanceRouteEntryToCenRequest::setChildInstanceId(const std::string& childInstanceId) +{ + childInstanceId_ = childInstanceId; + setParameter("ChildInstanceId", childInstanceId); +} + +long CreateCenChildInstanceRouteEntryToCenRequest::getChildInstanceAliUid()const +{ + return childInstanceAliUid_; +} + +void CreateCenChildInstanceRouteEntryToCenRequest::setChildInstanceAliUid(long childInstanceAliUid) +{ + childInstanceAliUid_ = childInstanceAliUid; + setParameter("ChildInstanceAliUid", std::to_string(childInstanceAliUid)); +} + diff --git a/cbn/src/model/CreateCenChildInstanceRouteEntryToCenResult.cc b/cbn/src/model/CreateCenChildInstanceRouteEntryToCenResult.cc new file mode 100644 index 000000000..3b27319a2 --- /dev/null +++ b/cbn/src/model/CreateCenChildInstanceRouteEntryToCenResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +CreateCenChildInstanceRouteEntryToCenResult::CreateCenChildInstanceRouteEntryToCenResult() : + ServiceResult() +{} + +CreateCenChildInstanceRouteEntryToCenResult::CreateCenChildInstanceRouteEntryToCenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCenChildInstanceRouteEntryToCenResult::~CreateCenChildInstanceRouteEntryToCenResult() +{} + +void CreateCenChildInstanceRouteEntryToCenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/CreateCenRequest.cc b/cbn/src/model/CreateCenRequest.cc index 819112db4..01771be91 100644 --- a/cbn/src/model/CreateCenRequest.cc +++ b/cbn/src/model/CreateCenRequest.cc @@ -49,6 +49,17 @@ void CreateCenRequest::setClientToken(const std::string& clientToken) setParameter("ClientToken", clientToken); } +std::string CreateCenRequest::getIpv6Level()const +{ + return ipv6Level_; +} + +void CreateCenRequest::setIpv6Level(const std::string& ipv6Level) +{ + ipv6Level_ = ipv6Level; + setParameter("Ipv6Level", ipv6Level); +} + std::string CreateCenRequest::getDescription()const { return description_; diff --git a/cbn/src/model/CreateCenRouteMapRequest.cc b/cbn/src/model/CreateCenRouteMapRequest.cc index aab91b3ba..02cd80b8f 100644 --- a/cbn/src/model/CreateCenRouteMapRequest.cc +++ b/cbn/src/model/CreateCenRouteMapRequest.cc @@ -60,6 +60,19 @@ void CreateCenRouteMapRequest::setMapResult(const std::string& mapResult) setParameter("MapResult", mapResult); } +std::vector CreateCenRouteMapRequest::getDestinationRegionIds()const +{ + return destinationRegionIds_; +} + +void CreateCenRouteMapRequest::setDestinationRegionIds(const std::vector& destinationRegionIds) +{ + destinationRegionIds_ = destinationRegionIds; + for(int dep1 = 0; dep1!= destinationRegionIds.size(); dep1++) { + setParameter("DestinationRegionIds."+ std::to_string(dep1), destinationRegionIds.at(dep1)); + } +} + int CreateCenRouteMapRequest::getNextPriority()const { return nextPriority_; @@ -84,6 +97,30 @@ void CreateCenRouteMapRequest::setDestinationCidrBlocks(const std::vector CreateCenRouteMapRequest::getOriginalRouteTableIds()const +{ + return originalRouteTableIds_; +} + +void CreateCenRouteMapRequest::setOriginalRouteTableIds(const std::vector& originalRouteTableIds) +{ + originalRouteTableIds_ = originalRouteTableIds; + for(int dep1 = 0; dep1!= originalRouteTableIds.size(); dep1++) { + setParameter("OriginalRouteTableIds."+ std::to_string(dep1), originalRouteTableIds.at(dep1)); + } +} + std::vector CreateCenRouteMapRequest::getSourceInstanceIds()const { return sourceInstanceIds_; @@ -110,6 +147,17 @@ void CreateCenRouteMapRequest::setSourceRegionIds(const std::vector } } +std::string CreateCenRouteMapRequest::getGatewayZoneId()const +{ + return gatewayZoneId_; +} + +void CreateCenRouteMapRequest::setGatewayZoneId(const std::string& gatewayZoneId) +{ + gatewayZoneId_ = gatewayZoneId; + setParameter("GatewayZoneId", gatewayZoneId); +} + std::vector CreateCenRouteMapRequest::getMatchAsns()const { return matchAsns_; @@ -232,6 +280,17 @@ void CreateCenRouteMapRequest::setRouteTypes(const std::vector& rou } } +std::string CreateCenRouteMapRequest::getMatchAddressType()const +{ + return matchAddressType_; +} + +void CreateCenRouteMapRequest::setMatchAddressType(const std::string& matchAddressType) +{ + matchAddressType_ = matchAddressType; + setParameter("MatchAddressType", matchAddressType); +} + std::string CreateCenRouteMapRequest::getCidrMatchMode()const { return cidrMatchMode_; @@ -289,6 +348,19 @@ void CreateCenRouteMapRequest::setDestinationRouteTableIds(const std::vector CreateCenRouteMapRequest::getSourceZoneIds()const +{ + return sourceZoneIds_; +} + +void CreateCenRouteMapRequest::setSourceZoneIds(const std::vector& sourceZoneIds) +{ + sourceZoneIds_ = sourceZoneIds; + for(int dep1 = 0; dep1!= sourceZoneIds.size(); dep1++) { + setParameter("SourceZoneIds."+ std::to_string(dep1), sourceZoneIds.at(dep1)); + } +} + std::string CreateCenRouteMapRequest::getTransmitDirection()const { return transmitDirection_; diff --git a/cbn/src/model/DeleteCenChildInstanceRouteEntryToCenRequest.cc b/cbn/src/model/DeleteCenChildInstanceRouteEntryToCenRequest.cc new file mode 100644 index 000000000..592eb3b28 --- /dev/null +++ b/cbn/src/model/DeleteCenChildInstanceRouteEntryToCenRequest.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::DeleteCenChildInstanceRouteEntryToCenRequest; + +DeleteCenChildInstanceRouteEntryToCenRequest::DeleteCenChildInstanceRouteEntryToCenRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DeleteCenChildInstanceRouteEntryToCen") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteCenChildInstanceRouteEntryToCenRequest::~DeleteCenChildInstanceRouteEntryToCenRequest() +{} + +long DeleteCenChildInstanceRouteEntryToCenRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteCenChildInstanceRouteEntryToCenRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteCenChildInstanceRouteEntryToCenRequest::getCenId()const +{ + return cenId_; +} + +void DeleteCenChildInstanceRouteEntryToCenRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string DeleteCenChildInstanceRouteEntryToCenRequest::getChildInstanceRegionId()const +{ + return childInstanceRegionId_; +} + +void DeleteCenChildInstanceRouteEntryToCenRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId) +{ + childInstanceRegionId_ = childInstanceRegionId; + setParameter("ChildInstanceRegionId", childInstanceRegionId); +} + +std::string DeleteCenChildInstanceRouteEntryToCenRequest::getRouteTableId()const +{ + return routeTableId_; +} + +void DeleteCenChildInstanceRouteEntryToCenRequest::setRouteTableId(const std::string& routeTableId) +{ + routeTableId_ = routeTableId; + setParameter("RouteTableId", routeTableId); +} + +std::string DeleteCenChildInstanceRouteEntryToCenRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteCenChildInstanceRouteEntryToCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteCenChildInstanceRouteEntryToCenRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteCenChildInstanceRouteEntryToCenRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteCenChildInstanceRouteEntryToCenRequest::getDestinationCidrBlock()const +{ + return destinationCidrBlock_; +} + +void DeleteCenChildInstanceRouteEntryToCenRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) +{ + destinationCidrBlock_ = destinationCidrBlock; + setParameter("DestinationCidrBlock", destinationCidrBlock); +} + +long DeleteCenChildInstanceRouteEntryToCenRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteCenChildInstanceRouteEntryToCenRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteCenChildInstanceRouteEntryToCenRequest::getChildInstanceType()const +{ + return childInstanceType_; +} + +void DeleteCenChildInstanceRouteEntryToCenRequest::setChildInstanceType(const std::string& childInstanceType) +{ + childInstanceType_ = childInstanceType; + setParameter("ChildInstanceType", childInstanceType); +} + +std::string DeleteCenChildInstanceRouteEntryToCenRequest::getChildInstanceId()const +{ + return childInstanceId_; +} + +void DeleteCenChildInstanceRouteEntryToCenRequest::setChildInstanceId(const std::string& childInstanceId) +{ + childInstanceId_ = childInstanceId; + setParameter("ChildInstanceId", childInstanceId); +} + +long DeleteCenChildInstanceRouteEntryToCenRequest::getChildInstanceAliUid()const +{ + return childInstanceAliUid_; +} + +void DeleteCenChildInstanceRouteEntryToCenRequest::setChildInstanceAliUid(long childInstanceAliUid) +{ + childInstanceAliUid_ = childInstanceAliUid; + setParameter("ChildInstanceAliUid", std::to_string(childInstanceAliUid)); +} + diff --git a/cbn/src/model/DeleteCenChildInstanceRouteEntryToCenResult.cc b/cbn/src/model/DeleteCenChildInstanceRouteEntryToCenResult.cc new file mode 100644 index 000000000..eb0e07730 --- /dev/null +++ b/cbn/src/model/DeleteCenChildInstanceRouteEntryToCenResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DeleteCenChildInstanceRouteEntryToCenResult::DeleteCenChildInstanceRouteEntryToCenResult() : + ServiceResult() +{} + +DeleteCenChildInstanceRouteEntryToCenResult::DeleteCenChildInstanceRouteEntryToCenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCenChildInstanceRouteEntryToCenResult::~DeleteCenChildInstanceRouteEntryToCenResult() +{} + +void DeleteCenChildInstanceRouteEntryToCenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/DescribeCenAttachedChildInstanceAttributeRequest.cc b/cbn/src/model/DescribeCenAttachedChildInstanceAttributeRequest.cc index b71acec56..644fbf09c 100644 --- a/cbn/src/model/DescribeCenAttachedChildInstanceAttributeRequest.cc +++ b/cbn/src/model/DescribeCenAttachedChildInstanceAttributeRequest.cc @@ -27,6 +27,17 @@ DescribeCenAttachedChildInstanceAttributeRequest::DescribeCenAttachedChildInstan DescribeCenAttachedChildInstanceAttributeRequest::~DescribeCenAttachedChildInstanceAttributeRequest() {} +bool DescribeCenAttachedChildInstanceAttributeRequest::getIncludeRouteTable()const +{ + return includeRouteTable_; +} + +void DescribeCenAttachedChildInstanceAttributeRequest::setIncludeRouteTable(bool includeRouteTable) +{ + includeRouteTable_ = includeRouteTable; + setParameter("IncludeRouteTable", includeRouteTable ? "true" : "false"); +} + long DescribeCenAttachedChildInstanceAttributeRequest::getResourceOwnerId()const { return resourceOwnerId_; diff --git a/cbn/src/model/DescribeCenAttachedChildInstanceAttributeResult.cc b/cbn/src/model/DescribeCenAttachedChildInstanceAttributeResult.cc index 9906c06bd..dd99dc1ea 100644 --- a/cbn/src/model/DescribeCenAttachedChildInstanceAttributeResult.cc +++ b/cbn/src/model/DescribeCenAttachedChildInstanceAttributeResult.cc @@ -39,6 +39,16 @@ void DescribeCenAttachedChildInstanceAttributeResult::parse(const std::string &p Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allChildInstanceRouteTablesNode = value["ChildInstanceRouteTables"]["ChildInstanceRouteTable"]; + for (auto valueChildInstanceRouteTablesChildInstanceRouteTable : allChildInstanceRouteTablesNode) + { + ChildInstanceRouteTable childInstanceRouteTablesObject; + if(!valueChildInstanceRouteTablesChildInstanceRouteTable["RouteTableId"].isNull()) + childInstanceRouteTablesObject.routeTableId = valueChildInstanceRouteTablesChildInstanceRouteTable["RouteTableId"].asString(); + if(!valueChildInstanceRouteTablesChildInstanceRouteTable["RouteTableType"].isNull()) + childInstanceRouteTablesObject.routeTableType = valueChildInstanceRouteTablesChildInstanceRouteTable["RouteTableType"].asString(); + childInstanceRouteTables_.push_back(childInstanceRouteTablesObject); + } if(!value["CenId"].isNull()) cenId_ = value["CenId"].asString(); if(!value["ChildInstanceId"].isNull()) @@ -55,6 +65,8 @@ void DescribeCenAttachedChildInstanceAttributeResult::parse(const std::string &p childInstanceName_ = value["ChildInstanceName"].asString(); if(!value["ChildInstanceAttachTime"].isNull()) childInstanceAttachTime_ = value["ChildInstanceAttachTime"].asString(); + if(!value["Ipv6StatusInCen"].isNull()) + ipv6StatusInCen_ = value["Ipv6StatusInCen"].asString(); } @@ -63,11 +75,21 @@ std::string DescribeCenAttachedChildInstanceAttributeResult::getStatus()const return status_; } +std::vector DescribeCenAttachedChildInstanceAttributeResult::getChildInstanceRouteTables()const +{ + return childInstanceRouteTables_; +} + std::string DescribeCenAttachedChildInstanceAttributeResult::getChildInstanceType()const { return childInstanceType_; } +std::string DescribeCenAttachedChildInstanceAttributeResult::getIpv6StatusInCen()const +{ + return ipv6StatusInCen_; +} + std::string DescribeCenAttachedChildInstanceAttributeResult::getCenId()const { return cenId_; diff --git a/cbn/src/model/DescribeCenBandwidthPackagesRequest.cc b/cbn/src/model/DescribeCenBandwidthPackagesRequest.cc index 89f5a0baa..f13f3334b 100644 --- a/cbn/src/model/DescribeCenBandwidthPackagesRequest.cc +++ b/cbn/src/model/DescribeCenBandwidthPackagesRequest.cc @@ -82,6 +82,22 @@ void DescribeCenBandwidthPackagesRequest::setPageSize(int pageSize) setParameter("PageSize", std::to_string(pageSize)); } +std::vector DescribeCenBandwidthPackagesRequest::getTag()const +{ + return tag_; +} + +void DescribeCenBandwidthPackagesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + std::string DescribeCenBandwidthPackagesRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; diff --git a/cbn/src/model/DescribeCenBandwidthPackagesResult.cc b/cbn/src/model/DescribeCenBandwidthPackagesResult.cc index 726e502eb..eefcdb0de 100644 --- a/cbn/src/model/DescribeCenBandwidthPackagesResult.cc +++ b/cbn/src/model/DescribeCenBandwidthPackagesResult.cc @@ -83,20 +83,30 @@ void DescribeCenBandwidthPackagesResult::parse(const std::string &payload) cenBandwidthPackagesObject.reservationActiveTime = valueCenBandwidthPackagesCenBandwidthPackage["ReservationActiveTime"].asString(); if(!valueCenBandwidthPackagesCenBandwidthPackage["ReservationOrderType"].isNull()) cenBandwidthPackagesObject.reservationOrderType = valueCenBandwidthPackagesCenBandwidthPackage["ReservationOrderType"].asString(); - auto allOrginInterRegionBandwidthLimitsNode = allCenBandwidthPackagesNode["OrginInterRegionBandwidthLimits"]["OrginInterRegionBandwidthLimit"]; - for (auto allCenBandwidthPackagesNodeOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit : allOrginInterRegionBandwidthLimitsNode) + auto allOrginInterRegionBandwidthLimitsNode = valueCenBandwidthPackagesCenBandwidthPackage["OrginInterRegionBandwidthLimits"]["OrginInterRegionBandwidthLimit"]; + for (auto valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit : allOrginInterRegionBandwidthLimitsNode) { CenBandwidthPackage::OrginInterRegionBandwidthLimit orginInterRegionBandwidthLimitsObject; - if(!allCenBandwidthPackagesNodeOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["LocalRegionId"].isNull()) - orginInterRegionBandwidthLimitsObject.localRegionId = allCenBandwidthPackagesNodeOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["LocalRegionId"].asString(); - if(!allCenBandwidthPackagesNodeOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["OppositeRegionId"].isNull()) - orginInterRegionBandwidthLimitsObject.oppositeRegionId = allCenBandwidthPackagesNodeOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["OppositeRegionId"].asString(); - if(!allCenBandwidthPackagesNodeOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["GeographicSpanId"].isNull()) - orginInterRegionBandwidthLimitsObject.geographicSpanId = allCenBandwidthPackagesNodeOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["GeographicSpanId"].asString(); - if(!allCenBandwidthPackagesNodeOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["BandwidthLimit"].isNull()) - orginInterRegionBandwidthLimitsObject.bandwidthLimit = allCenBandwidthPackagesNodeOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["BandwidthLimit"].asString(); + if(!valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["LocalRegionId"].isNull()) + orginInterRegionBandwidthLimitsObject.localRegionId = valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["LocalRegionId"].asString(); + if(!valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["OppositeRegionId"].isNull()) + orginInterRegionBandwidthLimitsObject.oppositeRegionId = valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["OppositeRegionId"].asString(); + if(!valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["GeographicSpanId"].isNull()) + orginInterRegionBandwidthLimitsObject.geographicSpanId = valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["GeographicSpanId"].asString(); + if(!valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["BandwidthLimit"].isNull()) + orginInterRegionBandwidthLimitsObject.bandwidthLimit = valueCenBandwidthPackagesCenBandwidthPackageOrginInterRegionBandwidthLimitsOrginInterRegionBandwidthLimit["BandwidthLimit"].asString(); cenBandwidthPackagesObject.orginInterRegionBandwidthLimits.push_back(orginInterRegionBandwidthLimitsObject); } + auto allTagsNode = valueCenBandwidthPackagesCenBandwidthPackage["Tags"]["Tag"]; + for (auto valueCenBandwidthPackagesCenBandwidthPackageTagsTag : allTagsNode) + { + CenBandwidthPackage::Tag tagsObject; + if(!valueCenBandwidthPackagesCenBandwidthPackageTagsTag["Key"].isNull()) + tagsObject.key = valueCenBandwidthPackagesCenBandwidthPackageTagsTag["Key"].asString(); + if(!valueCenBandwidthPackagesCenBandwidthPackageTagsTag["Value"].isNull()) + tagsObject.value = valueCenBandwidthPackagesCenBandwidthPackageTagsTag["Value"].asString(); + cenBandwidthPackagesObject.tags.push_back(tagsObject); + } auto allCenIds = value["CenIds"]["CenId"]; for (auto value : allCenIds) cenBandwidthPackagesObject.cenIds.push_back(value.asString()); diff --git a/cbn/src/model/DescribeCenChildInstanceRouteEntriesRequest.cc b/cbn/src/model/DescribeCenChildInstanceRouteEntriesRequest.cc index 208ea0455..9de1a7bfe 100644 --- a/cbn/src/model/DescribeCenChildInstanceRouteEntriesRequest.cc +++ b/cbn/src/model/DescribeCenChildInstanceRouteEntriesRequest.cc @@ -104,6 +104,17 @@ void DescribeCenChildInstanceRouteEntriesRequest::setOwnerAccount(const std::str setParameter("OwnerAccount", ownerAccount); } +std::string DescribeCenChildInstanceRouteEntriesRequest::getDestinationCidrBlock()const +{ + return destinationCidrBlock_; +} + +void DescribeCenChildInstanceRouteEntriesRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) +{ + destinationCidrBlock_ = destinationCidrBlock; + setParameter("DestinationCidrBlock", destinationCidrBlock); +} + long DescribeCenChildInstanceRouteEntriesRequest::getOwnerId()const { return ownerId_; @@ -137,6 +148,17 @@ void DescribeCenChildInstanceRouteEntriesRequest::setChildInstanceId(const std:: setParameter("ChildInstanceId", childInstanceId); } +std::string DescribeCenChildInstanceRouteEntriesRequest::getChildInstanceRouteTableId()const +{ + return childInstanceRouteTableId_; +} + +void DescribeCenChildInstanceRouteEntriesRequest::setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId) +{ + childInstanceRouteTableId_ = childInstanceRouteTableId; + setParameter("ChildInstanceRouteTableId", childInstanceRouteTableId); +} + std::string DescribeCenChildInstanceRouteEntriesRequest::getStatus()const { return status_; diff --git a/cbn/src/model/DescribeCenChildInstanceRouteEntriesResult.cc b/cbn/src/model/DescribeCenChildInstanceRouteEntriesResult.cc index c063340d6..b6c55309e 100644 --- a/cbn/src/model/DescribeCenChildInstanceRouteEntriesResult.cc +++ b/cbn/src/model/DescribeCenChildInstanceRouteEntriesResult.cc @@ -61,30 +61,30 @@ void DescribeCenChildInstanceRouteEntriesResult::parse(const std::string &payloa cenRouteEntriesObject.publishStatus = valueCenRouteEntriesCenRouteEntry["PublishStatus"].asString(); if(!valueCenRouteEntriesCenRouteEntry["RouteTableId"].isNull()) cenRouteEntriesObject.routeTableId = valueCenRouteEntriesCenRouteEntry["RouteTableId"].asString(); - auto allCenRouteMapRecordsNode = allCenRouteEntriesNode["CenRouteMapRecords"]["CenRouteMapRecord"]; - for (auto allCenRouteEntriesNodeCenRouteMapRecordsCenRouteMapRecord : allCenRouteMapRecordsNode) + auto allCenRouteMapRecordsNode = valueCenRouteEntriesCenRouteEntry["CenRouteMapRecords"]["CenRouteMapRecord"]; + for (auto valueCenRouteEntriesCenRouteEntryCenRouteMapRecordsCenRouteMapRecord : allCenRouteMapRecordsNode) { CenRouteEntry::CenRouteMapRecord cenRouteMapRecordsObject; - if(!allCenRouteEntriesNodeCenRouteMapRecordsCenRouteMapRecord["RegionId"].isNull()) - cenRouteMapRecordsObject.regionId = allCenRouteEntriesNodeCenRouteMapRecordsCenRouteMapRecord["RegionId"].asString(); - if(!allCenRouteEntriesNodeCenRouteMapRecordsCenRouteMapRecord["RouteMapId"].isNull()) - cenRouteMapRecordsObject.routeMapId = allCenRouteEntriesNodeCenRouteMapRecordsCenRouteMapRecord["RouteMapId"].asString(); + if(!valueCenRouteEntriesCenRouteEntryCenRouteMapRecordsCenRouteMapRecord["RegionId"].isNull()) + cenRouteMapRecordsObject.regionId = valueCenRouteEntriesCenRouteEntryCenRouteMapRecordsCenRouteMapRecord["RegionId"].asString(); + if(!valueCenRouteEntriesCenRouteEntryCenRouteMapRecordsCenRouteMapRecord["RouteMapId"].isNull()) + cenRouteMapRecordsObject.routeMapId = valueCenRouteEntriesCenRouteEntryCenRouteMapRecordsCenRouteMapRecord["RouteMapId"].asString(); cenRouteEntriesObject.cenRouteMapRecords.push_back(cenRouteMapRecordsObject); } - auto allConflictsNode = allCenRouteEntriesNode["Conflicts"]["Conflict"]; - for (auto allCenRouteEntriesNodeConflictsConflict : allConflictsNode) + auto allConflictsNode = valueCenRouteEntriesCenRouteEntry["Conflicts"]["Conflict"]; + for (auto valueCenRouteEntriesCenRouteEntryConflictsConflict : allConflictsNode) { CenRouteEntry::Conflict conflictsObject; - if(!allCenRouteEntriesNodeConflictsConflict["DestinationCidrBlock"].isNull()) - conflictsObject.destinationCidrBlock = allCenRouteEntriesNodeConflictsConflict["DestinationCidrBlock"].asString(); - if(!allCenRouteEntriesNodeConflictsConflict["RegionId"].isNull()) - conflictsObject.regionId = allCenRouteEntriesNodeConflictsConflict["RegionId"].asString(); - if(!allCenRouteEntriesNodeConflictsConflict["InstanceId"].isNull()) - conflictsObject.instanceId = allCenRouteEntriesNodeConflictsConflict["InstanceId"].asString(); - if(!allCenRouteEntriesNodeConflictsConflict["InstanceType"].isNull()) - conflictsObject.instanceType = allCenRouteEntriesNodeConflictsConflict["InstanceType"].asString(); - if(!allCenRouteEntriesNodeConflictsConflict["Status"].isNull()) - conflictsObject.status = allCenRouteEntriesNodeConflictsConflict["Status"].asString(); + if(!valueCenRouteEntriesCenRouteEntryConflictsConflict["DestinationCidrBlock"].isNull()) + conflictsObject.destinationCidrBlock = valueCenRouteEntriesCenRouteEntryConflictsConflict["DestinationCidrBlock"].asString(); + if(!valueCenRouteEntriesCenRouteEntryConflictsConflict["RegionId"].isNull()) + conflictsObject.regionId = valueCenRouteEntriesCenRouteEntryConflictsConflict["RegionId"].asString(); + if(!valueCenRouteEntriesCenRouteEntryConflictsConflict["InstanceId"].isNull()) + conflictsObject.instanceId = valueCenRouteEntriesCenRouteEntryConflictsConflict["InstanceId"].asString(); + if(!valueCenRouteEntriesCenRouteEntryConflictsConflict["InstanceType"].isNull()) + conflictsObject.instanceType = valueCenRouteEntriesCenRouteEntryConflictsConflict["InstanceType"].asString(); + if(!valueCenRouteEntriesCenRouteEntryConflictsConflict["Status"].isNull()) + conflictsObject.status = valueCenRouteEntriesCenRouteEntryConflictsConflict["Status"].asString(); cenRouteEntriesObject.conflicts.push_back(conflictsObject); } auto allAsPaths = value["AsPaths"]["AsPath"]; diff --git a/cbn/src/model/DescribeCenInterRegionBandwidthLimitsResult.cc b/cbn/src/model/DescribeCenInterRegionBandwidthLimitsResult.cc index 35d01edd9..a825bd08f 100644 --- a/cbn/src/model/DescribeCenInterRegionBandwidthLimitsResult.cc +++ b/cbn/src/model/DescribeCenInterRegionBandwidthLimitsResult.cc @@ -55,6 +55,8 @@ void DescribeCenInterRegionBandwidthLimitsResult::parse(const std::string &paylo cenInterRegionBandwidthLimitsObject.bandwidthLimit = std::stol(valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["BandwidthLimit"].asString()); if(!valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["Status"].isNull()) cenInterRegionBandwidthLimitsObject.status = valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["Status"].asString(); + if(!valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["TransitRouterAttachmentId"].isNull()) + cenInterRegionBandwidthLimitsObject.transitRouterAttachmentId = valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["TransitRouterAttachmentId"].asString(); if(!valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["BandwidthPackageId"].isNull()) cenInterRegionBandwidthLimitsObject.bandwidthPackageId = valueCenInterRegionBandwidthLimitsCenInterRegionBandwidthLimit["BandwidthPackageId"].asString(); cenInterRegionBandwidthLimits_.push_back(cenInterRegionBandwidthLimitsObject); diff --git a/cbn/src/model/DescribeCenRegionDomainRouteEntriesRequest.cc b/cbn/src/model/DescribeCenRegionDomainRouteEntriesRequest.cc index 495f807b9..4cfbff351 100644 --- a/cbn/src/model/DescribeCenRegionDomainRouteEntriesRequest.cc +++ b/cbn/src/model/DescribeCenRegionDomainRouteEntriesRequest.cc @@ -93,6 +93,17 @@ void DescribeCenRegionDomainRouteEntriesRequest::setOwnerAccount(const std::stri setParameter("OwnerAccount", ownerAccount); } +std::string DescribeCenRegionDomainRouteEntriesRequest::getDestinationCidrBlock()const +{ + return destinationCidrBlock_; +} + +void DescribeCenRegionDomainRouteEntriesRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) +{ + destinationCidrBlock_ = destinationCidrBlock; + setParameter("DestinationCidrBlock", destinationCidrBlock); +} + long DescribeCenRegionDomainRouteEntriesRequest::getOwnerId()const { return ownerId_; diff --git a/cbn/src/model/DescribeCenRegionDomainRouteEntriesResult.cc b/cbn/src/model/DescribeCenRegionDomainRouteEntriesResult.cc index 734a5ba5c..3a00907d5 100644 --- a/cbn/src/model/DescribeCenRegionDomainRouteEntriesResult.cc +++ b/cbn/src/model/DescribeCenRegionDomainRouteEntriesResult.cc @@ -59,24 +59,24 @@ void DescribeCenRegionDomainRouteEntriesResult::parse(const std::string &payload cenRouteEntriesObject.toOtherRegionStatus = valueCenRouteEntriesCenRouteEntry["ToOtherRegionStatus"].asString(); if(!valueCenRouteEntriesCenRouteEntry["Preference"].isNull()) cenRouteEntriesObject.preference = std::stoi(valueCenRouteEntriesCenRouteEntry["Preference"].asString()); - auto allCenRouteMapRecordsNode = allCenRouteEntriesNode["CenRouteMapRecords"]["CenRouteMapRecord"]; - for (auto allCenRouteEntriesNodeCenRouteMapRecordsCenRouteMapRecord : allCenRouteMapRecordsNode) + auto allCenRouteMapRecordsNode = valueCenRouteEntriesCenRouteEntry["CenRouteMapRecords"]["CenRouteMapRecord"]; + for (auto valueCenRouteEntriesCenRouteEntryCenRouteMapRecordsCenRouteMapRecord : allCenRouteMapRecordsNode) { CenRouteEntry::CenRouteMapRecord cenRouteMapRecordsObject; - if(!allCenRouteEntriesNodeCenRouteMapRecordsCenRouteMapRecord["RegionId"].isNull()) - cenRouteMapRecordsObject.regionId = allCenRouteEntriesNodeCenRouteMapRecordsCenRouteMapRecord["RegionId"].asString(); - if(!allCenRouteEntriesNodeCenRouteMapRecordsCenRouteMapRecord["RouteMapId"].isNull()) - cenRouteMapRecordsObject.routeMapId = allCenRouteEntriesNodeCenRouteMapRecordsCenRouteMapRecord["RouteMapId"].asString(); + if(!valueCenRouteEntriesCenRouteEntryCenRouteMapRecordsCenRouteMapRecord["RegionId"].isNull()) + cenRouteMapRecordsObject.regionId = valueCenRouteEntriesCenRouteEntryCenRouteMapRecordsCenRouteMapRecord["RegionId"].asString(); + if(!valueCenRouteEntriesCenRouteEntryCenRouteMapRecordsCenRouteMapRecord["RouteMapId"].isNull()) + cenRouteMapRecordsObject.routeMapId = valueCenRouteEntriesCenRouteEntryCenRouteMapRecordsCenRouteMapRecord["RouteMapId"].asString(); cenRouteEntriesObject.cenRouteMapRecords.push_back(cenRouteMapRecordsObject); } - auto allCenOutRouteMapRecordsNode = allCenRouteEntriesNode["CenOutRouteMapRecords"]["CenOutRouteMapRecord"]; - for (auto allCenRouteEntriesNodeCenOutRouteMapRecordsCenOutRouteMapRecord : allCenOutRouteMapRecordsNode) + auto allCenOutRouteMapRecordsNode = valueCenRouteEntriesCenRouteEntry["CenOutRouteMapRecords"]["CenOutRouteMapRecord"]; + for (auto valueCenRouteEntriesCenRouteEntryCenOutRouteMapRecordsCenOutRouteMapRecord : allCenOutRouteMapRecordsNode) { CenRouteEntry::CenOutRouteMapRecord cenOutRouteMapRecordsObject; - if(!allCenRouteEntriesNodeCenOutRouteMapRecordsCenOutRouteMapRecord["RegionId"].isNull()) - cenOutRouteMapRecordsObject.regionId = allCenRouteEntriesNodeCenOutRouteMapRecordsCenOutRouteMapRecord["RegionId"].asString(); - if(!allCenRouteEntriesNodeCenOutRouteMapRecordsCenOutRouteMapRecord["RouteMapId"].isNull()) - cenOutRouteMapRecordsObject.routeMapId = allCenRouteEntriesNodeCenOutRouteMapRecordsCenOutRouteMapRecord["RouteMapId"].asString(); + if(!valueCenRouteEntriesCenRouteEntryCenOutRouteMapRecordsCenOutRouteMapRecord["RegionId"].isNull()) + cenOutRouteMapRecordsObject.regionId = valueCenRouteEntriesCenRouteEntryCenOutRouteMapRecordsCenOutRouteMapRecord["RegionId"].asString(); + if(!valueCenRouteEntriesCenRouteEntryCenOutRouteMapRecordsCenOutRouteMapRecord["RouteMapId"].isNull()) + cenOutRouteMapRecordsObject.routeMapId = valueCenRouteEntriesCenRouteEntryCenOutRouteMapRecordsCenOutRouteMapRecord["RouteMapId"].asString(); cenRouteEntriesObject.cenOutRouteMapRecords.push_back(cenOutRouteMapRecordsObject); } auto allAsPaths = value["AsPaths"]["AsPath"]; diff --git a/cbn/src/model/DescribeCenRouteMapsRequest.cc b/cbn/src/model/DescribeCenRouteMapsRequest.cc index 6253187f5..4baffcc0f 100644 --- a/cbn/src/model/DescribeCenRouteMapsRequest.cc +++ b/cbn/src/model/DescribeCenRouteMapsRequest.cc @@ -126,6 +126,24 @@ void DescribeCenRouteMapsRequest::setOwnerId(long ownerId) setParameter("OwnerId", std::to_string(ownerId)); } +std::vector DescribeCenRouteMapsRequest::getFilter()const +{ + return filter_; +} + +void DescribeCenRouteMapsRequest::setFilter(const std::vector& filter) +{ + filter_ = filter; + for(int dep1 = 0; dep1!= filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = "Filter." + std::to_string(dep1 + 1); + for(int dep2 = 0; dep2!= filterObj.value.size(); dep2++) { + setParameter(filterObjStr + ".Value."+ std::to_string(dep2), filterObj.value.at(dep2)); + } + setParameter(filterObjStr + ".Key", filterObj.key); + } +} + std::string DescribeCenRouteMapsRequest::getCenRegionId()const { return cenRegionId_; diff --git a/cbn/src/model/DescribeCenRouteMapsResult.cc b/cbn/src/model/DescribeCenRouteMapsResult.cc index bdeb31e6e..5f1eff386 100644 --- a/cbn/src/model/DescribeCenRouteMapsResult.cc +++ b/cbn/src/model/DescribeCenRouteMapsResult.cc @@ -75,6 +75,10 @@ void DescribeCenRouteMapsResult::parse(const std::string &payload) routeMapsObject.sourceInstanceIdsReverseMatch = valueRouteMapsRouteMap["SourceInstanceIdsReverseMatch"].asString() == "true"; if(!valueRouteMapsRouteMap["DestinationInstanceIdsReverseMatch"].isNull()) routeMapsObject.destinationInstanceIdsReverseMatch = valueRouteMapsRouteMap["DestinationInstanceIdsReverseMatch"].asString() == "true"; + if(!valueRouteMapsRouteMap["GatewayZoneId"].isNull()) + routeMapsObject.gatewayZoneId = valueRouteMapsRouteMap["GatewayZoneId"].asString(); + if(!valueRouteMapsRouteMap["MatchAddressType"].isNull()) + routeMapsObject.matchAddressType = valueRouteMapsRouteMap["MatchAddressType"].asString(); auto allSourceInstanceIds = value["SourceInstanceIds"]["SourceInstanceId"]; for (auto value : allSourceInstanceIds) routeMapsObject.sourceInstanceIds.push_back(value.asString()); @@ -114,6 +118,15 @@ void DescribeCenRouteMapsResult::parse(const std::string &payload) auto allPrependAsPath = value["PrependAsPath"]["AsPath"]; for (auto value : allPrependAsPath) routeMapsObject.prependAsPath.push_back(value.asString()); + auto allDestinationRegionIds = value["DestinationRegionIds"]["DestinationRegionId"]; + for (auto value : allDestinationRegionIds) + routeMapsObject.destinationRegionIds.push_back(value.asString()); + auto allOriginalRouteTableIds = value["OriginalRouteTableIds"]["OriginalRouteTableId"]; + for (auto value : allOriginalRouteTableIds) + routeMapsObject.originalRouteTableIds.push_back(value.asString()); + auto allSrcZoneIds = value["SrcZoneIds"]["SrcZoneId"]; + for (auto value : allSrcZoneIds) + routeMapsObject.srcZoneIds.push_back(value.asString()); routeMaps_.push_back(routeMapsObject); } if(!value["TotalCount"].isNull()) diff --git a/cbn/src/model/DescribeCenVbrHealthCheckResult.cc b/cbn/src/model/DescribeCenVbrHealthCheckResult.cc index b12b7bdda..2012a546d 100644 --- a/cbn/src/model/DescribeCenVbrHealthCheckResult.cc +++ b/cbn/src/model/DescribeCenVbrHealthCheckResult.cc @@ -61,6 +61,8 @@ void DescribeCenVbrHealthCheckResult::parse(const std::string &payload) vbrHealthChecksObject.healthCheckInterval = std::stoi(valueVbrHealthChecksVbrHealthCheck["HealthCheckInterval"].asString()); if(!valueVbrHealthChecksVbrHealthCheck["HealthyThreshold"].isNull()) vbrHealthChecksObject.healthyThreshold = std::stoi(valueVbrHealthChecksVbrHealthCheck["HealthyThreshold"].asString()); + if(!valueVbrHealthChecksVbrHealthCheck["VbrInstanceRegionId"].isNull()) + vbrHealthChecksObject.vbrInstanceRegionId = valueVbrHealthChecksVbrHealthCheck["VbrInstanceRegionId"].asString(); vbrHealthChecks_.push_back(vbrHealthChecksObject); } if(!value["TotalCount"].isNull()) diff --git a/cbn/src/model/DescribeCensResult.cc b/cbn/src/model/DescribeCensResult.cc index b7cf96dea..9521af5ac 100644 --- a/cbn/src/model/DescribeCensResult.cc +++ b/cbn/src/model/DescribeCensResult.cc @@ -55,14 +55,16 @@ void DescribeCensResult::parse(const std::string &payload) censObject.status = valueCensCen["Status"].asString(); if(!valueCensCen["CreationTime"].isNull()) censObject.creationTime = valueCensCen["CreationTime"].asString(); - auto allTagsNode = allCensNode["Tags"]["Tag"]; - for (auto allCensNodeTagsTag : allTagsNode) + if(!valueCensCen["Ipv6Level"].isNull()) + censObject.ipv6Level = valueCensCen["Ipv6Level"].asString(); + auto allTagsNode = valueCensCen["Tags"]["Tag"]; + for (auto valueCensCenTagsTag : allTagsNode) { Cen::Tag tagsObject; - if(!allCensNodeTagsTag["Key"].isNull()) - tagsObject.key = allCensNodeTagsTag["Key"].asString(); - if(!allCensNodeTagsTag["Value"].isNull()) - tagsObject.value = allCensNodeTagsTag["Value"].asString(); + if(!valueCensCenTagsTag["Key"].isNull()) + tagsObject.key = valueCensCenTagsTag["Key"].asString(); + if(!valueCensCenTagsTag["Value"].isNull()) + tagsObject.value = valueCensCenTagsTag["Value"].asString(); censObject.tags.push_back(tagsObject); } auto allCenBandwidthPackageIds = value["CenBandwidthPackageIds"]["CenBandwidthPackageId"]; diff --git a/cbn/src/model/DescribeChildInstanceRegionsRequest.cc b/cbn/src/model/DescribeChildInstanceRegionsRequest.cc index 2927cd31a..86309fb18 100644 --- a/cbn/src/model/DescribeChildInstanceRegionsRequest.cc +++ b/cbn/src/model/DescribeChildInstanceRegionsRequest.cc @@ -38,6 +38,17 @@ void DescribeChildInstanceRegionsRequest::setResourceOwnerId(long resourceOwnerI setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +std::string DescribeChildInstanceRegionsRequest::getProductType()const +{ + return productType_; +} + +void DescribeChildInstanceRegionsRequest::setProductType(const std::string& productType) +{ + productType_ = productType; + setParameter("ProductType", productType); +} + std::string DescribeChildInstanceRegionsRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; @@ -71,14 +82,14 @@ void DescribeChildInstanceRegionsRequest::setOwnerId(long ownerId) setParameter("OwnerId", std::to_string(ownerId)); } -std::string DescribeChildInstanceRegionsRequest::getProductType()const +long DescribeChildInstanceRegionsRequest::getChildInstanceOwnerId()const { - return productType_; + return childInstanceOwnerId_; } -void DescribeChildInstanceRegionsRequest::setProductType(const std::string& productType) +void DescribeChildInstanceRegionsRequest::setChildInstanceOwnerId(long childInstanceOwnerId) { - productType_ = productType; - setParameter("ProductType", productType); + childInstanceOwnerId_ = childInstanceOwnerId; + setParameter("ChildInstanceOwnerId", std::to_string(childInstanceOwnerId)); } diff --git a/cbn/src/model/DescribePublishedRouteEntriesResult.cc b/cbn/src/model/DescribePublishedRouteEntriesResult.cc index 0258b6177..4103d4b84 100644 --- a/cbn/src/model/DescribePublishedRouteEntriesResult.cc +++ b/cbn/src/model/DescribePublishedRouteEntriesResult.cc @@ -57,20 +57,20 @@ void DescribePublishedRouteEntriesResult::parse(const std::string &payload) publishedRouteEntriesObject.operationalMode = valuePublishedRouteEntriesPublishedRouteEntry["OperationalMode"].asString() == "true"; if(!valuePublishedRouteEntriesPublishedRouteEntry["PublishStatus"].isNull()) publishedRouteEntriesObject.publishStatus = valuePublishedRouteEntriesPublishedRouteEntry["PublishStatus"].asString(); - auto allConflictsNode = allPublishedRouteEntriesNode["Conflicts"]["Conflict"]; - for (auto allPublishedRouteEntriesNodeConflictsConflict : allConflictsNode) + auto allConflictsNode = valuePublishedRouteEntriesPublishedRouteEntry["Conflicts"]["Conflict"]; + for (auto valuePublishedRouteEntriesPublishedRouteEntryConflictsConflict : allConflictsNode) { PublishedRouteEntry::Conflict conflictsObject; - if(!allPublishedRouteEntriesNodeConflictsConflict["DestinationCidrBlock"].isNull()) - conflictsObject.destinationCidrBlock = allPublishedRouteEntriesNodeConflictsConflict["DestinationCidrBlock"].asString(); - if(!allPublishedRouteEntriesNodeConflictsConflict["RegionId"].isNull()) - conflictsObject.regionId = allPublishedRouteEntriesNodeConflictsConflict["RegionId"].asString(); - if(!allPublishedRouteEntriesNodeConflictsConflict["InstanceId"].isNull()) - conflictsObject.instanceId = allPublishedRouteEntriesNodeConflictsConflict["InstanceId"].asString(); - if(!allPublishedRouteEntriesNodeConflictsConflict["InstanceType"].isNull()) - conflictsObject.instanceType = allPublishedRouteEntriesNodeConflictsConflict["InstanceType"].asString(); - if(!allPublishedRouteEntriesNodeConflictsConflict["Status"].isNull()) - conflictsObject.status = allPublishedRouteEntriesNodeConflictsConflict["Status"].asString(); + if(!valuePublishedRouteEntriesPublishedRouteEntryConflictsConflict["DestinationCidrBlock"].isNull()) + conflictsObject.destinationCidrBlock = valuePublishedRouteEntriesPublishedRouteEntryConflictsConflict["DestinationCidrBlock"].asString(); + if(!valuePublishedRouteEntriesPublishedRouteEntryConflictsConflict["RegionId"].isNull()) + conflictsObject.regionId = valuePublishedRouteEntriesPublishedRouteEntryConflictsConflict["RegionId"].asString(); + if(!valuePublishedRouteEntriesPublishedRouteEntryConflictsConflict["InstanceId"].isNull()) + conflictsObject.instanceId = valuePublishedRouteEntriesPublishedRouteEntryConflictsConflict["InstanceId"].asString(); + if(!valuePublishedRouteEntriesPublishedRouteEntryConflictsConflict["InstanceType"].isNull()) + conflictsObject.instanceType = valuePublishedRouteEntriesPublishedRouteEntryConflictsConflict["InstanceType"].asString(); + if(!valuePublishedRouteEntriesPublishedRouteEntryConflictsConflict["Status"].isNull()) + conflictsObject.status = valuePublishedRouteEntriesPublishedRouteEntryConflictsConflict["Status"].asString(); publishedRouteEntriesObject.conflicts.push_back(conflictsObject); } publishedRouteEntries_.push_back(publishedRouteEntriesObject); diff --git a/cbn/src/model/ModifyCenAttributeRequest.cc b/cbn/src/model/ModifyCenAttributeRequest.cc index 2d2d667fd..d6c6432fd 100644 --- a/cbn/src/model/ModifyCenAttributeRequest.cc +++ b/cbn/src/model/ModifyCenAttributeRequest.cc @@ -49,6 +49,17 @@ void ModifyCenAttributeRequest::setCenId(const std::string& cenId) setParameter("CenId", cenId); } +std::string ModifyCenAttributeRequest::getIpv6Level()const +{ + return ipv6Level_; +} + +void ModifyCenAttributeRequest::setIpv6Level(const std::string& ipv6Level) +{ + ipv6Level_ = ipv6Level; + setParameter("Ipv6Level", ipv6Level); +} + std::string ModifyCenAttributeRequest::getDescription()const { return description_; diff --git a/cbn/src/model/ModifyCenRouteMapRequest.cc b/cbn/src/model/ModifyCenRouteMapRequest.cc index 3400143cf..df7859dd9 100644 --- a/cbn/src/model/ModifyCenRouteMapRequest.cc +++ b/cbn/src/model/ModifyCenRouteMapRequest.cc @@ -60,6 +60,19 @@ void ModifyCenRouteMapRequest::setMapResult(const std::string& mapResult) setParameter("MapResult", mapResult); } +std::vector ModifyCenRouteMapRequest::getDestinationRegionIds()const +{ + return destinationRegionIds_; +} + +void ModifyCenRouteMapRequest::setDestinationRegionIds(const std::vector& destinationRegionIds) +{ + destinationRegionIds_ = destinationRegionIds; + for(int dep1 = 0; dep1!= destinationRegionIds.size(); dep1++) { + setParameter("DestinationRegionIds."+ std::to_string(dep1), destinationRegionIds.at(dep1)); + } +} + int ModifyCenRouteMapRequest::getNextPriority()const { return nextPriority_; @@ -84,6 +97,19 @@ void ModifyCenRouteMapRequest::setDestinationCidrBlocks(const std::vector ModifyCenRouteMapRequest::getOriginalRouteTableIds()const +{ + return originalRouteTableIds_; +} + +void ModifyCenRouteMapRequest::setOriginalRouteTableIds(const std::vector& originalRouteTableIds) +{ + originalRouteTableIds_ = originalRouteTableIds; + for(int dep1 = 0; dep1!= originalRouteTableIds.size(); dep1++) { + setParameter("OriginalRouteTableIds."+ std::to_string(dep1), originalRouteTableIds.at(dep1)); + } +} + std::vector ModifyCenRouteMapRequest::getSourceInstanceIds()const { return sourceInstanceIds_; @@ -110,6 +136,17 @@ void ModifyCenRouteMapRequest::setSourceRegionIds(const std::vector } } +std::string ModifyCenRouteMapRequest::getGatewayZoneId()const +{ + return gatewayZoneId_; +} + +void ModifyCenRouteMapRequest::setGatewayZoneId(const std::string& gatewayZoneId) +{ + gatewayZoneId_ = gatewayZoneId; + setParameter("GatewayZoneId", gatewayZoneId); +} + std::vector ModifyCenRouteMapRequest::getMatchAsns()const { return matchAsns_; @@ -232,6 +269,17 @@ void ModifyCenRouteMapRequest::setRouteTypes(const std::vector& rou } } +std::string ModifyCenRouteMapRequest::getMatchAddressType()const +{ + return matchAddressType_; +} + +void ModifyCenRouteMapRequest::setMatchAddressType(const std::string& matchAddressType) +{ + matchAddressType_ = matchAddressType; + setParameter("MatchAddressType", matchAddressType); +} + std::string ModifyCenRouteMapRequest::getCidrMatchMode()const { return cidrMatchMode_; @@ -289,6 +337,19 @@ void ModifyCenRouteMapRequest::setDestinationRouteTableIds(const std::vector ModifyCenRouteMapRequest::getSourceZoneIds()const +{ + return sourceZoneIds_; +} + +void ModifyCenRouteMapRequest::setSourceZoneIds(const std::vector& sourceZoneIds) +{ + sourceZoneIds_ = sourceZoneIds; + for(int dep1 = 0; dep1!= sourceZoneIds.size(); dep1++) { + setParameter("SourceZoneIds."+ std::to_string(dep1), sourceZoneIds.at(dep1)); + } +} + std::vector ModifyCenRouteMapRequest::getDestinationInstanceIds()const { return destinationInstanceIds_; diff --git a/cbn/src/model/TempUpgradeCenBandwidthPackageSpecRequest.cc b/cbn/src/model/TempUpgradeCenBandwidthPackageSpecRequest.cc new file mode 100644 index 000000000..36cdf5779 --- /dev/null +++ b/cbn/src/model/TempUpgradeCenBandwidthPackageSpecRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::TempUpgradeCenBandwidthPackageSpecRequest; + +TempUpgradeCenBandwidthPackageSpecRequest::TempUpgradeCenBandwidthPackageSpecRequest() : + RpcServiceRequest("cbn", "2017-09-12", "TempUpgradeCenBandwidthPackageSpec") +{ + setMethod(HttpRequest::Method::Post); +} + +TempUpgradeCenBandwidthPackageSpecRequest::~TempUpgradeCenBandwidthPackageSpecRequest() +{} + +long TempUpgradeCenBandwidthPackageSpecRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void TempUpgradeCenBandwidthPackageSpecRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string TempUpgradeCenBandwidthPackageSpecRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void TempUpgradeCenBandwidthPackageSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +int TempUpgradeCenBandwidthPackageSpecRequest::getBandwidth()const +{ + return bandwidth_; +} + +void TempUpgradeCenBandwidthPackageSpecRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string TempUpgradeCenBandwidthPackageSpecRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void TempUpgradeCenBandwidthPackageSpecRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string TempUpgradeCenBandwidthPackageSpecRequest::getEndTime()const +{ + return endTime_; +} + +void TempUpgradeCenBandwidthPackageSpecRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +long TempUpgradeCenBandwidthPackageSpecRequest::getOwnerId()const +{ + return ownerId_; +} + +void TempUpgradeCenBandwidthPackageSpecRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string TempUpgradeCenBandwidthPackageSpecRequest::getCenBandwidthPackageId()const +{ + return cenBandwidthPackageId_; +} + +void TempUpgradeCenBandwidthPackageSpecRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId) +{ + cenBandwidthPackageId_ = cenBandwidthPackageId; + setParameter("CenBandwidthPackageId", cenBandwidthPackageId); +} + diff --git a/cbn/src/model/TempUpgradeCenBandwidthPackageSpecResult.cc b/cbn/src/model/TempUpgradeCenBandwidthPackageSpecResult.cc new file mode 100644 index 000000000..840455fb7 --- /dev/null +++ b/cbn/src/model/TempUpgradeCenBandwidthPackageSpecResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +TempUpgradeCenBandwidthPackageSpecResult::TempUpgradeCenBandwidthPackageSpecResult() : + ServiceResult() +{} + +TempUpgradeCenBandwidthPackageSpecResult::TempUpgradeCenBandwidthPackageSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TempUpgradeCenBandwidthPackageSpecResult::~TempUpgradeCenBandwidthPackageSpecResult() +{} + +void TempUpgradeCenBandwidthPackageSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/UntagResourcesRequest.cc b/cbn/src/model/UntagResourcesRequest.cc index 8abdd7ee5..5f9835760 100644 --- a/cbn/src/model/UntagResourcesRequest.cc +++ b/cbn/src/model/UntagResourcesRequest.cc @@ -38,6 +38,17 @@ void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId) setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +bool UntagResourcesRequest::getAll()const +{ + return all_; +} + +void UntagResourcesRequest::setAll(bool all) +{ + all_ = all; + setParameter("All", all ? "true" : "false"); +} + std::vector UntagResourcesRequest::getResourceId()const { return resourceId_;