Support CEN latest Apis.

This commit is contained in:
sdk-team
2021-04-22 05:36:14 +00:00
parent 9f6ab32ea8
commit bfee7629d7
56 changed files with 1580 additions and 67 deletions

View File

@@ -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.

View File

@@ -1 +1 @@
1.36.694
1.36.695

View File

@@ -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

View File

@@ -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<Error, Model::CreateCenBandwidthPackageResult> CreateCenBandwidthPackageOutcome;
typedef std::future<CreateCenBandwidthPackageOutcome> CreateCenBandwidthPackageOutcomeCallable;
typedef std::function<void(const CbnClient*, const Model::CreateCenBandwidthPackageRequest&, const CreateCenBandwidthPackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCenBandwidthPackageAsyncHandler;
typedef Outcome<Error, Model::CreateCenChildInstanceRouteEntryToCenResult> CreateCenChildInstanceRouteEntryToCenOutcome;
typedef std::future<CreateCenChildInstanceRouteEntryToCenOutcome> CreateCenChildInstanceRouteEntryToCenOutcomeCallable;
typedef std::function<void(const CbnClient*, const Model::CreateCenChildInstanceRouteEntryToCenRequest&, const CreateCenChildInstanceRouteEntryToCenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCenChildInstanceRouteEntryToCenAsyncHandler;
typedef Outcome<Error, Model::CreateCenRouteMapResult> CreateCenRouteMapOutcome;
typedef std::future<CreateCenRouteMapOutcome> CreateCenRouteMapOutcomeCallable;
typedef std::function<void(const CbnClient*, const Model::CreateCenRouteMapRequest&, const CreateCenRouteMapOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCenRouteMapAsyncHandler;
@@ -161,6 +170,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteCenBandwidthPackageResult> DeleteCenBandwidthPackageOutcome;
typedef std::future<DeleteCenBandwidthPackageOutcome> DeleteCenBandwidthPackageOutcomeCallable;
typedef std::function<void(const CbnClient*, const Model::DeleteCenBandwidthPackageRequest&, const DeleteCenBandwidthPackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCenBandwidthPackageAsyncHandler;
typedef Outcome<Error, Model::DeleteCenChildInstanceRouteEntryToCenResult> DeleteCenChildInstanceRouteEntryToCenOutcome;
typedef std::future<DeleteCenChildInstanceRouteEntryToCenOutcome> DeleteCenChildInstanceRouteEntryToCenOutcomeCallable;
typedef std::function<void(const CbnClient*, const Model::DeleteCenChildInstanceRouteEntryToCenRequest&, const DeleteCenChildInstanceRouteEntryToCenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCenChildInstanceRouteEntryToCenAsyncHandler;
typedef Outcome<Error, Model::DeleteCenRouteMapResult> DeleteCenRouteMapOutcome;
typedef std::future<DeleteCenRouteMapOutcome> DeleteCenRouteMapOutcomeCallable;
typedef std::function<void(const CbnClient*, const Model::DeleteCenRouteMapRequest&, const DeleteCenRouteMapOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCenRouteMapAsyncHandler;
@@ -269,6 +281,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
typedef std::function<void(const CbnClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
typedef Outcome<Error, Model::TempUpgradeCenBandwidthPackageSpecResult> TempUpgradeCenBandwidthPackageSpecOutcome;
typedef std::future<TempUpgradeCenBandwidthPackageSpecOutcome> TempUpgradeCenBandwidthPackageSpecOutcomeCallable;
typedef std::function<void(const CbnClient*, const Model::TempUpgradeCenBandwidthPackageSpecRequest&, const TempUpgradeCenBandwidthPackageSpecOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TempUpgradeCenBandwidthPackageSpecAsyncHandler;
typedef Outcome<Error, Model::UnassociateCenBandwidthPackageResult> UnassociateCenBandwidthPackageOutcome;
typedef std::future<UnassociateCenBandwidthPackageOutcome> UnassociateCenBandwidthPackageOutcomeCallable;
typedef std::function<void(const CbnClient*, const Model::UnassociateCenBandwidthPackageRequest&, const UnassociateCenBandwidthPackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
UnassociateCenBandwidthPackageOutcomeCallable unassociateCenBandwidthPackageCallable(const Model::UnassociateCenBandwidthPackageRequest& request) const;

View File

@@ -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_;

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cbn/CbnExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cbn/CbnExport.h>
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_

View File

@@ -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_;

View File

@@ -41,14 +41,22 @@ namespace AlibabaCloud
void setCommunityMatchMode(const std::string& communityMatchMode);
std::string getMapResult()const;
void setMapResult(const std::string& mapResult);
std::vector<std::string> getDestinationRegionIds()const;
void setDestinationRegionIds(const std::vector<std::string>& destinationRegionIds);
int getNextPriority()const;
void setNextPriority(int nextPriority);
std::vector<std::string> getDestinationCidrBlocks()const;
void setDestinationCidrBlocks(const std::vector<std::string>& destinationCidrBlocks);
bool getSystemPolicy()const;
void setSystemPolicy(bool systemPolicy);
std::vector<std::string> getOriginalRouteTableIds()const;
void setOriginalRouteTableIds(const std::vector<std::string>& originalRouteTableIds);
std::vector<std::string> getSourceInstanceIds()const;
void setSourceInstanceIds(const std::vector<std::string>& sourceInstanceIds);
std::vector<std::string> getSourceRegionIds()const;
void setSourceRegionIds(const std::vector<std::string>& sourceRegionIds);
std::string getGatewayZoneId()const;
void setGatewayZoneId(const std::string& gatewayZoneId);
std::vector<long> getMatchAsns()const;
void setMatchAsns(const std::vector<long>& matchAsns);
int getPreference()const;
@@ -69,6 +77,8 @@ namespace AlibabaCloud
void setOperateCommunitySet(const std::vector<std::string>& operateCommunitySet);
std::vector<std::string> getRouteTypes()const;
void setRouteTypes(const std::vector<std::string>& 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<std::string> getDestinationRouteTableIds()const;
void setDestinationRouteTableIds(const std::vector<std::string>& destinationRouteTableIds);
std::vector<std::string> getSourceZoneIds()const;
void setSourceZoneIds(const std::vector<std::string>& sourceZoneIds);
std::string getTransmitDirection()const;
void setTransmitDirection(const std::string& transmitDirection);
std::vector<std::string> getDestinationInstanceIds()const;
@@ -102,10 +114,14 @@ namespace AlibabaCloud
long resourceOwnerId_;
std::string communityMatchMode_;
std::string mapResult_;
std::vector<std::string> destinationRegionIds_;
int nextPriority_;
std::vector<std::string> destinationCidrBlocks_;
bool systemPolicy_;
std::vector<std::string> originalRouteTableIds_;
std::vector<std::string> sourceInstanceIds_;
std::vector<std::string> sourceRegionIds_;
std::string gatewayZoneId_;
std::vector<long> matchAsns_;
int preference_;
long ownerId_;
@@ -116,11 +132,13 @@ namespace AlibabaCloud
std::string communityOperateMode_;
std::vector<std::string> operateCommunitySet_;
std::vector<std::string> routeTypes_;
std::string matchAddressType_;
std::string cidrMatchMode_;
std::string cenId_;
std::string description_;
bool sourceInstanceIdsReverseMatch_;
std::vector<std::string> destinationRouteTableIds_;
std::vector<std::string> sourceZoneIds_;
std::string transmitDirection_;
std::vector<std::string> destinationInstanceIds_;
std::string resourceOwnerAccount_;

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cbn/CbnExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cbn/CbnExport.h>
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_

View File

@@ -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_;

View File

@@ -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<ChildInstanceRouteTable> 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<ChildInstanceRouteTable> childInstanceRouteTables_;
std::string childInstanceType_;
std::string ipv6StatusInCen_;
std::string cenId_;
std::string childInstanceAttachTime_;
long childInstanceOwnerId_;

View File

@@ -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<std::string> value;
@@ -51,6 +56,8 @@ namespace AlibabaCloud
void setIsOrKey(bool isOrKey);
int getPageSize()const;
void setPageSize(int pageSize);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& 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> tag_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;

View File

@@ -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<CenBandwidthPackage::Tag> tags;
};

View File

@@ -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_;
};

View File

@@ -35,6 +35,7 @@ namespace AlibabaCloud
struct CenInterRegionBandwidthLimit
{
std::string status;
std::string transitRouterAttachmentId;
std::string geographicSpanId;
std::string oppositeRegionId;
std::string cenId;

View File

@@ -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_;

View File

@@ -30,6 +30,12 @@ namespace AlibabaCloud
{
class ALIBABACLOUD_CBN_EXPORT DescribeCenRouteMapsRequest : public RpcServiceRequest
{
public:
struct Filter
{
std::vector<std::string> 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<Filter> getFilter()const;
void setFilter(const std::vector<Filter>& 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> filter_;
std::string cenRegionId_;
};

View File

@@ -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<std::string> originalRouteTableIds;
std::vector<std::string> routeTypes;
std::string gatewayZoneId;
int preference;
std::string communityOperateMode;
std::string cenId;
std::vector<std::string> destinationRegionIds;
int nextPriority;
std::vector<std::string> prependAsPath;
std::string communityMatchMode;
std::vector<std::string> srcZoneIds;
std::vector<std::string> matchAsns;
std::vector<std::string> sourceRegionIds;
};

View File

@@ -34,6 +34,7 @@ namespace AlibabaCloud
public:
struct VbrHealthCheck
{
std::string vbrInstanceRegionId;
std::string linkStatus;
int healthCheckInterval;
std::string vbrInstanceId;

View File

@@ -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<std::string> cenBandwidthPackageIds;

View File

@@ -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_;
};
}

View File

@@ -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_;

View File

@@ -41,14 +41,20 @@ namespace AlibabaCloud
void setCommunityMatchMode(const std::string& communityMatchMode);
std::string getMapResult()const;
void setMapResult(const std::string& mapResult);
std::vector<std::string> getDestinationRegionIds()const;
void setDestinationRegionIds(const std::vector<std::string>& destinationRegionIds);
int getNextPriority()const;
void setNextPriority(int nextPriority);
std::vector<std::string> getDestinationCidrBlocks()const;
void setDestinationCidrBlocks(const std::vector<std::string>& destinationCidrBlocks);
std::vector<std::string> getOriginalRouteTableIds()const;
void setOriginalRouteTableIds(const std::vector<std::string>& originalRouteTableIds);
std::vector<std::string> getSourceInstanceIds()const;
void setSourceInstanceIds(const std::vector<std::string>& sourceInstanceIds);
std::vector<std::string> getSourceRegionIds()const;
void setSourceRegionIds(const std::vector<std::string>& sourceRegionIds);
std::string getGatewayZoneId()const;
void setGatewayZoneId(const std::string& gatewayZoneId);
std::vector<int> getMatchAsns()const;
void setMatchAsns(const std::vector<int>& matchAsns);
int getPreference()const;
@@ -69,6 +75,8 @@ namespace AlibabaCloud
void setOperateCommunitySet(const std::vector<std::string>& operateCommunitySet);
std::vector<std::string> getRouteTypes()const;
void setRouteTypes(const std::vector<std::string>& 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<std::string> getDestinationRouteTableIds()const;
void setDestinationRouteTableIds(const std::vector<std::string>& destinationRouteTableIds);
std::vector<std::string> getSourceZoneIds()const;
void setSourceZoneIds(const std::vector<std::string>& sourceZoneIds);
std::vector<std::string> getDestinationInstanceIds()const;
void setDestinationInstanceIds(const std::vector<std::string>& destinationInstanceIds);
std::string getResourceOwnerAccount()const;
@@ -102,10 +112,13 @@ namespace AlibabaCloud
long resourceOwnerId_;
std::string communityMatchMode_;
std::string mapResult_;
std::vector<std::string> destinationRegionIds_;
int nextPriority_;
std::vector<std::string> destinationCidrBlocks_;
std::vector<std::string> originalRouteTableIds_;
std::vector<std::string> sourceInstanceIds_;
std::vector<std::string> sourceRegionIds_;
std::string gatewayZoneId_;
std::vector<int> matchAsns_;
int preference_;
long ownerId_;
@@ -116,11 +129,13 @@ namespace AlibabaCloud
std::string communityOperateMode_;
std::vector<std::string> operateCommunitySet_;
std::vector<std::string> routeTypes_;
std::string matchAddressType_;
std::string cidrMatchMode_;
std::string cenId_;
std::string description_;
bool sourceInstanceIdsReverseMatch_;
std::vector<std::string> destinationRouteTableIds_;
std::vector<std::string> sourceZoneIds_;
std::vector<std::string> destinationInstanceIds_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cbn/CbnExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cbn/CbnExport.h>
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_

View File

@@ -37,6 +37,8 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
bool getAll()const;
void setAll(bool all);
std::vector<std::string> getResourceId()const;
void setResourceId(const std::vector<std::string>& resourceId);
std::string getResourceOwnerAccount()const;
@@ -52,6 +54,7 @@ namespace AlibabaCloud
private:
long resourceOwnerId_;
bool all_;
std::vector<std::string> resourceId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;

View File

@@ -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<const AsyncCallerContext>& 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<std::packaged_task<CreateCenChildInstanceRouteEntryToCenOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DeleteCenChildInstanceRouteEntryToCenOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<TempUpgradeCenBandwidthPackageSpecOutcome()>>(
[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();

View File

@@ -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_;

View File

@@ -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 <alibabacloud/cbn/model/CreateCenChildInstanceRouteEntryToCenRequest.h>
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));
}

View File

@@ -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 <alibabacloud/cbn/model/CreateCenChildInstanceRouteEntryToCenResult.h>
#include <json/json.h>
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());
}

View File

@@ -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_;

View File

@@ -60,6 +60,19 @@ void CreateCenRouteMapRequest::setMapResult(const std::string& mapResult)
setParameter("MapResult", mapResult);
}
std::vector<std::string> CreateCenRouteMapRequest::getDestinationRegionIds()const
{
return destinationRegionIds_;
}
void CreateCenRouteMapRequest::setDestinationRegionIds(const std::vector<std::string>& 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<std::s
}
}
bool CreateCenRouteMapRequest::getSystemPolicy()const
{
return systemPolicy_;
}
void CreateCenRouteMapRequest::setSystemPolicy(bool systemPolicy)
{
systemPolicy_ = systemPolicy;
setParameter("SystemPolicy", systemPolicy ? "true" : "false");
}
std::vector<std::string> CreateCenRouteMapRequest::getOriginalRouteTableIds()const
{
return originalRouteTableIds_;
}
void CreateCenRouteMapRequest::setOriginalRouteTableIds(const std::vector<std::string>& originalRouteTableIds)
{
originalRouteTableIds_ = originalRouteTableIds;
for(int dep1 = 0; dep1!= originalRouteTableIds.size(); dep1++) {
setParameter("OriginalRouteTableIds."+ std::to_string(dep1), originalRouteTableIds.at(dep1));
}
}
std::vector<std::string> CreateCenRouteMapRequest::getSourceInstanceIds()const
{
return sourceInstanceIds_;
@@ -110,6 +147,17 @@ void CreateCenRouteMapRequest::setSourceRegionIds(const std::vector<std::string>
}
}
std::string CreateCenRouteMapRequest::getGatewayZoneId()const
{
return gatewayZoneId_;
}
void CreateCenRouteMapRequest::setGatewayZoneId(const std::string& gatewayZoneId)
{
gatewayZoneId_ = gatewayZoneId;
setParameter("GatewayZoneId", gatewayZoneId);
}
std::vector<long> CreateCenRouteMapRequest::getMatchAsns()const
{
return matchAsns_;
@@ -232,6 +280,17 @@ void CreateCenRouteMapRequest::setRouteTypes(const std::vector<std::string>& 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<std
}
}
std::vector<std::string> CreateCenRouteMapRequest::getSourceZoneIds()const
{
return sourceZoneIds_;
}
void CreateCenRouteMapRequest::setSourceZoneIds(const std::vector<std::string>& 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_;

View File

@@ -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 <alibabacloud/cbn/model/DeleteCenChildInstanceRouteEntryToCenRequest.h>
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));
}

View File

@@ -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 <alibabacloud/cbn/model/DeleteCenChildInstanceRouteEntryToCenResult.h>
#include <json/json.h>
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());
}

View File

@@ -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_;

View File

@@ -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::ChildInstanceRouteTable> 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_;

View File

@@ -82,6 +82,22 @@ void DescribeCenBandwidthPackagesRequest::setPageSize(int pageSize)
setParameter("PageSize", std::to_string(pageSize));
}
std::vector<DescribeCenBandwidthPackagesRequest::Tag> DescribeCenBandwidthPackagesRequest::getTag()const
{
return tag_;
}
void DescribeCenBandwidthPackagesRequest::setTag(const std::vector<Tag>& 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_;

View File

@@ -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());

View File

@@ -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_;

View File

@@ -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"];

View File

@@ -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);

