Compare commits
29 Commits
alimt-patc
...
oos-patch
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
38db21928a | ||
|
|
4899593377 | ||
|
|
ecf3cb4bb0 | ||
|
|
7b2178ef7c | ||
|
|
de338b6bec | ||
|
|
272a1c1466 | ||
|
|
ee902a7f28 | ||
|
|
fb12252d2d | ||
|
|
6e4fea5ea2 | ||
|
|
1b54ddd725 | ||
|
|
6e5ba8761d | ||
|
|
e71ef9a243 | ||
|
|
17af8569c4 | ||
|
|
4c3be7ed7c | ||
|
|
3303c6120d | ||
|
|
d0e1cd8792 | ||
|
|
7859e7446f | ||
|
|
8296e36314 | ||
|
|
0af9554cab | ||
|
|
5590f7808b | ||
|
|
df825120f3 | ||
|
|
e0575e4c67 | ||
|
|
4b58532ad0 | ||
|
|
4e4d3730de | ||
|
|
90d44564e0 | ||
|
|
0553d7374d | ||
|
|
e84530679a | ||
|
|
b3ae2c61f0 | ||
|
|
38eb8f243a |
87
CHANGELOG
87
CHANGELOG
@@ -1,3 +1,90 @@
|
||||
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.
|
||||
|
||||
2021-02-04 Version: patch
|
||||
- Supported scheduler for outbound call.
|
||||
|
||||
2021-02-04 Version: patch
|
||||
- Supported console.
|
||||
|
||||
2021-02-04 Version: patch
|
||||
- Supported console.
|
||||
|
||||
2021-02-04 Version: patch
|
||||
- Update TaggingImage.
|
||||
|
||||
2021-02-03 Version: patch
|
||||
- After normalizing the API group name, regenerate the SDK.
|
||||
|
||||
2021-02-03 Version: patch
|
||||
- Add ModifyAuditLogConfig API.
|
||||
|
||||
2021-02-02 Version: patch
|
||||
- Add.
|
||||
|
||||
2021-02-02 Version: patch
|
||||
- CreateShardingDBInstance add ReadOnlyReplicas in ReplicaSet.
|
||||
|
||||
2021-02-01 Version: patch
|
||||
- Support device credential for mqtt.
|
||||
|
||||
2021-02-01 Version: patch
|
||||
- Release GenerateHumanSketchStyle MergeImageFace AddFaceImageTemplate QueryFaceImageTemplate DeleteFaceImageTemplate.
|
||||
|
||||
2021-02-01 Version: patch
|
||||
- Add.
|
||||
|
||||
2021-02-01 Version: patch
|
||||
- Release GenerateHumanSketchStyle MergeImageFace AddFaceImageTemplate QueryFaceImageTemplate DeleteFaceImageTemplate.
|
||||
|
||||
2021-02-01 Version: patch
|
||||
- Release RecognizeFood.
|
||||
|
||||
2021-02-01 Version: patch
|
||||
- Release UnderstandVideoContent.
|
||||
|
||||
2021-02-01 Version: patch
|
||||
- Release SegmentGreenScreenVideo.
|
||||
|
||||
2021-02-01 Version: patch
|
||||
- Release DetectVehicleIllegalParking DetectVehicleICongestion.
|
||||
|
||||
2021-01-31 Version: patch
|
||||
- ConvertInstance.
|
||||
|
||||
2021-01-30 Version: patch
|
||||
- Update rate limit.
|
||||
|
||||
2021-01-29 Version: patch
|
||||
- Update Monitor Api.
|
||||
|
||||
2021-01-29 Version: patch
|
||||
- Update Monitor Api.
|
||||
|
||||
2021-01-29 Version: patch
|
||||
- Update Open API.
|
||||
|
||||
2021-01-29 Version: patch
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2021-01-28 Version: patch
|
||||
- Generated 2018-03-13 for `retailcloud`.
|
||||
|
||||
2021-01-27 Version: patch
|
||||
- Add New BatchTranslate API.
|
||||
|
||||
|
||||
@@ -23,6 +23,8 @@ set(cdrs_public_header
|
||||
set(cdrs_public_header_model
|
||||
include/alibabacloud/cdrs/model/AddCdrsMonitorRequest.h
|
||||
include/alibabacloud/cdrs/model/AddCdrsMonitorResult.h
|
||||
include/alibabacloud/cdrs/model/AddMonitorRequest.h
|
||||
include/alibabacloud/cdrs/model/AddMonitorResult.h
|
||||
include/alibabacloud/cdrs/model/BindDeviceRequest.h
|
||||
include/alibabacloud/cdrs/model/BindDeviceResult.h
|
||||
include/alibabacloud/cdrs/model/CreateProjectRequest.h
|
||||
@@ -31,6 +33,10 @@ set(cdrs_public_header_model
|
||||
include/alibabacloud/cdrs/model/GetCdrsMonitorListResult.h
|
||||
include/alibabacloud/cdrs/model/GetCdrsMonitorResultRequest.h
|
||||
include/alibabacloud/cdrs/model/GetCdrsMonitorResultResult.h
|
||||
include/alibabacloud/cdrs/model/GetMonitorListRequest.h
|
||||
include/alibabacloud/cdrs/model/GetMonitorListResult.h
|
||||
include/alibabacloud/cdrs/model/GetMonitorResultRequest.h
|
||||
include/alibabacloud/cdrs/model/GetMonitorResultResult.h
|
||||
include/alibabacloud/cdrs/model/ListAreaHotSpotMetricsRequest.h
|
||||
include/alibabacloud/cdrs/model/ListAreaHotSpotMetricsResult.h
|
||||
include/alibabacloud/cdrs/model/ListCityMapAoisRequest.h
|
||||
@@ -45,12 +51,8 @@ set(cdrs_public_header_model
|
||||
include/alibabacloud/cdrs/model/ListCityMapPersonFlowResult.h
|
||||
include/alibabacloud/cdrs/model/ListCityMapRangeStatisticRequest.h
|
||||
include/alibabacloud/cdrs/model/ListCityMapRangeStatisticResult.h
|
||||
include/alibabacloud/cdrs/model/ListCorpMetricsRequest.h
|
||||
include/alibabacloud/cdrs/model/ListCorpMetricsResult.h
|
||||
include/alibabacloud/cdrs/model/ListCorpMetricsStatisticRequest.h
|
||||
include/alibabacloud/cdrs/model/ListCorpMetricsStatisticResult.h
|
||||
include/alibabacloud/cdrs/model/ListCorpTrackDetailRequest.h
|
||||
include/alibabacloud/cdrs/model/ListCorpTrackDetailResult.h
|
||||
include/alibabacloud/cdrs/model/ListDataStatisticsRequest.h
|
||||
include/alibabacloud/cdrs/model/ListDataStatisticsResult.h
|
||||
include/alibabacloud/cdrs/model/ListDataStatisticsByDayRequest.h
|
||||
@@ -67,8 +69,6 @@ set(cdrs_public_header_model
|
||||
include/alibabacloud/cdrs/model/ListDeviceRelationResult.h
|
||||
include/alibabacloud/cdrs/model/ListMapRouteDetailsRequest.h
|
||||
include/alibabacloud/cdrs/model/ListMapRouteDetailsResult.h
|
||||
include/alibabacloud/cdrs/model/ListMetricsRequest.h
|
||||
include/alibabacloud/cdrs/model/ListMetricsResult.h
|
||||
include/alibabacloud/cdrs/model/ListPersonDetailsRequest.h
|
||||
include/alibabacloud/cdrs/model/ListPersonDetailsResult.h
|
||||
include/alibabacloud/cdrs/model/ListPersonResultRequest.h
|
||||
@@ -77,8 +77,6 @@ set(cdrs_public_header_model
|
||||
include/alibabacloud/cdrs/model/ListPersonTagResult.h
|
||||
include/alibabacloud/cdrs/model/ListPersonTopRequest.h
|
||||
include/alibabacloud/cdrs/model/ListPersonTopResult.h
|
||||
include/alibabacloud/cdrs/model/ListPersonTraceRequest.h
|
||||
include/alibabacloud/cdrs/model/ListPersonTraceResult.h
|
||||
include/alibabacloud/cdrs/model/ListPersonTrackRequest.h
|
||||
include/alibabacloud/cdrs/model/ListPersonTrackResult.h
|
||||
include/alibabacloud/cdrs/model/ListRangeDeviceRequest.h
|
||||
@@ -105,14 +103,20 @@ set(cdrs_public_header_model
|
||||
include/alibabacloud/cdrs/model/PaginateProjectResult.h
|
||||
include/alibabacloud/cdrs/model/RecognizeImageRequest.h
|
||||
include/alibabacloud/cdrs/model/RecognizeImageResult.h
|
||||
include/alibabacloud/cdrs/model/SearchAggregateObjectRequest.h
|
||||
include/alibabacloud/cdrs/model/SearchAggregateObjectResult.h
|
||||
include/alibabacloud/cdrs/model/SearchObjectRequest.h
|
||||
include/alibabacloud/cdrs/model/SearchObjectResult.h
|
||||
include/alibabacloud/cdrs/model/StopCdrsMonitorRequest.h
|
||||
include/alibabacloud/cdrs/model/StopCdrsMonitorResult.h
|
||||
include/alibabacloud/cdrs/model/StopMonitorRequest.h
|
||||
include/alibabacloud/cdrs/model/StopMonitorResult.h
|
||||
include/alibabacloud/cdrs/model/UnbindDeviceRequest.h
|
||||
include/alibabacloud/cdrs/model/UnbindDeviceResult.h
|
||||
include/alibabacloud/cdrs/model/UpdateCdrsMonitorRequest.h
|
||||
include/alibabacloud/cdrs/model/UpdateCdrsMonitorResult.h
|
||||
include/alibabacloud/cdrs/model/UpdateMonitorRequest.h
|
||||
include/alibabacloud/cdrs/model/UpdateMonitorResult.h
|
||||
include/alibabacloud/cdrs/model/UpdateProjectRequest.h
|
||||
include/alibabacloud/cdrs/model/UpdateProjectResult.h )
|
||||
|
||||
@@ -120,6 +124,8 @@ set(cdrs_src
|
||||
src/CDRSClient.cc
|
||||
src/model/AddCdrsMonitorRequest.cc
|
||||
src/model/AddCdrsMonitorResult.cc
|
||||
src/model/AddMonitorRequest.cc
|
||||
src/model/AddMonitorResult.cc
|
||||
src/model/BindDeviceRequest.cc
|
||||
src/model/BindDeviceResult.cc
|
||||
src/model/CreateProjectRequest.cc
|
||||
@@ -128,6 +134,10 @@ set(cdrs_src
|
||||
src/model/GetCdrsMonitorListResult.cc
|
||||
src/model/GetCdrsMonitorResultRequest.cc
|
||||
src/model/GetCdrsMonitorResultResult.cc
|
||||
src/model/GetMonitorListRequest.cc
|
||||
src/model/GetMonitorListResult.cc
|
||||
src/model/GetMonitorResultRequest.cc
|
||||
src/model/GetMonitorResultResult.cc
|
||||
src/model/ListAreaHotSpotMetricsRequest.cc
|
||||
src/model/ListAreaHotSpotMetricsResult.cc
|
||||
src/model/ListCityMapAoisRequest.cc
|
||||
@@ -142,12 +152,8 @@ set(cdrs_src
|
||||
src/model/ListCityMapPersonFlowResult.cc
|
||||
src/model/ListCityMapRangeStatisticRequest.cc
|
||||
src/model/ListCityMapRangeStatisticResult.cc
|
||||
src/model/ListCorpMetricsRequest.cc
|
||||
src/model/ListCorpMetricsResult.cc
|
||||
src/model/ListCorpMetricsStatisticRequest.cc
|
||||
src/model/ListCorpMetricsStatisticResult.cc
|
||||
src/model/ListCorpTrackDetailRequest.cc
|
||||
src/model/ListCorpTrackDetailResult.cc
|
||||
src/model/ListDataStatisticsRequest.cc
|
||||
src/model/ListDataStatisticsResult.cc
|
||||
src/model/ListDataStatisticsByDayRequest.cc
|
||||
@@ -164,8 +170,6 @@ set(cdrs_src
|
||||
src/model/ListDeviceRelationResult.cc
|
||||
src/model/ListMapRouteDetailsRequest.cc
|
||||
src/model/ListMapRouteDetailsResult.cc
|
||||
src/model/ListMetricsRequest.cc
|
||||
src/model/ListMetricsResult.cc
|
||||
src/model/ListPersonDetailsRequest.cc
|
||||
src/model/ListPersonDetailsResult.cc
|
||||
src/model/ListPersonResultRequest.cc
|
||||
@@ -174,8 +178,6 @@ set(cdrs_src
|
||||
src/model/ListPersonTagResult.cc
|
||||
src/model/ListPersonTopRequest.cc
|
||||
src/model/ListPersonTopResult.cc
|
||||
src/model/ListPersonTraceRequest.cc
|
||||
src/model/ListPersonTraceResult.cc
|
||||
src/model/ListPersonTrackRequest.cc
|
||||
src/model/ListPersonTrackResult.cc
|
||||
src/model/ListRangeDeviceRequest.cc
|
||||
@@ -202,14 +204,20 @@ set(cdrs_src
|
||||
src/model/PaginateProjectResult.cc
|
||||
src/model/RecognizeImageRequest.cc
|
||||
src/model/RecognizeImageResult.cc
|
||||
src/model/SearchAggregateObjectRequest.cc
|
||||
src/model/SearchAggregateObjectResult.cc
|
||||
src/model/SearchObjectRequest.cc
|
||||
src/model/SearchObjectResult.cc
|
||||
src/model/StopCdrsMonitorRequest.cc
|
||||
src/model/StopCdrsMonitorResult.cc
|
||||
src/model/StopMonitorRequest.cc
|
||||
src/model/StopMonitorResult.cc
|
||||
src/model/UnbindDeviceRequest.cc
|
||||
src/model/UnbindDeviceResult.cc
|
||||
src/model/UpdateCdrsMonitorRequest.cc
|
||||
src/model/UpdateCdrsMonitorResult.cc
|
||||
src/model/UpdateMonitorRequest.cc
|
||||
src/model/UpdateMonitorResult.cc
|
||||
src/model/UpdateProjectRequest.cc
|
||||
src/model/UpdateProjectResult.cc )
|
||||
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include "CDRSExport.h"
|
||||
#include "model/AddCdrsMonitorRequest.h"
|
||||
#include "model/AddCdrsMonitorResult.h"
|
||||
#include "model/AddMonitorRequest.h"
|
||||
#include "model/AddMonitorResult.h"
|
||||
#include "model/BindDeviceRequest.h"
|
||||
#include "model/BindDeviceResult.h"
|
||||
#include "model/CreateProjectRequest.h"
|
||||
@@ -32,6 +34,10 @@
|
||||
#include "model/GetCdrsMonitorListResult.h"
|
||||
#include "model/GetCdrsMonitorResultRequest.h"
|
||||
#include "model/GetCdrsMonitorResultResult.h"
|
||||
#include "model/GetMonitorListRequest.h"
|
||||
#include "model/GetMonitorListResult.h"
|
||||
#include "model/GetMonitorResultRequest.h"
|
||||
#include "model/GetMonitorResultResult.h"
|
||||
#include "model/ListAreaHotSpotMetricsRequest.h"
|
||||
#include "model/ListAreaHotSpotMetricsResult.h"
|
||||
#include "model/ListCityMapAoisRequest.h"
|
||||
@@ -46,12 +52,8 @@
|
||||
#include "model/ListCityMapPersonFlowResult.h"
|
||||
#include "model/ListCityMapRangeStatisticRequest.h"
|
||||
#include "model/ListCityMapRangeStatisticResult.h"
|
||||
#include "model/ListCorpMetricsRequest.h"
|
||||
#include "model/ListCorpMetricsResult.h"
|
||||
#include "model/ListCorpMetricsStatisticRequest.h"
|
||||
#include "model/ListCorpMetricsStatisticResult.h"
|
||||
#include "model/ListCorpTrackDetailRequest.h"
|
||||
#include "model/ListCorpTrackDetailResult.h"
|
||||
#include "model/ListDataStatisticsRequest.h"
|
||||
#include "model/ListDataStatisticsResult.h"
|
||||
#include "model/ListDataStatisticsByDayRequest.h"
|
||||
@@ -68,8 +70,6 @@
|
||||
#include "model/ListDeviceRelationResult.h"
|
||||
#include "model/ListMapRouteDetailsRequest.h"
|
||||
#include "model/ListMapRouteDetailsResult.h"
|
||||
#include "model/ListMetricsRequest.h"
|
||||
#include "model/ListMetricsResult.h"
|
||||
#include "model/ListPersonDetailsRequest.h"
|
||||
#include "model/ListPersonDetailsResult.h"
|
||||
#include "model/ListPersonResultRequest.h"
|
||||
@@ -78,8 +78,6 @@
|
||||
#include "model/ListPersonTagResult.h"
|
||||
#include "model/ListPersonTopRequest.h"
|
||||
#include "model/ListPersonTopResult.h"
|
||||
#include "model/ListPersonTraceRequest.h"
|
||||
#include "model/ListPersonTraceResult.h"
|
||||
#include "model/ListPersonTrackRequest.h"
|
||||
#include "model/ListPersonTrackResult.h"
|
||||
#include "model/ListRangeDeviceRequest.h"
|
||||
@@ -106,14 +104,20 @@
|
||||
#include "model/PaginateProjectResult.h"
|
||||
#include "model/RecognizeImageRequest.h"
|
||||
#include "model/RecognizeImageResult.h"
|
||||
#include "model/SearchAggregateObjectRequest.h"
|
||||
#include "model/SearchAggregateObjectResult.h"
|
||||
#include "model/SearchObjectRequest.h"
|
||||
#include "model/SearchObjectResult.h"
|
||||
#include "model/StopCdrsMonitorRequest.h"
|
||||
#include "model/StopCdrsMonitorResult.h"
|
||||
#include "model/StopMonitorRequest.h"
|
||||
#include "model/StopMonitorResult.h"
|
||||
#include "model/UnbindDeviceRequest.h"
|
||||
#include "model/UnbindDeviceResult.h"
|
||||
#include "model/UpdateCdrsMonitorRequest.h"
|
||||
#include "model/UpdateCdrsMonitorResult.h"
|
||||
#include "model/UpdateMonitorRequest.h"
|
||||
#include "model/UpdateMonitorResult.h"
|
||||
#include "model/UpdateProjectRequest.h"
|
||||
#include "model/UpdateProjectResult.h"
|
||||
|
||||
@@ -128,6 +132,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::AddCdrsMonitorResult> AddCdrsMonitorOutcome;
|
||||
typedef std::future<AddCdrsMonitorOutcome> AddCdrsMonitorOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::AddCdrsMonitorRequest&, const AddCdrsMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddCdrsMonitorAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddMonitorResult> AddMonitorOutcome;
|
||||
typedef std::future<AddMonitorOutcome> AddMonitorOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::AddMonitorRequest&, const AddMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddMonitorAsyncHandler;
|
||||
typedef Outcome<Error, Model::BindDeviceResult> BindDeviceOutcome;
|
||||
typedef std::future<BindDeviceOutcome> BindDeviceOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::BindDeviceRequest&, const BindDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindDeviceAsyncHandler;
|
||||
@@ -140,6 +147,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetCdrsMonitorResultResult> GetCdrsMonitorResultOutcome;
|
||||
typedef std::future<GetCdrsMonitorResultOutcome> GetCdrsMonitorResultOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::GetCdrsMonitorResultRequest&, const GetCdrsMonitorResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCdrsMonitorResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMonitorListResult> GetMonitorListOutcome;
|
||||
typedef std::future<GetMonitorListOutcome> GetMonitorListOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::GetMonitorListRequest&, const GetMonitorListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMonitorListAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMonitorResultResult> GetMonitorResultOutcome;
|
||||
typedef std::future<GetMonitorResultOutcome> GetMonitorResultOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::GetMonitorResultRequest&, const GetMonitorResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMonitorResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListAreaHotSpotMetricsResult> ListAreaHotSpotMetricsOutcome;
|
||||
typedef std::future<ListAreaHotSpotMetricsOutcome> ListAreaHotSpotMetricsOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListAreaHotSpotMetricsRequest&, const ListAreaHotSpotMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAreaHotSpotMetricsAsyncHandler;
|
||||
@@ -161,15 +174,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListCityMapRangeStatisticResult> ListCityMapRangeStatisticOutcome;
|
||||
typedef std::future<ListCityMapRangeStatisticOutcome> ListCityMapRangeStatisticOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListCityMapRangeStatisticRequest&, const ListCityMapRangeStatisticOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCityMapRangeStatisticAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListCorpMetricsResult> ListCorpMetricsOutcome;
|
||||
typedef std::future<ListCorpMetricsOutcome> ListCorpMetricsOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListCorpMetricsRequest&, const ListCorpMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCorpMetricsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListCorpMetricsStatisticResult> ListCorpMetricsStatisticOutcome;
|
||||
typedef std::future<ListCorpMetricsStatisticOutcome> ListCorpMetricsStatisticOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListCorpMetricsStatisticRequest&, const ListCorpMetricsStatisticOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCorpMetricsStatisticAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListCorpTrackDetailResult> ListCorpTrackDetailOutcome;
|
||||
typedef std::future<ListCorpTrackDetailOutcome> ListCorpTrackDetailOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListCorpTrackDetailRequest&, const ListCorpTrackDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCorpTrackDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDataStatisticsResult> ListDataStatisticsOutcome;
|
||||
typedef std::future<ListDataStatisticsOutcome> ListDataStatisticsOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListDataStatisticsRequest&, const ListDataStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDataStatisticsAsyncHandler;
|
||||
@@ -194,9 +201,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListMapRouteDetailsResult> ListMapRouteDetailsOutcome;
|
||||
typedef std::future<ListMapRouteDetailsOutcome> ListMapRouteDetailsOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListMapRouteDetailsRequest&, const ListMapRouteDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMapRouteDetailsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListMetricsResult> ListMetricsOutcome;
|
||||
typedef std::future<ListMetricsOutcome> ListMetricsOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListMetricsRequest&, const ListMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMetricsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPersonDetailsResult> ListPersonDetailsOutcome;
|
||||
typedef std::future<ListPersonDetailsOutcome> ListPersonDetailsOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListPersonDetailsRequest&, const ListPersonDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPersonDetailsAsyncHandler;
|
||||
@@ -209,9 +213,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListPersonTopResult> ListPersonTopOutcome;
|
||||
typedef std::future<ListPersonTopOutcome> ListPersonTopOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListPersonTopRequest&, const ListPersonTopOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPersonTopAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPersonTraceResult> ListPersonTraceOutcome;
|
||||
typedef std::future<ListPersonTraceOutcome> ListPersonTraceOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListPersonTraceRequest&, const ListPersonTraceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPersonTraceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPersonTrackResult> ListPersonTrackOutcome;
|
||||
typedef std::future<ListPersonTrackOutcome> ListPersonTrackOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListPersonTrackRequest&, const ListPersonTrackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPersonTrackAsyncHandler;
|
||||
@@ -251,18 +252,27 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RecognizeImageResult> RecognizeImageOutcome;
|
||||
typedef std::future<RecognizeImageOutcome> RecognizeImageOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::RecognizeImageRequest&, const RecognizeImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecognizeImageAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchAggregateObjectResult> SearchAggregateObjectOutcome;
|
||||
typedef std::future<SearchAggregateObjectOutcome> SearchAggregateObjectOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::SearchAggregateObjectRequest&, const SearchAggregateObjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchAggregateObjectAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchObjectResult> SearchObjectOutcome;
|
||||
typedef std::future<SearchObjectOutcome> SearchObjectOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::SearchObjectRequest&, const SearchObjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchObjectAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopCdrsMonitorResult> StopCdrsMonitorOutcome;
|
||||
typedef std::future<StopCdrsMonitorOutcome> StopCdrsMonitorOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::StopCdrsMonitorRequest&, const StopCdrsMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopCdrsMonitorAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopMonitorResult> StopMonitorOutcome;
|
||||
typedef std::future<StopMonitorOutcome> StopMonitorOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::StopMonitorRequest&, const StopMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopMonitorAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnbindDeviceResult> UnbindDeviceOutcome;
|
||||
typedef std::future<UnbindDeviceOutcome> UnbindDeviceOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::UnbindDeviceRequest&, const UnbindDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateCdrsMonitorResult> UpdateCdrsMonitorOutcome;
|
||||
typedef std::future<UpdateCdrsMonitorOutcome> UpdateCdrsMonitorOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::UpdateCdrsMonitorRequest&, const UpdateCdrsMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCdrsMonitorAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateMonitorResult> UpdateMonitorOutcome;
|
||||
typedef std::future<UpdateMonitorOutcome> UpdateMonitorOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::UpdateMonitorRequest&, const UpdateMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateMonitorAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateProjectResult> UpdateProjectOutcome;
|
||||
typedef std::future<UpdateProjectOutcome> UpdateProjectOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::UpdateProjectRequest&, const UpdateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateProjectAsyncHandler;
|
||||
@@ -274,6 +284,9 @@ namespace AlibabaCloud
|
||||
AddCdrsMonitorOutcome addCdrsMonitor(const Model::AddCdrsMonitorRequest &request)const;
|
||||
void addCdrsMonitorAsync(const Model::AddCdrsMonitorRequest& request, const AddCdrsMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddCdrsMonitorOutcomeCallable addCdrsMonitorCallable(const Model::AddCdrsMonitorRequest& request) const;
|
||||
AddMonitorOutcome addMonitor(const Model::AddMonitorRequest &request)const;
|
||||
void addMonitorAsync(const Model::AddMonitorRequest& request, const AddMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddMonitorOutcomeCallable addMonitorCallable(const Model::AddMonitorRequest& request) const;
|
||||
BindDeviceOutcome bindDevice(const Model::BindDeviceRequest &request)const;
|
||||
void bindDeviceAsync(const Model::BindDeviceRequest& request, const BindDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BindDeviceOutcomeCallable bindDeviceCallable(const Model::BindDeviceRequest& request) const;
|
||||
@@ -286,6 +299,12 @@ namespace AlibabaCloud
|
||||
GetCdrsMonitorResultOutcome getCdrsMonitorResult(const Model::GetCdrsMonitorResultRequest &request)const;
|
||||
void getCdrsMonitorResultAsync(const Model::GetCdrsMonitorResultRequest& request, const GetCdrsMonitorResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCdrsMonitorResultOutcomeCallable getCdrsMonitorResultCallable(const Model::GetCdrsMonitorResultRequest& request) const;
|
||||
GetMonitorListOutcome getMonitorList(const Model::GetMonitorListRequest &request)const;
|
||||
void getMonitorListAsync(const Model::GetMonitorListRequest& request, const GetMonitorListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMonitorListOutcomeCallable getMonitorListCallable(const Model::GetMonitorListRequest& request) const;
|
||||
GetMonitorResultOutcome getMonitorResult(const Model::GetMonitorResultRequest &request)const;
|
||||
void getMonitorResultAsync(const Model::GetMonitorResultRequest& request, const GetMonitorResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMonitorResultOutcomeCallable getMonitorResultCallable(const Model::GetMonitorResultRequest& request) const;
|
||||
ListAreaHotSpotMetricsOutcome listAreaHotSpotMetrics(const Model::ListAreaHotSpotMetricsRequest &request)const;
|
||||
void listAreaHotSpotMetricsAsync(const Model::ListAreaHotSpotMetricsRequest& request, const ListAreaHotSpotMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListAreaHotSpotMetricsOutcomeCallable listAreaHotSpotMetricsCallable(const Model::ListAreaHotSpotMetricsRequest& request) const;
|
||||
@@ -307,15 +326,9 @@ namespace AlibabaCloud
|
||||
ListCityMapRangeStatisticOutcome listCityMapRangeStatistic(const Model::ListCityMapRangeStatisticRequest &request)const;
|
||||
void listCityMapRangeStatisticAsync(const Model::ListCityMapRangeStatisticRequest& request, const ListCityMapRangeStatisticAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListCityMapRangeStatisticOutcomeCallable listCityMapRangeStatisticCallable(const Model::ListCityMapRangeStatisticRequest& request) const;
|
||||
ListCorpMetricsOutcome listCorpMetrics(const Model::ListCorpMetricsRequest &request)const;
|
||||
void listCorpMetricsAsync(const Model::ListCorpMetricsRequest& request, const ListCorpMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListCorpMetricsOutcomeCallable listCorpMetricsCallable(const Model::ListCorpMetricsRequest& request) const;
|
||||
ListCorpMetricsStatisticOutcome listCorpMetricsStatistic(const Model::ListCorpMetricsStatisticRequest &request)const;
|
||||
void listCorpMetricsStatisticAsync(const Model::ListCorpMetricsStatisticRequest& request, const ListCorpMetricsStatisticAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListCorpMetricsStatisticOutcomeCallable listCorpMetricsStatisticCallable(const Model::ListCorpMetricsStatisticRequest& request) const;
|
||||
ListCorpTrackDetailOutcome listCorpTrackDetail(const Model::ListCorpTrackDetailRequest &request)const;
|
||||
void listCorpTrackDetailAsync(const Model::ListCorpTrackDetailRequest& request, const ListCorpTrackDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListCorpTrackDetailOutcomeCallable listCorpTrackDetailCallable(const Model::ListCorpTrackDetailRequest& request) const;
|
||||
ListDataStatisticsOutcome listDataStatistics(const Model::ListDataStatisticsRequest &request)const;
|
||||
void listDataStatisticsAsync(const Model::ListDataStatisticsRequest& request, const ListDataStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDataStatisticsOutcomeCallable listDataStatisticsCallable(const Model::ListDataStatisticsRequest& request) const;
|
||||
@@ -340,9 +353,6 @@ namespace AlibabaCloud
|
||||
ListMapRouteDetailsOutcome listMapRouteDetails(const Model::ListMapRouteDetailsRequest &request)const;
|
||||
void listMapRouteDetailsAsync(const Model::ListMapRouteDetailsRequest& request, const ListMapRouteDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListMapRouteDetailsOutcomeCallable listMapRouteDetailsCallable(const Model::ListMapRouteDetailsRequest& request) const;
|
||||
ListMetricsOutcome listMetrics(const Model::ListMetricsRequest &request)const;
|
||||
void listMetricsAsync(const Model::ListMetricsRequest& request, const ListMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListMetricsOutcomeCallable listMetricsCallable(const Model::ListMetricsRequest& request) const;
|
||||
ListPersonDetailsOutcome listPersonDetails(const Model::ListPersonDetailsRequest &request)const;
|
||||
void listPersonDetailsAsync(const Model::ListPersonDetailsRequest& request, const ListPersonDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPersonDetailsOutcomeCallable listPersonDetailsCallable(const Model::ListPersonDetailsRequest& request) const;
|
||||
@@ -355,9 +365,6 @@ namespace AlibabaCloud
|
||||
ListPersonTopOutcome listPersonTop(const Model::ListPersonTopRequest &request)const;
|
||||
void listPersonTopAsync(const Model::ListPersonTopRequest& request, const ListPersonTopAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPersonTopOutcomeCallable listPersonTopCallable(const Model::ListPersonTopRequest& request) const;
|
||||
ListPersonTraceOutcome listPersonTrace(const Model::ListPersonTraceRequest &request)const;
|
||||
void listPersonTraceAsync(const Model::ListPersonTraceRequest& request, const ListPersonTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPersonTraceOutcomeCallable listPersonTraceCallable(const Model::ListPersonTraceRequest& request) const;
|
||||
ListPersonTrackOutcome listPersonTrack(const Model::ListPersonTrackRequest &request)const;
|
||||
void listPersonTrackAsync(const Model::ListPersonTrackRequest& request, const ListPersonTrackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPersonTrackOutcomeCallable listPersonTrackCallable(const Model::ListPersonTrackRequest& request) const;
|
||||
@@ -397,18 +404,27 @@ namespace AlibabaCloud
|
||||
RecognizeImageOutcome recognizeImage(const Model::RecognizeImageRequest &request)const;
|
||||
void recognizeImageAsync(const Model::RecognizeImageRequest& request, const RecognizeImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RecognizeImageOutcomeCallable recognizeImageCallable(const Model::RecognizeImageRequest& request) const;
|
||||
SearchAggregateObjectOutcome searchAggregateObject(const Model::SearchAggregateObjectRequest &request)const;
|
||||
void searchAggregateObjectAsync(const Model::SearchAggregateObjectRequest& request, const SearchAggregateObjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchAggregateObjectOutcomeCallable searchAggregateObjectCallable(const Model::SearchAggregateObjectRequest& request) const;
|
||||
SearchObjectOutcome searchObject(const Model::SearchObjectRequest &request)const;
|
||||
void searchObjectAsync(const Model::SearchObjectRequest& request, const SearchObjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchObjectOutcomeCallable searchObjectCallable(const Model::SearchObjectRequest& request) const;
|
||||
StopCdrsMonitorOutcome stopCdrsMonitor(const Model::StopCdrsMonitorRequest &request)const;
|
||||
void stopCdrsMonitorAsync(const Model::StopCdrsMonitorRequest& request, const StopCdrsMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopCdrsMonitorOutcomeCallable stopCdrsMonitorCallable(const Model::StopCdrsMonitorRequest& request) const;
|
||||
StopMonitorOutcome stopMonitor(const Model::StopMonitorRequest &request)const;
|
||||
void stopMonitorAsync(const Model::StopMonitorRequest& request, const StopMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopMonitorOutcomeCallable stopMonitorCallable(const Model::StopMonitorRequest& request) const;
|
||||
UnbindDeviceOutcome unbindDevice(const Model::UnbindDeviceRequest &request)const;
|
||||
void unbindDeviceAsync(const Model::UnbindDeviceRequest& request, const UnbindDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnbindDeviceOutcomeCallable unbindDeviceCallable(const Model::UnbindDeviceRequest& request) const;
|
||||
UpdateCdrsMonitorOutcome updateCdrsMonitor(const Model::UpdateCdrsMonitorRequest &request)const;
|
||||
void updateCdrsMonitorAsync(const Model::UpdateCdrsMonitorRequest& request, const UpdateCdrsMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateCdrsMonitorOutcomeCallable updateCdrsMonitorCallable(const Model::UpdateCdrsMonitorRequest& request) const;
|
||||
UpdateMonitorOutcome updateMonitor(const Model::UpdateMonitorRequest &request)const;
|
||||
void updateMonitorAsync(const Model::UpdateMonitorRequest& request, const UpdateMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateMonitorOutcomeCallable updateMonitorCallable(const Model::UpdateMonitorRequest& request) const;
|
||||
UpdateProjectOutcome updateProject(const Model::UpdateProjectRequest &request)const;
|
||||
void updateProjectAsync(const Model::UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateProjectOutcomeCallable updateProjectCallable(const Model::UpdateProjectRequest& request) const;
|
||||
|
||||
@@ -51,6 +51,8 @@ namespace AlibabaCloud
|
||||
void setNotifierType(const std::string& notifierType);
|
||||
int getBatchIndicator()const;
|
||||
void setBatchIndicator(int batchIndicator);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
int getNotifierTimeOut()const;
|
||||
void setNotifierTimeOut(int notifierTimeOut);
|
||||
std::string getAlgorithmVendor()const;
|
||||
@@ -65,6 +67,7 @@ namespace AlibabaCloud
|
||||
std::string notifierUrl_;
|
||||
std::string notifierType_;
|
||||
int batchIndicator_;
|
||||
std::string bizId_;
|
||||
int notifierTimeOut_;
|
||||
std::string algorithmVendor_;
|
||||
|
||||
|
||||
78
cdrs/include/alibabacloud/cdrs/model/AddMonitorRequest.h
Normal file
78
cdrs/include/alibabacloud/cdrs/model/AddMonitorRequest.h
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_ADDMONITORREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_ADDMONITORREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT AddMonitorRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddMonitorRequest();
|
||||
~AddMonitorRequest();
|
||||
|
||||
std::string getMonitorType()const;
|
||||
void setMonitorType(const std::string& monitorType);
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getNotifierAppSecret()const;
|
||||
void setNotifierAppSecret(const std::string& notifierAppSecret);
|
||||
std::string getNotifierExtendValues()const;
|
||||
void setNotifierExtendValues(const std::string& notifierExtendValues);
|
||||
std::string getNotifierUrl()const;
|
||||
void setNotifierUrl(const std::string& notifierUrl);
|
||||
std::string getNotifierType()const;
|
||||
void setNotifierType(const std::string& notifierType);
|
||||
int getBatchIndicator()const;
|
||||
void setBatchIndicator(int batchIndicator);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
int getNotifierTimeOut()const;
|
||||
void setNotifierTimeOut(int notifierTimeOut);
|
||||
std::string getAlgorithmVendor()const;
|
||||
void setAlgorithmVendor(const std::string& algorithmVendor);
|
||||
|
||||
private:
|
||||
std::string monitorType_;
|
||||
std::string corpId_;
|
||||
std::string description_;
|
||||
std::string notifierAppSecret_;
|
||||
std::string notifierExtendValues_;
|
||||
std::string notifierUrl_;
|
||||
std::string notifierType_;
|
||||
int batchIndicator_;
|
||||
std::string bizId_;
|
||||
int notifierTimeOut_;
|
||||
std::string algorithmVendor_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_ADDMONITORREQUEST_H_
|
||||
59
cdrs/include/alibabacloud/cdrs/model/AddMonitorResult.h
Normal file
59
cdrs/include/alibabacloud/cdrs/model/AddMonitorResult.h
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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_CDRS_MODEL_ADDMONITORRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_ADDMONITORRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT AddMonitorResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string taskId;
|
||||
};
|
||||
|
||||
|
||||
AddMonitorResult();
|
||||
explicit AddMonitorResult(const std::string &payload);
|
||||
~AddMonitorResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_ADDMONITORRESULT_H_
|
||||
@@ -41,11 +41,14 @@ namespace AlibabaCloud
|
||||
void setPageNo(int pageNo);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
int pageNo_;
|
||||
int pageSize_;
|
||||
std::string bizId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
void setEndTime(long endTime);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
std::string getAlgorithmVendor()const;
|
||||
void setAlgorithmVendor(const std::string& algorithmVendor);
|
||||
std::string getMinRecordId()const;
|
||||
@@ -52,6 +54,7 @@ namespace AlibabaCloud
|
||||
std::string corpId_;
|
||||
long endTime_;
|
||||
long startTime_;
|
||||
std::string bizId_;
|
||||
std::string algorithmVendor_;
|
||||
std::string minRecordId_;
|
||||
std::string taskId_;
|
||||
|
||||
57
cdrs/include/alibabacloud/cdrs/model/GetMonitorListRequest.h
Normal file
57
cdrs/include/alibabacloud/cdrs/model/GetMonitorListRequest.h
Normal 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_CDRS_MODEL_GETMONITORLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_GETMONITORLISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT GetMonitorListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMonitorListRequest();
|
||||
~GetMonitorListRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string bizId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_GETMONITORLISTREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTPERSONTRACERESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_LISTPERSONTRACERESULT_H_
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_GETMONITORLISTRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_GETMONITORLISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,49 +29,53 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT ListPersonTraceResult : public ServiceResult
|
||||
class ALIBABACLOUD_CDRS_EXPORT GetMonitorListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
struct Data
|
||||
{
|
||||
std::string startTargetImage;
|
||||
std::string startSourceImage;
|
||||
std::string corpId;
|
||||
std::string personId;
|
||||
std::string deviceId;
|
||||
std::string endTargetImage;
|
||||
std::string startTime;
|
||||
std::string endSourceImage;
|
||||
std::string date;
|
||||
std::string lastTime;
|
||||
std::string groupId;
|
||||
struct Record
|
||||
{
|
||||
std::string status;
|
||||
std::string taskId;
|
||||
std::string description;
|
||||
std::string monitorType;
|
||||
std::string imageMatch;
|
||||
std::string attributes;
|
||||
std::string deviceList;
|
||||
std::string modifiedDate;
|
||||
std::string createDate;
|
||||
std::string notifierType;
|
||||
std::string ruleExpression;
|
||||
std::string algorithmVendor;
|
||||
std::string expression;
|
||||
std::string ruleName;
|
||||
std::string notifierExtra;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int totalPage;
|
||||
int pageNumber;
|
||||
std::vector<Record> records;
|
||||
};
|
||||
|
||||
|
||||
ListPersonTraceResult();
|
||||
explicit ListPersonTraceResult(const std::string &payload);
|
||||
~ListPersonTraceResult();
|
||||
int getTotalCount()const;
|
||||
GetMonitorListResult();
|
||||
explicit GetMonitorListResult(const std::string &payload);
|
||||
~GetMonitorListResult();
|
||||
std::string getMessage()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
std::string getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
std::string message_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
std::vector<DataItem> data_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
std::string success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTPERSONTRACERESULT_H_
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_GETMONITORLISTRESULT_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_GETMONITORRESULTREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_GETMONITORRESULTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT GetMonitorResultRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMonitorResultRequest();
|
||||
~GetMonitorResultRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
std::string getAlgorithmVendor()const;
|
||||
void setAlgorithmVendor(const std::string& algorithmVendor);
|
||||
std::string getMinRecordId()const;
|
||||
void setMinRecordId(const std::string& minRecordId);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
long endTime_;
|
||||
long startTime_;
|
||||
std::string bizId_;
|
||||
std::string algorithmVendor_;
|
||||
std::string minRecordId_;
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_GETMONITORRESULTREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_GETMONITORRESULTRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_GETMONITORRESULTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,47 +29,51 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT ListCorpMetricsResult : public ServiceResult
|
||||
class ALIBABACLOUD_CDRS_EXPORT GetMonitorResultResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
struct Data
|
||||
{
|
||||
std::string corpId;
|
||||
std::string personId;
|
||||
std::string deviceGroupId;
|
||||
std::string deviceId;
|
||||
std::string userGroupId;
|
||||
std::string tagMetrics;
|
||||
std::string tagCode;
|
||||
std::string tagValue;
|
||||
std::string dateId;
|
||||
struct RecordsItem
|
||||
{
|
||||
struct ExtendInfo
|
||||
{
|
||||
std::string plateNo;
|
||||
};
|
||||
std::string leftUpX;
|
||||
std::string leftUpY;
|
||||
std::string score;
|
||||
std::string taskId;
|
||||
std::string targetPicUrl;
|
||||
std::string rightBottomX;
|
||||
std::string rightBottomY;
|
||||
std::string gbId;
|
||||
std::string monitorPicUrl;
|
||||
std::string shotTime;
|
||||
std::string picUrl;
|
||||
ExtendInfo extendInfo;
|
||||
};
|
||||
std::string maxId;
|
||||
std::vector<RecordsItem> records;
|
||||
};
|
||||
|
||||
|
||||
ListCorpMetricsResult();
|
||||
explicit ListCorpMetricsResult(const std::string &payload);
|
||||
~ListCorpMetricsResult();
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
GetMonitorResultResult();
|
||||
explicit GetMonitorResultResult(const std::string &payload);
|
||||
~GetMonitorResultResult();
|
||||
std::string getMessage()const;
|
||||
int getPageNumber()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
std::string getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
int pageSize_;
|
||||
std::string message_;
|
||||
int pageNumber_;
|
||||
std::vector<DataItem> data_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
std::string success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_GETMONITORRESULTRESULT_H_
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* 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_CDRS_MODEL_LISTCORPMETRICSREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT ListCorpMetricsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListCorpMetricsRequest();
|
||||
~ListCorpMetricsRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
long getPageNumber()const;
|
||||
void setPageNumber(long pageNumber);
|
||||
std::string getDeviceGroupList()const;
|
||||
void setDeviceGroupList(const std::string& deviceGroupList);
|
||||
std::string getTagCode()const;
|
||||
void setTagCode(const std::string& tagCode);
|
||||
std::string getUserGroupList()const;
|
||||
void setUserGroupList(const std::string& userGroupList);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getDeviceIdList()const;
|
||||
void setDeviceIdList(const std::string& deviceIdList);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
long pageNumber_;
|
||||
std::string deviceGroupList_;
|
||||
std::string tagCode_;
|
||||
std::string userGroupList_;
|
||||
long pageSize_;
|
||||
std::string deviceIdList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSREQUEST_H_
|
||||
@@ -1,69 +0,0 @@
|
||||
/*
|
||||
* 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_CDRS_MODEL_LISTCORPTRACKDETAILREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_LISTCORPTRACKDETAILREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT ListCorpTrackDetailRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListCorpTrackDetailRequest();
|
||||
~ListCorpTrackDetailRequest();
|
||||
|
||||
std::string getSchema()const;
|
||||
void setSchema(const std::string& schema);
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getPageNumber()const;
|
||||
void setPageNumber(const std::string& pageNumber);
|
||||
std::string getPageSize()const;
|
||||
void setPageSize(const std::string& pageSize);
|
||||
std::string getDataSourceId()const;
|
||||
void setDataSourceId(const std::string& dataSourceId);
|
||||
std::string getPersonId()const;
|
||||
void setPersonId(const std::string& personId);
|
||||
|
||||
private:
|
||||
std::string schema_;
|
||||
std::string corpId_;
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
std::string pageNumber_;
|
||||
std::string pageSize_;
|
||||
std::string dataSourceId_;
|
||||
std::string personId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTCORPTRACKDETAILREQUEST_H_
|
||||
@@ -1,79 +0,0 @@
|
||||
/*
|
||||
* 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_CDRS_MODEL_LISTCORPTRACKDETAILRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_LISTCORPTRACKDETAILRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT ListCorpTrackDetailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
{
|
||||
std::string startTargetImage;
|
||||
std::string sourceUrl;
|
||||
std::string startSourceImage;
|
||||
std::string corpId;
|
||||
std::string deviceId;
|
||||
std::string endTargetImage;
|
||||
std::string startTime;
|
||||
std::string targetUrl;
|
||||
std::string date;
|
||||
std::string groupId;
|
||||
std::string personId;
|
||||
std::string endSourceImage;
|
||||
std::string lastTime;
|
||||
};
|
||||
|
||||
|
||||
ListCorpTrackDetailResult();
|
||||
explicit ListCorpTrackDetailResult(const std::string &payload);
|
||||
~ListCorpTrackDetailResult();
|
||||
int getTotalCount()const;
|
||||
std::string getMessage()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
std::string getCode()const;
|
||||
std::string getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
std::string message_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
std::vector<DataItem> data_;
|
||||
std::string code_;
|
||||
std::string success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTCORPTRACKDETAILRESULT_H_
|
||||
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* 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_CDRS_MODEL_LISTMETRICSREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_LISTMETRICSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT ListMetricsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListMetricsRequest();
|
||||
~ListMetricsRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getPageNumber()const;
|
||||
void setPageNumber(const std::string& pageNumber);
|
||||
std::string getTagCode()const;
|
||||
void setTagCode(const std::string& tagCode);
|
||||
std::string getPageSize()const;
|
||||
void setPageSize(const std::string& pageSize);
|
||||
std::string getAggregateType()const;
|
||||
void setAggregateType(const std::string& aggregateType);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
std::string pageNumber_;
|
||||
std::string tagCode_;
|
||||
std::string pageSize_;
|
||||
std::string aggregateType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTMETRICSREQUEST_H_
|
||||
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* 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_CDRS_MODEL_LISTPERSONTRACEREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_LISTPERSONTRACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT ListPersonTraceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListPersonTraceRequest();
|
||||
~ListPersonTraceRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getPageNumber()const;
|
||||
void setPageNumber(const std::string& pageNumber);
|
||||
std::string getPageSize()const;
|
||||
void setPageSize(const std::string& pageSize);
|
||||
std::string getDataSourceId()const;
|
||||
void setDataSourceId(const std::string& dataSourceId);
|
||||
std::string getPersonId()const;
|
||||
void setPersonId(const std::string& personId);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
std::string pageNumber_;
|
||||
std::string pageSize_;
|
||||
std::string dataSourceId_;
|
||||
std::string personId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTPERSONTRACEREQUEST_H_
|
||||
@@ -35,11 +35,13 @@ namespace AlibabaCloud
|
||||
struct Datas
|
||||
{
|
||||
std::string popularPoi;
|
||||
std::string sourceUrl;
|
||||
std::string sourceImageStoragePath;
|
||||
std::string popularAddress;
|
||||
std::string vehicleId;
|
||||
std::string personType;
|
||||
std::string gender;
|
||||
std::string targetUrl;
|
||||
std::string vehicleClass;
|
||||
std::string vehicleApplication;
|
||||
std::string personId;
|
||||
|
||||
@@ -43,12 +43,18 @@ namespace AlibabaCloud
|
||||
void setEndTime(const std::string& endTime);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getPageNum()const;
|
||||
void setPageNum(const std::string& pageNum);
|
||||
std::string getPageSize()const;
|
||||
void setPageSize(const std::string& pageSize);
|
||||
|
||||
private:
|
||||
std::string plateId_;
|
||||
std::string corpId_;
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
std::string pageNum_;
|
||||
std::string pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -43,12 +43,18 @@ namespace AlibabaCloud
|
||||
void setEndTime(const std::string& endTime);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
long getPageNumber()const;
|
||||
void setPageNumber(long pageNumber);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
|
||||
private:
|
||||
std::string plateId_;
|
||||
std::string corpId_;
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
long pageNumber_;
|
||||
long pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -36,12 +36,14 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string order;
|
||||
std::string picUrlPath;
|
||||
std::string sourceUrl;
|
||||
std::string corpId;
|
||||
std::string rightBottomX;
|
||||
std::string targetPicUrlPath;
|
||||
std::string rightBottomY;
|
||||
std::string passTime;
|
||||
std::string latitude;
|
||||
std::string targetUrl;
|
||||
std::string leftTopY;
|
||||
std::string leftTopX;
|
||||
std::string longitude;
|
||||
|
||||
@@ -35,8 +35,12 @@ namespace AlibabaCloud
|
||||
RecognizeImageRequest();
|
||||
~RecognizeImageRequest();
|
||||
|
||||
bool getRequireCropImage()const;
|
||||
void setRequireCropImage(bool requireCropImage);
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getRecognizeType()const;
|
||||
void setRecognizeType(const std::string& recognizeType);
|
||||
std::string getVendor()const;
|
||||
void setVendor(const std::string& vendor);
|
||||
std::string getImageUrl()const;
|
||||
@@ -45,7 +49,9 @@ namespace AlibabaCloud
|
||||
void setImageContent(const std::string& imageContent);
|
||||
|
||||
private:
|
||||
bool requireCropImage_;
|
||||
std::string corpId_;
|
||||
std::string recognizeType_;
|
||||
std::string vendor_;
|
||||
std::string imageUrl_;
|
||||
std::string imageContent_;
|
||||
|
||||
@@ -38,9 +38,11 @@ namespace AlibabaCloud
|
||||
{
|
||||
int rightBottomX;
|
||||
int rightBottomY;
|
||||
std::string cropAlgorithmCode;
|
||||
int leftTopY;
|
||||
int leftTopX;
|
||||
std::string feature;
|
||||
std::string targetImageContent;
|
||||
};
|
||||
struct FaceListItem
|
||||
{
|
||||
@@ -48,9 +50,11 @@ namespace AlibabaCloud
|
||||
int rightBottomX;
|
||||
int rightBottomY;
|
||||
float faceKeyPointQuality;
|
||||
std::string cropAlgorithmCode;
|
||||
int leftTopY;
|
||||
int leftTopX;
|
||||
std::string feature;
|
||||
std::string targetImageContent;
|
||||
};
|
||||
std::vector<BodyListItem> bodyList;
|
||||
std::vector<FaceListItem> faceList;
|
||||
|
||||
@@ -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_CDRS_MODEL_SEARCHAGGREGATEOBJECTREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_SEARCHAGGREGATEOBJECTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT SearchAggregateObjectRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SearchAggregateObjectRequest();
|
||||
~SearchAggregateObjectRequest();
|
||||
|
||||
std::string getShotTimeEnd()const;
|
||||
void setShotTimeEnd(const std::string& shotTimeEnd);
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getFeature()const;
|
||||
void setFeature(const std::string& feature);
|
||||
std::string getVendor()const;
|
||||
void setVendor(const std::string& vendor);
|
||||
bool getRequireTotalCount()const;
|
||||
void setRequireTotalCount(bool requireTotalCount);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getImageContent()const;
|
||||
void setImageContent(const std::string& imageContent);
|
||||
std::string getObjectType()const;
|
||||
void setObjectType(const std::string& objectType);
|
||||
std::string getDeviceList()const;
|
||||
void setDeviceList(const std::string& deviceList);
|
||||
std::string getImageUrl()const;
|
||||
void setImageUrl(const std::string& imageUrl);
|
||||
std::string getAttributes()const;
|
||||
void setAttributes(const std::string& attributes);
|
||||
std::string getShotTimeStart()const;
|
||||
void setShotTimeStart(const std::string& shotTimeStart);
|
||||
|
||||
private:
|
||||
std::string shotTimeEnd_;
|
||||
std::string corpId_;
|
||||
int pageNumber_;
|
||||
std::string feature_;
|
||||
std::string vendor_;
|
||||
bool requireTotalCount_;
|
||||
int pageSize_;
|
||||
std::string imageContent_;
|
||||
std::string objectType_;
|
||||
std::string deviceList_;
|
||||
std::string imageUrl_;
|
||||
std::string attributes_;
|
||||
std::string shotTimeStart_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_SEARCHAGGREGATEOBJECTREQUEST_H_
|
||||
@@ -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_CDRS_MODEL_SEARCHAGGREGATEOBJECTRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_SEARCHAGGREGATEOBJECTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT SearchAggregateObjectResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct BodyListItem
|
||||
{
|
||||
std::string targetImageUrl;
|
||||
int rightBottomX;
|
||||
std::string deviceID;
|
||||
int rightBottomY;
|
||||
std::string sourceImageUrl;
|
||||
int leftTopY;
|
||||
int leftTopX;
|
||||
float deviceLongitude;
|
||||
std::string objectType;
|
||||
float score;
|
||||
std::string personId;
|
||||
float deviceLatitude;
|
||||
std::string shotTime;
|
||||
std::string deviceName;
|
||||
};
|
||||
struct FaceListItem
|
||||
{
|
||||
std::string targetImageUrl;
|
||||
int rightBottomX;
|
||||
std::string deviceID;
|
||||
int rightBottomY;
|
||||
std::string sourceImageUrl;
|
||||
int leftTopY;
|
||||
int leftTopX;
|
||||
float deviceLongitude;
|
||||
std::string objectType;
|
||||
float score;
|
||||
std::string personId;
|
||||
float deviceLatitude;
|
||||
std::string shotTime;
|
||||
std::string deviceName;
|
||||
};
|
||||
struct MotorListItem
|
||||
{
|
||||
std::string targetImageUrl;
|
||||
int rightBottomX;
|
||||
std::string deviceID;
|
||||
int rightBottomY;
|
||||
std::string sourceImageUrl;
|
||||
int leftTopY;
|
||||
int leftTopX;
|
||||
float deviceLongitude;
|
||||
std::string objectType;
|
||||
float score;
|
||||
std::string personId;
|
||||
float deviceLatitude;
|
||||
std::string shotTime;
|
||||
std::string deviceName;
|
||||
};
|
||||
struct NonMotorListItem
|
||||
{
|
||||
std::string targetImageUrl;
|
||||
int rightBottomX;
|
||||
std::string deviceID;
|
||||
int rightBottomY;
|
||||
std::string sourceImageUrl;
|
||||
int leftTopY;
|
||||
int leftTopX;
|
||||
float deviceLongitude;
|
||||
std::string objectType;
|
||||
float score;
|
||||
std::string personId;
|
||||
float deviceLatitude;
|
||||
std::string shotTime;
|
||||
std::string deviceName;
|
||||
};
|
||||
std::vector<NonMotorListItem> nonMotorList;
|
||||
std::vector<BodyListItem> bodyList;
|
||||
std::vector<FaceListItem> faceList;
|
||||
std::vector<MotorListItem> motorList;
|
||||
};
|
||||
|
||||
|
||||
SearchAggregateObjectResult();
|
||||
explicit SearchAggregateObjectResult(const std::string &payload);
|
||||
~SearchAggregateObjectResult();
|
||||
std::string getMessage()const;
|
||||
long getPageSize()const;
|
||||
int getTotal()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
long pageSize_;
|
||||
int total_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_SEARCHAGGREGATEOBJECTRESULT_H_
|
||||
@@ -77,7 +77,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string objectType;
|
||||
std::string targetImageUrl;
|
||||
int score;
|
||||
float score;
|
||||
int rightBottomX;
|
||||
std::string deviceID;
|
||||
int rightBottomY;
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
std::string getAlgorithmVendor()const;
|
||||
void setAlgorithmVendor(const std::string& algorithmVendor);
|
||||
std::string getTaskId()const;
|
||||
@@ -44,6 +46,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::string bizId_;
|
||||
std::string algorithmVendor_;
|
||||
std::string taskId_;
|
||||
|
||||
|
||||
57
cdrs/include/alibabacloud/cdrs/model/StopMonitorRequest.h
Normal file
57
cdrs/include/alibabacloud/cdrs/model/StopMonitorRequest.h
Normal 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_CDRS_MODEL_STOPMONITORREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_STOPMONITORREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT StopMonitorRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
StopMonitorRequest();
|
||||
~StopMonitorRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
std::string getAlgorithmVendor()const;
|
||||
void setAlgorithmVendor(const std::string& algorithmVendor);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::string bizId_;
|
||||
std::string algorithmVendor_;
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_STOPMONITORREQUEST_H_
|
||||
55
cdrs/include/alibabacloud/cdrs/model/StopMonitorResult.h
Normal file
55
cdrs/include/alibabacloud/cdrs/model/StopMonitorResult.h
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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_CDRS_MODEL_STOPMONITORRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_STOPMONITORRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT StopMonitorResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
StopMonitorResult();
|
||||
explicit StopMonitorResult(const std::string &payload);
|
||||
~StopMonitorResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_STOPMONITORRESULT_H_
|
||||
@@ -69,6 +69,8 @@ namespace AlibabaCloud
|
||||
void setNotifierUrl(const std::string& notifierUrl);
|
||||
std::string getNotifierType()const;
|
||||
void setNotifierType(const std::string& notifierType);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
std::string getAlgorithmVendor()const;
|
||||
void setAlgorithmVendor(const std::string& algorithmVendor);
|
||||
|
||||
@@ -90,6 +92,7 @@ namespace AlibabaCloud
|
||||
std::string deviceList_;
|
||||
std::string notifierUrl_;
|
||||
std::string notifierType_;
|
||||
std::string bizId_;
|
||||
std::string algorithmVendor_;
|
||||
|
||||
};
|
||||
|
||||
102
cdrs/include/alibabacloud/cdrs/model/UpdateMonitorRequest.h
Normal file
102
cdrs/include/alibabacloud/cdrs/model/UpdateMonitorRequest.h
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* 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_CDRS_MODEL_UPDATEMONITORREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_UPDATEMONITORREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT UpdateMonitorRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateMonitorRequest();
|
||||
~UpdateMonitorRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getRuleName()const;
|
||||
void setRuleName(const std::string& ruleName);
|
||||
std::string getPicOperateType()const;
|
||||
void setPicOperateType(const std::string& picOperateType);
|
||||
std::string getAttributeName()const;
|
||||
void setAttributeName(const std::string& attributeName);
|
||||
std::string getAttributeOperateType()const;
|
||||
void setAttributeOperateType(const std::string& attributeOperateType);
|
||||
std::string getRuleExpression()const;
|
||||
void setRuleExpression(const std::string& ruleExpression);
|
||||
int getNotifierTimeOut()const;
|
||||
void setNotifierTimeOut(int notifierTimeOut);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
std::string getDeviceOperateType()const;
|
||||
void setDeviceOperateType(const std::string& deviceOperateType);
|
||||
std::string getPicList()const;
|
||||
void setPicList(const std::string& picList);
|
||||
std::string getAttributeValueList()const;
|
||||
void setAttributeValueList(const std::string& attributeValueList);
|
||||
std::string getNotifierAppSecret()const;
|
||||
void setNotifierAppSecret(const std::string& notifierAppSecret);
|
||||
std::string getNotifierExtendValues()const;
|
||||
void setNotifierExtendValues(const std::string& notifierExtendValues);
|
||||
std::string getDeviceList()const;
|
||||
void setDeviceList(const std::string& deviceList);
|
||||
std::string getNotifierUrl()const;
|
||||
void setNotifierUrl(const std::string& notifierUrl);
|
||||
std::string getNotifierType()const;
|
||||
void setNotifierType(const std::string& notifierType);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
std::string getAlgorithmVendor()const;
|
||||
void setAlgorithmVendor(const std::string& algorithmVendor);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::string description_;
|
||||
std::string ruleName_;
|
||||
std::string picOperateType_;
|
||||
std::string attributeName_;
|
||||
std::string attributeOperateType_;
|
||||
std::string ruleExpression_;
|
||||
int notifierTimeOut_;
|
||||
std::string taskId_;
|
||||
std::string deviceOperateType_;
|
||||
std::string picList_;
|
||||
std::string attributeValueList_;
|
||||
std::string notifierAppSecret_;
|
||||
std::string notifierExtendValues_;
|
||||
std::string deviceList_;
|
||||
std::string notifierUrl_;
|
||||
std::string notifierType_;
|
||||
std::string bizId_;
|
||||
std::string algorithmVendor_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_UPDATEMONITORREQUEST_H_
|
||||
55
cdrs/include/alibabacloud/cdrs/model/UpdateMonitorResult.h
Normal file
55
cdrs/include/alibabacloud/cdrs/model/UpdateMonitorResult.h
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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_CDRS_MODEL_UPDATEMONITORRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_UPDATEMONITORRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT UpdateMonitorResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateMonitorResult();
|
||||
explicit UpdateMonitorResult(const std::string &payload);
|
||||
~UpdateMonitorResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_UPDATEMONITORRESULT_H_
|
||||
@@ -87,6 +87,42 @@ CDRSClient::AddCdrsMonitorOutcomeCallable CDRSClient::addCdrsMonitorCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::AddMonitorOutcome CDRSClient::addMonitor(const AddMonitorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddMonitorOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddMonitorOutcome(AddMonitorResult(outcome.result()));
|
||||
else
|
||||
return AddMonitorOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::addMonitorAsync(const AddMonitorRequest& request, const AddMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addMonitor(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::AddMonitorOutcomeCallable CDRSClient::addMonitorCallable(const AddMonitorRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddMonitorOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addMonitor(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::BindDeviceOutcome CDRSClient::bindDevice(const BindDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -231,6 +267,78 @@ CDRSClient::GetCdrsMonitorResultOutcomeCallable CDRSClient::getCdrsMonitorResult
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::GetMonitorListOutcome CDRSClient::getMonitorList(const GetMonitorListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMonitorListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMonitorListOutcome(GetMonitorListResult(outcome.result()));
|
||||
else
|
||||
return GetMonitorListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::getMonitorListAsync(const GetMonitorListRequest& request, const GetMonitorListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMonitorList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::GetMonitorListOutcomeCallable CDRSClient::getMonitorListCallable(const GetMonitorListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMonitorListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMonitorList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::GetMonitorResultOutcome CDRSClient::getMonitorResult(const GetMonitorResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMonitorResultOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMonitorResultOutcome(GetMonitorResultResult(outcome.result()));
|
||||
else
|
||||
return GetMonitorResultOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::getMonitorResultAsync(const GetMonitorResultRequest& request, const GetMonitorResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMonitorResult(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::GetMonitorResultOutcomeCallable CDRSClient::getMonitorResultCallable(const GetMonitorResultRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMonitorResultOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMonitorResult(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ListAreaHotSpotMetricsOutcome CDRSClient::listAreaHotSpotMetrics(const ListAreaHotSpotMetricsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -483,42 +591,6 @@ CDRSClient::ListCityMapRangeStatisticOutcomeCallable CDRSClient::listCityMapRang
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ListCorpMetricsOutcome CDRSClient::listCorpMetrics(const ListCorpMetricsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListCorpMetricsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListCorpMetricsOutcome(ListCorpMetricsResult(outcome.result()));
|
||||
else
|
||||
return ListCorpMetricsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::listCorpMetricsAsync(const ListCorpMetricsRequest& request, const ListCorpMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listCorpMetrics(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::ListCorpMetricsOutcomeCallable CDRSClient::listCorpMetricsCallable(const ListCorpMetricsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListCorpMetricsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listCorpMetrics(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ListCorpMetricsStatisticOutcome CDRSClient::listCorpMetricsStatistic(const ListCorpMetricsStatisticRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -555,42 +627,6 @@ CDRSClient::ListCorpMetricsStatisticOutcomeCallable CDRSClient::listCorpMetricsS
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ListCorpTrackDetailOutcome CDRSClient::listCorpTrackDetail(const ListCorpTrackDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListCorpTrackDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListCorpTrackDetailOutcome(ListCorpTrackDetailResult(outcome.result()));
|
||||
else
|
||||
return ListCorpTrackDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::listCorpTrackDetailAsync(const ListCorpTrackDetailRequest& request, const ListCorpTrackDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listCorpTrackDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::ListCorpTrackDetailOutcomeCallable CDRSClient::listCorpTrackDetailCallable(const ListCorpTrackDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListCorpTrackDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listCorpTrackDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ListDataStatisticsOutcome CDRSClient::listDataStatistics(const ListDataStatisticsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -879,42 +915,6 @@ CDRSClient::ListMapRouteDetailsOutcomeCallable CDRSClient::listMapRouteDetailsCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ListMetricsOutcome CDRSClient::listMetrics(const ListMetricsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListMetricsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListMetricsOutcome(ListMetricsResult(outcome.result()));
|
||||
else
|
||||
return ListMetricsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::listMetricsAsync(const ListMetricsRequest& request, const ListMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listMetrics(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::ListMetricsOutcomeCallable CDRSClient::listMetricsCallable(const ListMetricsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListMetricsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listMetrics(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ListPersonDetailsOutcome CDRSClient::listPersonDetails(const ListPersonDetailsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1059,42 +1059,6 @@ CDRSClient::ListPersonTopOutcomeCallable CDRSClient::listPersonTopCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ListPersonTraceOutcome CDRSClient::listPersonTrace(const ListPersonTraceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListPersonTraceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListPersonTraceOutcome(ListPersonTraceResult(outcome.result()));
|
||||
else
|
||||
return ListPersonTraceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::listPersonTraceAsync(const ListPersonTraceRequest& request, const ListPersonTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listPersonTrace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::ListPersonTraceOutcomeCallable CDRSClient::listPersonTraceCallable(const ListPersonTraceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListPersonTraceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listPersonTrace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ListPersonTrackOutcome CDRSClient::listPersonTrack(const ListPersonTrackRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1563,6 +1527,42 @@ CDRSClient::RecognizeImageOutcomeCallable CDRSClient::recognizeImageCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::SearchAggregateObjectOutcome CDRSClient::searchAggregateObject(const SearchAggregateObjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchAggregateObjectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SearchAggregateObjectOutcome(SearchAggregateObjectResult(outcome.result()));
|
||||
else
|
||||
return SearchAggregateObjectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::searchAggregateObjectAsync(const SearchAggregateObjectRequest& request, const SearchAggregateObjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, searchAggregateObject(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::SearchAggregateObjectOutcomeCallable CDRSClient::searchAggregateObjectCallable(const SearchAggregateObjectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SearchAggregateObjectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->searchAggregateObject(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::SearchObjectOutcome CDRSClient::searchObject(const SearchObjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1635,6 +1635,42 @@ CDRSClient::StopCdrsMonitorOutcomeCallable CDRSClient::stopCdrsMonitorCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::StopMonitorOutcome CDRSClient::stopMonitor(const StopMonitorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopMonitorOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopMonitorOutcome(StopMonitorResult(outcome.result()));
|
||||
else
|
||||
return StopMonitorOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::stopMonitorAsync(const StopMonitorRequest& request, const StopMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopMonitor(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::StopMonitorOutcomeCallable CDRSClient::stopMonitorCallable(const StopMonitorRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopMonitorOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopMonitor(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::UnbindDeviceOutcome CDRSClient::unbindDevice(const UnbindDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1707,6 +1743,42 @@ CDRSClient::UpdateCdrsMonitorOutcomeCallable CDRSClient::updateCdrsMonitorCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::UpdateMonitorOutcome CDRSClient::updateMonitor(const UpdateMonitorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateMonitorOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateMonitorOutcome(UpdateMonitorResult(outcome.result()));
|
||||
else
|
||||
return UpdateMonitorOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::updateMonitorAsync(const UpdateMonitorRequest& request, const UpdateMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateMonitor(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::UpdateMonitorOutcomeCallable CDRSClient::updateMonitorCallable(const UpdateMonitorRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateMonitorOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateMonitor(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::UpdateProjectOutcome CDRSClient::updateProject(const UpdateProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -115,6 +115,17 @@ void AddCdrsMonitorRequest::setBatchIndicator(int batchIndicator)
|
||||
setBodyParameter("BatchIndicator", std::to_string(batchIndicator));
|
||||
}
|
||||
|
||||
std::string AddCdrsMonitorRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void AddCdrsMonitorRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setBodyParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
int AddCdrsMonitorRequest::getNotifierTimeOut()const
|
||||
{
|
||||
return notifierTimeOut_;
|
||||
|
||||
150
cdrs/src/model/AddMonitorRequest.cc
Normal file
150
cdrs/src/model/AddMonitorRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/AddMonitorRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::AddMonitorRequest;
|
||||
|
||||
AddMonitorRequest::AddMonitorRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "AddMonitor")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddMonitorRequest::~AddMonitorRequest()
|
||||
{}
|
||||
|
||||
std::string AddMonitorRequest::getMonitorType()const
|
||||
{
|
||||
return monitorType_;
|
||||
}
|
||||
|
||||
void AddMonitorRequest::setMonitorType(const std::string& monitorType)
|
||||
{
|
||||
monitorType_ = monitorType;
|
||||
setBodyParameter("MonitorType", monitorType);
|
||||
}
|
||||
|
||||
std::string AddMonitorRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void AddMonitorRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string AddMonitorRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void AddMonitorRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string AddMonitorRequest::getNotifierAppSecret()const
|
||||
{
|
||||
return notifierAppSecret_;
|
||||
}
|
||||
|
||||
void AddMonitorRequest::setNotifierAppSecret(const std::string& notifierAppSecret)
|
||||
{
|
||||
notifierAppSecret_ = notifierAppSecret;
|
||||
setBodyParameter("NotifierAppSecret", notifierAppSecret);
|
||||
}
|
||||
|
||||
std::string AddMonitorRequest::getNotifierExtendValues()const
|
||||
{
|
||||
return notifierExtendValues_;
|
||||
}
|
||||
|
||||
void AddMonitorRequest::setNotifierExtendValues(const std::string& notifierExtendValues)
|
||||
{
|
||||
notifierExtendValues_ = notifierExtendValues;
|
||||
setBodyParameter("NotifierExtendValues", notifierExtendValues);
|
||||
}
|
||||
|
||||
std::string AddMonitorRequest::getNotifierUrl()const
|
||||
{
|
||||
return notifierUrl_;
|
||||
}
|
||||
|
||||
void AddMonitorRequest::setNotifierUrl(const std::string& notifierUrl)
|
||||
{
|
||||
notifierUrl_ = notifierUrl;
|
||||
setBodyParameter("NotifierUrl", notifierUrl);
|
||||
}
|
||||
|
||||
std::string AddMonitorRequest::getNotifierType()const
|
||||
{
|
||||
return notifierType_;
|
||||
}
|
||||
|
||||
void AddMonitorRequest::setNotifierType(const std::string& notifierType)
|
||||
{
|
||||
notifierType_ = notifierType;
|
||||
setBodyParameter("NotifierType", notifierType);
|
||||
}
|
||||
|
||||
int AddMonitorRequest::getBatchIndicator()const
|
||||
{
|
||||
return batchIndicator_;
|
||||
}
|
||||
|
||||
void AddMonitorRequest::setBatchIndicator(int batchIndicator)
|
||||
{
|
||||
batchIndicator_ = batchIndicator;
|
||||
setBodyParameter("BatchIndicator", std::to_string(batchIndicator));
|
||||
}
|
||||
|
||||
std::string AddMonitorRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void AddMonitorRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setBodyParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
int AddMonitorRequest::getNotifierTimeOut()const
|
||||
{
|
||||
return notifierTimeOut_;
|
||||
}
|
||||
|
||||
void AddMonitorRequest::setNotifierTimeOut(int notifierTimeOut)
|
||||
{
|
||||
notifierTimeOut_ = notifierTimeOut;
|
||||
setBodyParameter("NotifierTimeOut", std::to_string(notifierTimeOut));
|
||||
}
|
||||
|
||||
std::string AddMonitorRequest::getAlgorithmVendor()const
|
||||
{
|
||||
return algorithmVendor_;
|
||||
}
|
||||
|
||||
void AddMonitorRequest::setAlgorithmVendor(const std::string& algorithmVendor)
|
||||
{
|
||||
algorithmVendor_ = algorithmVendor;
|
||||
setBodyParameter("AlgorithmVendor", algorithmVendor);
|
||||
}
|
||||
|
||||
66
cdrs/src/model/AddMonitorResult.cc
Normal file
66
cdrs/src/model/AddMonitorResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/AddMonitorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
AddMonitorResult::AddMonitorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddMonitorResult::AddMonitorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddMonitorResult::~AddMonitorResult()
|
||||
{}
|
||||
|
||||
void AddMonitorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["TaskId"].isNull())
|
||||
data_.taskId = dataNode["TaskId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddMonitorResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
AddMonitorResult::Data AddMonitorResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AddMonitorResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -60,3 +60,14 @@ void GetCdrsMonitorListRequest::setPageSize(int pageSize)
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string GetCdrsMonitorListRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void GetCdrsMonitorListRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setBodyParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
|
||||
@@ -60,6 +60,17 @@ void GetCdrsMonitorResultRequest::setStartTime(long startTime)
|
||||
setBodyParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string GetCdrsMonitorResultRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void GetCdrsMonitorResultRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setBodyParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
std::string GetCdrsMonitorResultRequest::getAlgorithmVendor()const
|
||||
{
|
||||
return algorithmVendor_;
|
||||
|
||||
73
cdrs/src/model/GetMonitorListRequest.cc
Normal file
73
cdrs/src/model/GetMonitorListRequest.cc
Normal 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/cdrs/model/GetMonitorListRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::GetMonitorListRequest;
|
||||
|
||||
GetMonitorListRequest::GetMonitorListRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "GetMonitorList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetMonitorListRequest::~GetMonitorListRequest()
|
||||
{}
|
||||
|
||||
std::string GetMonitorListRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void GetMonitorListRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
int GetMonitorListRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void GetMonitorListRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int GetMonitorListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetMonitorListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string GetMonitorListRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void GetMonitorListRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setBodyParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
108
cdrs/src/model/GetMonitorListResult.cc
Normal file
108
cdrs/src/model/GetMonitorListResult.cc
Normal 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/cdrs/model/GetMonitorListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
GetMonitorListResult::GetMonitorListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMonitorListResult::GetMonitorListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMonitorListResult::~GetMonitorListResult()
|
||||
{}
|
||||
|
||||
void GetMonitorListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["TotalPage"].isNull())
|
||||
data_.totalPage = std::stoi(dataNode["TotalPage"].asString());
|
||||
auto allRecordsNode = dataNode["Records"]["Record"];
|
||||
for (auto dataNodeRecordsRecord : allRecordsNode)
|
||||
{
|
||||
Data::Record recordObject;
|
||||
if(!dataNodeRecordsRecord["TaskId"].isNull())
|
||||
recordObject.taskId = dataNodeRecordsRecord["TaskId"].asString();
|
||||
if(!dataNodeRecordsRecord["Status"].isNull())
|
||||
recordObject.status = dataNodeRecordsRecord["Status"].asString();
|
||||
if(!dataNodeRecordsRecord["MonitorType"].isNull())
|
||||
recordObject.monitorType = dataNodeRecordsRecord["MonitorType"].asString();
|
||||
if(!dataNodeRecordsRecord["RuleName"].isNull())
|
||||
recordObject.ruleName = dataNodeRecordsRecord["RuleName"].asString();
|
||||
if(!dataNodeRecordsRecord["AlgorithmVendor"].isNull())
|
||||
recordObject.algorithmVendor = dataNodeRecordsRecord["AlgorithmVendor"].asString();
|
||||
if(!dataNodeRecordsRecord["CreateDate"].isNull())
|
||||
recordObject.createDate = dataNodeRecordsRecord["CreateDate"].asString();
|
||||
if(!dataNodeRecordsRecord["ModifiedDate"].isNull())
|
||||
recordObject.modifiedDate = dataNodeRecordsRecord["ModifiedDate"].asString();
|
||||
if(!dataNodeRecordsRecord["DeviceList"].isNull())
|
||||
recordObject.deviceList = dataNodeRecordsRecord["DeviceList"].asString();
|
||||
if(!dataNodeRecordsRecord["Attributes"].isNull())
|
||||
recordObject.attributes = dataNodeRecordsRecord["Attributes"].asString();
|
||||
if(!dataNodeRecordsRecord["RuleExpression"].isNull())
|
||||
recordObject.ruleExpression = dataNodeRecordsRecord["RuleExpression"].asString();
|
||||
if(!dataNodeRecordsRecord["NotifierType"].isNull())
|
||||
recordObject.notifierType = dataNodeRecordsRecord["NotifierType"].asString();
|
||||
if(!dataNodeRecordsRecord["NotifierExtra"].isNull())
|
||||
recordObject.notifierExtra = dataNodeRecordsRecord["NotifierExtra"].asString();
|
||||
if(!dataNodeRecordsRecord["Description"].isNull())
|
||||
recordObject.description = dataNodeRecordsRecord["Description"].asString();
|
||||
if(!dataNodeRecordsRecord["Expression"].isNull())
|
||||
recordObject.expression = dataNodeRecordsRecord["Expression"].asString();
|
||||
if(!dataNodeRecordsRecord["ImageMatch"].isNull())
|
||||
recordObject.imageMatch = dataNodeRecordsRecord["ImageMatch"].asString();
|
||||
data_.records.push_back(recordObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetMonitorListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetMonitorListResult::Data GetMonitorListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetMonitorListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
106
cdrs/src/model/GetMonitorResultRequest.cc
Normal file
106
cdrs/src/model/GetMonitorResultRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/GetMonitorResultRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::GetMonitorResultRequest;
|
||||
|
||||
GetMonitorResultRequest::GetMonitorResultRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "GetMonitorResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetMonitorResultRequest::~GetMonitorResultRequest()
|
||||
{}
|
||||
|
||||
std::string GetMonitorResultRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void GetMonitorResultRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
long GetMonitorResultRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetMonitorResultRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
long GetMonitorResultRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetMonitorResultRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string GetMonitorResultRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void GetMonitorResultRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setBodyParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
std::string GetMonitorResultRequest::getAlgorithmVendor()const
|
||||
{
|
||||
return algorithmVendor_;
|
||||
}
|
||||
|
||||
void GetMonitorResultRequest::setAlgorithmVendor(const std::string& algorithmVendor)
|
||||
{
|
||||
algorithmVendor_ = algorithmVendor;
|
||||
setBodyParameter("AlgorithmVendor", algorithmVendor);
|
||||
}
|
||||
|
||||
std::string GetMonitorResultRequest::getMinRecordId()const
|
||||
{
|
||||
return minRecordId_;
|
||||
}
|
||||
|
||||
void GetMonitorResultRequest::setMinRecordId(const std::string& minRecordId)
|
||||
{
|
||||
minRecordId_ = minRecordId;
|
||||
setBodyParameter("MinRecordId", minRecordId);
|
||||
}
|
||||
|
||||
std::string GetMonitorResultRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void GetMonitorResultRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setBodyParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
97
cdrs/src/model/GetMonitorResultResult.cc
Normal file
97
cdrs/src/model/GetMonitorResultResult.cc
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* 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/cdrs/model/GetMonitorResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
GetMonitorResultResult::GetMonitorResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMonitorResultResult::GetMonitorResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMonitorResultResult::~GetMonitorResultResult()
|
||||
{}
|
||||
|
||||
void GetMonitorResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["MaxId"].isNull())
|
||||
data_.maxId = dataNode["MaxId"].asString();
|
||||
auto allRecordsNode = dataNode["Records"]["RecordsItem"];
|
||||
for (auto dataNodeRecordsRecordsItem : allRecordsNode)
|
||||
{
|
||||
Data::RecordsItem recordsItemObject;
|
||||
if(!dataNodeRecordsRecordsItem["RightBottomY"].isNull())
|
||||
recordsItemObject.rightBottomY = dataNodeRecordsRecordsItem["RightBottomY"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["RightBottomX"].isNull())
|
||||
recordsItemObject.rightBottomX = dataNodeRecordsRecordsItem["RightBottomX"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["LeftUpY"].isNull())
|
||||
recordsItemObject.leftUpY = dataNodeRecordsRecordsItem["LeftUpY"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["LeftUpX"].isNull())
|
||||
recordsItemObject.leftUpX = dataNodeRecordsRecordsItem["LeftUpX"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["GbId"].isNull())
|
||||
recordsItemObject.gbId = dataNodeRecordsRecordsItem["GbId"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["Score"].isNull())
|
||||
recordsItemObject.score = dataNodeRecordsRecordsItem["Score"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["PicUrl"].isNull())
|
||||
recordsItemObject.picUrl = dataNodeRecordsRecordsItem["PicUrl"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["ShotTime"].isNull())
|
||||
recordsItemObject.shotTime = dataNodeRecordsRecordsItem["ShotTime"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["MonitorPicUrl"].isNull())
|
||||
recordsItemObject.monitorPicUrl = dataNodeRecordsRecordsItem["MonitorPicUrl"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["TargetPicUrl"].isNull())
|
||||
recordsItemObject.targetPicUrl = dataNodeRecordsRecordsItem["TargetPicUrl"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["TaskId"].isNull())
|
||||
recordsItemObject.taskId = dataNodeRecordsRecordsItem["TaskId"].asString();
|
||||
auto extendInfoNode = value["ExtendInfo"];
|
||||
if(!extendInfoNode["PlateNo"].isNull())
|
||||
recordsItemObject.extendInfo.plateNo = extendInfoNode["PlateNo"].asString();
|
||||
data_.records.push_back(recordsItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetMonitorResultResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetMonitorResultResult::Data GetMonitorResultResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetMonitorResultResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -1,128 +0,0 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListCorpMetricsRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListCorpMetricsRequest;
|
||||
|
||||
ListCorpMetricsRequest::ListCorpMetricsRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListCorpMetrics")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListCorpMetricsRequest::~ListCorpMetricsRequest()
|
||||
{}
|
||||
|
||||
std::string ListCorpMetricsRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long ListCorpMetricsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsRequest::getDeviceGroupList()const
|
||||
{
|
||||
return deviceGroupList_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsRequest::setDeviceGroupList(const std::string& deviceGroupList)
|
||||
{
|
||||
deviceGroupList_ = deviceGroupList;
|
||||
setBodyParameter("DeviceGroupList", deviceGroupList);
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsRequest::getTagCode()const
|
||||
{
|
||||
return tagCode_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsRequest::setTagCode(const std::string& tagCode)
|
||||
{
|
||||
tagCode_ = tagCode;
|
||||
setBodyParameter("TagCode", tagCode);
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsRequest::getUserGroupList()const
|
||||
{
|
||||
return userGroupList_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsRequest::setUserGroupList(const std::string& userGroupList)
|
||||
{
|
||||
userGroupList_ = userGroupList;
|
||||
setBodyParameter("UserGroupList", userGroupList);
|
||||
}
|
||||
|
||||
long ListCorpMetricsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsRequest::getDeviceIdList()const
|
||||
{
|
||||
return deviceIdList_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsRequest::setDeviceIdList(const std::string& deviceIdList)
|
||||
{
|
||||
deviceIdList_ = deviceIdList;
|
||||
setBodyParameter("DeviceIdList", deviceIdList);
|
||||
}
|
||||
|
||||
@@ -1,115 +0,0 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListCorpMetricsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListCorpMetricsResult::ListCorpMetricsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListCorpMetricsResult::ListCorpMetricsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListCorpMetricsResult::~ListCorpMetricsResult()
|
||||
{}
|
||||
|
||||
void ListCorpMetricsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDataItem["CorpId"].asString();
|
||||
if(!valueDataDataItem["PersonId"].isNull())
|
||||
dataObject.personId = valueDataDataItem["PersonId"].asString();
|
||||
if(!valueDataDataItem["DeviceGroupId"].isNull())
|
||||
dataObject.deviceGroupId = valueDataDataItem["DeviceGroupId"].asString();
|
||||
if(!valueDataDataItem["DeviceId"].isNull())
|
||||
dataObject.deviceId = valueDataDataItem["DeviceId"].asString();
|
||||
if(!valueDataDataItem["UserGroupId"].isNull())
|
||||
dataObject.userGroupId = valueDataDataItem["UserGroupId"].asString();
|
||||
if(!valueDataDataItem["TagMetrics"].isNull())
|
||||
dataObject.tagMetrics = valueDataDataItem["TagMetrics"].asString();
|
||||
if(!valueDataDataItem["TagCode"].isNull())
|
||||
dataObject.tagCode = valueDataDataItem["TagCode"].asString();
|
||||
if(!valueDataDataItem["TagValue"].isNull())
|
||||
dataObject.tagValue = valueDataDataItem["TagValue"].asString();
|
||||
if(!valueDataDataItem["DateId"].isNull())
|
||||
dataObject.dateId = valueDataDataItem["DateId"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
|
||||
}
|
||||
|
||||
int ListCorpMetricsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListCorpMetricsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListCorpMetricsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListCorpMetricsResult::DataItem> ListCorpMetricsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListCorpTrackDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListCorpTrackDetailRequest;
|
||||
|
||||
ListCorpTrackDetailRequest::ListCorpTrackDetailRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListCorpTrackDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListCorpTrackDetailRequest::~ListCorpTrackDetailRequest()
|
||||
{}
|
||||
|
||||
std::string ListCorpTrackDetailRequest::getSchema()const
|
||||
{
|
||||
return schema_;
|
||||
}
|
||||
|
||||
void ListCorpTrackDetailRequest::setSchema(const std::string& schema)
|
||||
{
|
||||
schema_ = schema;
|
||||
setBodyParameter("Schema", schema);
|
||||
}
|
||||
|
||||
std::string ListCorpTrackDetailRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListCorpTrackDetailRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListCorpTrackDetailRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListCorpTrackDetailRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListCorpTrackDetailRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListCorpTrackDetailRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ListCorpTrackDetailRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListCorpTrackDetailRequest::setPageNumber(const std::string& pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", pageNumber);
|
||||
}
|
||||
|
||||
std::string ListCorpTrackDetailRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListCorpTrackDetailRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string ListCorpTrackDetailRequest::getDataSourceId()const
|
||||
{
|
||||
return dataSourceId_;
|
||||
}
|
||||
|
||||
void ListCorpTrackDetailRequest::setDataSourceId(const std::string& dataSourceId)
|
||||
{
|
||||
dataSourceId_ = dataSourceId;
|
||||
setBodyParameter("DataSourceId", dataSourceId);
|
||||
}
|
||||
|
||||
std::string ListCorpTrackDetailRequest::getPersonId()const
|
||||
{
|
||||
return personId_;
|
||||
}
|
||||
|
||||
void ListCorpTrackDetailRequest::setPersonId(const std::string& personId)
|
||||
{
|
||||
personId_ = personId;
|
||||
setBodyParameter("PersonId", personId);
|
||||
}
|
||||
|
||||
@@ -1,123 +0,0 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListCorpTrackDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListCorpTrackDetailResult::ListCorpTrackDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListCorpTrackDetailResult::ListCorpTrackDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListCorpTrackDetailResult::~ListCorpTrackDetailResult()
|
||||
{}
|
||||
|
||||
void ListCorpTrackDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["Date"].isNull())
|
||||
dataObject.date = valueDataDataItem["Date"].asString();
|
||||
if(!valueDataDataItem["LastTime"].isNull())
|
||||
dataObject.lastTime = valueDataDataItem["LastTime"].asString();
|
||||
if(!valueDataDataItem["StartTime"].isNull())
|
||||
dataObject.startTime = valueDataDataItem["StartTime"].asString();
|
||||
if(!valueDataDataItem["EndSourceImage"].isNull())
|
||||
dataObject.endSourceImage = valueDataDataItem["EndSourceImage"].asString();
|
||||
if(!valueDataDataItem["DeviceId"].isNull())
|
||||
dataObject.deviceId = valueDataDataItem["DeviceId"].asString();
|
||||
if(!valueDataDataItem["StartTargetImage"].isNull())
|
||||
dataObject.startTargetImage = valueDataDataItem["StartTargetImage"].asString();
|
||||
if(!valueDataDataItem["GroupId"].isNull())
|
||||
dataObject.groupId = valueDataDataItem["GroupId"].asString();
|
||||
if(!valueDataDataItem["PersonId"].isNull())
|
||||
dataObject.personId = valueDataDataItem["PersonId"].asString();
|
||||
if(!valueDataDataItem["StartSourceImage"].isNull())
|
||||
dataObject.startSourceImage = valueDataDataItem["StartSourceImage"].asString();
|
||||
if(!valueDataDataItem["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDataItem["CorpId"].asString();
|
||||
if(!valueDataDataItem["EndTargetImage"].isNull())
|
||||
dataObject.endTargetImage = valueDataDataItem["EndTargetImage"].asString();
|
||||
if(!valueDataDataItem["SourceUrl"].isNull())
|
||||
dataObject.sourceUrl = valueDataDataItem["SourceUrl"].asString();
|
||||
if(!valueDataDataItem["TargetUrl"].isNull())
|
||||
dataObject.targetUrl = valueDataDataItem["TargetUrl"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListCorpTrackDetailResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListCorpTrackDetailResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListCorpTrackDetailResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListCorpTrackDetailResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListCorpTrackDetailResult::DataItem> ListCorpTrackDetailResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListCorpTrackDetailResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string ListCorpTrackDetailResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,106 +0,0 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListMetricsRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListMetricsRequest;
|
||||
|
||||
ListMetricsRequest::ListMetricsRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListMetrics")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListMetricsRequest::~ListMetricsRequest()
|
||||
{}
|
||||
|
||||
std::string ListMetricsRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListMetricsRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListMetricsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListMetricsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListMetricsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListMetricsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ListMetricsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListMetricsRequest::setPageNumber(const std::string& pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", pageNumber);
|
||||
}
|
||||
|
||||
std::string ListMetricsRequest::getTagCode()const
|
||||
{
|
||||
return tagCode_;
|
||||
}
|
||||
|
||||
void ListMetricsRequest::setTagCode(const std::string& tagCode)
|
||||
{
|
||||
tagCode_ = tagCode;
|
||||
setBodyParameter("TagCode", tagCode);
|
||||
}
|
||||
|
||||
std::string ListMetricsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListMetricsRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string ListMetricsRequest::getAggregateType()const
|
||||
{
|
||||
return aggregateType_;
|
||||
}
|
||||
|
||||
void ListMetricsRequest::setAggregateType(const std::string& aggregateType)
|
||||
{
|
||||
aggregateType_ = aggregateType;
|
||||
setBodyParameter("AggregateType", aggregateType);
|
||||
}
|
||||
|
||||
@@ -1,100 +0,0 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListMetricsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListMetricsResult::ListMetricsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMetricsResult::ListMetricsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMetricsResult::~ListMetricsResult()
|
||||
{}
|
||||
|
||||
void ListMetricsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["DateTime"].isNull())
|
||||
dataObject.dateTime = valueDataDataItem["DateTime"].asString();
|
||||
if(!valueDataDataItem["TagCode"].isNull())
|
||||
dataObject.tagCode = valueDataDataItem["TagCode"].asString();
|
||||
if(!valueDataDataItem["TagValue"].isNull())
|
||||
dataObject.tagValue = valueDataDataItem["TagValue"].asString();
|
||||
if(!valueDataDataItem["TagMetric"].isNull())
|
||||
dataObject.tagMetric = valueDataDataItem["TagMetric"].asString();
|
||||
if(!valueDataDataItem["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDataItem["CorpId"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = value["PageNumber"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = value["PageSize"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = value["TotalCount"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListMetricsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListMetricsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ListMetricsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string ListMetricsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListMetricsResult::DataItem> ListMetricsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListMetricsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -1,106 +0,0 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListPersonTraceRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListPersonTraceRequest;
|
||||
|
||||
ListPersonTraceRequest::ListPersonTraceRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListPersonTrace")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListPersonTraceRequest::~ListPersonTraceRequest()
|
||||
{}
|
||||
|
||||
std::string ListPersonTraceRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListPersonTraceRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListPersonTraceRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListPersonTraceRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListPersonTraceRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListPersonTraceRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ListPersonTraceRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListPersonTraceRequest::setPageNumber(const std::string& pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", pageNumber);
|
||||
}
|
||||
|
||||
std::string ListPersonTraceRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListPersonTraceRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string ListPersonTraceRequest::getDataSourceId()const
|
||||
{
|
||||
return dataSourceId_;
|
||||
}
|
||||
|
||||
void ListPersonTraceRequest::setDataSourceId(const std::string& dataSourceId)
|
||||
{
|
||||
dataSourceId_ = dataSourceId;
|
||||
setBodyParameter("DataSourceId", dataSourceId);
|
||||
}
|
||||
|
||||
std::string ListPersonTraceRequest::getPersonId()const
|
||||
{
|
||||
return personId_;
|
||||
}
|
||||
|
||||
void ListPersonTraceRequest::setPersonId(const std::string& personId)
|
||||
{
|
||||
personId_ = personId;
|
||||
setBodyParameter("PersonId", personId);
|
||||
}
|
||||
|
||||
@@ -1,119 +0,0 @@
|
||||
/*
|
||||
* 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/cdrs/model/ListPersonTraceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListPersonTraceResult::ListPersonTraceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPersonTraceResult::ListPersonTraceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPersonTraceResult::~ListPersonTraceResult()
|
||||
{}
|
||||
|
||||
void ListPersonTraceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["Date"].isNull())
|
||||
dataObject.date = valueDataDataItem["Date"].asString();
|
||||
if(!valueDataDataItem["LastTime"].isNull())
|
||||
dataObject.lastTime = valueDataDataItem["LastTime"].asString();
|
||||
if(!valueDataDataItem["StartTime"].isNull())
|
||||
dataObject.startTime = valueDataDataItem["StartTime"].asString();
|
||||
if(!valueDataDataItem["EndSourceImage"].isNull())
|
||||
dataObject.endSourceImage = valueDataDataItem["EndSourceImage"].asString();
|
||||
if(!valueDataDataItem["DeviceId"].isNull())
|
||||
dataObject.deviceId = valueDataDataItem["DeviceId"].asString();
|
||||
if(!valueDataDataItem["StartTargetImage"].isNull())
|
||||
dataObject.startTargetImage = valueDataDataItem["StartTargetImage"].asString();
|
||||
if(!valueDataDataItem["GroupId"].isNull())
|
||||
dataObject.groupId = valueDataDataItem["GroupId"].asString();
|
||||
if(!valueDataDataItem["PersonId"].isNull())
|
||||
dataObject.personId = valueDataDataItem["PersonId"].asString();
|
||||
if(!valueDataDataItem["StartSourceImage"].isNull())
|
||||
dataObject.startSourceImage = valueDataDataItem["StartSourceImage"].asString();
|
||||
if(!valueDataDataItem["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDataItem["CorpId"].asString();
|
||||
if(!valueDataDataItem["EndTargetImage"].isNull())
|
||||
dataObject.endTargetImage = valueDataDataItem["EndTargetImage"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListPersonTraceResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListPersonTraceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListPersonTraceResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListPersonTraceResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListPersonTraceResult::DataItem> ListPersonTraceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListPersonTraceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string ListPersonTraceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -69,6 +69,10 @@ void ListVehicleDetailsResult::parse(const std::string &payload)
|
||||
dataObject.personId = valueDataDatas["PersonId"].asString();
|
||||
if(!valueDataDatas["PlateId"].isNull())
|
||||
dataObject.plateId = valueDataDatas["PlateId"].asString();
|
||||
if(!valueDataDatas["SourceUrl"].isNull())
|
||||
dataObject.sourceUrl = valueDataDatas["SourceUrl"].asString();
|
||||
if(!valueDataDatas["TargetUrl"].isNull())
|
||||
dataObject.targetUrl = valueDataDatas["TargetUrl"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -71,3 +71,25 @@ void ListVehicleTopRequest::setStartTime(const std::string& startTime)
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ListVehicleTopRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListVehicleTopRequest::setPageNum(const std::string& pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setBodyParameter("PageNum", pageNum);
|
||||
}
|
||||
|
||||
std::string ListVehicleTopRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListVehicleTopRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
|
||||
@@ -71,3 +71,25 @@ void ListVehicleTrackRequest::setStartTime(const std::string& startTime)
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long ListVehicleTrackRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListVehicleTrackRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
long ListVehicleTrackRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListVehicleTrackRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -71,6 +71,10 @@ void ListVehicleTrackResult::parse(const std::string &payload)
|
||||
dataObject.latitude = valueDataDatas["Latitude"].asString();
|
||||
if(!valueDataDatas["Longitude"].isNull())
|
||||
dataObject.longitude = valueDataDatas["Longitude"].asString();
|
||||
if(!valueDataDatas["SourceUrl"].isNull())
|
||||
dataObject.sourceUrl = valueDataDatas["SourceUrl"].asString();
|
||||
if(!valueDataDatas["TargetUrl"].isNull())
|
||||
dataObject.targetUrl = valueDataDatas["TargetUrl"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -27,6 +27,17 @@ RecognizeImageRequest::RecognizeImageRequest() :
|
||||
RecognizeImageRequest::~RecognizeImageRequest()
|
||||
{}
|
||||
|
||||
bool RecognizeImageRequest::getRequireCropImage()const
|
||||
{
|
||||
return requireCropImage_;
|
||||
}
|
||||
|
||||
void RecognizeImageRequest::setRequireCropImage(bool requireCropImage)
|
||||
{
|
||||
requireCropImage_ = requireCropImage;
|
||||
setBodyParameter("RequireCropImage", requireCropImage ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RecognizeImageRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
@@ -38,6 +49,17 @@ void RecognizeImageRequest::setCorpId(const std::string& corpId)
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string RecognizeImageRequest::getRecognizeType()const
|
||||
{
|
||||
return recognizeType_;
|
||||
}
|
||||
|
||||
void RecognizeImageRequest::setRecognizeType(const std::string& recognizeType)
|
||||
{
|
||||
recognizeType_ = recognizeType;
|
||||
setBodyParameter("RecognizeType", recognizeType);
|
||||
}
|
||||
|
||||
std::string RecognizeImageRequest::getVendor()const
|
||||
{
|
||||
return vendor_;
|
||||
|
||||
@@ -54,6 +54,10 @@ void RecognizeImageResult::parse(const std::string &payload)
|
||||
bodyListItemObject.rightBottomY = std::stoi(dataNodeBodyListBodyListItem["RightBottomY"].asString());
|
||||
if(!dataNodeBodyListBodyListItem["Feature"].isNull())
|
||||
bodyListItemObject.feature = dataNodeBodyListBodyListItem["Feature"].asString();
|
||||
if(!dataNodeBodyListBodyListItem["TargetImageContent"].isNull())
|
||||
bodyListItemObject.targetImageContent = dataNodeBodyListBodyListItem["TargetImageContent"].asString();
|
||||
if(!dataNodeBodyListBodyListItem["CropAlgorithmCode"].isNull())
|
||||
bodyListItemObject.cropAlgorithmCode = dataNodeBodyListBodyListItem["CropAlgorithmCode"].asString();
|
||||
data_.bodyList.push_back(bodyListItemObject);
|
||||
}
|
||||
auto allFaceListNode = dataNode["FaceList"]["FaceListItem"];
|
||||
@@ -74,6 +78,10 @@ void RecognizeImageResult::parse(const std::string &payload)
|
||||
faceListItemObject.faceKeyPointQuality = std::stof(dataNodeFaceListFaceListItem["FaceKeyPointQuality"].asString());
|
||||
if(!dataNodeFaceListFaceListItem["Feature"].isNull())
|
||||
faceListItemObject.feature = dataNodeFaceListFaceListItem["Feature"].asString();
|
||||
if(!dataNodeFaceListFaceListItem["TargetImageContent"].isNull())
|
||||
faceListItemObject.targetImageContent = dataNodeFaceListFaceListItem["TargetImageContent"].asString();
|
||||
if(!dataNodeFaceListFaceListItem["CropAlgorithmCode"].isNull())
|
||||
faceListItemObject.cropAlgorithmCode = dataNodeFaceListFaceListItem["CropAlgorithmCode"].asString();
|
||||
data_.faceList.push_back(faceListItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
172
cdrs/src/model/SearchAggregateObjectRequest.cc
Normal file
172
cdrs/src/model/SearchAggregateObjectRequest.cc
Normal file
@@ -0,0 +1,172 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/SearchAggregateObjectRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::SearchAggregateObjectRequest;
|
||||
|
||||
SearchAggregateObjectRequest::SearchAggregateObjectRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "SearchAggregateObject")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchAggregateObjectRequest::~SearchAggregateObjectRequest()
|
||||
{}
|
||||
|
||||
std::string SearchAggregateObjectRequest::getShotTimeEnd()const
|
||||
{
|
||||
return shotTimeEnd_;
|
||||
}
|
||||
|
||||
void SearchAggregateObjectRequest::setShotTimeEnd(const std::string& shotTimeEnd)
|
||||
{
|
||||
shotTimeEnd_ = shotTimeEnd;
|
||||
setBodyParameter("ShotTimeEnd", shotTimeEnd);
|
||||
}
|
||||
|
||||
std::string SearchAggregateObjectRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void SearchAggregateObjectRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
int SearchAggregateObjectRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void SearchAggregateObjectRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string SearchAggregateObjectRequest::getFeature()const
|
||||
{
|
||||
return feature_;
|
||||
}
|
||||
|
||||
void SearchAggregateObjectRequest::setFeature(const std::string& feature)
|
||||
{
|
||||
feature_ = feature;
|
||||
setBodyParameter("Feature", feature);
|
||||
}
|
||||
|
||||
std::string SearchAggregateObjectRequest::getVendor()const
|
||||
{
|
||||
return vendor_;
|
||||
}
|
||||
|
||||
void SearchAggregateObjectRequest::setVendor(const std::string& vendor)
|
||||
{
|
||||
vendor_ = vendor;
|
||||
setBodyParameter("Vendor", vendor);
|
||||
}
|
||||
|
||||
bool SearchAggregateObjectRequest::getRequireTotalCount()const
|
||||
{
|
||||
return requireTotalCount_;
|
||||
}
|
||||
|
||||
void SearchAggregateObjectRequest::setRequireTotalCount(bool requireTotalCount)
|
||||
{
|
||||
requireTotalCount_ = requireTotalCount;
|
||||
setBodyParameter("RequireTotalCount", requireTotalCount ? "true" : "false");
|
||||
}
|
||||
|
||||
int SearchAggregateObjectRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void SearchAggregateObjectRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string SearchAggregateObjectRequest::getImageContent()const
|
||||
{
|
||||
return imageContent_;
|
||||
}
|
||||
|
||||
void SearchAggregateObjectRequest::setImageContent(const std::string& imageContent)
|
||||
{
|
||||
imageContent_ = imageContent;
|
||||
setBodyParameter("ImageContent", imageContent);
|
||||
}
|
||||
|
||||
std::string SearchAggregateObjectRequest::getObjectType()const
|
||||
{
|
||||
return objectType_;
|
||||
}
|
||||
|
||||
void SearchAggregateObjectRequest::setObjectType(const std::string& objectType)
|
||||
{
|
||||
objectType_ = objectType;
|
||||
setBodyParameter("ObjectType", objectType);
|
||||
}
|
||||
|
||||
std::string SearchAggregateObjectRequest::getDeviceList()const
|
||||
{
|
||||
return deviceList_;
|
||||
}
|
||||
|
||||
void SearchAggregateObjectRequest::setDeviceList(const std::string& deviceList)
|
||||
{
|
||||
deviceList_ = deviceList;
|
||||
setBodyParameter("DeviceList", deviceList);
|
||||
}
|
||||
|
||||
std::string SearchAggregateObjectRequest::getImageUrl()const
|
||||
{
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void SearchAggregateObjectRequest::setImageUrl(const std::string& imageUrl)
|
||||
{
|
||||
imageUrl_ = imageUrl;
|
||||
setBodyParameter("ImageUrl", imageUrl);
|
||||
}
|
||||
|
||||
std::string SearchAggregateObjectRequest::getAttributes()const
|
||||
{
|
||||
return attributes_;
|
||||
}
|
||||
|
||||
void SearchAggregateObjectRequest::setAttributes(const std::string& attributes)
|
||||
{
|
||||
attributes_ = attributes;
|
||||
setBodyParameter("Attributes", attributes);
|
||||
}
|
||||
|
||||
std::string SearchAggregateObjectRequest::getShotTimeStart()const
|
||||
{
|
||||
return shotTimeStart_;
|
||||
}
|
||||
|
||||
void SearchAggregateObjectRequest::setShotTimeStart(const std::string& shotTimeStart)
|
||||
{
|
||||
shotTimeStart_ = shotTimeStart;
|
||||
setBodyParameter("ShotTimeStart", shotTimeStart);
|
||||
}
|
||||
|
||||
221
cdrs/src/model/SearchAggregateObjectResult.cc
Normal file
221
cdrs/src/model/SearchAggregateObjectResult.cc
Normal file
@@ -0,0 +1,221 @@
|
||||
/*
|
||||
* 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/cdrs/model/SearchAggregateObjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
SearchAggregateObjectResult::SearchAggregateObjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchAggregateObjectResult::SearchAggregateObjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchAggregateObjectResult::~SearchAggregateObjectResult()
|
||||
{}
|
||||
|
||||
void SearchAggregateObjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allBodyListNode = dataNode["BodyList"]["BodyListItem"];
|
||||
for (auto dataNodeBodyListBodyListItem : allBodyListNode)
|
||||
{
|
||||
Data::BodyListItem bodyListItemObject;
|
||||
if(!dataNodeBodyListBodyListItem["DeviceID"].isNull())
|
||||
bodyListItemObject.deviceID = dataNodeBodyListBodyListItem["DeviceID"].asString();
|
||||
if(!dataNodeBodyListBodyListItem["ObjectType"].isNull())
|
||||
bodyListItemObject.objectType = dataNodeBodyListBodyListItem["ObjectType"].asString();
|
||||
if(!dataNodeBodyListBodyListItem["LeftTopX"].isNull())
|
||||
bodyListItemObject.leftTopX = std::stoi(dataNodeBodyListBodyListItem["LeftTopX"].asString());
|
||||
if(!dataNodeBodyListBodyListItem["LeftTopY"].isNull())
|
||||
bodyListItemObject.leftTopY = std::stoi(dataNodeBodyListBodyListItem["LeftTopY"].asString());
|
||||
if(!dataNodeBodyListBodyListItem["RightBottomX"].isNull())
|
||||
bodyListItemObject.rightBottomX = std::stoi(dataNodeBodyListBodyListItem["RightBottomX"].asString());
|
||||
if(!dataNodeBodyListBodyListItem["RightBottomY"].isNull())
|
||||
bodyListItemObject.rightBottomY = std::stoi(dataNodeBodyListBodyListItem["RightBottomY"].asString());
|
||||
if(!dataNodeBodyListBodyListItem["Score"].isNull())
|
||||
bodyListItemObject.score = std::stof(dataNodeBodyListBodyListItem["Score"].asString());
|
||||
if(!dataNodeBodyListBodyListItem["ShotTime"].isNull())
|
||||
bodyListItemObject.shotTime = dataNodeBodyListBodyListItem["ShotTime"].asString();
|
||||
if(!dataNodeBodyListBodyListItem["SourceImageUrl"].isNull())
|
||||
bodyListItemObject.sourceImageUrl = dataNodeBodyListBodyListItem["SourceImageUrl"].asString();
|
||||
if(!dataNodeBodyListBodyListItem["TargetImageUrl"].isNull())
|
||||
bodyListItemObject.targetImageUrl = dataNodeBodyListBodyListItem["TargetImageUrl"].asString();
|
||||
if(!dataNodeBodyListBodyListItem["DeviceName"].isNull())
|
||||
bodyListItemObject.deviceName = dataNodeBodyListBodyListItem["DeviceName"].asString();
|
||||
if(!dataNodeBodyListBodyListItem["DeviceLatitude"].isNull())
|
||||
bodyListItemObject.deviceLatitude = std::stof(dataNodeBodyListBodyListItem["DeviceLatitude"].asString());
|
||||
if(!dataNodeBodyListBodyListItem["DeviceLongitude"].isNull())
|
||||
bodyListItemObject.deviceLongitude = std::stof(dataNodeBodyListBodyListItem["DeviceLongitude"].asString());
|
||||
if(!dataNodeBodyListBodyListItem["PersonId"].isNull())
|
||||
bodyListItemObject.personId = dataNodeBodyListBodyListItem["PersonId"].asString();
|
||||
data_.bodyList.push_back(bodyListItemObject);
|
||||
}
|
||||
auto allFaceListNode = dataNode["FaceList"]["FaceListItem"];
|
||||
for (auto dataNodeFaceListFaceListItem : allFaceListNode)
|
||||
{
|
||||
Data::FaceListItem faceListItemObject;
|
||||
if(!dataNodeFaceListFaceListItem["DeviceID"].isNull())
|
||||
faceListItemObject.deviceID = dataNodeFaceListFaceListItem["DeviceID"].asString();
|
||||
if(!dataNodeFaceListFaceListItem["ObjectType"].isNull())
|
||||
faceListItemObject.objectType = dataNodeFaceListFaceListItem["ObjectType"].asString();
|
||||
if(!dataNodeFaceListFaceListItem["LeftTopX"].isNull())
|
||||
faceListItemObject.leftTopX = std::stoi(dataNodeFaceListFaceListItem["LeftTopX"].asString());
|
||||
if(!dataNodeFaceListFaceListItem["LeftTopY"].isNull())
|
||||
faceListItemObject.leftTopY = std::stoi(dataNodeFaceListFaceListItem["LeftTopY"].asString());
|
||||
if(!dataNodeFaceListFaceListItem["RightBottomX"].isNull())
|
||||
faceListItemObject.rightBottomX = std::stoi(dataNodeFaceListFaceListItem["RightBottomX"].asString());
|
||||
if(!dataNodeFaceListFaceListItem["RightBottomY"].isNull())
|
||||
faceListItemObject.rightBottomY = std::stoi(dataNodeFaceListFaceListItem["RightBottomY"].asString());
|
||||
if(!dataNodeFaceListFaceListItem["Score"].isNull())
|
||||
faceListItemObject.score = std::stof(dataNodeFaceListFaceListItem["Score"].asString());
|
||||
if(!dataNodeFaceListFaceListItem["ShotTime"].isNull())
|
||||
faceListItemObject.shotTime = dataNodeFaceListFaceListItem["ShotTime"].asString();
|
||||
if(!dataNodeFaceListFaceListItem["SourceImageUrl"].isNull())
|
||||
faceListItemObject.sourceImageUrl = dataNodeFaceListFaceListItem["SourceImageUrl"].asString();
|
||||
if(!dataNodeFaceListFaceListItem["TargetImageUrl"].isNull())
|
||||
faceListItemObject.targetImageUrl = dataNodeFaceListFaceListItem["TargetImageUrl"].asString();
|
||||
if(!dataNodeFaceListFaceListItem["DeviceName"].isNull())
|
||||
faceListItemObject.deviceName = dataNodeFaceListFaceListItem["DeviceName"].asString();
|
||||
if(!dataNodeFaceListFaceListItem["DeviceLatitude"].isNull())
|
||||
faceListItemObject.deviceLatitude = std::stof(dataNodeFaceListFaceListItem["DeviceLatitude"].asString());
|
||||
if(!dataNodeFaceListFaceListItem["DeviceLongitude"].isNull())
|
||||
faceListItemObject.deviceLongitude = std::stof(dataNodeFaceListFaceListItem["DeviceLongitude"].asString());
|
||||
if(!dataNodeFaceListFaceListItem["PersonId"].isNull())
|
||||
faceListItemObject.personId = dataNodeFaceListFaceListItem["PersonId"].asString();
|
||||
data_.faceList.push_back(faceListItemObject);
|
||||
}
|
||||
auto allMotorListNode = dataNode["MotorList"]["MotorListItem"];
|
||||
for (auto dataNodeMotorListMotorListItem : allMotorListNode)
|
||||
{
|
||||
Data::MotorListItem motorListItemObject;
|
||||
if(!dataNodeMotorListMotorListItem["DeviceID"].isNull())
|
||||
motorListItemObject.deviceID = dataNodeMotorListMotorListItem["DeviceID"].asString();
|
||||
if(!dataNodeMotorListMotorListItem["ObjectType"].isNull())
|
||||
motorListItemObject.objectType = dataNodeMotorListMotorListItem["ObjectType"].asString();
|
||||
if(!dataNodeMotorListMotorListItem["LeftTopX"].isNull())
|
||||
motorListItemObject.leftTopX = std::stoi(dataNodeMotorListMotorListItem["LeftTopX"].asString());
|
||||
if(!dataNodeMotorListMotorListItem["LeftTopY"].isNull())
|
||||
motorListItemObject.leftTopY = std::stoi(dataNodeMotorListMotorListItem["LeftTopY"].asString());
|
||||
if(!dataNodeMotorListMotorListItem["RightBottomX"].isNull())
|
||||
motorListItemObject.rightBottomX = std::stoi(dataNodeMotorListMotorListItem["RightBottomX"].asString());
|
||||
if(!dataNodeMotorListMotorListItem["RightBottomY"].isNull())
|
||||
motorListItemObject.rightBottomY = std::stoi(dataNodeMotorListMotorListItem["RightBottomY"].asString());
|
||||
if(!dataNodeMotorListMotorListItem["Score"].isNull())
|
||||
motorListItemObject.score = std::stof(dataNodeMotorListMotorListItem["Score"].asString());
|
||||
if(!dataNodeMotorListMotorListItem["ShotTime"].isNull())
|
||||
motorListItemObject.shotTime = dataNodeMotorListMotorListItem["ShotTime"].asString();
|
||||
if(!dataNodeMotorListMotorListItem["SourceImageUrl"].isNull())
|
||||
motorListItemObject.sourceImageUrl = dataNodeMotorListMotorListItem["SourceImageUrl"].asString();
|
||||
if(!dataNodeMotorListMotorListItem["TargetImageUrl"].isNull())
|
||||
motorListItemObject.targetImageUrl = dataNodeMotorListMotorListItem["TargetImageUrl"].asString();
|
||||
if(!dataNodeMotorListMotorListItem["DeviceName"].isNull())
|
||||
motorListItemObject.deviceName = dataNodeMotorListMotorListItem["DeviceName"].asString();
|
||||
if(!dataNodeMotorListMotorListItem["DeviceLatitude"].isNull())
|
||||
motorListItemObject.deviceLatitude = std::stof(dataNodeMotorListMotorListItem["DeviceLatitude"].asString());
|
||||
if(!dataNodeMotorListMotorListItem["DeviceLongitude"].isNull())
|
||||
motorListItemObject.deviceLongitude = std::stof(dataNodeMotorListMotorListItem["DeviceLongitude"].asString());
|
||||
if(!dataNodeMotorListMotorListItem["PersonId"].isNull())
|
||||
motorListItemObject.personId = dataNodeMotorListMotorListItem["PersonId"].asString();
|
||||
data_.motorList.push_back(motorListItemObject);
|
||||
}
|
||||
auto allNonMotorListNode = dataNode["NonMotorList"]["NonMotorListItem"];
|
||||
for (auto dataNodeNonMotorListNonMotorListItem : allNonMotorListNode)
|
||||
{
|
||||
Data::NonMotorListItem nonMotorListItemObject;
|
||||
if(!dataNodeNonMotorListNonMotorListItem["DeviceID"].isNull())
|
||||
nonMotorListItemObject.deviceID = dataNodeNonMotorListNonMotorListItem["DeviceID"].asString();
|
||||
if(!dataNodeNonMotorListNonMotorListItem["ObjectType"].isNull())
|
||||
nonMotorListItemObject.objectType = dataNodeNonMotorListNonMotorListItem["ObjectType"].asString();
|
||||
if(!dataNodeNonMotorListNonMotorListItem["LeftTopX"].isNull())
|
||||
nonMotorListItemObject.leftTopX = std::stoi(dataNodeNonMotorListNonMotorListItem["LeftTopX"].asString());
|
||||
if(!dataNodeNonMotorListNonMotorListItem["LeftTopY"].isNull())
|
||||
nonMotorListItemObject.leftTopY = std::stoi(dataNodeNonMotorListNonMotorListItem["LeftTopY"].asString());
|
||||
if(!dataNodeNonMotorListNonMotorListItem["RightBottomX"].isNull())
|
||||
nonMotorListItemObject.rightBottomX = std::stoi(dataNodeNonMotorListNonMotorListItem["RightBottomX"].asString());
|
||||
if(!dataNodeNonMotorListNonMotorListItem["RightBottomY"].isNull())
|
||||
nonMotorListItemObject.rightBottomY = std::stoi(dataNodeNonMotorListNonMotorListItem["RightBottomY"].asString());
|
||||
if(!dataNodeNonMotorListNonMotorListItem["Score"].isNull())
|
||||
nonMotorListItemObject.score = std::stof(dataNodeNonMotorListNonMotorListItem["Score"].asString());
|
||||
if(!dataNodeNonMotorListNonMotorListItem["ShotTime"].isNull())
|
||||
nonMotorListItemObject.shotTime = dataNodeNonMotorListNonMotorListItem["ShotTime"].asString();
|
||||
if(!dataNodeNonMotorListNonMotorListItem["SourceImageUrl"].isNull())
|
||||
nonMotorListItemObject.sourceImageUrl = dataNodeNonMotorListNonMotorListItem["SourceImageUrl"].asString();
|
||||
if(!dataNodeNonMotorListNonMotorListItem["TargetImageUrl"].isNull())
|
||||
nonMotorListItemObject.targetImageUrl = dataNodeNonMotorListNonMotorListItem["TargetImageUrl"].asString();
|
||||
if(!dataNodeNonMotorListNonMotorListItem["DeviceName"].isNull())
|
||||
nonMotorListItemObject.deviceName = dataNodeNonMotorListNonMotorListItem["DeviceName"].asString();
|
||||
if(!dataNodeNonMotorListNonMotorListItem["DeviceLatitude"].isNull())
|
||||
nonMotorListItemObject.deviceLatitude = std::stof(dataNodeNonMotorListNonMotorListItem["DeviceLatitude"].asString());
|
||||
if(!dataNodeNonMotorListNonMotorListItem["DeviceLongitude"].isNull())
|
||||
nonMotorListItemObject.deviceLongitude = std::stof(dataNodeNonMotorListNonMotorListItem["DeviceLongitude"].asString());
|
||||
if(!dataNodeNonMotorListNonMotorListItem["PersonId"].isNull())
|
||||
nonMotorListItemObject.personId = dataNodeNonMotorListNonMotorListItem["PersonId"].asString();
|
||||
data_.nonMotorList.push_back(nonMotorListItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string SearchAggregateObjectResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long SearchAggregateObjectResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int SearchAggregateObjectResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
SearchAggregateObjectResult::Data SearchAggregateObjectResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SearchAggregateObjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SearchAggregateObjectResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ void SearchObjectResult::parse(const std::string &payload)
|
||||
if(!dataNodeNonMotorListNonMotorListItem["RightBottomY"].isNull())
|
||||
nonMotorListItemObject.rightBottomY = std::stoi(dataNodeNonMotorListNonMotorListItem["RightBottomY"].asString());
|
||||
if(!dataNodeNonMotorListNonMotorListItem["Score"].isNull())
|
||||
nonMotorListItemObject.score = std::stoi(dataNodeNonMotorListNonMotorListItem["Score"].asString());
|
||||
nonMotorListItemObject.score = std::stof(dataNodeNonMotorListNonMotorListItem["Score"].asString());
|
||||
if(!dataNodeNonMotorListNonMotorListItem["ShotTime"].isNull())
|
||||
nonMotorListItemObject.shotTime = dataNodeNonMotorListNonMotorListItem["ShotTime"].asString();
|
||||
if(!dataNodeNonMotorListNonMotorListItem["SourceImageUrl"].isNull())
|
||||
|
||||
@@ -38,6 +38,17 @@ void StopCdrsMonitorRequest::setCorpId(const std::string& corpId)
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string StopCdrsMonitorRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void StopCdrsMonitorRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setBodyParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
std::string StopCdrsMonitorRequest::getAlgorithmVendor()const
|
||||
{
|
||||
return algorithmVendor_;
|
||||
|
||||
73
cdrs/src/model/StopMonitorRequest.cc
Normal file
73
cdrs/src/model/StopMonitorRequest.cc
Normal 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/cdrs/model/StopMonitorRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::StopMonitorRequest;
|
||||
|
||||
StopMonitorRequest::StopMonitorRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "StopMonitor")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopMonitorRequest::~StopMonitorRequest()
|
||||
{}
|
||||
|
||||
std::string StopMonitorRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void StopMonitorRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string StopMonitorRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void StopMonitorRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setBodyParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
std::string StopMonitorRequest::getAlgorithmVendor()const
|
||||
{
|
||||
return algorithmVendor_;
|
||||
}
|
||||
|
||||
void StopMonitorRequest::setAlgorithmVendor(const std::string& algorithmVendor)
|
||||
{
|
||||
algorithmVendor_ = algorithmVendor;
|
||||
setBodyParameter("AlgorithmVendor", algorithmVendor);
|
||||
}
|
||||
|
||||
std::string StopMonitorRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void StopMonitorRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setBodyParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
@@ -14,45 +14,52 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/ClearDedicatedHostResult.h>
|
||||
#include <alibabacloud/cdrs/model/StopMonitorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ClearDedicatedHostResult::ClearDedicatedHostResult() :
|
||||
StopMonitorResult::StopMonitorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ClearDedicatedHostResult::ClearDedicatedHostResult(const std::string &payload) :
|
||||
StopMonitorResult::StopMonitorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ClearDedicatedHostResult::~ClearDedicatedHostResult()
|
||||
StopMonitorResult::~StopMonitorResult()
|
||||
{}
|
||||
|
||||
void ClearDedicatedHostResult::parse(const std::string &payload)
|
||||
void StopMonitorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["DedicatedHostId"].isNull())
|
||||
dedicatedHostId_ = value["DedicatedHostId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ClearDedicatedHostResult::getDedicatedHostId()const
|
||||
std::string StopMonitorResult::getMessage()const
|
||||
{
|
||||
return dedicatedHostId_;
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ClearDedicatedHostResult::getTaskId()const
|
||||
std::string StopMonitorResult::getData()const
|
||||
{
|
||||
return taskId_;
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string StopMonitorResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -214,6 +214,17 @@ void UpdateCdrsMonitorRequest::setNotifierType(const std::string& notifierType)
|
||||
setBodyParameter("NotifierType", notifierType);
|
||||
}
|
||||
|
||||
std::string UpdateCdrsMonitorRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void UpdateCdrsMonitorRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setBodyParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
std::string UpdateCdrsMonitorRequest::getAlgorithmVendor()const
|
||||
{
|
||||
return algorithmVendor_;
|
||||
|
||||
238
cdrs/src/model/UpdateMonitorRequest.cc
Normal file
238
cdrs/src/model/UpdateMonitorRequest.cc
Normal file
@@ -0,0 +1,238 @@
|
||||
/*
|
||||
* 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/cdrs/model/UpdateMonitorRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::UpdateMonitorRequest;
|
||||
|
||||
UpdateMonitorRequest::UpdateMonitorRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "UpdateMonitor")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateMonitorRequest::~UpdateMonitorRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateMonitorRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setBodyParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getPicOperateType()const
|
||||
{
|
||||
return picOperateType_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setPicOperateType(const std::string& picOperateType)
|
||||
{
|
||||
picOperateType_ = picOperateType;
|
||||
setBodyParameter("PicOperateType", picOperateType);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getAttributeName()const
|
||||
{
|
||||
return attributeName_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setAttributeName(const std::string& attributeName)
|
||||
{
|
||||
attributeName_ = attributeName;
|
||||
setBodyParameter("AttributeName", attributeName);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getAttributeOperateType()const
|
||||
{
|
||||
return attributeOperateType_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setAttributeOperateType(const std::string& attributeOperateType)
|
||||
{
|
||||
attributeOperateType_ = attributeOperateType;
|
||||
setBodyParameter("AttributeOperateType", attributeOperateType);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getRuleExpression()const
|
||||
{
|
||||
return ruleExpression_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setRuleExpression(const std::string& ruleExpression)
|
||||
{
|
||||
ruleExpression_ = ruleExpression;
|
||||
setBodyParameter("RuleExpression", ruleExpression);
|
||||
}
|
||||
|
||||
int UpdateMonitorRequest::getNotifierTimeOut()const
|
||||
{
|
||||
return notifierTimeOut_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setNotifierTimeOut(int notifierTimeOut)
|
||||
{
|
||||
notifierTimeOut_ = notifierTimeOut;
|
||||
setBodyParameter("NotifierTimeOut", std::to_string(notifierTimeOut));
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setBodyParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getDeviceOperateType()const
|
||||
{
|
||||
return deviceOperateType_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setDeviceOperateType(const std::string& deviceOperateType)
|
||||
{
|
||||
deviceOperateType_ = deviceOperateType;
|
||||
setBodyParameter("DeviceOperateType", deviceOperateType);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getPicList()const
|
||||
{
|
||||
return picList_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setPicList(const std::string& picList)
|
||||
{
|
||||
picList_ = picList;
|
||||
setBodyParameter("PicList", picList);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getAttributeValueList()const
|
||||
{
|
||||
return attributeValueList_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setAttributeValueList(const std::string& attributeValueList)
|
||||
{
|
||||
attributeValueList_ = attributeValueList;
|
||||
setBodyParameter("AttributeValueList", attributeValueList);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getNotifierAppSecret()const
|
||||
{
|
||||
return notifierAppSecret_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setNotifierAppSecret(const std::string& notifierAppSecret)
|
||||
{
|
||||
notifierAppSecret_ = notifierAppSecret;
|
||||
setBodyParameter("NotifierAppSecret", notifierAppSecret);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getNotifierExtendValues()const
|
||||
{
|
||||
return notifierExtendValues_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setNotifierExtendValues(const std::string& notifierExtendValues)
|
||||
{
|
||||
notifierExtendValues_ = notifierExtendValues;
|
||||
setBodyParameter("NotifierExtendValues", notifierExtendValues);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getDeviceList()const
|
||||
{
|
||||
return deviceList_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setDeviceList(const std::string& deviceList)
|
||||
{
|
||||
deviceList_ = deviceList;
|
||||
setBodyParameter("DeviceList", deviceList);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getNotifierUrl()const
|
||||
{
|
||||
return notifierUrl_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setNotifierUrl(const std::string& notifierUrl)
|
||||
{
|
||||
notifierUrl_ = notifierUrl;
|
||||
setBodyParameter("NotifierUrl", notifierUrl);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getNotifierType()const
|
||||
{
|
||||
return notifierType_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setNotifierType(const std::string& notifierType)
|
||||
{
|
||||
notifierType_ = notifierType;
|
||||
setBodyParameter("NotifierType", notifierType);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setBodyParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getAlgorithmVendor()const
|
||||
{
|
||||
return algorithmVendor_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setAlgorithmVendor(const std::string& algorithmVendor)
|
||||
{
|
||||
algorithmVendor_ = algorithmVendor;
|
||||
setBodyParameter("AlgorithmVendor", algorithmVendor);
|
||||
}
|
||||
|
||||
@@ -14,45 +14,52 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/ReplaceDedicatedHostResult.h>
|
||||
#include <alibabacloud/cdrs/model/UpdateMonitorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ReplaceDedicatedHostResult::ReplaceDedicatedHostResult() :
|
||||
UpdateMonitorResult::UpdateMonitorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ReplaceDedicatedHostResult::ReplaceDedicatedHostResult(const std::string &payload) :
|
||||
UpdateMonitorResult::UpdateMonitorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ReplaceDedicatedHostResult::~ReplaceDedicatedHostResult()
|
||||
UpdateMonitorResult::~UpdateMonitorResult()
|
||||
{}
|
||||
|
||||
void ReplaceDedicatedHostResult::parse(const std::string &payload)
|
||||
void UpdateMonitorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = std::stoi(value["TaskId"].asString());
|
||||
if(!value["DedicatedHostId"].isNull())
|
||||
dedicatedHostId_ = value["DedicatedHostId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ReplaceDedicatedHostResult::getDedicatedHostId()const
|
||||
std::string UpdateMonitorResult::getMessage()const
|
||||
{
|
||||
return dedicatedHostId_;
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ReplaceDedicatedHostResult::getTaskId()const
|
||||
std::string UpdateMonitorResult::getData()const
|
||||
{
|
||||
return taskId_;
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UpdateMonitorResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_GETMERGEREQUESTAPPROVESTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTAPPROVESTATUSRESULT_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 GetMergeRequestApproveStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string approveStatus;
|
||||
std::string message;
|
||||
};
|
||||
|
||||
|
||||
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::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTAPPROVESTATUSRESULT_H_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_GETMERGEREQUESTSETTINGREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETMERGEREQUESTSETTINGREQUEST_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 GetMergeRequestSettingRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMergeRequestSettingRequest();
|
||||
~GetMergeRequestSettingRequest();
|
||||
|
||||
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_GETMERGEREQUESTSETTINGREQUEST_H_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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;
|
||||
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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();
|
||||
|
||||
74
codeup/src/model/AcceptMergeRequestRequest.cc
Normal file
74
codeup/src/model/AcceptMergeRequestRequest.cc
Normal 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));
|
||||
}
|
||||
|
||||
197
codeup/src/model/AcceptMergeRequestResult.cc
Normal file
197
codeup/src/model/AcceptMergeRequestResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
74
codeup/src/model/CreateMergeRequestCommentRequest.cc
Normal file
74
codeup/src/model/CreateMergeRequestCommentRequest.cc
Normal 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));
|
||||
}
|
||||
|
||||
108
codeup/src/model/CreateMergeRequestCommentResult.cc
Normal file
108
codeup/src/model/CreateMergeRequestCommentResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
74
codeup/src/model/GetMergeRequestApproveStatusRequest.cc
Normal file
74
codeup/src/model/GetMergeRequestApproveStatusRequest.cc
Normal 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));
|
||||
}
|
||||
|
||||
75
codeup/src/model/GetMergeRequestApproveStatusResult.cc
Normal file
75
codeup/src/model/GetMergeRequestApproveStatusResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
74
codeup/src/model/GetMergeRequestDetailRequest.cc
Normal file
74
codeup/src/model/GetMergeRequestDetailRequest.cc
Normal 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));
|
||||
}
|
||||
|
||||
203
codeup/src/model/GetMergeRequestDetailResult.cc
Normal file
203
codeup/src/model/GetMergeRequestDetailResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
63
codeup/src/model/GetMergeRequestSettingRequest.cc
Normal file
63
codeup/src/model/GetMergeRequestSettingRequest.cc
Normal 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));
|
||||
}
|
||||
|
||||
76
codeup/src/model/GetMergeRequestSettingResult.cc
Normal file
76
codeup/src/model/GetMergeRequestSettingResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user