Compare commits

...

37 Commits

Author SHA1 Message Date
sdk-team
d5c4d3d92a Update ScreenChestCT. 2021-03-03 02:43:48 +00:00
sdk-team
ed6a90e129 Update default endpoints. 2021-03-02 11:48:59 +00:00
sdk-team
d838ddc386 Supported API for dnsCache. 2021-03-02 10:57:02 +00:00
sdk-team
b22b8d5846 Support GroupCoverFace ExternalId for ListFaceGroups. 2021-03-02 06:12:20 +00:00
sdk-team
36c78f0497 AMP Version Change. 2021-03-01 07:10:25 +00:00
sdk-team
78e7f635c2 AMP Version Change. 2021-02-28 08:57:05 +00:00
sdk-team
d57006bd72 Add TaskId for DescribeMigrationJobStatus, DescribeSubscriptionInstanceStatus, DescribeSynchronizationJobStatus. 2021-02-26 07:19:42 +00:00
sdk-team
4017f787f4 Support SLR by InitializeDbsServiceLinkedRole action. 2021-02-26 03:39:03 +00:00
sdk-team
9f93cb2d7c Support SLR by InitializeDbsServiceLinkedRole action. 2021-02-25 14:39:45 +00:00
sdk-team
fc224224bd Generated 2020-05-18 for dataworks-public. 2021-02-25 09:20:41 +00:00
sdk-team
f9099c0746 Generated 2020-05-18 for dataworks-public. 2021-02-24 12:38:14 +00:00
sdk-team
dcc90161eb ALL API. 2021-02-24 11:40:34 +00:00
sdk-team
7bde7a21f4 Supported List Namespaces. 2021-02-23 02:22:22 +00:00
sdk-team
e912c2adc5 Support input parameter DeploymentSetId for CreateAutoProvisioningGroup. 2021-02-22 08:42:47 +00:00
sdk-team
82cfdabb16 Generated 2020-01-11 for servicemesh. 2021-02-19 08:11:59 +00:00
sdk-team
a009cbcc4f Add new API for recording. 2021-02-19 08:09:01 +00:00
sdk-team
3338987506 Add API OpenOnsService which can active ons service. 2021-02-19 08:06:57 +00:00
sdk-team
ef67947d20 Generated 2018-06-01 for dataworks-public. 2021-02-19 08:04:30 +00:00
sdk-team
42440e1078 Update SegmentBody. 2021-02-19 08:03:06 +00:00
sdk-team
44de17f30a DescribeAvailableResource support list available resource for modify instance. 2021-02-19 08:01:30 +00:00
sdk-team
1f7ee9ecc1 Update SetVideoSeekConfig. 2021-02-19 07:58:20 +00:00
sdk-team
b5cb1df9e3 Release InterpolateVideoFrame. 2021-02-19 07:57:14 +00:00
sdk-team
03b5f7b37b Create TSDB Open api. 2021-02-19 07:53:30 +00:00
sdk-team
9bf214bc2c Add. 2021-02-19 07:52:20 +00:00
sdk-team
9bdc7d4fa5 Generated 2019-01-01 for Cassandra. 2021-02-19 07:51:13 +00:00
sdk-team
80f230d35a Supported API for GTM. 2021-02-19 07:50:09 +00:00
sdk-team
0faf3e6ffa Support CPP and Go and PHP. 2021-02-19 07:48:16 +00:00
sdk-team
3dcd83a4f3 Support some MergeRequest API. 2021-02-19 07:44:26 +00:00
sdk-team
052017ee0a Fix IoT Studio BatchBindDevicesIntoProject API return datatype. 2021-02-08 10:32:04 +00:00
sdk-team
cbf2412b29 Add username for RunCommand and InvokeCommand. 2021-02-08 09:37:31 +00:00
sdk-team
9fd09665ff Update PedestrianDetectAttribute. 2021-02-08 02:28:57 +00:00
sdk-team
7964674af1 Add IoT Studio BatchBindDevicesIntoProject API. 2021-02-07 13:38:41 +00:00
sdk-team
38db21928a Support patch manager apis. 2021-02-07 10:02:16 +00:00
sdk-team
4899593377 Support some MergeRequest API. 2021-02-07 09:05:00 +00:00
sdk-team
ecf3cb4bb0 Generated 2020-05-18 for dataworks-public. 2021-02-05 09:47:20 +00:00
sdk-team
7b2178ef7c Update Open API. 2021-02-05 06:57:25 +00:00
sdk-team
de338b6bec Generated 2020-05-18 for dataworks-public. 2021-02-05 02:30:31 +00:00
799 changed files with 25031 additions and 2842 deletions

125
CHANGELOG
View File

@@ -1,3 +1,128 @@
2021-03-03 Version: patch
- Update ScreenChestCT.
2021-03-02 Version: patch
- Update default endpoints.
2021-03-02 Version: patch
- Supported API for dnsCache.
- Supported API for GTM.
2021-03-02 Version: patch
- Support GroupCoverFace ExternalId for ListFaceGroups.
- Support ResetItems for UpdateFaceGroup.
2021-03-01 Version: patch
- AMP Version Change.
2021-02-28 Version: patch
- AMP Version Change.
2021-02-26 Version: patch
- Add TaskId for DescribeMigrationJobStatus, DescribeSubscriptionInstanceStatus, DescribeSynchronizationJobStatus.
- Add API CreateDtsInstance, ConfigureDtsJob, StartDtsJob.
2021-02-26 Version: patch
- Support SLR by InitializeDbsServiceLinkedRole action.
- Change DescribeIncrementBackupList and DescribeFullBackupList to Support Range filter by endTimestamp.
- Change DescribeRestoreTaskList to Support Range filter by createTime.
2021-02-25 Version: patch
- Support SLR by InitializeDbsServiceLinkedRole action.
- Change DescribeIncrementBackupList and DescribeFullBackupList to Support Range filter.
2021-02-25 Version: patch
- Generated 2020-05-18 for `dataworks-public`.
2021-02-24 Version: patch
- Generated 2020-05-18 for `dataworks-public`.
2021-02-24 Version: patch
- ALL API.
2021-02-23 Version: patch
- Supported List Namespaces.
- Supported List Groups.
- Supported List Jobs.
2021-02-22 Version: patch
- Support input parameter DeploymentSetId for CreateAutoProvisioningGroup.
2021-02-19 Version: patch
- Generated 2020-01-11 for `servicemesh`.
2021-02-19 Version: patch
- Add new API for recording.
2021-02-19 Version: patch
- Add API OpenOnsService which can active ons service.
2021-02-19 Version: patch
- Generated 2018-06-01 for `dataworks-public`.
2021-02-19 Version: patch
- Update SegmentBody.
2021-02-19 Version: patch
- DescribeAvailableResource support list available resource for modify instance.
2021-02-19 Version: patch
- Update SetVideoSeekConfig.
2021-02-19 Version: patch
- Release InterpolateVideoFrame.
2021-02-19 Version: patch
- Create TSDB Open api.
2021-02-19 Version: patch
- Add.
2021-02-19 Version: patch
- Generated 2019-01-01 for `Cassandra`.
2021-02-19 Version: patch
- Supported API for GTM.
2021-02-19 Version: patch
- Support CPP and Go and PHP.
2021-02-19 Version: patch
- Support some MergeRequest API.
2021-02-08 Version: patch
- Fix IoT Studio BatchBindDevicesIntoProject API return datatype.
- Fix IoT Studio BatchBindProductsIntoProject API return datatype.
- Fix IoT Studio BatchUnbindProjectDevices API return datatype.
- Fix IoT Studio BatchUnbindProjectProducts API return datatype.
2021-02-08 Version: patch
- Add username for RunCommand and InvokeCommand.
2021-02-08 Version: patch
- Update PedestrianDetectAttribute.
2021-02-07 Version: patch
- Add IoT Studio BatchBindDevicesIntoProject API.
- Add IoT Studio BatchBindProductsIntoProject API.
- Add IoT Studio BatchUnbindProjectDevices API.
- Add IoT Studio BatchUnbindProjectProducts API.
2021-02-07 Version: patch
- Support patch manager apis.
2021-02-07 Version: patch
- Support some MergeRequest API.
2021-02-05 Version: patch
- Generated 2020-05-18 for `dataworks-public`.
2021-02-05 Version: patch
- Update Open API.
2021-02-05 Version: patch
- Generated 2020-05-18 for `dataworks-public`.
2021-02-04 Version: patch
- Update DetectVehicleIllegalParking DetectVehicleICongestion.

View File