View File

@@ -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_;

View File

@@ -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"];

View File

@@ -126,6 +126,24 @@ void DescribeCenRouteMapsRequest::setOwnerId(long ownerId)
setParameter("OwnerId", std::to_string(ownerId));
}
std::vector<DescribeCenRouteMapsRequest::Filter> DescribeCenRouteMapsRequest::getFilter()const
{
return filter_;
}
void DescribeCenRouteMapsRequest::setFilter(const std::vector<Filter>& 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_;

View File

@@ -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())

View File

@@ -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())

View File

@@ -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"];

View File

@@ -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));
}

View File

@@ -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);

View File

@@ -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_;

View File

@@ -60,6 +60,19 @@ void ModifyCenRouteMapRequest::setMapResult(const std::string& mapResult)
setParameter("MapResult", mapResult);
}
std::vector<std::string> ModifyCenRouteMapRequest::getDestinationRegionIds()const
{
return destinationRegionIds_;
}
void ModifyCenRouteMapRequest::setDestinationRegionIds(const std::vector<std::string>& 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<std::s
}
}
std::vector<std::string> ModifyCenRouteMapRequest::getOriginalRouteTableIds()const
{
return originalRouteTableIds_;
}
void ModifyCenRouteMapRequest::setOriginalRouteTableIds(const std::vector<std::string>& originalRouteTableIds)
{
originalRouteTableIds_ = originalRouteTableIds;
for(int dep1 = 0; dep1!= originalRouteTableIds.size(); dep1++) {
setParameter("OriginalRouteTableIds."+ std::to_string(dep1), originalRouteTableIds.at(dep1));
}
}
std::vector<std::string> ModifyCenRouteMapRequest::getSourceInstanceIds()const
{
return sourceInstanceIds_;
@@ -110,6 +136,17 @@ void ModifyCenRouteMapRequest::setSourceRegionIds(const std::vector<std::string>
}
}
std::string ModifyCenRouteMapRequest::getGatewayZoneId()const
{
return gatewayZoneId_;
}
void ModifyCenRouteMapRequest::setGatewayZoneId(const std::string& gatewayZoneId)
{
gatewayZoneId_ = gatewayZoneId;
setParameter("GatewayZoneId", gatewayZoneId);
}
std::vector<int> ModifyCenRouteMapRequest::getMatchAsns()const
{
return matchAsns_;
@@ -232,6 +269,17 @@ void ModifyCenRouteMapRequest::setRouteTypes(const std::vector<std::string>& 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<std
}
}
std::vector<std::string> ModifyCenRouteMapRequest::getSourceZoneIds()const
{
return sourceZoneIds_;
}
void ModifyCenRouteMapRequest::setSourceZoneIds(const std::vector<std::string>& sourceZoneIds)
{
sourceZoneIds_ = sourceZoneIds;
for(int dep1 = 0; dep1!= sourceZoneIds.size(); dep1++) {
setParameter("SourceZoneIds."+ std::to_string(dep1), sourceZoneIds.at(dep1));
}
}
std::vector<std::string> ModifyCenRouteMapRequest::getDestinationInstanceIds()const
{
return destinationInstanceIds_;

View File

@@ -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 <alibabacloud/cbn/model/TempUpgradeCenBandwidthPackageSpecRequest.h>
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);
}

View File

@@ -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 <alibabacloud/cbn/model/TempUpgradeCenBandwidthPackageSpecResult.h>
#include <json/json.h>
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());
}

View File

@@ -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<std::string> UntagResourcesRequest::getResourceId()const
{
return resourceId_;