From 90f78851fa5223608f469dacc779876d957b2795 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 11 Dec 2019 20:22:01 +0800 Subject: [PATCH] Supported Sync predict for Image. --- CHANGELOG | 5 + VERSION | 2 +- ivision/CMakeLists.txt | 8 +- .../alibabacloud/ivision/IvisionClient.h | 112 +++---- .../ivision/model/CreateFaceGroupRequest.h | 18 +- .../model/CreateStreamPredictRequest.h | 78 ++--- .../ivision/model/DeleteFaceGroupRequest.h | 18 +- .../model/DeleteStreamPredictRequest.h | 18 +- .../ivision/model/DescribeFaceGroupsRequest.h | 30 +- .../DescribeStreamPredictResultRequest.h | 60 ++-- .../model/DescribeStreamPredictsRequest.h | 36 +-- .../ivision/model/ImagePredictRequest.h | 24 +- .../ivision/model/RegisterFaceRequest.h | 30 +- .../ivision/model/SearchFaceRequest.h | 42 +-- .../ivision/model/StartStreamPredictRequest.h | 18 +- .../ivision/model/StopStreamPredictRequest.h | 18 +- .../ivision/model/UnregisterFaceRequest.h | 24 +- .../ivision/model/VideoPredictRequest.h | 66 ++++ .../ivision/model/VideoPredictResult.h | 51 +++ ivision/src/IvisionClient.cc | 60 +++- ivision/src/model/CreateFaceGroupRequest.cc | 70 ++--- .../src/model/CreateStreamPredictRequest.cc | 290 +++++++++--------- ivision/src/model/DeleteFaceGroupRequest.cc | 70 ++--- .../src/model/DeleteStreamPredictRequest.cc | 70 ++--- .../src/model/DescribeFaceGroupsRequest.cc | 114 +++---- .../DescribeStreamPredictResultRequest.cc | 224 +++++++------- .../model/DescribeStreamPredictsRequest.cc | 136 ++++---- ivision/src/model/ImagePredictRequest.cc | 92 +++--- ivision/src/model/RegisterFaceRequest.cc | 114 +++---- ivision/src/model/SearchFaceRequest.cc | 158 +++++----- .../src/model/StartStreamPredictRequest.cc | 70 ++--- ivision/src/model/StopStreamPredictRequest.cc | 70 ++--- ivision/src/model/UnregisterFaceRequest.cc | 92 +++--- ivision/src/model/VideoPredictRequest.cc | 106 +++++++ ivision/src/model/VideoPredictResult.cc | 51 +++ 35 files changed, 1386 insertions(+), 1059 deletions(-) create mode 100644 ivision/include/alibabacloud/ivision/model/VideoPredictRequest.h create mode 100644 ivision/include/alibabacloud/ivision/model/VideoPredictResult.h create mode 100644 ivision/src/model/VideoPredictRequest.cc create mode 100644 ivision/src/model/VideoPredictResult.cc diff --git a/CHANGELOG b/CHANGELOG index 65b957f4e..13f1f8fb2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +2019-12-11 Version 1.36.210 +- Supported Sync predict for Image. +- Supported Set Frame Frequency for Stream Predict. +- Fixed Errore Code For APIs. + 2019-12-11 Version 1.36.209 - Add tag API. - Add group process monitoring API. diff --git a/VERSION b/VERSION index 5e5fa5264..6b26cdc31 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.209 \ No newline at end of file +1.36.210 \ No newline at end of file diff --git a/ivision/CMakeLists.txt b/ivision/CMakeLists.txt index 7e8d43b00..c1bbc86db 100644 --- a/ivision/CMakeLists.txt +++ b/ivision/CMakeLists.txt @@ -46,7 +46,9 @@ set(ivision_public_header_model include/alibabacloud/ivision/model/StopStreamPredictRequest.h include/alibabacloud/ivision/model/StopStreamPredictResult.h include/alibabacloud/ivision/model/UnregisterFaceRequest.h - include/alibabacloud/ivision/model/UnregisterFaceResult.h ) + include/alibabacloud/ivision/model/UnregisterFaceResult.h + include/alibabacloud/ivision/model/VideoPredictRequest.h + include/alibabacloud/ivision/model/VideoPredictResult.h ) set(ivision_src src/IvisionClient.cc @@ -75,7 +77,9 @@ set(ivision_src src/model/StopStreamPredictRequest.cc src/model/StopStreamPredictResult.cc src/model/UnregisterFaceRequest.cc - src/model/UnregisterFaceResult.cc ) + src/model/UnregisterFaceResult.cc + src/model/VideoPredictRequest.cc + src/model/VideoPredictResult.cc ) add_library(ivision ${LIB_TYPE} ${ivision_public_header} diff --git a/ivision/include/alibabacloud/ivision/IvisionClient.h b/ivision/include/alibabacloud/ivision/IvisionClient.h index e34e65c93..5f496dada 100644 --- a/ivision/include/alibabacloud/ivision/IvisionClient.h +++ b/ivision/include/alibabacloud/ivision/IvisionClient.h @@ -22,32 +22,34 @@ #include #include #include "IvisionExport.h" -#include "model/CreateFaceGroupRequest.h" -#include "model/CreateFaceGroupResult.h" -#include "model/CreateStreamPredictRequest.h" -#include "model/CreateStreamPredictResult.h" -#include "model/DeleteFaceGroupRequest.h" -#include "model/DeleteFaceGroupResult.h" -#include "model/DeleteStreamPredictRequest.h" -#include "model/DeleteStreamPredictResult.h" -#include "model/DescribeFaceGroupsRequest.h" -#include "model/DescribeFaceGroupsResult.h" -#include "model/DescribeStreamPredictResultRequest.h" -#include "model/DescribeStreamPredictResultResult.h" -#include "model/DescribeStreamPredictsRequest.h" -#include "model/DescribeStreamPredictsResult.h" -#include "model/ImagePredictRequest.h" -#include "model/ImagePredictResult.h" -#include "model/RegisterFaceRequest.h" -#include "model/RegisterFaceResult.h" -#include "model/SearchFaceRequest.h" -#include "model/SearchFaceResult.h" -#include "model/StartStreamPredictRequest.h" -#include "model/StartStreamPredictResult.h" -#include "model/StopStreamPredictRequest.h" -#include "model/StopStreamPredictResult.h" -#include "model/UnregisterFaceRequest.h" -#include "model/UnregisterFaceResult.h" +#include "model/CreateFaceGroupRequest.h" +#include "model/CreateFaceGroupResult.h" +#include "model/CreateStreamPredictRequest.h" +#include "model/CreateStreamPredictResult.h" +#include "model/DeleteFaceGroupRequest.h" +#include "model/DeleteFaceGroupResult.h" +#include "model/DeleteStreamPredictRequest.h" +#include "model/DeleteStreamPredictResult.h" +#include "model/DescribeFaceGroupsRequest.h" +#include "model/DescribeFaceGroupsResult.h" +#include "model/DescribeStreamPredictResultRequest.h" +#include "model/DescribeStreamPredictResultResult.h" +#include "model/DescribeStreamPredictsRequest.h" +#include "model/DescribeStreamPredictsResult.h" +#include "model/ImagePredictRequest.h" +#include "model/ImagePredictResult.h" +#include "model/RegisterFaceRequest.h" +#include "model/RegisterFaceResult.h" +#include "model/SearchFaceRequest.h" +#include "model/SearchFaceResult.h" +#include "model/StartStreamPredictRequest.h" +#include "model/StartStreamPredictResult.h" +#include "model/StopStreamPredictRequest.h" +#include "model/StopStreamPredictResult.h" +#include "model/UnregisterFaceRequest.h" +#include "model/UnregisterFaceResult.h" +#include "model/VideoPredictRequest.h" +#include "model/VideoPredictResult.h" namespace AlibabaCloud @@ -59,43 +61,46 @@ namespace AlibabaCloud public: typedef Outcome CreateFaceGroupOutcome; typedef std::future CreateFaceGroupOutcomeCallable; - typedef std::function&)> CreateFaceGroupAsyncHandler; + typedef std::function&)> CreateFaceGroupAsyncHandler; typedef Outcome CreateStreamPredictOutcome; typedef std::future CreateStreamPredictOutcomeCallable; - typedef std::function&)> CreateStreamPredictAsyncHandler; + typedef std::function&)> CreateStreamPredictAsyncHandler; typedef Outcome DeleteFaceGroupOutcome; typedef std::future DeleteFaceGroupOutcomeCallable; - typedef std::function&)> DeleteFaceGroupAsyncHandler; + typedef std::function&)> DeleteFaceGroupAsyncHandler; typedef Outcome DeleteStreamPredictOutcome; typedef std::future DeleteStreamPredictOutcomeCallable; - typedef std::function&)> DeleteStreamPredictAsyncHandler; + typedef std::function&)> DeleteStreamPredictAsyncHandler; typedef Outcome DescribeFaceGroupsOutcome; typedef std::future DescribeFaceGroupsOutcomeCallable; - typedef std::function&)> DescribeFaceGroupsAsyncHandler; + typedef std::function&)> DescribeFaceGroupsAsyncHandler; typedef Outcome DescribeStreamPredictResultOutcome; typedef std::future DescribeStreamPredictResultOutcomeCallable; - typedef std::function&)> DescribeStreamPredictResultAsyncHandler; + typedef std::function&)> DescribeStreamPredictResultAsyncHandler; typedef Outcome DescribeStreamPredictsOutcome; typedef std::future DescribeStreamPredictsOutcomeCallable; - typedef std::function&)> DescribeStreamPredictsAsyncHandler; + typedef std::function&)> DescribeStreamPredictsAsyncHandler; typedef Outcome ImagePredictOutcome; typedef std::future ImagePredictOutcomeCallable; - typedef std::function&)> ImagePredictAsyncHandler; + typedef std::function&)> ImagePredictAsyncHandler; typedef Outcome RegisterFaceOutcome; typedef std::future RegisterFaceOutcomeCallable; - typedef std::function&)> RegisterFaceAsyncHandler; + typedef std::function&)> RegisterFaceAsyncHandler; typedef Outcome SearchFaceOutcome; typedef std::future SearchFaceOutcomeCallable; - typedef std::function&)> SearchFaceAsyncHandler; + typedef std::function&)> SearchFaceAsyncHandler; typedef Outcome StartStreamPredictOutcome; typedef std::future StartStreamPredictOutcomeCallable; - typedef std::function&)> StartStreamPredictAsyncHandler; + typedef std::function&)> StartStreamPredictAsyncHandler; typedef Outcome StopStreamPredictOutcome; typedef std::future StopStreamPredictOutcomeCallable; - typedef std::function&)> StopStreamPredictAsyncHandler; + typedef std::function&)> StopStreamPredictAsyncHandler; typedef Outcome UnregisterFaceOutcome; typedef std::future UnregisterFaceOutcomeCallable; - typedef std::function&)> UnregisterFaceAsyncHandler; + typedef std::function&)> UnregisterFaceAsyncHandler; + typedef Outcome VideoPredictOutcome; + typedef std::future VideoPredictOutcomeCallable; + typedef std::function&)> VideoPredictAsyncHandler; IvisionClient(const Credentials &credentials, const ClientConfiguration &configuration); IvisionClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -103,43 +108,46 @@ namespace AlibabaCloud ~IvisionClient(); CreateFaceGroupOutcome createFaceGroup(const Model::CreateFaceGroupRequest &request)const; void createFaceGroupAsync(const Model::CreateFaceGroupRequest& request, const CreateFaceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateFaceGroupOutcomeCallable createFaceGroupCallable(const Model::CreateFaceGroupRequest& request) const; + CreateFaceGroupOutcomeCallable createFaceGroupCallable(const Model::CreateFaceGroupRequest& request) const; CreateStreamPredictOutcome createStreamPredict(const Model::CreateStreamPredictRequest &request)const; void createStreamPredictAsync(const Model::CreateStreamPredictRequest& request, const CreateStreamPredictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateStreamPredictOutcomeCallable createStreamPredictCallable(const Model::CreateStreamPredictRequest& request) const; + CreateStreamPredictOutcomeCallable createStreamPredictCallable(const Model::CreateStreamPredictRequest& request) const; DeleteFaceGroupOutcome deleteFaceGroup(const Model::DeleteFaceGroupRequest &request)const; void deleteFaceGroupAsync(const Model::DeleteFaceGroupRequest& request, const DeleteFaceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteFaceGroupOutcomeCallable deleteFaceGroupCallable(const Model::DeleteFaceGroupRequest& request) const; + DeleteFaceGroupOutcomeCallable deleteFaceGroupCallable(const Model::DeleteFaceGroupRequest& request) const; DeleteStreamPredictOutcome deleteStreamPredict(const Model::DeleteStreamPredictRequest &request)const; void deleteStreamPredictAsync(const Model::DeleteStreamPredictRequest& request, const DeleteStreamPredictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteStreamPredictOutcomeCallable deleteStreamPredictCallable(const Model::DeleteStreamPredictRequest& request) const; + DeleteStreamPredictOutcomeCallable deleteStreamPredictCallable(const Model::DeleteStreamPredictRequest& request) const; DescribeFaceGroupsOutcome describeFaceGroups(const Model::DescribeFaceGroupsRequest &request)const; void describeFaceGroupsAsync(const Model::DescribeFaceGroupsRequest& request, const DescribeFaceGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeFaceGroupsOutcomeCallable describeFaceGroupsCallable(const Model::DescribeFaceGroupsRequest& request) const; + DescribeFaceGroupsOutcomeCallable describeFaceGroupsCallable(const Model::DescribeFaceGroupsRequest& request) const; DescribeStreamPredictResultOutcome describeStreamPredictResult(const Model::DescribeStreamPredictResultRequest &request)const; void describeStreamPredictResultAsync(const Model::DescribeStreamPredictResultRequest& request, const DescribeStreamPredictResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeStreamPredictResultOutcomeCallable describeStreamPredictResultCallable(const Model::DescribeStreamPredictResultRequest& request) const; + DescribeStreamPredictResultOutcomeCallable describeStreamPredictResultCallable(const Model::DescribeStreamPredictResultRequest& request) const; DescribeStreamPredictsOutcome describeStreamPredicts(const Model::DescribeStreamPredictsRequest &request)const; void describeStreamPredictsAsync(const Model::DescribeStreamPredictsRequest& request, const DescribeStreamPredictsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeStreamPredictsOutcomeCallable describeStreamPredictsCallable(const Model::DescribeStreamPredictsRequest& request) const; + DescribeStreamPredictsOutcomeCallable describeStreamPredictsCallable(const Model::DescribeStreamPredictsRequest& request) const; ImagePredictOutcome imagePredict(const Model::ImagePredictRequest &request)const; void imagePredictAsync(const Model::ImagePredictRequest& request, const ImagePredictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ImagePredictOutcomeCallable imagePredictCallable(const Model::ImagePredictRequest& request) const; + ImagePredictOutcomeCallable imagePredictCallable(const Model::ImagePredictRequest& request) const; RegisterFaceOutcome registerFace(const Model::RegisterFaceRequest &request)const; void registerFaceAsync(const Model::RegisterFaceRequest& request, const RegisterFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RegisterFaceOutcomeCallable registerFaceCallable(const Model::RegisterFaceRequest& request) const; + RegisterFaceOutcomeCallable registerFaceCallable(const Model::RegisterFaceRequest& request) const; SearchFaceOutcome searchFace(const Model::SearchFaceRequest &request)const; void searchFaceAsync(const Model::SearchFaceRequest& request, const SearchFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SearchFaceOutcomeCallable searchFaceCallable(const Model::SearchFaceRequest& request) const; + SearchFaceOutcomeCallable searchFaceCallable(const Model::SearchFaceRequest& request) const; StartStreamPredictOutcome startStreamPredict(const Model::StartStreamPredictRequest &request)const; void startStreamPredictAsync(const Model::StartStreamPredictRequest& request, const StartStreamPredictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StartStreamPredictOutcomeCallable startStreamPredictCallable(const Model::StartStreamPredictRequest& request) const; + StartStreamPredictOutcomeCallable startStreamPredictCallable(const Model::StartStreamPredictRequest& request) const; StopStreamPredictOutcome stopStreamPredict(const Model::StopStreamPredictRequest &request)const; void stopStreamPredictAsync(const Model::StopStreamPredictRequest& request, const StopStreamPredictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StopStreamPredictOutcomeCallable stopStreamPredictCallable(const Model::StopStreamPredictRequest& request) const; + StopStreamPredictOutcomeCallable stopStreamPredictCallable(const Model::StopStreamPredictRequest& request) const; UnregisterFaceOutcome unregisterFace(const Model::UnregisterFaceRequest &request)const; void unregisterFaceAsync(const Model::UnregisterFaceRequest& request, const UnregisterFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UnregisterFaceOutcomeCallable unregisterFaceCallable(const Model::UnregisterFaceRequest& request) const; + UnregisterFaceOutcomeCallable unregisterFaceCallable(const Model::UnregisterFaceRequest& request) const; + VideoPredictOutcome videoPredict(const Model::VideoPredictRequest &request)const; + void videoPredictAsync(const Model::VideoPredictRequest& request, const VideoPredictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + VideoPredictOutcomeCallable videoPredictCallable(const Model::VideoPredictRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/ivision/include/alibabacloud/ivision/model/CreateFaceGroupRequest.h b/ivision/include/alibabacloud/ivision/model/CreateFaceGroupRequest.h index 4809ec46b..f8371fe3d 100644 --- a/ivision/include/alibabacloud/ivision/model/CreateFaceGroupRequest.h +++ b/ivision/include/alibabacloud/ivision/model/CreateFaceGroupRequest.h @@ -35,17 +35,17 @@ namespace AlibabaCloud CreateFaceGroupRequest(); ~CreateFaceGroupRequest(); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getName()const; + void setName(const std::string& name); private: - std::string showLog_; - long ownerId_; - std::string name_; + std::string showLog_; + long ownerId_; + std::string name_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/CreateStreamPredictRequest.h b/ivision/include/alibabacloud/ivision/model/CreateStreamPredictRequest.h index ad192630b..ec1188ca3 100644 --- a/ivision/include/alibabacloud/ivision/model/CreateStreamPredictRequest.h +++ b/ivision/include/alibabacloud/ivision/model/CreateStreamPredictRequest.h @@ -35,47 +35,47 @@ namespace AlibabaCloud CreateStreamPredictRequest(); ~CreateStreamPredictRequest(); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getAutoStart()const; - void setAutoStart(const std::string& autoStart); - std::string getNotify()const; - void setNotify(const std::string& notify); - std::string getOutput()const; - void setOutput(const std::string& output); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getStreamType()const; - void setStreamType(const std::string& streamType); - std::string getFaceGroupId()const; - void setFaceGroupId(const std::string& faceGroupId); - std::string getStreamId()const; - void setStreamId(const std::string& streamId); - std::string getDetectIntervals()const; - void setDetectIntervals(const std::string& detectIntervals); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getProbabilityThresholds()const; - void setProbabilityThresholds(const std::string& probabilityThresholds); - std::string getModelIds()const; - void setModelIds(const std::string& modelIds); - std::string getModelUserData()const; - void setModelUserData(const std::string& modelUserData); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getAutoStart()const; + void setAutoStart(const std::string& autoStart); + std::string getNotify()const; + void setNotify(const std::string& notify); + std::string getOutput()const; + void setOutput(const std::string& output); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getStreamType()const; + void setStreamType(const std::string& streamType); + std::string getFaceGroupId()const; + void setFaceGroupId(const std::string& faceGroupId); + std::string getStreamId()const; + void setStreamId(const std::string& streamId); + std::string getDetectIntervals()const; + void setDetectIntervals(const std::string& detectIntervals); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getProbabilityThresholds()const; + void setProbabilityThresholds(const std::string& probabilityThresholds); + std::string getModelIds()const; + void setModelIds(const std::string& modelIds); + std::string getModelUserData()const; + void setModelUserData(const std::string& modelUserData); private: - std::string clientToken_; - std::string autoStart_; - std::string notify_; - std::string output_; - std::string showLog_; - std::string streamType_; - std::string faceGroupId_; - std::string streamId_; - std::string detectIntervals_; - long ownerId_; - std::string probabilityThresholds_; - std::string modelIds_; - std::string modelUserData_; + std::string clientToken_; + std::string autoStart_; + std::string notify_; + std::string output_; + std::string showLog_; + std::string streamType_; + std::string faceGroupId_; + std::string streamId_; + std::string detectIntervals_; + long ownerId_; + std::string probabilityThresholds_; + std::string modelIds_; + std::string modelUserData_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/DeleteFaceGroupRequest.h b/ivision/include/alibabacloud/ivision/model/DeleteFaceGroupRequest.h index 256b1c997..f78ee5e30 100644 --- a/ivision/include/alibabacloud/ivision/model/DeleteFaceGroupRequest.h +++ b/ivision/include/alibabacloud/ivision/model/DeleteFaceGroupRequest.h @@ -35,17 +35,17 @@ namespace AlibabaCloud DeleteFaceGroupRequest(); ~DeleteFaceGroupRequest(); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - long getOwnerId()const; - void setOwnerId(long ownerId); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + long getOwnerId()const; + void setOwnerId(long ownerId); private: - std::string showLog_; - std::string groupId_; - long ownerId_; + std::string showLog_; + std::string groupId_; + long ownerId_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/DeleteStreamPredictRequest.h b/ivision/include/alibabacloud/ivision/model/DeleteStreamPredictRequest.h index f3f84e5a9..38fe581ae 100644 --- a/ivision/include/alibabacloud/ivision/model/DeleteStreamPredictRequest.h +++ b/ivision/include/alibabacloud/ivision/model/DeleteStreamPredictRequest.h @@ -35,17 +35,17 @@ namespace AlibabaCloud DeleteStreamPredictRequest(); ~DeleteStreamPredictRequest(); - std::string getPredictId()const; - void setPredictId(const std::string& predictId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); + std::string getPredictId()const; + void setPredictId(const std::string& predictId); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); private: - std::string predictId_; - std::string showLog_; - long ownerId_; + std::string predictId_; + std::string showLog_; + long ownerId_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/DescribeFaceGroupsRequest.h b/ivision/include/alibabacloud/ivision/model/DescribeFaceGroupsRequest.h index 8a9a861be..75ccdd0ac 100644 --- a/ivision/include/alibabacloud/ivision/model/DescribeFaceGroupsRequest.h +++ b/ivision/include/alibabacloud/ivision/model/DescribeFaceGroupsRequest.h @@ -35,23 +35,23 @@ namespace AlibabaCloud DescribeFaceGroupsRequest(); ~DescribeFaceGroupsRequest(); - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getCurrentPage()const; - void setCurrentPage(long currentPage); - long getOwnerId()const; - void setOwnerId(long ownerId); + std::string getNextPageToken()const; + void setNextPageToken(const std::string& nextPageToken); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getCurrentPage()const; + void setCurrentPage(long currentPage); + long getOwnerId()const; + void setOwnerId(long ownerId); private: - std::string nextPageToken_; - long pageSize_; - std::string showLog_; - long currentPage_; - long ownerId_; + std::string nextPageToken_; + long pageSize_; + std::string showLog_; + long currentPage_; + long ownerId_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultRequest.h b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultRequest.h index e1d2727aa..01c5650d4 100644 --- a/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultRequest.h +++ b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictResultRequest.h @@ -35,38 +35,38 @@ namespace AlibabaCloud DescribeStreamPredictResultRequest(); ~DescribeStreamPredictResultRequest(); - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getPredictId()const; - void setPredictId(const std::string& predictId); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getProbabilityThreshold()const; - void setProbabilityThreshold(const std::string& probabilityThreshold); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getModelId()const; - void setModelId(const std::string& modelId); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getCurrentPage()const; - void setCurrentPage(long currentPage); - long getOwnerId()const; - void setOwnerId(long ownerId); + std::string getNextPageToken()const; + void setNextPageToken(const std::string& nextPageToken); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getPredictId()const; + void setPredictId(const std::string& predictId); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getProbabilityThreshold()const; + void setProbabilityThreshold(const std::string& probabilityThreshold); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getModelId()const; + void setModelId(const std::string& modelId); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + long getCurrentPage()const; + void setCurrentPage(long currentPage); + long getOwnerId()const; + void setOwnerId(long ownerId); private: - std::string nextPageToken_; - std::string startTime_; - std::string predictId_; - long pageSize_; - std::string probabilityThreshold_; - std::string showLog_; - std::string modelId_; - std::string endTime_; - long currentPage_; - long ownerId_; + std::string nextPageToken_; + std::string startTime_; + std::string predictId_; + long pageSize_; + std::string probabilityThreshold_; + std::string showLog_; + std::string modelId_; + std::string endTime_; + long currentPage_; + long ownerId_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h index bb86b3d3c..1f421cdb3 100644 --- a/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h +++ b/ivision/include/alibabacloud/ivision/model/DescribeStreamPredictsRequest.h @@ -35,26 +35,26 @@ namespace AlibabaCloud DescribeStreamPredictsRequest(); ~DescribeStreamPredictsRequest(); - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - std::string getPredictIds()const; - void setPredictIds(const std::string& predictIds); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getCurrentPage()const; - void setCurrentPage(long currentPage); - long getOwnerId()const; - void setOwnerId(long ownerId); + std::string getNextPageToken()const; + void setNextPageToken(const std::string& nextPageToken); + std::string getPredictIds()const; + void setPredictIds(const std::string& predictIds); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getCurrentPage()const; + void setCurrentPage(long currentPage); + long getOwnerId()const; + void setOwnerId(long ownerId); private: - std::string nextPageToken_; - std::string predictIds_; - long pageSize_; - std::string showLog_; - long currentPage_; - long ownerId_; + std::string nextPageToken_; + std::string predictIds_; + long pageSize_; + std::string showLog_; + long currentPage_; + long ownerId_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/ImagePredictRequest.h b/ivision/include/alibabacloud/ivision/model/ImagePredictRequest.h index c815525ae..06263564a 100644 --- a/ivision/include/alibabacloud/ivision/model/ImagePredictRequest.h +++ b/ivision/include/alibabacloud/ivision/model/ImagePredictRequest.h @@ -35,20 +35,20 @@ namespace AlibabaCloud ImagePredictRequest(); ~ImagePredictRequest(); - std::string getDataUrl()const; - void setDataUrl(const std::string& dataUrl); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getModelId()const; - void setModelId(const std::string& modelId); - long getOwnerId()const; - void setOwnerId(long ownerId); + std::string getDataUrl()const; + void setDataUrl(const std::string& dataUrl); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getModelId()const; + void setModelId(const std::string& modelId); + long getOwnerId()const; + void setOwnerId(long ownerId); private: - std::string dataUrl_; - std::string showLog_; - std::string modelId_; - long ownerId_; + std::string dataUrl_; + std::string showLog_; + std::string modelId_; + long ownerId_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/RegisterFaceRequest.h b/ivision/include/alibabacloud/ivision/model/RegisterFaceRequest.h index 02777ef39..c17b783c3 100644 --- a/ivision/include/alibabacloud/ivision/model/RegisterFaceRequest.h +++ b/ivision/include/alibabacloud/ivision/model/RegisterFaceRequest.h @@ -35,23 +35,23 @@ namespace AlibabaCloud RegisterFaceRequest(); ~RegisterFaceRequest(); - std::string getContent()const; - void setContent(const std::string& content); - std::string getDataType()const; - void setDataType(const std::string& dataType); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - long getOwnerId()const; - void setOwnerId(long ownerId); + std::string getContent()const; + void setContent(const std::string& content); + std::string getDataType()const; + void setDataType(const std::string& dataType); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + long getOwnerId()const; + void setOwnerId(long ownerId); private: - std::string content_; - std::string dataType_; - std::string showLog_; - std::string groupId_; - long ownerId_; + std::string content_; + std::string dataType_; + std::string showLog_; + std::string groupId_; + long ownerId_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/SearchFaceRequest.h b/ivision/include/alibabacloud/ivision/model/SearchFaceRequest.h index d5b24b7a1..9d43d8810 100644 --- a/ivision/include/alibabacloud/ivision/model/SearchFaceRequest.h +++ b/ivision/include/alibabacloud/ivision/model/SearchFaceRequest.h @@ -35,29 +35,29 @@ namespace AlibabaCloud SearchFaceRequest(); ~SearchFaceRequest(); - std::string getContent()const; - void setContent(const std::string& content); - std::string getDataType()const; - void setDataType(const std::string& dataType); - float getProbabilityThreshold()const; - void setProbabilityThreshold(float probabilityThreshold); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - int getCount()const; - void setCount(int count); - long getOwnerId()const; - void setOwnerId(long ownerId); + std::string getContent()const; + void setContent(const std::string& content); + std::string getDataType()const; + void setDataType(const std::string& dataType); + float getProbabilityThreshold()const; + void setProbabilityThreshold(float probabilityThreshold); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + int getCount()const; + void setCount(int count); + long getOwnerId()const; + void setOwnerId(long ownerId); private: - std::string content_; - std::string dataType_; - float probabilityThreshold_; - std::string showLog_; - std::string groupId_; - int count_; - long ownerId_; + std::string content_; + std::string dataType_; + float probabilityThreshold_; + std::string showLog_; + std::string groupId_; + int count_; + long ownerId_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/StartStreamPredictRequest.h b/ivision/include/alibabacloud/ivision/model/StartStreamPredictRequest.h index a458f733b..a168ffd59 100644 --- a/ivision/include/alibabacloud/ivision/model/StartStreamPredictRequest.h +++ b/ivision/include/alibabacloud/ivision/model/StartStreamPredictRequest.h @@ -35,17 +35,17 @@ namespace AlibabaCloud StartStreamPredictRequest(); ~StartStreamPredictRequest(); - std::string getPredictId()const; - void setPredictId(const std::string& predictId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); + std::string getPredictId()const; + void setPredictId(const std::string& predictId); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); private: - std::string predictId_; - std::string showLog_; - long ownerId_; + std::string predictId_; + std::string showLog_; + long ownerId_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/StopStreamPredictRequest.h b/ivision/include/alibabacloud/ivision/model/StopStreamPredictRequest.h index 2b64fcd82..f97ce918e 100644 --- a/ivision/include/alibabacloud/ivision/model/StopStreamPredictRequest.h +++ b/ivision/include/alibabacloud/ivision/model/StopStreamPredictRequest.h @@ -35,17 +35,17 @@ namespace AlibabaCloud StopStreamPredictRequest(); ~StopStreamPredictRequest(); - std::string getPredictId()const; - void setPredictId(const std::string& predictId); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - long getOwnerId()const; - void setOwnerId(long ownerId); + std::string getPredictId()const; + void setPredictId(const std::string& predictId); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + long getOwnerId()const; + void setOwnerId(long ownerId); private: - std::string predictId_; - std::string showLog_; - long ownerId_; + std::string predictId_; + std::string showLog_; + long ownerId_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/UnregisterFaceRequest.h b/ivision/include/alibabacloud/ivision/model/UnregisterFaceRequest.h index 06dfcc70a..0f050c442 100644 --- a/ivision/include/alibabacloud/ivision/model/UnregisterFaceRequest.h +++ b/ivision/include/alibabacloud/ivision/model/UnregisterFaceRequest.h @@ -35,20 +35,20 @@ namespace AlibabaCloud UnregisterFaceRequest(); ~UnregisterFaceRequest(); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getFaceToken()const; - void setFaceToken(const std::string& faceToken); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getFaceToken()const; + void setFaceToken(const std::string& faceToken); private: - std::string showLog_; - std::string groupId_; - long ownerId_; - std::string faceToken_; + std::string showLog_; + std::string groupId_; + long ownerId_; + std::string faceToken_; }; } diff --git a/ivision/include/alibabacloud/ivision/model/VideoPredictRequest.h b/ivision/include/alibabacloud/ivision/model/VideoPredictRequest.h new file mode 100644 index 000000000..4adca375e --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/VideoPredictRequest.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_IVISION_MODEL_VIDEOPREDICTREQUEST_H_ +#define ALIBABACLOUD_IVISION_MODEL_VIDEOPREDICTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT VideoPredictRequest : public RpcServiceRequest + { + + public: + VideoPredictRequest(); + ~VideoPredictRequest(); + + std::string getDataUrl()const; + void setDataUrl(const std::string& dataUrl); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getNotify()const; + void setNotify(const std::string& notify); + std::string getOutput()const; + void setOutput(const std::string& output); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + std::string getModels()const; + void setModels(const std::string& models); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string dataUrl_; + std::string clientToken_; + std::string notify_; + std::string output_; + std::string showLog_; + std::string models_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_VIDEOPREDICTREQUEST_H_ \ No newline at end of file diff --git a/ivision/include/alibabacloud/ivision/model/VideoPredictResult.h b/ivision/include/alibabacloud/ivision/model/VideoPredictResult.h new file mode 100644 index 000000000..c42925ae4 --- /dev/null +++ b/ivision/include/alibabacloud/ivision/model/VideoPredictResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IVISION_MODEL_VIDEOPREDICTRESULT_H_ +#define ALIBABACLOUD_IVISION_MODEL_VIDEOPREDICTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ivision + { + namespace Model + { + class ALIBABACLOUD_IVISION_EXPORT VideoPredictResult : public ServiceResult + { + public: + + + VideoPredictResult(); + explicit VideoPredictResult(const std::string &payload); + ~VideoPredictResult(); + std::string getPredictId()const; + + protected: + void parse(const std::string &payload); + private: + std::string predictId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IVISION_MODEL_VIDEOPREDICTRESULT_H_ \ No newline at end of file diff --git a/ivision/src/IvisionClient.cc b/ivision/src/IvisionClient.cc index 2084c8bb8..5df0e5af7 100644 --- a/ivision/src/IvisionClient.cc +++ b/ivision/src/IvisionClient.cc @@ -86,7 +86,7 @@ IvisionClient::CreateFaceGroupOutcomeCallable IvisionClient::createFaceGroupCall asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + IvisionClient::CreateStreamPredictOutcome IvisionClient::createStreamPredict(const CreateStreamPredictRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -122,7 +122,7 @@ IvisionClient::CreateStreamPredictOutcomeCallable IvisionClient::createStreamPre asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + IvisionClient::DeleteFaceGroupOutcome IvisionClient::deleteFaceGroup(const DeleteFaceGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -158,7 +158,7 @@ IvisionClient::DeleteFaceGroupOutcomeCallable IvisionClient::deleteFaceGroupCall asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + IvisionClient::DeleteStreamPredictOutcome IvisionClient::deleteStreamPredict(const DeleteStreamPredictRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -194,7 +194,7 @@ IvisionClient::DeleteStreamPredictOutcomeCallable IvisionClient::deleteStreamPre asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + IvisionClient::DescribeFaceGroupsOutcome IvisionClient::describeFaceGroups(const DescribeFaceGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -230,7 +230,7 @@ IvisionClient::DescribeFaceGroupsOutcomeCallable IvisionClient::describeFaceGrou asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + IvisionClient::DescribeStreamPredictResultOutcome IvisionClient::describeStreamPredictResult(const DescribeStreamPredictResultRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -266,7 +266,7 @@ IvisionClient::DescribeStreamPredictResultOutcomeCallable IvisionClient::describ asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + IvisionClient::DescribeStreamPredictsOutcome IvisionClient::describeStreamPredicts(const DescribeStreamPredictsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -302,7 +302,7 @@ IvisionClient::DescribeStreamPredictsOutcomeCallable IvisionClient::describeStre asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + IvisionClient::ImagePredictOutcome IvisionClient::imagePredict(const ImagePredictRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -338,7 +338,7 @@ IvisionClient::ImagePredictOutcomeCallable IvisionClient::imagePredictCallable(c asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + IvisionClient::RegisterFaceOutcome IvisionClient::registerFace(const RegisterFaceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -374,7 +374,7 @@ IvisionClient::RegisterFaceOutcomeCallable IvisionClient::registerFaceCallable(c asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + IvisionClient::SearchFaceOutcome IvisionClient::searchFace(const SearchFaceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -410,7 +410,7 @@ IvisionClient::SearchFaceOutcomeCallable IvisionClient::searchFaceCallable(const asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + IvisionClient::StartStreamPredictOutcome IvisionClient::startStreamPredict(const StartStreamPredictRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -446,7 +446,7 @@ IvisionClient::StartStreamPredictOutcomeCallable IvisionClient::startStreamPredi asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + IvisionClient::StopStreamPredictOutcome IvisionClient::stopStreamPredict(const StopStreamPredictRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -482,7 +482,7 @@ IvisionClient::StopStreamPredictOutcomeCallable IvisionClient::stopStreamPredict asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } - + IvisionClient::UnregisterFaceOutcome IvisionClient::unregisterFace(const UnregisterFaceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -518,4 +518,40 @@ IvisionClient::UnregisterFaceOutcomeCallable IvisionClient::unregisterFaceCallab asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } + +IvisionClient::VideoPredictOutcome IvisionClient::videoPredict(const VideoPredictRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return VideoPredictOutcome(endpointOutcome.error()); + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return VideoPredictOutcome(VideoPredictResult(outcome.result())); + else + return VideoPredictOutcome(outcome.error()); +} + +void IvisionClient::videoPredictAsync(const VideoPredictRequest& request, const VideoPredictAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, videoPredict(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +IvisionClient::VideoPredictOutcomeCallable IvisionClient::videoPredictCallable(const VideoPredictRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->videoPredict(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/ivision/src/model/CreateFaceGroupRequest.cc b/ivision/src/model/CreateFaceGroupRequest.cc index e151291d6..5c667e456 100644 --- a/ivision/src/model/CreateFaceGroupRequest.cc +++ b/ivision/src/model/CreateFaceGroupRequest.cc @@ -20,43 +20,43 @@ using AlibabaCloud::Ivision::Model::CreateFaceGroupRequest; CreateFaceGroupRequest::CreateFaceGroupRequest() : RpcServiceRequest("ivision", "2019-03-08", "CreateFaceGroup") -{ - setMethod(HttpRequest::Method::Get); +{ + setMethod(HttpRequest::Method::Get); } CreateFaceGroupRequest::~CreateFaceGroupRequest() {} -std::string CreateFaceGroupRequest::getShowLog()const -{ - return showLog_; -} - -void CreateFaceGroupRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long CreateFaceGroupRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateFaceGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreateFaceGroupRequest::getName()const -{ - return name_; -} - -void CreateFaceGroupRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - +std::string CreateFaceGroupRequest::getShowLog()const +{ + return showLog_; +} + +void CreateFaceGroupRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +long CreateFaceGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateFaceGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateFaceGroupRequest::getName()const +{ + return name_; +} + +void CreateFaceGroupRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + diff --git a/ivision/src/model/CreateStreamPredictRequest.cc b/ivision/src/model/CreateStreamPredictRequest.cc index 619438f5b..30a8e34d2 100644 --- a/ivision/src/model/CreateStreamPredictRequest.cc +++ b/ivision/src/model/CreateStreamPredictRequest.cc @@ -20,153 +20,153 @@ using AlibabaCloud::Ivision::Model::CreateStreamPredictRequest; CreateStreamPredictRequest::CreateStreamPredictRequest() : RpcServiceRequest("ivision", "2019-03-08", "CreateStreamPredict") -{ - setMethod(HttpRequest::Method::Post); +{ + setMethod(HttpRequest::Method::Post); } CreateStreamPredictRequest::~CreateStreamPredictRequest() {} -std::string CreateStreamPredictRequest::getClientToken()const -{ - return clientToken_; -} - -void CreateStreamPredictRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setCoreParameter("ClientToken", clientToken); -} - -std::string CreateStreamPredictRequest::getAutoStart()const -{ - return autoStart_; -} - -void CreateStreamPredictRequest::setAutoStart(const std::string& autoStart) -{ - autoStart_ = autoStart; - setCoreParameter("AutoStart", autoStart); -} - -std::string CreateStreamPredictRequest::getNotify()const -{ - return notify_; -} - -void CreateStreamPredictRequest::setNotify(const std::string& notify) -{ - notify_ = notify; - setCoreParameter("Notify", notify); -} - -std::string CreateStreamPredictRequest::getOutput()const -{ - return output_; -} - -void CreateStreamPredictRequest::setOutput(const std::string& output) -{ - output_ = output; - setCoreParameter("Output", output); -} - -std::string CreateStreamPredictRequest::getShowLog()const -{ - return showLog_; -} - -void CreateStreamPredictRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string CreateStreamPredictRequest::getStreamType()const -{ - return streamType_; -} - -void CreateStreamPredictRequest::setStreamType(const std::string& streamType) -{ - streamType_ = streamType; - setCoreParameter("StreamType", streamType); -} - -std::string CreateStreamPredictRequest::getFaceGroupId()const -{ - return faceGroupId_; -} - -void CreateStreamPredictRequest::setFaceGroupId(const std::string& faceGroupId) -{ - faceGroupId_ = faceGroupId; - setCoreParameter("FaceGroupId", faceGroupId); -} - -std::string CreateStreamPredictRequest::getStreamId()const -{ - return streamId_; -} - -void CreateStreamPredictRequest::setStreamId(const std::string& streamId) -{ - streamId_ = streamId; - setCoreParameter("StreamId", streamId); -} - -std::string CreateStreamPredictRequest::getDetectIntervals()const -{ - return detectIntervals_; -} - -void CreateStreamPredictRequest::setDetectIntervals(const std::string& detectIntervals) -{ - detectIntervals_ = detectIntervals; - setCoreParameter("DetectIntervals", detectIntervals); -} - -long CreateStreamPredictRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateStreamPredictRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreateStreamPredictRequest::getProbabilityThresholds()const -{ - return probabilityThresholds_; -} - -void CreateStreamPredictRequest::setProbabilityThresholds(const std::string& probabilityThresholds) -{ - probabilityThresholds_ = probabilityThresholds; - setCoreParameter("ProbabilityThresholds", probabilityThresholds); -} - -std::string CreateStreamPredictRequest::getModelIds()const -{ - return modelIds_; -} - -void CreateStreamPredictRequest::setModelIds(const std::string& modelIds) -{ - modelIds_ = modelIds; - setCoreParameter("ModelIds", modelIds); -} - -std::string CreateStreamPredictRequest::getModelUserData()const -{ - return modelUserData_; -} - -void CreateStreamPredictRequest::setModelUserData(const std::string& modelUserData) -{ - modelUserData_ = modelUserData; - setCoreParameter("ModelUserData", modelUserData); -} - +std::string CreateStreamPredictRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateStreamPredictRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string CreateStreamPredictRequest::getAutoStart()const +{ + return autoStart_; +} + +void CreateStreamPredictRequest::setAutoStart(const std::string& autoStart) +{ + autoStart_ = autoStart; + setCoreParameter("AutoStart", autoStart); +} + +std::string CreateStreamPredictRequest::getNotify()const +{ + return notify_; +} + +void CreateStreamPredictRequest::setNotify(const std::string& notify) +{ + notify_ = notify; + setCoreParameter("Notify", notify); +} + +std::string CreateStreamPredictRequest::getOutput()const +{ + return output_; +} + +void CreateStreamPredictRequest::setOutput(const std::string& output) +{ + output_ = output; + setCoreParameter("Output", output); +} + +std::string CreateStreamPredictRequest::getShowLog()const +{ + return showLog_; +} + +void CreateStreamPredictRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +std::string CreateStreamPredictRequest::getStreamType()const +{ + return streamType_; +} + +void CreateStreamPredictRequest::setStreamType(const std::string& streamType) +{ + streamType_ = streamType; + setCoreParameter("StreamType", streamType); +} + +std::string CreateStreamPredictRequest::getFaceGroupId()const +{ + return faceGroupId_; +} + +void CreateStreamPredictRequest::setFaceGroupId(const std::string& faceGroupId) +{ + faceGroupId_ = faceGroupId; + setCoreParameter("FaceGroupId", faceGroupId); +} + +std::string CreateStreamPredictRequest::getStreamId()const +{ + return streamId_; +} + +void CreateStreamPredictRequest::setStreamId(const std::string& streamId) +{ + streamId_ = streamId; + setCoreParameter("StreamId", streamId); +} + +std::string CreateStreamPredictRequest::getDetectIntervals()const +{ + return detectIntervals_; +} + +void CreateStreamPredictRequest::setDetectIntervals(const std::string& detectIntervals) +{ + detectIntervals_ = detectIntervals; + setCoreParameter("DetectIntervals", detectIntervals); +} + +long CreateStreamPredictRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateStreamPredictRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateStreamPredictRequest::getProbabilityThresholds()const +{ + return probabilityThresholds_; +} + +void CreateStreamPredictRequest::setProbabilityThresholds(const std::string& probabilityThresholds) +{ + probabilityThresholds_ = probabilityThresholds; + setCoreParameter("ProbabilityThresholds", probabilityThresholds); +} + +std::string CreateStreamPredictRequest::getModelIds()const +{ + return modelIds_; +} + +void CreateStreamPredictRequest::setModelIds(const std::string& modelIds) +{ + modelIds_ = modelIds; + setCoreParameter("ModelIds", modelIds); +} + +std::string CreateStreamPredictRequest::getModelUserData()const +{ + return modelUserData_; +} + +void CreateStreamPredictRequest::setModelUserData(const std::string& modelUserData) +{ + modelUserData_ = modelUserData; + setCoreParameter("ModelUserData", modelUserData); +} + diff --git a/ivision/src/model/DeleteFaceGroupRequest.cc b/ivision/src/model/DeleteFaceGroupRequest.cc index 6bdc7cb19..ff204db8e 100644 --- a/ivision/src/model/DeleteFaceGroupRequest.cc +++ b/ivision/src/model/DeleteFaceGroupRequest.cc @@ -20,43 +20,43 @@ using AlibabaCloud::Ivision::Model::DeleteFaceGroupRequest; DeleteFaceGroupRequest::DeleteFaceGroupRequest() : RpcServiceRequest("ivision", "2019-03-08", "DeleteFaceGroup") -{ - setMethod(HttpRequest::Method::Get); +{ + setMethod(HttpRequest::Method::Get); } DeleteFaceGroupRequest::~DeleteFaceGroupRequest() {} -std::string DeleteFaceGroupRequest::getShowLog()const -{ - return showLog_; -} - -void DeleteFaceGroupRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string DeleteFaceGroupRequest::getGroupId()const -{ - return groupId_; -} - -void DeleteFaceGroupRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", groupId); -} - -long DeleteFaceGroupRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteFaceGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - +std::string DeleteFaceGroupRequest::getShowLog()const +{ + return showLog_; +} + +void DeleteFaceGroupRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +std::string DeleteFaceGroupRequest::getGroupId()const +{ + return groupId_; +} + +void DeleteFaceGroupRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +long DeleteFaceGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteFaceGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ivision/src/model/DeleteStreamPredictRequest.cc b/ivision/src/model/DeleteStreamPredictRequest.cc index bdbe2a2e2..c1e7b1b27 100644 --- a/ivision/src/model/DeleteStreamPredictRequest.cc +++ b/ivision/src/model/DeleteStreamPredictRequest.cc @@ -20,43 +20,43 @@ using AlibabaCloud::Ivision::Model::DeleteStreamPredictRequest; DeleteStreamPredictRequest::DeleteStreamPredictRequest() : RpcServiceRequest("ivision", "2019-03-08", "DeleteStreamPredict") -{ - setMethod(HttpRequest::Method::Post); +{ + setMethod(HttpRequest::Method::Post); } DeleteStreamPredictRequest::~DeleteStreamPredictRequest() {} -std::string DeleteStreamPredictRequest::getPredictId()const -{ - return predictId_; -} - -void DeleteStreamPredictRequest::setPredictId(const std::string& predictId) -{ - predictId_ = predictId; - setCoreParameter("PredictId", predictId); -} - -std::string DeleteStreamPredictRequest::getShowLog()const -{ - return showLog_; -} - -void DeleteStreamPredictRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long DeleteStreamPredictRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteStreamPredictRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - +std::string DeleteStreamPredictRequest::getPredictId()const +{ + return predictId_; +} + +void DeleteStreamPredictRequest::setPredictId(const std::string& predictId) +{ + predictId_ = predictId; + setCoreParameter("PredictId", predictId); +} + +std::string DeleteStreamPredictRequest::getShowLog()const +{ + return showLog_; +} + +void DeleteStreamPredictRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +long DeleteStreamPredictRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteStreamPredictRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ivision/src/model/DescribeFaceGroupsRequest.cc b/ivision/src/model/DescribeFaceGroupsRequest.cc index dc8f9c9e4..fe6ad23ad 100644 --- a/ivision/src/model/DescribeFaceGroupsRequest.cc +++ b/ivision/src/model/DescribeFaceGroupsRequest.cc @@ -20,65 +20,65 @@ using AlibabaCloud::Ivision::Model::DescribeFaceGroupsRequest; DescribeFaceGroupsRequest::DescribeFaceGroupsRequest() : RpcServiceRequest("ivision", "2019-03-08", "DescribeFaceGroups") -{ - setMethod(HttpRequest::Method::Get); +{ + setMethod(HttpRequest::Method::Get); } DescribeFaceGroupsRequest::~DescribeFaceGroupsRequest() {} -std::string DescribeFaceGroupsRequest::getNextPageToken()const -{ - return nextPageToken_; -} - -void DescribeFaceGroupsRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setCoreParameter("NextPageToken", nextPageToken); -} - -long DescribeFaceGroupsRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeFaceGroupsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeFaceGroupsRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeFaceGroupsRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long DescribeFaceGroupsRequest::getCurrentPage()const -{ - return currentPage_; -} - -void DescribeFaceGroupsRequest::setCurrentPage(long currentPage) -{ - currentPage_ = currentPage; - setCoreParameter("CurrentPage", std::to_string(currentPage)); -} - -long DescribeFaceGroupsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeFaceGroupsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - +std::string DescribeFaceGroupsRequest::getNextPageToken()const +{ + return nextPageToken_; +} + +void DescribeFaceGroupsRequest::setNextPageToken(const std::string& nextPageToken) +{ + nextPageToken_ = nextPageToken; + setCoreParameter("NextPageToken", nextPageToken); +} + +long DescribeFaceGroupsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeFaceGroupsRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeFaceGroupsRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeFaceGroupsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +long DescribeFaceGroupsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeFaceGroupsRequest::setCurrentPage(long currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +long DescribeFaceGroupsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeFaceGroupsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ivision/src/model/DescribeStreamPredictResultRequest.cc b/ivision/src/model/DescribeStreamPredictResultRequest.cc index 5f15ef5d1..47159b79d 100644 --- a/ivision/src/model/DescribeStreamPredictResultRequest.cc +++ b/ivision/src/model/DescribeStreamPredictResultRequest.cc @@ -20,120 +20,120 @@ using AlibabaCloud::Ivision::Model::DescribeStreamPredictResultRequest; DescribeStreamPredictResultRequest::DescribeStreamPredictResultRequest() : RpcServiceRequest("ivision", "2019-03-08", "DescribeStreamPredictResult") -{ - setMethod(HttpRequest::Method::Post); +{ + setMethod(HttpRequest::Method::Post); } DescribeStreamPredictResultRequest::~DescribeStreamPredictResultRequest() {} -std::string DescribeStreamPredictResultRequest::getNextPageToken()const -{ - return nextPageToken_; -} - -void DescribeStreamPredictResultRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setCoreParameter("NextPageToken", nextPageToken); -} - -std::string DescribeStreamPredictResultRequest::getStartTime()const -{ - return startTime_; -} - -void DescribeStreamPredictResultRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setCoreParameter("StartTime", startTime); -} - -std::string DescribeStreamPredictResultRequest::getPredictId()const -{ - return predictId_; -} - -void DescribeStreamPredictResultRequest::setPredictId(const std::string& predictId) -{ - predictId_ = predictId; - setCoreParameter("PredictId", predictId); -} - -long DescribeStreamPredictResultRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeStreamPredictResultRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeStreamPredictResultRequest::getProbabilityThreshold()const -{ - return probabilityThreshold_; -} - -void DescribeStreamPredictResultRequest::setProbabilityThreshold(const std::string& probabilityThreshold) -{ - probabilityThreshold_ = probabilityThreshold; - setCoreParameter("ProbabilityThreshold", probabilityThreshold); -} - -std::string DescribeStreamPredictResultRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeStreamPredictResultRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string DescribeStreamPredictResultRequest::getModelId()const -{ - return modelId_; -} - -void DescribeStreamPredictResultRequest::setModelId(const std::string& modelId) -{ - modelId_ = modelId; - setCoreParameter("ModelId", modelId); -} - -std::string DescribeStreamPredictResultRequest::getEndTime()const -{ - return endTime_; -} - -void DescribeStreamPredictResultRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setCoreParameter("EndTime", endTime); -} - -long DescribeStreamPredictResultRequest::getCurrentPage()const -{ - return currentPage_; -} - -void DescribeStreamPredictResultRequest::setCurrentPage(long currentPage) -{ - currentPage_ = currentPage; - setCoreParameter("CurrentPage", std::to_string(currentPage)); -} - -long DescribeStreamPredictResultRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeStreamPredictResultRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - +std::string DescribeStreamPredictResultRequest::getNextPageToken()const +{ + return nextPageToken_; +} + +void DescribeStreamPredictResultRequest::setNextPageToken(const std::string& nextPageToken) +{ + nextPageToken_ = nextPageToken; + setCoreParameter("NextPageToken", nextPageToken); +} + +std::string DescribeStreamPredictResultRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeStreamPredictResultRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeStreamPredictResultRequest::getPredictId()const +{ + return predictId_; +} + +void DescribeStreamPredictResultRequest::setPredictId(const std::string& predictId) +{ + predictId_ = predictId; + setCoreParameter("PredictId", predictId); +} + +long DescribeStreamPredictResultRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeStreamPredictResultRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeStreamPredictResultRequest::getProbabilityThreshold()const +{ + return probabilityThreshold_; +} + +void DescribeStreamPredictResultRequest::setProbabilityThreshold(const std::string& probabilityThreshold) +{ + probabilityThreshold_ = probabilityThreshold; + setCoreParameter("ProbabilityThreshold", probabilityThreshold); +} + +std::string DescribeStreamPredictResultRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeStreamPredictResultRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +std::string DescribeStreamPredictResultRequest::getModelId()const +{ + return modelId_; +} + +void DescribeStreamPredictResultRequest::setModelId(const std::string& modelId) +{ + modelId_ = modelId; + setCoreParameter("ModelId", modelId); +} + +std::string DescribeStreamPredictResultRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeStreamPredictResultRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +long DescribeStreamPredictResultRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeStreamPredictResultRequest::setCurrentPage(long currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +long DescribeStreamPredictResultRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeStreamPredictResultRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ivision/src/model/DescribeStreamPredictsRequest.cc b/ivision/src/model/DescribeStreamPredictsRequest.cc index 2282129c6..0cc09f4ba 100644 --- a/ivision/src/model/DescribeStreamPredictsRequest.cc +++ b/ivision/src/model/DescribeStreamPredictsRequest.cc @@ -20,76 +20,76 @@ using AlibabaCloud::Ivision::Model::DescribeStreamPredictsRequest; DescribeStreamPredictsRequest::DescribeStreamPredictsRequest() : RpcServiceRequest("ivision", "2019-03-08", "DescribeStreamPredicts") -{ - setMethod(HttpRequest::Method::Post); +{ + setMethod(HttpRequest::Method::Post); } DescribeStreamPredictsRequest::~DescribeStreamPredictsRequest() {} -std::string DescribeStreamPredictsRequest::getNextPageToken()const -{ - return nextPageToken_; -} - -void DescribeStreamPredictsRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setCoreParameter("NextPageToken", nextPageToken); -} - -std::string DescribeStreamPredictsRequest::getPredictIds()const -{ - return predictIds_; -} - -void DescribeStreamPredictsRequest::setPredictIds(const std::string& predictIds) -{ - predictIds_ = predictIds; - setCoreParameter("PredictIds", predictIds); -} - -long DescribeStreamPredictsRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeStreamPredictsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeStreamPredictsRequest::getShowLog()const -{ - return showLog_; -} - -void DescribeStreamPredictsRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long DescribeStreamPredictsRequest::getCurrentPage()const -{ - return currentPage_; -} - -void DescribeStreamPredictsRequest::setCurrentPage(long currentPage) -{ - currentPage_ = currentPage; - setCoreParameter("CurrentPage", std::to_string(currentPage)); -} - -long DescribeStreamPredictsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeStreamPredictsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - +std::string DescribeStreamPredictsRequest::getNextPageToken()const +{ + return nextPageToken_; +} + +void DescribeStreamPredictsRequest::setNextPageToken(const std::string& nextPageToken) +{ + nextPageToken_ = nextPageToken; + setCoreParameter("NextPageToken", nextPageToken); +} + +std::string DescribeStreamPredictsRequest::getPredictIds()const +{ + return predictIds_; +} + +void DescribeStreamPredictsRequest::setPredictIds(const std::string& predictIds) +{ + predictIds_ = predictIds; + setCoreParameter("PredictIds", predictIds); +} + +long DescribeStreamPredictsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeStreamPredictsRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeStreamPredictsRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeStreamPredictsRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +long DescribeStreamPredictsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeStreamPredictsRequest::setCurrentPage(long currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +long DescribeStreamPredictsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeStreamPredictsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ivision/src/model/ImagePredictRequest.cc b/ivision/src/model/ImagePredictRequest.cc index b1cc89f67..ccb4d5c00 100644 --- a/ivision/src/model/ImagePredictRequest.cc +++ b/ivision/src/model/ImagePredictRequest.cc @@ -20,54 +20,54 @@ using AlibabaCloud::Ivision::Model::ImagePredictRequest; ImagePredictRequest::ImagePredictRequest() : RpcServiceRequest("ivision", "2019-03-08", "ImagePredict") -{ - setMethod(HttpRequest::Method::Get); +{ + setMethod(HttpRequest::Method::Get); } ImagePredictRequest::~ImagePredictRequest() {} -std::string ImagePredictRequest::getDataUrl()const -{ - return dataUrl_; -} - -void ImagePredictRequest::setDataUrl(const std::string& dataUrl) -{ - dataUrl_ = dataUrl; - setCoreParameter("DataUrl", dataUrl); -} - -std::string ImagePredictRequest::getShowLog()const -{ - return showLog_; -} - -void ImagePredictRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string ImagePredictRequest::getModelId()const -{ - return modelId_; -} - -void ImagePredictRequest::setModelId(const std::string& modelId) -{ - modelId_ = modelId; - setCoreParameter("ModelId", modelId); -} - -long ImagePredictRequest::getOwnerId()const -{ - return ownerId_; -} - -void ImagePredictRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - +std::string ImagePredictRequest::getDataUrl()const +{ + return dataUrl_; +} + +void ImagePredictRequest::setDataUrl(const std::string& dataUrl) +{ + dataUrl_ = dataUrl; + setCoreParameter("DataUrl", dataUrl); +} + +std::string ImagePredictRequest::getShowLog()const +{ + return showLog_; +} + +void ImagePredictRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +std::string ImagePredictRequest::getModelId()const +{ + return modelId_; +} + +void ImagePredictRequest::setModelId(const std::string& modelId) +{ + modelId_ = modelId; + setCoreParameter("ModelId", modelId); +} + +long ImagePredictRequest::getOwnerId()const +{ + return ownerId_; +} + +void ImagePredictRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ivision/src/model/RegisterFaceRequest.cc b/ivision/src/model/RegisterFaceRequest.cc index 42ee7e40e..e275e82d7 100644 --- a/ivision/src/model/RegisterFaceRequest.cc +++ b/ivision/src/model/RegisterFaceRequest.cc @@ -20,65 +20,65 @@ using AlibabaCloud::Ivision::Model::RegisterFaceRequest; RegisterFaceRequest::RegisterFaceRequest() : RpcServiceRequest("ivision", "2019-03-08", "RegisterFace") -{ - setMethod(HttpRequest::Method::Get); +{ + setMethod(HttpRequest::Method::Get); } RegisterFaceRequest::~RegisterFaceRequest() {} -std::string RegisterFaceRequest::getContent()const -{ - return content_; -} - -void RegisterFaceRequest::setContent(const std::string& content) -{ - content_ = content; - setCoreParameter("Content", content); -} - -std::string RegisterFaceRequest::getDataType()const -{ - return dataType_; -} - -void RegisterFaceRequest::setDataType(const std::string& dataType) -{ - dataType_ = dataType; - setCoreParameter("DataType", dataType); -} - -std::string RegisterFaceRequest::getShowLog()const -{ - return showLog_; -} - -void RegisterFaceRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string RegisterFaceRequest::getGroupId()const -{ - return groupId_; -} - -void RegisterFaceRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", groupId); -} - -long RegisterFaceRequest::getOwnerId()const -{ - return ownerId_; -} - -void RegisterFaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - +std::string RegisterFaceRequest::getContent()const +{ + return content_; +} + +void RegisterFaceRequest::setContent(const std::string& content) +{ + content_ = content; + setCoreParameter("Content", content); +} + +std::string RegisterFaceRequest::getDataType()const +{ + return dataType_; +} + +void RegisterFaceRequest::setDataType(const std::string& dataType) +{ + dataType_ = dataType; + setCoreParameter("DataType", dataType); +} + +std::string RegisterFaceRequest::getShowLog()const +{ + return showLog_; +} + +void RegisterFaceRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +std::string RegisterFaceRequest::getGroupId()const +{ + return groupId_; +} + +void RegisterFaceRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +long RegisterFaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void RegisterFaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ivision/src/model/SearchFaceRequest.cc b/ivision/src/model/SearchFaceRequest.cc index d39cdc516..115bca4f1 100644 --- a/ivision/src/model/SearchFaceRequest.cc +++ b/ivision/src/model/SearchFaceRequest.cc @@ -20,87 +20,87 @@ using AlibabaCloud::Ivision::Model::SearchFaceRequest; SearchFaceRequest::SearchFaceRequest() : RpcServiceRequest("ivision", "2019-03-08", "SearchFace") -{ - setMethod(HttpRequest::Method::Get); +{ + setMethod(HttpRequest::Method::Get); } SearchFaceRequest::~SearchFaceRequest() {} -std::string SearchFaceRequest::getContent()const -{ - return content_; -} - -void SearchFaceRequest::setContent(const std::string& content) -{ - content_ = content; - setCoreParameter("Content", content); -} - -std::string SearchFaceRequest::getDataType()const -{ - return dataType_; -} - -void SearchFaceRequest::setDataType(const std::string& dataType) -{ - dataType_ = dataType; - setCoreParameter("DataType", dataType); -} - -float SearchFaceRequest::getProbabilityThreshold()const -{ - return probabilityThreshold_; -} - -void SearchFaceRequest::setProbabilityThreshold(float probabilityThreshold) -{ - probabilityThreshold_ = probabilityThreshold; - setCoreParameter("ProbabilityThreshold", std::to_string(probabilityThreshold)); -} - -std::string SearchFaceRequest::getShowLog()const -{ - return showLog_; -} - -void SearchFaceRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string SearchFaceRequest::getGroupId()const -{ - return groupId_; -} - -void SearchFaceRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", groupId); -} - -int SearchFaceRequest::getCount()const -{ - return count_; -} - -void SearchFaceRequest::setCount(int count) -{ - count_ = count; - setCoreParameter("Count", std::to_string(count)); -} - -long SearchFaceRequest::getOwnerId()const -{ - return ownerId_; -} - -void SearchFaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - +std::string SearchFaceRequest::getContent()const +{ + return content_; +} + +void SearchFaceRequest::setContent(const std::string& content) +{ + content_ = content; + setCoreParameter("Content", content); +} + +std::string SearchFaceRequest::getDataType()const +{ + return dataType_; +} + +void SearchFaceRequest::setDataType(const std::string& dataType) +{ + dataType_ = dataType; + setCoreParameter("DataType", dataType); +} + +float SearchFaceRequest::getProbabilityThreshold()const +{ + return probabilityThreshold_; +} + +void SearchFaceRequest::setProbabilityThreshold(float probabilityThreshold) +{ + probabilityThreshold_ = probabilityThreshold; + setCoreParameter("ProbabilityThreshold", std::to_string(probabilityThreshold)); +} + +std::string SearchFaceRequest::getShowLog()const +{ + return showLog_; +} + +void SearchFaceRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +std::string SearchFaceRequest::getGroupId()const +{ + return groupId_; +} + +void SearchFaceRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +int SearchFaceRequest::getCount()const +{ + return count_; +} + +void SearchFaceRequest::setCount(int count) +{ + count_ = count; + setCoreParameter("Count", std::to_string(count)); +} + +long SearchFaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void SearchFaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ivision/src/model/StartStreamPredictRequest.cc b/ivision/src/model/StartStreamPredictRequest.cc index afa6dcfa7..55ef13f5b 100644 --- a/ivision/src/model/StartStreamPredictRequest.cc +++ b/ivision/src/model/StartStreamPredictRequest.cc @@ -20,43 +20,43 @@ using AlibabaCloud::Ivision::Model::StartStreamPredictRequest; StartStreamPredictRequest::StartStreamPredictRequest() : RpcServiceRequest("ivision", "2019-03-08", "StartStreamPredict") -{ - setMethod(HttpRequest::Method::Post); +{ + setMethod(HttpRequest::Method::Post); } StartStreamPredictRequest::~StartStreamPredictRequest() {} -std::string StartStreamPredictRequest::getPredictId()const -{ - return predictId_; -} - -void StartStreamPredictRequest::setPredictId(const std::string& predictId) -{ - predictId_ = predictId; - setCoreParameter("PredictId", predictId); -} - -std::string StartStreamPredictRequest::getShowLog()const -{ - return showLog_; -} - -void StartStreamPredictRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long StartStreamPredictRequest::getOwnerId()const -{ - return ownerId_; -} - -void StartStreamPredictRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - +std::string StartStreamPredictRequest::getPredictId()const +{ + return predictId_; +} + +void StartStreamPredictRequest::setPredictId(const std::string& predictId) +{ + predictId_ = predictId; + setCoreParameter("PredictId", predictId); +} + +std::string StartStreamPredictRequest::getShowLog()const +{ + return showLog_; +} + +void StartStreamPredictRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +long StartStreamPredictRequest::getOwnerId()const +{ + return ownerId_; +} + +void StartStreamPredictRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ivision/src/model/StopStreamPredictRequest.cc b/ivision/src/model/StopStreamPredictRequest.cc index e3e6f33d5..8833297ed 100644 --- a/ivision/src/model/StopStreamPredictRequest.cc +++ b/ivision/src/model/StopStreamPredictRequest.cc @@ -20,43 +20,43 @@ using AlibabaCloud::Ivision::Model::StopStreamPredictRequest; StopStreamPredictRequest::StopStreamPredictRequest() : RpcServiceRequest("ivision", "2019-03-08", "StopStreamPredict") -{ - setMethod(HttpRequest::Method::Post); +{ + setMethod(HttpRequest::Method::Post); } StopStreamPredictRequest::~StopStreamPredictRequest() {} -std::string StopStreamPredictRequest::getPredictId()const -{ - return predictId_; -} - -void StopStreamPredictRequest::setPredictId(const std::string& predictId) -{ - predictId_ = predictId; - setCoreParameter("PredictId", predictId); -} - -std::string StopStreamPredictRequest::getShowLog()const -{ - return showLog_; -} - -void StopStreamPredictRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -long StopStreamPredictRequest::getOwnerId()const -{ - return ownerId_; -} - -void StopStreamPredictRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - +std::string StopStreamPredictRequest::getPredictId()const +{ + return predictId_; +} + +void StopStreamPredictRequest::setPredictId(const std::string& predictId) +{ + predictId_ = predictId; + setCoreParameter("PredictId", predictId); +} + +std::string StopStreamPredictRequest::getShowLog()const +{ + return showLog_; +} + +void StopStreamPredictRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +long StopStreamPredictRequest::getOwnerId()const +{ + return ownerId_; +} + +void StopStreamPredictRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ivision/src/model/UnregisterFaceRequest.cc b/ivision/src/model/UnregisterFaceRequest.cc index c819c516a..d8f1bd65f 100644 --- a/ivision/src/model/UnregisterFaceRequest.cc +++ b/ivision/src/model/UnregisterFaceRequest.cc @@ -20,54 +20,54 @@ using AlibabaCloud::Ivision::Model::UnregisterFaceRequest; UnregisterFaceRequest::UnregisterFaceRequest() : RpcServiceRequest("ivision", "2019-03-08", "UnregisterFace") -{ - setMethod(HttpRequest::Method::Get); +{ + setMethod(HttpRequest::Method::Get); } UnregisterFaceRequest::~UnregisterFaceRequest() {} -std::string UnregisterFaceRequest::getShowLog()const -{ - return showLog_; -} - -void UnregisterFaceRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setCoreParameter("ShowLog", showLog); -} - -std::string UnregisterFaceRequest::getGroupId()const -{ - return groupId_; -} - -void UnregisterFaceRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", groupId); -} - -long UnregisterFaceRequest::getOwnerId()const -{ - return ownerId_; -} - -void UnregisterFaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setCoreParameter("OwnerId", std::to_string(ownerId)); -} - -std::string UnregisterFaceRequest::getFaceToken()const -{ - return faceToken_; -} - -void UnregisterFaceRequest::setFaceToken(const std::string& faceToken) -{ - faceToken_ = faceToken; - setCoreParameter("FaceToken", faceToken); -} - +std::string UnregisterFaceRequest::getShowLog()const +{ + return showLog_; +} + +void UnregisterFaceRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +std::string UnregisterFaceRequest::getGroupId()const +{ + return groupId_; +} + +void UnregisterFaceRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +long UnregisterFaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void UnregisterFaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UnregisterFaceRequest::getFaceToken()const +{ + return faceToken_; +} + +void UnregisterFaceRequest::setFaceToken(const std::string& faceToken) +{ + faceToken_ = faceToken; + setCoreParameter("FaceToken", faceToken); +} + diff --git a/ivision/src/model/VideoPredictRequest.cc b/ivision/src/model/VideoPredictRequest.cc new file mode 100644 index 000000000..a82f7055e --- /dev/null +++ b/ivision/src/model/VideoPredictRequest.cc @@ -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 + +using AlibabaCloud::Ivision::Model::VideoPredictRequest; + +VideoPredictRequest::VideoPredictRequest() : + RpcServiceRequest("ivision", "2019-03-08", "VideoPredict") +{ + setMethod(HttpRequest::Method::Post); +} + +VideoPredictRequest::~VideoPredictRequest() +{} + +std::string VideoPredictRequest::getDataUrl()const +{ + return dataUrl_; +} + +void VideoPredictRequest::setDataUrl(const std::string& dataUrl) +{ + dataUrl_ = dataUrl; + setCoreParameter("DataUrl", dataUrl); +} + +std::string VideoPredictRequest::getClientToken()const +{ + return clientToken_; +} + +void VideoPredictRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string VideoPredictRequest::getNotify()const +{ + return notify_; +} + +void VideoPredictRequest::setNotify(const std::string& notify) +{ + notify_ = notify; + setCoreParameter("Notify", notify); +} + +std::string VideoPredictRequest::getOutput()const +{ + return output_; +} + +void VideoPredictRequest::setOutput(const std::string& output) +{ + output_ = output; + setCoreParameter("Output", output); +} + +std::string VideoPredictRequest::getShowLog()const +{ + return showLog_; +} + +void VideoPredictRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setCoreParameter("ShowLog", showLog); +} + +std::string VideoPredictRequest::getModels()const +{ + return models_; +} + +void VideoPredictRequest::setModels(const std::string& models) +{ + models_ = models; + setCoreParameter("Models", models); +} + +long VideoPredictRequest::getOwnerId()const +{ + return ownerId_; +} + +void VideoPredictRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ivision/src/model/VideoPredictResult.cc b/ivision/src/model/VideoPredictResult.cc new file mode 100644 index 000000000..2ef225da8 --- /dev/null +++ b/ivision/src/model/VideoPredictResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ivision; +using namespace AlibabaCloud::Ivision::Model; + +VideoPredictResult::VideoPredictResult() : + ServiceResult() +{} + +VideoPredictResult::VideoPredictResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +VideoPredictResult::~VideoPredictResult() +{} + +void VideoPredictResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["PredictId"].isNull()) + predictId_ = value["PredictId"].asString(); + +} + +std::string VideoPredictResult::getPredictId()const +{ + return predictId_; +} +