@@ -23,6 +23,8 @@ set(alidns_public_header
set(alidns_public_header_model
include/alibabacloud/alidns/model/AddCustomLineRequest.h
include/alibabacloud/alidns/model/AddCustomLineResult.h
include/alibabacloud/alidns/model/AddDnsCacheDomainRequest.h
include/alibabacloud/alidns/model/AddDnsCacheDomainResult.h
include/alibabacloud/alidns/model/AddDnsGtmAccessStrategyRequest.h
include/alibabacloud/alidns/model/AddDnsGtmAccessStrategyResult.h
include/alibabacloud/alidns/model/AddDnsGtmAddressPoolRequest.h
@@ -55,6 +57,8 @@ set(alidns_public_header_model
include/alibabacloud/alidns/model/CopyGtmConfigResult.h
include/alibabacloud/alidns/model/DeleteCustomLinesRequest.h
include/alibabacloud/alidns/model/DeleteCustomLinesResult.h
include/alibabacloud/alidns/model/DeleteDnsCacheDomainRequest.h
include/alibabacloud/alidns/model/DeleteDnsCacheDomainResult.h
include/alibabacloud/alidns/model/DeleteDnsGtmAccessStrategyRequest.h
include/alibabacloud/alidns/model/DeleteDnsGtmAccessStrategyResult.h
include/alibabacloud/alidns/model/DeleteDnsGtmAddressPoolRequest.h
@@ -83,6 +87,8 @@ set(alidns_public_header_model
include/alibabacloud/alidns/model/DescribeCustomLinesResult.h
include/alibabacloud/alidns/model/DescribeDNSSLBSubDomainsRequest.h
include/alibabacloud/alidns/model/DescribeDNSSLBSubDomainsResult.h
include/alibabacloud/alidns/model/DescribeDnsCacheDomainsRequest.h
include/alibabacloud/alidns/model/DescribeDnsCacheDomainsResult.h
include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategiesRequest.h
include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategiesResult.h
include/alibabacloud/alidns/model/DescribeDnsGtmAccessStrategyRequest.h
@@ -247,6 +253,10 @@ set(alidns_public_header_model
include/alibabacloud/alidns/model/UpdateCustomLineResult.h
include/alibabacloud/alidns/model/UpdateDNSSLBWeightRequest.h
include/alibabacloud/alidns/model/UpdateDNSSLBWeightResult.h
include/alibabacloud/alidns/model/UpdateDnsCacheDomainRequest.h
include/alibabacloud/alidns/model/UpdateDnsCacheDomainResult.h
include/alibabacloud/alidns/model/UpdateDnsCacheDomainRemarkRequest.h
include/alibabacloud/alidns/model/UpdateDnsCacheDomainRemarkResult.h
include/alibabacloud/alidns/model/UpdateDnsGtmAccessStrategyRequest.h
include/alibabacloud/alidns/model/UpdateDnsGtmAccessStrategyResult.h
include/alibabacloud/alidns/model/UpdateDnsGtmAddressPoolRequest.h
@@ -278,6 +288,8 @@ set(alidns_src
src/AlidnsClient.cc
src/model/AddCustomLineRequest.cc
src/model/AddCustomLineResult.cc
src/model/AddDnsCacheDomainRequest.cc
src/model/AddDnsCacheDomainResult.cc
src/model/AddDnsGtmAccessStrategyRequest.cc
src/model/AddDnsGtmAccessStrategyResult.cc
src/model/AddDnsGtmAddressPoolRequest.cc
@@ -310,6 +322,8 @@ set(alidns_src
src/model/CopyGtmConfigResult.cc
src/model/DeleteCustomLinesRequest.cc
src/model/DeleteCustomLinesResult.cc
src/model/DeleteDnsCacheDomainRequest.cc
src/model/DeleteDnsCacheDomainResult.cc
src/model/DeleteDnsGtmAccessStrategyRequest.cc
src/model/DeleteDnsGtmAccessStrategyResult.cc
src/model/DeleteDnsGtmAddressPoolRequest.cc
@@ -338,6 +352,8 @@ set(alidns_src
src/model/DescribeCustomLinesResult.cc
src/model/DescribeDNSSLBSubDomainsRequest.cc
src/model/DescribeDNSSLBSubDomainsResult.cc
src/model/DescribeDnsCacheDomainsRequest.cc
src/model/DescribeDnsCacheDomainsResult.cc
src/model/DescribeDnsGtmAccessStrategiesRequest.cc
src/model/DescribeDnsGtmAccessStrategiesResult.cc
src/model/DescribeDnsGtmAccessStrategyRequest.cc
@@ -502,6 +518,10 @@ set(alidns_src
src/model/UpdateCustomLineResult.cc
src/model/UpdateDNSSLBWeightRequest.cc
src/model/UpdateDNSSLBWeightResult.cc
src/model/UpdateDnsCacheDomainRequest.cc
src/model/UpdateDnsCacheDomainResult.cc
src/model/UpdateDnsCacheDomainRemarkRequest.cc
src/model/UpdateDnsCacheDomainRemarkResult.cc
src/model/UpdateDnsGtmAccessStrategyRequest.cc
src/model/UpdateDnsGtmAccessStrategyResult.cc
src/model/UpdateDnsGtmAddressPoolRequest.cc

View File

@@ -24,6 +24,8 @@
#include "AlidnsExport.h"
#include "model/AddCustomLineRequest.h"
#include "model/AddCustomLineResult.h"
#include "model/AddDnsCacheDomainRequest.h"
#include "model/AddDnsCacheDomainResult.h"
#include "model/AddDnsGtmAccessStrategyRequest.h"
#include "model/AddDnsGtmAccessStrategyResult.h"
#include "model/AddDnsGtmAddressPoolRequest.h"
@@ -56,6 +58,8 @@
#include "model/CopyGtmConfigResult.h"
#include "model/DeleteCustomLinesRequest.h"
#include "model/DeleteCustomLinesResult.h"
#include "model/DeleteDnsCacheDomainRequest.h"
#include "model/DeleteDnsCacheDomainResult.h"
#include "model/DeleteDnsGtmAccessStrategyRequest.h"
#include "model/DeleteDnsGtmAccessStrategyResult.h"
#include "model/DeleteDnsGtmAddressPoolRequest.h"
@@ -84,6 +88,8 @@
#include "model/DescribeCustomLinesResult.h"
#include "model/DescribeDNSSLBSubDomainsRequest.h"
#include "model/DescribeDNSSLBSubDomainsResult.h"
#include "model/DescribeDnsCacheDomainsRequest.h"
#include "model/DescribeDnsCacheDomainsResult.h"
#include "model/DescribeDnsGtmAccessStrategiesRequest.h"
#include "model/DescribeDnsGtmAccessStrategiesResult.h"
#include "model/DescribeDnsGtmAccessStrategyRequest.h"
@@ -248,6 +254,10 @@
#include "model/UpdateCustomLineResult.h"
#include "model/UpdateDNSSLBWeightRequest.h"
#include "model/UpdateDNSSLBWeightResult.h"
#include "model/UpdateDnsCacheDomainRequest.h"
#include "model/UpdateDnsCacheDomainResult.h"
#include "model/UpdateDnsCacheDomainRemarkRequest.h"
#include "model/UpdateDnsCacheDomainRemarkResult.h"
#include "model/UpdateDnsGtmAccessStrategyRequest.h"
#include "model/UpdateDnsGtmAccessStrategyResult.h"
#include "model/UpdateDnsGtmAddressPoolRequest.h"
@@ -286,6 +296,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::AddCustomLineResult> AddCustomLineOutcome;
typedef std::future<AddCustomLineOutcome> AddCustomLineOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::AddCustomLineRequest&, const AddCustomLineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddCustomLineAsyncHandler;
typedef Outcome<Error, Model::AddDnsCacheDomainResult> AddDnsCacheDomainOutcome;
typedef std::future<AddDnsCacheDomainOutcome> AddDnsCacheDomainOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::AddDnsCacheDomainRequest&, const AddDnsCacheDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddDnsCacheDomainAsyncHandler;
typedef Outcome<Error, Model::AddDnsGtmAccessStrategyResult> AddDnsGtmAccessStrategyOutcome;
typedef std::future<AddDnsGtmAccessStrategyOutcome> AddDnsGtmAccessStrategyOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::AddDnsGtmAccessStrategyRequest&, const AddDnsGtmAccessStrategyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddDnsGtmAccessStrategyAsyncHandler;
@@ -334,6 +347,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteCustomLinesResult> DeleteCustomLinesOutcome;
typedef std::future<DeleteCustomLinesOutcome> DeleteCustomLinesOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DeleteCustomLinesRequest&, const DeleteCustomLinesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCustomLinesAsyncHandler;
typedef Outcome<Error, Model::DeleteDnsCacheDomainResult> DeleteDnsCacheDomainOutcome;
typedef std::future<DeleteDnsCacheDomainOutcome> DeleteDnsCacheDomainOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DeleteDnsCacheDomainRequest&, const DeleteDnsCacheDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDnsCacheDomainAsyncHandler;
typedef Outcome<Error, Model::DeleteDnsGtmAccessStrategyResult> DeleteDnsGtmAccessStrategyOutcome;
typedef std::future<DeleteDnsGtmAccessStrategyOutcome> DeleteDnsGtmAccessStrategyOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DeleteDnsGtmAccessStrategyRequest&, const DeleteDnsGtmAccessStrategyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDnsGtmAccessStrategyAsyncHandler;
@@ -376,6 +392,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDNSSLBSubDomainsResult> DescribeDNSSLBSubDomainsOutcome;
typedef std::future<DescribeDNSSLBSubDomainsOutcome> DescribeDNSSLBSubDomainsOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DescribeDNSSLBSubDomainsRequest&, const DescribeDNSSLBSubDomainsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDNSSLBSubDomainsAsyncHandler;
typedef Outcome<Error, Model::DescribeDnsCacheDomainsResult> DescribeDnsCacheDomainsOutcome;
typedef std::future<DescribeDnsCacheDomainsOutcome> DescribeDnsCacheDomainsOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DescribeDnsCacheDomainsRequest&, const DescribeDnsCacheDomainsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDnsCacheDomainsAsyncHandler;
typedef Outcome<Error, Model::DescribeDnsGtmAccessStrategiesResult> DescribeDnsGtmAccessStrategiesOutcome;
typedef std::future<DescribeDnsGtmAccessStrategiesOutcome> DescribeDnsGtmAccessStrategiesOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DescribeDnsGtmAccessStrategiesRequest&, const DescribeDnsGtmAccessStrategiesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDnsGtmAccessStrategiesAsyncHandler;
@@ -622,6 +641,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateDNSSLBWeightResult> UpdateDNSSLBWeightOutcome;
typedef std::future<UpdateDNSSLBWeightOutcome> UpdateDNSSLBWeightOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::UpdateDNSSLBWeightRequest&, const UpdateDNSSLBWeightOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDNSSLBWeightAsyncHandler;
typedef Outcome<Error, Model::UpdateDnsCacheDomainResult> UpdateDnsCacheDomainOutcome;
typedef std::future<UpdateDnsCacheDomainOutcome> UpdateDnsCacheDomainOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::UpdateDnsCacheDomainRequest&, const UpdateDnsCacheDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDnsCacheDomainAsyncHandler;
typedef Outcome<Error, Model::UpdateDnsCacheDomainRemarkResult> UpdateDnsCacheDomainRemarkOutcome;
typedef std::future<UpdateDnsCacheDomainRemarkOutcome> UpdateDnsCacheDomainRemarkOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::UpdateDnsCacheDomainRemarkRequest&, const UpdateDnsCacheDomainRemarkOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDnsCacheDomainRemarkAsyncHandler;
typedef Outcome<Error, Model::UpdateDnsGtmAccessStrategyResult> UpdateDnsGtmAccessStrategyOutcome;
typedef std::future<UpdateDnsGtmAccessStrategyOutcome> UpdateDnsGtmAccessStrategyOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::UpdateDnsGtmAccessStrategyRequest&, const UpdateDnsGtmAccessStrategyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDnsGtmAccessStrategyAsyncHandler;
@@ -669,6 +694,9 @@ namespace AlibabaCloud
AddCustomLineOutcome addCustomLine(const Model::AddCustomLineRequest &request)const;
void addCustomLineAsync(const Model::AddCustomLineRequest& request, const AddCustomLineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddCustomLineOutcomeCallable addCustomLineCallable(const Model::AddCustomLineRequest& request) const;
AddDnsCacheDomainOutcome addDnsCacheDomain(const Model::AddDnsCacheDomainRequest &request)const;
void addDnsCacheDomainAsync(const Model::AddDnsCacheDomainRequest& request, const AddDnsCacheDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddDnsCacheDomainOutcomeCallable addDnsCacheDomainCallable(const Model::AddDnsCacheDomainRequest& request) const;
AddDnsGtmAccessStrategyOutcome addDnsGtmAccessStrategy(const Model::AddDnsGtmAccessStrategyRequest &request)const;
void addDnsGtmAccessStrategyAsync(const Model::AddDnsGtmAccessStrategyRequest& request, const AddDnsGtmAccessStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddDnsGtmAccessStrategyOutcomeCallable addDnsGtmAccessStrategyCallable(const Model::AddDnsGtmAccessStrategyRequest& request) const;
@@ -717,6 +745,9 @@ namespace AlibabaCloud
DeleteCustomLinesOutcome deleteCustomLines(const Model::DeleteCustomLinesRequest &request)const;
void deleteCustomLinesAsync(const Model::DeleteCustomLinesRequest& request, const DeleteCustomLinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteCustomLinesOutcomeCallable deleteCustomLinesCallable(const Model::DeleteCustomLinesRequest& request) const;
DeleteDnsCacheDomainOutcome deleteDnsCacheDomain(const Model::DeleteDnsCacheDomainRequest &request)const;
void deleteDnsCacheDomainAsync(const Model::DeleteDnsCacheDomainRequest& request, const DeleteDnsCacheDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDnsCacheDomainOutcomeCallable deleteDnsCacheDomainCallable(const Model::DeleteDnsCacheDomainRequest& request) const;
DeleteDnsGtmAccessStrategyOutcome deleteDnsGtmAccessStrategy(const Model::DeleteDnsGtmAccessStrategyRequest &request)const;
void deleteDnsGtmAccessStrategyAsync(const Model::DeleteDnsGtmAccessStrategyRequest& request, const DeleteDnsGtmAccessStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDnsGtmAccessStrategyOutcomeCallable deleteDnsGtmAccessStrategyCallable(const Model::DeleteDnsGtmAccessStrategyRequest& request) const;
@@ -759,6 +790,9 @@ namespace AlibabaCloud
DescribeDNSSLBSubDomainsOutcome describeDNSSLBSubDomains(const Model::DescribeDNSSLBSubDomainsRequest &request)const;
void describeDNSSLBSubDomainsAsync(const Model::DescribeDNSSLBSubDomainsRequest& request, const DescribeDNSSLBSubDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDNSSLBSubDomainsOutcomeCallable describeDNSSLBSubDomainsCallable(const Model::DescribeDNSSLBSubDomainsRequest& request) const;
DescribeDnsCacheDomainsOutcome describeDnsCacheDomains(const Model::DescribeDnsCacheDomainsRequest &request)const;
void describeDnsCacheDomainsAsync(const Model::DescribeDnsCacheDomainsRequest& request, const DescribeDnsCacheDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDnsCacheDomainsOutcomeCallable describeDnsCacheDomainsCallable(const Model::DescribeDnsCacheDomainsRequest& request) const;
DescribeDnsGtmAccessStrategiesOutcome describeDnsGtmAccessStrategies(const Model::DescribeDnsGtmAccessStrategiesRequest &request)const;
void describeDnsGtmAccessStrategiesAsync(const Model::DescribeDnsGtmAccessStrategiesRequest& request, const DescribeDnsGtmAccessStrategiesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDnsGtmAccessStrategiesOutcomeCallable describeDnsGtmAccessStrategiesCallable(const Model::DescribeDnsGtmAccessStrategiesRequest& request) const;
@@ -1005,6 +1039,12 @@ namespace AlibabaCloud
UpdateDNSSLBWeightOutcome updateDNSSLBWeight(const Model::UpdateDNSSLBWeightRequest &request)const;
void updateDNSSLBWeightAsync(const Model::UpdateDNSSLBWeightRequest& request, const UpdateDNSSLBWeightAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDNSSLBWeightOutcomeCallable updateDNSSLBWeightCallable(const Model::UpdateDNSSLBWeightRequest& request) const;
UpdateDnsCacheDomainOutcome updateDnsCacheDomain(const Model::UpdateDnsCacheDomainRequest &request)const;
void updateDnsCacheDomainAsync(const Model::UpdateDnsCacheDomainRequest& request, const UpdateDnsCacheDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDnsCacheDomainOutcomeCallable updateDnsCacheDomainCallable(const Model::UpdateDnsCacheDomainRequest& request) const;
UpdateDnsCacheDomainRemarkOutcome updateDnsCacheDomainRemark(const Model::UpdateDnsCacheDomainRemarkRequest &request)const;
void updateDnsCacheDomainRemarkAsync(const Model::UpdateDnsCacheDomainRemarkRequest& request, const UpdateDnsCacheDomainRemarkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDnsCacheDomainRemarkOutcomeCallable updateDnsCacheDomainRemarkCallable(const Model::UpdateDnsCacheDomainRemarkRequest& request) const;
UpdateDnsGtmAccessStrategyOutcome updateDnsGtmAccessStrategy(const Model::UpdateDnsGtmAccessStrategyRequest &request)const;
void updateDnsGtmAccessStrategyAsync(const Model::UpdateDnsGtmAccessStrategyRequest& request, const UpdateDnsGtmAccessStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDnsGtmAccessStrategyOutcomeCallable updateDnsGtmAccessStrategyCallable(const Model::UpdateDnsGtmAccessStrategyRequest& request) const;

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_ALIDNS_MODEL_ADDDNSCACHEDOMAINREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_ADDDNSCACHEDOMAINREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT AddDnsCacheDomainRequest : public RpcServiceRequest
{
public:
struct SourceDnsServer
{
std::string port;
std::string host;
};
public:
AddDnsCacheDomainRequest();
~AddDnsCacheDomainRequest();
std::string getRemark()const;
void setRemark(const std::string& remark);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSourceProtocol()const;
void setSourceProtocol(const std::string& sourceProtocol);
std::string getLang()const;
void setLang(const std::string& lang);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
int getCacheTtlMax()const;
void setCacheTtlMax(int cacheTtlMax);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getSourceEdns()const;
void setSourceEdns(const std::string& sourceEdns);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
int getCacheTtlMin()const;
void setCacheTtlMin(int cacheTtlMin);
std::vector<SourceDnsServer> getSourceDnsServer()const;
void setSourceDnsServer(const std::vector<SourceDnsServer>& sourceDnsServer);
private:
std::string remark_;
std::string accessKeyId_;
std::string sourceProtocol_;
std::string lang_;
std::string domainName_;
int cacheTtlMax_;
std::string instanceId_;
std::string sourceEdns_;
std::string userClientIp_;
int cacheTtlMin_;
std::vector<SourceDnsServer> sourceDnsServer_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDNSCACHEDOMAINREQUEST_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_ALIDNS_MODEL_ADDDNSCACHEDOMAINRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_ADDDNSCACHEDOMAINRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT AddDnsCacheDomainResult : public ServiceResult
{
public:
AddDnsCacheDomainResult();
explicit AddDnsCacheDomainResult(const std::string &payload);
~AddDnsCacheDomainResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDNSCACHEDOMAINRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* 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_ALIDNS_MODEL_DELETEDNSCACHEDOMAINREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSCACHEDOMAINREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT DeleteDnsCacheDomainRequest : public RpcServiceRequest
{
public:
DeleteDnsCacheDomainRequest();
~DeleteDnsCacheDomainRequest();
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string domainName_;
std::string accessKeyId_;
std::string userClientIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSCACHEDOMAINREQUEST_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_ALIDNS_MODEL_DELETEDNSCACHEDOMAINRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSCACHEDOMAINRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT DeleteDnsCacheDomainResult : public ServiceResult
{
public:
DeleteDnsCacheDomainResult();
explicit DeleteDnsCacheDomainResult(const std::string &payload);
~DeleteDnsCacheDomainResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETEDNSCACHEDOMAINRESULT_H_

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
DescribeDNSSLBSubDomainsRequest();
~DescribeDNSSLBSubDomainsRequest();
std::string getRr()const;
void setRr(const std::string& rr);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getPageNumber()const;
@@ -49,6 +51,7 @@ namespace AlibabaCloud
void setLang(const std::string& lang);
private:
std::string rr_;
std::string domainName_;
long pageNumber_;
std::string accessKeyId_;

View File

@@ -34,8 +34,14 @@ namespace AlibabaCloud
public:
struct SlbSubDomain
{
struct LineAlgorithm
{
std::string line;
bool open;
};
std::string subDomain;
std::string type;
std::vector<SlbSubDomain::LineAlgorithm> lineAlgorithms;
long recordCount;
bool open;
};

View File

@@ -0,0 +1,60 @@
/*
* 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_ALIDNS_MODEL_DESCRIBEDNSCACHEDOMAINSREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSCACHEDOMAINSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsCacheDomainsRequest : public RpcServiceRequest
{
public:
DescribeDnsCacheDomainsRequest();
~DescribeDnsCacheDomainsRequest();
long getPageNumber()const;
void setPageNumber(long pageNumber);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
long getPageSize()const;
void setPageSize(long pageSize);
std::string getLang()const;
void setLang(const std::string& lang);
std::string getKeyword()const;
void setKeyword(const std::string& keyword);
private:
long pageNumber_;
std::string userClientIp_;
long pageSize_;
std::string lang_;
std::string keyword_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSCACHEDOMAINSREQUEST_H_

View File

@@ -0,0 +1,81 @@
/*
* 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_ALIDNS_MODEL_DESCRIBEDNSCACHEDOMAINSRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSCACHEDOMAINSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT DescribeDnsCacheDomainsResult : public ServiceResult
{
public:
struct Domain
{
struct SourceDnsServer
{
std::string port;
std::string host;
};
long expireTimestamp;
std::string domainName;
std::string instanceId;
std::string createTime;
int cacheTtlMin;
std::string remark;
std::string versionCode;
std::string domainId;
std::string sourceEdns;
std::string updateTime;
std::string sourceProtocol;
long updateTimestamp;
int cacheTtlMax;
std::vector<Domain::SourceDnsServer> sourceDnsServers;
std::string expireTime;
long createTimestamp;
};
DescribeDnsCacheDomainsResult();
explicit DescribeDnsCacheDomainsResult(const std::string &payload);
~DescribeDnsCacheDomainsResult();
std::vector<Domain> getDomains()const;
long getTotalCount()const;
long getPageSize()const;
long getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Domain> domains_;
long totalCount_;
long pageSize_;
long pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDNSCACHEDOMAINSRESULT_H_

View File

@@ -65,8 +65,11 @@ namespace AlibabaCloud
~DescribeDnsGtmAccessStrategyAvailableConfigResult();
std::vector<Ipv4AddrPool> getIpv4AddrPools()const;
std::vector<DomainAddrPool> getDomainAddrPools()const;
std::vector<std::string> getSelectedDomainLines()const;
std::vector<std::string> getSelectedIpv4Lines()const;
std::vector<Ipv6AddrPool> getIpv6AddrPools()const;
std::vector<Line> getLines()const;
std::vector<std::string> getSelectedIpv6Lines()const;
bool getSuggestSetDefaultLine()const;
protected:
@@ -74,8 +77,11 @@ namespace AlibabaCloud
private:
std::vector<Ipv4AddrPool> ipv4AddrPools_;
std::vector<DomainAddrPool> domainAddrPools_;
std::vector<std::string> selectedDomainLines_;
std::vector<std::string> selectedIpv4Lines_;
std::vector<Ipv6AddrPool> ipv6AddrPools_;
std::vector<Line> lines_;
std::vector<std::string> selectedIpv6Lines_;
bool suggestSetDefaultLine_;
};

View File

@@ -34,43 +34,47 @@ namespace AlibabaCloud
public:
struct Ipv4IspCityNode
{
std::string cityCode;
std::string groupName;
std::string cityCode;
std::string ispName;
std::string groupType;
std::string cityName;
std::string ispCode;
bool defaultSelected;
};
struct Ipv6IspCityNode
{
std::string cityCode;
std::string groupName;
std::string ispName;
std::string groupType;
std::string cityName;
std::string ispCode;
bool defaultSelected;
std::vector<std::string> ips;
};
struct DomainIpv4IspCityNode
{
std::string cityCode;
std::string groupName;
std::string cityCode;
std::string ispName;
std::string groupType;
std::vector<std::string> ips1;
std::string cityName;
std::string ispCode;
bool defaultSelected;
std::string ispCode;
};
struct DomainIpv6IspCityNode
{
std::string cityCode;
std::string groupName;
std::string cityCode;
std::string ispName;
std::string groupType;
std::vector<std::string> ips2;
std::string cityName;
std::string ispCode;
bool defaultSelected;
std::string ispCode;
};
struct Ipv6IspCityNode
{
std::string groupName;
std::string cityCode;
std::string ispName;
std::string groupType;
std::vector<std::string> ips3;
std::string cityName;
bool defaultSelected;
std::string ispCode;
};

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
SetDNSSLBStatusRequest();
~SetDNSSLBStatusRequest();
std::string getLine()const;
void setLine(const std::string& line);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getType()const;
@@ -51,6 +53,7 @@ namespace AlibabaCloud
void setOpen(bool open);
private:
std::string line_;
std::string domainName_;
std::string type_;
std::string accessKeyId_;

View File

@@ -0,0 +1,60 @@
/*
* 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_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREMARKREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREMARKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsCacheDomainRemarkRequest : public RpcServiceRequest
{
public:
UpdateDnsCacheDomainRemarkRequest();
~UpdateDnsCacheDomainRemarkRequest();
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getRemark()const;
void setRemark(const std::string& remark);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string domainName_;
std::string remark_;
std::string accessKeyId_;
std::string userClientIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREMARKREQUEST_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_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREMARKRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREMARKRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsCacheDomainRemarkResult : public ServiceResult
{
public:
UpdateDnsCacheDomainRemarkResult();
explicit UpdateDnsCacheDomainRemarkResult(const std::string &payload);
~UpdateDnsCacheDomainRemarkResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREMARKRESULT_H_

View File

@@ -0,0 +1,81 @@
/*
* 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_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsCacheDomainRequest : public RpcServiceRequest
{
public:
struct SourceDnsServer
{
std::string port;
std::string host;
};
public:
UpdateDnsCacheDomainRequest();
~UpdateDnsCacheDomainRequest();
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSourceProtocol()const;
void setSourceProtocol(const std::string& sourceProtocol);
std::string getLang()const;
void setLang(const std::string& lang);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
int getCacheTtlMax()const;
void setCacheTtlMax(int cacheTtlMax);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getSourceEdns()const;
void setSourceEdns(const std::string& sourceEdns);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
int getCacheTtlMin()const;
void setCacheTtlMin(int cacheTtlMin);
std::vector<SourceDnsServer> getSourceDnsServer()const;
void setSourceDnsServer(const std::vector<SourceDnsServer>& sourceDnsServer);
private:
std::string accessKeyId_;
std::string sourceProtocol_;
std::string lang_;
std::string domainName_;
int cacheTtlMax_;
std::string instanceId_;
std::string sourceEdns_;
std::string userClientIp_;
int cacheTtlMin_;
std::vector<SourceDnsServer> sourceDnsServer_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINREQUEST_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_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT UpdateDnsCacheDomainResult : public ServiceResult
{
public:
UpdateDnsCacheDomainResult();
explicit UpdateDnsCacheDomainResult(const std::string &payload);
~UpdateDnsCacheDomainResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATEDNSCACHEDOMAINRESULT_H_

View File

@@ -87,6 +87,42 @@ AlidnsClient::AddCustomLineOutcomeCallable AlidnsClient::addCustomLineCallable(c
return task->get_future();
}
AlidnsClient::AddDnsCacheDomainOutcome AlidnsClient::addDnsCacheDomain(const AddDnsCacheDomainRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddDnsCacheDomainOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddDnsCacheDomainOutcome(AddDnsCacheDomainResult(outcome.result()));
else
return AddDnsCacheDomainOutcome(outcome.error());
}
void AlidnsClient::addDnsCacheDomainAsync(const AddDnsCacheDomainRequest& request, const AddDnsCacheDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addDnsCacheDomain(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::AddDnsCacheDomainOutcomeCallable AlidnsClient::addDnsCacheDomainCallable(const AddDnsCacheDomainRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddDnsCacheDomainOutcome()>>(
[this, request]()
{
return this->addDnsCacheDomain(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::AddDnsGtmAccessStrategyOutcome AlidnsClient::addDnsGtmAccessStrategy(const AddDnsGtmAccessStrategyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -663,6 +699,42 @@ AlidnsClient::DeleteCustomLinesOutcomeCallable AlidnsClient::deleteCustomLinesCa
return task->get_future();
}
AlidnsClient::DeleteDnsCacheDomainOutcome AlidnsClient::deleteDnsCacheDomain(const DeleteDnsCacheDomainRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteDnsCacheDomainOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteDnsCacheDomainOutcome(DeleteDnsCacheDomainResult(outcome.result()));
else
return DeleteDnsCacheDomainOutcome(outcome.error());
}
void AlidnsClient::deleteDnsCacheDomainAsync(const DeleteDnsCacheDomainRequest& request, const DeleteDnsCacheDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteDnsCacheDomain(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::DeleteDnsCacheDomainOutcomeCallable AlidnsClient::deleteDnsCacheDomainCallable(const DeleteDnsCacheDomainRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteDnsCacheDomainOutcome()>>(
[this, request]()
{
return this->deleteDnsCacheDomain(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::DeleteDnsGtmAccessStrategyOutcome AlidnsClient::deleteDnsGtmAccessStrategy(const DeleteDnsGtmAccessStrategyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1167,6 +1239,42 @@ AlidnsClient::DescribeDNSSLBSubDomainsOutcomeCallable AlidnsClient::describeDNSS
return task->get_future();
}
AlidnsClient::DescribeDnsCacheDomainsOutcome AlidnsClient::describeDnsCacheDomains(const DescribeDnsCacheDomainsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDnsCacheDomainsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDnsCacheDomainsOutcome(DescribeDnsCacheDomainsResult(outcome.result()));
else
return DescribeDnsCacheDomainsOutcome(outcome.error());
}
void AlidnsClient::describeDnsCacheDomainsAsync(const DescribeDnsCacheDomainsRequest& request, const DescribeDnsCacheDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDnsCacheDomains(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::DescribeDnsCacheDomainsOutcomeCallable AlidnsClient::describeDnsCacheDomainsCallable(const DescribeDnsCacheDomainsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDnsCacheDomainsOutcome()>>(
[this, request]()
{
return this->describeDnsCacheDomains(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::DescribeDnsGtmAccessStrategiesOutcome AlidnsClient::describeDnsGtmAccessStrategies(const DescribeDnsGtmAccessStrategiesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4119,6 +4227,78 @@ AlidnsClient::UpdateDNSSLBWeightOutcomeCallable AlidnsClient::updateDNSSLBWeight
return task->get_future();
}
AlidnsClient::UpdateDnsCacheDomainOutcome AlidnsClient::updateDnsCacheDomain(const UpdateDnsCacheDomainRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateDnsCacheDomainOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateDnsCacheDomainOutcome(UpdateDnsCacheDomainResult(outcome.result()));
else
return UpdateDnsCacheDomainOutcome(outcome.error());
}
void AlidnsClient::updateDnsCacheDomainAsync(const UpdateDnsCacheDomainRequest& request, const UpdateDnsCacheDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateDnsCacheDomain(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::UpdateDnsCacheDomainOutcomeCallable AlidnsClient::updateDnsCacheDomainCallable(const UpdateDnsCacheDomainRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateDnsCacheDomainOutcome()>>(
[this, request]()
{
return this->updateDnsCacheDomain(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::UpdateDnsCacheDomainRemarkOutcome AlidnsClient::updateDnsCacheDomainRemark(const UpdateDnsCacheDomainRemarkRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateDnsCacheDomainRemarkOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateDnsCacheDomainRemarkOutcome(UpdateDnsCacheDomainRemarkResult(outcome.result()));
else
return UpdateDnsCacheDomainRemarkOutcome(outcome.error());
}
void AlidnsClient::updateDnsCacheDomainRemarkAsync(const UpdateDnsCacheDomainRemarkRequest& request, const UpdateDnsCacheDomainRemarkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateDnsCacheDomainRemark(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::UpdateDnsCacheDomainRemarkOutcomeCallable AlidnsClient::updateDnsCacheDomainRemarkCallable(const UpdateDnsCacheDomainRemarkRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateDnsCacheDomainRemarkOutcome()>>(
[this, request]()
{
return this->updateDnsCacheDomainRemark(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::UpdateDnsGtmAccessStrategyOutcome AlidnsClient::updateDnsGtmAccessStrategy(const UpdateDnsGtmAccessStrategyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,155 @@
/*
* 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/alidns/model/AddDnsCacheDomainRequest.h>
using AlibabaCloud::Alidns::Model::AddDnsCacheDomainRequest;
AddDnsCacheDomainRequest::AddDnsCacheDomainRequest() :
RpcServiceRequest("alidns", "2015-01-09", "AddDnsCacheDomain")
{
setMethod(HttpRequest::Method::Post);
}
AddDnsCacheDomainRequest::~AddDnsCacheDomainRequest()
{}
std::string AddDnsCacheDomainRequest::getRemark()const
{
return remark_;
}
void AddDnsCacheDomainRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setParameter("Remark", remark);
}
std::string AddDnsCacheDomainRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddDnsCacheDomainRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string AddDnsCacheDomainRequest::getSourceProtocol()const
{
return sourceProtocol_;
}
void AddDnsCacheDomainRequest::setSourceProtocol(const std::string& sourceProtocol)
{
sourceProtocol_ = sourceProtocol;
setParameter("SourceProtocol", sourceProtocol);
}
std::string AddDnsCacheDomainRequest::getLang()const
{
return lang_;
}
void AddDnsCacheDomainRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string AddDnsCacheDomainRequest::getDomainName()const
{
return domainName_;
}
void AddDnsCacheDomainRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
int AddDnsCacheDomainRequest::getCacheTtlMax()const
{
return cacheTtlMax_;
}
void AddDnsCacheDomainRequest::setCacheTtlMax(int cacheTtlMax)
{
cacheTtlMax_ = cacheTtlMax;
setParameter("CacheTtlMax", std::to_string(cacheTtlMax));
}
std::string AddDnsCacheDomainRequest::getInstanceId()const
{
return instanceId_;
}
void AddDnsCacheDomainRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AddDnsCacheDomainRequest::getSourceEdns()const
{
return sourceEdns_;
}
void AddDnsCacheDomainRequest::setSourceEdns(const std::string& sourceEdns)
{
sourceEdns_ = sourceEdns;
setParameter("SourceEdns", sourceEdns);
}
std::string AddDnsCacheDomainRequest::getUserClientIp()const
{
return userClientIp_;
}
void AddDnsCacheDomainRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
int AddDnsCacheDomainRequest::getCacheTtlMin()const
{
return cacheTtlMin_;
}
void AddDnsCacheDomainRequest::setCacheTtlMin(int cacheTtlMin)
{
cacheTtlMin_ = cacheTtlMin;
setParameter("CacheTtlMin", std::to_string(cacheTtlMin));
}
std::vector<AddDnsCacheDomainRequest::SourceDnsServer> AddDnsCacheDomainRequest::getSourceDnsServer()const
{
return sourceDnsServer_;
}
void AddDnsCacheDomainRequest::setSourceDnsServer(const std::vector<SourceDnsServer>& sourceDnsServer)
{
sourceDnsServer_ = sourceDnsServer;
for(int dep1 = 0; dep1!= sourceDnsServer.size(); dep1++) {
auto sourceDnsServerObj = sourceDnsServer.at(dep1);
std::string sourceDnsServerObjStr = "SourceDnsServer." + std::to_string(dep1 + 1);
setParameter(sourceDnsServerObjStr + ".Port", sourceDnsServerObj.port);
setParameter(sourceDnsServerObjStr + ".Host", sourceDnsServerObj.host);
}
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/rds/model/ResetAccountForPGResult.h>
#include <alibabacloud/alidns/model/AddDnsCacheDomainResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
ResetAccountForPGResult::ResetAccountForPGResult() :
AddDnsCacheDomainResult::AddDnsCacheDomainResult() :
ServiceResult()
{}
ResetAccountForPGResult::ResetAccountForPGResult(const std::string &payload) :
AddDnsCacheDomainResult::AddDnsCacheDomainResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ResetAccountForPGResult::~ResetAccountForPGResult()
AddDnsCacheDomainResult::~AddDnsCacheDomainResult()
{}
void ResetAccountForPGResult::parse(const std::string &payload)
void AddDnsCacheDomainResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;

View File

@@ -0,0 +1,73 @@
/*
* 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/alidns/model/DeleteDnsCacheDomainRequest.h>
using AlibabaCloud::Alidns::Model::DeleteDnsCacheDomainRequest;
DeleteDnsCacheDomainRequest::DeleteDnsCacheDomainRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DeleteDnsCacheDomain")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDnsCacheDomainRequest::~DeleteDnsCacheDomainRequest()
{}
std::string DeleteDnsCacheDomainRequest::getDomainName()const
{
return domainName_;
}
void DeleteDnsCacheDomainRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DeleteDnsCacheDomainRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteDnsCacheDomainRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DeleteDnsCacheDomainRequest::getUserClientIp()const
{
return userClientIp_;
}
void DeleteDnsCacheDomainRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string DeleteDnsCacheDomainRequest::getLang()const
{
return lang_;
}
void DeleteDnsCacheDomainRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

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/alidns/model/DeleteDnsCacheDomainResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DeleteDnsCacheDomainResult::DeleteDnsCacheDomainResult() :
ServiceResult()
{}
DeleteDnsCacheDomainResult::DeleteDnsCacheDomainResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDnsCacheDomainResult::~DeleteDnsCacheDomainResult()
{}
void DeleteDnsCacheDomainResult::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 @@ DescribeDNSSLBSubDomainsRequest::DescribeDNSSLBSubDomainsRequest() :
DescribeDNSSLBSubDomainsRequest::~DescribeDNSSLBSubDomainsRequest()
{}
std::string DescribeDNSSLBSubDomainsRequest::getRr()const
{
return rr_;
}
void DescribeDNSSLBSubDomainsRequest::setRr(const std::string& rr)
{
rr_ = rr;
setParameter("Rr", rr);
}
std::string DescribeDNSSLBSubDomainsRequest::getDomainName()const
{
return domainName_;

View File

@@ -51,6 +51,16 @@ void DescribeDNSSLBSubDomainsResult::parse(const std::string &payload)
slbSubDomainsObject.open = valueSlbSubDomainsSlbSubDomain["Open"].asString() == "true";
if(!valueSlbSubDomainsSlbSubDomain["Type"].isNull())
slbSubDomainsObject.type = valueSlbSubDomainsSlbSubDomain["Type"].asString();
auto allLineAlgorithmsNode = valueSlbSubDomainsSlbSubDomain["LineAlgorithms"]["LineAlgorithm"];
for (auto valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm : allLineAlgorithmsNode)
{
SlbSubDomain::LineAlgorithm lineAlgorithmsObject;
if(!valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm["Line"].isNull())
lineAlgorithmsObject.line = valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm["Line"].asString();
if(!valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm["Open"].isNull())
lineAlgorithmsObject.open = valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm["Open"].asString() == "true";
slbSubDomainsObject.lineAlgorithms.push_back(lineAlgorithmsObject);
}
slbSubDomains_.push_back(slbSubDomainsObject);
}
if(!value["TotalCount"].isNull())

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.
*/
#include <alibabacloud/alidns/model/DescribeDnsCacheDomainsRequest.h>
using AlibabaCloud::Alidns::Model::DescribeDnsCacheDomainsRequest;
DescribeDnsCacheDomainsRequest::DescribeDnsCacheDomainsRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeDnsCacheDomains")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDnsCacheDomainsRequest::~DescribeDnsCacheDomainsRequest()
{}
long DescribeDnsCacheDomainsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeDnsCacheDomainsRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeDnsCacheDomainsRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeDnsCacheDomainsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
long DescribeDnsCacheDomainsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDnsCacheDomainsRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeDnsCacheDomainsRequest::getLang()const
{
return lang_;
}
void DescribeDnsCacheDomainsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeDnsCacheDomainsRequest::getKeyword()const
{
return keyword_;
}
void DescribeDnsCacheDomainsRequest::setKeyword(const std::string& keyword)
{
keyword_ = keyword;
setParameter("Keyword", keyword);
}

View File

@@ -0,0 +1,116 @@
/*
* 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/alidns/model/DescribeDnsCacheDomainsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeDnsCacheDomainsResult::DescribeDnsCacheDomainsResult() :
ServiceResult()
{}
DescribeDnsCacheDomainsResult::DescribeDnsCacheDomainsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDnsCacheDomainsResult::~DescribeDnsCacheDomainsResult()
{}
void DescribeDnsCacheDomainsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDomainsNode = value["Domains"]["Domain"];
for (auto valueDomainsDomain : allDomainsNode)
{
Domain domainsObject;
if(!valueDomainsDomain["DomainId"].isNull())
domainsObject.domainId = valueDomainsDomain["DomainId"].asString();
if(!valueDomainsDomain["DomainName"].isNull())
domainsObject.domainName = valueDomainsDomain["DomainName"].asString();
if(!valueDomainsDomain["InstanceId"].isNull())
domainsObject.instanceId = valueDomainsDomain["InstanceId"].asString();
if(!valueDomainsDomain["VersionCode"].isNull())
domainsObject.versionCode = valueDomainsDomain["VersionCode"].asString();
if(!valueDomainsDomain["Remark"].isNull())
domainsObject.remark = valueDomainsDomain["Remark"].asString();
if(!valueDomainsDomain["UpdateTime"].isNull())
domainsObject.updateTime = valueDomainsDomain["UpdateTime"].asString();
if(!valueDomainsDomain["UpdateTimestamp"].isNull())
domainsObject.updateTimestamp = std::stol(valueDomainsDomain["UpdateTimestamp"].asString());
if(!valueDomainsDomain["CreateTime"].isNull())
domainsObject.createTime = valueDomainsDomain["CreateTime"].asString();
if(!valueDomainsDomain["CreateTimestamp"].isNull())
domainsObject.createTimestamp = std::stol(valueDomainsDomain["CreateTimestamp"].asString());
if(!valueDomainsDomain["CacheTtlMin"].isNull())
domainsObject.cacheTtlMin = std::stoi(valueDomainsDomain["CacheTtlMin"].asString());
if(!valueDomainsDomain["CacheTtlMax"].isNull())
domainsObject.cacheTtlMax = std::stoi(valueDomainsDomain["CacheTtlMax"].asString());
if(!valueDomainsDomain["SourceProtocol"].isNull())
domainsObject.sourceProtocol = valueDomainsDomain["SourceProtocol"].asString();
if(!valueDomainsDomain["SourceEdns"].isNull())
domainsObject.sourceEdns = valueDomainsDomain["SourceEdns"].asString();
if(!valueDomainsDomain["ExpireTime"].isNull())
domainsObject.expireTime = valueDomainsDomain["ExpireTime"].asString();
if(!valueDomainsDomain["ExpireTimestamp"].isNull())
domainsObject.expireTimestamp = std::stol(valueDomainsDomain["ExpireTimestamp"].asString());
auto allSourceDnsServersNode = valueDomainsDomain["SourceDnsServers"]["SourceDnsServer"];
for (auto valueDomainsDomainSourceDnsServersSourceDnsServer : allSourceDnsServersNode)
{
Domain::SourceDnsServer sourceDnsServersObject;
if(!valueDomainsDomainSourceDnsServersSourceDnsServer["Host"].isNull())
sourceDnsServersObject.host = valueDomainsDomainSourceDnsServersSourceDnsServer["Host"].asString();
if(!valueDomainsDomainSourceDnsServersSourceDnsServer["Port"].isNull())
sourceDnsServersObject.port = valueDomainsDomainSourceDnsServersSourceDnsServer["Port"].asString();
domainsObject.sourceDnsServers.push_back(sourceDnsServersObject);
}
domains_.push_back(domainsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
}
std::vector<DescribeDnsCacheDomainsResult::Domain> DescribeDnsCacheDomainsResult::getDomains()const
{
return domains_;
}
long DescribeDnsCacheDomainsResult::getTotalCount()const
{
return totalCount_;
}
long DescribeDnsCacheDomainsResult::getPageSize()const
{
return pageSize_;
}
long DescribeDnsCacheDomainsResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -91,6 +91,15 @@ void DescribeDnsGtmAccessStrategyAvailableConfigResult::parse(const std::string
domainAddrPoolsObject.addrCount = std::stoi(valueDomainAddrPoolsDomainAddrPool["AddrCount"].asString());
domainAddrPools_.push_back(domainAddrPoolsObject);
}
auto allSelectedIpv4Lines = value["SelectedIpv4Lines"]["SelectedIpv4Line"];
for (const auto &item : allSelectedIpv4Lines)
selectedIpv4Lines_.push_back(item.asString());
auto allSelectedIpv6Lines = value["SelectedIpv6Lines"]["SelectedIpv6Line"];
for (const auto &item : allSelectedIpv6Lines)
selectedIpv6Lines_.push_back(item.asString());
auto allSelectedDomainLines = value["SelectedDomainLines"]["SelectedDomainLine"];
for (const auto &item : allSelectedDomainLines)
selectedDomainLines_.push_back(item.asString());
if(!value["SuggestSetDefaultLine"].isNull())
suggestSetDefaultLine_ = value["SuggestSetDefaultLine"].asString() == "true";
@@ -106,6 +115,16 @@ std::vector<DescribeDnsGtmAccessStrategyAvailableConfigResult::DomainAddrPool> D
return domainAddrPools_;
}
std::vector<std::string> DescribeDnsGtmAccessStrategyAvailableConfigResult::getSelectedDomainLines()const
{
return selectedDomainLines_;
}
std::vector<std::string> DescribeDnsGtmAccessStrategyAvailableConfigResult::getSelectedIpv4Lines()const
{
return selectedIpv4Lines_;
}
std::vector<DescribeDnsGtmAccessStrategyAvailableConfigResult::Ipv6AddrPool> DescribeDnsGtmAccessStrategyAvailableConfigResult::getIpv6AddrPools()const
{
return ipv6AddrPools_;
@@ -116,6 +135,11 @@ std::vector<DescribeDnsGtmAccessStrategyAvailableConfigResult::Line> DescribeDns
return lines_;
}
std::vector<std::string> DescribeDnsGtmAccessStrategyAvailableConfigResult::getSelectedIpv6Lines()const
{
return selectedIpv6Lines_;
}
bool DescribeDnsGtmAccessStrategyAvailableConfigResult::getSuggestSetDefaultLine()const
{
return suggestSetDefaultLine_;

View File

@@ -43,82 +43,94 @@ void DescribeDnsGtmMonitorAvailableConfigResult::parse(const std::string &payloa
for (auto valueIpv4IspCityNodesIpv4IspCityNode : allIpv4IspCityNodesNode)
{
Ipv4IspCityNode ipv4IspCityNodesObject;
if(!valueIpv4IspCityNodesIpv4IspCityNode["IspName"].isNull())
ipv4IspCityNodesObject.ispName = valueIpv4IspCityNodesIpv4IspCityNode["IspName"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["IspCode"].isNull())
ipv4IspCityNodesObject.ispCode = valueIpv4IspCityNodesIpv4IspCityNode["IspCode"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["CityName"].isNull())
ipv4IspCityNodesObject.cityName = valueIpv4IspCityNodesIpv4IspCityNode["CityName"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["CityCode"].isNull())
ipv4IspCityNodesObject.cityCode = valueIpv4IspCityNodesIpv4IspCityNode["CityCode"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["DefaultSelected"].isNull())
ipv4IspCityNodesObject.defaultSelected = valueIpv4IspCityNodesIpv4IspCityNode["DefaultSelected"].asString() == "true";
if(!valueIpv4IspCityNodesIpv4IspCityNode["GroupType"].isNull())
ipv4IspCityNodesObject.groupType = valueIpv4IspCityNodesIpv4IspCityNode["GroupType"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["GroupName"].isNull())
ipv4IspCityNodesObject.groupName = valueIpv4IspCityNodesIpv4IspCityNode["GroupName"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["CityCode"].isNull())
ipv4IspCityNodesObject.cityCode = valueIpv4IspCityNodesIpv4IspCityNode["CityCode"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["IspName"].isNull())
ipv4IspCityNodesObject.ispName = valueIpv4IspCityNodesIpv4IspCityNode["IspName"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["GroupType"].isNull())
ipv4IspCityNodesObject.groupType = valueIpv4IspCityNodesIpv4IspCityNode["GroupType"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["CityName"].isNull())
ipv4IspCityNodesObject.cityName = valueIpv4IspCityNodesIpv4IspCityNode["CityName"].asString();
if(!valueIpv4IspCityNodesIpv4IspCityNode["DefaultSelected"].isNull())
ipv4IspCityNodesObject.defaultSelected = valueIpv4IspCityNodesIpv4IspCityNode["DefaultSelected"].asString() == "true";
if(!valueIpv4IspCityNodesIpv4IspCityNode["IspCode"].isNull())
ipv4IspCityNodesObject.ispCode = valueIpv4IspCityNodesIpv4IspCityNode["IspCode"].asString();
auto allIps = value["Ips"]["Ip"];
for (auto value : allIps)
ipv4IspCityNodesObject.ips.push_back(value.asString());
ipv4IspCityNodes_.push_back(ipv4IspCityNodesObject);
}
auto allIpv6IspCityNodesNode = value["Ipv6IspCityNodes"]["Ipv6IspCityNode"];
for (auto valueIpv6IspCityNodesIpv6IspCityNode : allIpv6IspCityNodesNode)
{
Ipv6IspCityNode ipv6IspCityNodesObject;
if(!valueIpv6IspCityNodesIpv6IspCityNode["IspName"].isNull())
ipv6IspCityNodesObject.ispName = valueIpv6IspCityNodesIpv6IspCityNode["IspName"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["IspCode"].isNull())
ipv6IspCityNodesObject.ispCode = valueIpv6IspCityNodesIpv6IspCityNode["IspCode"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["CityName"].isNull())
ipv6IspCityNodesObject.cityName = valueIpv6IspCityNodesIpv6IspCityNode["CityName"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["CityCode"].isNull())
ipv6IspCityNodesObject.cityCode = valueIpv6IspCityNodesIpv6IspCityNode["CityCode"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["DefaultSelected"].isNull())
ipv6IspCityNodesObject.defaultSelected = valueIpv6IspCityNodesIpv6IspCityNode["DefaultSelected"].asString() == "true";
if(!valueIpv6IspCityNodesIpv6IspCityNode["GroupType"].isNull())
ipv6IspCityNodesObject.groupType = valueIpv6IspCityNodesIpv6IspCityNode["GroupType"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["GroupName"].isNull())
ipv6IspCityNodesObject.groupName = valueIpv6IspCityNodesIpv6IspCityNode["GroupName"].asString();
ipv6IspCityNodes_.push_back(ipv6IspCityNodesObject);
}
auto allDomainIpv4IspCityNodesNode = value["DomainIpv4IspCityNodes"]["DomainIpv4IspCityNode"];
for (auto valueDomainIpv4IspCityNodesDomainIpv4IspCityNode : allDomainIpv4IspCityNodesNode)
{
DomainIpv4IspCityNode domainIpv4IspCityNodesObject;
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspName"].isNull())
domainIpv4IspCityNodesObject.ispName = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspName"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspCode"].isNull())
domainIpv4IspCityNodesObject.ispCode = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspCode"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityName"].isNull())
domainIpv4IspCityNodesObject.cityName = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityName"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityCode"].isNull())
domainIpv4IspCityNodesObject.cityCode = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityCode"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["DefaultSelected"].isNull())
domainIpv4IspCityNodesObject.defaultSelected = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["DefaultSelected"].asString() == "true";
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["GroupType"].isNull())
domainIpv4IspCityNodesObject.groupType = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["GroupType"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["GroupName"].isNull())
domainIpv4IspCityNodesObject.groupName = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["GroupName"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityCode"].isNull())
domainIpv4IspCityNodesObject.cityCode = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityCode"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspName"].isNull())
domainIpv4IspCityNodesObject.ispName = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspName"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["GroupType"].isNull())
domainIpv4IspCityNodesObject.groupType = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["GroupType"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityName"].isNull())
domainIpv4IspCityNodesObject.cityName = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["CityName"].asString();
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["DefaultSelected"].isNull())
domainIpv4IspCityNodesObject.defaultSelected = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["DefaultSelected"].asString() == "true";
if(!valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspCode"].isNull())
domainIpv4IspCityNodesObject.ispCode = valueDomainIpv4IspCityNodesDomainIpv4IspCityNode["IspCode"].asString();
auto allIps1 = value["Ips"]["Ip"];
for (auto value : allIps1)
domainIpv4IspCityNodesObject.ips1.push_back(value.asString());
domainIpv4IspCityNodes_.push_back(domainIpv4IspCityNodesObject);
}
auto allDomainIpv6IspCityNodesNode = value["DomainIpv6IspCityNodes"]["DomainIpv6IspCityNode"];
for (auto valueDomainIpv6IspCityNodesDomainIpv6IspCityNode : allDomainIpv6IspCityNodesNode)
{
DomainIpv6IspCityNode domainIpv6IspCityNodesObject;
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspName"].isNull())
domainIpv6IspCityNodesObject.ispName = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspName"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspCode"].isNull())
domainIpv6IspCityNodesObject.ispCode = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspCode"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityName"].isNull())
domainIpv6IspCityNodesObject.cityName = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityName"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityCode"].isNull())
domainIpv6IspCityNodesObject.cityCode = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityCode"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["DefaultSelected"].isNull())
domainIpv6IspCityNodesObject.defaultSelected = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["DefaultSelected"].asString() == "true";
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["GroupType"].isNull())
domainIpv6IspCityNodesObject.groupType = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["GroupType"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["GroupName"].isNull())
domainIpv6IspCityNodesObject.groupName = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["GroupName"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityCode"].isNull())
domainIpv6IspCityNodesObject.cityCode = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityCode"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspName"].isNull())
domainIpv6IspCityNodesObject.ispName = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspName"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["GroupType"].isNull())
domainIpv6IspCityNodesObject.groupType = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["GroupType"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityName"].isNull())
domainIpv6IspCityNodesObject.cityName = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["CityName"].asString();
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["DefaultSelected"].isNull())
domainIpv6IspCityNodesObject.defaultSelected = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["DefaultSelected"].asString() == "true";
if(!valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspCode"].isNull())
domainIpv6IspCityNodesObject.ispCode = valueDomainIpv6IspCityNodesDomainIpv6IspCityNode["IspCode"].asString();
auto allIps2 = value["Ips"]["Ip"];
for (auto value : allIps2)
domainIpv6IspCityNodesObject.ips2.push_back(value.asString());
domainIpv6IspCityNodes_.push_back(domainIpv6IspCityNodesObject);
}
auto allIpv6IspCityNodesNode = value["Ipv6IspCityNodes"]["Ipv6IspCityNode"];
for (auto valueIpv6IspCityNodesIpv6IspCityNode : allIpv6IspCityNodesNode)
{
Ipv6IspCityNode ipv6IspCityNodesObject;
if(!valueIpv6IspCityNodesIpv6IspCityNode["GroupName"].isNull())
ipv6IspCityNodesObject.groupName = valueIpv6IspCityNodesIpv6IspCityNode["GroupName"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["CityCode"].isNull())
ipv6IspCityNodesObject.cityCode = valueIpv6IspCityNodesIpv6IspCityNode["CityCode"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["IspName"].isNull())
ipv6IspCityNodesObject.ispName = valueIpv6IspCityNodesIpv6IspCityNode["IspName"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["GroupType"].isNull())
ipv6IspCityNodesObject.groupType = valueIpv6IspCityNodesIpv6IspCityNode["GroupType"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["CityName"].isNull())
ipv6IspCityNodesObject.cityName = valueIpv6IspCityNodesIpv6IspCityNode["CityName"].asString();
if(!valueIpv6IspCityNodesIpv6IspCityNode["DefaultSelected"].isNull())
ipv6IspCityNodesObject.defaultSelected = valueIpv6IspCityNodesIpv6IspCityNode["DefaultSelected"].asString() == "true";
if(!valueIpv6IspCityNodesIpv6IspCityNode["IspCode"].isNull())
ipv6IspCityNodesObject.ispCode = valueIpv6IspCityNodesIpv6IspCityNode["IspCode"].asString();
auto allIps3 = value["Ips"]["Ip"];
for (auto value : allIps3)
ipv6IspCityNodesObject.ips3.push_back(value.asString());
ipv6IspCityNodes_.push_back(ipv6IspCityNodesObject);
}
}

View File

@@ -27,6 +27,17 @@ SetDNSSLBStatusRequest::SetDNSSLBStatusRequest() :
SetDNSSLBStatusRequest::~SetDNSSLBStatusRequest()
{}
std::string SetDNSSLBStatusRequest::getLine()const
{
return line_;
}
void SetDNSSLBStatusRequest::setLine(const std::string& line)
{
line_ = line;
setParameter("Line", line);
}
std::string SetDNSSLBStatusRequest::getDomainName()const
{
return domainName_;

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.
*/
#include <alibabacloud/alidns/model/UpdateDnsCacheDomainRemarkRequest.h>
using AlibabaCloud::Alidns::Model::UpdateDnsCacheDomainRemarkRequest;
UpdateDnsCacheDomainRemarkRequest::UpdateDnsCacheDomainRemarkRequest() :
RpcServiceRequest("alidns", "2015-01-09", "UpdateDnsCacheDomainRemark")
{
setMethod(HttpRequest::Method::Post);
}
UpdateDnsCacheDomainRemarkRequest::~UpdateDnsCacheDomainRemarkRequest()
{}
std::string UpdateDnsCacheDomainRemarkRequest::getDomainName()const
{
return domainName_;
}
void UpdateDnsCacheDomainRemarkRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string UpdateDnsCacheDomainRemarkRequest::getRemark()const
{
return remark_;
}
void UpdateDnsCacheDomainRemarkRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setParameter("Remark", remark);
}
std::string UpdateDnsCacheDomainRemarkRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void UpdateDnsCacheDomainRemarkRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string UpdateDnsCacheDomainRemarkRequest::getUserClientIp()const
{
return userClientIp_;
}
void UpdateDnsCacheDomainRemarkRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string UpdateDnsCacheDomainRemarkRequest::getLang()const
{
return lang_;
}
void UpdateDnsCacheDomainRemarkRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

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/alidns/model/UpdateDnsCacheDomainRemarkResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
UpdateDnsCacheDomainRemarkResult::UpdateDnsCacheDomainRemarkResult() :
ServiceResult()
{}
UpdateDnsCacheDomainRemarkResult::UpdateDnsCacheDomainRemarkResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateDnsCacheDomainRemarkResult::~UpdateDnsCacheDomainRemarkResult()
{}
void UpdateDnsCacheDomainRemarkResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,144 @@
/*
* 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/alidns/model/UpdateDnsCacheDomainRequest.h>
using AlibabaCloud::Alidns::Model::UpdateDnsCacheDomainRequest;
UpdateDnsCacheDomainRequest::UpdateDnsCacheDomainRequest() :
RpcServiceRequest("alidns", "2015-01-09", "UpdateDnsCacheDomain")
{
setMethod(HttpRequest::Method::Post);
}
UpdateDnsCacheDomainRequest::~UpdateDnsCacheDomainRequest()
{}
std::string UpdateDnsCacheDomainRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void UpdateDnsCacheDomainRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string UpdateDnsCacheDomainRequest::getSourceProtocol()const
{
return sourceProtocol_;
}
void UpdateDnsCacheDomainRequest::setSourceProtocol(const std::string& sourceProtocol)
{
sourceProtocol_ = sourceProtocol;
setParameter("SourceProtocol", sourceProtocol);
}
std::string UpdateDnsCacheDomainRequest::getLang()const
{
return lang_;
}
void UpdateDnsCacheDomainRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string UpdateDnsCacheDomainRequest::getDomainName()const
{
return domainName_;
}
void UpdateDnsCacheDomainRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
int UpdateDnsCacheDomainRequest::getCacheTtlMax()const
{
return cacheTtlMax_;
}
void UpdateDnsCacheDomainRequest::setCacheTtlMax(int cacheTtlMax)
{
cacheTtlMax_ = cacheTtlMax;
setParameter("CacheTtlMax", std::to_string(cacheTtlMax));
}
std::string UpdateDnsCacheDomainRequest::getInstanceId()const
{
return instanceId_;
}
void UpdateDnsCacheDomainRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string UpdateDnsCacheDomainRequest::getSourceEdns()const
{
return sourceEdns_;
}
void UpdateDnsCacheDomainRequest::setSourceEdns(const std::string& sourceEdns)
{
sourceEdns_ = sourceEdns;
setParameter("SourceEdns", sourceEdns);
}
std::string UpdateDnsCacheDomainRequest::getUserClientIp()const
{
return userClientIp_;
}
void UpdateDnsCacheDomainRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
int UpdateDnsCacheDomainRequest::getCacheTtlMin()const
{
return cacheTtlMin_;
}
void UpdateDnsCacheDomainRequest::setCacheTtlMin(int cacheTtlMin)
{
cacheTtlMin_ = cacheTtlMin;
setParameter("CacheTtlMin", std::to_string(cacheTtlMin));
}
std::vector<UpdateDnsCacheDomainRequest::SourceDnsServer> UpdateDnsCacheDomainRequest::getSourceDnsServer()const
{
return sourceDnsServer_;
}
void UpdateDnsCacheDomainRequest::setSourceDnsServer(const std::vector<SourceDnsServer>& sourceDnsServer)
{
sourceDnsServer_ = sourceDnsServer;
for(int dep1 = 0; dep1!= sourceDnsServer.size(); dep1++) {
auto sourceDnsServerObj = sourceDnsServer.at(dep1);
std::string sourceDnsServerObjStr = "SourceDnsServer." + std::to_string(dep1 + 1);
setParameter(sourceDnsServerObjStr + ".Port", sourceDnsServerObj.port);
setParameter(sourceDnsServerObjStr + ".Host", sourceDnsServerObj.host);
}
}

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/alidns/model/UpdateDnsCacheDomainResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
UpdateDnsCacheDomainResult::UpdateDnsCacheDomainResult() :
ServiceResult()
{}
UpdateDnsCacheDomainResult::UpdateDnsCacheDomainResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateDnsCacheDomainResult::~UpdateDnsCacheDomainResult()
{}
void UpdateDnsCacheDomainResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -48,16 +48,16 @@ void DescribeClusterDashboardResult::parse(const std::string &payload)
Dashboard::DataCenter dataCenterObject;
if(!dashboardNodeDataCentersDataCenter["DataCenterId"].isNull())
dataCenterObject.dataCenterId = dashboardNodeDataCentersDataCenter["DataCenterId"].asString();
auto allNodesNode = allDataCentersNode["Nodes"]["Node"];
for (auto allDataCentersNodeNodesNode : allNodesNode)
auto allNodesNode = dashboardNodeDataCentersDataCenter["Nodes"]["Node"];
for (auto dashboardNodeDataCentersDataCenterNodesNode : allNodesNode)
{
Dashboard::DataCenter::Node nodesObject;
if(!allDataCentersNodeNodesNode["Address"].isNull())
nodesObject.address = allDataCentersNodeNodesNode["Address"].asString();
if(!allDataCentersNodeNodesNode["Status"].isNull())
nodesObject.status = allDataCentersNodeNodesNode["Status"].asString();
if(!allDataCentersNodeNodesNode["Load"].isNull())
nodesObject.load = allDataCentersNodeNodesNode["Load"].asString();
if(!dashboardNodeDataCentersDataCenterNodesNode["Address"].isNull())
nodesObject.address = dashboardNodeDataCentersDataCenterNodesNode["Address"].asString();
if(!dashboardNodeDataCentersDataCenterNodesNode["Status"].isNull())
nodesObject.status = dashboardNodeDataCentersDataCenterNodesNode["Status"].asString();
if(!dashboardNodeDataCentersDataCenterNodesNode["Load"].isNull())
nodesObject.load = dashboardNodeDataCentersDataCenterNodesNode["Load"].asString();
dataCenterObject.nodes.push_back(nodesObject);
}
dashboard_.dataCenters.push_back(dataCenterObject);

View File

@@ -67,14 +67,14 @@ void DescribeClustersResult::parse(const std::string &payload)
clustersObject.autoRenewal = valueClustersCluster["AutoRenewal"].asString() == "true";
if(!valueClustersCluster["AutoRenewPeriod"].isNull())
clustersObject.autoRenewPeriod = std::stoi(valueClustersCluster["AutoRenewPeriod"].asString());
auto allTagsNode = allClustersNode["Tags"]["Tag"];
for (auto allClustersNodeTagsTag : allTagsNode)
auto allTagsNode = valueClustersCluster["Tags"]["Tag"];
for (auto valueClustersClusterTagsTag : allTagsNode)
{
Cluster::Tag tagsObject;
if(!allClustersNodeTagsTag["Key"].isNull())
tagsObject.key = allClustersNodeTagsTag["Key"].asString();
if(!allClustersNodeTagsTag["Value"].isNull())
tagsObject.value = allClustersNodeTagsTag["Value"].asString();
if(!valueClustersClusterTagsTag["Key"].isNull())
tagsObject.key = valueClustersClusterTagsTag["Key"].asString();
if(!valueClustersClusterTagsTag["Value"].isNull())
tagsObject.value = valueClustersClusterTagsTag["Value"].asString();
clustersObject.tags.push_back(tagsObject);
}
clusters_.push_back(clustersObject);

View File

@@ -49,12 +49,12 @@ void DescribeRegionsResult::parse(const std::string &payload)
regionsObject.localName = valueRegionsRegion["LocalName"].asString();
if(!valueRegionsRegion["RegionEndpoint"].isNull())
regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
auto allZonesNode = allRegionsNode["Zones"]["Zone"];
for (auto allRegionsNodeZonesZone : allZonesNode)
auto allZonesNode = valueRegionsRegion["Zones"]["Zone"];
for (auto valueRegionsRegionZonesZone : allZonesNode)
{
Region::Zone zonesObject;
if(!allRegionsNodeZonesZone["Id"].isNull())
zonesObject.id = allRegionsNodeZonesZone["Id"].asString();
if(!valueRegionsRegionZonesZone["Id"].isNull())
zonesObject.id = valueRegionsRegionZonesZone["Id"].asString();
regionsObject.zones.push_back(zonesObject);
}
regions_.push_back(regionsObject);

View File

@@ -21,6 +21,8 @@ set(codeup_public_header
include/alibabacloud/codeup/CodeupExport.h )
set(codeup_public_header_model
include/alibabacloud/codeup/model/AcceptMergeRequestRequest.h
include/alibabacloud/codeup/model/AcceptMergeRequestResult.h
include/alibabacloud/codeup/model/AddGroupMemberRequest.h
include/alibabacloud/codeup/model/AddGroupMemberResult.h
include/alibabacloud/codeup/model/AddRepositoryMemberRequest.h
@@ -33,6 +35,8 @@ set(codeup_public_header_model
include/alibabacloud/codeup/model/CreateFileResult.h
include/alibabacloud/codeup/model/CreateMergeRequestRequest.h
include/alibabacloud/codeup/model/CreateMergeRequestResult.h
include/alibabacloud/codeup/model/CreateMergeRequestCommentRequest.h
include/alibabacloud/codeup/model/CreateMergeRequestCommentResult.h
include/alibabacloud/codeup/model/CreateRepositoryRequest.h
include/alibabacloud/codeup/model/CreateRepositoryResult.h
include/alibabacloud/codeup/model/CreateRepositoryDeployKeyRequest.h
@@ -71,6 +75,12 @@ set(codeup_public_header_model
include/alibabacloud/codeup/model/GetFileBlobsResult.h
include/alibabacloud/codeup/model/GetGroupDetailRequest.h
include/alibabacloud/codeup/model/GetGroupDetailResult.h
include/alibabacloud/codeup/model/GetMergeRequestApproveStatusRequest.h
include/alibabacloud/codeup/model/GetMergeRequestApproveStatusResult.h
include/alibabacloud/codeup/model/GetMergeRequestDetailRequest.h
include/alibabacloud/codeup/model/GetMergeRequestDetailResult.h
include/alibabacloud/codeup/model/GetMergeRequestSettingRequest.h
include/alibabacloud/codeup/model/GetMergeRequestSettingResult.h
include/alibabacloud/codeup/model/GetProjectMemberRequest.h
include/alibabacloud/codeup/model/GetProjectMemberResult.h
include/alibabacloud/codeup/model/GetRepositoryInfoRequest.h
@@ -85,6 +95,8 @@ set(codeup_public_header_model
include/alibabacloud/codeup/model/ListGroupRepositoriesResult.h
include/alibabacloud/codeup/model/ListGroupsRequest.h
include/alibabacloud/codeup/model/ListGroupsResult.h
include/alibabacloud/codeup/model/ListMergeRequestCommentsRequest.h
include/alibabacloud/codeup/model/ListMergeRequestCommentsResult.h
include/alibabacloud/codeup/model/ListMergeRequestsRequest.h
include/alibabacloud/codeup/model/ListMergeRequestsResult.h
include/alibabacloud/codeup/model/ListOrganizationsRequest.h
@@ -93,6 +105,8 @@ set(codeup_public_header_model
include/alibabacloud/codeup/model/ListRepositoriesResult.h
include/alibabacloud/codeup/model/ListRepositoryBranchesRequest.h
include/alibabacloud/codeup/model/ListRepositoryBranchesResult.h
include/alibabacloud/codeup/model/ListRepositoryCommitsRequest.h
include/alibabacloud/codeup/model/ListRepositoryCommitsResult.h
include/alibabacloud/codeup/model/ListRepositoryMemberRequest.h
include/alibabacloud/codeup/model/ListRepositoryMemberResult.h
include/alibabacloud/codeup/model/ListRepositoryTagsRequest.h
@@ -107,6 +121,12 @@ set(codeup_public_header_model
include/alibabacloud/codeup/model/UpdateFileResult.h
include/alibabacloud/codeup/model/UpdateGroupMemberRequest.h
include/alibabacloud/codeup/model/UpdateGroupMemberResult.h
include/alibabacloud/codeup/model/UpdateMergeRequestRequest.h
include/alibabacloud/codeup/model/UpdateMergeRequestResult.h
include/alibabacloud/codeup/model/UpdateMergeRequestCommentRequest.h
include/alibabacloud/codeup/model/UpdateMergeRequestCommentResult.h
include/alibabacloud/codeup/model/UpdateMergeRequestSettingRequest.h
include/alibabacloud/codeup/model/UpdateMergeRequestSettingResult.h
include/alibabacloud/codeup/model/UpdateRepositoryRequest.h
include/alibabacloud/codeup/model/UpdateRepositoryResult.h
include/alibabacloud/codeup/model/UpdateRepositoryMemberRequest.h
@@ -114,6 +134,8 @@ set(codeup_public_header_model
set(codeup_src
src/CodeupClient.cc
src/model/AcceptMergeRequestRequest.cc
src/model/AcceptMergeRequestResult.cc
src/model/AddGroupMemberRequest.cc
src/model/AddGroupMemberResult.cc
src/model/AddRepositoryMemberRequest.cc
@@ -126,6 +148,8 @@ set(codeup_src
src/model/CreateFileResult.cc
src/model/CreateMergeRequestRequest.cc
src/model/CreateMergeRequestResult.cc
src/model/CreateMergeRequestCommentRequest.cc
src/model/CreateMergeRequestCommentResult.cc
src/model/CreateRepositoryRequest.cc
src/model/CreateRepositoryResult.cc
src/model/CreateRepositoryDeployKeyRequest.cc
@@ -164,6 +188,12 @@ set(codeup_src
src/model/GetFileBlobsResult.cc
src/model/GetGroupDetailRequest.cc
src/model/GetGroupDetailResult.cc
src/model/GetMergeRequestApproveStatusRequest.cc
src/model/GetMergeRequestApproveStatusResult.cc
src/model/GetMergeRequestDetailRequest.cc
src/model/GetMergeRequestDetailResult.cc
src/model/GetMergeRequestSettingRequest.cc
src/model/GetMergeRequestSettingResult.cc
src/model/GetProjectMemberRequest.cc
src/model/GetProjectMemberResult.cc
src/model/GetRepositoryInfoRequest.cc
@@ -178,6 +208,8 @@ set(codeup_src
src/model/ListGroupRepositoriesResult.cc
src/model/ListGroupsRequest.cc
src/model/ListGroupsResult.cc
src/model/ListMergeRequestCommentsRequest.cc
src/model/ListMergeRequestCommentsResult.cc
src/model/ListMergeRequestsRequest.cc
src/model/ListMergeRequestsResult.cc
src/model/ListOrganizationsRequest.cc
@@ -186,6 +218,8 @@ set(codeup_src
src/model/ListRepositoriesResult.cc
src/model/ListRepositoryBranchesRequest.cc
src/model/ListRepositoryBranchesResult.cc
src/model/ListRepositoryCommitsRequest.cc
src/model/ListRepositoryCommitsResult.cc
src/model/ListRepositoryMemberRequest.cc
src/model/ListRepositoryMemberResult.cc
src/model/ListRepositoryTagsRequest.cc
@@ -200,6 +234,12 @@ set(codeup_src
src/model/UpdateFileResult.cc
src/model/UpdateGroupMemberRequest.cc
src/model/UpdateGroupMemberResult.cc
src/model/UpdateMergeRequestRequest.cc
src/model/UpdateMergeRequestResult.cc
src/model/UpdateMergeRequestCommentRequest.cc
src/model/UpdateMergeRequestCommentResult.cc
src/model/UpdateMergeRequestSettingRequest.cc
src/model/UpdateMergeRequestSettingResult.cc
src/model/UpdateRepositoryRequest.cc
src/model/UpdateRepositoryResult.cc
src/model/UpdateRepositoryMemberRequest.cc

View File

@@ -22,6 +22,8 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RoaServiceClient.h>
#include "CodeupExport.h"
#include "model/AcceptMergeRequestRequest.h"
#include "model/AcceptMergeRequestResult.h"
#include "model/AddGroupMemberRequest.h"
#include "model/AddGroupMemberResult.h"
#include "model/AddRepositoryMemberRequest.h"
@@ -34,6 +36,8 @@
#include "model/CreateFileResult.h"
#include "model/CreateMergeRequestRequest.h"
#include "model/CreateMergeRequestResult.h"
#include "model/CreateMergeRequestCommentRequest.h"
#include "model/CreateMergeRequestCommentResult.h"
#include "model/CreateRepositoryRequest.h"
#include "model/CreateRepositoryResult.h"
#include "model/CreateRepositoryDeployKeyRequest.h"
@@ -72,6 +76,12 @@
#include "model/GetFileBlobsResult.h"
#include "model/GetGroupDetailRequest.h"
#include "model/GetGroupDetailResult.h"
#include "model/GetMergeRequestApproveStatusRequest.h"
#include "model/GetMergeRequestApproveStatusResult.h"
#include "model/GetMergeRequestDetailRequest.h"
#include "model/GetMergeRequestDetailResult.h"
#include "model/GetMergeRequestSettingRequest.h"
#include "model/GetMergeRequestSettingResult.h"
#include "model/GetProjectMemberRequest.h"
#include "model/GetProjectMemberResult.h"
#include "model/GetRepositoryInfoRequest.h"
@@ -86,6 +96,8 @@
#include "model/ListGroupRepositoriesResult.h"
#include "model/ListGroupsRequest.h"
#include "model/ListGroupsResult.h"
#include "model/ListMergeRequestCommentsRequest.h"
#include "model/ListMergeRequestCommentsResult.h"
#include "model/ListMergeRequestsRequest.h"
#include "model/ListMergeRequestsResult.h"
#include "model/ListOrganizationsRequest.h"
@@ -94,6 +106,8 @@
#include "model/ListRepositoriesResult.h"
#include "model/ListRepositoryBranchesRequest.h"
#include "model/ListRepositoryBranchesResult.h"
#include "model/ListRepositoryCommitsRequest.h"
#include "model/ListRepositoryCommitsResult.h"
#include "model/ListRepositoryMemberRequest.h"
#include "model/ListRepositoryMemberResult.h"
#include "model/ListRepositoryTagsRequest.h"
@@ -108,6 +122,12 @@
#include "model/UpdateFileResult.h"
#include "model/UpdateGroupMemberRequest.h"
#include "model/UpdateGroupMemberResult.h"
#include "model/UpdateMergeRequestRequest.h"
#include "model/UpdateMergeRequestResult.h"
#include "model/UpdateMergeRequestCommentRequest.h"
#include "model/UpdateMergeRequestCommentResult.h"
#include "model/UpdateMergeRequestSettingRequest.h"
#include "model/UpdateMergeRequestSettingResult.h"
#include "model/UpdateRepositoryRequest.h"
#include "model/UpdateRepositoryResult.h"
#include "model/UpdateRepositoryMemberRequest.h"
@@ -121,6 +141,9 @@ namespace AlibabaCloud
class ALIBABACLOUD_CODEUP_EXPORT CodeupClient : public RoaServiceClient
{
public:
typedef Outcome<Error, Model::AcceptMergeRequestResult> AcceptMergeRequestOutcome;
typedef std::future<AcceptMergeRequestOutcome> AcceptMergeRequestOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::AcceptMergeRequestRequest&, const AcceptMergeRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AcceptMergeRequestAsyncHandler;
typedef Outcome<Error, Model::AddGroupMemberResult> AddGroupMemberOutcome;
typedef std::future<AddGroupMemberOutcome> AddGroupMemberOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::AddGroupMemberRequest&, const AddGroupMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddGroupMemberAsyncHandler;
@@ -139,6 +162,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateMergeRequestResult> CreateMergeRequestOutcome;
typedef std::future<CreateMergeRequestOutcome> CreateMergeRequestOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::CreateMergeRequestRequest&, const CreateMergeRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMergeRequestAsyncHandler;
typedef Outcome<Error, Model::CreateMergeRequestCommentResult> CreateMergeRequestCommentOutcome;
typedef std::future<CreateMergeRequestCommentOutcome> CreateMergeRequestCommentOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::CreateMergeRequestCommentRequest&, const CreateMergeRequestCommentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMergeRequestCommentAsyncHandler;
typedef Outcome<Error, Model::CreateRepositoryResult> CreateRepositoryOutcome;
typedef std::future<CreateRepositoryOutcome> CreateRepositoryOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::CreateRepositoryRequest&, const CreateRepositoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRepositoryAsyncHandler;
@@ -196,6 +222,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetGroupDetailResult> GetGroupDetailOutcome;
typedef std::future<GetGroupDetailOutcome> GetGroupDetailOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::GetGroupDetailRequest&, const GetGroupDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetGroupDetailAsyncHandler;
typedef Outcome<Error, Model::GetMergeRequestApproveStatusResult> GetMergeRequestApproveStatusOutcome;
typedef std::future<GetMergeRequestApproveStatusOutcome> GetMergeRequestApproveStatusOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::GetMergeRequestApproveStatusRequest&, const GetMergeRequestApproveStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMergeRequestApproveStatusAsyncHandler;
typedef Outcome<Error, Model::GetMergeRequestDetailResult> GetMergeRequestDetailOutcome;
typedef std::future<GetMergeRequestDetailOutcome> GetMergeRequestDetailOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::GetMergeRequestDetailRequest&, const GetMergeRequestDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMergeRequestDetailAsyncHandler;
typedef Outcome<Error, Model::GetMergeRequestSettingResult> GetMergeRequestSettingOutcome;
typedef std::future<GetMergeRequestSettingOutcome> GetMergeRequestSettingOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::GetMergeRequestSettingRequest&, const GetMergeRequestSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMergeRequestSettingAsyncHandler;
typedef Outcome<Error, Model::GetProjectMemberResult> GetProjectMemberOutcome;
typedef std::future<GetProjectMemberOutcome> GetProjectMemberOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::GetProjectMemberRequest&, const GetProjectMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetProjectMemberAsyncHandler;
@@ -217,6 +252,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListGroupsResult> ListGroupsOutcome;
typedef std::future<ListGroupsOutcome> ListGroupsOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::ListGroupsRequest&, const ListGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListGroupsAsyncHandler;
typedef Outcome<Error, Model::ListMergeRequestCommentsResult> ListMergeRequestCommentsOutcome;
typedef std::future<ListMergeRequestCommentsOutcome> ListMergeRequestCommentsOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::ListMergeRequestCommentsRequest&, const ListMergeRequestCommentsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMergeRequestCommentsAsyncHandler;
typedef Outcome<Error, Model::ListMergeRequestsResult> ListMergeRequestsOutcome;
typedef std::future<ListMergeRequestsOutcome> ListMergeRequestsOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::ListMergeRequestsRequest&, const ListMergeRequestsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMergeRequestsAsyncHandler;
@@ -229,6 +267,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListRepositoryBranchesResult> ListRepositoryBranchesOutcome;
typedef std::future<ListRepositoryBranchesOutcome> ListRepositoryBranchesOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryBranchesRequest&, const ListRepositoryBranchesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryBranchesAsyncHandler;
typedef Outcome<Error, Model::ListRepositoryCommitsResult> ListRepositoryCommitsOutcome;
typedef std::future<ListRepositoryCommitsOutcome> ListRepositoryCommitsOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryCommitsRequest&, const ListRepositoryCommitsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryCommitsAsyncHandler;
typedef Outcome<Error, Model::ListRepositoryMemberResult> ListRepositoryMemberOutcome;
typedef std::future<ListRepositoryMemberOutcome> ListRepositoryMemberOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryMemberRequest&, const ListRepositoryMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryMemberAsyncHandler;
@@ -250,6 +291,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateGroupMemberResult> UpdateGroupMemberOutcome;
typedef std::future<UpdateGroupMemberOutcome> UpdateGroupMemberOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::UpdateGroupMemberRequest&, const UpdateGroupMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateGroupMemberAsyncHandler;
typedef Outcome<Error, Model::UpdateMergeRequestResult> UpdateMergeRequestOutcome;
typedef std::future<UpdateMergeRequestOutcome> UpdateMergeRequestOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::UpdateMergeRequestRequest&, const UpdateMergeRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateMergeRequestAsyncHandler;
typedef Outcome<Error, Model::UpdateMergeRequestCommentResult> UpdateMergeRequestCommentOutcome;
typedef std::future<UpdateMergeRequestCommentOutcome> UpdateMergeRequestCommentOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::UpdateMergeRequestCommentRequest&, const UpdateMergeRequestCommentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateMergeRequestCommentAsyncHandler;
typedef Outcome<Error, Model::UpdateMergeRequestSettingResult> UpdateMergeRequestSettingOutcome;
typedef std::future<UpdateMergeRequestSettingOutcome> UpdateMergeRequestSettingOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::UpdateMergeRequestSettingRequest&, const UpdateMergeRequestSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateMergeRequestSettingAsyncHandler;
typedef Outcome<Error, Model::UpdateRepositoryResult> UpdateRepositoryOutcome;
typedef std::future<UpdateRepositoryOutcome> UpdateRepositoryOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::UpdateRepositoryRequest&, const UpdateRepositoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateRepositoryAsyncHandler;
@@ -261,6 +311,9 @@ namespace AlibabaCloud
CodeupClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
CodeupClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~CodeupClient();
AcceptMergeRequestOutcome acceptMergeRequest(const Model::AcceptMergeRequestRequest &request)const;
void acceptMergeRequestAsync(const Model::AcceptMergeRequestRequest& request, const AcceptMergeRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AcceptMergeRequestOutcomeCallable acceptMergeRequestCallable(const Model::AcceptMergeRequestRequest& request) const;
AddGroupMemberOutcome addGroupMember(const Model::AddGroupMemberRequest &request)const;
void addGroupMemberAsync(const Model::AddGroupMemberRequest& request, const AddGroupMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddGroupMemberOutcomeCallable addGroupMemberCallable(const Model::AddGroupMemberRequest& request) const;
@@ -279,6 +332,9 @@ namespace AlibabaCloud
CreateMergeRequestOutcome createMergeRequest(const Model::CreateMergeRequestRequest &request)const;
void createMergeRequestAsync(const Model::CreateMergeRequestRequest& request, const CreateMergeRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateMergeRequestOutcomeCallable createMergeRequestCallable(const Model::CreateMergeRequestRequest& request) const;
CreateMergeRequestCommentOutcome createMergeRequestComment(const Model::CreateMergeRequestCommentRequest &request)const;
void createMergeRequestCommentAsync(const Model::CreateMergeRequestCommentRequest& request, const CreateMergeRequestCommentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateMergeRequestCommentOutcomeCallable createMergeRequestCommentCallable(const Model::CreateMergeRequestCommentRequest& request) const;
CreateRepositoryOutcome createRepository(const Model::CreateRepositoryRequest &request)const;
void createRepositoryAsync(const Model::CreateRepositoryRequest& request, const CreateRepositoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateRepositoryOutcomeCallable createRepositoryCallable(const Model::CreateRepositoryRequest& request) const;
@@ -336,6 +392,15 @@ namespace AlibabaCloud
GetGroupDetailOutcome getGroupDetail(const Model::GetGroupDetailRequest &request)const;
void getGroupDetailAsync(const Model::GetGroupDetailRequest& request, const GetGroupDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetGroupDetailOutcomeCallable getGroupDetailCallable(const Model::GetGroupDetailRequest& request) const;
GetMergeRequestApproveStatusOutcome getMergeRequestApproveStatus(const Model::GetMergeRequestApproveStatusRequest &request)const;
void getMergeRequestApproveStatusAsync(const Model::GetMergeRequestApproveStatusRequest& request, const GetMergeRequestApproveStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMergeRequestApproveStatusOutcomeCallable getMergeRequestApproveStatusCallable(const Model::GetMergeRequestApproveStatusRequest& request) const;
GetMergeRequestDetailOutcome getMergeRequestDetail(const Model::GetMergeRequestDetailRequest &request)const;
void getMergeRequestDetailAsync(const Model::GetMergeRequestDetailRequest& request, const GetMergeRequestDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMergeRequestDetailOutcomeCallable getMergeRequestDetailCallable(const Model::GetMergeRequestDetailRequest& request) const;
GetMergeRequestSettingOutcome getMergeRequestSetting(const Model::GetMergeRequestSettingRequest &request)const;
void getMergeRequestSettingAsync(const Model::GetMergeRequestSettingRequest& request, const GetMergeRequestSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMergeRequestSettingOutcomeCallable getMergeRequestSettingCallable(const Model::GetMergeRequestSettingRequest& request) const;
GetProjectMemberOutcome getProjectMember(const Model::GetProjectMemberRequest &request)const;
void getProjectMemberAsync(const Model::GetProjectMemberRequest& request, const GetProjectMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetProjectMemberOutcomeCallable getProjectMemberCallable(const Model::GetProjectMemberRequest& request) const;
@@ -357,6 +422,9 @@ namespace AlibabaCloud
ListGroupsOutcome listGroups(const Model::ListGroupsRequest &request)const;
void listGroupsAsync(const Model::ListGroupsRequest& request, const ListGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListGroupsOutcomeCallable listGroupsCallable(const Model::ListGroupsRequest& request) const;
ListMergeRequestCommentsOutcome listMergeRequestComments(const Model::ListMergeRequestCommentsRequest &request)const;
void listMergeRequestCommentsAsync(const Model::ListMergeRequestCommentsRequest& request, const ListMergeRequestCommentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListMergeRequestCommentsOutcomeCallable listMergeRequestCommentsCallable(const Model::ListMergeRequestCommentsRequest& request) const;
ListMergeRequestsOutcome listMergeRequests(const Model::ListMergeRequestsRequest &request)const;
void listMergeRequestsAsync(const Model::ListMergeRequestsRequest& request, const ListMergeRequestsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListMergeRequestsOutcomeCallable listMergeRequestsCallable(const Model::ListMergeRequestsRequest& request) const;
@@ -369,6 +437,9 @@ namespace AlibabaCloud
ListRepositoryBranchesOutcome listRepositoryBranches(const Model::ListRepositoryBranchesRequest &request)const;
void listRepositoryBranchesAsync(const Model::ListRepositoryBranchesRequest& request, const ListRepositoryBranchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListRepositoryBranchesOutcomeCallable listRepositoryBranchesCallable(const Model::ListRepositoryBranchesRequest& request) const;
ListRepositoryCommitsOutcome listRepositoryCommits(const Model::ListRepositoryCommitsRequest &request)const;
void listRepositoryCommitsAsync(const Model::ListRepositoryCommitsRequest& request, const ListRepositoryCommitsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListRepositoryCommitsOutcomeCallable listRepositoryCommitsCallable(const Model::ListRepositoryCommitsRequest& request) const;
ListRepositoryMemberOutcome listRepositoryMember(const Model::ListRepositoryMemberRequest &request)const;
void listRepositoryMemberAsync(const Model::ListRepositoryMemberRequest& request, const ListRepositoryMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListRepositoryMemberOutcomeCallable listRepositoryMemberCallable(const Model::ListRepositoryMemberRequest& request) const;
@@ -390,6 +461,15 @@ namespace AlibabaCloud
UpdateGroupMemberOutcome updateGroupMember(const Model::UpdateGroupMemberRequest &request)const;
void updateGroupMemberAsync(const Model::UpdateGroupMemberRequest& request, const UpdateGroupMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateGroupMemberOutcomeCallable updateGroupMemberCallable(const Model::UpdateGroupMemberRequest& request) const;
UpdateMergeRequestOutcome updateMergeRequest(const Model::UpdateMergeRequestRequest &request)const;
void updateMergeRequestAsync(const Model::UpdateMergeRequestRequest& request, const UpdateMergeRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateMergeRequestOutcomeCallable updateMergeRequestCallable(const Model::UpdateMergeRequestRequest& request) const;
UpdateMergeRequestCommentOutcome updateMergeRequestComment(const Model::UpdateMergeRequestCommentRequest &request)const;
void updateMergeRequestCommentAsync(const Model::UpdateMergeRequestCommentRequest& request, const UpdateMergeRequestCommentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateMergeRequestCommentOutcomeCallable updateMergeRequestCommentCallable(const Model::UpdateMergeRequestCommentRequest& request) const;
UpdateMergeRequestSettingOutcome updateMergeRequestSetting(const Model::UpdateMergeRequestSettingRequest &request)const;
void updateMergeRequestSettingAsync(const Model::UpdateMergeRequestSettingRequest& request, const UpdateMergeRequestSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateMergeRequestSettingOutcomeCallable updateMergeRequestSettingCallable(const Model::UpdateMergeRequestSettingRequest& request) const;
UpdateRepositoryOutcome updateRepository(const Model::UpdateRepositoryRequest &request)const;
void updateRepositoryAsync(const Model::UpdateRepositoryRequest& request, const UpdateRepositoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateRepositoryOutcomeCallable updateRepositoryCallable(const Model::UpdateRepositoryRequest& request) const;

View File

@@ -0,0 +1,57 @@
/*
* 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_CODEUP_MODEL_ACCEPTMERGEREQUESTREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_ACCEPTMERGEREQUESTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT AcceptMergeRequestRequest : public RoaServiceRequest
{
public:
AcceptMergeRequestRequest();
~AcceptMergeRequestRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
long getMergeRequestId()const;
void setMergeRequestId(long mergeRequestId);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
long mergeRequestId_;
std::string accessToken_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_ACCEPTMERGEREQUESTREQUEST_H_

View File

@@ -0,0 +1,133 @@
/*
* 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_CODEUP_MODEL_ACCEPTMERGEREQUESTRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_ACCEPTMERGEREQUESTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT AcceptMergeRequestResult : public ServiceResult
{
public:
struct Result
{
struct ApproveCheckResult
{
struct SatisfiedCheckResultsItem
{
struct ExtraUsersItem
{
std::string avatarUrl;
std::string externUserId;
long id;
std::string name;
};
std::string checkName;
std::vector<std::string> satisfiedItems;
std::string checkType;
std::string checkStatus;
std::vector<std::string> unsatisfiedItems;
std::vector<SatisfiedCheckResultsItem::ExtraUsersItem> extraUsers;
};
struct UnsatisfiedCheckResultsItem
{
struct ExtraUsersItem4
{
std::string avatarUrl;
std::string externUserId;
long id;
std::string name;
};
std::vector<std::string> satisfiedItems1;
std::string checkName;
std::string checkType;
std::string checkStatus;
std::vector<UnsatisfiedCheckResultsItem::ExtraUsersItem4> extraUsers3;
std::vector<std::string> unsatisfiedItems2;
};
std::vector<UnsatisfiedCheckResultsItem> unsatisfiedCheckResults;
std::vector<SatisfiedCheckResultsItem> satisfiedCheckResults;
std::string totalCheckResult;
};
struct Author
{
std::string avatarUrl;
std::string externUserId;
long id;
std::string name;
};
struct AssigneeListItem
{
std::string avatarUrl;
std::string externUserId;
std::string id;
std::string name;
};
ApproveCheckResult approveCheckResult;
int behindCommitCount;
std::string description;
int aheadCommitCount;
std::string createdAt;
long projectId;
std::string mergeError;
std::string nameWithNamespace;
std::string title;
std::string webUrl;
std::string mergedRevision;
std::string updatedAt;
std::string acceptedRevision;
std::string state;
std::vector<AssigneeListItem> assigneeList;
std::string mergeStatus;
std::string sourceBranch;
Author author;
long id;
std::string mergeType;
std::string targetBranch;
};
AcceptMergeRequestResult();
explicit AcceptMergeRequestResult(const std::string &payload);
~AcceptMergeRequestResult();
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
Result getResult()const;
protected:
void parse(const std::string &payload);
private:
std::string errorCode_;
std::string errorMessage_;
bool success_;
Result result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_ACCEPTMERGEREQUESTRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* 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_CODEUP_MODEL_CREATEMERGEREQUESTCOMMENTREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_CREATEMERGEREQUESTCOMMENTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT CreateMergeRequestCommentRequest : public RoaServiceRequest
{
public:
CreateMergeRequestCommentRequest();
~CreateMergeRequestCommentRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
long getMergeRequestId()const;
void setMergeRequestId(long mergeRequestId);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
long mergeRequestId_;
std::string accessToken_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_CREATEMERGEREQUESTCOMMENTREQUEST_H_

View File

@@ -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.
*/
#ifndef ALIBABACLOUD_CODEUP_MODEL_CREATEMERGEREQUESTCOMMENTRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_CREATEMERGEREQUESTCOMMENTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT CreateMergeRequestCommentResult : public ServiceResult
{
public:
struct Result
{
struct Author
{
std::string avatarUrl;
std::string email;
std::string externUserId;
long id;
std::string name;
};
bool isDraft;
std::string path;
std::string createdAt;
long projectId;
std::string updatedAt;
long line;
std::string side;
int closed;
std::string note;
long parentNoteId;
Author author;
long id;
bool outDated;
std::string rangeContext;
};
CreateMergeRequestCommentResult();
explicit CreateMergeRequestCommentResult(const std::string &payload);
~CreateMergeRequestCommentResult();
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
Result getResult()const;
protected:
void parse(const std::string &payload);
private:
std::string errorCode_;
std::string errorMessage_;
bool success_;
Result result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_CREATEMERGEREQUESTCOMMENTRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* 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_CODEUP_MODEL_GETMERGEREQUESTAPPROVESTATUSREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTAPPROVESTATUSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT GetMergeRequestApproveStatusRequest : public RoaServiceRequest
{
public:
GetMergeRequestApproveStatusRequest();
~GetMergeRequestApproveStatusRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
long getMergeRequestId()const;
void setMergeRequestId(long mergeRequestId);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
long mergeRequestId_;
std::string accessToken_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTAPPROVESTATUSREQUEST_H_

View File

@@ -14,52 +14,49 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_HITSDB_MODEL_GETLINDORMINSTANCEENGINELISTRESULT_H_
#define ALIBABACLOUD_HITSDB_MODEL_GETLINDORMINSTANCEENGINELISTRESULT_H_
#ifndef ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTAPPROVESTATUSRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTAPPROVESTATUSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT GetLindormInstanceEngineListResult : public ServiceResult
class ALIBABACLOUD_CODEUP_EXPORT GetMergeRequestApproveStatusResult : public ServiceResult
{
public:
struct EngineInfo
struct Result
{
struct NetInfo
{
int port;
std::string connectionString;
std::string netType;
int accessType;
};
std::vector<EngineInfo::NetInfo> netInfoList;
std::string engineType;
std::string approveStatus;
std::string message;
};
GetLindormInstanceEngineListResult();
explicit GetLindormInstanceEngineListResult(const std::string &payload);
~GetLindormInstanceEngineListResult();
std::vector<EngineInfo> getEngineList()const;
std::string getInstanceId()const;
GetMergeRequestApproveStatusResult();
explicit GetMergeRequestApproveStatusResult(const std::string &payload);
~GetMergeRequestApproveStatusResult();
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
Result getResult()const;
protected:
void parse(const std::string &payload);
private:
std::vector<EngineInfo> engineList_;
std::string instanceId_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
Result result_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_GETLINDORMINSTANCEENGINELISTRESULT_H_
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTAPPROVESTATUSRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* 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_CODEUP_MODEL_GETMERGEREQUESTDETAILREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTDETAILREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT GetMergeRequestDetailRequest : public RoaServiceRequest
{
public:
GetMergeRequestDetailRequest();
~GetMergeRequestDetailRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
long getMergeRequestId()const;
void setMergeRequestId(long mergeRequestId);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
long mergeRequestId_;
std::string accessToken_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTDETAILREQUEST_H_

View File

@@ -0,0 +1,136 @@
/*
* 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_CODEUP_MODEL_GETMERGEREQUESTDETAILRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTDETAILRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT GetMergeRequestDetailResult : public ServiceResult
{
public:
struct Result
{
struct ApproveCheckResult
{
struct SatisfiedCheckResultsItem
{
struct ExtraUsersItem
{
std::string avatarUrl;
std::string externUserId;
long id;
std::string name;
};
std::string checkName;
std::vector<std::string> satisfiedItems;
std::string checkType;
std::string checkStatus;
std::vector<std::string> unsatisfiedItems;
std::vector<SatisfiedCheckResultsItem::ExtraUsersItem> extraUsers;
};
struct UnsatisfiedCheckResultsItem
{
struct ExtraUsersItem4
{
std::string avatarUrl;
std::string externUserId;
long id;
std::string name;
};
std::vector<std::string> satisfiedItems1;
std::string checkName;
std::string checkType;
std::string checkStatus;
std::vector<UnsatisfiedCheckResultsItem::ExtraUsersItem4> extraUsers3;
std::vector<std::string> unsatisfiedItems2;
};
std::vector<UnsatisfiedCheckResultsItem> unsatisfiedCheckResults;
std::vector<SatisfiedCheckResultsItem> satisfiedCheckResults;
std::string totalCheckResult;
};
struct Author
{
std::string avatarUrl;
std::string externUserId;
long id;
std::string name;
};
struct AssigneeListItem
{
std::string status;
std::string avatarUrl;
std::string email;
std::string externUserId;
std::string id;
std::string name;
};
ApproveCheckResult approveCheckResult;
int behindCommitCount;
bool isSupportMerge;
std::string description;
int aheadCommitCount;
std::string createdAt;
long projectId;
std::string mergeError;
std::string nameWithNamespace;
std::string title;
std::string webUrl;
std::string mergedRevision;
std::string updatedAt;
std::string acceptedRevision;
std::string state;
std::vector<AssigneeListItem> assigneeList;
std::string mergeStatus;
std::string sourceBranch;
Author author;
long id;
std::string mergeType;
std::string targetBranch;
};
GetMergeRequestDetailResult();
explicit GetMergeRequestDetailResult(const std::string &payload);
~GetMergeRequestDetailResult();
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
Result getResult()const;
protected:
void parse(const std::string &payload);
private:
std::string errorCode_;
std::string errorMessage_;
bool success_;
Result result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTDETAILRESULT_H_

View File

@@ -14,41 +14,41 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDREQUEST_H_
#define ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDREQUEST_H_
#ifndef ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTSETTINGREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTSETTINGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/facebody/FacebodyExport.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Facebody
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianOptimizedRequest : public RoaServiceRequest
class ALIBABACLOUD_CODEUP_EXPORT GetMergeRequestSettingRequest : public RoaServiceRequest
{
public:
DetectIPCPedestrianOptimizedRequest();
~DetectIPCPedestrianOptimizedRequest();
GetMergeRequestSettingRequest();
~GetMergeRequestSettingRequest();
std::string getImageData()const;
void setImageData(const std::string& imageData);
long getWidth()const;
void setWidth(long width);
long getHeight()const;
void setHeight(long height);
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string imageData_;
long width_;
long height_;
std::string organizationId_;
std::string accessToken_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDREQUEST_H_
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTSETTINGREQUEST_H_

View File

@@ -0,0 +1,62 @@
/*
* 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_CODEUP_MODEL_GETMERGEREQUESTSETTINGRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTSETTINGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT GetMergeRequestSettingResult : public ServiceResult
{
public:
struct Result
{
bool isEnableSmartCodeReview;
std::vector<std::string> mergeTypes;
};
GetMergeRequestSettingResult();
explicit GetMergeRequestSettingResult(const std::string &payload);
~GetMergeRequestSettingResult();
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
Result getResult()const;
protected:
void parse(const std::string &payload);
private:
std::string errorCode_;
std::string errorMessage_;
bool success_;
Result result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTSETTINGRESULT_H_

View File

@@ -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_CODEUP_MODEL_LISTMERGEREQUESTCOMMENTSREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_LISTMERGEREQUESTCOMMENTSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT ListMergeRequestCommentsRequest : public RoaServiceRequest
{
public:
ListMergeRequestCommentsRequest();
~ListMergeRequestCommentsRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
long getMergeRequestId()const;
void setMergeRequestId(long mergeRequestId);
std::string getFromCommit()const;
void setFromCommit(const std::string& fromCommit);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
std::string getToCommit()const;
void setToCommit(const std::string& toCommit);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
long mergeRequestId_;
std::string fromCommit_;
std::string accessToken_;
std::string toCommit_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTMERGEREQUESTCOMMENTSREQUEST_H_

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_CODEUP_MODEL_LISTMERGEREQUESTCOMMENTSRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_LISTMERGEREQUESTCOMMENTSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT ListMergeRequestCommentsResult : public ServiceResult
{
public:
struct ResultItem
{
struct Author
{
std::string avatarUrl;
std::string email;
std::string externUserId;
long id;
std::string name;
};
bool isDraft;
std::string path;
std::string createdAt;
long projectId;
std::string updatedAt;
long line;
std::string side;
int closed;
std::string note;
long parentNoteId;
Author author;
long id;
bool outDated;
std::string rangeContext;
};
ListMergeRequestCommentsResult();
explicit ListMergeRequestCommentsResult(const std::string &payload);
~ListMergeRequestCommentsResult();
long getTotal()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
std::vector<ResultItem> getResult()const;
protected:
void parse(const std::string &payload);
private:
long total_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
std::vector<ResultItem> result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTMERGEREQUESTCOMMENTSRESULT_H_

View File

@@ -81,13 +81,16 @@ namespace AlibabaCloud
};
struct AssigneeListItem
{
std::string status;
std::string avatarUrl;
std::string email;
std::string externUserId;
std::string id;
std::string name;
};
ApproveCheckResult approveCheckResult;
int behindCommitCount;
bool isSupportMerge;
std::string description;
int aheadCommitCount;
std::string createdAt;

View File

@@ -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_CODEUP_MODEL_LISTREPOSITORYCOMMITSREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYCOMMITSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT ListRepositoryCommitsRequest : public RoaServiceRequest
{
public:
ListRepositoryCommitsRequest();
~ListRepositoryCommitsRequest();
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
bool getShowSignature()const;
void setShowSignature(bool showSignature);
std::string getRefName()const;
void setRefName(const std::string& refName);
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getPath()const;
void setPath(const std::string& path);
std::string getSearch()const;
void setSearch(const std::string& search);
long getPageSize()const;
void setPageSize(long pageSize);
long getPage()const;
void setPage(long page);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string accessToken_;
bool showSignature_;
std::string refName_;
std::string organizationId_;
std::string path_;
std::string search_;
long pageSize_;
long page_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYCOMMITSREQUEST_H_

View File

@@ -0,0 +1,80 @@
/*
* 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_CODEUP_MODEL_LISTREPOSITORYCOMMITSRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYCOMMITSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT ListRepositoryCommitsResult : public ServiceResult
{
public:
struct ResultItem
{
struct Signature
{
std::string verificationStatus;
std::string gpgKeyId;
};
std::string authorName;
std::string message;
std::string createdAt;
std::string title;
std::string authorEmail;
std::string authorDate;
std::string committedDate;
std::string committerEmail;
std::vector<std::string> parentIds;
Signature signature;
std::string shortId;
std::string id;
std::string committerName;
};
ListRepositoryCommitsResult();
explicit ListRepositoryCommitsResult(const std::string &payload);
~ListRepositoryCommitsResult();
long getTotal()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
std::vector<ResultItem> getResult()const;
protected:
void parse(const std::string &payload);
private:
long total_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
std::vector<ResultItem> result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYCOMMITSRESULT_H_

View File

@@ -36,10 +36,12 @@ namespace AlibabaCloud
{
std::string avatarUrl;
std::string email;
std::string username;
std::string state;
std::string externUserId;
long id;
int accessLevel;
std::string name;
};

View File

@@ -0,0 +1,60 @@
/*
* 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_CODEUP_MODEL_UPDATEMERGEREQUESTCOMMENTREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTCOMMENTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT UpdateMergeRequestCommentRequest : public RoaServiceRequest
{
public:
UpdateMergeRequestCommentRequest();
~UpdateMergeRequestCommentRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
long getMergeRequestId()const;
void setMergeRequestId(long mergeRequestId);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getNoteId()const;
void setNoteId(long noteId);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
long mergeRequestId_;
std::string accessToken_;
long noteId_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTCOMMENTREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* 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_CODEUP_MODEL_UPDATEMERGEREQUESTCOMMENTRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTCOMMENTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT UpdateMergeRequestCommentResult : public ServiceResult
{
public:
struct Result
{
bool result;
};
UpdateMergeRequestCommentResult();
explicit UpdateMergeRequestCommentResult(const std::string &payload);
~UpdateMergeRequestCommentResult();
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
Result getResult()const;
protected:
void parse(const std::string &payload);
private:
std::string errorCode_;
std::string errorMessage_;
bool success_;
Result result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTCOMMENTRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* 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_CODEUP_MODEL_UPDATEMERGEREQUESTREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT UpdateMergeRequestRequest : public RoaServiceRequest
{
public:
UpdateMergeRequestRequest();
~UpdateMergeRequestRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
long getMergeRequestId()const;
void setMergeRequestId(long mergeRequestId);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
long mergeRequestId_;
std::string accessToken_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTREQUEST_H_

View File

@@ -0,0 +1,133 @@
/*
* 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_CODEUP_MODEL_UPDATEMERGEREQUESTRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT UpdateMergeRequestResult : public ServiceResult
{
public:
struct Result
{
struct ApproveCheckResult
{
struct SatisfiedCheckResultsItem
{
struct ExtraUsersItem
{
std::string avatarUrl;
std::string externUserId;
long id;
std::string name;
};
std::string checkName;
std::vector<std::string> satisfiedItems;
std::string checkType;
std::string checkStatus;
std::vector<std::string> unsatisfiedItems;
std::vector<SatisfiedCheckResultsItem::ExtraUsersItem> extraUsers;
};
struct UnsatisfiedCheckResultsItem
{
struct ExtraUsersItem4
{
std::string avatarUrl;
std::string externUserId;
long id;
std::string name;
};
std::vector<std::string> satisfiedItems1;
std::string checkName;
std::string checkType;
std::string checkStatus;
std::vector<UnsatisfiedCheckResultsItem::ExtraUsersItem4> extraUsers3;
std::vector<std::string> unsatisfiedItems2;
};
std::vector<UnsatisfiedCheckResultsItem> unsatisfiedCheckResults;
std::vector<SatisfiedCheckResultsItem> satisfiedCheckResults;
std::string totalCheckResult;
};
struct Author
{
std::string avatarUrl;
std::string externUserId;
long id;
std::string name;
};
struct AssigneeListItem
{
std::string avatarUrl;
std::string externUserId;
std::string id;
std::string name;
};
ApproveCheckResult approveCheckResult;
int behindCommitCount;
std::string description;
int aheadCommitCount;
std::string createdAt;
long projectId;
std::string mergeError;
std::string nameWithNamespace;
std::string title;
std::string webUrl;
std::string mergedRevision;
std::string updatedAt;
std::string acceptedRevision;
std::string state;
std::vector<AssigneeListItem> assigneeList;
std::string mergeStatus;
std::string sourceBranch;
Author author;
long id;
std::string mergeType;
std::string targetBranch;
};
UpdateMergeRequestResult();
explicit UpdateMergeRequestResult(const std::string &payload);
~UpdateMergeRequestResult();
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
Result getResult()const;
protected:
void parse(const std::string &payload);
private:
std::string errorCode_;
std::string errorMessage_;
bool success_;
Result result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_CODEUP_MODEL_UPDATEMERGEREQUESTSETTINGREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTSETTINGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT UpdateMergeRequestSettingRequest : public RoaServiceRequest
{
public:
UpdateMergeRequestSettingRequest();
~UpdateMergeRequestSettingRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
std::string accessToken_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTSETTINGREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* 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_CODEUP_MODEL_UPDATEMERGEREQUESTSETTINGRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTSETTINGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT UpdateMergeRequestSettingResult : public ServiceResult
{
public:
struct Result
{
bool result;
};
UpdateMergeRequestSettingResult();
explicit UpdateMergeRequestSettingResult(const std::string &payload);
~UpdateMergeRequestSettingResult();
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
Result getResult()const;
protected:
void parse(const std::string &payload);
private:
std::string errorCode_;
std::string errorMessage_;
bool success_;
Result result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_UPDATEMERGEREQUESTSETTINGRESULT_H_

View File

@@ -51,6 +51,42 @@ CodeupClient::CodeupClient(const std::string & accessKeyId, const std::string &
CodeupClient::~CodeupClient()
{}
CodeupClient::AcceptMergeRequestOutcome CodeupClient::acceptMergeRequest(const AcceptMergeRequestRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AcceptMergeRequestOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AcceptMergeRequestOutcome(AcceptMergeRequestResult(outcome.result()));
else
return AcceptMergeRequestOutcome(outcome.error());
}
void CodeupClient::acceptMergeRequestAsync(const AcceptMergeRequestRequest& request, const AcceptMergeRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, acceptMergeRequest(request), context);
};
asyncExecute(new Runnable(fn));
}
CodeupClient::AcceptMergeRequestOutcomeCallable CodeupClient::acceptMergeRequestCallable(const AcceptMergeRequestRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AcceptMergeRequestOutcome()>>(
[this, request]()
{
return this->acceptMergeRequest(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CodeupClient::AddGroupMemberOutcome CodeupClient::addGroupMember(const AddGroupMemberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -267,6 +303,42 @@ CodeupClient::CreateMergeRequestOutcomeCallable CodeupClient::createMergeRequest
return task->get_future();
}
CodeupClient::CreateMergeRequestCommentOutcome CodeupClient::createMergeRequestComment(const CreateMergeRequestCommentRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateMergeRequestCommentOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateMergeRequestCommentOutcome(CreateMergeRequestCommentResult(outcome.result()));
else
return CreateMergeRequestCommentOutcome(outcome.error());
}
void CodeupClient::createMergeRequestCommentAsync(const CreateMergeRequestCommentRequest& request, const CreateMergeRequestCommentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createMergeRequestComment(request), context);
};
asyncExecute(new Runnable(fn));
}
CodeupClient::CreateMergeRequestCommentOutcomeCallable CodeupClient::createMergeRequestCommentCallable(const CreateMergeRequestCommentRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateMergeRequestCommentOutcome()>>(
[this, request]()
{
return this->createMergeRequestComment(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CodeupClient::CreateRepositoryOutcome CodeupClient::createRepository(const CreateRepositoryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -951,6 +1023,114 @@ CodeupClient::GetGroupDetailOutcomeCallable CodeupClient::getGroupDetailCallable
return task->get_future();
}
CodeupClient::GetMergeRequestApproveStatusOutcome CodeupClient::getMergeRequestApproveStatus(const GetMergeRequestApproveStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetMergeRequestApproveStatusOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetMergeRequestApproveStatusOutcome(GetMergeRequestApproveStatusResult(outcome.result()));
else
return GetMergeRequestApproveStatusOutcome(outcome.error());
}
void CodeupClient::getMergeRequestApproveStatusAsync(const GetMergeRequestApproveStatusRequest& request, const GetMergeRequestApproveStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getMergeRequestApproveStatus(request), context);
};
asyncExecute(new Runnable(fn));
}
CodeupClient::GetMergeRequestApproveStatusOutcomeCallable CodeupClient::getMergeRequestApproveStatusCallable(const GetMergeRequestApproveStatusRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetMergeRequestApproveStatusOutcome()>>(
[this, request]()
{
return this->getMergeRequestApproveStatus(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CodeupClient::GetMergeRequestDetailOutcome CodeupClient::getMergeRequestDetail(const GetMergeRequestDetailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetMergeRequestDetailOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetMergeRequestDetailOutcome(GetMergeRequestDetailResult(outcome.result()));
else
return GetMergeRequestDetailOutcome(outcome.error());
}
void CodeupClient::getMergeRequestDetailAsync(const GetMergeRequestDetailRequest& request, const GetMergeRequestDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getMergeRequestDetail(request), context);
};
asyncExecute(new Runnable(fn));
}
CodeupClient::GetMergeRequestDetailOutcomeCallable CodeupClient::getMergeRequestDetailCallable(const GetMergeRequestDetailRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetMergeRequestDetailOutcome()>>(
[this, request]()
{
return this->getMergeRequestDetail(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CodeupClient::GetMergeRequestSettingOutcome CodeupClient::getMergeRequestSetting(const GetMergeRequestSettingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetMergeRequestSettingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetMergeRequestSettingOutcome(GetMergeRequestSettingResult(outcome.result()));
else
return GetMergeRequestSettingOutcome(outcome.error());
}
void CodeupClient::getMergeRequestSettingAsync(const GetMergeRequestSettingRequest& request, const GetMergeRequestSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getMergeRequestSetting(request), context);
};
asyncExecute(new Runnable(fn));
}
CodeupClient::GetMergeRequestSettingOutcomeCallable CodeupClient::getMergeRequestSettingCallable(const GetMergeRequestSettingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetMergeRequestSettingOutcome()>>(
[this, request]()
{
return this->getMergeRequestSetting(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CodeupClient::GetProjectMemberOutcome CodeupClient::getProjectMember(const GetProjectMemberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1203,6 +1383,42 @@ CodeupClient::ListGroupsOutcomeCallable CodeupClient::listGroupsCallable(const L
return task->get_future();
}
CodeupClient::ListMergeRequestCommentsOutcome CodeupClient::listMergeRequestComments(const ListMergeRequestCommentsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListMergeRequestCommentsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListMergeRequestCommentsOutcome(ListMergeRequestCommentsResult(outcome.result()));
else
return ListMergeRequestCommentsOutcome(outcome.error());
}
void CodeupClient::listMergeRequestCommentsAsync(const ListMergeRequestCommentsRequest& request, const ListMergeRequestCommentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listMergeRequestComments(request), context);
};
asyncExecute(new Runnable(fn));
}
CodeupClient::ListMergeRequestCommentsOutcomeCallable CodeupClient::listMergeRequestCommentsCallable(const ListMergeRequestCommentsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListMergeRequestCommentsOutcome()>>(
[this, request]()
{
return this->listMergeRequestComments(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CodeupClient::ListMergeRequestsOutcome CodeupClient::listMergeRequests(const ListMergeRequestsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1347,6 +1563,42 @@ CodeupClient::ListRepositoryBranchesOutcomeCallable CodeupClient::listRepository
return task->get_future();
}
CodeupClient::ListRepositoryCommitsOutcome CodeupClient::listRepositoryCommits(const ListRepositoryCommitsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListRepositoryCommitsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListRepositoryCommitsOutcome(ListRepositoryCommitsResult(outcome.result()));
else
return ListRepositoryCommitsOutcome(outcome.error());
}
void CodeupClient::listRepositoryCommitsAsync(const ListRepositoryCommitsRequest& request, const ListRepositoryCommitsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listRepositoryCommits(request), context);
};
asyncExecute(new Runnable(fn));
}
CodeupClient::ListRepositoryCommitsOutcomeCallable CodeupClient::listRepositoryCommitsCallable(const ListRepositoryCommitsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListRepositoryCommitsOutcome()>>(
[this, request]()
{
return this->listRepositoryCommits(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CodeupClient::ListRepositoryMemberOutcome CodeupClient::listRepositoryMember(const ListRepositoryMemberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1599,6 +1851,114 @@ CodeupClient::UpdateGroupMemberOutcomeCallable CodeupClient::updateGroupMemberCa
return task->get_future();
}
CodeupClient::UpdateMergeRequestOutcome CodeupClient::updateMergeRequest(const UpdateMergeRequestRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateMergeRequestOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateMergeRequestOutcome(UpdateMergeRequestResult(outcome.result()));
else
return UpdateMergeRequestOutcome(outcome.error());
}
void CodeupClient::updateMergeRequestAsync(const UpdateMergeRequestRequest& request, const UpdateMergeRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateMergeRequest(request), context);
};
asyncExecute(new Runnable(fn));
}
CodeupClient::UpdateMergeRequestOutcomeCallable CodeupClient::updateMergeRequestCallable(const UpdateMergeRequestRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateMergeRequestOutcome()>>(
[this, request]()
{
return this->updateMergeRequest(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CodeupClient::UpdateMergeRequestCommentOutcome CodeupClient::updateMergeRequestComment(const UpdateMergeRequestCommentRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateMergeRequestCommentOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateMergeRequestCommentOutcome(UpdateMergeRequestCommentResult(outcome.result()));
else
return UpdateMergeRequestCommentOutcome(outcome.error());
}
void CodeupClient::updateMergeRequestCommentAsync(const UpdateMergeRequestCommentRequest& request, const UpdateMergeRequestCommentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateMergeRequestComment(request), context);
};
asyncExecute(new Runnable(fn));
}
CodeupClient::UpdateMergeRequestCommentOutcomeCallable CodeupClient::updateMergeRequestCommentCallable(const UpdateMergeRequestCommentRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateMergeRequestCommentOutcome()>>(
[this, request]()
{
return this->updateMergeRequestComment(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CodeupClient::UpdateMergeRequestSettingOutcome CodeupClient::updateMergeRequestSetting(const UpdateMergeRequestSettingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateMergeRequestSettingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateMergeRequestSettingOutcome(UpdateMergeRequestSettingResult(outcome.result()));
else
return UpdateMergeRequestSettingOutcome(outcome.error());
}
void CodeupClient::updateMergeRequestSettingAsync(const UpdateMergeRequestSettingRequest& request, const UpdateMergeRequestSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateMergeRequestSetting(request), context);
};
asyncExecute(new Runnable(fn));
}
CodeupClient::UpdateMergeRequestSettingOutcomeCallable CodeupClient::updateMergeRequestSettingCallable(const UpdateMergeRequestSettingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateMergeRequestSettingOutcome()>>(
[this, request]()
{
return this->updateMergeRequestSetting(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CodeupClient::UpdateRepositoryOutcome CodeupClient::updateRepository(const UpdateRepositoryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,74 @@
/*
* 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/codeup/model/AcceptMergeRequestRequest.h>
using AlibabaCloud::Codeup::Model::AcceptMergeRequestRequest;
AcceptMergeRequestRequest::AcceptMergeRequestRequest() :
RoaServiceRequest("codeup", "2020-04-14")
{
setResourcePath("/api/v3/projects/[ProjectId]/merge_request/[MergeRequestId]/accept");
setMethod(HttpRequest::Method::Put);
}
AcceptMergeRequestRequest::~AcceptMergeRequestRequest()
{}
std::string AcceptMergeRequestRequest::getOrganizationId()const
{
return organizationId_;
}
void AcceptMergeRequestRequest::setOrganizationId(const std::string& organizationId)
{
organizationId_ = organizationId;
setParameter("OrganizationId", organizationId);
}
long AcceptMergeRequestRequest::getMergeRequestId()const
{
return mergeRequestId_;
}
void AcceptMergeRequestRequest::setMergeRequestId(long mergeRequestId)
{
mergeRequestId_ = mergeRequestId;
setParameter("MergeRequestId", std::to_string(mergeRequestId));
}
std::string AcceptMergeRequestRequest::getAccessToken()const
{
return accessToken_;
}
void AcceptMergeRequestRequest::setAccessToken(const std::string& accessToken)
{
accessToken_ = accessToken;
setParameter("AccessToken", accessToken);
}
long AcceptMergeRequestRequest::getProjectId()const
{
return projectId_;
}
void AcceptMergeRequestRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}

View File

@@ -0,0 +1,197 @@
/*
* 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/codeup/model/AcceptMergeRequestResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Codeup;
using namespace AlibabaCloud::Codeup::Model;
AcceptMergeRequestResult::AcceptMergeRequestResult() :
ServiceResult()
{}
AcceptMergeRequestResult::AcceptMergeRequestResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AcceptMergeRequestResult::~AcceptMergeRequestResult()
{}
void AcceptMergeRequestResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["AcceptedRevision"].isNull())
result_.acceptedRevision = resultNode["AcceptedRevision"].asString();
if(!resultNode["AheadCommitCount"].isNull())
result_.aheadCommitCount = std::stoi(resultNode["AheadCommitCount"].asString());
if(!resultNode["BehindCommitCount"].isNull())
result_.behindCommitCount = std::stoi(resultNode["BehindCommitCount"].asString());
if(!resultNode["CreatedAt"].isNull())
result_.createdAt = resultNode["CreatedAt"].asString();
if(!resultNode["Description"].isNull())
result_.description = resultNode["Description"].asString();
if(!resultNode["Id"].isNull())
result_.id = std::stol(resultNode["Id"].asString());
if(!resultNode["MergeError"].isNull())
result_.mergeError = resultNode["MergeError"].asString();
if(!resultNode["MergeStatus"].isNull())
result_.mergeStatus = resultNode["MergeStatus"].asString();
if(!resultNode["MergeType"].isNull())
result_.mergeType = resultNode["MergeType"].asString();
if(!resultNode["MergedRevision"].isNull())
result_.mergedRevision = resultNode["MergedRevision"].asString();
if(!resultNode["NameWithNamespace"].isNull())
result_.nameWithNamespace = resultNode["NameWithNamespace"].asString();
if(!resultNode["ProjectId"].isNull())
result_.projectId = std::stol(resultNode["ProjectId"].asString());
if(!resultNode["SourceBranch"].isNull())
result_.sourceBranch = resultNode["SourceBranch"].asString();
if(!resultNode["State"].isNull())
result_.state = resultNode["State"].asString();
if(!resultNode["TargetBranch"].isNull())
result_.targetBranch = resultNode["TargetBranch"].asString();
if(!resultNode["Title"].isNull())
result_.title = resultNode["Title"].asString();
if(!resultNode["UpdatedAt"].isNull())
result_.updatedAt = resultNode["UpdatedAt"].asString();
if(!resultNode["WebUrl"].isNull())
result_.webUrl = resultNode["WebUrl"].asString();
auto allAssigneeListNode = resultNode["AssigneeList"]["AssigneeListItem"];
for (auto resultNodeAssigneeListAssigneeListItem : allAssigneeListNode)
{
Result::AssigneeListItem assigneeListItemObject;
if(!resultNodeAssigneeListAssigneeListItem["AvatarUrl"].isNull())
assigneeListItemObject.avatarUrl = resultNodeAssigneeListAssigneeListItem["AvatarUrl"].asString();
if(!resultNodeAssigneeListAssigneeListItem["ExternUserId"].isNull())
assigneeListItemObject.externUserId = resultNodeAssigneeListAssigneeListItem["ExternUserId"].asString();
if(!resultNodeAssigneeListAssigneeListItem["Id"].isNull())
assigneeListItemObject.id = resultNodeAssigneeListAssigneeListItem["Id"].asString();
if(!resultNodeAssigneeListAssigneeListItem["Name"].isNull())
assigneeListItemObject.name = resultNodeAssigneeListAssigneeListItem["Name"].asString();
result_.assigneeList.push_back(assigneeListItemObject);
}
auto approveCheckResultNode = resultNode["ApproveCheckResult"];
if(!approveCheckResultNode["TotalCheckResult"].isNull())
result_.approveCheckResult.totalCheckResult = approveCheckResultNode["TotalCheckResult"].asString();
auto allSatisfiedCheckResultsNode = approveCheckResultNode["SatisfiedCheckResults"]["SatisfiedCheckResultsItem"];
for (auto approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem : allSatisfiedCheckResultsNode)
{
Result::ApproveCheckResult::SatisfiedCheckResultsItem satisfiedCheckResultsItemObject;
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckName"].isNull())
satisfiedCheckResultsItemObject.checkName = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckName"].asString();
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckStatus"].isNull())
satisfiedCheckResultsItemObject.checkStatus = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckStatus"].asString();
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].isNull())
satisfiedCheckResultsItemObject.checkType = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].asString();
auto allExtraUsersNode = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["ExtraUsers"]["ExtraUsersItem"];
for (auto approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem : allExtraUsersNode)
{
Result::ApproveCheckResult::SatisfiedCheckResultsItem::ExtraUsersItem extraUsersObject;
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].isNull())
extraUsersObject.avatarUrl = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].asString();
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].isNull())
extraUsersObject.externUserId = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].asString();
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].isNull())
extraUsersObject.id = std::stol(approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].asString());
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].isNull())
extraUsersObject.name = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].asString();
satisfiedCheckResultsItemObject.extraUsers.push_back(extraUsersObject);
}
auto allSatisfiedItems = value["SatisfiedItems"]["SatisfiedItems"];
for (auto value : allSatisfiedItems)
satisfiedCheckResultsItemObject.satisfiedItems.push_back(value.asString());
auto allUnsatisfiedItems = value["UnsatisfiedItems"]["UnsatisfiedItems"];
for (auto value : allUnsatisfiedItems)
satisfiedCheckResultsItemObject.unsatisfiedItems.push_back(value.asString());
result_.approveCheckResult.satisfiedCheckResults.push_back(satisfiedCheckResultsItemObject);
}
auto allUnsatisfiedCheckResultsNode = approveCheckResultNode["UnsatisfiedCheckResults"]["UnsatisfiedCheckResultsItem"];
for (auto approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem : allUnsatisfiedCheckResultsNode)
{
Result::ApproveCheckResult::UnsatisfiedCheckResultsItem unsatisfiedCheckResultsItemObject;
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckName"].isNull())
unsatisfiedCheckResultsItemObject.checkName = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckName"].asString();
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckStatus"].isNull())
unsatisfiedCheckResultsItemObject.checkStatus = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckStatus"].asString();
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].isNull())
unsatisfiedCheckResultsItemObject.checkType = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].asString();
auto allExtraUsers3Node = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["ExtraUsers"]["ExtraUsersItem"];
for (auto approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem : allExtraUsers3Node)
{
Result::ApproveCheckResult::UnsatisfiedCheckResultsItem::ExtraUsersItem4 extraUsers3Object;
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].isNull())
extraUsers3Object.avatarUrl = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].asString();
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].isNull())
extraUsers3Object.externUserId = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].asString();
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].isNull())
extraUsers3Object.id = std::stol(approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].asString());
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].isNull())
extraUsers3Object.name = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].asString();
unsatisfiedCheckResultsItemObject.extraUsers3.push_back(extraUsers3Object);
}
auto allSatisfiedItems1 = value["SatisfiedItems"]["SatisfiedItems"];
for (auto value : allSatisfiedItems1)
unsatisfiedCheckResultsItemObject.satisfiedItems1.push_back(value.asString());
auto allUnsatisfiedItems2 = value["UnsatisfiedItems"]["UnsatisfiedItems"];
for (auto value : allUnsatisfiedItems2)
unsatisfiedCheckResultsItemObject.unsatisfiedItems2.push_back(value.asString());
result_.approveCheckResult.unsatisfiedCheckResults.push_back(unsatisfiedCheckResultsItemObject);
}
auto authorNode = resultNode["Author"];
if(!authorNode["AvatarUrl"].isNull())
result_.author.avatarUrl = authorNode["AvatarUrl"].asString();
if(!authorNode["ExternUserId"].isNull())
result_.author.externUserId = authorNode["ExternUserId"].asString();
if(!authorNode["Id"].isNull())
result_.author.id = std::stol(authorNode["Id"].asString());
if(!authorNode["Name"].isNull())
result_.author.name = authorNode["Name"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string AcceptMergeRequestResult::getErrorCode()const
{
return errorCode_;
}
std::string AcceptMergeRequestResult::getErrorMessage()const
{
return errorMessage_;
}
bool AcceptMergeRequestResult::getSuccess()const
{
return success_;
}
AcceptMergeRequestResult::Result AcceptMergeRequestResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,74 @@
/*
* 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/codeup/model/CreateMergeRequestCommentRequest.h>
using AlibabaCloud::Codeup::Model::CreateMergeRequestCommentRequest;
CreateMergeRequestCommentRequest::CreateMergeRequestCommentRequest() :
RoaServiceRequest("codeup", "2020-04-14")
{
setResourcePath("/api/v4/projects/[ProjectId]/merge_request/[MergeRequestId]/comments");
setMethod(HttpRequest::Method::Post);
}
CreateMergeRequestCommentRequest::~CreateMergeRequestCommentRequest()
{}
std::string CreateMergeRequestCommentRequest::getOrganizationId()const
{
return organizationId_;
}
void CreateMergeRequestCommentRequest::setOrganizationId(const std::string& organizationId)
{
organizationId_ = organizationId;
setParameter("OrganizationId", organizationId);
}
long CreateMergeRequestCommentRequest::getMergeRequestId()const
{
return mergeRequestId_;
}
void CreateMergeRequestCommentRequest::setMergeRequestId(long mergeRequestId)
{
mergeRequestId_ = mergeRequestId;
setParameter("MergeRequestId", std::to_string(mergeRequestId));
}
std::string CreateMergeRequestCommentRequest::getAccessToken()const
{
return accessToken_;
}
void CreateMergeRequestCommentRequest::setAccessToken(const std::string& accessToken)
{
accessToken_ = accessToken;
setParameter("AccessToken", accessToken);
}
long CreateMergeRequestCommentRequest::getProjectId()const
{
return projectId_;
}
void CreateMergeRequestCommentRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}

View File

@@ -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 <alibabacloud/codeup/model/CreateMergeRequestCommentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Codeup;
using namespace AlibabaCloud::Codeup::Model;
CreateMergeRequestCommentResult::CreateMergeRequestCommentResult() :
ServiceResult()
{}
CreateMergeRequestCommentResult::CreateMergeRequestCommentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateMergeRequestCommentResult::~CreateMergeRequestCommentResult()
{}
void CreateMergeRequestCommentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["Id"].isNull())
result_.id = std::stol(resultNode["Id"].asString());
if(!resultNode["Note"].isNull())
result_.note = resultNode["Note"].asString();
if(!resultNode["CreatedAt"].isNull())
result_.createdAt = resultNode["CreatedAt"].asString();
if(!resultNode["UpdatedAt"].isNull())
result_.updatedAt = resultNode["UpdatedAt"].asString();
if(!resultNode["ProjectId"].isNull())
result_.projectId = std::stol(resultNode["ProjectId"].asString());
if(!resultNode["IsDraft"].isNull())
result_.isDraft = resultNode["IsDraft"].asString() == "true";
if(!resultNode["ParentNoteId"].isNull())
result_.parentNoteId = std::stol(resultNode["ParentNoteId"].asString());
if(!resultNode["Line"].isNull())
result_.line = std::stol(resultNode["Line"].asString());
if(!resultNode["Side"].isNull())
result_.side = resultNode["Side"].asString();
if(!resultNode["Path"].isNull())
result_.path = resultNode["Path"].asString();
if(!resultNode["RangeContext"].isNull())
result_.rangeContext = resultNode["RangeContext"].asString();
if(!resultNode["OutDated"].isNull())
result_.outDated = resultNode["OutDated"].asString() == "true";
if(!resultNode["Closed"].isNull())
result_.closed = std::stoi(resultNode["Closed"].asString());
auto authorNode = resultNode["Author"];
if(!authorNode["Id"].isNull())
result_.author.id = std::stol(authorNode["Id"].asString());
if(!authorNode["AvatarUrl"].isNull())
result_.author.avatarUrl = authorNode["AvatarUrl"].asString();
if(!authorNode["ExternUserId"].isNull())
result_.author.externUserId = authorNode["ExternUserId"].asString();
if(!authorNode["Name"].isNull())
result_.author.name = authorNode["Name"].asString();
if(!authorNode["Email"].isNull())
result_.author.email = authorNode["Email"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string CreateMergeRequestCommentResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateMergeRequestCommentResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateMergeRequestCommentResult::getSuccess()const
{
return success_;
}
CreateMergeRequestCommentResult::Result CreateMergeRequestCommentResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,74 @@
/*
* 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/codeup/model/GetMergeRequestApproveStatusRequest.h>
using AlibabaCloud::Codeup::Model::GetMergeRequestApproveStatusRequest;
GetMergeRequestApproveStatusRequest::GetMergeRequestApproveStatusRequest() :
RoaServiceRequest("codeup", "2020-04-14")
{
setResourcePath("/api/v4/projects/[ProjectId]/merge_request/[MergeRequestId]/approve_status");
setMethod(HttpRequest::Method::Get);
}
GetMergeRequestApproveStatusRequest::~GetMergeRequestApproveStatusRequest()
{}
std::string GetMergeRequestApproveStatusRequest::getOrganizationId()const
{
return organizationId_;
}
void GetMergeRequestApproveStatusRequest::setOrganizationId(const std::string& organizationId)
{
organizationId_ = organizationId;
setParameter("OrganizationId", organizationId);
}
long GetMergeRequestApproveStatusRequest::getMergeRequestId()const
{
return mergeRequestId_;
}
void GetMergeRequestApproveStatusRequest::setMergeRequestId(long mergeRequestId)
{
mergeRequestId_ = mergeRequestId;
setParameter("MergeRequestId", std::to_string(mergeRequestId));
}
std::string GetMergeRequestApproveStatusRequest::getAccessToken()const
{
return accessToken_;
}
void GetMergeRequestApproveStatusRequest::setAccessToken(const std::string& accessToken)
{
accessToken_ = accessToken;
setParameter("AccessToken", accessToken);
}
long GetMergeRequestApproveStatusRequest::getProjectId()const
{
return projectId_;
}
void GetMergeRequestApproveStatusRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}

View File

@@ -0,0 +1,75 @@
/*
* 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/codeup/model/GetMergeRequestApproveStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Codeup;
using namespace AlibabaCloud::Codeup::Model;
GetMergeRequestApproveStatusResult::GetMergeRequestApproveStatusResult() :
ServiceResult()
{}
GetMergeRequestApproveStatusResult::GetMergeRequestApproveStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMergeRequestApproveStatusResult::~GetMergeRequestApproveStatusResult()
{}
void GetMergeRequestApproveStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["ApproveStatus"].isNull())
result_.approveStatus = resultNode["ApproveStatus"].asString();
if(!resultNode["Message"].isNull())
result_.message = resultNode["Message"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string GetMergeRequestApproveStatusResult::getErrorCode()const
{
return errorCode_;
}
std::string GetMergeRequestApproveStatusResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetMergeRequestApproveStatusResult::getSuccess()const
{
return success_;
}
GetMergeRequestApproveStatusResult::Result GetMergeRequestApproveStatusResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,74 @@
/*
* 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/codeup/model/GetMergeRequestDetailRequest.h>
using AlibabaCloud::Codeup::Model::GetMergeRequestDetailRequest;
GetMergeRequestDetailRequest::GetMergeRequestDetailRequest() :
RoaServiceRequest("codeup", "2020-04-14")
{
setResourcePath("/api/v4/projects/[ProjectId]/merge_request/[MergeRequestId]");
setMethod(HttpRequest::Method::Get);
}
GetMergeRequestDetailRequest::~GetMergeRequestDetailRequest()
{}
std::string GetMergeRequestDetailRequest::getOrganizationId()const
{
return organizationId_;
}
void GetMergeRequestDetailRequest::setOrganizationId(const std::string& organizationId)
{
organizationId_ = organizationId;
setParameter("OrganizationId", organizationId);
}
long GetMergeRequestDetailRequest::getMergeRequestId()const
{
return mergeRequestId_;
}
void GetMergeRequestDetailRequest::setMergeRequestId(long mergeRequestId)
{
mergeRequestId_ = mergeRequestId;
setParameter("MergeRequestId", std::to_string(mergeRequestId));
}
std::string GetMergeRequestDetailRequest::getAccessToken()const
{
return accessToken_;
}
void GetMergeRequestDetailRequest::setAccessToken(const std::string& accessToken)
{
accessToken_ = accessToken;
setParameter("AccessToken", accessToken);
}
long GetMergeRequestDetailRequest::getProjectId()const
{
return projectId_;
}
void GetMergeRequestDetailRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}

View File

@@ -0,0 +1,203 @@
/*
* 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/codeup/model/GetMergeRequestDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Codeup;
using namespace AlibabaCloud::Codeup::Model;
GetMergeRequestDetailResult::GetMergeRequestDetailResult() :
ServiceResult()
{}
GetMergeRequestDetailResult::GetMergeRequestDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMergeRequestDetailResult::~GetMergeRequestDetailResult()
{}
void GetMergeRequestDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["AcceptedRevision"].isNull())
result_.acceptedRevision = resultNode["AcceptedRevision"].asString();
if(!resultNode["AheadCommitCount"].isNull())
result_.aheadCommitCount = std::stoi(resultNode["AheadCommitCount"].asString());
if(!resultNode["BehindCommitCount"].isNull())
result_.behindCommitCount = std::stoi(resultNode["BehindCommitCount"].asString());
if(!resultNode["CreatedAt"].isNull())
result_.createdAt = resultNode["CreatedAt"].asString();
if(!resultNode["Description"].isNull())
result_.description = resultNode["Description"].asString();
if(!resultNode["Id"].isNull())
result_.id = std::stol(resultNode["Id"].asString());
if(!resultNode["MergeError"].isNull())
result_.mergeError = resultNode["MergeError"].asString();
if(!resultNode["MergeStatus"].isNull())
result_.mergeStatus = resultNode["MergeStatus"].asString();
if(!resultNode["MergeType"].isNull())
result_.mergeType = resultNode["MergeType"].asString();
if(!resultNode["MergedRevision"].isNull())
result_.mergedRevision = resultNode["MergedRevision"].asString();
if(!resultNode["NameWithNamespace"].isNull())
result_.nameWithNamespace = resultNode["NameWithNamespace"].asString();
if(!resultNode["ProjectId"].isNull())
result_.projectId = std::stol(resultNode["ProjectId"].asString());
if(!resultNode["SourceBranch"].isNull())
result_.sourceBranch = resultNode["SourceBranch"].asString();
if(!resultNode["State"].isNull())
result_.state = resultNode["State"].asString();
if(!resultNode["TargetBranch"].isNull())
result_.targetBranch = resultNode["TargetBranch"].asString();
if(!resultNode["Title"].isNull())
result_.title = resultNode["Title"].asString();
if(!resultNode["UpdatedAt"].isNull())
result_.updatedAt = resultNode["UpdatedAt"].asString();
if(!resultNode["WebUrl"].isNull())
result_.webUrl = resultNode["WebUrl"].asString();
if(!resultNode["IsSupportMerge"].isNull())
result_.isSupportMerge = resultNode["IsSupportMerge"].asString() == "true";
auto allAssigneeListNode = resultNode["AssigneeList"]["AssigneeListItem"];
for (auto resultNodeAssigneeListAssigneeListItem : allAssigneeListNode)
{
Result::AssigneeListItem assigneeListItemObject;
if(!resultNodeAssigneeListAssigneeListItem["AvatarUrl"].isNull())
assigneeListItemObject.avatarUrl = resultNodeAssigneeListAssigneeListItem["AvatarUrl"].asString();
if(!resultNodeAssigneeListAssigneeListItem["ExternUserId"].isNull())
assigneeListItemObject.externUserId = resultNodeAssigneeListAssigneeListItem["ExternUserId"].asString();
if(!resultNodeAssigneeListAssigneeListItem["Id"].isNull())
assigneeListItemObject.id = resultNodeAssigneeListAssigneeListItem["Id"].asString();
if(!resultNodeAssigneeListAssigneeListItem["Name"].isNull())
assigneeListItemObject.name = resultNodeAssigneeListAssigneeListItem["Name"].asString();
if(!resultNodeAssigneeListAssigneeListItem["Status"].isNull())
assigneeListItemObject.status = resultNodeAssigneeListAssigneeListItem["Status"].asString();
if(!resultNodeAssigneeListAssigneeListItem["Email"].isNull())
assigneeListItemObject.email = resultNodeAssigneeListAssigneeListItem["Email"].asString();
result_.assigneeList.push_back(assigneeListItemObject);
}
auto approveCheckResultNode = resultNode["ApproveCheckResult"];
if(!approveCheckResultNode["TotalCheckResult"].isNull())
result_.approveCheckResult.totalCheckResult = approveCheckResultNode["TotalCheckResult"].asString();
auto allSatisfiedCheckResultsNode = approveCheckResultNode["SatisfiedCheckResults"]["SatisfiedCheckResultsItem"];
for (auto approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem : allSatisfiedCheckResultsNode)
{
Result::ApproveCheckResult::SatisfiedCheckResultsItem satisfiedCheckResultsItemObject;
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckName"].isNull())
satisfiedCheckResultsItemObject.checkName = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckName"].asString();
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckStatus"].isNull())
satisfiedCheckResultsItemObject.checkStatus = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckStatus"].asString();
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].isNull())
satisfiedCheckResultsItemObject.checkType = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].asString();
auto allExtraUsersNode = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["ExtraUsers"]["ExtraUsersItem"];
for (auto approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem : allExtraUsersNode)
{
Result::ApproveCheckResult::SatisfiedCheckResultsItem::ExtraUsersItem extraUsersObject;
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].isNull())
extraUsersObject.avatarUrl = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].asString();
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].isNull())
extraUsersObject.externUserId = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].asString();
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].isNull())
extraUsersObject.id = std::stol(approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].asString());
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].isNull())
extraUsersObject.name = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].asString();
satisfiedCheckResultsItemObject.extraUsers.push_back(extraUsersObject);
}
auto allSatisfiedItems = value["SatisfiedItems"]["SatisfiedItems"];
for (auto value : allSatisfiedItems)
satisfiedCheckResultsItemObject.satisfiedItems.push_back(value.asString());
auto allUnsatisfiedItems = value["UnsatisfiedItems"]["UnsatisfiedItems"];
for (auto value : allUnsatisfiedItems)
satisfiedCheckResultsItemObject.unsatisfiedItems.push_back(value.asString());
result_.approveCheckResult.satisfiedCheckResults.push_back(satisfiedCheckResultsItemObject);
}
auto allUnsatisfiedCheckResultsNode = approveCheckResultNode["UnsatisfiedCheckResults"]["UnsatisfiedCheckResultsItem"];
for (auto approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem : allUnsatisfiedCheckResultsNode)
{
Result::ApproveCheckResult::UnsatisfiedCheckResultsItem unsatisfiedCheckResultsItemObject;
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckName"].isNull())
unsatisfiedCheckResultsItemObject.checkName = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckName"].asString();
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckStatus"].isNull())
unsatisfiedCheckResultsItemObject.checkStatus = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckStatus"].asString();
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].isNull())
unsatisfiedCheckResultsItemObject.checkType = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].asString();
auto allExtraUsers3Node = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["ExtraUsers"]["ExtraUsersItem"];
for (auto approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem : allExtraUsers3Node)
{
Result::ApproveCheckResult::UnsatisfiedCheckResultsItem::ExtraUsersItem4 extraUsers3Object;
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].isNull())
extraUsers3Object.avatarUrl = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].asString();
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].isNull())
extraUsers3Object.externUserId = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].asString();
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].isNull())
extraUsers3Object.id = std::stol(approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].asString());
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].isNull())
extraUsers3Object.name = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].asString();
unsatisfiedCheckResultsItemObject.extraUsers3.push_back(extraUsers3Object);
}
auto allSatisfiedItems1 = value["SatisfiedItems"]["SatisfiedItems"];
for (auto value : allSatisfiedItems1)
unsatisfiedCheckResultsItemObject.satisfiedItems1.push_back(value.asString());
auto allUnsatisfiedItems2 = value["UnsatisfiedItems"]["UnsatisfiedItems"];
for (auto value : allUnsatisfiedItems2)
unsatisfiedCheckResultsItemObject.unsatisfiedItems2.push_back(value.asString());
result_.approveCheckResult.unsatisfiedCheckResults.push_back(unsatisfiedCheckResultsItemObject);
}
auto authorNode = resultNode["Author"];
if(!authorNode["AvatarUrl"].isNull())
result_.author.avatarUrl = authorNode["AvatarUrl"].asString();
if(!authorNode["ExternUserId"].isNull())
result_.author.externUserId = authorNode["ExternUserId"].asString();
if(!authorNode["Id"].isNull())
result_.author.id = std::stol(authorNode["Id"].asString());
if(!authorNode["Name"].isNull())
result_.author.name = authorNode["Name"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string GetMergeRequestDetailResult::getErrorCode()const
{
return errorCode_;
}
std::string GetMergeRequestDetailResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetMergeRequestDetailResult::getSuccess()const
{
return success_;
}
GetMergeRequestDetailResult::Result GetMergeRequestDetailResult::getResult()const
{
return result_;
}

View File

@@ -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.
*/
#include <alibabacloud/codeup/model/GetMergeRequestSettingRequest.h>
using AlibabaCloud::Codeup::Model::GetMergeRequestSettingRequest;
GetMergeRequestSettingRequest::GetMergeRequestSettingRequest() :
RoaServiceRequest("codeup", "2020-04-14")
{
setResourcePath("/api/v4/projects/[ProjectId]/settings/merge_requests");
setMethod(HttpRequest::Method::Get);
}
GetMergeRequestSettingRequest::~GetMergeRequestSettingRequest()
{}
std::string GetMergeRequestSettingRequest::getOrganizationId()const
{
return organizationId_;
}
void GetMergeRequestSettingRequest::setOrganizationId(const std::string& organizationId)
{
organizationId_ = organizationId;
setParameter("OrganizationId", organizationId);
}
std::string GetMergeRequestSettingRequest::getAccessToken()const
{
return accessToken_;
}
void GetMergeRequestSettingRequest::setAccessToken(const std::string& accessToken)
{
accessToken_ = accessToken;
setParameter("AccessToken", accessToken);
}
long GetMergeRequestSettingRequest::getProjectId()const
{
return projectId_;
}
void GetMergeRequestSettingRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}

View File

@@ -0,0 +1,76 @@
/*
* 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/codeup/model/GetMergeRequestSettingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Codeup;
using namespace AlibabaCloud::Codeup::Model;
GetMergeRequestSettingResult::GetMergeRequestSettingResult() :
ServiceResult()
{}
GetMergeRequestSettingResult::GetMergeRequestSettingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMergeRequestSettingResult::~GetMergeRequestSettingResult()
{}
void GetMergeRequestSettingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["IsEnableSmartCodeReview"].isNull())
result_.isEnableSmartCodeReview = resultNode["IsEnableSmartCodeReview"].asString() == "true";
auto allMergeTypes = resultNode["MergeTypes"]["MergeTypes"];
for (auto value : allMergeTypes)
result_.mergeTypes.push_back(value.asString());
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string GetMergeRequestSettingResult::getErrorCode()const
{
return errorCode_;
}
std::string GetMergeRequestSettingResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetMergeRequestSettingResult::getSuccess()const
{
return success_;
}
GetMergeRequestSettingResult::Result GetMergeRequestSettingResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,96 @@
/*
* 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/codeup/model/ListMergeRequestCommentsRequest.h>
using AlibabaCloud::Codeup::Model::ListMergeRequestCommentsRequest;
ListMergeRequestCommentsRequest::ListMergeRequestCommentsRequest() :
RoaServiceRequest("codeup", "2020-04-14")
{
setResourcePath("/api/v4/projects/[ProjectId]/merge_request/[MergeRequestId]/comments");
setMethod(HttpRequest::Method::Get);
}
ListMergeRequestCommentsRequest::~ListMergeRequestCommentsRequest()
{}
std::string ListMergeRequestCommentsRequest::getOrganizationId()const
{
return organizationId_;
}
void ListMergeRequestCommentsRequest::setOrganizationId(const std::string& organizationId)
{
organizationId_ = organizationId;
setParameter("OrganizationId", organizationId);
}
long ListMergeRequestCommentsRequest::getMergeRequestId()const
{
return mergeRequestId_;
}
void ListMergeRequestCommentsRequest::setMergeRequestId(long mergeRequestId)
{
mergeRequestId_ = mergeRequestId;
setParameter("MergeRequestId", std::to_string(mergeRequestId));
}
std::string ListMergeRequestCommentsRequest::getFromCommit()const
{
return fromCommit_;
}
void ListMergeRequestCommentsRequest::setFromCommit(const std::string& fromCommit)
{
fromCommit_ = fromCommit;
setParameter("FromCommit", fromCommit);
}
std::string ListMergeRequestCommentsRequest::getAccessToken()const
{
return accessToken_;
}
void ListMergeRequestCommentsRequest::setAccessToken(const std::string& accessToken)
{
accessToken_ = accessToken;
setParameter("AccessToken", accessToken);
}
std::string ListMergeRequestCommentsRequest::getToCommit()const
{
return toCommit_;
}
void ListMergeRequestCommentsRequest::setToCommit(const std::string& toCommit)
{
toCommit_ = toCommit;
setParameter("ToCommit", toCommit);
}
long ListMergeRequestCommentsRequest::getProjectId()const
{
return projectId_;
}
void ListMergeRequestCommentsRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}

View File

@@ -0,0 +1,120 @@
/*
* 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/codeup/model/ListMergeRequestCommentsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Codeup;
using namespace AlibabaCloud::Codeup::Model;
ListMergeRequestCommentsResult::ListMergeRequestCommentsResult() :
ServiceResult()
{}
ListMergeRequestCommentsResult::ListMergeRequestCommentsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListMergeRequestCommentsResult::~ListMergeRequestCommentsResult()
{}
void ListMergeRequestCommentsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResultNode = value["Result"]["ResultItem"];
for (auto valueResultResultItem : allResultNode)
{
ResultItem resultObject;
if(!valueResultResultItem["Closed"].isNull())
resultObject.closed = std::stoi(valueResultResultItem["Closed"].asString());
if(!valueResultResultItem["CreatedAt"].isNull())
resultObject.createdAt = valueResultResultItem["CreatedAt"].asString();
if(!valueResultResultItem["Id"].isNull())
resultObject.id = std::stol(valueResultResultItem["Id"].asString());
if(!valueResultResultItem["IsDraft"].isNull())
resultObject.isDraft = valueResultResultItem["IsDraft"].asString() == "true";
if(!valueResultResultItem["Line"].isNull())
resultObject.line = std::stol(valueResultResultItem["Line"].asString());
if(!valueResultResultItem["Note"].isNull())
resultObject.note = valueResultResultItem["Note"].asString();
if(!valueResultResultItem["OutDated"].isNull())
resultObject.outDated = valueResultResultItem["OutDated"].asString() == "true";
if(!valueResultResultItem["ParentNoteId"].isNull())
resultObject.parentNoteId = std::stol(valueResultResultItem["ParentNoteId"].asString());
if(!valueResultResultItem["Path"].isNull())
resultObject.path = valueResultResultItem["Path"].asString();
if(!valueResultResultItem["ProjectId"].isNull())
resultObject.projectId = std::stol(valueResultResultItem["ProjectId"].asString());
if(!valueResultResultItem["RangeContext"].isNull())
resultObject.rangeContext = valueResultResultItem["RangeContext"].asString();
if(!valueResultResultItem["Side"].isNull())
resultObject.side = valueResultResultItem["Side"].asString();
if(!valueResultResultItem["UpdatedAt"].isNull())
resultObject.updatedAt = valueResultResultItem["UpdatedAt"].asString();
auto authorNode = value["Author"];
if(!authorNode["AvatarUrl"].isNull())
resultObject.author.avatarUrl = authorNode["AvatarUrl"].asString();
if(!authorNode["Email"].isNull())
resultObject.author.email = authorNode["Email"].asString();
if(!authorNode["ExternUserId"].isNull())
resultObject.author.externUserId = authorNode["ExternUserId"].asString();
if(!authorNode["Id"].isNull())
resultObject.author.id = std::stol(authorNode["Id"].asString());
if(!authorNode["Name"].isNull())
resultObject.author.name = authorNode["Name"].asString();
result_.push_back(resultObject);
}
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Total"].isNull())
total_ = std::stol(value["Total"].asString());
}
long ListMergeRequestCommentsResult::getTotal()const
{
return total_;
}
std::string ListMergeRequestCommentsResult::getErrorCode()const
{
return errorCode_;
}
std::string ListMergeRequestCommentsResult::getErrorMessage()const
{
return errorMessage_;
}
bool ListMergeRequestCommentsResult::getSuccess()const
{
return success_;
}
std::vector<ListMergeRequestCommentsResult::ResultItem> ListMergeRequestCommentsResult::getResult()const
{
return result_;
}

View File

@@ -79,6 +79,8 @@ void ListMergeRequestsResult::parse(const std::string &payload)
resultObject.updatedAt = valueResultResultItem["UpdatedAt"].asString();
if(!valueResultResultItem["WebUrl"].isNull())
resultObject.webUrl = valueResultResultItem["WebUrl"].asString();
if(!valueResultResultItem["IsSupportMerge"].isNull())
resultObject.isSupportMerge = valueResultResultItem["IsSupportMerge"].asString() == "true";
auto allAssigneeListNode = valueResultResultItem["AssigneeList"]["AssigneeListItem"];
for (auto valueResultResultItemAssigneeListAssigneeListItem : allAssigneeListNode)
{
@@ -91,6 +93,10 @@ void ListMergeRequestsResult::parse(const std::string &payload)
assigneeListObject.id = valueResultResultItemAssigneeListAssigneeListItem["Id"].asString();
if(!valueResultResultItemAssigneeListAssigneeListItem["Name"].isNull())
assigneeListObject.name = valueResultResultItemAssigneeListAssigneeListItem["Name"].asString();
if(!valueResultResultItemAssigneeListAssigneeListItem["Status"].isNull())
assigneeListObject.status = valueResultResultItemAssigneeListAssigneeListItem["Status"].asString();
if(!valueResultResultItemAssigneeListAssigneeListItem["Email"].isNull())
assigneeListObject.email = valueResultResultItemAssigneeListAssigneeListItem["Email"].asString();
resultObject.assigneeList.push_back(assigneeListObject);
}
auto approveCheckResultNode = value["ApproveCheckResult"];

View File

@@ -0,0 +1,129 @@
/*
* 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/codeup/model/ListRepositoryCommitsRequest.h>
using AlibabaCloud::Codeup::Model::ListRepositoryCommitsRequest;
ListRepositoryCommitsRequest::ListRepositoryCommitsRequest() :
RoaServiceRequest("codeup", "2020-04-14")
{
setResourcePath("/api/v4/projects/[ProjectId]/repository/commits");
setMethod(HttpRequest::Method::Get);
}
ListRepositoryCommitsRequest::~ListRepositoryCommitsRequest()
{}
std::string ListRepositoryCommitsRequest::getAccessToken()const
{
return accessToken_;
}
void ListRepositoryCommitsRequest::setAccessToken(const std::string& accessToken)
{
accessToken_ = accessToken;
setParameter("AccessToken", accessToken);
}
bool ListRepositoryCommitsRequest::getShowSignature()const
{
return showSignature_;
}
void ListRepositoryCommitsRequest::setShowSignature(bool showSignature)
{
showSignature_ = showSignature;
setParameter("ShowSignature", showSignature ? "true" : "false");
}
std::string ListRepositoryCommitsRequest::getRefName()const
{
return refName_;
}
void ListRepositoryCommitsRequest::setRefName(const std::string& refName)
{
refName_ = refName;
setParameter("RefName", refName);
}
std::string ListRepositoryCommitsRequest::getOrganizationId()const
{
return organizationId_;
}
void ListRepositoryCommitsRequest::setOrganizationId(const std::string& organizationId)
{
organizationId_ = organizationId;
setParameter("OrganizationId", organizationId);
}
std::string ListRepositoryCommitsRequest::getPath()const
{
return path_;
}
void ListRepositoryCommitsRequest::setPath(const std::string& path)
{
path_ = path;
setParameter("Path", path);
}
std::string ListRepositoryCommitsRequest::getSearch()const
{
return search_;
}
void ListRepositoryCommitsRequest::setSearch(const std::string& search)
{
search_ = search;
setParameter("Search", search);
}
long ListRepositoryCommitsRequest::getPageSize()const
{
return pageSize_;
}
void ListRepositoryCommitsRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
long ListRepositoryCommitsRequest::getPage()const
{
return page_;
}
void ListRepositoryCommitsRequest::setPage(long page)
{
page_ = page;
setParameter("Page", std::to_string(page));
}
long ListRepositoryCommitsRequest::getProjectId()const
{
return projectId_;
}
void ListRepositoryCommitsRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}

View File

@@ -0,0 +1,113 @@
/*
* 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/codeup/model/ListRepositoryCommitsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Codeup;
using namespace AlibabaCloud::Codeup::Model;
ListRepositoryCommitsResult::ListRepositoryCommitsResult() :
ServiceResult()
{}
ListRepositoryCommitsResult::ListRepositoryCommitsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListRepositoryCommitsResult::~ListRepositoryCommitsResult()
{}
void ListRepositoryCommitsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResultNode = value["Result"]["ResultItem"];
for (auto valueResultResultItem : allResultNode)
{
ResultItem resultObject;
if(!valueResultResultItem["AuthorDate"].isNull())
resultObject.authorDate = valueResultResultItem["AuthorDate"].asString();
if(!valueResultResultItem["AuthorEmail"].isNull())
resultObject.authorEmail = valueResultResultItem["AuthorEmail"].asString();
if(!valueResultResultItem["AuthorName"].isNull())
resultObject.authorName = valueResultResultItem["AuthorName"].asString();
if(!valueResultResultItem["CommittedDate"].isNull())
resultObject.committedDate = valueResultResultItem["CommittedDate"].asString();
if(!valueResultResultItem["CommitterEmail"].isNull())
resultObject.committerEmail = valueResultResultItem["CommitterEmail"].asString();
if(!valueResultResultItem["CommitterName"].isNull())
resultObject.committerName = valueResultResultItem["CommitterName"].asString();
if(!valueResultResultItem["CreatedAt"].isNull())
resultObject.createdAt = valueResultResultItem["CreatedAt"].asString();
if(!valueResultResultItem["Id"].isNull())
resultObject.id = valueResultResultItem["Id"].asString();
if(!valueResultResultItem["Message"].isNull())
resultObject.message = valueResultResultItem["Message"].asString();
if(!valueResultResultItem["ShortId"].isNull())
resultObject.shortId = valueResultResultItem["ShortId"].asString();
if(!valueResultResultItem["Title"].isNull())
resultObject.title = valueResultResultItem["Title"].asString();
auto signatureNode = value["Signature"];
if(!signatureNode["GpgKeyId"].isNull())
resultObject.signature.gpgKeyId = signatureNode["GpgKeyId"].asString();
if(!signatureNode["VerificationStatus"].isNull())
resultObject.signature.verificationStatus = signatureNode["VerificationStatus"].asString();
auto allParentIds = value["ParentIds"]["ParentIds"];
for (auto value : allParentIds)
resultObject.parentIds.push_back(value.asString());
result_.push_back(resultObject);
}
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Total"].isNull())
total_ = std::stol(value["Total"].asString());
}
long ListRepositoryCommitsResult::getTotal()const
{
return total_;
}
std::string ListRepositoryCommitsResult::getErrorCode()const
{
return errorCode_;
}
std::string ListRepositoryCommitsResult::getErrorMessage()const
{
return errorMessage_;
}
bool ListRepositoryCommitsResult::getSuccess()const
{
return success_;
}
std::vector<ListRepositoryCommitsResult::ResultItem> ListRepositoryCommitsResult::getResult()const
{
return result_;
}

View File

@@ -55,6 +55,10 @@ void ListRepositoryMemberResult::parse(const std::string &payload)
resultObject.avatarUrl = valueResultResultItem["AvatarUrl"].asString();
if(!valueResultResultItem["Email"].isNull())
resultObject.email = valueResultResultItem["Email"].asString();
if(!valueResultResultItem["Name"].isNull())
resultObject.name = valueResultResultItem["Name"].asString();
if(!valueResultResultItem["Username"].isNull())
resultObject.username = valueResultResultItem["Username"].asString();
result_.push_back(resultObject);
}
if(!value["ErrorCode"].isNull())

View File

@@ -0,0 +1,85 @@
/*
* 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/codeup/model/UpdateMergeRequestCommentRequest.h>
using AlibabaCloud::Codeup::Model::UpdateMergeRequestCommentRequest;
UpdateMergeRequestCommentRequest::UpdateMergeRequestCommentRequest() :
RoaServiceRequest("codeup", "2020-04-14")
{
setResourcePath("/api/v3/projects/[ProjectId]/merge_requests/[MergeRequestId]/notes/[NoteId]");
setMethod(HttpRequest::Method::Put);
}
UpdateMergeRequestCommentRequest::~UpdateMergeRequestCommentRequest()
{}
std::string UpdateMergeRequestCommentRequest::getOrganizationId()const
{
return organizationId_;
}
void UpdateMergeRequestCommentRequest::setOrganizationId(const std::string& organizationId)
{
organizationId_ = organizationId;
setParameter("OrganizationId", organizationId);
}
long UpdateMergeRequestCommentRequest::getMergeRequestId()const
{
return mergeRequestId_;
}
void UpdateMergeRequestCommentRequest::setMergeRequestId(long mergeRequestId)
{
mergeRequestId_ = mergeRequestId;
setParameter("MergeRequestId", std::to_string(mergeRequestId));
}
std::string UpdateMergeRequestCommentRequest::getAccessToken()const
{
return accessToken_;
}
void UpdateMergeRequestCommentRequest::setAccessToken(const std::string& accessToken)
{
accessToken_ = accessToken;
setParameter("AccessToken", accessToken);
}
long UpdateMergeRequestCommentRequest::getNoteId()const
{
return noteId_;
}
void UpdateMergeRequestCommentRequest::setNoteId(long noteId)
{
noteId_ = noteId;
setParameter("NoteId", std::to_string(noteId));
}
long UpdateMergeRequestCommentRequest::getProjectId()const
{
return projectId_;
}
void UpdateMergeRequestCommentRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}

View File

@@ -0,0 +1,73 @@
/*
* 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/codeup/model/UpdateMergeRequestCommentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Codeup;
using namespace AlibabaCloud::Codeup::Model;
UpdateMergeRequestCommentResult::UpdateMergeRequestCommentResult() :
ServiceResult()
{}
UpdateMergeRequestCommentResult::UpdateMergeRequestCommentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateMergeRequestCommentResult::~UpdateMergeRequestCommentResult()
{}
void UpdateMergeRequestCommentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["Result"].isNull())
result_.result = resultNode["Result"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string UpdateMergeRequestCommentResult::getErrorCode()const
{
return errorCode_;
}
std::string UpdateMergeRequestCommentResult::getErrorMessage()const
{
return errorMessage_;
}
bool UpdateMergeRequestCommentResult::getSuccess()const
{
return success_;
}
UpdateMergeRequestCommentResult::Result UpdateMergeRequestCommentResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,74 @@
/*
* 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/codeup/model/UpdateMergeRequestRequest.h>
using AlibabaCloud::Codeup::Model::UpdateMergeRequestRequest;
UpdateMergeRequestRequest::UpdateMergeRequestRequest() :
RoaServiceRequest("codeup", "2020-04-14")
{
setResourcePath("/api/v3/projects/[ProjectId]/merge_request/[MergeRequestId]");
setMethod(HttpRequest::Method::Put);
}
UpdateMergeRequestRequest::~UpdateMergeRequestRequest()
{}
std::string UpdateMergeRequestRequest::getOrganizationId()const
{
return organizationId_;
}
void UpdateMergeRequestRequest::setOrganizationId(const std::string& organizationId)
{
organizationId_ = organizationId;
setParameter("OrganizationId", organizationId);
}
long UpdateMergeRequestRequest::getMergeRequestId()const
{
return mergeRequestId_;
}
void UpdateMergeRequestRequest::setMergeRequestId(long mergeRequestId)
{
mergeRequestId_ = mergeRequestId;
setParameter("MergeRequestId", std::to_string(mergeRequestId));
}
std::string UpdateMergeRequestRequest::getAccessToken()const
{
return accessToken_;
}
void UpdateMergeRequestRequest::setAccessToken(const std::string& accessToken)
{
accessToken_ = accessToken;
setParameter("AccessToken", accessToken);
}
long UpdateMergeRequestRequest::getProjectId()const
{
return projectId_;
}
void UpdateMergeRequestRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}

View File

@@ -0,0 +1,197 @@
/*
* 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/codeup/model/UpdateMergeRequestResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Codeup;
using namespace AlibabaCloud::Codeup::Model;
UpdateMergeRequestResult::UpdateMergeRequestResult() :
ServiceResult()
{}
UpdateMergeRequestResult::UpdateMergeRequestResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateMergeRequestResult::~UpdateMergeRequestResult()
{}
void UpdateMergeRequestResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["AcceptedRevision"].isNull())
result_.acceptedRevision = resultNode["AcceptedRevision"].asString();
if(!resultNode["AheadCommitCount"].isNull())
result_.aheadCommitCount = std::stoi(resultNode["AheadCommitCount"].asString());
if(!resultNode["BehindCommitCount"].isNull())
result_.behindCommitCount = std::stoi(resultNode["BehindCommitCount"].asString());
if(!resultNode["CreatedAt"].isNull())
result_.createdAt = resultNode["CreatedAt"].asString();
if(!resultNode["Description"].isNull())
result_.description = resultNode["Description"].asString();
if(!resultNode["Id"].isNull())
result_.id = std::stol(resultNode["Id"].asString());
if(!resultNode["MergeError"].isNull())
result_.mergeError = resultNode["MergeError"].asString();
if(!resultNode["MergeStatus"].isNull())
result_.mergeStatus = resultNode["MergeStatus"].asString();
if(!resultNode["MergeType"].isNull())
result_.mergeType = resultNode["MergeType"].asString();
if(!resultNode["MergedRevision"].isNull())
result_.mergedRevision = resultNode["MergedRevision"].asString();
if(!resultNode["NameWithNamespace"].isNull())
result_.nameWithNamespace = resultNode["NameWithNamespace"].asString();
if(!resultNode["ProjectId"].isNull())
result_.projectId = std::stol(resultNode["ProjectId"].asString());
if(!resultNode["SourceBranch"].isNull())
result_.sourceBranch = resultNode["SourceBranch"].asString();
if(!resultNode["State"].isNull())
result_.state = resultNode["State"].asString();
if(!resultNode["TargetBranch"].isNull())
result_.targetBranch = resultNode["TargetBranch"].asString();
if(!resultNode["Title"].isNull())
result_.title = resultNode["Title"].asString();
if(!resultNode["UpdatedAt"].isNull())
result_.updatedAt = resultNode["UpdatedAt"].asString();
if(!resultNode["WebUrl"].isNull())
result_.webUrl = resultNode["WebUrl"].asString();
auto allAssigneeListNode = resultNode["AssigneeList"]["AssigneeListItem"];
for (auto resultNodeAssigneeListAssigneeListItem : allAssigneeListNode)
{
Result::AssigneeListItem assigneeListItemObject;
if(!resultNodeAssigneeListAssigneeListItem["AvatarUrl"].isNull())
assigneeListItemObject.avatarUrl = resultNodeAssigneeListAssigneeListItem["AvatarUrl"].asString();
if(!resultNodeAssigneeListAssigneeListItem["ExternUserId"].isNull())
assigneeListItemObject.externUserId = resultNodeAssigneeListAssigneeListItem["ExternUserId"].asString();
if(!resultNodeAssigneeListAssigneeListItem["Id"].isNull())
assigneeListItemObject.id = resultNodeAssigneeListAssigneeListItem["Id"].asString();
if(!resultNodeAssigneeListAssigneeListItem["Name"].isNull())
assigneeListItemObject.name = resultNodeAssigneeListAssigneeListItem["Name"].asString();
result_.assigneeList.push_back(assigneeListItemObject);
}
auto approveCheckResultNode = resultNode["ApproveCheckResult"];
if(!approveCheckResultNode["TotalCheckResult"].isNull())
result_.approveCheckResult.totalCheckResult = approveCheckResultNode["TotalCheckResult"].asString();
auto allSatisfiedCheckResultsNode = approveCheckResultNode["SatisfiedCheckResults"]["SatisfiedCheckResultsItem"];
for (auto approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem : allSatisfiedCheckResultsNode)
{
Result::ApproveCheckResult::SatisfiedCheckResultsItem satisfiedCheckResultsItemObject;
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckName"].isNull())
satisfiedCheckResultsItemObject.checkName = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckName"].asString();
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckStatus"].isNull())
satisfiedCheckResultsItemObject.checkStatus = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckStatus"].asString();
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].isNull())
satisfiedCheckResultsItemObject.checkType = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["CheckType"].asString();
auto allExtraUsersNode = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItem["ExtraUsers"]["ExtraUsersItem"];
for (auto approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem : allExtraUsersNode)
{
Result::ApproveCheckResult::SatisfiedCheckResultsItem::ExtraUsersItem extraUsersObject;
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].isNull())
extraUsersObject.avatarUrl = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].asString();
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].isNull())
extraUsersObject.externUserId = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].asString();
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].isNull())
extraUsersObject.id = std::stol(approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].asString());
if(!approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].isNull())
extraUsersObject.name = approveCheckResultNodeSatisfiedCheckResultsSatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].asString();
satisfiedCheckResultsItemObject.extraUsers.push_back(extraUsersObject);
}
auto allSatisfiedItems = value["SatisfiedItems"]["SatisfiedItems"];
for (auto value : allSatisfiedItems)
satisfiedCheckResultsItemObject.satisfiedItems.push_back(value.asString());
auto allUnsatisfiedItems = value["UnsatisfiedItems"]["UnsatisfiedItems"];
for (auto value : allUnsatisfiedItems)
satisfiedCheckResultsItemObject.unsatisfiedItems.push_back(value.asString());
result_.approveCheckResult.satisfiedCheckResults.push_back(satisfiedCheckResultsItemObject);
}
auto allUnsatisfiedCheckResultsNode = approveCheckResultNode["UnsatisfiedCheckResults"]["UnsatisfiedCheckResultsItem"];
for (auto approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem : allUnsatisfiedCheckResultsNode)
{
Result::ApproveCheckResult::UnsatisfiedCheckResultsItem unsatisfiedCheckResultsItemObject;
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckName"].isNull())
unsatisfiedCheckResultsItemObject.checkName = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckName"].asString();
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckStatus"].isNull())
unsatisfiedCheckResultsItemObject.checkStatus = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckStatus"].asString();
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].isNull())
unsatisfiedCheckResultsItemObject.checkType = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["CheckType"].asString();
auto allExtraUsers3Node = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItem["ExtraUsers"]["ExtraUsersItem"];
for (auto approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem : allExtraUsers3Node)
{
Result::ApproveCheckResult::UnsatisfiedCheckResultsItem::ExtraUsersItem4 extraUsers3Object;
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].isNull())
extraUsers3Object.avatarUrl = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["AvatarUrl"].asString();
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].isNull())
extraUsers3Object.externUserId = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["ExternUserId"].asString();
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].isNull())
extraUsers3Object.id = std::stol(approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Id"].asString());
if(!approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].isNull())
extraUsers3Object.name = approveCheckResultNodeUnsatisfiedCheckResultsUnsatisfiedCheckResultsItemExtraUsersExtraUsersItem["Name"].asString();
unsatisfiedCheckResultsItemObject.extraUsers3.push_back(extraUsers3Object);
}
auto allSatisfiedItems1 = value["SatisfiedItems"]["SatisfiedItems"];
for (auto value : allSatisfiedItems1)
unsatisfiedCheckResultsItemObject.satisfiedItems1.push_back(value.asString());
auto allUnsatisfiedItems2 = value["UnsatisfiedItems"]["UnsatisfiedItems"];
for (auto value : allUnsatisfiedItems2)
unsatisfiedCheckResultsItemObject.unsatisfiedItems2.push_back(value.asString());
result_.approveCheckResult.unsatisfiedCheckResults.push_back(unsatisfiedCheckResultsItemObject);
}
auto authorNode = resultNode["Author"];
if(!authorNode["AvatarUrl"].isNull())
result_.author.avatarUrl = authorNode["AvatarUrl"].asString();
if(!authorNode["ExternUserId"].isNull())
result_.author.externUserId = authorNode["ExternUserId"].asString();
if(!authorNode["Id"].isNull())
result_.author.id = std::stol(authorNode["Id"].asString());
if(!authorNode["Name"].isNull())
result_.author.name = authorNode["Name"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string UpdateMergeRequestResult::getErrorCode()const
{
return errorCode_;
}
std::string UpdateMergeRequestResult::getErrorMessage()const
{
return errorMessage_;
}
bool UpdateMergeRequestResult::getSuccess()const
{
return success_;
}
UpdateMergeRequestResult::Result UpdateMergeRequestResult::getResult()const
{
return result_;
}

View File

@@ -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.
*/
#include <alibabacloud/codeup/model/UpdateMergeRequestSettingRequest.h>
using AlibabaCloud::Codeup::Model::UpdateMergeRequestSettingRequest;
UpdateMergeRequestSettingRequest::UpdateMergeRequestSettingRequest() :
RoaServiceRequest("codeup", "2020-04-14")
{
setResourcePath("/api/v4/projects/[ProjectId]/settings/merge_requests");
setMethod(HttpRequest::Method::Put);
}
UpdateMergeRequestSettingRequest::~UpdateMergeRequestSettingRequest()
{}
std::string UpdateMergeRequestSettingRequest::getOrganizationId()const
{
return organizationId_;
}
void UpdateMergeRequestSettingRequest::setOrganizationId(const std::string& organizationId)
{
organizationId_ = organizationId;
setParameter("OrganizationId", organizationId);
}
std::string UpdateMergeRequestSettingRequest::getAccessToken()const
{
return accessToken_;
}
void UpdateMergeRequestSettingRequest::setAccessToken(const std::string& accessToken)
{
accessToken_ = accessToken;
setParameter("AccessToken", accessToken);
}
long UpdateMergeRequestSettingRequest::getProjectId()const
{
return projectId_;
}
void UpdateMergeRequestSettingRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}

View File

@@ -0,0 +1,73 @@
/*
* 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/codeup/model/UpdateMergeRequestSettingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Codeup;
using namespace AlibabaCloud::Codeup::Model;
UpdateMergeRequestSettingResult::UpdateMergeRequestSettingResult() :
ServiceResult()
{}
UpdateMergeRequestSettingResult::UpdateMergeRequestSettingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateMergeRequestSettingResult::~UpdateMergeRequestSettingResult()
{}
void UpdateMergeRequestSettingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["Result"].isNull())
result_.result = resultNode["Result"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string UpdateMergeRequestSettingResult::getErrorCode()const
{
return errorCode_;
}
std::string UpdateMergeRequestSettingResult::getErrorMessage()const
{
return errorMessage_;
}
bool UpdateMergeRequestSettingResult::getSuccess()const
{
return success_;
}
UpdateMergeRequestSettingResult::Result UpdateMergeRequestSettingResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK" responseLog="disable" isolationType="outer" parameterType="Single" product="dataworks-public" controlPolicy="CheckCallbackPolicy" visibility="Public" akProvenStatus="Disable" version="2018-06-01" keepClientResourceOwnerId="true" name="CheckCallback" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST" /><ErrorMapping><ErrorCodes /></ErrorMapping><ErrorResultMapping></ErrorResultMapping><IspProtocol sign="true" signKeyName="dataworks-dqc" timeout="10000" protocol="http" httpHost="http://dqcapi.${regionId}.data.aliyun-inc.com/open/pop/callback/docheck" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="signature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callbackResultString" tagName="CallbackResultString" type="String" required="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="regionId" tagName="RegionId" type="String" required="false" tagPosition="Host" checkBlank="false"/></Parameters><FlowControl controlUnit="Second" apiDefault="100" /><PreIspProtocol sign="true" signKeyName="dataworks-dqc" timeout="10000" protocol="http" httpHost="http://100.67.207.150/open/pop/callback/docheck" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="ReturnCode" visibility="Public" type="String" name="returnCode" nullToEmpty="false"/><Member tagName="ReturnValue" visibility="Public" type="Boolean" name="ReturnValue" nullToEmpty="false"/><Member tagName="RequestId" visibility="Public" type="String" name="requestId" nullToEmpty="false"/></ResultMapping></Api>

View File

@@ -0,0 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="dataworks-public" visibility="Private" akProvenStatus="Disable" version="2018-06-01" keepClientResourceOwnerId="false" name="CreateDag" showJsonItemName="true" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST" /><ErrorMapping exceptionExpress="returnCode!=&quot;0&quot;,returnCode,returnMessage,httpStatusCode"><ErrorCodes /></ErrorMapping><ErrorResultMapping></ErrorResultMapping><IspProtocol sign="true" signKeyName="oxs-dataworks-schedulerapi" timeout="10000" protocol="http" httpHost="http://schedulerapi.${regionId}.data.aliyun-inc.com/v1.0/pop/dag/manual" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="IspSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="instanceName" tagName="InstanceName" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="projectName" tagName="ProjectName" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="flowName" tagName="FlowName" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="bizdate" tagName="Bizdate" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="nodeName" tagName="NodeName" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="regionId" tagName="RegionId" type="String" required="true" tagPosition="Host" docRequired="true" checkBlank="false"/><Parameter name="callerUidForClusterRouting" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/></Parameters><FlowControl controlUnit="Second" apiDefault="2000" /><ResultMapping><Member tagName="RequestId" visibility="Public" type="String" name="requestId" nullToEmpty="false"/><Member tagName="ErrCode" visibility="Public" type="String" name="returnCode" nullToEmpty="false"/><Member tagName="ErrMsg" visibility="Public" type="String" name="returnMessage" nullToEmpty="true"/><Member tagName="Data" visibility="Public" type="Long" name="returnValue" nullToEmpty="true"/></ResultMapping></Api>

View File

@@ -0,0 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="dataworks-public" visibility="Public" akProvenStatus="Disable" version="2018-06-01" keepClientResourceOwnerId="true" name="CreateManualDag" showJsonItemName="true" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST" /><ErrorMapping><ErrorCodes /></ErrorMapping><ErrorResultMapping></ErrorResultMapping><IspProtocol sign="true" signKeyName="oxs-dataworks-schedulerapi" timeout="10000" protocol="http" httpHost="http://schedulerapi.${regionId}.data.aliyun-inc.com/v1.0/pop/dag/manual/run" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="IspSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerUidForClusterRouting" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="projectName" tagName="ProjectName" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="flowName" tagName="FlowName" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="dagPara" tagName="DagPara" type="String" required="false" tagPosition="Query" checkBlank="false" visibility="Public"/><Parameter name="nodePara" tagName="NodePara" type="String" required="false" tagPosition="Query" checkBlank="false" visibility="Public"/><Parameter name="bizdate" tagName="Bizdate" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="regionId" tagName="RegionId" type="String" required="false" tagPosition="Host" docRequired="false" checkBlank="false"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/></Parameters><FlowControl controlUnit="Second" apiDefault="2000" /><ResultMapping><Member tagName="RequestId" visibility="Public" type="String" name="requestId" nullToEmpty="false"/><Member tagName="ReturnCode" visibility="Public" type="String" name="returnCode" nullToEmpty="false"/><Member tagName="ReturnErrorSolution" visibility="Public" type="String" name="returnErrorSolution" nullToEmpty="false"/><Member tagName="ReturnMessage" visibility="Public" type="String" name="returnMessage" nullToEmpty="false"/><Member tagName="ReturnValue" visibility="Public" type="Long" name="returnValue" nullToEmpty="false"/></ResultMapping></Api>

View File

@@ -0,0 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="dataworks-public" visibility="Public" akProvenStatus="Disable" version="2018-06-01" keepClientResourceOwnerId="true" name="CreateRealTimeProcess" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST|GET" /><ErrorMapping><ErrorCodes /></ErrorMapping><IspProtocol sign="true" serviceRoutePolicy="" signKeyName="dataworksDi" timeout="10000" protocol="http" httpHost="http://di2-cn-shanghai.data.aliyun.com/openapi/v1/di/oneclick/create" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="uid" tagName="Uid" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="dwVersion" tagName="DataworksVersion" type="String" required="false" tagPosition="Query" checkBlank="false" visibility="Public"/><Parameter name="createResGroup" tagName="CreateResGroup" type="Boolean" required="false" tagPosition="Query" checkBlank="false" visibility="Public"/><Parameter name="resourceSpec" tagName="ResourceSpec" type="String" required="false" tagPosition="Query" checkBlank="false" visibility="Public"/><Parameter name="datasource" tagName="DataSource" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="tables" tagName="Tables" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="dstTableRule" tagName="TableRule" type="String" required="false" tagPosition="Query" checkBlank="false" visibility="Public"/><Parameter name="jobConfig" tagName="JobConfig" type="String" required="false" tagPosition="Query" checkBlank="false" visibility="Public"/><Parameter name="IspSignatureSecretKey" tagName="IspSignatureSecretKey" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="IspSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="bid" tagName="Bid" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/></Parameters><FlowControl controlUnit="Second" apiDefault="10" /><PreIspProtocol sign="true" signKeyName="dataworksDi" timeout="10000" protocol="http" httpHost="http://100.67.165.186/openapi/v1/di/oneclick/create" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="RequestId" visibility="Public" type="String" name="requestId" nullToEmpty="false"/><Member tagName="Message" visibility="Public" type="String" name="errMsg" nullToEmpty="false"/><Member tagName="Code" visibility="Public" type="Integer" name="errCode" nullToEmpty="false"/><Struct tagName="Data" visibility="Public" name="data" nullToEmpty="false"><Member tagName="TaskId" visibility="Public" type="String" name="taskId" nullToEmpty="false"/></Struct></ResultMapping></Api>

View File

@@ -0,0 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="dataworks-public" visibility="Public" akProvenStatus="Disable" version="2018-06-01" keepClientResourceOwnerId="false" name="DeleteFile" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST" /><ErrorMapping exceptionExpress="success=false,errorCode,errorMessage,httpStatusCode,dynamicErrorCode,dynamicErrorMessage"><ErrorCodes><ErrorCode code="9990010001" errorCode="Forbidden.Access" type="user" httpCode="403" extendedErrorCode="" errorMessage="Access is forbidden. Activate DataWorks first." /><ErrorCode code="9990010002" errorCode="InternalError.System" type="user" httpCode="500" extendedErrorCode="" errorMessage="An internal system error occurred. Try again later." /><ErrorCode code="9990030002" errorCode="InternalError.UserId.Missing" type="user" httpCode="500" extendedErrorCode="" errorMessage="An internal system error occurred. Try again later." /><ErrorCode code="9990010001" errorCode="ResourceNotAuthorized.Api" type="user" httpCode="403" extendedErrorCode="" errorMessage="You are not authorized to access the resources." /><ErrorCode code="9990040001" errorCode="Throttling.Api" type="user" httpCode="429" extendedErrorCode="" errorMessage="The request for this resource has exceeded your available limit." /><ErrorCode code="9990020001" errorCode="Throttling.System" type="user" httpCode="429" extendedErrorCode="" errorMessage="The DataWorks system is busy. Try again later." /><ErrorCode code="9990020002" errorCode="Throttling.User" type="user" httpCode="429" extendedErrorCode="" errorMessage="Your request is too frequent. Try again later." /></ErrorCodes></ErrorMapping><ErrorResultMapping></ErrorResultMapping><IspProtocol sign="true" serviceRoutePolicy="" signKeyName="BusinessSecretKey" timeout="3000" protocol="http" httpHost="http://ide2.${regionId}.data.aliyun-inc.com/business/api/files/delete" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="userIp" tagName="SourceIp" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="ProjectId" tagName="ProjectId" type="Long" required="false" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="regionId" tagName="RegionId" type="String" required="true" tagPosition="Host" docRequired="true" checkBlank="false"/><Parameter name="ispSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="ProjectIdentifier" tagName="ProjectIdentifier" type="String" required="false" tagPosition="Body" checkBlank="false" visibility="Public"/><Parameter name="FileId" tagName="FileId" type="Long" required="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/></Parameters><FlowControl controlUnit="Second" apiDefault="40" /><PreIspProtocol sign="true" signKeyName="BusinessSecretKey" timeout="3000" protocol="http" httpHost="http://100.67.165.184/business/api/files/delete" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="RequestId" visibility="Public" type="String" name="requestId" nullToEmpty="false"/><Member tagName="Success" visibility="Public" type="Boolean" name="success" nullToEmpty="false"/><Member tagName="ErrorCode" visibility="Public" type="String" name="errorCode" nullToEmpty="false"/><Member tagName="ErrorMessage" visibility="Public" type="String" name="errorMessage" nullToEmpty="false"/><Member tagName="HttpStatusCode" visibility="Public" type="Integer" name="httpStatusCode" nullToEmpty="true"/></ResultMapping></Api>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="dataworks-public" controlPolicy="GetInstancePolicy" visibility="Private" akProvenStatus="Disable" version="2018-06-01" keepClientResourceOwnerId="true" name="GetInstance" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST" /><ErrorMapping><ErrorCodes /></ErrorMapping><ErrorResultMapping></ErrorResultMapping><IspProtocol sign="true" signKeyName="oxs-dataworks-schedulerapi" timeout="5000" protocol="http" httpHost="http://schedulerapi.${regionId}.data.aliyun-inc.com/v1.0/public-pop/instance/getInstance" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerUidForClusterRouting" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="sourceIp" tagName="SourceIp" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="instanceId" tagName="InstanceId" type="Long" required="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="IspSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="regionId" tagName="RegionId" type="String" required="true" tagPosition="Host" docRequired="true" checkBlank="false"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/></Parameters><FlowControl controlUnit="Second" userDefault="4" apiDefault="100" /><PreIspProtocol sign="true" signKeyName="oxs-dataworks-schedulerapi" timeout="5000" protocol="http" httpHost="http://100.67.165.199/v1.0/public-pop/instance/getInstance" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="ReturnCode" visibility="Public" type="String" name="returnCode"/><Member tagName="ReturnErrorSolution" visibility="Public" type="String" name="returnErrorSolution"/><Member tagName="ReturnMessage" visibility="Public" type="String" name="returnMessage"/><Member tagName="RequestId" visibility="Public" type="String" name="requestId"/><Member tagName="Success" visibility="Public" type="Boolean" name="success"/><Struct tagName="ReturnValue" visibility="Public" name="returnValue"><Member tagName="NodeId" visibility="Public" type="Long" name="nodeId"/><Member tagName="InstanceId" visibility="Public" type="Long" name="instanceId"/><Member tagName="DagId" visibility="Public" type="Long" name="dagId"/><Member tagName="DagType" visibility="Public" type="String" name="dagType"/><Member tagName="Status" visibility="Public" type="String" name="status"/><Member tagName="Bizdate" visibility="Public" type="Long" name="bizdate"/><Member tagName="ParaValue" visibility="Public" type="String" name="paraValue"/><Member tagName="CycTime" visibility="Public" type="Long" name="cycTime"/><Member tagName="FinishTime" visibility="Public" type="Long" name="finishTime"/><Member tagName="BeginWaitTimeTime" visibility="Public" type="Long" name="beginWaitTimeTime"/><Member tagName="BeginWaitResTime" visibility="Public" type="Long" name="beginWaitResTime"/><Member tagName="BeginRunningTime" visibility="Public" type="Long" name="beginRunningTime"/><Member tagName="CreateTime" visibility="Public" type="Long" name="createTime"/><Member tagName="ModifyTime" visibility="Public" type="Long" name="modifyTime"/><Member tagName="NodeName" visibility="Public" type="String" name="nodeName"/></Struct></ResultMapping></Api>

View File

@@ -0,0 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="dataworks-public" controlPolicy="GetInstanceLogPolicy" visibility="Private" akProvenStatus="Disable" version="2018-06-01" keepClientResourceOwnerId="false" name="GetInstanceLog" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST" /><ErrorMapping><ErrorCodes /></ErrorMapping><ErrorResultMapping></ErrorResultMapping><IspProtocol sign="true" signKeyName="oxs-dataworks-schedulerapi" timeout="5000" protocol="http" httpHost="http://schedulerapi.${regionId}.data.aliyun-inc.com/v1.0/public-pop/instance/getInstanceLog" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerUidForClusterRouting" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="sourceIp" tagName="SourceIp" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="instanceId" tagName="InstanceId" type="Long" required="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="IspSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="regionId" tagName="RegionId" type="String" required="true" tagPosition="Host" docRequired="true" checkBlank="false"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="projectEnv" tagName="ProjectEnv" type="String" required="false" tagPosition="Body" checkBlank="false" visibility="Public"/></Parameters><FlowControl controlUnit="Second" userDefault="2" apiDefault="100" /><PreIspProtocol sign="true" signKeyName="oxs-dataworks-schedulerapi" timeout="5000" protocol="http" httpHost="http://100.67.165.199/v1.0/public-pop/instance/getInstanceLog" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="ReturnCode" visibility="Public" type="String" name="returnCode"/><Member tagName="ReturnErrorSolution" visibility="Public" type="String" name="returnErrorSolution"/><Member tagName="ReturnMessage" visibility="Public" type="String" name="returnMessage"/><Member tagName="RequestId" visibility="Public" type="String" name="requestId"/><Member tagName="Success" visibility="Public" type="Boolean" name="success"/><Member tagName="ReturnValue" visibility="Public" type="String" name="returnValue"/></ResultMapping></Api>

View File

@@ -0,0 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="dataworks-public" controlPolicy="GetInstanceStatisticPolicy" visibility="Private" akProvenStatus="Disable" version="2018-06-01" keepClientResourceOwnerId="false" name="GetInstanceStatistic" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST" /><ErrorMapping><ErrorCodes /></ErrorMapping><ErrorResultMapping></ErrorResultMapping><IspProtocol sign="true" signKeyName="oxs-dataworks-schedulerapi" timeout="5000" protocol="http" httpHost="http://schedulerapi.${regionId}.data.aliyun-inc.com/v1.0/public-pop/instance/getInstanceStatistic" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerUidForClusterRouting" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="sourceIp" tagName="SourceIp" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="appId" tagName="AppId" type="Long" required="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="IspSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="regionId" tagName="RegionId" type="String" required="true" tagPosition="Host" docRequired="true" checkBlank="false"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="bizdate" tagName="Bizdate" type="String" required="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/></Parameters><FlowControl controlUnit="Second" userDefault="4" apiDefault="100" /><PreIspProtocol sign="true" signKeyName="oxs-dataworks-schedulerapi" timeout="5000" protocol="http" httpHost="http://100.67.165.199/v1.0/public-pop/instance/getInstanceStatistic" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="ReturnCode" visibility="Public" type="String" name="returnCode"/><Member tagName="ReturnErrorSolution" visibility="Public" type="String" name="returnErrorSolution"/><Member tagName="ReturnMessage" visibility="Public" type="String" name="returnMessage"/><Member tagName="RequestId" visibility="Public" type="String" name="requestId"/><Member tagName="Count" visibility="Public" type="Integer" name="count"/><Member tagName="Success" visibility="Public" type="Boolean" name="success"/><Array tagName="ReturnValue" visibility="Public" itemName="Instance" name="returnValue"><Member tagName="TotalCount" visibility="Public" type="Integer" name="totalCount"/><Member tagName="NotRunCount" visibility="Public" type="Integer" name="notRunCount"/><Member tagName="WaitTimeCount" visibility="Public" type="Integer" name="waitTimeCount"/><Member tagName="WaitResourceCount" visibility="Public" type="Integer" name="waitResCount"/><Member tagName="RunningCount" visibility="Public" type="Integer" name="runningCount"/><Member tagName="FailureCount" visibility="Public" type="Integer" name="failureCount"/><Member tagName="SuccessCount" visibility="Public" type="Integer" name="successCount"/></Array></ResultMapping></Api>

View File

@@ -0,0 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="dataworks-public" controlPolicy="GetNodePolicy" visibility="Private" akProvenStatus="Disable" version="2018-06-01" keepClientResourceOwnerId="true" name="GetNode" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST" /><ErrorMapping><ErrorCodes /></ErrorMapping><ErrorResultMapping></ErrorResultMapping><IspProtocol sign="true" signKeyName="oxs-dataworks-schedulerapi" timeout="10000" protocol="http" httpHost="http://schedulerapi.${regionId}.data.aliyun-inc.com/v1.0/public-pop/node/getNodeById" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="nodeId" tagName="NodeId" type="Long" required="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="callerUidForClusterRouting" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="sourceIp" tagName="app_ip" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="IspSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="regionId" tagName="RegionId" type="String" required="true" tagPosition="Host" docRequired="true" checkBlank="false"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/></Parameters><FlowControl controlUnit="Second" userDefault="4" apiDefault="100" /><PreIspProtocol sign="true" signKeyName="oxs-dataworks-schedulerapi" timeout="10000" protocol="http" httpHost="http://100.67.165.199/v1.0/public-pop/node/getNodeById" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="ReturnCode" visibility="Public" type="String" name="returnCode" nullToEmpty="false"/><Member tagName="ReturnErrorSolution" visibility="Public" type="String" name="returnErrorSolution" nullToEmpty="false"/><Member tagName="ReturnMessage" visibility="Public" type="String" name="returnMessage" nullToEmpty="false"/><Member tagName="RequestId" visibility="Public" type="String" name="requestId" nullToEmpty="false"/><Struct tagName="ReturnValue" visibility="Public" name="returnValue" nullToEmpty="false"><Member tagName="NodeId" visibility="Public" type="Long" name="nodeId" nullToEmpty="false"/><Member tagName="NodeName" visibility="Public" type="String" name="nodeName" nullToEmpty="false"/><Member tagName="NodeType" visibility="Public" type="String" name="nodeType" nullToEmpty="false"/><Member tagName="PrgType" visibility="Public" type="String" name="prgType" nullToEmpty="false"/><Member tagName="Description" visibility="Public" type="String" name="description" nullToEmpty="true"/><Member tagName="ParaValue" visibility="Public" type="String" name="paraValue" nullToEmpty="true"/><Member tagName="CronExpress" visibility="Public" type="String" name="cronExpress" nullToEmpty="true"/><Member tagName="Owner" visibility="Public" type="String" name="owner" nullToEmpty="true"/><Member tagName="ResGroupName" visibility="Public" type="String" name="resGroupName" nullToEmpty="true"/><Member tagName="AppId" visibility="Public" type="Long" name="appId" nullToEmpty="true"/><Member tagName="RerunAble" visibility="Public" type="Boolean" name="rerunAble" nullToEmpty="true"/><Array tagName="Inputs" visibility="Public" itemName="Inputs" name="inputs" nullToEmpty="true"><Member tagName="Data" visibility="Public" type="String" name="data" nullToEmpty="false"/><Member tagName="TableName" visibility="Public" type="String" name="refTableName" nullToEmpty="true"/></Array><Array tagName="Outputs" visibility="Public" itemName="Outputs" name="outputs" nullToEmpty="true"><Member tagName="Data" visibility="Public" type="String" name="data" nullToEmpty="false"/><Member tagName="TableName" visibility="Public" type="String" name="refTableName" nullToEmpty="true"/></Array><Array tagName="ChildNodeRelations" visibility="Public" itemName="ChildNodeRelations" name="childNodeRelations" nullToEmpty="false"><Member tagName="ChildNodeId" visibility="Public" type="Long" name="childNodeId" nullToEmpty="false"/><Member tagName="ParentNodeId" visibility="Public" type="Long" name="parentNodeId" nullToEmpty="false"/></Array><Array tagName="ParentNodeRelations" visibility="Public" itemName="ParentNodeRelations" name="parentNodeRelations" nullToEmpty="true"><Member tagName="ChildNodeId" visibility="Public" type="Long" name="childNodeId" nullToEmpty="false"/><Member tagName="ParentNodeId" visibility="Public" type="Long" name="parentNodeId" nullToEmpty="false"/></Array></Struct></ResultMapping></Api>

View File

@@ -0,0 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="dataworks-public" controlPolicy="GetNodeCodePolicy" visibility="Private" akProvenStatus="Disable" version="2018-06-01" keepClientResourceOwnerId="false" name="GetNodeCode" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST" /><ErrorMapping><ErrorCodes /></ErrorMapping><ErrorResultMapping></ErrorResultMapping><IspProtocol sign="true" signKeyName="oxs-dataworks-schedulerapi" timeout="10000" protocol="http" httpHost="http://schedulerapi.${regionId}.data.aliyun-inc.com/v1.0/public-pop/node/getNodeCode" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="nodeId" tagName="NodeId" type="Long" required="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="callerUidForClusterRouting" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="sourceIp" tagName="app_ip" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="IspSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="regionId" tagName="RegionId" type="String" required="true" tagPosition="Host" docRequired="true" checkBlank="false"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="projectEnv" tagName="ProjectEnv" type="String" required="false" tagPosition="Body" checkBlank="false" visibility="Public"/></Parameters><FlowControl controlUnit="Second" userDefault="1" apiDefault="100" /><PreIspProtocol sign="true" signKeyName="oxs-dataworks-schedulerapi" timeout="10000" protocol="http" httpHost="http://100.67.165.199/v1.0/public-pop/node/getNodeCode" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="ReturnCode" visibility="Public" type="String" name="returnCode" nullToEmpty="false"/><Member tagName="ReturnErrorSolution" visibility="Public" type="String" name="returnErrorSolution" nullToEmpty="false"/><Member tagName="ReturnMessage" visibility="Public" type="String" name="returnMessage" nullToEmpty="false"/><Member tagName="RequestId" visibility="Public" type="String" name="requestId" nullToEmpty="false"/><Member tagName="ReturnValue" visibility="Public" type="String" name="returnValue" nullToEmpty="false"/></ResultMapping></Api>

View File

@@ -0,0 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="dataworks-public" controlPolicy="EMR-POP-API-Whitelist-Policy" visibility="Public" akProvenStatus="Disable" version="2018-06-01" keepClientResourceOwnerId="true" name="ListEmrHiveAuditLogs" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST|GET" /><ErrorMapping exceptionExpress="errCode!=&quot;0&quot;,errCode,errMsg,httpStatusCode"><ErrorCodes /></ErrorMapping><ErrorResultMapping></ErrorResultMapping><IspProtocol sign="true" signKeyName="dw-meta" timeout="5000" protocol="http" httpHost="http://meta.${regionId}.data.aliyun-inc.com/dataos/v1/emr/hive/auditLogs" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="clusterId" tagName="ClusterId" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="callerParentId" tagName="callerParentId" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="databaseName" tagName="DatabaseName" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="pageNum" tagName="PageNumber" type="Integer" required="true" tagPosition="Query" docRequired="true" checkBlank="true" minValue="1" visibility="Public"/><Parameter name="pageSize" tagName="PageSize" type="Integer" required="true" tagPosition="Query" docRequired="true" checkBlank="false" minValue="1" maxValue="100" visibility="Public"/><Parameter name="regionId" tagName="RegionId" type="String" required="false" tagPosition="Host" checkBlank="false"/><Parameter name="IspSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="tableName" tagName="TableName" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="from" tagName="StartTime" type="Integer" required="false" tagPosition="Query" checkBlank="false" visibility="Public"/><Parameter name="to" tagName="EndTime" type="Integer" required="false" tagPosition="Query" checkBlank="false" visibility="Public"/></Parameters><FlowControl controlUnit="Second" apiDefault="50" /><PreIspProtocol sign="true" signKeyName="dw-meta" timeout="5000" protocol="http" httpHost="http://100.67.93.41/dataos/v1/emr/hive/auditLogs" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="ErrorCode" visibility="Public" type="String" name="errCode"/><Member tagName="ErrorMessage" visibility="Public" type="String" name="errMsg"/><Member tagName="RequestId" visibility="Public" type="String" name="requestId"/><Struct tagName="Data" visibility="Public" name="data"><Member tagName="PageNumber" visibility="Public" type="Integer" name="pageNum"/><Member tagName="PageSize" visibility="Public" type="Integer" name="pageSize"/><Member tagName="TotalCount" visibility="Public" type="Integer" name="totalCount"/><Array tagName="PagedData" visibility="Public" itemName="AuditLog" name="data"><Member tagName="Table" visibility="Public" type="String" name="table"/><Member tagName="Database" visibility="Public" type="String" name="database"/><Member tagName="User" visibility="Public" type="String" name="user"/><Member tagName="Operation" visibility="Public" type="String" name="operation"/><Member tagName="EventTime" visibility="Public" type="Long" name="timestamp"/><List tagName="Groups" visibility="Public" itemName="Group" name="groups" type="String"/></Array></Struct></ResultMapping></Api>

View File

@@ -0,0 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="dataworks-public" controlPolicy="EMR-POP-API-Whitelist-Policy" visibility="Public" akProvenStatus="Disable" version="2018-06-01" keepClientResourceOwnerId="true" name="ListEmrHiveDatabases" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST|GET" /><ErrorMapping exceptionExpress="errCode!=&quot;0&quot;,errCode,errMsg,httpStatusCode"><ErrorCodes /></ErrorMapping><ErrorResultMapping></ErrorResultMapping><IspProtocol sign="true" signKeyName="dw-meta" timeout="5000" protocol="http" httpHost="http://meta.${regionId}.data.aliyun-inc.com/dataos/v1/emr/hive/dbs" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="clusterId" tagName="ClusterId" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="callerParentId" tagName="callerParentId" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="regionId" tagName="RegionId" type="String" required="false" tagPosition="Host" checkBlank="false"/><Parameter name="IspSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/></Parameters><FlowControl controlUnit="Second" apiDefault="50" /><PreIspProtocol sign="true" signKeyName="dw-meta" timeout="5000" protocol="http" httpHost="http://100.67.93.41/dataos/v1/emr/hive/dbs" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="ErrorCode" visibility="Public" type="String" name="errCode"/><Member tagName="ErrorMessage" visibility="Public" type="String" name="errMsg"/><Member tagName="RequestId" visibility="Public" type="String" name="requestId" nullToEmpty="false"/><Array tagName="Data" visibility="Public" itemName="HiveDatabase" name="data"><Member tagName="Name" visibility="Public" type="String" name="name"/><Member tagName="Type" visibility="Public" type="String" name="type"/><Member tagName="Owner" visibility="Public" type="String" name="owner"/><Member tagName="OwnerId" visibility="Public" type="String" name="ownerID"/><Member tagName="Comment" visibility="Public" type="String" name="comment"/><Member tagName="Location" visibility="Public" type="String" name="location"/><Member tagName="Status" visibility="Public" type="String" name="status"/><Member tagName="Parameters" visibility="Public" type="String" name="parameters"/><Member tagName="GmtCreate" visibility="Public" type="Long" name="gmtCreate"/><Member tagName="GmtModified" visibility="Public" type="Long" name="gmtModified"/><Member tagName="OwnerType" visibility="Public" type="String" name="ownerType"/><Member tagName="Region" visibility="Public" type="String" name="region"/></Array></ResultMapping></Api>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="dataworks-public" controlPolicy="EMR-POP-API-Whitelist-Policy" visibility="Public" akProvenStatus="Disable" version="2018-06-01" keepClientResourceOwnerId="true" name="ListHiveColumnLineages" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST|GET" /><ErrorMapping exceptionExpress="errCode!=&quot;0&quot;,errCode,errMsg,httpStatusCode"><ErrorCodes /></ErrorMapping><ErrorResultMapping></ErrorResultMapping><IspProtocol sign="true" signKeyName="dw-meta" timeout="5000" protocol="http" httpHost="http://meta.${regionId}.data.aliyun-inc.com/dataos/v1/emr/hive/column/lineage" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="clusterId" tagName="ClusterId" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="callerParentId" tagName="callerParentId" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="databaseName" tagName="DatabaseName" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="tableName" tagName="TableName" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="columnName" tagName="ColumnName" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="regionId" tagName="RegionId" type="String" required="false" tagPosition="Host" checkBlank="false"/><Parameter name="IspSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/></Parameters><FlowControl controlUnit="Second" apiDefault="50" /><PreIspProtocol sign="true" signKeyName="dw-meta" timeout="5000" protocol="http" httpHost="http://100.67.93.41/dataos/v1/emr/hive/column/lineage" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="ErrorCode" visibility="Public" type="String" name="errCode"/><Member tagName="ErrorMessage" visibility="Public" type="String" name="errMsg"/><Member tagName="RequestId" visibility="Public" type="String" name="requestId"/><Struct tagName="Data" visibility="Public" name="data"><Member tagName="UpstreamNumber" visibility="Public" type="Integer" name="upstreamNum"/><Member tagName="DownstreamNumber" visibility="Public" type="Integer" name="downstreamNum"/><Array tagName="UpstreamLineages" visibility="Public" itemName="ColumnLineage" name="up"><Member tagName="ModifiedTime" visibility="Public" type="String" name="modifiedTime"/><Member tagName="DirectDownColumnNumber" visibility="Public" type="Integer" name="directDownColumnNum"/><Member tagName="DatabaseName" visibility="Public" type="String" name="databaseName"/><Member tagName="ClusterId" visibility="Public" type="String" name="clusterId"/><Member tagName="Source" visibility="Public" type="String" name="source"/><Member tagName="TableName" visibility="Public" type="String" name="tableName"/><Member tagName="DirectDownTableNumber" visibility="Public" type="Integer" name="directDownTableNum"/><Member tagName="DirectUpperTableNumber" visibility="Public" type="Integer" name="directUpperTableNum"/><Member tagName="CreateTime" visibility="Public" type="String" name="createTime"/><Member tagName="DirectUpperColumnNumber" visibility="Public" type="Integer" name="directUpperColumnNum"/><Member tagName="ColumnName" visibility="Public" type="String" name="columnName"/></Array><Array tagName="DownstreamLineages" visibility="Public" itemName="ColumnLineage" name="down"><Member tagName="ModifiedTime" visibility="Public" type="String" name="modifiedTime"/><Member tagName="DirectDownColumnNumber" visibility="Public" type="Integer" name="directDownColumnNum"/><Member tagName="DatabaseName" visibility="Public" type="String" name="databaseName"/><Member tagName="ClusterId" visibility="Public" type="String" name="clusterId"/><Member tagName="Source" visibility="Public" type="String" name="source"/><Member tagName="TableName" visibility="Public" type="String" name="tableName"/><Member tagName="DirectDownTableNumber" visibility="Public" type="Integer" name="directDownTableNum"/><Member tagName="DirectUpperTableNumber" visibility="Public" type="Integer" name="directUpperTableNum"/><Member tagName="CreateTime" visibility="Public" type="String" name="createTime"/><Member tagName="DirectUpperColumnNumber" visibility="Public" type="Integer" name="directUpperColumnNum"/><Member tagName="ColumnName" visibility="Public" type="String" name="columnName"/></Array></Struct></ResultMapping></Api>

View File

@@ -0,0 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="dataworks-public" controlPolicy="EMR-POP-API-Whitelist-Policy" visibility="Public" akProvenStatus="Disable" version="2018-06-01" keepClientResourceOwnerId="true" name="ListHiveTableLineages" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST|GET" /><ErrorMapping exceptionExpress="errCode!=&quot;0&quot;,errCode,errMsg,httpStatusCode"><ErrorCodes /></ErrorMapping><ErrorResultMapping></ErrorResultMapping><IspProtocol sign="true" signKeyName="dw-meta" timeout="5000" protocol="http" httpHost="http://meta.${regionId}.data.aliyun-inc.com/dataos/v1/emr/hive/table/lineage" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="clusterId" tagName="ClusterId" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="callerParentId" tagName="callerParentId" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="databaseName" tagName="DatabaseName" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="tableName" tagName="TableName" type="String" required="true" tagPosition="Query" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="regionId" tagName="RegionId" type="String" required="false" tagPosition="Host" checkBlank="false"/><Parameter name="IspSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/></Parameters><FlowControl controlUnit="Second" apiDefault="50" /><PreIspProtocol sign="true" signKeyName="dw-meta" timeout="5000" protocol="http" httpHost="http://100.67.93.41/dataos/v1/emr/hive/table/lineage" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="ErrorCode" visibility="Public" type="String" name="errCode"/><Member tagName="ErrorMessage" visibility="Public" type="String" name="errMsg"/><Member tagName="RequestId" visibility="Public" type="String" name="requestId"/><Struct tagName="Data" visibility="Public" name="data"><Member tagName="UpstreamNumber" visibility="Public" type="Integer" name="upstreamNum"/><Member tagName="DownstreamNumber" visibility="Public" type="Integer" name="downstreamNum"/><Array tagName="UpstreamLineages" visibility="Public" itemName="TableLineage" name="up"><Member tagName="ModifiedTime" visibility="Public" type="String" name="modifiedTime"/><Member tagName="DatabaseName" visibility="Public" type="String" name="databaseName"/><Member tagName="Engine" visibility="Public" type="String" name="engine"/><Member tagName="CreateTime" visibility="Public" type="String" name="createTime"/><Member tagName="ClusterId" visibility="Public" type="String" name="clusterId"/><Member tagName="Source" visibility="Public" type="String" name="source"/><Member tagName="TableName" visibility="Public" type="String" name="tableName"/><Member tagName="JobId" visibility="Public" type="String" name="jobId"/><Member tagName="QueryText" visibility="Public" type="String" name="queryText"/></Array><Array tagName="DownstreamLineages" visibility="Public" itemName="TableLineage" name="down"><Member tagName="ModifiedTime" visibility="Public" type="String" name="modifiedTime"/><Member tagName="DatabaseName" visibility="Public" type="String" name="databaseName"/><Member tagName="Engine" visibility="Public" type="String" name="engine"/><Member tagName="CreateTime" visibility="Public" type="String" name="createTime"/><Member tagName="ClusterId" visibility="Public" type="String" name="clusterId"/><Member tagName="Source" visibility="Public" type="String" name="source"/><Member tagName="TableName" visibility="Public" type="String" name="tableName"/><Member tagName="JobId" visibility="Public" type="String" name="jobId"/><Member tagName="QueryText" visibility="Public" type="String" name="queryText"/></Array></Struct></ResultMapping></Api>

Some files were not shown because too many files have changed in this diff Show More