diff --git a/VERSION b/VERSION index ed076b735..651cf00fb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1276 \ No newline at end of file +1.36.1277 \ No newline at end of file diff --git a/cbn/CMakeLists.txt b/cbn/CMakeLists.txt index 5d3ba5f7b..25ddd6c4b 100644 --- a/cbn/CMakeLists.txt +++ b/cbn/CMakeLists.txt @@ -47,6 +47,8 @@ set(cbn_public_header_model include/alibabacloud/cbn/model/CreateCenChildInstanceRouteEntryToCenResult.h include/alibabacloud/cbn/model/CreateCenInterRegionTrafficQosPolicyRequest.h include/alibabacloud/cbn/model/CreateCenInterRegionTrafficQosPolicyResult.h + include/alibabacloud/cbn/model/CreateCenInterRegionTrafficQosQueueRequest.h + include/alibabacloud/cbn/model/CreateCenInterRegionTrafficQosQueueResult.h include/alibabacloud/cbn/model/CreateCenRouteMapRequest.h include/alibabacloud/cbn/model/CreateCenRouteMapResult.h include/alibabacloud/cbn/model/CreateFlowlogRequest.h @@ -149,6 +151,8 @@ set(cbn_public_header_model include/alibabacloud/cbn/model/DescribeGeographicRegionMembershipResult.h include/alibabacloud/cbn/model/DescribeGrantRulesToCenRequest.h include/alibabacloud/cbn/model/DescribeGrantRulesToCenResult.h + include/alibabacloud/cbn/model/DescribeGrantRulesToResourceRequest.h + include/alibabacloud/cbn/model/DescribeGrantRulesToResourceResult.h include/alibabacloud/cbn/model/DescribePublishedRouteEntriesRequest.h include/alibabacloud/cbn/model/DescribePublishedRouteEntriesResult.h include/alibabacloud/cbn/model/DescribeRouteConflictRequest.h @@ -237,6 +241,8 @@ set(cbn_public_header_model include/alibabacloud/cbn/model/RegisterTransitRouterMulticastGroupMembersResult.h include/alibabacloud/cbn/model/RegisterTransitRouterMulticastGroupSourcesRequest.h include/alibabacloud/cbn/model/RegisterTransitRouterMulticastGroupSourcesResult.h + include/alibabacloud/cbn/model/RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest.h + include/alibabacloud/cbn/model/RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult.h include/alibabacloud/cbn/model/RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest.h include/alibabacloud/cbn/model/RemoveTraficMatchRuleFromTrafficMarkingPolicyResult.h include/alibabacloud/cbn/model/ReplaceTransitRouterRouteTableAssociationRequest.h @@ -312,6 +318,8 @@ set(cbn_src src/model/CreateCenChildInstanceRouteEntryToCenResult.cc src/model/CreateCenInterRegionTrafficQosPolicyRequest.cc src/model/CreateCenInterRegionTrafficQosPolicyResult.cc + src/model/CreateCenInterRegionTrafficQosQueueRequest.cc + src/model/CreateCenInterRegionTrafficQosQueueResult.cc src/model/CreateCenRouteMapRequest.cc src/model/CreateCenRouteMapResult.cc src/model/CreateFlowlogRequest.cc @@ -414,6 +422,8 @@ set(cbn_src src/model/DescribeGeographicRegionMembershipResult.cc src/model/DescribeGrantRulesToCenRequest.cc src/model/DescribeGrantRulesToCenResult.cc + src/model/DescribeGrantRulesToResourceRequest.cc + src/model/DescribeGrantRulesToResourceResult.cc src/model/DescribePublishedRouteEntriesRequest.cc src/model/DescribePublishedRouteEntriesResult.cc src/model/DescribeRouteConflictRequest.cc @@ -502,6 +512,8 @@ set(cbn_src src/model/RegisterTransitRouterMulticastGroupMembersResult.cc src/model/RegisterTransitRouterMulticastGroupSourcesRequest.cc src/model/RegisterTransitRouterMulticastGroupSourcesResult.cc + src/model/RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest.cc + src/model/RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult.cc src/model/RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest.cc src/model/RemoveTraficMatchRuleFromTrafficMarkingPolicyResult.cc src/model/ReplaceTransitRouterRouteTableAssociationRequest.cc diff --git a/cbn/include/alibabacloud/cbn/CbnClient.h b/cbn/include/alibabacloud/cbn/CbnClient.h index 19f80ee30..03ba1c816 100644 --- a/cbn/include/alibabacloud/cbn/CbnClient.h +++ b/cbn/include/alibabacloud/cbn/CbnClient.h @@ -48,6 +48,8 @@ #include "model/CreateCenChildInstanceRouteEntryToCenResult.h" #include "model/CreateCenInterRegionTrafficQosPolicyRequest.h" #include "model/CreateCenInterRegionTrafficQosPolicyResult.h" +#include "model/CreateCenInterRegionTrafficQosQueueRequest.h" +#include "model/CreateCenInterRegionTrafficQosQueueResult.h" #include "model/CreateCenRouteMapRequest.h" #include "model/CreateCenRouteMapResult.h" #include "model/CreateFlowlogRequest.h" @@ -150,6 +152,8 @@ #include "model/DescribeGeographicRegionMembershipResult.h" #include "model/DescribeGrantRulesToCenRequest.h" #include "model/DescribeGrantRulesToCenResult.h" +#include "model/DescribeGrantRulesToResourceRequest.h" +#include "model/DescribeGrantRulesToResourceResult.h" #include "model/DescribePublishedRouteEntriesRequest.h" #include "model/DescribePublishedRouteEntriesResult.h" #include "model/DescribeRouteConflictRequest.h" @@ -238,6 +242,8 @@ #include "model/RegisterTransitRouterMulticastGroupMembersResult.h" #include "model/RegisterTransitRouterMulticastGroupSourcesRequest.h" #include "model/RegisterTransitRouterMulticastGroupSourcesResult.h" +#include "model/RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest.h" +#include "model/RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult.h" #include "model/RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest.h" #include "model/RemoveTraficMatchRuleFromTrafficMarkingPolicyResult.h" #include "model/ReplaceTransitRouterRouteTableAssociationRequest.h" @@ -332,6 +338,9 @@ namespace AlibabaCloud typedef Outcome CreateCenInterRegionTrafficQosPolicyOutcome; typedef std::future CreateCenInterRegionTrafficQosPolicyOutcomeCallable; typedef std::function&)> CreateCenInterRegionTrafficQosPolicyAsyncHandler; + typedef Outcome CreateCenInterRegionTrafficQosQueueOutcome; + typedef std::future CreateCenInterRegionTrafficQosQueueOutcomeCallable; + typedef std::function&)> CreateCenInterRegionTrafficQosQueueAsyncHandler; typedef Outcome CreateCenRouteMapOutcome; typedef std::future CreateCenRouteMapOutcomeCallable; typedef std::function&)> CreateCenRouteMapAsyncHandler; @@ -485,6 +494,9 @@ namespace AlibabaCloud typedef Outcome DescribeGrantRulesToCenOutcome; typedef std::future DescribeGrantRulesToCenOutcomeCallable; typedef std::function&)> DescribeGrantRulesToCenAsyncHandler; + typedef Outcome DescribeGrantRulesToResourceOutcome; + typedef std::future DescribeGrantRulesToResourceOutcomeCallable; + typedef std::function&)> DescribeGrantRulesToResourceAsyncHandler; typedef Outcome DescribePublishedRouteEntriesOutcome; typedef std::future DescribePublishedRouteEntriesOutcomeCallable; typedef std::function&)> DescribePublishedRouteEntriesAsyncHandler; @@ -617,6 +629,9 @@ namespace AlibabaCloud typedef Outcome RegisterTransitRouterMulticastGroupSourcesOutcome; typedef std::future RegisterTransitRouterMulticastGroupSourcesOutcomeCallable; typedef std::function&)> RegisterTransitRouterMulticastGroupSourcesAsyncHandler; + typedef Outcome RemoveTrafficMatchRuleFromTrafficMarkingPolicyOutcome; + typedef std::future RemoveTrafficMatchRuleFromTrafficMarkingPolicyOutcomeCallable; + typedef std::function&)> RemoveTrafficMatchRuleFromTrafficMarkingPolicyAsyncHandler; typedef Outcome RemoveTraficMatchRuleFromTrafficMarkingPolicyOutcome; typedef std::future RemoveTraficMatchRuleFromTrafficMarkingPolicyOutcomeCallable; typedef std::function&)> RemoveTraficMatchRuleFromTrafficMarkingPolicyAsyncHandler; @@ -730,6 +745,9 @@ namespace AlibabaCloud CreateCenInterRegionTrafficQosPolicyOutcome createCenInterRegionTrafficQosPolicy(const Model::CreateCenInterRegionTrafficQosPolicyRequest &request)const; void createCenInterRegionTrafficQosPolicyAsync(const Model::CreateCenInterRegionTrafficQosPolicyRequest& request, const CreateCenInterRegionTrafficQosPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCenInterRegionTrafficQosPolicyOutcomeCallable createCenInterRegionTrafficQosPolicyCallable(const Model::CreateCenInterRegionTrafficQosPolicyRequest& request) const; + CreateCenInterRegionTrafficQosQueueOutcome createCenInterRegionTrafficQosQueue(const Model::CreateCenInterRegionTrafficQosQueueRequest &request)const; + void createCenInterRegionTrafficQosQueueAsync(const Model::CreateCenInterRegionTrafficQosQueueRequest& request, const CreateCenInterRegionTrafficQosQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCenInterRegionTrafficQosQueueOutcomeCallable createCenInterRegionTrafficQosQueueCallable(const Model::CreateCenInterRegionTrafficQosQueueRequest& request) const; CreateCenRouteMapOutcome createCenRouteMap(const Model::CreateCenRouteMapRequest &request)const; void createCenRouteMapAsync(const Model::CreateCenRouteMapRequest& request, const CreateCenRouteMapAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCenRouteMapOutcomeCallable createCenRouteMapCallable(const Model::CreateCenRouteMapRequest& request) const; @@ -883,6 +901,9 @@ namespace AlibabaCloud DescribeGrantRulesToCenOutcome describeGrantRulesToCen(const Model::DescribeGrantRulesToCenRequest &request)const; void describeGrantRulesToCenAsync(const Model::DescribeGrantRulesToCenRequest& request, const DescribeGrantRulesToCenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeGrantRulesToCenOutcomeCallable describeGrantRulesToCenCallable(const Model::DescribeGrantRulesToCenRequest& request) const; + DescribeGrantRulesToResourceOutcome describeGrantRulesToResource(const Model::DescribeGrantRulesToResourceRequest &request)const; + void describeGrantRulesToResourceAsync(const Model::DescribeGrantRulesToResourceRequest& request, const DescribeGrantRulesToResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGrantRulesToResourceOutcomeCallable describeGrantRulesToResourceCallable(const Model::DescribeGrantRulesToResourceRequest& request) const; DescribePublishedRouteEntriesOutcome describePublishedRouteEntries(const Model::DescribePublishedRouteEntriesRequest &request)const; void describePublishedRouteEntriesAsync(const Model::DescribePublishedRouteEntriesRequest& request, const DescribePublishedRouteEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribePublishedRouteEntriesOutcomeCallable describePublishedRouteEntriesCallable(const Model::DescribePublishedRouteEntriesRequest& request) const; @@ -1015,6 +1036,9 @@ namespace AlibabaCloud RegisterTransitRouterMulticastGroupSourcesOutcome registerTransitRouterMulticastGroupSources(const Model::RegisterTransitRouterMulticastGroupSourcesRequest &request)const; void registerTransitRouterMulticastGroupSourcesAsync(const Model::RegisterTransitRouterMulticastGroupSourcesRequest& request, const RegisterTransitRouterMulticastGroupSourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RegisterTransitRouterMulticastGroupSourcesOutcomeCallable registerTransitRouterMulticastGroupSourcesCallable(const Model::RegisterTransitRouterMulticastGroupSourcesRequest& request) const; + RemoveTrafficMatchRuleFromTrafficMarkingPolicyOutcome removeTrafficMatchRuleFromTrafficMarkingPolicy(const Model::RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest &request)const; + void removeTrafficMatchRuleFromTrafficMarkingPolicyAsync(const Model::RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest& request, const RemoveTrafficMatchRuleFromTrafficMarkingPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveTrafficMatchRuleFromTrafficMarkingPolicyOutcomeCallable removeTrafficMatchRuleFromTrafficMarkingPolicyCallable(const Model::RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest& request) const; RemoveTraficMatchRuleFromTrafficMarkingPolicyOutcome removeTraficMatchRuleFromTrafficMarkingPolicy(const Model::RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest &request)const; void removeTraficMatchRuleFromTrafficMarkingPolicyAsync(const Model::RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest& request, const RemoveTraficMatchRuleFromTrafficMarkingPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveTraficMatchRuleFromTrafficMarkingPolicyOutcomeCallable removeTraficMatchRuleFromTrafficMarkingPolicyCallable(const Model::RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest& request) const; diff --git a/cbn/include/alibabacloud/cbn/model/CreateCenInterRegionTrafficQosQueueRequest.h b/cbn/include/alibabacloud/cbn/model/CreateCenInterRegionTrafficQosQueueRequest.h new file mode 100644 index 000000000..abf963429 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/CreateCenInterRegionTrafficQosQueueRequest.h @@ -0,0 +1,72 @@ +/* + * 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_CREATECENINTERREGIONTRAFFICQOSQUEUEREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_CREATECENINTERREGIONTRAFFICQOSQUEUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cbn { +namespace Model { +class ALIBABACLOUD_CBN_EXPORT CreateCenInterRegionTrafficQosQueueRequest : public RpcServiceRequest { +public: + CreateCenInterRegionTrafficQosQueueRequest(); + ~CreateCenInterRegionTrafficQosQueueRequest(); + std::vector getDscps() const; + void setDscps(const std::vector &dscps); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getQosQueueName() const; + void setQosQueueName(const std::string &qosQueueName); + std::string getRemainBandwidthPercent() const; + void setRemainBandwidthPercent(const std::string &remainBandwidthPercent); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getTrafficQosPolicyId() const; + void setTrafficQosPolicyId(const std::string &trafficQosPolicyId); + 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 getQosQueueDescription() const; + void setQosQueueDescription(const std::string &qosQueueDescription); + +private: + std::vector dscps_; + long resourceOwnerId_; + std::string clientToken_; + std::string qosQueueName_; + std::string remainBandwidthPercent_; + bool dryRun_; + std::string trafficQosPolicyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string qosQueueDescription_; +}; +} // namespace Model +} // namespace Cbn +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CBN_MODEL_CREATECENINTERREGIONTRAFFICQOSQUEUEREQUEST_H_ diff --git a/cbn/include/alibabacloud/cbn/model/CreateCenInterRegionTrafficQosQueueResult.h b/cbn/include/alibabacloud/cbn/model/CreateCenInterRegionTrafficQosQueueResult.h new file mode 100644 index 000000000..48d1de8d5 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/CreateCenInterRegionTrafficQosQueueResult.h @@ -0,0 +1,51 @@ +/* + * 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_CREATECENINTERREGIONTRAFFICQOSQUEUERESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_CREATECENINTERREGIONTRAFFICQOSQUEUERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT CreateCenInterRegionTrafficQosQueueResult : public ServiceResult + { + public: + + + CreateCenInterRegionTrafficQosQueueResult(); + explicit CreateCenInterRegionTrafficQosQueueResult(const std::string &payload); + ~CreateCenInterRegionTrafficQosQueueResult(); + std::string getQosQueueId()const; + + protected: + void parse(const std::string &payload); + private: + std::string qosQueueId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_CREATECENINTERREGIONTRAFFICQOSQUEUERESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToCenRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToCenRequest.h index eaa8534ee..d98286719 100644 --- a/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToCenRequest.h +++ b/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToCenRequest.h @@ -38,21 +38,27 @@ public: void setProductType(const std::string &productType); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); 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); + long getMaxResults() const; + void setMaxResults(long maxResults); private: long resourceOwnerId_; std::string cenId_; std::string productType_; std::string regionId_; + std::string nextToken_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + long maxResults_; }; } // namespace Model } // namespace Cbn diff --git a/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToCenResult.h b/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToCenResult.h index 6dd294419..3bb7a1968 100644 --- a/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToCenResult.h +++ b/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToCenResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string childInstanceType; std::string orderType; + long cenOwnerId; std::string cenId; long childInstanceOwnerId; std::string childInstanceId; @@ -46,11 +47,17 @@ namespace AlibabaCloud DescribeGrantRulesToCenResult(); explicit DescribeGrantRulesToCenResult(const std::string &payload); ~DescribeGrantRulesToCenResult(); + long getTotalCount()const; + std::string getNextToken()const; + long getMaxResults()const; std::vector getGrantRules()const; protected: void parse(const std::string &payload); private: + long totalCount_; + std::string nextToken_; + long maxResults_; std::vector grantRules_; }; diff --git a/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToResourceRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToResourceRequest.h new file mode 100644 index 000000000..5668ecfac --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToResourceRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBEGRANTRULESTORESOURCEREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBEGRANTRULESTORESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cbn { +namespace Model { +class ALIBABACLOUD_CBN_EXPORT DescribeGrantRulesToResourceRequest : public RpcServiceRequest { +public: + DescribeGrantRulesToResourceRequest(); + ~DescribeGrantRulesToResourceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getProductType() const; + void setProductType(const std::string &productType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + 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); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + long resourceOwnerId_; + std::string productType_; + std::string regionId_; + std::string nextToken_; + std::string resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int maxResults_; +}; +} // namespace Model +} // namespace Cbn +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBEGRANTRULESTORESOURCEREQUEST_H_ diff --git a/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToResourceResult.h b/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToResourceResult.h new file mode 100644 index 000000000..e17ca177b --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToResourceResult.h @@ -0,0 +1,63 @@ +/* + * 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_DESCRIBEGRANTRULESTORESOURCERESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBEGRANTRULESTORESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeGrantRulesToResourceResult : public ServiceResult + { + public: + struct GrantRule + { + std::string orderType; + long cenOwnerId; + std::string cenId; + }; + + + DescribeGrantRulesToResourceResult(); + explicit DescribeGrantRulesToResourceResult(const std::string &payload); + ~DescribeGrantRulesToResourceResult(); + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + std::vector getGrantRules()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + int maxResults_; + std::vector grantRules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBEGRANTRULESTORESOURCERESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/ListTransitRouterMulticastDomainAssociationsRequest.h b/cbn/include/alibabacloud/cbn/model/ListTransitRouterMulticastDomainAssociationsRequest.h index e4c27b80d..44515f3a5 100644 --- a/cbn/include/alibabacloud/cbn/model/ListTransitRouterMulticastDomainAssociationsRequest.h +++ b/cbn/include/alibabacloud/cbn/model/ListTransitRouterMulticastDomainAssociationsRequest.h @@ -42,8 +42,6 @@ public: void setNextToken(const std::string &nextToken); std::string getResourceId() const; void setResourceId(const std::string &resourceId); - bool getDryRun() const; - void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -64,7 +62,6 @@ private: std::string transitRouterMulticastDomainId_; std::string nextToken_; std::string resourceId_; - bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/cbn/include/alibabacloud/cbn/model/ListTransitRouterMulticastDomainsRequest.h b/cbn/include/alibabacloud/cbn/model/ListTransitRouterMulticastDomainsRequest.h index d23101457..9b82399ff 100644 --- a/cbn/include/alibabacloud/cbn/model/ListTransitRouterMulticastDomainsRequest.h +++ b/cbn/include/alibabacloud/cbn/model/ListTransitRouterMulticastDomainsRequest.h @@ -42,8 +42,6 @@ public: void setRegionId(const std::string ®ionId); std::string getNextToken() const; void setNextToken(const std::string &nextToken); - bool getDryRun() const; - void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -62,7 +60,6 @@ private: std::string transitRouterMulticastDomainId_; std::string regionId_; std::string nextToken_; - bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/cbn/include/alibabacloud/cbn/model/ListTransitRouterPrefixListAssociationResult.h b/cbn/include/alibabacloud/cbn/model/ListTransitRouterPrefixListAssociationResult.h index b5a129769..012404cf7 100644 --- a/cbn/include/alibabacloud/cbn/model/ListTransitRouterPrefixListAssociationResult.h +++ b/cbn/include/alibabacloud/cbn/model/ListTransitRouterPrefixListAssociationResult.h @@ -41,6 +41,7 @@ namespace AlibabaCloud long ownerUid; std::string nextHop; std::string nextHopInstanceId; + std::string transitRouterId; }; diff --git a/cbn/include/alibabacloud/cbn/model/RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest.h b/cbn/include/alibabacloud/cbn/model/RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest.h new file mode 100644 index 000000000..8143cab72 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest.h @@ -0,0 +1,63 @@ +/* + * 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_REMOVETRAFFICMATCHRULEFROMTRAFFICMARKINGPOLICYREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_REMOVETRAFFICMATCHRULEFROMTRAFFICMARKINGPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cbn { +namespace Model { +class ALIBABACLOUD_CBN_EXPORT RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest : public RpcServiceRequest { +public: + RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest(); + ~RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getTrafficMarkingPolicyId() const; + void setTrafficMarkingPolicyId(const std::string &trafficMarkingPolicyId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::vector getTrafficMarkRuleIds() const; + void setTrafficMarkRuleIds(const std::vector &trafficMarkRuleIds); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string trafficMarkingPolicyId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::vector trafficMarkRuleIds_; + long ownerId_; +}; +} // namespace Model +} // namespace Cbn +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CBN_MODEL_REMOVETRAFFICMATCHRULEFROMTRAFFICMARKINGPOLICYREQUEST_H_ diff --git a/cbn/include/alibabacloud/cbn/model/RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult.h b/cbn/include/alibabacloud/cbn/model/RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult.h new file mode 100644 index 000000000..3df7d5493 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_REMOVETRAFFICMATCHRULEFROMTRAFFICMARKINGPOLICYRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_REMOVETRAFFICMATCHRULEFROMTRAFFICMARKINGPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult : public ServiceResult + { + public: + + + RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult(); + explicit RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult(const std::string &payload); + ~RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_REMOVETRAFFICMATCHRULEFROMTRAFFICMARKINGPOLICYRESULT_H_ \ No newline at end of file diff --git a/cbn/src/CbnClient.cc b/cbn/src/CbnClient.cc index 78e8c9dc9..b992d0c73 100644 --- a/cbn/src/CbnClient.cc +++ b/cbn/src/CbnClient.cc @@ -519,6 +519,42 @@ CbnClient::CreateCenInterRegionTrafficQosPolicyOutcomeCallable CbnClient::create return task->get_future(); } +CbnClient::CreateCenInterRegionTrafficQosQueueOutcome CbnClient::createCenInterRegionTrafficQosQueue(const CreateCenInterRegionTrafficQosQueueRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCenInterRegionTrafficQosQueueOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCenInterRegionTrafficQosQueueOutcome(CreateCenInterRegionTrafficQosQueueResult(outcome.result())); + else + return CreateCenInterRegionTrafficQosQueueOutcome(outcome.error()); +} + +void CbnClient::createCenInterRegionTrafficQosQueueAsync(const CreateCenInterRegionTrafficQosQueueRequest& request, const CreateCenInterRegionTrafficQosQueueAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCenInterRegionTrafficQosQueue(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::CreateCenInterRegionTrafficQosQueueOutcomeCallable CbnClient::createCenInterRegionTrafficQosQueueCallable(const CreateCenInterRegionTrafficQosQueueRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCenInterRegionTrafficQosQueue(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CbnClient::CreateCenRouteMapOutcome CbnClient::createCenRouteMap(const CreateCenRouteMapRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2355,6 +2391,42 @@ CbnClient::DescribeGrantRulesToCenOutcomeCallable CbnClient::describeGrantRulesT return task->get_future(); } +CbnClient::DescribeGrantRulesToResourceOutcome CbnClient::describeGrantRulesToResource(const DescribeGrantRulesToResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGrantRulesToResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGrantRulesToResourceOutcome(DescribeGrantRulesToResourceResult(outcome.result())); + else + return DescribeGrantRulesToResourceOutcome(outcome.error()); +} + +void CbnClient::describeGrantRulesToResourceAsync(const DescribeGrantRulesToResourceRequest& request, const DescribeGrantRulesToResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGrantRulesToResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeGrantRulesToResourceOutcomeCallable CbnClient::describeGrantRulesToResourceCallable(const DescribeGrantRulesToResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGrantRulesToResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CbnClient::DescribePublishedRouteEntriesOutcome CbnClient::describePublishedRouteEntries(const DescribePublishedRouteEntriesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3939,6 +4011,42 @@ CbnClient::RegisterTransitRouterMulticastGroupSourcesOutcomeCallable CbnClient:: return task->get_future(); } +CbnClient::RemoveTrafficMatchRuleFromTrafficMarkingPolicyOutcome CbnClient::removeTrafficMatchRuleFromTrafficMarkingPolicy(const RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveTrafficMatchRuleFromTrafficMarkingPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveTrafficMatchRuleFromTrafficMarkingPolicyOutcome(RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult(outcome.result())); + else + return RemoveTrafficMatchRuleFromTrafficMarkingPolicyOutcome(outcome.error()); +} + +void CbnClient::removeTrafficMatchRuleFromTrafficMarkingPolicyAsync(const RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest& request, const RemoveTrafficMatchRuleFromTrafficMarkingPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeTrafficMatchRuleFromTrafficMarkingPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::RemoveTrafficMatchRuleFromTrafficMarkingPolicyOutcomeCallable CbnClient::removeTrafficMatchRuleFromTrafficMarkingPolicyCallable(const RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeTrafficMatchRuleFromTrafficMarkingPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CbnClient::RemoveTraficMatchRuleFromTrafficMarkingPolicyOutcome CbnClient::removeTraficMatchRuleFromTrafficMarkingPolicy(const RemoveTraficMatchRuleFromTrafficMarkingPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/cbn/src/model/CreateCenInterRegionTrafficQosQueueRequest.cc b/cbn/src/model/CreateCenInterRegionTrafficQosQueueRequest.cc new file mode 100644 index 000000000..288402ec8 --- /dev/null +++ b/cbn/src/model/CreateCenInterRegionTrafficQosQueueRequest.cc @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::CreateCenInterRegionTrafficQosQueueRequest; + +CreateCenInterRegionTrafficQosQueueRequest::CreateCenInterRegionTrafficQosQueueRequest() + : RpcServiceRequest("cbn", "2017-09-12", "CreateCenInterRegionTrafficQosQueue") { + setMethod(HttpRequest::Method::Post); +} + +CreateCenInterRegionTrafficQosQueueRequest::~CreateCenInterRegionTrafficQosQueueRequest() {} + +std::vector CreateCenInterRegionTrafficQosQueueRequest::getDscps() const { + return dscps_; +} + +void CreateCenInterRegionTrafficQosQueueRequest::setDscps(const std::vector &dscps) { + dscps_ = dscps; +} + +long CreateCenInterRegionTrafficQosQueueRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateCenInterRegionTrafficQosQueueRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateCenInterRegionTrafficQosQueueRequest::getClientToken() const { + return clientToken_; +} + +void CreateCenInterRegionTrafficQosQueueRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateCenInterRegionTrafficQosQueueRequest::getQosQueueName() const { + return qosQueueName_; +} + +void CreateCenInterRegionTrafficQosQueueRequest::setQosQueueName(const std::string &qosQueueName) { + qosQueueName_ = qosQueueName; + setParameter(std::string("QosQueueName"), qosQueueName); +} + +std::string CreateCenInterRegionTrafficQosQueueRequest::getRemainBandwidthPercent() const { + return remainBandwidthPercent_; +} + +void CreateCenInterRegionTrafficQosQueueRequest::setRemainBandwidthPercent(const std::string &remainBandwidthPercent) { + remainBandwidthPercent_ = remainBandwidthPercent; + setParameter(std::string("RemainBandwidthPercent"), remainBandwidthPercent); +} + +bool CreateCenInterRegionTrafficQosQueueRequest::getDryRun() const { + return dryRun_; +} + +void CreateCenInterRegionTrafficQosQueueRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateCenInterRegionTrafficQosQueueRequest::getTrafficQosPolicyId() const { + return trafficQosPolicyId_; +} + +void CreateCenInterRegionTrafficQosQueueRequest::setTrafficQosPolicyId(const std::string &trafficQosPolicyId) { + trafficQosPolicyId_ = trafficQosPolicyId; + setParameter(std::string("TrafficQosPolicyId"), trafficQosPolicyId); +} + +std::string CreateCenInterRegionTrafficQosQueueRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateCenInterRegionTrafficQosQueueRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateCenInterRegionTrafficQosQueueRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateCenInterRegionTrafficQosQueueRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateCenInterRegionTrafficQosQueueRequest::getOwnerId() const { + return ownerId_; +} + +void CreateCenInterRegionTrafficQosQueueRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateCenInterRegionTrafficQosQueueRequest::getQosQueueDescription() const { + return qosQueueDescription_; +} + +void CreateCenInterRegionTrafficQosQueueRequest::setQosQueueDescription(const std::string &qosQueueDescription) { + qosQueueDescription_ = qosQueueDescription; + setParameter(std::string("QosQueueDescription"), qosQueueDescription); +} + diff --git a/cbn/src/model/CreateCenInterRegionTrafficQosQueueResult.cc b/cbn/src/model/CreateCenInterRegionTrafficQosQueueResult.cc new file mode 100644 index 000000000..f399767ad --- /dev/null +++ b/cbn/src/model/CreateCenInterRegionTrafficQosQueueResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +CreateCenInterRegionTrafficQosQueueResult::CreateCenInterRegionTrafficQosQueueResult() : + ServiceResult() +{} + +CreateCenInterRegionTrafficQosQueueResult::CreateCenInterRegionTrafficQosQueueResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCenInterRegionTrafficQosQueueResult::~CreateCenInterRegionTrafficQosQueueResult() +{} + +void CreateCenInterRegionTrafficQosQueueResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["QosQueueId"].isNull()) + qosQueueId_ = value["QosQueueId"].asString(); + +} + +std::string CreateCenInterRegionTrafficQosQueueResult::getQosQueueId()const +{ + return qosQueueId_; +} + diff --git a/cbn/src/model/DescribeGrantRulesToCenRequest.cc b/cbn/src/model/DescribeGrantRulesToCenRequest.cc index 549eec736..12e6f9805 100644 --- a/cbn/src/model/DescribeGrantRulesToCenRequest.cc +++ b/cbn/src/model/DescribeGrantRulesToCenRequest.cc @@ -61,6 +61,15 @@ void DescribeGrantRulesToCenRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::string DescribeGrantRulesToCenRequest::getNextToken() const { + return nextToken_; +} + +void DescribeGrantRulesToCenRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + std::string DescribeGrantRulesToCenRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -88,3 +97,12 @@ void DescribeGrantRulesToCenRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +long DescribeGrantRulesToCenRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeGrantRulesToCenRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/cbn/src/model/DescribeGrantRulesToCenResult.cc b/cbn/src/model/DescribeGrantRulesToCenResult.cc index 41b26a258..d1b4e9ae9 100644 --- a/cbn/src/model/DescribeGrantRulesToCenResult.cc +++ b/cbn/src/model/DescribeGrantRulesToCenResult.cc @@ -55,11 +55,34 @@ void DescribeGrantRulesToCenResult::parse(const std::string &payload) grantRulesObject.cenId = valueGrantRulesGrantRule["CenId"].asString(); if(!valueGrantRulesGrantRule["OrderType"].isNull()) grantRulesObject.orderType = valueGrantRulesGrantRule["OrderType"].asString(); + if(!valueGrantRulesGrantRule["CenOwnerId"].isNull()) + grantRulesObject.cenOwnerId = std::stol(valueGrantRulesGrantRule["CenOwnerId"].asString()); grantRules_.push_back(grantRulesObject); } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stol(value["MaxResults"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); } +long DescribeGrantRulesToCenResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeGrantRulesToCenResult::getNextToken()const +{ + return nextToken_; +} + +long DescribeGrantRulesToCenResult::getMaxResults()const +{ + return maxResults_; +} + std::vector DescribeGrantRulesToCenResult::getGrantRules()const { return grantRules_; diff --git a/cbn/src/model/DescribeGrantRulesToResourceRequest.cc b/cbn/src/model/DescribeGrantRulesToResourceRequest.cc new file mode 100644 index 000000000..03a719bd3 --- /dev/null +++ b/cbn/src/model/DescribeGrantRulesToResourceRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::DescribeGrantRulesToResourceRequest; + +DescribeGrantRulesToResourceRequest::DescribeGrantRulesToResourceRequest() + : RpcServiceRequest("cbn", "2017-09-12", "DescribeGrantRulesToResource") { + setMethod(HttpRequest::Method::Post); +} + +DescribeGrantRulesToResourceRequest::~DescribeGrantRulesToResourceRequest() {} + +long DescribeGrantRulesToResourceRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeGrantRulesToResourceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeGrantRulesToResourceRequest::getProductType() const { + return productType_; +} + +void DescribeGrantRulesToResourceRequest::setProductType(const std::string &productType) { + productType_ = productType; + setParameter(std::string("ProductType"), productType); +} + +std::string DescribeGrantRulesToResourceRequest::getRegionId() const { + return regionId_; +} + +void DescribeGrantRulesToResourceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeGrantRulesToResourceRequest::getNextToken() const { + return nextToken_; +} + +void DescribeGrantRulesToResourceRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string DescribeGrantRulesToResourceRequest::getResourceId() const { + return resourceId_; +} + +void DescribeGrantRulesToResourceRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string DescribeGrantRulesToResourceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeGrantRulesToResourceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeGrantRulesToResourceRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeGrantRulesToResourceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeGrantRulesToResourceRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeGrantRulesToResourceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +int DescribeGrantRulesToResourceRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeGrantRulesToResourceRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/cbn/src/model/DescribeGrantRulesToResourceResult.cc b/cbn/src/model/DescribeGrantRulesToResourceResult.cc new file mode 100644 index 000000000..3f8b35238 --- /dev/null +++ b/cbn/src/model/DescribeGrantRulesToResourceResult.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribeGrantRulesToResourceResult::DescribeGrantRulesToResourceResult() : + ServiceResult() +{} + +DescribeGrantRulesToResourceResult::DescribeGrantRulesToResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGrantRulesToResourceResult::~DescribeGrantRulesToResourceResult() +{} + +void DescribeGrantRulesToResourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allGrantRulesNode = value["GrantRules"]["GrantRule"]; + for (auto valueGrantRulesGrantRule : allGrantRulesNode) + { + GrantRule grantRulesObject; + if(!valueGrantRulesGrantRule["CenOwnerId"].isNull()) + grantRulesObject.cenOwnerId = std::stol(valueGrantRulesGrantRule["CenOwnerId"].asString()); + if(!valueGrantRulesGrantRule["OrderType"].isNull()) + grantRulesObject.orderType = valueGrantRulesGrantRule["OrderType"].asString(); + if(!valueGrantRulesGrantRule["CenId"].isNull()) + grantRulesObject.cenId = valueGrantRulesGrantRule["CenId"].asString(); + grantRules_.push_back(grantRulesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +int DescribeGrantRulesToResourceResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeGrantRulesToResourceResult::getNextToken()const +{ + return nextToken_; +} + +int DescribeGrantRulesToResourceResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector DescribeGrantRulesToResourceResult::getGrantRules()const +{ + return grantRules_; +} + diff --git a/cbn/src/model/ListTransitRouterMulticastDomainAssociationsRequest.cc b/cbn/src/model/ListTransitRouterMulticastDomainAssociationsRequest.cc index 24aad7280..62747ac63 100644 --- a/cbn/src/model/ListTransitRouterMulticastDomainAssociationsRequest.cc +++ b/cbn/src/model/ListTransitRouterMulticastDomainAssociationsRequest.cc @@ -78,15 +78,6 @@ void ListTransitRouterMulticastDomainAssociationsRequest::setResourceId(const st setParameter(std::string("ResourceId"), resourceId); } -bool ListTransitRouterMulticastDomainAssociationsRequest::getDryRun() const { - return dryRun_; -} - -void ListTransitRouterMulticastDomainAssociationsRequest::setDryRun(bool dryRun) { - dryRun_ = dryRun; - setParameter(std::string("DryRun"), dryRun ? "true" : "false"); -} - std::string ListTransitRouterMulticastDomainAssociationsRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/cbn/src/model/ListTransitRouterMulticastDomainsRequest.cc b/cbn/src/model/ListTransitRouterMulticastDomainsRequest.cc index 31c31ab21..f55637765 100644 --- a/cbn/src/model/ListTransitRouterMulticastDomainsRequest.cc +++ b/cbn/src/model/ListTransitRouterMulticastDomainsRequest.cc @@ -79,15 +79,6 @@ void ListTransitRouterMulticastDomainsRequest::setNextToken(const std::string &n setParameter(std::string("NextToken"), nextToken); } -bool ListTransitRouterMulticastDomainsRequest::getDryRun() const { - return dryRun_; -} - -void ListTransitRouterMulticastDomainsRequest::setDryRun(bool dryRun) { - dryRun_ = dryRun; - setParameter(std::string("DryRun"), dryRun ? "true" : "false"); -} - std::string ListTransitRouterMulticastDomainsRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/cbn/src/model/ListTransitRouterPrefixListAssociationResult.cc b/cbn/src/model/ListTransitRouterPrefixListAssociationResult.cc index 2b5bba004..67efde15f 100644 --- a/cbn/src/model/ListTransitRouterPrefixListAssociationResult.cc +++ b/cbn/src/model/ListTransitRouterPrefixListAssociationResult.cc @@ -57,6 +57,8 @@ void ListTransitRouterPrefixListAssociationResult::parse(const std::string &payl prefixListsObject.nextHopType = valuePrefixListsPrefixList["NextHopType"].asString(); if(!valuePrefixListsPrefixList["TransitRouterTableId"].isNull()) prefixListsObject.transitRouterTableId = valuePrefixListsPrefixList["TransitRouterTableId"].asString(); + if(!valuePrefixListsPrefixList["TransitRouterId"].isNull()) + prefixListsObject.transitRouterId = valuePrefixListsPrefixList["TransitRouterId"].asString(); prefixLists_.push_back(prefixListsObject); } if(!value["TotalCount"].isNull()) diff --git a/cbn/src/model/RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest.cc b/cbn/src/model/RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest.cc new file mode 100644 index 000000000..27ac6bc7d --- /dev/null +++ b/cbn/src/model/RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest; + +RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest::RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest() + : RpcServiceRequest("cbn", "2017-09-12", "RemoveTrafficMatchRuleFromTrafficMarkingPolicy") { + setMethod(HttpRequest::Method::Post); +} + +RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest::~RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest() {} + +long RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest::getClientToken() const { + return clientToken_; +} + +void RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest::getTrafficMarkingPolicyId() const { + return trafficMarkingPolicyId_; +} + +void RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest::setTrafficMarkingPolicyId(const std::string &trafficMarkingPolicyId) { + trafficMarkingPolicyId_ = trafficMarkingPolicyId; + setParameter(std::string("TrafficMarkingPolicyId"), trafficMarkingPolicyId); +} + +bool RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest::getDryRun() const { + return dryRun_; +} + +void RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::vector RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest::getTrafficMarkRuleIds() const { + return trafficMarkRuleIds_; +} + +void RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest::setTrafficMarkRuleIds(const std::vector &trafficMarkRuleIds) { + trafficMarkRuleIds_ = trafficMarkRuleIds; +} + +long RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest::getOwnerId() const { + return ownerId_; +} + +void RemoveTrafficMatchRuleFromTrafficMarkingPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/cbn/src/model/RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult.cc b/cbn/src/model/RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult.cc new file mode 100644 index 000000000..3eaf64402 --- /dev/null +++ b/cbn/src/model/RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult::RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult() : + ServiceResult() +{} + +RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult::RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult::~RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult() +{} + +void RemoveTrafficMatchRuleFromTrafficMarkingPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +