Update function.
This commit is contained in:
@@ -31,6 +31,8 @@ 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/ListAreaHotSpotMetricsRequest.h
|
||||
include/alibabacloud/cdrs/model/ListAreaHotSpotMetricsResult.h
|
||||
include/alibabacloud/cdrs/model/ListCityMapAoisRequest.h
|
||||
include/alibabacloud/cdrs/model/ListCityMapAoisResult.h
|
||||
include/alibabacloud/cdrs/model/ListCityMapCameraResultsRequest.h
|
||||
@@ -45,6 +47,10 @@ set(cdrs_public_header_model
|
||||
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
|
||||
@@ -57,6 +63,8 @@ set(cdrs_public_header_model
|
||||
include/alibabacloud/cdrs/model/ListDevicePersonResult.h
|
||||
include/alibabacloud/cdrs/model/ListDevicePersonStatisticsRequest.h
|
||||
include/alibabacloud/cdrs/model/ListDevicePersonStatisticsResult.h
|
||||
include/alibabacloud/cdrs/model/ListDeviceRelationRequest.h
|
||||
include/alibabacloud/cdrs/model/ListDeviceRelationResult.h
|
||||
include/alibabacloud/cdrs/model/ListMapRouteDetailsRequest.h
|
||||
include/alibabacloud/cdrs/model/ListMapRouteDetailsResult.h
|
||||
include/alibabacloud/cdrs/model/ListMetricsRequest.h
|
||||
@@ -79,6 +87,8 @@ set(cdrs_public_header_model
|
||||
include/alibabacloud/cdrs/model/ListStorageStatisticsResult.h
|
||||
include/alibabacloud/cdrs/model/ListStructureStatisticsRequest.h
|
||||
include/alibabacloud/cdrs/model/ListStructureStatisticsResult.h
|
||||
include/alibabacloud/cdrs/model/ListTagMetricsRequest.h
|
||||
include/alibabacloud/cdrs/model/ListTagMetricsResult.h
|
||||
include/alibabacloud/cdrs/model/ListVehicleDetailsRequest.h
|
||||
include/alibabacloud/cdrs/model/ListVehicleDetailsResult.h
|
||||
include/alibabacloud/cdrs/model/ListVehicleResultsRequest.h
|
||||
@@ -89,6 +99,10 @@ set(cdrs_public_header_model
|
||||
include/alibabacloud/cdrs/model/ListVehicleTopResult.h
|
||||
include/alibabacloud/cdrs/model/ListVehicleTrackRequest.h
|
||||
include/alibabacloud/cdrs/model/ListVehicleTrackResult.h
|
||||
include/alibabacloud/cdrs/model/PaginateDeviceRequest.h
|
||||
include/alibabacloud/cdrs/model/PaginateDeviceResult.h
|
||||
include/alibabacloud/cdrs/model/PaginateProjectRequest.h
|
||||
include/alibabacloud/cdrs/model/PaginateProjectResult.h
|
||||
include/alibabacloud/cdrs/model/RecognizeImageRequest.h
|
||||
include/alibabacloud/cdrs/model/RecognizeImageResult.h
|
||||
include/alibabacloud/cdrs/model/SearchObjectRequest.h
|
||||
@@ -114,6 +128,8 @@ set(cdrs_src
|
||||
src/model/GetCdrsMonitorListResult.cc
|
||||
src/model/GetCdrsMonitorResultRequest.cc
|
||||
src/model/GetCdrsMonitorResultResult.cc
|
||||
src/model/ListAreaHotSpotMetricsRequest.cc
|
||||
src/model/ListAreaHotSpotMetricsResult.cc
|
||||
src/model/ListCityMapAoisRequest.cc
|
||||
src/model/ListCityMapAoisResult.cc
|
||||
src/model/ListCityMapCameraResultsRequest.cc
|
||||
@@ -128,6 +144,10 @@ set(cdrs_src
|
||||
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
|
||||
@@ -140,6 +160,8 @@ set(cdrs_src
|
||||
src/model/ListDevicePersonResult.cc
|
||||
src/model/ListDevicePersonStatisticsRequest.cc
|
||||
src/model/ListDevicePersonStatisticsResult.cc
|
||||
src/model/ListDeviceRelationRequest.cc
|
||||
src/model/ListDeviceRelationResult.cc
|
||||
src/model/ListMapRouteDetailsRequest.cc
|
||||
src/model/ListMapRouteDetailsResult.cc
|
||||
src/model/ListMetricsRequest.cc
|
||||
@@ -162,6 +184,8 @@ set(cdrs_src
|
||||
src/model/ListStorageStatisticsResult.cc
|
||||
src/model/ListStructureStatisticsRequest.cc
|
||||
src/model/ListStructureStatisticsResult.cc
|
||||
src/model/ListTagMetricsRequest.cc
|
||||
src/model/ListTagMetricsResult.cc
|
||||
src/model/ListVehicleDetailsRequest.cc
|
||||
src/model/ListVehicleDetailsResult.cc
|
||||
src/model/ListVehicleResultsRequest.cc
|
||||
@@ -172,6 +196,10 @@ set(cdrs_src
|
||||
src/model/ListVehicleTopResult.cc
|
||||
src/model/ListVehicleTrackRequest.cc
|
||||
src/model/ListVehicleTrackResult.cc
|
||||
src/model/PaginateDeviceRequest.cc
|
||||
src/model/PaginateDeviceResult.cc
|
||||
src/model/PaginateProjectRequest.cc
|
||||
src/model/PaginateProjectResult.cc
|
||||
src/model/RecognizeImageRequest.cc
|
||||
src/model/RecognizeImageResult.cc
|
||||
src/model/SearchObjectRequest.cc
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
#include "model/GetCdrsMonitorListResult.h"
|
||||
#include "model/GetCdrsMonitorResultRequest.h"
|
||||
#include "model/GetCdrsMonitorResultResult.h"
|
||||
#include "model/ListAreaHotSpotMetricsRequest.h"
|
||||
#include "model/ListAreaHotSpotMetricsResult.h"
|
||||
#include "model/ListCityMapAoisRequest.h"
|
||||
#include "model/ListCityMapAoisResult.h"
|
||||
#include "model/ListCityMapCameraResultsRequest.h"
|
||||
@@ -46,6 +48,10 @@
|
||||
#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"
|
||||
@@ -58,6 +64,8 @@
|
||||
#include "model/ListDevicePersonResult.h"
|
||||
#include "model/ListDevicePersonStatisticsRequest.h"
|
||||
#include "model/ListDevicePersonStatisticsResult.h"
|
||||
#include "model/ListDeviceRelationRequest.h"
|
||||
#include "model/ListDeviceRelationResult.h"
|
||||
#include "model/ListMapRouteDetailsRequest.h"
|
||||
#include "model/ListMapRouteDetailsResult.h"
|
||||
#include "model/ListMetricsRequest.h"
|
||||
@@ -80,6 +88,8 @@
|
||||
#include "model/ListStorageStatisticsResult.h"
|
||||
#include "model/ListStructureStatisticsRequest.h"
|
||||
#include "model/ListStructureStatisticsResult.h"
|
||||
#include "model/ListTagMetricsRequest.h"
|
||||
#include "model/ListTagMetricsResult.h"
|
||||
#include "model/ListVehicleDetailsRequest.h"
|
||||
#include "model/ListVehicleDetailsResult.h"
|
||||
#include "model/ListVehicleResultsRequest.h"
|
||||
@@ -90,6 +100,10 @@
|
||||
#include "model/ListVehicleTopResult.h"
|
||||
#include "model/ListVehicleTrackRequest.h"
|
||||
#include "model/ListVehicleTrackResult.h"
|
||||
#include "model/PaginateDeviceRequest.h"
|
||||
#include "model/PaginateDeviceResult.h"
|
||||
#include "model/PaginateProjectRequest.h"
|
||||
#include "model/PaginateProjectResult.h"
|
||||
#include "model/RecognizeImageRequest.h"
|
||||
#include "model/RecognizeImageResult.h"
|
||||
#include "model/SearchObjectRequest.h"
|
||||
@@ -126,6 +140,9 @@ 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::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;
|
||||
typedef Outcome<Error, Model::ListCityMapAoisResult> ListCityMapAoisOutcome;
|
||||
typedef std::future<ListCityMapAoisOutcome> ListCityMapAoisOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListCityMapAoisRequest&, const ListCityMapAoisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCityMapAoisAsyncHandler;
|
||||
@@ -147,6 +164,12 @@ namespace AlibabaCloud
|
||||
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;
|
||||
@@ -165,6 +188,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListDevicePersonStatisticsResult> ListDevicePersonStatisticsOutcome;
|
||||
typedef std::future<ListDevicePersonStatisticsOutcome> ListDevicePersonStatisticsOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListDevicePersonStatisticsRequest&, const ListDevicePersonStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDevicePersonStatisticsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDeviceRelationResult> ListDeviceRelationOutcome;
|
||||
typedef std::future<ListDeviceRelationOutcome> ListDeviceRelationOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListDeviceRelationRequest&, const ListDeviceRelationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDeviceRelationAsyncHandler;
|
||||
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;
|
||||
@@ -198,6 +224,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListStructureStatisticsResult> ListStructureStatisticsOutcome;
|
||||
typedef std::future<ListStructureStatisticsOutcome> ListStructureStatisticsOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListStructureStatisticsRequest&, const ListStructureStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListStructureStatisticsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTagMetricsResult> ListTagMetricsOutcome;
|
||||
typedef std::future<ListTagMetricsOutcome> ListTagMetricsOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListTagMetricsRequest&, const ListTagMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagMetricsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListVehicleDetailsResult> ListVehicleDetailsOutcome;
|
||||
typedef std::future<ListVehicleDetailsOutcome> ListVehicleDetailsOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListVehicleDetailsRequest&, const ListVehicleDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListVehicleDetailsAsyncHandler;
|
||||
@@ -213,6 +242,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListVehicleTrackResult> ListVehicleTrackOutcome;
|
||||
typedef std::future<ListVehicleTrackOutcome> ListVehicleTrackOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListVehicleTrackRequest&, const ListVehicleTrackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListVehicleTrackAsyncHandler;
|
||||
typedef Outcome<Error, Model::PaginateDeviceResult> PaginateDeviceOutcome;
|
||||
typedef std::future<PaginateDeviceOutcome> PaginateDeviceOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::PaginateDeviceRequest&, const PaginateDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PaginateDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::PaginateProjectResult> PaginateProjectOutcome;
|
||||
typedef std::future<PaginateProjectOutcome> PaginateProjectOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::PaginateProjectRequest&, const PaginateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PaginateProjectAsyncHandler;
|
||||
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;
|
||||
@@ -251,6 +286,9 @@ 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;
|
||||
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;
|
||||
ListCityMapAoisOutcome listCityMapAois(const Model::ListCityMapAoisRequest &request)const;
|
||||
void listCityMapAoisAsync(const Model::ListCityMapAoisRequest& request, const ListCityMapAoisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListCityMapAoisOutcomeCallable listCityMapAoisCallable(const Model::ListCityMapAoisRequest& request) const;
|
||||
@@ -272,6 +310,12 @@ namespace AlibabaCloud
|
||||
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;
|
||||
@@ -290,6 +334,9 @@ namespace AlibabaCloud
|
||||
ListDevicePersonStatisticsOutcome listDevicePersonStatistics(const Model::ListDevicePersonStatisticsRequest &request)const;
|
||||
void listDevicePersonStatisticsAsync(const Model::ListDevicePersonStatisticsRequest& request, const ListDevicePersonStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDevicePersonStatisticsOutcomeCallable listDevicePersonStatisticsCallable(const Model::ListDevicePersonStatisticsRequest& request) const;
|
||||
ListDeviceRelationOutcome listDeviceRelation(const Model::ListDeviceRelationRequest &request)const;
|
||||
void listDeviceRelationAsync(const Model::ListDeviceRelationRequest& request, const ListDeviceRelationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDeviceRelationOutcomeCallable listDeviceRelationCallable(const Model::ListDeviceRelationRequest& request) const;
|
||||
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;
|
||||
@@ -323,6 +370,9 @@ namespace AlibabaCloud
|
||||
ListStructureStatisticsOutcome listStructureStatistics(const Model::ListStructureStatisticsRequest &request)const;
|
||||
void listStructureStatisticsAsync(const Model::ListStructureStatisticsRequest& request, const ListStructureStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListStructureStatisticsOutcomeCallable listStructureStatisticsCallable(const Model::ListStructureStatisticsRequest& request) const;
|
||||
ListTagMetricsOutcome listTagMetrics(const Model::ListTagMetricsRequest &request)const;
|
||||
void listTagMetricsAsync(const Model::ListTagMetricsRequest& request, const ListTagMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagMetricsOutcomeCallable listTagMetricsCallable(const Model::ListTagMetricsRequest& request) const;
|
||||
ListVehicleDetailsOutcome listVehicleDetails(const Model::ListVehicleDetailsRequest &request)const;
|
||||
void listVehicleDetailsAsync(const Model::ListVehicleDetailsRequest& request, const ListVehicleDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListVehicleDetailsOutcomeCallable listVehicleDetailsCallable(const Model::ListVehicleDetailsRequest& request) const;
|
||||
@@ -338,6 +388,12 @@ namespace AlibabaCloud
|
||||
ListVehicleTrackOutcome listVehicleTrack(const Model::ListVehicleTrackRequest &request)const;
|
||||
void listVehicleTrackAsync(const Model::ListVehicleTrackRequest& request, const ListVehicleTrackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListVehicleTrackOutcomeCallable listVehicleTrackCallable(const Model::ListVehicleTrackRequest& request) const;
|
||||
PaginateDeviceOutcome paginateDevice(const Model::PaginateDeviceRequest &request)const;
|
||||
void paginateDeviceAsync(const Model::PaginateDeviceRequest& request, const PaginateDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PaginateDeviceOutcomeCallable paginateDeviceCallable(const Model::PaginateDeviceRequest& request) const;
|
||||
PaginateProjectOutcome paginateProject(const Model::PaginateProjectRequest &request)const;
|
||||
void paginateProjectAsync(const Model::PaginateProjectRequest& request, const PaginateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PaginateProjectOutcomeCallable paginateProjectCallable(const Model::PaginateProjectRequest& request) const;
|
||||
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;
|
||||
|
||||
@@ -51,8 +51,6 @@ 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;
|
||||
@@ -67,7 +65,6 @@ namespace AlibabaCloud
|
||||
std::string notifierUrl_;
|
||||
std::string notifierType_;
|
||||
int batchIndicator_;
|
||||
std::string bizId_;
|
||||
int notifierTimeOut_;
|
||||
std::string algorithmVendor_;
|
||||
|
||||
|
||||
@@ -47,6 +47,8 @@ namespace AlibabaCloud
|
||||
void set_NameSpace(const std::string& _nameSpace);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getAggregateSceneCode()const;
|
||||
void setAggregateSceneCode(const std::string& aggregateSceneCode);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
@@ -55,6 +57,7 @@ namespace AlibabaCloud
|
||||
std::string appName_;
|
||||
std::string _nameSpace_;
|
||||
std::string name_;
|
||||
std::string aggregateSceneCode_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -36,9 +36,14 @@ namespace AlibabaCloud
|
||||
{
|
||||
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;
|
||||
@@ -46,6 +51,7 @@ namespace AlibabaCloud
|
||||
std::string monitorPicUrl;
|
||||
std::string shotTime;
|
||||
std::string picUrl;
|
||||
ExtendInfo extendInfo;
|
||||
};
|
||||
std::string maxId;
|
||||
std::vector<RecordsItem> records;
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_LISTAREAHOTSPOTMETRICSREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_LISTAREAHOTSPOTMETRICSREQUEST_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 ListAreaHotSpotMetricsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListAreaHotSpotMetricsRequest();
|
||||
~ListAreaHotSpotMetricsRequest();
|
||||
|
||||
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 getDeviceId()const;
|
||||
void setDeviceId(const std::string& deviceId);
|
||||
std::string getPageNumber()const;
|
||||
void setPageNumber(const std::string& pageNumber);
|
||||
std::string getPageSize()const;
|
||||
void setPageSize(const std::string& pageSize);
|
||||
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 deviceId_;
|
||||
std::string pageNumber_;
|
||||
std::string pageSize_;
|
||||
std::string personId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTAREAHOTSPOTMETRICSREQUEST_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_LISTAREAHOTSPOTMETRICSRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_LISTAREAHOTSPOTMETRICSRESULT_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 ListAreaHotSpotMetricsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
{
|
||||
std::string personId;
|
||||
std::string deviceId;
|
||||
std::string times;
|
||||
std::string coordinates;
|
||||
std::string intervalTime;
|
||||
};
|
||||
|
||||
|
||||
ListAreaHotSpotMetricsResult();
|
||||
explicit ListAreaHotSpotMetricsResult(const std::string &payload);
|
||||
~ListAreaHotSpotMetricsResult();
|
||||
std::string getTotalCount()const;
|
||||
std::string getMessage()const;
|
||||
std::string getPageSize()const;
|
||||
std::string getPageNumber()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string totalCount_;
|
||||
std::string message_;
|
||||
std::string pageSize_;
|
||||
std::string pageNumber_;
|
||||
std::vector<DataItem> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTAREAHOTSPOTMETRICSRESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSSTATISTICREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSSTATISTICREQUEST_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 ListCorpMetricsStatisticRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListCorpMetricsStatisticRequest();
|
||||
~ListCorpMetricsStatisticRequest();
|
||||
|
||||
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);
|
||||
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 schema_;
|
||||
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_LISTCORPMETRICSSTATISTICREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSSTATISTICRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSSTATISTICRESULT_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 ListCorpMetricsStatisticResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
{
|
||||
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;
|
||||
};
|
||||
|
||||
|
||||
ListCorpMetricsStatisticResult();
|
||||
explicit ListCorpMetricsStatisticResult(const std::string &payload);
|
||||
~ListCorpMetricsStatisticResult();
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
std::string getMessage()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_;
|
||||
int pageSize_;
|
||||
std::string message_;
|
||||
int pageNumber_;
|
||||
std::vector<DataItem> data_;
|
||||
std::string code_;
|
||||
std::string success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSSTATISTICRESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_
|
||||
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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 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;
|
||||
};
|
||||
|
||||
|
||||
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_
|
||||
@@ -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_CDRS_MODEL_LISTDEVICERELATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_LISTDEVICERELATIONREQUEST_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 ListDeviceRelationRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListDeviceRelationRequest();
|
||||
~ListDeviceRelationRequest();
|
||||
|
||||
std::string getDeviceId()const;
|
||||
void setDeviceId(const std::string& deviceId);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string get_NameSpace()const;
|
||||
void set_NameSpace(const std::string& _nameSpace);
|
||||
|
||||
private:
|
||||
std::string deviceId_;
|
||||
std::string appName_;
|
||||
std::string _nameSpace_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTDEVICERELATIONREQUEST_H_
|
||||
@@ -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_LISTDEVICERELATIONRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_LISTDEVICERELATIONRESULT_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 ListDeviceRelationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
{
|
||||
std::string corpId;
|
||||
};
|
||||
|
||||
|
||||
ListDeviceRelationResult();
|
||||
explicit ListDeviceRelationResult(const std::string &payload);
|
||||
~ListDeviceRelationResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<DataItem> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTDEVICERELATIONRESULT_H_
|
||||
@@ -34,8 +34,9 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct DataItem
|
||||
{
|
||||
std::string corpId;
|
||||
std::string tagMetric;
|
||||
std::string tagCode;
|
||||
std::string dateTime1;
|
||||
std::string tagValue;
|
||||
std::string dateTime;
|
||||
};
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getProfession()const;
|
||||
void setProfession(const std::string& profession);
|
||||
std::string getSchema()const;
|
||||
void setSchema(const std::string& schema);
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getGender()const;
|
||||
@@ -54,6 +56,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string profession_;
|
||||
std::string schema_;
|
||||
std::string corpId_;
|
||||
std::string gender_;
|
||||
std::string endTime_;
|
||||
|
||||
69
cdrs/include/alibabacloud/cdrs/model/ListTagMetricsRequest.h
Normal file
69
cdrs/include/alibabacloud/cdrs/model/ListTagMetricsRequest.h
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_LISTTAGMETRICSREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_LISTTAGMETRICSREQUEST_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 ListTagMetricsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListTagMetricsRequest();
|
||||
~ListTagMetricsRequest();
|
||||
|
||||
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 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 schema_;
|
||||
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_LISTTAGMETRICSREQUEST_H_
|
||||
69
cdrs/include/alibabacloud/cdrs/model/ListTagMetricsResult.h
Normal file
69
cdrs/include/alibabacloud/cdrs/model/ListTagMetricsResult.h
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_LISTTAGMETRICSRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_LISTTAGMETRICSRESULT_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 ListTagMetricsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
{
|
||||
std::string corpId;
|
||||
std::string tagMetric;
|
||||
std::string tagCode;
|
||||
std::string tagValue;
|
||||
std::string dateTime;
|
||||
};
|
||||
|
||||
|
||||
ListTagMetricsResult();
|
||||
explicit ListTagMetricsResult(const std::string &payload);
|
||||
~ListTagMetricsResult();
|
||||
std::string getTotalCount()const;
|
||||
std::string getMessage()const;
|
||||
std::string getPageSize()const;
|
||||
std::string getPageNumber()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string totalCount_;
|
||||
std::string message_;
|
||||
std::string pageSize_;
|
||||
std::string pageNumber_;
|
||||
std::vector<DataItem> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTTAGMETRICSRESULT_H_
|
||||
63
cdrs/include/alibabacloud/cdrs/model/PaginateDeviceRequest.h
Normal file
63
cdrs/include/alibabacloud/cdrs/model/PaginateDeviceRequest.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_PAGINATEDEVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_PAGINATEDEVICEREQUEST_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 PaginateDeviceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
PaginateDeviceRequest();
|
||||
~PaginateDeviceRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
long getPageNumber()const;
|
||||
void setPageNumber(long pageNumber);
|
||||
bool getCountTotalNum()const;
|
||||
void setCountTotalNum(bool countTotalNum);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string get_NameSpace()const;
|
||||
void set_NameSpace(const std::string& _nameSpace);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
long pageNumber_;
|
||||
bool countTotalNum_;
|
||||
std::string appName_;
|
||||
std::string _nameSpace_;
|
||||
long pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_PAGINATEDEVICEREQUEST_H_
|
||||
66
cdrs/include/alibabacloud/cdrs/model/PaginateDeviceResult.h
Normal file
66
cdrs/include/alibabacloud/cdrs/model/PaginateDeviceResult.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_PAGINATEDEVICERESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_PAGINATEDEVICERESULT_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 PaginateDeviceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct RecordsItem
|
||||
{
|
||||
std::string deviceId;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<RecordsItem> records;
|
||||
};
|
||||
|
||||
|
||||
PaginateDeviceResult();
|
||||
explicit PaginateDeviceResult(const std::string &payload);
|
||||
~PaginateDeviceResult();
|
||||
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_PAGINATEDEVICERESULT_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_PAGINATEPROJECTREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_PAGINATEPROJECTREQUEST_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 PaginateProjectRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
PaginateProjectRequest();
|
||||
~PaginateProjectRequest();
|
||||
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
long getPageNumber()const;
|
||||
void setPageNumber(long pageNumber);
|
||||
bool getCountTotalNum()const;
|
||||
void setCountTotalNum(bool countTotalNum);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string get_NameSpace()const;
|
||||
void set_NameSpace(const std::string& _nameSpace);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getNameLike()const;
|
||||
void setNameLike(const std::string& nameLike);
|
||||
|
||||
private:
|
||||
std::string type_;
|
||||
long pageNumber_;
|
||||
bool countTotalNum_;
|
||||
std::string appName_;
|
||||
std::string _nameSpace_;
|
||||
long pageSize_;
|
||||
std::string nameLike_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_PAGINATEPROJECTREQUEST_H_
|
||||
75
cdrs/include/alibabacloud/cdrs/model/PaginateProjectResult.h
Normal file
75
cdrs/include/alibabacloud/cdrs/model/PaginateProjectResult.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_PAGINATEPROJECTRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_PAGINATEPROJECTRESULT_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 PaginateProjectResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct RecordsItem
|
||||
{
|
||||
std::string type;
|
||||
std::string aggregateSceneCode;
|
||||
std::string corpId;
|
||||
std::string createdTime;
|
||||
std::string description;
|
||||
std::string modifiedTime;
|
||||
std::string userId;
|
||||
std::string icon;
|
||||
std::string name;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int totalPage;
|
||||
int pageNumber;
|
||||
std::vector<RecordsItem> records;
|
||||
};
|
||||
|
||||
|
||||
PaginateProjectResult();
|
||||
explicit PaginateProjectResult(const std::string &payload);
|
||||
~PaginateProjectResult();
|
||||
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_PAGINATEPROJECTRESULT_H_
|
||||
@@ -47,6 +47,8 @@ namespace AlibabaCloud
|
||||
void set_NameSpace(const std::string& _nameSpace);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getAggregateSceneCode()const;
|
||||
void setAggregateSceneCode(const std::string& aggregateSceneCode);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
@@ -55,6 +57,7 @@ namespace AlibabaCloud
|
||||
std::string appName_;
|
||||
std::string _nameSpace_;
|
||||
std::string name_;
|
||||
std::string aggregateSceneCode_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -231,6 +231,42 @@ CDRSClient::GetCdrsMonitorResultOutcomeCallable CDRSClient::getCdrsMonitorResult
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ListAreaHotSpotMetricsOutcome CDRSClient::listAreaHotSpotMetrics(const ListAreaHotSpotMetricsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListAreaHotSpotMetricsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListAreaHotSpotMetricsOutcome(ListAreaHotSpotMetricsResult(outcome.result()));
|
||||
else
|
||||
return ListAreaHotSpotMetricsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::listAreaHotSpotMetricsAsync(const ListAreaHotSpotMetricsRequest& request, const ListAreaHotSpotMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listAreaHotSpotMetrics(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::ListAreaHotSpotMetricsOutcomeCallable CDRSClient::listAreaHotSpotMetricsCallable(const ListAreaHotSpotMetricsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListAreaHotSpotMetricsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listAreaHotSpotMetrics(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ListCityMapAoisOutcome CDRSClient::listCityMapAois(const ListCityMapAoisRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -483,6 +519,78 @@ CDRSClient::ListCorpMetricsOutcomeCallable CDRSClient::listCorpMetricsCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ListCorpMetricsStatisticOutcome CDRSClient::listCorpMetricsStatistic(const ListCorpMetricsStatisticRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListCorpMetricsStatisticOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListCorpMetricsStatisticOutcome(ListCorpMetricsStatisticResult(outcome.result()));
|
||||
else
|
||||
return ListCorpMetricsStatisticOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::listCorpMetricsStatisticAsync(const ListCorpMetricsStatisticRequest& request, const ListCorpMetricsStatisticAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listCorpMetricsStatistic(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::ListCorpMetricsStatisticOutcomeCallable CDRSClient::listCorpMetricsStatisticCallable(const ListCorpMetricsStatisticRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListCorpMetricsStatisticOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listCorpMetricsStatistic(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
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();
|
||||
@@ -699,6 +807,42 @@ CDRSClient::ListDevicePersonStatisticsOutcomeCallable CDRSClient::listDevicePers
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ListDeviceRelationOutcome CDRSClient::listDeviceRelation(const ListDeviceRelationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListDeviceRelationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListDeviceRelationOutcome(ListDeviceRelationResult(outcome.result()));
|
||||
else
|
||||
return ListDeviceRelationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::listDeviceRelationAsync(const ListDeviceRelationRequest& request, const ListDeviceRelationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listDeviceRelation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::ListDeviceRelationOutcomeCallable CDRSClient::listDeviceRelationCallable(const ListDeviceRelationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListDeviceRelationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listDeviceRelation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ListMapRouteDetailsOutcome CDRSClient::listMapRouteDetails(const ListMapRouteDetailsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1095,6 +1239,42 @@ CDRSClient::ListStructureStatisticsOutcomeCallable CDRSClient::listStructureStat
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ListTagMetricsOutcome CDRSClient::listTagMetrics(const ListTagMetricsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTagMetricsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListTagMetricsOutcome(ListTagMetricsResult(outcome.result()));
|
||||
else
|
||||
return ListTagMetricsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::listTagMetricsAsync(const ListTagMetricsRequest& request, const ListTagMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listTagMetrics(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::ListTagMetricsOutcomeCallable CDRSClient::listTagMetricsCallable(const ListTagMetricsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListTagMetricsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listTagMetrics(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ListVehicleDetailsOutcome CDRSClient::listVehicleDetails(const ListVehicleDetailsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1275,6 +1455,78 @@ CDRSClient::ListVehicleTrackOutcomeCallable CDRSClient::listVehicleTrackCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::PaginateDeviceOutcome CDRSClient::paginateDevice(const PaginateDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PaginateDeviceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PaginateDeviceOutcome(PaginateDeviceResult(outcome.result()));
|
||||
else
|
||||
return PaginateDeviceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::paginateDeviceAsync(const PaginateDeviceRequest& request, const PaginateDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, paginateDevice(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::PaginateDeviceOutcomeCallable CDRSClient::paginateDeviceCallable(const PaginateDeviceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PaginateDeviceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->paginateDevice(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::PaginateProjectOutcome CDRSClient::paginateProject(const PaginateProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PaginateProjectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PaginateProjectOutcome(PaginateProjectResult(outcome.result()));
|
||||
else
|
||||
return PaginateProjectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::paginateProjectAsync(const PaginateProjectRequest& request, const PaginateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, paginateProject(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::PaginateProjectOutcomeCallable CDRSClient::paginateProjectCallable(const PaginateProjectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PaginateProjectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->paginateProject(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::RecognizeImageOutcome CDRSClient::recognizeImage(const RecognizeImageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -115,17 +115,6 @@ 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_;
|
||||
|
||||
@@ -93,3 +93,14 @@ void CreateProjectRequest::setName(const std::string& name)
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getAggregateSceneCode()const
|
||||
{
|
||||
return aggregateSceneCode_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setAggregateSceneCode(const std::string& aggregateSceneCode)
|
||||
{
|
||||
aggregateSceneCode_ = aggregateSceneCode;
|
||||
setBodyParameter("AggregateSceneCode", aggregateSceneCode);
|
||||
}
|
||||
|
||||
|
||||
@@ -66,6 +66,11 @@ void GetCdrsMonitorResultResult::parse(const std::string &payload)
|
||||
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())
|
||||
|
||||
117
cdrs/src/model/ListAreaHotSpotMetricsRequest.cc
Normal file
117
cdrs/src/model/ListAreaHotSpotMetricsRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/ListAreaHotSpotMetricsRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListAreaHotSpotMetricsRequest;
|
||||
|
||||
ListAreaHotSpotMetricsRequest::ListAreaHotSpotMetricsRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListAreaHotSpotMetrics")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListAreaHotSpotMetricsRequest::~ListAreaHotSpotMetricsRequest()
|
||||
{}
|
||||
|
||||
std::string ListAreaHotSpotMetricsRequest::getSchema()const
|
||||
{
|
||||
return schema_;
|
||||
}
|
||||
|
||||
void ListAreaHotSpotMetricsRequest::setSchema(const std::string& schema)
|
||||
{
|
||||
schema_ = schema;
|
||||
setBodyParameter("Schema", schema);
|
||||
}
|
||||
|
||||
std::string ListAreaHotSpotMetricsRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListAreaHotSpotMetricsRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListAreaHotSpotMetricsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListAreaHotSpotMetricsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListAreaHotSpotMetricsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListAreaHotSpotMetricsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ListAreaHotSpotMetricsRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void ListAreaHotSpotMetricsRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setBodyParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string ListAreaHotSpotMetricsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListAreaHotSpotMetricsRequest::setPageNumber(const std::string& pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", pageNumber);
|
||||
}
|
||||
|
||||
std::string ListAreaHotSpotMetricsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListAreaHotSpotMetricsRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string ListAreaHotSpotMetricsRequest::getPersonId()const
|
||||
{
|
||||
return personId_;
|
||||
}
|
||||
|
||||
void ListAreaHotSpotMetricsRequest::setPersonId(const std::string& personId)
|
||||
{
|
||||
personId_ = personId;
|
||||
setBodyParameter("PersonId", personId);
|
||||
}
|
||||
|
||||
100
cdrs/src/model/ListAreaHotSpotMetricsResult.cc
Normal file
100
cdrs/src/model/ListAreaHotSpotMetricsResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* 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/ListAreaHotSpotMetricsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListAreaHotSpotMetricsResult::ListAreaHotSpotMetricsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAreaHotSpotMetricsResult::ListAreaHotSpotMetricsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAreaHotSpotMetricsResult::~ListAreaHotSpotMetricsResult()
|
||||
{}
|
||||
|
||||
void ListAreaHotSpotMetricsResult::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["Times"].isNull())
|
||||
dataObject.times = valueDataDataItem["Times"].asString();
|
||||
if(!valueDataDataItem["Coordinates"].isNull())
|
||||
dataObject.coordinates = valueDataDataItem["Coordinates"].asString();
|
||||
if(!valueDataDataItem["DeviceId"].isNull())
|
||||
dataObject.deviceId = valueDataDataItem["DeviceId"].asString();
|
||||
if(!valueDataDataItem["PersonId"].isNull())
|
||||
dataObject.personId = valueDataDataItem["PersonId"].asString();
|
||||
if(!valueDataDataItem["IntervalTime"].isNull())
|
||||
dataObject.intervalTime = valueDataDataItem["IntervalTime"].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 ListAreaHotSpotMetricsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListAreaHotSpotMetricsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ListAreaHotSpotMetricsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string ListAreaHotSpotMetricsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListAreaHotSpotMetricsResult::DataItem> ListAreaHotSpotMetricsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListAreaHotSpotMetricsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
139
cdrs/src/model/ListCorpMetricsStatisticRequest.cc
Normal file
139
cdrs/src/model/ListCorpMetricsStatisticRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* 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/ListCorpMetricsStatisticRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListCorpMetricsStatisticRequest;
|
||||
|
||||
ListCorpMetricsStatisticRequest::ListCorpMetricsStatisticRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListCorpMetricsStatistic")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListCorpMetricsStatisticRequest::~ListCorpMetricsStatisticRequest()
|
||||
{}
|
||||
|
||||
std::string ListCorpMetricsStatisticRequest::getSchema()const
|
||||
{
|
||||
return schema_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsStatisticRequest::setSchema(const std::string& schema)
|
||||
{
|
||||
schema_ = schema;
|
||||
setBodyParameter("Schema", schema);
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsStatisticRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsStatisticRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsStatisticRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsStatisticRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsStatisticRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsStatisticRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long ListCorpMetricsStatisticRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsStatisticRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsStatisticRequest::getDeviceGroupList()const
|
||||
{
|
||||
return deviceGroupList_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsStatisticRequest::setDeviceGroupList(const std::string& deviceGroupList)
|
||||
{
|
||||
deviceGroupList_ = deviceGroupList;
|
||||
setBodyParameter("DeviceGroupList", deviceGroupList);
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsStatisticRequest::getTagCode()const
|
||||
{
|
||||
return tagCode_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsStatisticRequest::setTagCode(const std::string& tagCode)
|
||||
{
|
||||
tagCode_ = tagCode;
|
||||
setBodyParameter("TagCode", tagCode);
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsStatisticRequest::getUserGroupList()const
|
||||
{
|
||||
return userGroupList_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsStatisticRequest::setUserGroupList(const std::string& userGroupList)
|
||||
{
|
||||
userGroupList_ = userGroupList;
|
||||
setBodyParameter("UserGroupList", userGroupList);
|
||||
}
|
||||
|
||||
long ListCorpMetricsStatisticRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsStatisticRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsStatisticRequest::getDeviceIdList()const
|
||||
{
|
||||
return deviceIdList_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsStatisticRequest::setDeviceIdList(const std::string& deviceIdList)
|
||||
{
|
||||
deviceIdList_ = deviceIdList;
|
||||
setBodyParameter("DeviceIdList", deviceIdList);
|
||||
}
|
||||
|
||||
115
cdrs/src/model/ListCorpMetricsStatisticResult.cc
Normal file
115
cdrs/src/model/ListCorpMetricsStatisticResult.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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/ListCorpMetricsStatisticResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListCorpMetricsStatisticResult::ListCorpMetricsStatisticResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListCorpMetricsStatisticResult::ListCorpMetricsStatisticResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListCorpMetricsStatisticResult::~ListCorpMetricsStatisticResult()
|
||||
{}
|
||||
|
||||
void ListCorpMetricsStatisticResult::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 ListCorpMetricsStatisticResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListCorpMetricsStatisticResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsStatisticResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListCorpMetricsStatisticResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListCorpMetricsStatisticResult::DataItem> ListCorpMetricsStatisticResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsStatisticResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsStatisticResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
117
cdrs/src/model/ListCorpTrackDetailRequest.cc
Normal file
117
cdrs/src/model/ListCorpTrackDetailRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
|
||||
119
cdrs/src/model/ListCorpTrackDetailResult.cc
Normal file
119
cdrs/src/model/ListCorpTrackDetailResult.cc
Normal file
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* 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();
|
||||
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_;
|
||||
}
|
||||
|
||||
62
cdrs/src/model/ListDeviceRelationRequest.cc
Normal file
62
cdrs/src/model/ListDeviceRelationRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/ListDeviceRelationRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListDeviceRelationRequest;
|
||||
|
||||
ListDeviceRelationRequest::ListDeviceRelationRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListDeviceRelation")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDeviceRelationRequest::~ListDeviceRelationRequest()
|
||||
{}
|
||||
|
||||
std::string ListDeviceRelationRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void ListDeviceRelationRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setBodyParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string ListDeviceRelationRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void ListDeviceRelationRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string ListDeviceRelationRequest::get_NameSpace()const
|
||||
{
|
||||
return _nameSpace_;
|
||||
}
|
||||
|
||||
void ListDeviceRelationRequest::set_NameSpace(const std::string& _nameSpace)
|
||||
{
|
||||
_nameSpace_ = _nameSpace;
|
||||
setBodyParameter("_NameSpace", _nameSpace);
|
||||
}
|
||||
|
||||
71
cdrs/src/model/ListDeviceRelationResult.cc
Normal file
71
cdrs/src/model/ListDeviceRelationResult.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/ListDeviceRelationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListDeviceRelationResult::ListDeviceRelationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDeviceRelationResult::ListDeviceRelationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDeviceRelationResult::~ListDeviceRelationResult()
|
||||
{}
|
||||
|
||||
void ListDeviceRelationResult::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();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListDeviceRelationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ListDeviceRelationResult::DataItem> ListDeviceRelationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListDeviceRelationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -49,8 +49,10 @@ void ListMetricsResult::parse(const std::string &payload)
|
||||
dataObject.tagCode = valueDataDataItem["TagCode"].asString();
|
||||
if(!valueDataDataItem["TagValue"].isNull())
|
||||
dataObject.tagValue = valueDataDataItem["TagValue"].asString();
|
||||
if(!valueDataDataItem["DateTime"].isNull())
|
||||
dataObject.dateTime1 = valueDataDataItem["DateTime"].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())
|
||||
|
||||
@@ -38,6 +38,17 @@ void ListPersonResultRequest::setProfession(const std::string& profession)
|
||||
setBodyParameter("Profession", profession);
|
||||
}
|
||||
|
||||
std::string ListPersonResultRequest::getSchema()const
|
||||
{
|
||||
return schema_;
|
||||
}
|
||||
|
||||
void ListPersonResultRequest::setSchema(const std::string& schema)
|
||||
{
|
||||
schema_ = schema;
|
||||
setBodyParameter("Schema", schema);
|
||||
}
|
||||
|
||||
std::string ListPersonResultRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
|
||||
117
cdrs/src/model/ListTagMetricsRequest.cc
Normal file
117
cdrs/src/model/ListTagMetricsRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/ListTagMetricsRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::ListTagMetricsRequest;
|
||||
|
||||
ListTagMetricsRequest::ListTagMetricsRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "ListTagMetrics")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagMetricsRequest::~ListTagMetricsRequest()
|
||||
{}
|
||||
|
||||
std::string ListTagMetricsRequest::getSchema()const
|
||||
{
|
||||
return schema_;
|
||||
}
|
||||
|
||||
void ListTagMetricsRequest::setSchema(const std::string& schema)
|
||||
{
|
||||
schema_ = schema;
|
||||
setBodyParameter("Schema", schema);
|
||||
}
|
||||
|
||||
std::string ListTagMetricsRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListTagMetricsRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListTagMetricsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListTagMetricsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string ListTagMetricsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListTagMetricsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ListTagMetricsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListTagMetricsRequest::setPageNumber(const std::string& pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", pageNumber);
|
||||
}
|
||||
|
||||
std::string ListTagMetricsRequest::getTagCode()const
|
||||
{
|
||||
return tagCode_;
|
||||
}
|
||||
|
||||
void ListTagMetricsRequest::setTagCode(const std::string& tagCode)
|
||||
{
|
||||
tagCode_ = tagCode;
|
||||
setBodyParameter("TagCode", tagCode);
|
||||
}
|
||||
|
||||
std::string ListTagMetricsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListTagMetricsRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string ListTagMetricsRequest::getAggregateType()const
|
||||
{
|
||||
return aggregateType_;
|
||||
}
|
||||
|
||||
void ListTagMetricsRequest::setAggregateType(const std::string& aggregateType)
|
||||
{
|
||||
aggregateType_ = aggregateType;
|
||||
setBodyParameter("AggregateType", aggregateType);
|
||||
}
|
||||
|
||||
100
cdrs/src/model/ListTagMetricsResult.cc
Normal file
100
cdrs/src/model/ListTagMetricsResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* 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/ListTagMetricsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ListTagMetricsResult::ListTagMetricsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTagMetricsResult::ListTagMetricsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTagMetricsResult::~ListTagMetricsResult()
|
||||
{}
|
||||
|
||||
void ListTagMetricsResult::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 ListTagMetricsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListTagMetricsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ListTagMetricsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string ListTagMetricsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListTagMetricsResult::DataItem> ListTagMetricsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListTagMetricsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
95
cdrs/src/model/PaginateDeviceRequest.cc
Normal file
95
cdrs/src/model/PaginateDeviceRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/PaginateDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::PaginateDeviceRequest;
|
||||
|
||||
PaginateDeviceRequest::PaginateDeviceRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "PaginateDevice")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
PaginateDeviceRequest::~PaginateDeviceRequest()
|
||||
{}
|
||||
|
||||
std::string PaginateDeviceRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void PaginateDeviceRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
long PaginateDeviceRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void PaginateDeviceRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
bool PaginateDeviceRequest::getCountTotalNum()const
|
||||
{
|
||||
return countTotalNum_;
|
||||
}
|
||||
|
||||
void PaginateDeviceRequest::setCountTotalNum(bool countTotalNum)
|
||||
{
|
||||
countTotalNum_ = countTotalNum;
|
||||
setBodyParameter("CountTotalNum", countTotalNum ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string PaginateDeviceRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void PaginateDeviceRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string PaginateDeviceRequest::get_NameSpace()const
|
||||
{
|
||||
return _nameSpace_;
|
||||
}
|
||||
|
||||
void PaginateDeviceRequest::set_NameSpace(const std::string& _nameSpace)
|
||||
{
|
||||
_nameSpace_ = _nameSpace;
|
||||
setBodyParameter("_NameSpace", _nameSpace);
|
||||
}
|
||||
|
||||
long PaginateDeviceRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void PaginateDeviceRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
78
cdrs/src/model/PaginateDeviceResult.cc
Normal file
78
cdrs/src/model/PaginateDeviceResult.cc
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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/PaginateDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
PaginateDeviceResult::PaginateDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PaginateDeviceResult::PaginateDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PaginateDeviceResult::~PaginateDeviceResult()
|
||||
{}
|
||||
|
||||
void PaginateDeviceResult::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());
|
||||
auto allRecordsNode = dataNode["Records"]["RecordsItem"];
|
||||
for (auto dataNodeRecordsRecordsItem : allRecordsNode)
|
||||
{
|
||||
Data::RecordsItem recordsItemObject;
|
||||
if(!dataNodeRecordsRecordsItem["DeviceId"].isNull())
|
||||
recordsItemObject.deviceId = dataNodeRecordsRecordsItem["DeviceId"].asString();
|
||||
data_.records.push_back(recordsItemObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string PaginateDeviceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
PaginateDeviceResult::Data PaginateDeviceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string PaginateDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
106
cdrs/src/model/PaginateProjectRequest.cc
Normal file
106
cdrs/src/model/PaginateProjectRequest.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/PaginateProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::PaginateProjectRequest;
|
||||
|
||||
PaginateProjectRequest::PaginateProjectRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "PaginateProject")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
PaginateProjectRequest::~PaginateProjectRequest()
|
||||
{}
|
||||
|
||||
std::string PaginateProjectRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void PaginateProjectRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
long PaginateProjectRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void PaginateProjectRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
bool PaginateProjectRequest::getCountTotalNum()const
|
||||
{
|
||||
return countTotalNum_;
|
||||
}
|
||||
|
||||
void PaginateProjectRequest::setCountTotalNum(bool countTotalNum)
|
||||
{
|
||||
countTotalNum_ = countTotalNum;
|
||||
setBodyParameter("CountTotalNum", countTotalNum ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string PaginateProjectRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void PaginateProjectRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string PaginateProjectRequest::get_NameSpace()const
|
||||
{
|
||||
return _nameSpace_;
|
||||
}
|
||||
|
||||
void PaginateProjectRequest::set_NameSpace(const std::string& _nameSpace)
|
||||
{
|
||||
_nameSpace_ = _nameSpace;
|
||||
setBodyParameter("_NameSpace", _nameSpace);
|
||||
}
|
||||
|
||||
long PaginateProjectRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void PaginateProjectRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string PaginateProjectRequest::getNameLike()const
|
||||
{
|
||||
return nameLike_;
|
||||
}
|
||||
|
||||
void PaginateProjectRequest::setNameLike(const std::string& nameLike)
|
||||
{
|
||||
nameLike_ = nameLike;
|
||||
setBodyParameter("NameLike", nameLike);
|
||||
}
|
||||
|
||||
96
cdrs/src/model/PaginateProjectResult.cc
Normal file
96
cdrs/src/model/PaginateProjectResult.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/PaginateProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
PaginateProjectResult::PaginateProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PaginateProjectResult::PaginateProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PaginateProjectResult::~PaginateProjectResult()
|
||||
{}
|
||||
|
||||
void PaginateProjectResult::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"]["RecordsItem"];
|
||||
for (auto dataNodeRecordsRecordsItem : allRecordsNode)
|
||||
{
|
||||
Data::RecordsItem recordsItemObject;
|
||||
if(!dataNodeRecordsRecordsItem["UserId"].isNull())
|
||||
recordsItemObject.userId = dataNodeRecordsRecordsItem["UserId"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["Type"].isNull())
|
||||
recordsItemObject.type = dataNodeRecordsRecordsItem["Type"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["CorpId"].isNull())
|
||||
recordsItemObject.corpId = dataNodeRecordsRecordsItem["CorpId"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["Name"].isNull())
|
||||
recordsItemObject.name = dataNodeRecordsRecordsItem["Name"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["CreatedTime"].isNull())
|
||||
recordsItemObject.createdTime = dataNodeRecordsRecordsItem["CreatedTime"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["ModifiedTime"].isNull())
|
||||
recordsItemObject.modifiedTime = dataNodeRecordsRecordsItem["ModifiedTime"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["Icon"].isNull())
|
||||
recordsItemObject.icon = dataNodeRecordsRecordsItem["Icon"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["Description"].isNull())
|
||||
recordsItemObject.description = dataNodeRecordsRecordsItem["Description"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["AggregateSceneCode"].isNull())
|
||||
recordsItemObject.aggregateSceneCode = dataNodeRecordsRecordsItem["AggregateSceneCode"].asString();
|
||||
data_.records.push_back(recordsItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string PaginateProjectResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
PaginateProjectResult::Data PaginateProjectResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string PaginateProjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -93,3 +93,14 @@ void UpdateProjectRequest::setName(const std::string& name)
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string UpdateProjectRequest::getAggregateSceneCode()const
|
||||
{
|
||||
return aggregateSceneCode_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::setAggregateSceneCode(const std::string& aggregateSceneCode)
|
||||
{
|
||||
aggregateSceneCode_ = aggregateSceneCode;
|
||||
setBodyParameter("AggregateSceneCode", aggregateSceneCode);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user